From 7366049069671fbc7eca54550f45732c0c3c3d90 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sat, 3 May 2025 13:00:41 +0100 Subject: [PATCH 1/8] feat: responders are more concise --- .../server/server-operation-builder.ts | 28 ++------- .../typescript-koa-router-builder.ts | 19 +++--- packages/typescript-koa-runtime/src/server.ts | 60 +++++++++++++++++++ 3 files changed, 73 insertions(+), 34 deletions(-) diff --git a/packages/openapi-code-generator/src/typescript/server/server-operation-builder.ts b/packages/openapi-code-generator/src/typescript/server/server-operation-builder.ts index 7fa1037dd..24de0e3b0 100644 --- a/packages/openapi-code-generator/src/typescript/server/server-operation-builder.ts +++ b/packages/openapi-code-generator/src/typescript/server/server-operation-builder.ts @@ -122,34 +122,18 @@ export class ServerOperationBuilder { return `responseValidationFactory([${pairs}], ${defaultResponse?.schema})` } - responder(): {implementation: string; type: string} { + responder(): {implementation: string} { const {specific, defaultResponse} = this.responseSchemas() - // TODO: figure out what to do about the KoaRuntimeResponse class - const type = intersect( - object([ - ...specific.map((it) => - it.isWildCard - ? `with${it.statusType}(status: ${it.statusType}): KoaRuntimeResponse<${it.type}>` - : `with${it.statusType}(): KoaRuntimeResponse<${it.type}>`, - ), - defaultResponse && - `withDefault(status: StatusCode): KoaRuntimeResponse<${defaultResponse.type}>`, - ]), - "KoaRuntimeResponder", - ) const implementation = object([ - ...specific.map((it) => - it.isWildCard - ? `with${it.statusType}(status: ${it.statusType}) {return new KoaRuntimeResponse<${it.type}>(status) }` - : `with${it.statusType}() {return new KoaRuntimeResponse<${it.type}>(${it.statusType}) }`, + ...specific.map( + (it) => `with${it.statusType}: r.with${it.statusType}<${it.type}>`, ), - defaultResponse && - `withDefault(status: StatusCode) { return new KoaRuntimeResponse<${defaultResponse.type}>(status) }`, - "withStatus(status: StatusCode) { return new KoaRuntimeResponse(status)}", + defaultResponse && `withDefault: r.withDefault<${defaultResponse.type}>`, + "withStatus: r.withStatus", ]) - return {implementation, type} + return {implementation} } private pathParameters(schemaSymbolName: string): Parameters["path"] { diff --git a/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts b/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts index ca6a2eed6..d7426c95c 100644 --- a/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts +++ b/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts @@ -48,6 +48,7 @@ export class KoaRouterBuilder extends AbstractRouterBuilder { "StatusCode4xx", "StatusCode5xx", "startServer", + "r", ) this.imports @@ -97,16 +98,14 @@ export class KoaRouterBuilder extends AbstractRouterBuilder { this.operationTypes.push({ operationId: builder.operationId, statements: [ - buildExport({ - name: symbols.responderName, - value: responder.type, - kind: "type", - }), + `const ${symbols.responderName} = ${responder.implementation}`, + `type ${titleCase(symbols.responderName)} = typeof ${symbols.responderName} & KoaRuntimeResponder`, + `const ${symbols.responseBodyValidator} = ${builder.responseValidator()}`, buildExport({ name: symbols.implTypeName, value: `( params: ${params.type}, - respond: ${symbols.responderName}, + respond: ${titleCase(symbols.responderName)}, ctx: RouterContext ) => Promise | ${[ ...responseSchemas.specific.map( @@ -123,8 +122,6 @@ export class KoaRouterBuilder extends AbstractRouterBuilder { }) statements.push(` -const ${symbols.responseBodyValidator} = ${builder.responseValidator()} - router.${builder.method.toLowerCase()}('${symbols.implPropName}','${route(builder.route)}', async (ctx, next) => { const input = { params: ${params.path.schema ? `parseRequestInput(${symbols.paramSchema}, ctx.params, RequestInputType.RouteParam)` : "undefined"}, @@ -133,9 +130,7 @@ router.${builder.method.toLowerCase()}('${symbols.implPropName}','${route(builde headers: ${params.header.schema ? `parseRequestInput(${symbols.requestHeaderSchema}, Reflect.get(ctx.request, "headers"), RequestInputType.RequestHeader)` : "undefined"} } - const responder = ${responder.implementation} - - const response = await implementation.${symbols.implPropName}(input, responder, ctx) + const response = await implementation.${symbols.implPropName}(input, ${symbols.responderName}, ctx) .catch(err => { throw KoaRuntimeError.HandlerError(err) }) const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response @@ -152,7 +147,7 @@ router.${builder.method.toLowerCase()}('${symbols.implPropName}','${route(builde return { implPropName: operationId, implTypeName: titleCase(operationId), - responderName: `${titleCase(operationId)}Responder`, + responderName: `${operationId}Responder`, paramSchema: `${operationId}ParamSchema`, querySchema: `${operationId}QuerySchema`, requestBodySchema: `${operationId}BodySchema`, diff --git a/packages/typescript-koa-runtime/src/server.ts b/packages/typescript-koa-runtime/src/server.ts index 029026256..fc5d61ef5 100644 --- a/packages/typescript-koa-runtime/src/server.ts +++ b/packages/typescript-koa-runtime/src/server.ts @@ -53,6 +53,66 @@ export class KoaRuntimeResponse { } } +export type ResponderBuilder = { + [key in `with${StatusCode}`]: () => KoaRuntimeResponse +} & { + withStatus(status: StatusCode): KoaRuntimeResponse + withStatusCode1xx(status: StatusCode1xx): KoaRuntimeResponse + withStatusCode2xx(status: StatusCode2xx): KoaRuntimeResponse + withStatusCode3xx(status: StatusCode3xx): KoaRuntimeResponse + withStatusCode4xx(status: StatusCode4xx): KoaRuntimeResponse + withStatusCode5xx(status: StatusCode5xx): KoaRuntimeResponse + withDefault(status: StatusCode): KoaRuntimeResponse +} + +function isValidStatusCode(status: unknown): status is StatusCode { + if (typeof status !== "number") { + return false + } + return !(status < 100 || status > 599) +} + +export const r: ResponderBuilder = new Proxy({} as ResponderBuilder, { + get(_, prop: string) { + const exactMatch = /^with(\d{3})$/.exec(prop) + + if (exactMatch?.[1]) { + const status = Number(exactMatch[1]) + + if (!isValidStatusCode(status)) { + throw new Error(`Status ${status} is not a valid status code`) + } + + return () => new KoaRuntimeResponse(status) + } + + const groupMatch = /^withStatusCode([1-5]xx)$/.exec(prop) + if (groupMatch?.[1]) { + const range = groupMatch[1] + + return (status: StatusCode) => { + const expectedHundreds = Number(range[0]) + if (Math.floor(status / 100) !== expectedHundreds) { + throw new Error( + `Status ${status} is not a valid ${range} status code`, + ) + } + return new KoaRuntimeResponse(status) + } + } + + if (prop === "withDefault") { + return (status: StatusCode) => new KoaRuntimeResponse(status) + } + + if (prop === "withStatus") { + return (status: StatusCode) => new KoaRuntimeResponse(status) + } + + throw new Error(`Unknown responder method: ${prop}`) + }, +}) + export type KoaRuntimeResponder< Status extends StatusCode = StatusCode, // biome-ignore lint/suspicious/noExplicitAny: From 09874b6f7dd71cd2af2d7a08d0b34949cc1a656a Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sat, 3 May 2025 13:00:55 +0100 Subject: [PATCH 2/8] chore: regenerate --- .../api.github.com.yaml/generated.ts | 52185 +++++++--------- .../generated.ts | 1186 +- .../azure-resource-manager.tsp/generated.ts | 403 +- .../src/generated/okta.idp.yaml/generated.ts | 1920 +- .../generated/okta.oauth.yaml/generated.ts | 2133 +- .../petstore-expanded.yaml/generated.ts | 141 +- .../src/generated/stripe.yaml/generated.ts | 24647 +++----- .../generated/todo-lists.yaml/generated.ts | 335 +- 8 files changed, 34412 insertions(+), 48538 deletions(-) diff --git a/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts index d7830e10c..051b83a9c 100644 --- a/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts @@ -2133,7 +2133,7 @@ import { Params, Response, ServerConfig, - StatusCode, + r, startServer, } from "@nahkies/typescript-koa-runtime/server" import { @@ -2142,9 +2142,17 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type MetaRootResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const metaRootResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type MetaRootResponder = typeof metaRootResponder & KoaRuntimeResponder + +const metaRootResponseValidator = responseValidationFactory( + [["200", s_root]], + undefined, +) export type MetaRoot = ( params: Params, @@ -2152,11 +2160,25 @@ export type MetaRoot = ( ctx: RouterContext, ) => Promise | Response<200, t_root>> -export type SecurityAdvisoriesListGlobalAdvisoriesResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesListGlobalAdvisoriesResponder = { + with200: r.with200, + with422: r.with422, + with429: r.with429, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesListGlobalAdvisoriesResponder = + typeof securityAdvisoriesListGlobalAdvisoriesResponder & KoaRuntimeResponder + +const securityAdvisoriesListGlobalAdvisoriesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_global_advisory)], + ["422", s_validation_error_simple], + ["429", s_basic_error], + ], + undefined, + ) export type SecurityAdvisoriesListGlobalAdvisories = ( params: Params< @@ -2174,10 +2196,23 @@ export type SecurityAdvisoriesListGlobalAdvisories = ( | Response<429, t_basic_error> > -export type SecurityAdvisoriesGetGlobalAdvisoryResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesGetGlobalAdvisoryResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesGetGlobalAdvisoryResponder = + typeof securityAdvisoriesGetGlobalAdvisoryResponder & KoaRuntimeResponder + +const securityAdvisoriesGetGlobalAdvisoryResponseValidator = + responseValidationFactory( + [ + ["200", s_global_advisory], + ["404", s_basic_error], + ], + undefined, + ) export type SecurityAdvisoriesGetGlobalAdvisory = ( params: Params< @@ -2194,9 +2229,18 @@ export type SecurityAdvisoriesGetGlobalAdvisory = ( | Response<404, t_basic_error> > -export type AppsGetAuthenticatedResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetAuthenticatedResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type AppsGetAuthenticatedResponder = typeof appsGetAuthenticatedResponder & + KoaRuntimeResponder + +const appsGetAuthenticatedResponseValidator = responseValidationFactory( + [["200", s_integration]], + undefined, +) export type AppsGetAuthenticated = ( params: Params, @@ -2204,8 +2248,8 @@ export type AppsGetAuthenticated = ( ctx: RouterContext, ) => Promise | Response<200, t_integration>> -export type AppsCreateFromManifestResponder = { - with201(): KoaRuntimeResponse< +const appsCreateFromManifestResponder = { + with201: r.with201< t_integration & { client_id: string client_secret: string @@ -2213,10 +2257,37 @@ export type AppsCreateFromManifestResponder = { webhook_secret: string | null [key: string]: unknown | undefined } - > - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + >, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsCreateFromManifestResponder = typeof appsCreateFromManifestResponder & + KoaRuntimeResponder + +const appsCreateFromManifestResponseValidator = responseValidationFactory( + [ + [ + "201", + z.intersection( + s_integration, + z.intersection( + z.object({ + client_id: z.string(), + client_secret: z.string(), + webhook_secret: z.string().nullable(), + pem: z.string(), + }), + z.record(z.unknown()), + ), + ), + ], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type AppsCreateFromManifest = ( params: Params, @@ -2238,9 +2309,18 @@ export type AppsCreateFromManifest = ( | Response<422, t_validation_error_simple> > -export type AppsGetWebhookConfigForAppResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetWebhookConfigForAppResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type AppsGetWebhookConfigForAppResponder = + typeof appsGetWebhookConfigForAppResponder & KoaRuntimeResponder + +const appsGetWebhookConfigForAppResponseValidator = responseValidationFactory( + [["200", s_webhook_config]], + undefined, +) export type AppsGetWebhookConfigForApp = ( params: Params, @@ -2248,9 +2328,16 @@ export type AppsGetWebhookConfigForApp = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -export type AppsUpdateWebhookConfigForAppResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsUpdateWebhookConfigForAppResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type AppsUpdateWebhookConfigForAppResponder = + typeof appsUpdateWebhookConfigForAppResponder & KoaRuntimeResponder + +const appsUpdateWebhookConfigForAppResponseValidator = + responseValidationFactory([["200", s_webhook_config]], undefined) export type AppsUpdateWebhookConfigForApp = ( params: Params, @@ -2258,11 +2345,24 @@ export type AppsUpdateWebhookConfigForApp = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -export type AppsListWebhookDeliveriesResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListWebhookDeliveriesResponder = { + with200: r.with200, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsListWebhookDeliveriesResponder = + typeof appsListWebhookDeliveriesResponder & KoaRuntimeResponder + +const appsListWebhookDeliveriesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_hook_delivery_item)], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, +) export type AppsListWebhookDeliveries = ( params: Params, @@ -2275,11 +2375,24 @@ export type AppsListWebhookDeliveries = ( | Response<422, t_validation_error> > -export type AppsGetWebhookDeliveryResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetWebhookDeliveryResponder = { + with200: r.with200, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsGetWebhookDeliveryResponder = typeof appsGetWebhookDeliveryResponder & + KoaRuntimeResponder + +const appsGetWebhookDeliveryResponseValidator = responseValidationFactory( + [ + ["200", s_hook_delivery], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, +) export type AppsGetWebhookDelivery = ( params: Params, @@ -2292,13 +2405,26 @@ export type AppsGetWebhookDelivery = ( | Response<422, t_validation_error> > -export type AppsRedeliverWebhookDeliveryResponder = { - with202(): KoaRuntimeResponse<{ +const appsRedeliverWebhookDeliveryResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsRedeliverWebhookDeliveryResponder = + typeof appsRedeliverWebhookDeliveryResponder & KoaRuntimeResponder + +const appsRedeliverWebhookDeliveryResponseValidator = responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, +) export type AppsRedeliverWebhookDelivery = ( params: Params, @@ -2316,11 +2442,26 @@ export type AppsRedeliverWebhookDelivery = ( | Response<422, t_validation_error> > -export type AppsListInstallationRequestsForAuthenticatedAppResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListInstallationRequestsForAuthenticatedAppResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + withStatus: r.withStatus, +} + +type AppsListInstallationRequestsForAuthenticatedAppResponder = + typeof appsListInstallationRequestsForAuthenticatedAppResponder & + KoaRuntimeResponder + +const appsListInstallationRequestsForAuthenticatedAppResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_integration_installation_request)], + ["304", z.undefined()], + ["401", s_basic_error], + ], + undefined, + ) export type AppsListInstallationRequestsForAuthenticatedApp = ( params: Params< @@ -2338,9 +2479,18 @@ export type AppsListInstallationRequestsForAuthenticatedApp = ( | Response<401, t_basic_error> > -export type AppsListInstallationsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListInstallationsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type AppsListInstallationsResponder = typeof appsListInstallationsResponder & + KoaRuntimeResponder + +const appsListInstallationsResponseValidator = responseValidationFactory( + [["200", z.array(s_installation)]], + undefined, +) export type AppsListInstallations = ( params: Params, @@ -2348,10 +2498,22 @@ export type AppsListInstallations = ( ctx: RouterContext, ) => Promise | Response<200, t_installation[]>> -export type AppsGetInstallationResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetInstallationResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsGetInstallationResponder = typeof appsGetInstallationResponder & + KoaRuntimeResponder + +const appsGetInstallationResponseValidator = responseValidationFactory( + [ + ["200", s_installation], + ["404", s_basic_error], + ], + undefined, +) export type AppsGetInstallation = ( params: Params, @@ -2363,10 +2525,22 @@ export type AppsGetInstallation = ( | Response<404, t_basic_error> > -export type AppsDeleteInstallationResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsDeleteInstallationResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsDeleteInstallationResponder = typeof appsDeleteInstallationResponder & + KoaRuntimeResponder + +const appsDeleteInstallationResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type AppsDeleteInstallation = ( params: Params, @@ -2378,13 +2552,29 @@ export type AppsDeleteInstallation = ( | Response<404, t_basic_error> > -export type AppsCreateInstallationAccessTokenResponder = { - with201(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsCreateInstallationAccessTokenResponder = { + with201: r.with201, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsCreateInstallationAccessTokenResponder = + typeof appsCreateInstallationAccessTokenResponder & KoaRuntimeResponder + +const appsCreateInstallationAccessTokenResponseValidator = + responseValidationFactory( + [ + ["201", s_installation_token], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type AppsCreateInstallationAccessToken = ( params: Params< @@ -2404,10 +2594,22 @@ export type AppsCreateInstallationAccessToken = ( | Response<422, t_validation_error> > -export type AppsSuspendInstallationResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsSuspendInstallationResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsSuspendInstallationResponder = + typeof appsSuspendInstallationResponder & KoaRuntimeResponder + +const appsSuspendInstallationResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type AppsSuspendInstallation = ( params: Params, @@ -2419,10 +2621,22 @@ export type AppsSuspendInstallation = ( | Response<404, t_basic_error> > -export type AppsUnsuspendInstallationResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsUnsuspendInstallationResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsUnsuspendInstallationResponder = + typeof appsUnsuspendInstallationResponder & KoaRuntimeResponder + +const appsUnsuspendInstallationResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type AppsUnsuspendInstallation = ( params: Params, @@ -2434,10 +2648,22 @@ export type AppsUnsuspendInstallation = ( | Response<404, t_basic_error> > -export type AppsDeleteAuthorizationResponder = { - with204(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsDeleteAuthorizationResponder = { + with204: r.with204, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsDeleteAuthorizationResponder = + typeof appsDeleteAuthorizationResponder & KoaRuntimeResponder + +const appsDeleteAuthorizationResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["422", s_validation_error], + ], + undefined, +) export type AppsDeleteAuthorization = ( params: Params< @@ -2454,11 +2680,24 @@ export type AppsDeleteAuthorization = ( | Response<422, t_validation_error> > -export type AppsCheckTokenResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsCheckTokenResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsCheckTokenResponder = typeof appsCheckTokenResponder & + KoaRuntimeResponder + +const appsCheckTokenResponseValidator = responseValidationFactory( + [ + ["200", s_authorization], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type AppsCheckToken = ( params: Params< @@ -2476,10 +2715,22 @@ export type AppsCheckToken = ( | Response<422, t_validation_error> > -export type AppsResetTokenResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsResetTokenResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsResetTokenResponder = typeof appsResetTokenResponder & + KoaRuntimeResponder + +const appsResetTokenResponseValidator = responseValidationFactory( + [ + ["200", s_authorization], + ["422", s_validation_error], + ], + undefined, +) export type AppsResetToken = ( params: Params< @@ -2496,10 +2747,22 @@ export type AppsResetToken = ( | Response<422, t_validation_error> > -export type AppsDeleteTokenResponder = { - with204(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsDeleteTokenResponder = { + with204: r.with204, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsDeleteTokenResponder = typeof appsDeleteTokenResponder & + KoaRuntimeResponder + +const appsDeleteTokenResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["422", s_validation_error], + ], + undefined, +) export type AppsDeleteToken = ( params: Params< @@ -2516,13 +2779,28 @@ export type AppsDeleteToken = ( | Response<422, t_validation_error> > -export type AppsScopeTokenResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsScopeTokenResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsScopeTokenResponder = typeof appsScopeTokenResponder & + KoaRuntimeResponder + +const appsScopeTokenResponseValidator = responseValidationFactory( + [ + ["200", s_authorization], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type AppsScopeToken = ( params: Params< @@ -2542,11 +2820,24 @@ export type AppsScopeToken = ( | Response<422, t_validation_error> > -export type AppsGetBySlugResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetBySlugResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsGetBySlugResponder = typeof appsGetBySlugResponder & + KoaRuntimeResponder + +const appsGetBySlugResponseValidator = responseValidationFactory( + [ + ["200", s_integration], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type AppsGetBySlug = ( params: Params, @@ -2559,10 +2850,22 @@ export type AppsGetBySlug = ( | Response<404, t_basic_error> > -export type ClassroomGetAnAssignmentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const classroomGetAnAssignmentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ClassroomGetAnAssignmentResponder = + typeof classroomGetAnAssignmentResponder & KoaRuntimeResponder + +const classroomGetAnAssignmentResponseValidator = responseValidationFactory( + [ + ["200", s_classroom_assignment], + ["404", s_basic_error], + ], + undefined, +) export type ClassroomGetAnAssignment = ( params: Params, @@ -2574,9 +2877,20 @@ export type ClassroomGetAnAssignment = ( | Response<404, t_basic_error> > -export type ClassroomListAcceptedAssignmentsForAnAssignmentResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const classroomListAcceptedAssignmentsForAnAssignmentResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ClassroomListAcceptedAssignmentsForAnAssignmentResponder = + typeof classroomListAcceptedAssignmentsForAnAssignmentResponder & + KoaRuntimeResponder + +const classroomListAcceptedAssignmentsForAnAssignmentResponseValidator = + responseValidationFactory( + [["200", z.array(s_classroom_accepted_assignment)]], + undefined, + ) export type ClassroomListAcceptedAssignmentsForAnAssignment = ( params: Params< @@ -2591,10 +2905,22 @@ export type ClassroomListAcceptedAssignmentsForAnAssignment = ( KoaRuntimeResponse | Response<200, t_classroom_accepted_assignment[]> > -export type ClassroomGetAssignmentGradesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const classroomGetAssignmentGradesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ClassroomGetAssignmentGradesResponder = + typeof classroomGetAssignmentGradesResponder & KoaRuntimeResponder + +const classroomGetAssignmentGradesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_classroom_assignment_grade)], + ["404", s_basic_error], + ], + undefined, +) export type ClassroomGetAssignmentGrades = ( params: Params, @@ -2606,9 +2932,18 @@ export type ClassroomGetAssignmentGrades = ( | Response<404, t_basic_error> > -export type ClassroomListClassroomsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const classroomListClassroomsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ClassroomListClassroomsResponder = + typeof classroomListClassroomsResponder & KoaRuntimeResponder + +const classroomListClassroomsResponseValidator = responseValidationFactory( + [["200", z.array(s_simple_classroom)]], + undefined, +) export type ClassroomListClassrooms = ( params: Params, @@ -2616,10 +2951,22 @@ export type ClassroomListClassrooms = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_classroom[]>> -export type ClassroomGetAClassroomResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const classroomGetAClassroomResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ClassroomGetAClassroomResponder = typeof classroomGetAClassroomResponder & + KoaRuntimeResponder + +const classroomGetAClassroomResponseValidator = responseValidationFactory( + [ + ["200", s_classroom], + ["404", s_basic_error], + ], + undefined, +) export type ClassroomGetAClassroom = ( params: Params, @@ -2631,9 +2978,19 @@ export type ClassroomGetAClassroom = ( | Response<404, t_basic_error> > -export type ClassroomListAssignmentsForAClassroomResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const classroomListAssignmentsForAClassroomResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ClassroomListAssignmentsForAClassroomResponder = + typeof classroomListAssignmentsForAClassroomResponder & KoaRuntimeResponder + +const classroomListAssignmentsForAClassroomResponseValidator = + responseValidationFactory( + [["200", z.array(s_simple_classroom_assignment)]], + undefined, + ) export type ClassroomListAssignmentsForAClassroom = ( params: Params< @@ -2648,10 +3005,23 @@ export type ClassroomListAssignmentsForAClassroom = ( KoaRuntimeResponse | Response<200, t_simple_classroom_assignment[]> > -export type CodesOfConductGetAllCodesOfConductResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codesOfConductGetAllCodesOfConductResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type CodesOfConductGetAllCodesOfConductResponder = + typeof codesOfConductGetAllCodesOfConductResponder & KoaRuntimeResponder + +const codesOfConductGetAllCodesOfConductResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_of_conduct)], + ["304", z.undefined()], + ], + undefined, + ) export type CodesOfConductGetAllCodesOfConduct = ( params: Params, @@ -2663,11 +3033,24 @@ export type CodesOfConductGetAllCodesOfConduct = ( | Response<304, void> > -export type CodesOfConductGetConductCodeResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codesOfConductGetConductCodeResponder = { + with200: r.with200, + with304: r.with304, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodesOfConductGetConductCodeResponder = + typeof codesOfConductGetConductCodeResponder & KoaRuntimeResponder + +const codesOfConductGetConductCodeResponseValidator = responseValidationFactory( + [ + ["200", s_code_of_conduct], + ["304", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type CodesOfConductGetConductCode = ( params: Params, @@ -2680,12 +3063,23 @@ export type CodesOfConductGetConductCode = ( | Response<404, t_basic_error> > -export type EmojisGetResponder = { - with200(): KoaRuntimeResponse<{ +const emojisGetResponder = { + with200: r.with200<{ [key: string]: string | undefined - }> - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + withStatus: r.withStatus, +} + +type EmojisGetResponder = typeof emojisGetResponder & KoaRuntimeResponder + +const emojisGetResponseValidator = responseValidationFactory( + [ + ["200", z.record(z.string())], + ["304", z.undefined()], + ], + undefined, +) export type EmojisGet = ( params: Params, @@ -2702,11 +3096,26 @@ export type EmojisGet = ( | Response<304, void> > -export type CodeSecurityGetConfigurationsForEnterpriseResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetConfigurationsForEnterpriseResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityGetConfigurationsForEnterpriseResponder = + typeof codeSecurityGetConfigurationsForEnterpriseResponder & + KoaRuntimeResponder + +const codeSecurityGetConfigurationsForEnterpriseResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_security_configuration)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecurityGetConfigurationsForEnterprise = ( params: Params< @@ -2724,12 +3133,28 @@ export type CodeSecurityGetConfigurationsForEnterprise = ( | Response<404, t_basic_error> > -export type CodeSecurityCreateConfigurationForEnterpriseResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityCreateConfigurationForEnterpriseResponder = { + with201: r.with201, + with400: r.with400, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityCreateConfigurationForEnterpriseResponder = + typeof codeSecurityCreateConfigurationForEnterpriseResponder & + KoaRuntimeResponder + +const codeSecurityCreateConfigurationForEnterpriseResponseValidator = + responseValidationFactory( + [ + ["201", s_code_security_configuration], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecurityCreateConfigurationForEnterprise = ( params: Params< @@ -2748,9 +3173,20 @@ export type CodeSecurityCreateConfigurationForEnterprise = ( | Response<404, t_basic_error> > -export type CodeSecurityGetDefaultConfigurationsForEnterpriseResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetDefaultConfigurationsForEnterpriseResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type CodeSecurityGetDefaultConfigurationsForEnterpriseResponder = + typeof codeSecurityGetDefaultConfigurationsForEnterpriseResponder & + KoaRuntimeResponder + +const codeSecurityGetDefaultConfigurationsForEnterpriseResponseValidator = + responseValidationFactory( + [["200", s_code_security_default_configurations]], + undefined, + ) export type CodeSecurityGetDefaultConfigurationsForEnterprise = ( params: Params< @@ -2766,12 +3202,28 @@ export type CodeSecurityGetDefaultConfigurationsForEnterprise = ( | Response<200, t_code_security_default_configurations> > -export type CodeSecurityGetSingleConfigurationForEnterpriseResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetSingleConfigurationForEnterpriseResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityGetSingleConfigurationForEnterpriseResponder = + typeof codeSecurityGetSingleConfigurationForEnterpriseResponder & + KoaRuntimeResponder + +const codeSecurityGetSingleConfigurationForEnterpriseResponseValidator = + responseValidationFactory( + [ + ["200", s_code_security_configuration], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecurityGetSingleConfigurationForEnterprise = ( params: Params< @@ -2790,13 +3242,30 @@ export type CodeSecurityGetSingleConfigurationForEnterprise = ( | Response<404, t_basic_error> > -export type CodeSecurityUpdateEnterpriseConfigurationResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityUpdateEnterpriseConfigurationResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type CodeSecurityUpdateEnterpriseConfigurationResponder = + typeof codeSecurityUpdateEnterpriseConfigurationResponder & + KoaRuntimeResponder + +const codeSecurityUpdateEnterpriseConfigurationResponseValidator = + responseValidationFactory( + [ + ["200", s_code_security_configuration], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, + ) export type CodeSecurityUpdateEnterpriseConfiguration = ( params: Params< @@ -2816,13 +3285,30 @@ export type CodeSecurityUpdateEnterpriseConfiguration = ( | Response<409, t_basic_error> > -export type CodeSecurityDeleteConfigurationForEnterpriseResponder = { - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityDeleteConfigurationForEnterpriseResponder = { + with204: r.with204, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type CodeSecurityDeleteConfigurationForEnterpriseResponder = + typeof codeSecurityDeleteConfigurationForEnterpriseResponder & + KoaRuntimeResponder + +const codeSecurityDeleteConfigurationForEnterpriseResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, + ) export type CodeSecurityDeleteConfigurationForEnterprise = ( params: Params< @@ -2842,14 +3328,30 @@ export type CodeSecurityDeleteConfigurationForEnterprise = ( | Response<409, t_basic_error> > -export type CodeSecurityAttachEnterpriseConfigurationResponder = { - with202(): KoaRuntimeResponse<{ +const codeSecurityAttachEnterpriseConfigurationResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with403: r.with403, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type CodeSecurityAttachEnterpriseConfigurationResponder = + typeof codeSecurityAttachEnterpriseConfigurationResponder & + KoaRuntimeResponder + +const codeSecurityAttachEnterpriseConfigurationResponseValidator = + responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, + ) export type CodeSecurityAttachEnterpriseConfiguration = ( params: Params< @@ -2873,14 +3375,37 @@ export type CodeSecurityAttachEnterpriseConfiguration = ( | Response<409, t_basic_error> > -export type CodeSecuritySetConfigurationAsDefaultForEnterpriseResponder = { - with200(): KoaRuntimeResponse<{ +const codeSecuritySetConfigurationAsDefaultForEnterpriseResponder = { + with200: r.with200<{ configuration?: t_code_security_configuration default_for_new_repos?: "all" | "none" | "private_and_internal" | "public" - }> - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecuritySetConfigurationAsDefaultForEnterpriseResponder = + typeof codeSecuritySetConfigurationAsDefaultForEnterpriseResponder & + KoaRuntimeResponder + +const codeSecuritySetConfigurationAsDefaultForEnterpriseResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + default_for_new_repos: z + .enum(["all", "none", "private_and_internal", "public"]) + .optional(), + configuration: s_code_security_configuration.optional(), + }), + ], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecuritySetConfigurationAsDefaultForEnterprise = ( params: Params< @@ -2908,11 +3433,26 @@ export type CodeSecuritySetConfigurationAsDefaultForEnterprise = ( | Response<404, t_basic_error> > -export type CodeSecurityGetRepositoriesForEnterpriseConfigurationResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetRepositoriesForEnterpriseConfigurationResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityGetRepositoriesForEnterpriseConfigurationResponder = + typeof codeSecurityGetRepositoriesForEnterpriseConfigurationResponder & + KoaRuntimeResponder + +const codeSecurityGetRepositoriesForEnterpriseConfigurationResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_security_configuration_repositories)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecurityGetRepositoriesForEnterpriseConfiguration = ( params: Params< @@ -2930,13 +3470,29 @@ export type CodeSecurityGetRepositoriesForEnterpriseConfiguration = ( | Response<404, t_basic_error> > -export type DependabotListAlertsForEnterpriseResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotListAlertsForEnterpriseResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type DependabotListAlertsForEnterpriseResponder = + typeof dependabotListAlertsForEnterpriseResponder & KoaRuntimeResponder + +const dependabotListAlertsForEnterpriseResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_dependabot_alert_with_repository)], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type DependabotListAlertsForEnterprise = ( params: Params< @@ -2956,15 +3512,36 @@ export type DependabotListAlertsForEnterprise = ( | Response<422, t_validation_error_simple> > -export type SecretScanningListAlertsForEnterpriseResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const secretScanningListAlertsForEnterpriseResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SecretScanningListAlertsForEnterpriseResponder = + typeof secretScanningListAlertsForEnterpriseResponder & KoaRuntimeResponder + +const secretScanningListAlertsForEnterpriseResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_organization_secret_scanning_alert)], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type SecretScanningListAlertsForEnterprise = ( params: Params< @@ -2989,16 +3566,37 @@ export type SecretScanningListAlertsForEnterprise = ( > > -export type ActivityListPublicEventsResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const activityListPublicEventsResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActivityListPublicEventsResponder = + typeof activityListPublicEventsResponder & KoaRuntimeResponder + +const activityListPublicEventsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_event)], + ["304", z.undefined()], + ["403", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type ActivityListPublicEvents = ( params: Params, @@ -3019,9 +3617,18 @@ export type ActivityListPublicEvents = ( > > -export type ActivityGetFeedsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityGetFeedsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityGetFeedsResponder = typeof activityGetFeedsResponder & + KoaRuntimeResponder + +const activityGetFeedsResponseValidator = responseValidationFactory( + [["200", s_feed]], + undefined, +) export type ActivityGetFeeds = ( params: Params, @@ -3029,11 +3636,23 @@ export type ActivityGetFeeds = ( ctx: RouterContext, ) => Promise | Response<200, t_feed>> -export type GistsListResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsListResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + withStatus: r.withStatus, +} + +type GistsListResponder = typeof gistsListResponder & KoaRuntimeResponder + +const gistsListResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_base_gist)], + ["304", z.undefined()], + ["403", s_basic_error], + ], + undefined, +) export type GistsList = ( params: Params, @@ -3046,13 +3665,27 @@ export type GistsList = ( | Response<403, t_basic_error> > -export type GistsCreateResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsCreateResponder = { + with201: r.with201, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type GistsCreateResponder = typeof gistsCreateResponder & KoaRuntimeResponder + +const gistsCreateResponseValidator = responseValidationFactory( + [ + ["201", s_gist_simple], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GistsCreate = ( params: Params, @@ -3067,12 +3700,26 @@ export type GistsCreate = ( | Response<422, t_validation_error> > -export type GistsListPublicResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsListPublicResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type GistsListPublicResponder = typeof gistsListPublicResponder & + KoaRuntimeResponder + +const gistsListPublicResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_base_gist)], + ["304", z.undefined()], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GistsListPublic = ( params: Params, @@ -3086,12 +3733,26 @@ export type GistsListPublic = ( | Response<422, t_validation_error> > -export type GistsListStarredResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsListStarredResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type GistsListStarredResponder = typeof gistsListStarredResponder & + KoaRuntimeResponder + +const gistsListStarredResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_base_gist)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type GistsListStarred = ( params: Params, @@ -3105,10 +3766,10 @@ export type GistsListStarred = ( | Response<403, t_basic_error> > -export type GistsGetResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const gistsGetResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403<{ block?: { created_at?: string html_url?: string | null @@ -3116,9 +3777,35 @@ export type GistsGetResponder = { } documentation_url?: string message?: string - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsGetResponder = typeof gistsGetResponder & KoaRuntimeResponder + +const gistsGetResponseValidator = responseValidationFactory( + [ + ["200", s_gist_simple], + ["304", z.undefined()], + [ + "403", + z.object({ + block: z + .object({ + reason: z.string().optional(), + created_at: z.string().optional(), + html_url: z.string().nullable().optional(), + }) + .optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ["404", s_basic_error], + ], + undefined, +) export type GistsGet = ( params: Params, @@ -3143,11 +3830,23 @@ export type GistsGet = ( | Response<404, t_basic_error> > -export type GistsUpdateResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsUpdateResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type GistsUpdateResponder = typeof gistsUpdateResponder & KoaRuntimeResponder + +const gistsUpdateResponseValidator = responseValidationFactory( + [ + ["200", s_gist_simple], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GistsUpdate = ( params: Params, @@ -3160,12 +3859,25 @@ export type GistsUpdate = ( | Response<422, t_validation_error> > -export type GistsDeleteResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsDeleteResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsDeleteResponder = typeof gistsDeleteResponder & KoaRuntimeResponder + +const gistsDeleteResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type GistsDelete = ( params: Params, @@ -3179,12 +3891,26 @@ export type GistsDelete = ( | Response<404, t_basic_error> > -export type GistsListCommentsResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsListCommentsResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsListCommentsResponder = typeof gistsListCommentsResponder & + KoaRuntimeResponder + +const gistsListCommentsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_gist_comment)], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type GistsListComments = ( params: Params< @@ -3203,12 +3929,26 @@ export type GistsListComments = ( | Response<404, t_basic_error> > -export type GistsCreateCommentResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsCreateCommentResponder = { + with201: r.with201, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsCreateCommentResponder = typeof gistsCreateCommentResponder & + KoaRuntimeResponder + +const gistsCreateCommentResponseValidator = responseValidationFactory( + [ + ["201", s_gist_comment], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type GistsCreateComment = ( params: Params< @@ -3227,10 +3967,10 @@ export type GistsCreateComment = ( | Response<404, t_basic_error> > -export type GistsGetCommentResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const gistsGetCommentResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403<{ block?: { created_at?: string html_url?: string | null @@ -3238,9 +3978,36 @@ export type GistsGetCommentResponder = { } documentation_url?: string message?: string - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsGetCommentResponder = typeof gistsGetCommentResponder & + KoaRuntimeResponder + +const gistsGetCommentResponseValidator = responseValidationFactory( + [ + ["200", s_gist_comment], + ["304", z.undefined()], + [ + "403", + z.object({ + block: z + .object({ + reason: z.string().optional(), + created_at: z.string().optional(), + html_url: z.string().nullable().optional(), + }) + .optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ["404", s_basic_error], + ], + undefined, +) export type GistsGetComment = ( params: Params, @@ -3265,10 +4032,22 @@ export type GistsGetComment = ( | Response<404, t_basic_error> > -export type GistsUpdateCommentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsUpdateCommentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsUpdateCommentResponder = typeof gistsUpdateCommentResponder & + KoaRuntimeResponder + +const gistsUpdateCommentResponseValidator = responseValidationFactory( + [ + ["200", s_gist_comment], + ["404", s_basic_error], + ], + undefined, +) export type GistsUpdateComment = ( params: Params< @@ -3285,12 +4064,26 @@ export type GistsUpdateComment = ( | Response<404, t_basic_error> > -export type GistsDeleteCommentResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsDeleteCommentResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsDeleteCommentResponder = typeof gistsDeleteCommentResponder & + KoaRuntimeResponder + +const gistsDeleteCommentResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type GistsDeleteComment = ( params: Params, @@ -3304,12 +4097,26 @@ export type GistsDeleteComment = ( | Response<404, t_basic_error> > -export type GistsListCommitsResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsListCommitsResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsListCommitsResponder = typeof gistsListCommitsResponder & + KoaRuntimeResponder + +const gistsListCommitsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_gist_commit)], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type GistsListCommits = ( params: Params< @@ -3328,12 +4135,26 @@ export type GistsListCommits = ( | Response<404, t_basic_error> > -export type GistsListForksResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsListForksResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsListForksResponder = typeof gistsListForksResponder & + KoaRuntimeResponder + +const gistsListForksResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_gist_simple)], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type GistsListForks = ( params: Params< @@ -3352,13 +4173,27 @@ export type GistsListForks = ( | Response<404, t_basic_error> > -export type GistsForkResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsForkResponder = { + with201: r.with201, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type GistsForkResponder = typeof gistsForkResponder & KoaRuntimeResponder + +const gistsForkResponseValidator = responseValidationFactory( + [ + ["201", s_base_gist], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GistsFork = ( params: Params, @@ -3373,12 +4208,26 @@ export type GistsFork = ( | Response<422, t_validation_error> > -export type GistsCheckIsStarredResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsCheckIsStarredResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsCheckIsStarredResponder = typeof gistsCheckIsStarredResponder & + KoaRuntimeResponder + +const gistsCheckIsStarredResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", z.object({})], + ], + undefined, +) export type GistsCheckIsStarred = ( params: Params, @@ -3392,12 +4241,25 @@ export type GistsCheckIsStarred = ( | Response<404, EmptyObject> > -export type GistsStarResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsStarResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsStarResponder = typeof gistsStarResponder & KoaRuntimeResponder + +const gistsStarResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type GistsStar = ( params: Params, @@ -3411,12 +4273,25 @@ export type GistsStar = ( | Response<404, t_basic_error> > -export type GistsUnstarResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsUnstarResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type GistsUnstarResponder = typeof gistsUnstarResponder & KoaRuntimeResponder + +const gistsUnstarResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type GistsUnstar = ( params: Params, @@ -3430,12 +4305,26 @@ export type GistsUnstar = ( | Response<404, t_basic_error> > -export type GistsGetRevisionResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsGetRevisionResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type GistsGetRevisionResponder = typeof gistsGetRevisionResponder & + KoaRuntimeResponder + +const gistsGetRevisionResponseValidator = responseValidationFactory( + [ + ["200", s_gist_simple], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GistsGetRevision = ( params: Params, @@ -3449,10 +4338,22 @@ export type GistsGetRevision = ( | Response<422, t_validation_error> > -export type GitignoreGetAllTemplatesResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitignoreGetAllTemplatesResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type GitignoreGetAllTemplatesResponder = + typeof gitignoreGetAllTemplatesResponder & KoaRuntimeResponder + +const gitignoreGetAllTemplatesResponseValidator = responseValidationFactory( + [ + ["200", z.array(z.string())], + ["304", z.undefined()], + ], + undefined, +) export type GitignoreGetAllTemplates = ( params: Params, @@ -3462,10 +4363,22 @@ export type GitignoreGetAllTemplates = ( KoaRuntimeResponse | Response<200, string[]> | Response<304, void> > -export type GitignoreGetTemplateResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitignoreGetTemplateResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type GitignoreGetTemplateResponder = typeof gitignoreGetTemplateResponder & + KoaRuntimeResponder + +const gitignoreGetTemplateResponseValidator = responseValidationFactory( + [ + ["200", s_gitignore_template], + ["304", z.undefined()], + ], + undefined, +) export type GitignoreGetTemplate = ( params: Params, @@ -3477,16 +4390,38 @@ export type GitignoreGetTemplate = ( | Response<304, void> > -export type AppsListReposAccessibleToInstallationResponder = { - with200(): KoaRuntimeResponse<{ +const appsListReposAccessibleToInstallationResponder = { + with200: r.with200<{ repositories: t_repository[] repository_selection?: string total_count: number - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type AppsListReposAccessibleToInstallationResponder = + typeof appsListReposAccessibleToInstallationResponder & KoaRuntimeResponder + +const appsListReposAccessibleToInstallationResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_repository), + repository_selection: z.string().optional(), + }), + ], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type AppsListReposAccessibleToInstallation = ( params: Params< @@ -3512,9 +4447,16 @@ export type AppsListReposAccessibleToInstallation = ( | Response<403, t_basic_error> > -export type AppsRevokeInstallationAccessTokenResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsRevokeInstallationAccessTokenResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type AppsRevokeInstallationAccessTokenResponder = + typeof appsRevokeInstallationAccessTokenResponder & KoaRuntimeResponder + +const appsRevokeInstallationAccessTokenResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type AppsRevokeInstallationAccessToken = ( params: Params, @@ -3522,12 +4464,25 @@ export type AppsRevokeInstallationAccessToken = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type IssuesListResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListResponder = { + with200: r.with200, + with304: r.with304, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesListResponder = typeof issuesListResponder & KoaRuntimeResponder + +const issuesListResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue)], + ["304", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesList = ( params: Params, @@ -3541,10 +4496,22 @@ export type IssuesList = ( | Response<422, t_validation_error> > -export type LicensesGetAllCommonlyUsedResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const licensesGetAllCommonlyUsedResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type LicensesGetAllCommonlyUsedResponder = + typeof licensesGetAllCommonlyUsedResponder & KoaRuntimeResponder + +const licensesGetAllCommonlyUsedResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_license_simple)], + ["304", z.undefined()], + ], + undefined, +) export type LicensesGetAllCommonlyUsed = ( params: Params, @@ -3556,12 +4523,25 @@ export type LicensesGetAllCommonlyUsed = ( | Response<304, void> > -export type LicensesGetResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const licensesGetResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type LicensesGetResponder = typeof licensesGetResponder & KoaRuntimeResponder + +const licensesGetResponseValidator = responseValidationFactory( + [ + ["200", s_license], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type LicensesGet = ( params: Params, @@ -3575,10 +4555,22 @@ export type LicensesGet = ( | Response<404, t_basic_error> > -export type MarkdownRenderResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const markdownRenderResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type MarkdownRenderResponder = typeof markdownRenderResponder & + KoaRuntimeResponder + +const markdownRenderResponseValidator = responseValidationFactory( + [ + ["200", z.string()], + ["304", z.undefined()], + ], + undefined, +) export type MarkdownRender = ( params: Params, @@ -3588,10 +4580,22 @@ export type MarkdownRender = ( KoaRuntimeResponse | Response<200, string> | Response<304, void> > -export type MarkdownRenderRawResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const markdownRenderRawResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type MarkdownRenderRawResponder = typeof markdownRenderRawResponder & + KoaRuntimeResponder + +const markdownRenderRawResponseValidator = responseValidationFactory( + [ + ["200", z.string()], + ["304", z.undefined()], + ], + undefined, +) export type MarkdownRenderRaw = ( params: Params, @@ -3601,11 +4605,25 @@ export type MarkdownRenderRaw = ( KoaRuntimeResponse | Response<200, string> | Response<304, void> > -export type AppsGetSubscriptionPlanForAccountResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetSubscriptionPlanForAccountResponder = { + with200: r.with200, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsGetSubscriptionPlanForAccountResponder = + typeof appsGetSubscriptionPlanForAccountResponder & KoaRuntimeResponder + +const appsGetSubscriptionPlanForAccountResponseValidator = + responseValidationFactory( + [ + ["200", s_marketplace_purchase], + ["401", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type AppsGetSubscriptionPlanForAccount = ( params: Params< @@ -3623,11 +4641,24 @@ export type AppsGetSubscriptionPlanForAccount = ( | Response<404, t_basic_error> > -export type AppsListPlansResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListPlansResponder = { + with200: r.with200, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsListPlansResponder = typeof appsListPlansResponder & + KoaRuntimeResponder + +const appsListPlansResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_marketplace_listing_plan)], + ["401", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type AppsListPlans = ( params: Params, @@ -3640,12 +4671,26 @@ export type AppsListPlans = ( | Response<404, t_basic_error> > -export type AppsListAccountsForPlanResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListAccountsForPlanResponder = { + with200: r.with200, + with401: r.with401, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsListAccountsForPlanResponder = + typeof appsListAccountsForPlanResponder & KoaRuntimeResponder + +const appsListAccountsForPlanResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_marketplace_purchase)], + ["401", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type AppsListAccountsForPlan = ( params: Params< @@ -3664,11 +4709,25 @@ export type AppsListAccountsForPlan = ( | Response<422, t_validation_error> > -export type AppsGetSubscriptionPlanForAccountStubbedResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetSubscriptionPlanForAccountStubbedResponder = { + with200: r.with200, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsGetSubscriptionPlanForAccountStubbedResponder = + typeof appsGetSubscriptionPlanForAccountStubbedResponder & KoaRuntimeResponder + +const appsGetSubscriptionPlanForAccountStubbedResponseValidator = + responseValidationFactory( + [ + ["200", s_marketplace_purchase], + ["401", s_basic_error], + ["404", z.undefined()], + ], + undefined, + ) export type AppsGetSubscriptionPlanForAccountStubbed = ( params: Params< @@ -3686,10 +4745,22 @@ export type AppsGetSubscriptionPlanForAccountStubbed = ( | Response<404, void> > -export type AppsListPlansStubbedResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListPlansStubbedResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type AppsListPlansStubbedResponder = typeof appsListPlansStubbedResponder & + KoaRuntimeResponder + +const appsListPlansStubbedResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_marketplace_listing_plan)], + ["401", s_basic_error], + ], + undefined, +) export type AppsListPlansStubbed = ( params: Params, @@ -3701,10 +4772,23 @@ export type AppsListPlansStubbed = ( | Response<401, t_basic_error> > -export type AppsListAccountsForPlanStubbedResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListAccountsForPlanStubbedResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type AppsListAccountsForPlanStubbedResponder = + typeof appsListAccountsForPlanStubbedResponder & KoaRuntimeResponder + +const appsListAccountsForPlanStubbedResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_marketplace_purchase)], + ["401", s_basic_error], + ], + undefined, + ) export type AppsListAccountsForPlanStubbed = ( params: Params< @@ -3721,10 +4805,21 @@ export type AppsListAccountsForPlanStubbed = ( | Response<401, t_basic_error> > -export type MetaGetResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const metaGetResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type MetaGetResponder = typeof metaGetResponder & KoaRuntimeResponder + +const metaGetResponseValidator = responseValidationFactory( + [ + ["200", s_api_overview], + ["304", z.undefined()], + ], + undefined, +) export type MetaGet = ( params: Params, @@ -3736,13 +4831,29 @@ export type MetaGet = ( | Response<304, void> > -export type ActivityListPublicEventsForRepoNetworkResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListPublicEventsForRepoNetworkResponder = { + with200: r.with200, + with301: r.with301, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActivityListPublicEventsForRepoNetworkResponder = + typeof activityListPublicEventsForRepoNetworkResponder & KoaRuntimeResponder + +const activityListPublicEventsForRepoNetworkResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_event)], + ["301", s_basic_error], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type ActivityListPublicEventsForRepoNetwork = ( params: Params< @@ -3762,13 +4873,30 @@ export type ActivityListPublicEventsForRepoNetwork = ( | Response<404, t_basic_error> > -export type ActivityListNotificationsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListNotificationsForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActivityListNotificationsForAuthenticatedUserResponder = + typeof activityListNotificationsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const activityListNotificationsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_thread)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type ActivityListNotificationsForAuthenticatedUser = ( params: Params< @@ -3788,15 +4916,31 @@ export type ActivityListNotificationsForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type ActivityMarkNotificationsAsReadResponder = { - with202(): KoaRuntimeResponse<{ +const activityMarkNotificationsAsReadResponder = { + with202: r.with202<{ message?: string - }> - with205(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with205: r.with205, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActivityMarkNotificationsAsReadResponder = + typeof activityMarkNotificationsAsReadResponder & KoaRuntimeResponder + +const activityMarkNotificationsAsReadResponseValidator = + responseValidationFactory( + [ + ["202", z.object({ message: z.string().optional() })], + ["205", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type ActivityMarkNotificationsAsRead = ( params: Params< @@ -3821,12 +4965,26 @@ export type ActivityMarkNotificationsAsRead = ( | Response<403, t_basic_error> > -export type ActivityGetThreadResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityGetThreadResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActivityGetThreadResponder = typeof activityGetThreadResponder & + KoaRuntimeResponder + +const activityGetThreadResponseValidator = responseValidationFactory( + [ + ["200", s_thread], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type ActivityGetThread = ( params: Params, @@ -3840,11 +4998,24 @@ export type ActivityGetThread = ( | Response<403, t_basic_error> > -export type ActivityMarkThreadAsReadResponder = { - with205(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityMarkThreadAsReadResponder = { + with205: r.with205, + with304: r.with304, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActivityMarkThreadAsReadResponder = + typeof activityMarkThreadAsReadResponder & KoaRuntimeResponder + +const activityMarkThreadAsReadResponseValidator = responseValidationFactory( + [ + ["205", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ], + undefined, +) export type ActivityMarkThreadAsRead = ( params: Params, @@ -3857,9 +5028,18 @@ export type ActivityMarkThreadAsRead = ( | Response<403, t_basic_error> > -export type ActivityMarkThreadAsDoneResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityMarkThreadAsDoneResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActivityMarkThreadAsDoneResponder = + typeof activityMarkThreadAsDoneResponder & KoaRuntimeResponder + +const activityMarkThreadAsDoneResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActivityMarkThreadAsDone = ( params: Params, @@ -3867,12 +5047,28 @@ export type ActivityMarkThreadAsDone = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActivityGetThreadSubscriptionForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityGetThreadSubscriptionForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActivityGetThreadSubscriptionForAuthenticatedUserResponder = + typeof activityGetThreadSubscriptionForAuthenticatedUserResponder & + KoaRuntimeResponder + +const activityGetThreadSubscriptionForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_thread_subscription], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type ActivityGetThreadSubscriptionForAuthenticatedUser = ( params: Params< @@ -3891,12 +5087,27 @@ export type ActivityGetThreadSubscriptionForAuthenticatedUser = ( | Response<403, t_basic_error> > -export type ActivitySetThreadSubscriptionResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activitySetThreadSubscriptionResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActivitySetThreadSubscriptionResponder = + typeof activitySetThreadSubscriptionResponder & KoaRuntimeResponder + +const activitySetThreadSubscriptionResponseValidator = + responseValidationFactory( + [ + ["200", s_thread_subscription], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type ActivitySetThreadSubscription = ( params: Params< @@ -3915,12 +5126,27 @@ export type ActivitySetThreadSubscription = ( | Response<403, t_basic_error> > -export type ActivityDeleteThreadSubscriptionResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityDeleteThreadSubscriptionResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActivityDeleteThreadSubscriptionResponder = + typeof activityDeleteThreadSubscriptionResponder & KoaRuntimeResponder + +const activityDeleteThreadSubscriptionResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type ActivityDeleteThreadSubscription = ( params: Params< @@ -3939,9 +5165,18 @@ export type ActivityDeleteThreadSubscription = ( | Response<403, t_basic_error> > -export type MetaGetOctocatResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const metaGetOctocatResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type MetaGetOctocatResponder = typeof metaGetOctocatResponder & + KoaRuntimeResponder + +const metaGetOctocatResponseValidator = responseValidationFactory( + [["200", z.string()]], + undefined, +) export type MetaGetOctocat = ( params: Params, @@ -3949,10 +5184,21 @@ export type MetaGetOctocat = ( ctx: RouterContext, ) => Promise | Response<200, string>> -export type OrgsListResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type OrgsListResponder = typeof orgsListResponder & KoaRuntimeResponder + +const orgsListResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_organization_simple)], + ["304", z.undefined()], + ], + undefined, +) export type OrgsList = ( params: Params, @@ -3964,17 +5210,40 @@ export type OrgsList = ( | Response<304, void> > -export type BillingGetGithubBillingUsageReportOrgResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with500(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const billingGetGithubBillingUsageReportOrgResponder = { + with200: r.with200, + with400: r.with400, + with403: r.with403, + with500: r.with500, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type BillingGetGithubBillingUsageReportOrgResponder = + typeof billingGetGithubBillingUsageReportOrgResponder & KoaRuntimeResponder + +const billingGetGithubBillingUsageReportOrgResponseValidator = + responseValidationFactory( + [ + ["200", s_billing_usage_report], + ["400", s_scim_error], + ["403", s_basic_error], + ["500", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type BillingGetGithubBillingUsageReportOrg = ( params: Params< @@ -4001,10 +5270,21 @@ export type BillingGetGithubBillingUsageReportOrg = ( > > -export type OrgsGetResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsGetResponder = typeof orgsGetResponder & KoaRuntimeResponder + +const orgsGetResponseValidator = responseValidationFactory( + [ + ["200", s_organization_full], + ["404", s_basic_error], + ], + undefined, +) export type OrgsGet = ( params: Params, @@ -4016,11 +5296,23 @@ export type OrgsGet = ( | Response<404, t_basic_error> > -export type OrgsUpdateResponder = { - with200(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsUpdateResponder = { + with200: r.with200, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsUpdateResponder = typeof orgsUpdateResponder & KoaRuntimeResponder + +const orgsUpdateResponseValidator = responseValidationFactory( + [ + ["200", s_organization_full], + ["409", s_basic_error], + ["422", z.union([s_validation_error, s_validation_error_simple])], + ], + undefined, +) export type OrgsUpdate = ( params: Params< @@ -4038,13 +5330,25 @@ export type OrgsUpdate = ( | Response<422, t_validation_error | t_validation_error_simple> > -export type OrgsDeleteResponder = { - with202(): KoaRuntimeResponse<{ +const orgsDeleteResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsDeleteResponder = typeof orgsDeleteResponder & KoaRuntimeResponder + +const orgsDeleteResponseValidator = responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type OrgsDelete = ( params: Params, @@ -4062,9 +5366,19 @@ export type OrgsDelete = ( | Response<404, t_basic_error> > -export type ActionsGetActionsCacheUsageForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetActionsCacheUsageForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetActionsCacheUsageForOrgResponder = + typeof actionsGetActionsCacheUsageForOrgResponder & KoaRuntimeResponder + +const actionsGetActionsCacheUsageForOrgResponseValidator = + responseValidationFactory( + [["200", s_actions_cache_usage_org_enterprise]], + undefined, + ) export type ActionsGetActionsCacheUsageForOrg = ( params: Params< @@ -4080,12 +5394,30 @@ export type ActionsGetActionsCacheUsageForOrg = ( | Response<200, t_actions_cache_usage_org_enterprise> > -export type ActionsGetActionsCacheUsageByRepoForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsGetActionsCacheUsageByRepoForOrgResponder = { + with200: r.with200<{ repository_cache_usages: t_actions_cache_usage_by_repository[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsGetActionsCacheUsageByRepoForOrgResponder = + typeof actionsGetActionsCacheUsageByRepoForOrgResponder & KoaRuntimeResponder + +const actionsGetActionsCacheUsageByRepoForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repository_cache_usages: z.array(s_actions_cache_usage_by_repository), + }), + ], + ], + undefined, + ) export type ActionsGetActionsCacheUsageByRepoForOrg = ( params: Params< @@ -4107,12 +5439,30 @@ export type ActionsGetActionsCacheUsageByRepoForOrg = ( > > -export type ActionsListHostedRunnersForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListHostedRunnersForOrgResponder = { + with200: r.with200<{ runners: t_actions_hosted_runner[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListHostedRunnersForOrgResponder = + typeof actionsListHostedRunnersForOrgResponder & KoaRuntimeResponder + +const actionsListHostedRunnersForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + runners: z.array(s_actions_hosted_runner), + }), + ], + ], + undefined, + ) export type ActionsListHostedRunnersForOrg = ( params: Params< @@ -4134,9 +5484,16 @@ export type ActionsListHostedRunnersForOrg = ( > > -export type ActionsCreateHostedRunnerForOrgResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateHostedRunnerForOrgResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateHostedRunnerForOrgResponder = + typeof actionsCreateHostedRunnerForOrgResponder & KoaRuntimeResponder + +const actionsCreateHostedRunnerForOrgResponseValidator = + responseValidationFactory([["201", s_actions_hosted_runner]], undefined) export type ActionsCreateHostedRunnerForOrg = ( params: Params< @@ -4151,12 +5508,31 @@ export type ActionsCreateHostedRunnerForOrg = ( KoaRuntimeResponse | Response<201, t_actions_hosted_runner> > -export type ActionsGetHostedRunnersGithubOwnedImagesForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsGetHostedRunnersGithubOwnedImagesForOrgResponder = { + with200: r.with200<{ images: t_actions_hosted_runner_image[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsGetHostedRunnersGithubOwnedImagesForOrgResponder = + typeof actionsGetHostedRunnersGithubOwnedImagesForOrgResponder & + KoaRuntimeResponder + +const actionsGetHostedRunnersGithubOwnedImagesForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + images: z.array(s_actions_hosted_runner_image), + }), + ], + ], + undefined, + ) export type ActionsGetHostedRunnersGithubOwnedImagesForOrg = ( params: Params< @@ -4178,12 +5554,31 @@ export type ActionsGetHostedRunnersGithubOwnedImagesForOrg = ( > > -export type ActionsGetHostedRunnersPartnerImagesForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsGetHostedRunnersPartnerImagesForOrgResponder = { + with200: r.with200<{ images: t_actions_hosted_runner_image[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsGetHostedRunnersPartnerImagesForOrgResponder = + typeof actionsGetHostedRunnersPartnerImagesForOrgResponder & + KoaRuntimeResponder + +const actionsGetHostedRunnersPartnerImagesForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + images: z.array(s_actions_hosted_runner_image), + }), + ], + ], + undefined, + ) export type ActionsGetHostedRunnersPartnerImagesForOrg = ( params: Params< @@ -4205,9 +5600,19 @@ export type ActionsGetHostedRunnersPartnerImagesForOrg = ( > > -export type ActionsGetHostedRunnersLimitsForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetHostedRunnersLimitsForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetHostedRunnersLimitsForOrgResponder = + typeof actionsGetHostedRunnersLimitsForOrgResponder & KoaRuntimeResponder + +const actionsGetHostedRunnersLimitsForOrgResponseValidator = + responseValidationFactory( + [["200", s_actions_hosted_runner_limits]], + undefined, + ) export type ActionsGetHostedRunnersLimitsForOrg = ( params: Params< @@ -4222,12 +5627,31 @@ export type ActionsGetHostedRunnersLimitsForOrg = ( KoaRuntimeResponse | Response<200, t_actions_hosted_runner_limits> > -export type ActionsGetHostedRunnersMachineSpecsForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsGetHostedRunnersMachineSpecsForOrgResponder = { + with200: r.with200<{ machine_specs: t_actions_hosted_runner_machine_spec[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsGetHostedRunnersMachineSpecsForOrgResponder = + typeof actionsGetHostedRunnersMachineSpecsForOrgResponder & + KoaRuntimeResponder + +const actionsGetHostedRunnersMachineSpecsForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + machine_specs: z.array(s_actions_hosted_runner_machine_spec), + }), + ], + ], + undefined, + ) export type ActionsGetHostedRunnersMachineSpecsForOrg = ( params: Params< @@ -4249,12 +5673,30 @@ export type ActionsGetHostedRunnersMachineSpecsForOrg = ( > > -export type ActionsGetHostedRunnersPlatformsForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsGetHostedRunnersPlatformsForOrgResponder = { + with200: r.with200<{ platforms: string[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsGetHostedRunnersPlatformsForOrgResponder = + typeof actionsGetHostedRunnersPlatformsForOrgResponder & KoaRuntimeResponder + +const actionsGetHostedRunnersPlatformsForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + platforms: z.array(z.string()), + }), + ], + ], + undefined, + ) export type ActionsGetHostedRunnersPlatformsForOrg = ( params: Params< @@ -4276,9 +5718,18 @@ export type ActionsGetHostedRunnersPlatformsForOrg = ( > > -export type ActionsGetHostedRunnerForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetHostedRunnerForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetHostedRunnerForOrgResponder = + typeof actionsGetHostedRunnerForOrgResponder & KoaRuntimeResponder + +const actionsGetHostedRunnerForOrgResponseValidator = responseValidationFactory( + [["200", s_actions_hosted_runner]], + undefined, +) export type ActionsGetHostedRunnerForOrg = ( params: Params, @@ -4288,9 +5739,16 @@ export type ActionsGetHostedRunnerForOrg = ( KoaRuntimeResponse | Response<200, t_actions_hosted_runner> > -export type ActionsUpdateHostedRunnerForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsUpdateHostedRunnerForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsUpdateHostedRunnerForOrgResponder = + typeof actionsUpdateHostedRunnerForOrgResponder & KoaRuntimeResponder + +const actionsUpdateHostedRunnerForOrgResponseValidator = + responseValidationFactory([["200", s_actions_hosted_runner]], undefined) export type ActionsUpdateHostedRunnerForOrg = ( params: Params< @@ -4305,9 +5763,16 @@ export type ActionsUpdateHostedRunnerForOrg = ( KoaRuntimeResponse | Response<200, t_actions_hosted_runner> > -export type ActionsDeleteHostedRunnerForOrgResponder = { - with202(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteHostedRunnerForOrgResponder = { + with202: r.with202, + withStatus: r.withStatus, +} + +type ActionsDeleteHostedRunnerForOrgResponder = + typeof actionsDeleteHostedRunnerForOrgResponder & KoaRuntimeResponder + +const actionsDeleteHostedRunnerForOrgResponseValidator = + responseValidationFactory([["202", s_actions_hosted_runner]], undefined) export type ActionsDeleteHostedRunnerForOrg = ( params: Params< @@ -4322,9 +5787,16 @@ export type ActionsDeleteHostedRunnerForOrg = ( KoaRuntimeResponse | Response<202, t_actions_hosted_runner> > -export type OidcGetOidcCustomSubTemplateForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const oidcGetOidcCustomSubTemplateForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type OidcGetOidcCustomSubTemplateForOrgResponder = + typeof oidcGetOidcCustomSubTemplateForOrgResponder & KoaRuntimeResponder + +const oidcGetOidcCustomSubTemplateForOrgResponseValidator = + responseValidationFactory([["200", s_oidc_custom_sub]], undefined) export type OidcGetOidcCustomSubTemplateForOrg = ( params: Params< @@ -4337,11 +5809,25 @@ export type OidcGetOidcCustomSubTemplateForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_oidc_custom_sub>> -export type OidcUpdateOidcCustomSubTemplateForOrgResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const oidcUpdateOidcCustomSubTemplateForOrgResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OidcUpdateOidcCustomSubTemplateForOrgResponder = + typeof oidcUpdateOidcCustomSubTemplateForOrgResponder & KoaRuntimeResponder + +const oidcUpdateOidcCustomSubTemplateForOrgResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type OidcUpdateOidcCustomSubTemplateForOrg = ( params: Params< @@ -4359,9 +5845,20 @@ export type OidcUpdateOidcCustomSubTemplateForOrg = ( | Response<404, t_basic_error> > -export type ActionsGetGithubActionsPermissionsOrganizationResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetGithubActionsPermissionsOrganizationResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetGithubActionsPermissionsOrganizationResponder = + typeof actionsGetGithubActionsPermissionsOrganizationResponder & + KoaRuntimeResponder + +const actionsGetGithubActionsPermissionsOrganizationResponseValidator = + responseValidationFactory( + [["200", s_actions_organization_permissions]], + undefined, + ) export type ActionsGetGithubActionsPermissionsOrganization = ( params: Params< @@ -4377,9 +5874,17 @@ export type ActionsGetGithubActionsPermissionsOrganization = ( | Response<200, t_actions_organization_permissions> > -export type ActionsSetGithubActionsPermissionsOrganizationResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetGithubActionsPermissionsOrganizationResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetGithubActionsPermissionsOrganizationResponder = + typeof actionsSetGithubActionsPermissionsOrganizationResponder & + KoaRuntimeResponder + +const actionsSetGithubActionsPermissionsOrganizationResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetGithubActionsPermissionsOrganization = ( params: Params< @@ -4392,13 +5897,32 @@ export type ActionsSetGithubActionsPermissionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder = +const actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder = { - with200(): KoaRuntimeResponse<{ + with200: r.with200<{ repositories: t_repository[] total_count: number - }> - } & KoaRuntimeResponder + }>, + withStatus: r.withStatus, + } + +type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder = + typeof actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder & + KoaRuntimeResponder + +const actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_repository), + }), + ], + ], + undefined, + ) export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganization = ( params: Params< @@ -4420,10 +5944,18 @@ export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganization = ( > > -export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder = +const actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder = { - with204(): KoaRuntimeResponse - } & KoaRuntimeResponder + with204: r.with204, + withStatus: r.withStatus, + } + +type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder = + typeof actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder & + KoaRuntimeResponder + +const actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization = ( params: Params< @@ -4436,10 +5968,17 @@ export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsEnableSelectedRepositoryGithubActionsOrganizationResponder = - { - with204(): KoaRuntimeResponse - } & KoaRuntimeResponder +const actionsEnableSelectedRepositoryGithubActionsOrganizationResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsEnableSelectedRepositoryGithubActionsOrganizationResponder = + typeof actionsEnableSelectedRepositoryGithubActionsOrganizationResponder & + KoaRuntimeResponder + +const actionsEnableSelectedRepositoryGithubActionsOrganizationResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsEnableSelectedRepositoryGithubActionsOrganization = ( params: Params< @@ -4452,10 +5991,17 @@ export type ActionsEnableSelectedRepositoryGithubActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsDisableSelectedRepositoryGithubActionsOrganizationResponder = - { - with204(): KoaRuntimeResponse - } & KoaRuntimeResponder +const actionsDisableSelectedRepositoryGithubActionsOrganizationResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDisableSelectedRepositoryGithubActionsOrganizationResponder = + typeof actionsDisableSelectedRepositoryGithubActionsOrganizationResponder & + KoaRuntimeResponder + +const actionsDisableSelectedRepositoryGithubActionsOrganizationResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsDisableSelectedRepositoryGithubActionsOrganization = ( params: Params< @@ -4468,9 +6014,16 @@ export type ActionsDisableSelectedRepositoryGithubActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsGetAllowedActionsOrganizationResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetAllowedActionsOrganizationResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetAllowedActionsOrganizationResponder = + typeof actionsGetAllowedActionsOrganizationResponder & KoaRuntimeResponder + +const actionsGetAllowedActionsOrganizationResponseValidator = + responseValidationFactory([["200", s_selected_actions]], undefined) export type ActionsGetAllowedActionsOrganization = ( params: Params< @@ -4483,9 +6036,16 @@ export type ActionsGetAllowedActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<200, t_selected_actions>> -export type ActionsSetAllowedActionsOrganizationResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetAllowedActionsOrganizationResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetAllowedActionsOrganizationResponder = + typeof actionsSetAllowedActionsOrganizationResponder & KoaRuntimeResponder + +const actionsSetAllowedActionsOrganizationResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetAllowedActionsOrganization = ( params: Params< @@ -4498,10 +6058,20 @@ export type ActionsSetAllowedActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = - { - with200(): KoaRuntimeResponse - } & KoaRuntimeResponder +const actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = + typeof actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder & + KoaRuntimeResponder + +const actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponseValidator = + responseValidationFactory( + [["200", s_actions_get_default_workflow_permissions]], + undefined, + ) export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization = ( params: Params< @@ -4517,10 +6087,17 @@ export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization = ( | Response<200, t_actions_get_default_workflow_permissions> > -export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = - { - with204(): KoaRuntimeResponse - } & KoaRuntimeResponder +const actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = + typeof actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder & + KoaRuntimeResponder + +const actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization = ( params: Params< @@ -4534,12 +6111,30 @@ export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListSelfHostedRunnerGroupsForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListSelfHostedRunnerGroupsForOrgResponder = { + with200: r.with200<{ runner_groups: t_runner_groups_org[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListSelfHostedRunnerGroupsForOrgResponder = + typeof actionsListSelfHostedRunnerGroupsForOrgResponder & KoaRuntimeResponder + +const actionsListSelfHostedRunnerGroupsForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + runner_groups: z.array(s_runner_groups_org), + }), + ], + ], + undefined, + ) export type ActionsListSelfHostedRunnerGroupsForOrg = ( params: Params< @@ -4561,9 +6156,16 @@ export type ActionsListSelfHostedRunnerGroupsForOrg = ( > > -export type ActionsCreateSelfHostedRunnerGroupForOrgResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateSelfHostedRunnerGroupForOrgResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateSelfHostedRunnerGroupForOrgResponder = + typeof actionsCreateSelfHostedRunnerGroupForOrgResponder & KoaRuntimeResponder + +const actionsCreateSelfHostedRunnerGroupForOrgResponseValidator = + responseValidationFactory([["201", s_runner_groups_org]], undefined) export type ActionsCreateSelfHostedRunnerGroupForOrg = ( params: Params< @@ -4576,9 +6178,16 @@ export type ActionsCreateSelfHostedRunnerGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<201, t_runner_groups_org>> -export type ActionsGetSelfHostedRunnerGroupForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetSelfHostedRunnerGroupForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetSelfHostedRunnerGroupForOrgResponder = + typeof actionsGetSelfHostedRunnerGroupForOrgResponder & KoaRuntimeResponder + +const actionsGetSelfHostedRunnerGroupForOrgResponseValidator = + responseValidationFactory([["200", s_runner_groups_org]], undefined) export type ActionsGetSelfHostedRunnerGroupForOrg = ( params: Params< @@ -4591,9 +6200,16 @@ export type ActionsGetSelfHostedRunnerGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_runner_groups_org>> -export type ActionsUpdateSelfHostedRunnerGroupForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsUpdateSelfHostedRunnerGroupForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsUpdateSelfHostedRunnerGroupForOrgResponder = + typeof actionsUpdateSelfHostedRunnerGroupForOrgResponder & KoaRuntimeResponder + +const actionsUpdateSelfHostedRunnerGroupForOrgResponseValidator = + responseValidationFactory([["200", s_runner_groups_org]], undefined) export type ActionsUpdateSelfHostedRunnerGroupForOrg = ( params: Params< @@ -4606,9 +6222,17 @@ export type ActionsUpdateSelfHostedRunnerGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_runner_groups_org>> -export type ActionsDeleteSelfHostedRunnerGroupFromOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteSelfHostedRunnerGroupFromOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteSelfHostedRunnerGroupFromOrgResponder = + typeof actionsDeleteSelfHostedRunnerGroupFromOrgResponder & + KoaRuntimeResponder + +const actionsDeleteSelfHostedRunnerGroupFromOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsDeleteSelfHostedRunnerGroupFromOrg = ( params: Params< @@ -4621,12 +6245,31 @@ export type ActionsDeleteSelfHostedRunnerGroupFromOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListGithubHostedRunnersInGroupForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListGithubHostedRunnersInGroupForOrgResponder = { + with200: r.with200<{ runners: t_actions_hosted_runner[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListGithubHostedRunnersInGroupForOrgResponder = + typeof actionsListGithubHostedRunnersInGroupForOrgResponder & + KoaRuntimeResponder + +const actionsListGithubHostedRunnersInGroupForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + runners: z.array(s_actions_hosted_runner), + }), + ], + ], + undefined, + ) export type ActionsListGithubHostedRunnersInGroupForOrg = ( params: Params< @@ -4648,12 +6291,31 @@ export type ActionsListGithubHostedRunnersInGroupForOrg = ( > > -export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder = { + with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder = + typeof actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder & + KoaRuntimeResponder + +const actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ], + ], + undefined, + ) export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< @@ -4675,9 +6337,17 @@ export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrg = ( > > -export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder = + typeof actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder & + KoaRuntimeResponder + +const actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< @@ -4690,9 +6360,17 @@ export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder = + typeof actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder & + KoaRuntimeResponder + +const actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< @@ -4705,9 +6383,17 @@ export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder = + typeof actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder & + KoaRuntimeResponder + +const actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< @@ -4720,12 +6406,31 @@ export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListSelfHostedRunnersInGroupForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListSelfHostedRunnersInGroupForOrgResponder = { + with200: r.with200<{ runners: t_runner[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListSelfHostedRunnersInGroupForOrgResponder = + typeof actionsListSelfHostedRunnersInGroupForOrgResponder & + KoaRuntimeResponder + +const actionsListSelfHostedRunnersInGroupForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + runners: z.array(s_runner), + }), + ], + ], + undefined, + ) export type ActionsListSelfHostedRunnersInGroupForOrg = ( params: Params< @@ -4747,9 +6452,16 @@ export type ActionsListSelfHostedRunnersInGroupForOrg = ( > > -export type ActionsSetSelfHostedRunnersInGroupForOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetSelfHostedRunnersInGroupForOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetSelfHostedRunnersInGroupForOrgResponder = + typeof actionsSetSelfHostedRunnersInGroupForOrgResponder & KoaRuntimeResponder + +const actionsSetSelfHostedRunnersInGroupForOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetSelfHostedRunnersInGroupForOrg = ( params: Params< @@ -4762,9 +6474,16 @@ export type ActionsSetSelfHostedRunnersInGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsAddSelfHostedRunnerToGroupForOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsAddSelfHostedRunnerToGroupForOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsAddSelfHostedRunnerToGroupForOrgResponder = + typeof actionsAddSelfHostedRunnerToGroupForOrgResponder & KoaRuntimeResponder + +const actionsAddSelfHostedRunnerToGroupForOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsAddSelfHostedRunnerToGroupForOrg = ( params: Params< @@ -4777,9 +6496,17 @@ export type ActionsAddSelfHostedRunnerToGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsRemoveSelfHostedRunnerFromGroupForOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsRemoveSelfHostedRunnerFromGroupForOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsRemoveSelfHostedRunnerFromGroupForOrgResponder = + typeof actionsRemoveSelfHostedRunnerFromGroupForOrgResponder & + KoaRuntimeResponder + +const actionsRemoveSelfHostedRunnerFromGroupForOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsRemoveSelfHostedRunnerFromGroupForOrg = ( params: Params< @@ -4792,12 +6519,30 @@ export type ActionsRemoveSelfHostedRunnerFromGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListSelfHostedRunnersForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListSelfHostedRunnersForOrgResponder = { + with200: r.with200<{ runners: t_runner[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListSelfHostedRunnersForOrgResponder = + typeof actionsListSelfHostedRunnersForOrgResponder & KoaRuntimeResponder + +const actionsListSelfHostedRunnersForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + runners: z.array(s_runner), + }), + ], + ], + undefined, + ) export type ActionsListSelfHostedRunnersForOrg = ( params: Params< @@ -4819,9 +6564,16 @@ export type ActionsListSelfHostedRunnersForOrg = ( > > -export type ActionsListRunnerApplicationsForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsListRunnerApplicationsForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsListRunnerApplicationsForOrgResponder = + typeof actionsListRunnerApplicationsForOrgResponder & KoaRuntimeResponder + +const actionsListRunnerApplicationsForOrgResponseValidator = + responseValidationFactory([["200", z.array(s_runner_application)]], undefined) export type ActionsListRunnerApplicationsForOrg = ( params: Params< @@ -4836,15 +6588,30 @@ export type ActionsListRunnerApplicationsForOrg = ( KoaRuntimeResponse | Response<200, t_runner_application[]> > -export type ActionsGenerateRunnerJitconfigForOrgResponder = { - with201(): KoaRuntimeResponse<{ +const actionsGenerateRunnerJitconfigForOrgResponder = { + with201: r.with201<{ encoded_jit_config: string runner: t_runner - }> - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsGenerateRunnerJitconfigForOrgResponder = + typeof actionsGenerateRunnerJitconfigForOrgResponder & KoaRuntimeResponder + +const actionsGenerateRunnerJitconfigForOrgResponseValidator = + responseValidationFactory( + [ + ["201", z.object({ runner: s_runner, encoded_jit_config: z.string() })], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsGenerateRunnerJitconfigForOrg = ( params: Params< @@ -4869,9 +6636,16 @@ export type ActionsGenerateRunnerJitconfigForOrg = ( | Response<422, t_validation_error_simple> > -export type ActionsCreateRegistrationTokenForOrgResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateRegistrationTokenForOrgResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateRegistrationTokenForOrgResponder = + typeof actionsCreateRegistrationTokenForOrgResponder & KoaRuntimeResponder + +const actionsCreateRegistrationTokenForOrgResponseValidator = + responseValidationFactory([["201", s_authentication_token]], undefined) export type ActionsCreateRegistrationTokenForOrg = ( params: Params< @@ -4886,9 +6660,16 @@ export type ActionsCreateRegistrationTokenForOrg = ( KoaRuntimeResponse | Response<201, t_authentication_token> > -export type ActionsCreateRemoveTokenForOrgResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateRemoveTokenForOrgResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateRemoveTokenForOrgResponder = + typeof actionsCreateRemoveTokenForOrgResponder & KoaRuntimeResponder + +const actionsCreateRemoveTokenForOrgResponseValidator = + responseValidationFactory([["201", s_authentication_token]], undefined) export type ActionsCreateRemoveTokenForOrg = ( params: Params, @@ -4898,9 +6679,16 @@ export type ActionsCreateRemoveTokenForOrg = ( KoaRuntimeResponse | Response<201, t_authentication_token> > -export type ActionsGetSelfHostedRunnerForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetSelfHostedRunnerForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetSelfHostedRunnerForOrgResponder = + typeof actionsGetSelfHostedRunnerForOrgResponder & KoaRuntimeResponder + +const actionsGetSelfHostedRunnerForOrgResponseValidator = + responseValidationFactory([["200", s_runner]], undefined) export type ActionsGetSelfHostedRunnerForOrg = ( params: Params< @@ -4913,9 +6701,16 @@ export type ActionsGetSelfHostedRunnerForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_runner>> -export type ActionsDeleteSelfHostedRunnerFromOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteSelfHostedRunnerFromOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteSelfHostedRunnerFromOrgResponder = + typeof actionsDeleteSelfHostedRunnerFromOrgResponder & KoaRuntimeResponder + +const actionsDeleteSelfHostedRunnerFromOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsDeleteSelfHostedRunnerFromOrg = ( params: Params< @@ -4928,13 +6723,33 @@ export type ActionsDeleteSelfHostedRunnerFromOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListLabelsForSelfHostedRunnerForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListLabelsForSelfHostedRunnerForOrgResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActionsListLabelsForSelfHostedRunnerForOrgResponder = + typeof actionsListLabelsForSelfHostedRunnerForOrgResponder & + KoaRuntimeResponder + +const actionsListLabelsForSelfHostedRunnerForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ], + undefined, + ) export type ActionsListLabelsForSelfHostedRunnerForOrg = ( params: Params< @@ -4957,14 +6772,35 @@ export type ActionsListLabelsForSelfHostedRunnerForOrg = ( | Response<404, t_basic_error> > -export type ActionsAddCustomLabelsToSelfHostedRunnerForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsAddCustomLabelsToSelfHostedRunnerForOrgResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsAddCustomLabelsToSelfHostedRunnerForOrgResponder = + typeof actionsAddCustomLabelsToSelfHostedRunnerForOrgResponder & + KoaRuntimeResponder + +const actionsAddCustomLabelsToSelfHostedRunnerForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg = ( params: Params< @@ -4988,14 +6824,35 @@ export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg = ( | Response<422, t_validation_error_simple> > -export type ActionsSetCustomLabelsForSelfHostedRunnerForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsSetCustomLabelsForSelfHostedRunnerForOrgResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsSetCustomLabelsForSelfHostedRunnerForOrgResponder = + typeof actionsSetCustomLabelsForSelfHostedRunnerForOrgResponder & + KoaRuntimeResponder + +const actionsSetCustomLabelsForSelfHostedRunnerForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg = ( params: Params< @@ -5019,13 +6876,33 @@ export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg = ( | Response<422, t_validation_error_simple> > -export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder = + typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder & + KoaRuntimeResponder + +const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ], + undefined, + ) export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg = ( params: Params< @@ -5048,14 +6925,35 @@ export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg = ( | Response<404, t_basic_error> > -export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder = + typeof actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder & + KoaRuntimeResponder + +const actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg = ( params: Params< @@ -5079,12 +6977,29 @@ export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg = ( | Response<422, t_validation_error_simple> > -export type ActionsListOrgSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListOrgSecretsResponder = { + with200: r.with200<{ secrets: t_organization_actions_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListOrgSecretsResponder = typeof actionsListOrgSecretsResponder & + KoaRuntimeResponder + +const actionsListOrgSecretsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_organization_actions_secret), + }), + ], + ], + undefined, +) export type ActionsListOrgSecrets = ( params: Params< @@ -5106,9 +7021,18 @@ export type ActionsListOrgSecrets = ( > > -export type ActionsGetOrgPublicKeyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetOrgPublicKeyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetOrgPublicKeyResponder = typeof actionsGetOrgPublicKeyResponder & + KoaRuntimeResponder + +const actionsGetOrgPublicKeyResponseValidator = responseValidationFactory( + [["200", s_actions_public_key]], + undefined, +) export type ActionsGetOrgPublicKey = ( params: Params, @@ -5116,9 +7040,18 @@ export type ActionsGetOrgPublicKey = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> -export type ActionsGetOrgSecretResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetOrgSecretResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetOrgSecretResponder = typeof actionsGetOrgSecretResponder & + KoaRuntimeResponder + +const actionsGetOrgSecretResponseValidator = responseValidationFactory( + [["200", s_organization_actions_secret]], + undefined, +) export type ActionsGetOrgSecret = ( params: Params, @@ -5128,10 +7061,23 @@ export type ActionsGetOrgSecret = ( KoaRuntimeResponse | Response<200, t_organization_actions_secret> > -export type ActionsCreateOrUpdateOrgSecretResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateOrUpdateOrgSecretResponder = { + with201: r.with201, + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsCreateOrUpdateOrgSecretResponder = + typeof actionsCreateOrUpdateOrgSecretResponder & KoaRuntimeResponder + +const actionsCreateOrUpdateOrgSecretResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["204", z.undefined()], + ], + undefined, + ) export type ActionsCreateOrUpdateOrgSecret = ( params: Params< @@ -5148,9 +7094,18 @@ export type ActionsCreateOrUpdateOrgSecret = ( | Response<204, void> > -export type ActionsDeleteOrgSecretResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteOrgSecretResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteOrgSecretResponder = typeof actionsDeleteOrgSecretResponder & + KoaRuntimeResponder + +const actionsDeleteOrgSecretResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsDeleteOrgSecret = ( params: Params, @@ -5158,12 +7113,30 @@ export type ActionsDeleteOrgSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListSelectedReposForOrgSecretResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListSelectedReposForOrgSecretResponder = { + with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListSelectedReposForOrgSecretResponder = + typeof actionsListSelectedReposForOrgSecretResponder & KoaRuntimeResponder + +const actionsListSelectedReposForOrgSecretResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ], + ], + undefined, + ) export type ActionsListSelectedReposForOrgSecret = ( params: Params< @@ -5185,9 +7158,16 @@ export type ActionsListSelectedReposForOrgSecret = ( > > -export type ActionsSetSelectedReposForOrgSecretResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetSelectedReposForOrgSecretResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetSelectedReposForOrgSecretResponder = + typeof actionsSetSelectedReposForOrgSecretResponder & KoaRuntimeResponder + +const actionsSetSelectedReposForOrgSecretResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetSelectedReposForOrgSecret = ( params: Params< @@ -5200,10 +7180,23 @@ export type ActionsSetSelectedReposForOrgSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsAddSelectedRepoToOrgSecretResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsAddSelectedRepoToOrgSecretResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsAddSelectedRepoToOrgSecretResponder = + typeof actionsAddSelectedRepoToOrgSecretResponder & KoaRuntimeResponder + +const actionsAddSelectedRepoToOrgSecretResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type ActionsAddSelectedRepoToOrgSecret = ( params: Params< @@ -5218,10 +7211,23 @@ export type ActionsAddSelectedRepoToOrgSecret = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type ActionsRemoveSelectedRepoFromOrgSecretResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsRemoveSelectedRepoFromOrgSecretResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsRemoveSelectedRepoFromOrgSecretResponder = + typeof actionsRemoveSelectedRepoFromOrgSecretResponder & KoaRuntimeResponder + +const actionsRemoveSelectedRepoFromOrgSecretResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type ActionsRemoveSelectedRepoFromOrgSecret = ( params: Params< @@ -5236,12 +7242,29 @@ export type ActionsRemoveSelectedRepoFromOrgSecret = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type ActionsListOrgVariablesResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListOrgVariablesResponder = { + with200: r.with200<{ total_count: number variables: t_organization_actions_variable[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListOrgVariablesResponder = + typeof actionsListOrgVariablesResponder & KoaRuntimeResponder + +const actionsListOrgVariablesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + variables: z.array(s_organization_actions_variable), + }), + ], + ], + undefined, +) export type ActionsListOrgVariables = ( params: Params< @@ -5263,9 +7286,18 @@ export type ActionsListOrgVariables = ( > > -export type ActionsCreateOrgVariableResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateOrgVariableResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateOrgVariableResponder = + typeof actionsCreateOrgVariableResponder & KoaRuntimeResponder + +const actionsCreateOrgVariableResponseValidator = responseValidationFactory( + [["201", s_empty_object]], + undefined, +) export type ActionsCreateOrgVariable = ( params: Params< @@ -5278,9 +7310,18 @@ export type ActionsCreateOrgVariable = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -export type ActionsGetOrgVariableResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetOrgVariableResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetOrgVariableResponder = typeof actionsGetOrgVariableResponder & + KoaRuntimeResponder + +const actionsGetOrgVariableResponseValidator = responseValidationFactory( + [["200", s_organization_actions_variable]], + undefined, +) export type ActionsGetOrgVariable = ( params: Params, @@ -5290,9 +7331,18 @@ export type ActionsGetOrgVariable = ( KoaRuntimeResponse | Response<200, t_organization_actions_variable> > -export type ActionsUpdateOrgVariableResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsUpdateOrgVariableResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsUpdateOrgVariableResponder = + typeof actionsUpdateOrgVariableResponder & KoaRuntimeResponder + +const actionsUpdateOrgVariableResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsUpdateOrgVariable = ( params: Params< @@ -5305,9 +7355,18 @@ export type ActionsUpdateOrgVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsDeleteOrgVariableResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteOrgVariableResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteOrgVariableResponder = + typeof actionsDeleteOrgVariableResponder & KoaRuntimeResponder + +const actionsDeleteOrgVariableResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsDeleteOrgVariable = ( params: Params, @@ -5315,13 +7374,32 @@ export type ActionsDeleteOrgVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListSelectedReposForOrgVariableResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListSelectedReposForOrgVariableResponder = { + with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }> - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsListSelectedReposForOrgVariableResponder = + typeof actionsListSelectedReposForOrgVariableResponder & KoaRuntimeResponder + +const actionsListSelectedReposForOrgVariableResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ], + ["409", z.undefined()], + ], + undefined, + ) export type ActionsListSelectedReposForOrgVariable = ( params: Params< @@ -5344,10 +7422,23 @@ export type ActionsListSelectedReposForOrgVariable = ( | Response<409, void> > -export type ActionsSetSelectedReposForOrgVariableResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetSelectedReposForOrgVariableResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsSetSelectedReposForOrgVariableResponder = + typeof actionsSetSelectedReposForOrgVariableResponder & KoaRuntimeResponder + +const actionsSetSelectedReposForOrgVariableResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type ActionsSetSelectedReposForOrgVariable = ( params: Params< @@ -5362,10 +7453,23 @@ export type ActionsSetSelectedReposForOrgVariable = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type ActionsAddSelectedRepoToOrgVariableResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsAddSelectedRepoToOrgVariableResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsAddSelectedRepoToOrgVariableResponder = + typeof actionsAddSelectedRepoToOrgVariableResponder & KoaRuntimeResponder + +const actionsAddSelectedRepoToOrgVariableResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type ActionsAddSelectedRepoToOrgVariable = ( params: Params< @@ -5380,10 +7484,23 @@ export type ActionsAddSelectedRepoToOrgVariable = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type ActionsRemoveSelectedRepoFromOrgVariableResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsRemoveSelectedRepoFromOrgVariableResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsRemoveSelectedRepoFromOrgVariableResponder = + typeof actionsRemoveSelectedRepoFromOrgVariableResponder & KoaRuntimeResponder + +const actionsRemoveSelectedRepoFromOrgVariableResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type ActionsRemoveSelectedRepoFromOrgVariable = ( params: Params< @@ -5398,8 +7515,8 @@ export type ActionsRemoveSelectedRepoFromOrgVariable = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type OrgsListAttestationsResponder = { - with200(): KoaRuntimeResponse<{ +const orgsListAttestationsResponder = { + with200: r.with200<{ attestations?: { bundle?: { dsseEnvelope?: { @@ -5413,8 +7530,38 @@ export type OrgsListAttestationsResponder = { bundle_url?: string repository_id?: number }[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type OrgsListAttestationsResponder = typeof orgsListAttestationsResponder & + KoaRuntimeResponder + +const orgsListAttestationsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + attestations: z + .array( + z.object({ + bundle: z + .object({ + mediaType: z.string().optional(), + verificationMaterial: z.record(z.unknown()).optional(), + dsseEnvelope: z.record(z.unknown()).optional(), + }) + .optional(), + repository_id: z.coerce.number().optional(), + bundle_url: z.string().optional(), + }), + ) + .optional(), + }), + ], + ], + undefined, +) export type OrgsListAttestations = ( params: Params< @@ -5447,9 +7594,18 @@ export type OrgsListAttestations = ( > > -export type OrgsListBlockedUsersResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListBlockedUsersResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type OrgsListBlockedUsersResponder = typeof orgsListBlockedUsersResponder & + KoaRuntimeResponder + +const orgsListBlockedUsersResponseValidator = responseValidationFactory( + [["200", z.array(s_simple_user)]], + undefined, +) export type OrgsListBlockedUsers = ( params: Params< @@ -5462,10 +7618,22 @@ export type OrgsListBlockedUsers = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -export type OrgsCheckBlockedUserResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCheckBlockedUserResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsCheckBlockedUserResponder = typeof orgsCheckBlockedUserResponder & + KoaRuntimeResponder + +const orgsCheckBlockedUserResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type OrgsCheckBlockedUser = ( params: Params, @@ -5477,10 +7645,22 @@ export type OrgsCheckBlockedUser = ( | Response<404, t_basic_error> > -export type OrgsBlockUserResponder = { - with204(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsBlockUserResponder = { + with204: r.with204, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsBlockUserResponder = typeof orgsBlockUserResponder & + KoaRuntimeResponder + +const orgsBlockUserResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["422", s_validation_error], + ], + undefined, +) export type OrgsBlockUser = ( params: Params, @@ -5492,9 +7672,18 @@ export type OrgsBlockUser = ( | Response<422, t_validation_error> > -export type OrgsUnblockUserResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsUnblockUserResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type OrgsUnblockUserResponder = typeof orgsUnblockUserResponder & + KoaRuntimeResponder + +const orgsUnblockUserResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type OrgsUnblockUser = ( params: Params, @@ -5502,15 +7691,35 @@ export type OrgsUnblockUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type CampaignsListOrgCampaignsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const campaignsListOrgCampaignsResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CampaignsListOrgCampaignsResponder = + typeof campaignsListOrgCampaignsResponder & KoaRuntimeResponder + +const campaignsListOrgCampaignsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_campaign_summary)], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CampaignsListOrgCampaigns = ( params: Params< @@ -5535,18 +7744,41 @@ export type CampaignsListOrgCampaigns = ( > > -export type CampaignsCreateCampaignResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with429(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const campaignsCreateCampaignResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + with422: r.with422, + with429: r.with429, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CampaignsCreateCampaignResponder = + typeof campaignsCreateCampaignResponder & KoaRuntimeResponder + +const campaignsCreateCampaignResponseValidator = responseValidationFactory( + [ + ["200", s_campaign_summary], + ["400", s_basic_error], + ["404", s_basic_error], + ["422", s_basic_error], + ["429", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CampaignsCreateCampaign = ( params: Params< @@ -5574,16 +7806,37 @@ export type CampaignsCreateCampaign = ( > > -export type CampaignsGetCampaignSummaryResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const campaignsGetCampaignSummaryResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CampaignsGetCampaignSummaryResponder = + typeof campaignsGetCampaignSummaryResponder & KoaRuntimeResponder + +const campaignsGetCampaignSummaryResponseValidator = responseValidationFactory( + [ + ["200", s_campaign_summary], + ["404", s_basic_error], + ["422", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CampaignsGetCampaignSummary = ( params: Params, @@ -5604,17 +7857,39 @@ export type CampaignsGetCampaignSummary = ( > > -export type CampaignsUpdateCampaignResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const campaignsUpdateCampaignResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CampaignsUpdateCampaignResponder = + typeof campaignsUpdateCampaignResponder & KoaRuntimeResponder + +const campaignsUpdateCampaignResponseValidator = responseValidationFactory( + [ + ["200", s_campaign_summary], + ["400", s_basic_error], + ["404", s_basic_error], + ["422", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CampaignsUpdateCampaign = ( params: Params< @@ -5641,15 +7916,35 @@ export type CampaignsUpdateCampaign = ( > > -export type CampaignsDeleteCampaignResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const campaignsDeleteCampaignResponder = { + with204: r.with204, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CampaignsDeleteCampaignResponder = + typeof campaignsDeleteCampaignResponder & KoaRuntimeResponder + +const campaignsDeleteCampaignResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CampaignsDeleteCampaign = ( params: Params, @@ -5669,15 +7964,35 @@ export type CampaignsDeleteCampaign = ( > > -export type CodeScanningListAlertsForOrgResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningListAlertsForOrgResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningListAlertsForOrgResponder = + typeof codeScanningListAlertsForOrgResponder & KoaRuntimeResponder + +const codeScanningListAlertsForOrgResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_code_scanning_organization_alert_items)], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningListAlertsForOrg = ( params: Params< @@ -5702,11 +8017,25 @@ export type CodeScanningListAlertsForOrg = ( > > -export type CodeSecurityGetConfigurationsForOrgResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetConfigurationsForOrgResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityGetConfigurationsForOrgResponder = + typeof codeSecurityGetConfigurationsForOrgResponder & KoaRuntimeResponder + +const codeSecurityGetConfigurationsForOrgResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_security_configuration)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecurityGetConfigurationsForOrg = ( params: Params< @@ -5724,9 +8053,16 @@ export type CodeSecurityGetConfigurationsForOrg = ( | Response<404, t_basic_error> > -export type CodeSecurityCreateConfigurationResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityCreateConfigurationResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type CodeSecurityCreateConfigurationResponder = + typeof codeSecurityCreateConfigurationResponder & KoaRuntimeResponder + +const codeSecurityCreateConfigurationResponseValidator = + responseValidationFactory([["201", s_code_security_configuration]], undefined) export type CodeSecurityCreateConfiguration = ( params: Params< @@ -5741,12 +8077,27 @@ export type CodeSecurityCreateConfiguration = ( KoaRuntimeResponse | Response<201, t_code_security_configuration> > -export type CodeSecurityGetDefaultConfigurationsResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetDefaultConfigurationsResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityGetDefaultConfigurationsResponder = + typeof codeSecurityGetDefaultConfigurationsResponder & KoaRuntimeResponder + +const codeSecurityGetDefaultConfigurationsResponseValidator = + responseValidationFactory( + [ + ["200", s_code_security_default_configurations], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecurityGetDefaultConfigurations = ( params: Params< @@ -5765,13 +8116,29 @@ export type CodeSecurityGetDefaultConfigurations = ( | Response<404, t_basic_error> > -export type CodeSecurityDetachConfigurationResponder = { - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityDetachConfigurationResponder = { + with204: r.with204, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type CodeSecurityDetachConfigurationResponder = + typeof codeSecurityDetachConfigurationResponder & KoaRuntimeResponder + +const codeSecurityDetachConfigurationResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, + ) export type CodeSecurityDetachConfiguration = ( params: Params< @@ -5791,12 +8158,26 @@ export type CodeSecurityDetachConfiguration = ( | Response<409, t_basic_error> > -export type CodeSecurityGetConfigurationResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetConfigurationResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityGetConfigurationResponder = + typeof codeSecurityGetConfigurationResponder & KoaRuntimeResponder + +const codeSecurityGetConfigurationResponseValidator = responseValidationFactory( + [ + ["200", s_code_security_configuration], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type CodeSecurityGetConfiguration = ( params: Params, @@ -5810,10 +8191,23 @@ export type CodeSecurityGetConfiguration = ( | Response<404, t_basic_error> > -export type CodeSecurityUpdateConfigurationResponder = { - with200(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityUpdateConfigurationResponder = { + with200: r.with200, + with204: r.with204, + withStatus: r.withStatus, +} + +type CodeSecurityUpdateConfigurationResponder = + typeof codeSecurityUpdateConfigurationResponder & KoaRuntimeResponder + +const codeSecurityUpdateConfigurationResponseValidator = + responseValidationFactory( + [ + ["200", s_code_security_configuration], + ["204", z.undefined()], + ], + undefined, + ) export type CodeSecurityUpdateConfiguration = ( params: Params< @@ -5830,13 +8224,29 @@ export type CodeSecurityUpdateConfiguration = ( | Response<204, void> > -export type CodeSecurityDeleteConfigurationResponder = { - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityDeleteConfigurationResponder = { + with204: r.with204, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type CodeSecurityDeleteConfigurationResponder = + typeof codeSecurityDeleteConfigurationResponder & KoaRuntimeResponder + +const codeSecurityDeleteConfigurationResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, + ) export type CodeSecurityDeleteConfiguration = ( params: Params< @@ -5856,11 +8266,18 @@ export type CodeSecurityDeleteConfiguration = ( | Response<409, t_basic_error> > -export type CodeSecurityAttachConfigurationResponder = { - with202(): KoaRuntimeResponse<{ +const codeSecurityAttachConfigurationResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeSecurityAttachConfigurationResponder = + typeof codeSecurityAttachConfigurationResponder & KoaRuntimeResponder + +const codeSecurityAttachConfigurationResponseValidator = + responseValidationFactory([["202", z.record(z.unknown())]], undefined) export type CodeSecurityAttachConfiguration = ( params: Params< @@ -5881,14 +8298,36 @@ export type CodeSecurityAttachConfiguration = ( > > -export type CodeSecuritySetConfigurationAsDefaultResponder = { - with200(): KoaRuntimeResponse<{ +const codeSecuritySetConfigurationAsDefaultResponder = { + with200: r.with200<{ configuration?: t_code_security_configuration default_for_new_repos?: "all" | "none" | "private_and_internal" | "public" - }> - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecuritySetConfigurationAsDefaultResponder = + typeof codeSecuritySetConfigurationAsDefaultResponder & KoaRuntimeResponder + +const codeSecuritySetConfigurationAsDefaultResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + default_for_new_repos: z + .enum(["all", "none", "private_and_internal", "public"]) + .optional(), + configuration: s_code_security_configuration.optional(), + }), + ], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecuritySetConfigurationAsDefault = ( params: Params< @@ -5916,11 +8355,26 @@ export type CodeSecuritySetConfigurationAsDefault = ( | Response<404, t_basic_error> > -export type CodeSecurityGetRepositoriesForConfigurationResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetRepositoriesForConfigurationResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityGetRepositoriesForConfigurationResponder = + typeof codeSecurityGetRepositoriesForConfigurationResponder & + KoaRuntimeResponder + +const codeSecurityGetRepositoriesForConfigurationResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_security_configuration_repositories)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecurityGetRepositoriesForConfiguration = ( params: Params< @@ -5938,17 +8392,39 @@ export type CodeSecurityGetRepositoriesForConfiguration = ( | Response<404, t_basic_error> > -export type CodespacesListInOrganizationResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesListInOrganizationResponder = { + with200: r.with200<{ codespaces: t_codespace[] total_count: number - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesListInOrganizationResponder = + typeof codespacesListInOrganizationResponder & KoaRuntimeResponder + +const codespacesListInOrganizationResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + codespaces: z.array(s_codespace), + }), + ], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type CodespacesListInOrganization = ( params: Params< @@ -5975,14 +8451,31 @@ export type CodespacesListInOrganization = ( | Response<500, t_basic_error> > -export type CodespacesSetCodespacesAccessResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesSetCodespacesAccessResponder = { + with204: r.with204, + with304: r.with304, + with400: r.with400, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesSetCodespacesAccessResponder = + typeof codespacesSetCodespacesAccessResponder & KoaRuntimeResponder + +const codespacesSetCodespacesAccessResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["400", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesSetCodespacesAccess = ( params: Params< @@ -6003,14 +8496,31 @@ export type CodespacesSetCodespacesAccess = ( | Response<500, t_basic_error> > -export type CodespacesSetCodespacesAccessUsersResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesSetCodespacesAccessUsersResponder = { + with204: r.with204, + with304: r.with304, + with400: r.with400, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesSetCodespacesAccessUsersResponder = + typeof codespacesSetCodespacesAccessUsersResponder & KoaRuntimeResponder + +const codespacesSetCodespacesAccessUsersResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["400", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesSetCodespacesAccessUsers = ( params: Params< @@ -6031,14 +8541,31 @@ export type CodespacesSetCodespacesAccessUsers = ( | Response<500, t_basic_error> > -export type CodespacesDeleteCodespacesAccessUsersResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesDeleteCodespacesAccessUsersResponder = { + with204: r.with204, + with304: r.with304, + with400: r.with400, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesDeleteCodespacesAccessUsersResponder = + typeof codespacesDeleteCodespacesAccessUsersResponder & KoaRuntimeResponder + +const codespacesDeleteCodespacesAccessUsersResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["400", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesDeleteCodespacesAccessUsers = ( params: Params< @@ -6059,12 +8586,29 @@ export type CodespacesDeleteCodespacesAccessUsers = ( | Response<500, t_basic_error> > -export type CodespacesListOrgSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesListOrgSecretsResponder = { + with200: r.with200<{ secrets: t_codespaces_org_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodespacesListOrgSecretsResponder = + typeof codespacesListOrgSecretsResponder & KoaRuntimeResponder + +const codespacesListOrgSecretsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_codespaces_org_secret), + }), + ], + ], + undefined, +) export type CodespacesListOrgSecrets = ( params: Params< @@ -6086,9 +8630,18 @@ export type CodespacesListOrgSecrets = ( > > -export type CodespacesGetOrgPublicKeyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesGetOrgPublicKeyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type CodespacesGetOrgPublicKeyResponder = + typeof codespacesGetOrgPublicKeyResponder & KoaRuntimeResponder + +const codespacesGetOrgPublicKeyResponseValidator = responseValidationFactory( + [["200", s_codespaces_public_key]], + undefined, +) export type CodespacesGetOrgPublicKey = ( params: Params, @@ -6098,9 +8651,18 @@ export type CodespacesGetOrgPublicKey = ( KoaRuntimeResponse | Response<200, t_codespaces_public_key> > -export type CodespacesGetOrgSecretResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesGetOrgSecretResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type CodespacesGetOrgSecretResponder = typeof codespacesGetOrgSecretResponder & + KoaRuntimeResponder + +const codespacesGetOrgSecretResponseValidator = responseValidationFactory( + [["200", s_codespaces_org_secret]], + undefined, +) export type CodespacesGetOrgSecret = ( params: Params, @@ -6110,12 +8672,27 @@ export type CodespacesGetOrgSecret = ( KoaRuntimeResponse | Response<200, t_codespaces_org_secret> > -export type CodespacesCreateOrUpdateOrgSecretResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesCreateOrUpdateOrgSecretResponder = { + with201: r.with201, + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type CodespacesCreateOrUpdateOrgSecretResponder = + typeof codespacesCreateOrUpdateOrgSecretResponder & KoaRuntimeResponder + +const codespacesCreateOrUpdateOrgSecretResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type CodespacesCreateOrUpdateOrgSecret = ( params: Params< @@ -6134,10 +8711,22 @@ export type CodespacesCreateOrUpdateOrgSecret = ( | Response<422, t_validation_error> > -export type CodespacesDeleteOrgSecretResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesDeleteOrgSecretResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodespacesDeleteOrgSecretResponder = + typeof codespacesDeleteOrgSecretResponder & KoaRuntimeResponder + +const codespacesDeleteOrgSecretResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type CodespacesDeleteOrgSecret = ( params: Params, @@ -6149,13 +8738,32 @@ export type CodespacesDeleteOrgSecret = ( | Response<404, t_basic_error> > -export type CodespacesListSelectedReposForOrgSecretResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesListSelectedReposForOrgSecretResponder = { + with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodespacesListSelectedReposForOrgSecretResponder = + typeof codespacesListSelectedReposForOrgSecretResponder & KoaRuntimeResponder + +const codespacesListSelectedReposForOrgSecretResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ], + ["404", s_basic_error], + ], + undefined, + ) export type CodespacesListSelectedReposForOrgSecret = ( params: Params< @@ -6178,11 +8786,25 @@ export type CodespacesListSelectedReposForOrgSecret = ( | Response<404, t_basic_error> > -export type CodespacesSetSelectedReposForOrgSecretResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesSetSelectedReposForOrgSecretResponder = { + with204: r.with204, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type CodespacesSetSelectedReposForOrgSecretResponder = + typeof codespacesSetSelectedReposForOrgSecretResponder & KoaRuntimeResponder + +const codespacesSetSelectedReposForOrgSecretResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["409", z.undefined()], + ], + undefined, + ) export type CodespacesSetSelectedReposForOrgSecret = ( params: Params< @@ -6200,12 +8822,27 @@ export type CodespacesSetSelectedReposForOrgSecret = ( | Response<409, void> > -export type CodespacesAddSelectedRepoToOrgSecretResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesAddSelectedRepoToOrgSecretResponder = { + with204: r.with204, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type CodespacesAddSelectedRepoToOrgSecretResponder = + typeof codespacesAddSelectedRepoToOrgSecretResponder & KoaRuntimeResponder + +const codespacesAddSelectedRepoToOrgSecretResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["409", z.undefined()], + ["422", s_validation_error], + ], + undefined, + ) export type CodespacesAddSelectedRepoToOrgSecret = ( params: Params< @@ -6224,12 +8861,28 @@ export type CodespacesAddSelectedRepoToOrgSecret = ( | Response<422, t_validation_error> > -export type CodespacesRemoveSelectedRepoFromOrgSecretResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesRemoveSelectedRepoFromOrgSecretResponder = { + with204: r.with204, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type CodespacesRemoveSelectedRepoFromOrgSecretResponder = + typeof codespacesRemoveSelectedRepoFromOrgSecretResponder & + KoaRuntimeResponder + +const codespacesRemoveSelectedRepoFromOrgSecretResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["409", z.undefined()], + ["422", s_validation_error], + ], + undefined, + ) export type CodespacesRemoveSelectedRepoFromOrgSecret = ( params: Params< @@ -6248,14 +8901,31 @@ export type CodespacesRemoveSelectedRepoFromOrgSecret = ( | Response<422, t_validation_error> > -export type CopilotGetCopilotOrganizationDetailsResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const copilotGetCopilotOrganizationDetailsResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotGetCopilotOrganizationDetailsResponder = + typeof copilotGetCopilotOrganizationDetailsResponder & KoaRuntimeResponder + +const copilotGetCopilotOrganizationDetailsResponseValidator = + responseValidationFactory( + [ + ["200", s_copilot_organization_details], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + ["500", s_basic_error], + ], + undefined, + ) export type CopilotGetCopilotOrganizationDetails = ( params: Params< @@ -6276,16 +8946,37 @@ export type CopilotGetCopilotOrganizationDetails = ( | Response<500, t_basic_error> > -export type CopilotListCopilotSeatsResponder = { - with200(): KoaRuntimeResponse<{ +const copilotListCopilotSeatsResponder = { + with200: r.with200<{ seats?: t_copilot_seat_details[] total_seats?: number - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotListCopilotSeatsResponder = + typeof copilotListCopilotSeatsResponder & KoaRuntimeResponder + +const copilotListCopilotSeatsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_seats: z.coerce.number().optional(), + seats: z.array(s_copilot_seat_details).optional(), + }), + ], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type CopilotListCopilotSeats = ( params: Params< @@ -6311,16 +9002,33 @@ export type CopilotListCopilotSeats = ( | Response<500, t_basic_error> > -export type CopilotAddCopilotSeatsForTeamsResponder = { - with201(): KoaRuntimeResponse<{ +const copilotAddCopilotSeatsForTeamsResponder = { + with201: r.with201<{ seats_created: number - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotAddCopilotSeatsForTeamsResponder = + typeof copilotAddCopilotSeatsForTeamsResponder & KoaRuntimeResponder + +const copilotAddCopilotSeatsForTeamsResponseValidator = + responseValidationFactory( + [ + ["201", z.object({ seats_created: z.coerce.number() })], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + ["500", s_basic_error], + ], + undefined, + ) export type CopilotAddCopilotSeatsForTeams = ( params: Params< @@ -6346,16 +9054,34 @@ export type CopilotAddCopilotSeatsForTeams = ( | Response<500, t_basic_error> > -export type CopilotCancelCopilotSeatAssignmentForTeamsResponder = { - with200(): KoaRuntimeResponse<{ +const copilotCancelCopilotSeatAssignmentForTeamsResponder = { + with200: r.with200<{ seats_cancelled: number - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotCancelCopilotSeatAssignmentForTeamsResponder = + typeof copilotCancelCopilotSeatAssignmentForTeamsResponder & + KoaRuntimeResponder + +const copilotCancelCopilotSeatAssignmentForTeamsResponseValidator = + responseValidationFactory( + [ + ["200", z.object({ seats_cancelled: z.coerce.number() })], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + ["500", s_basic_error], + ], + undefined, + ) export type CopilotCancelCopilotSeatAssignmentForTeams = ( params: Params< @@ -6381,16 +9107,33 @@ export type CopilotCancelCopilotSeatAssignmentForTeams = ( | Response<500, t_basic_error> > -export type CopilotAddCopilotSeatsForUsersResponder = { - with201(): KoaRuntimeResponse<{ +const copilotAddCopilotSeatsForUsersResponder = { + with201: r.with201<{ seats_created: number - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotAddCopilotSeatsForUsersResponder = + typeof copilotAddCopilotSeatsForUsersResponder & KoaRuntimeResponder + +const copilotAddCopilotSeatsForUsersResponseValidator = + responseValidationFactory( + [ + ["201", z.object({ seats_created: z.coerce.number() })], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + ["500", s_basic_error], + ], + undefined, + ) export type CopilotAddCopilotSeatsForUsers = ( params: Params< @@ -6416,16 +9159,34 @@ export type CopilotAddCopilotSeatsForUsers = ( | Response<500, t_basic_error> > -export type CopilotCancelCopilotSeatAssignmentForUsersResponder = { - with200(): KoaRuntimeResponse<{ +const copilotCancelCopilotSeatAssignmentForUsersResponder = { + with200: r.with200<{ seats_cancelled: number - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotCancelCopilotSeatAssignmentForUsersResponder = + typeof copilotCancelCopilotSeatAssignmentForUsersResponder & + KoaRuntimeResponder + +const copilotCancelCopilotSeatAssignmentForUsersResponseValidator = + responseValidationFactory( + [ + ["200", z.object({ seats_cancelled: z.coerce.number() })], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + ["500", s_basic_error], + ], + undefined, + ) export type CopilotCancelCopilotSeatAssignmentForUsers = ( params: Params< @@ -6451,13 +9212,29 @@ export type CopilotCancelCopilotSeatAssignmentForUsers = ( | Response<500, t_basic_error> > -export type CopilotCopilotMetricsForOrganizationResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const copilotCopilotMetricsForOrganizationResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotCopilotMetricsForOrganizationResponder = + typeof copilotCopilotMetricsForOrganizationResponder & KoaRuntimeResponder + +const copilotCopilotMetricsForOrganizationResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_copilot_usage_metrics_day)], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CopilotCopilotMetricsForOrganization = ( params: Params< @@ -6477,14 +9254,30 @@ export type CopilotCopilotMetricsForOrganization = ( | Response<500, t_basic_error> > -export type DependabotListAlertsForOrgResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotListAlertsForOrgResponder = { + with200: r.with200, + with304: r.with304, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type DependabotListAlertsForOrgResponder = + typeof dependabotListAlertsForOrgResponder & KoaRuntimeResponder + +const dependabotListAlertsForOrgResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_dependabot_alert_with_repository)], + ["304", z.undefined()], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type DependabotListAlertsForOrg = ( params: Params< @@ -6505,12 +9298,29 @@ export type DependabotListAlertsForOrg = ( | Response<422, t_validation_error_simple> > -export type DependabotListOrgSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const dependabotListOrgSecretsResponder = { + with200: r.with200<{ secrets: t_organization_dependabot_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type DependabotListOrgSecretsResponder = + typeof dependabotListOrgSecretsResponder & KoaRuntimeResponder + +const dependabotListOrgSecretsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_organization_dependabot_secret), + }), + ], + ], + undefined, +) export type DependabotListOrgSecrets = ( params: Params< @@ -6532,9 +9342,18 @@ export type DependabotListOrgSecrets = ( > > -export type DependabotGetOrgPublicKeyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotGetOrgPublicKeyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type DependabotGetOrgPublicKeyResponder = + typeof dependabotGetOrgPublicKeyResponder & KoaRuntimeResponder + +const dependabotGetOrgPublicKeyResponseValidator = responseValidationFactory( + [["200", s_dependabot_public_key]], + undefined, +) export type DependabotGetOrgPublicKey = ( params: Params, @@ -6544,9 +9363,18 @@ export type DependabotGetOrgPublicKey = ( KoaRuntimeResponse | Response<200, t_dependabot_public_key> > -export type DependabotGetOrgSecretResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotGetOrgSecretResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type DependabotGetOrgSecretResponder = typeof dependabotGetOrgSecretResponder & + KoaRuntimeResponder + +const dependabotGetOrgSecretResponseValidator = responseValidationFactory( + [["200", s_organization_dependabot_secret]], + undefined, +) export type DependabotGetOrgSecret = ( params: Params, @@ -6556,10 +9384,23 @@ export type DependabotGetOrgSecret = ( KoaRuntimeResponse | Response<200, t_organization_dependabot_secret> > -export type DependabotCreateOrUpdateOrgSecretResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotCreateOrUpdateOrgSecretResponder = { + with201: r.with201, + with204: r.with204, + withStatus: r.withStatus, +} + +type DependabotCreateOrUpdateOrgSecretResponder = + typeof dependabotCreateOrUpdateOrgSecretResponder & KoaRuntimeResponder + +const dependabotCreateOrUpdateOrgSecretResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["204", z.undefined()], + ], + undefined, + ) export type DependabotCreateOrUpdateOrgSecret = ( params: Params< @@ -6576,9 +9417,18 @@ export type DependabotCreateOrUpdateOrgSecret = ( | Response<204, void> > -export type DependabotDeleteOrgSecretResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotDeleteOrgSecretResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type DependabotDeleteOrgSecretResponder = + typeof dependabotDeleteOrgSecretResponder & KoaRuntimeResponder + +const dependabotDeleteOrgSecretResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type DependabotDeleteOrgSecret = ( params: Params, @@ -6586,12 +9436,30 @@ export type DependabotDeleteOrgSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type DependabotListSelectedReposForOrgSecretResponder = { - with200(): KoaRuntimeResponse<{ +const dependabotListSelectedReposForOrgSecretResponder = { + with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type DependabotListSelectedReposForOrgSecretResponder = + typeof dependabotListSelectedReposForOrgSecretResponder & KoaRuntimeResponder + +const dependabotListSelectedReposForOrgSecretResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ], + ], + undefined, + ) export type DependabotListSelectedReposForOrgSecret = ( params: Params< @@ -6613,9 +9481,16 @@ export type DependabotListSelectedReposForOrgSecret = ( > > -export type DependabotSetSelectedReposForOrgSecretResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotSetSelectedReposForOrgSecretResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type DependabotSetSelectedReposForOrgSecretResponder = + typeof dependabotSetSelectedReposForOrgSecretResponder & KoaRuntimeResponder + +const dependabotSetSelectedReposForOrgSecretResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type DependabotSetSelectedReposForOrgSecret = ( params: Params< @@ -6628,10 +9503,23 @@ export type DependabotSetSelectedReposForOrgSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type DependabotAddSelectedRepoToOrgSecretResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotAddSelectedRepoToOrgSecretResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type DependabotAddSelectedRepoToOrgSecretResponder = + typeof dependabotAddSelectedRepoToOrgSecretResponder & KoaRuntimeResponder + +const dependabotAddSelectedRepoToOrgSecretResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type DependabotAddSelectedRepoToOrgSecret = ( params: Params< @@ -6646,10 +9534,24 @@ export type DependabotAddSelectedRepoToOrgSecret = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type DependabotRemoveSelectedRepoFromOrgSecretResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotRemoveSelectedRepoFromOrgSecretResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type DependabotRemoveSelectedRepoFromOrgSecretResponder = + typeof dependabotRemoveSelectedRepoFromOrgSecretResponder & + KoaRuntimeResponder + +const dependabotRemoveSelectedRepoFromOrgSecretResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type DependabotRemoveSelectedRepoFromOrgSecret = ( params: Params< @@ -6664,12 +9566,26 @@ export type DependabotRemoveSelectedRepoFromOrgSecret = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type PackagesListDockerMigrationConflictingPackagesForOrganizationResponder = - { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - } & KoaRuntimeResponder +const packagesListDockerMigrationConflictingPackagesForOrganizationResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type PackagesListDockerMigrationConflictingPackagesForOrganizationResponder = + typeof packagesListDockerMigrationConflictingPackagesForOrganizationResponder & + KoaRuntimeResponder + +const packagesListDockerMigrationConflictingPackagesForOrganizationResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_package)], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type PackagesListDockerMigrationConflictingPackagesForOrganization = ( params: Params< @@ -6687,9 +9603,18 @@ export type PackagesListDockerMigrationConflictingPackagesForOrganization = ( | Response<403, t_basic_error> > -export type ActivityListPublicOrgEventsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListPublicOrgEventsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListPublicOrgEventsResponder = + typeof activityListPublicOrgEventsResponder & KoaRuntimeResponder + +const activityListPublicOrgEventsResponseValidator = responseValidationFactory( + [["200", z.array(s_event)]], + undefined, +) export type ActivityListPublicOrgEvents = ( params: Params< @@ -6702,10 +9627,22 @@ export type ActivityListPublicOrgEvents = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -export type OrgsListFailedInvitationsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListFailedInvitationsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsListFailedInvitationsResponder = + typeof orgsListFailedInvitationsResponder & KoaRuntimeResponder + +const orgsListFailedInvitationsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_organization_invitation)], + ["404", s_basic_error], + ], + undefined, +) export type OrgsListFailedInvitations = ( params: Params< @@ -6722,10 +9659,22 @@ export type OrgsListFailedInvitations = ( | Response<404, t_basic_error> > -export type OrgsListWebhooksResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListWebhooksResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsListWebhooksResponder = typeof orgsListWebhooksResponder & + KoaRuntimeResponder + +const orgsListWebhooksResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_org_hook)], + ["404", s_basic_error], + ], + undefined, +) export type OrgsListWebhooks = ( params: Params< @@ -6742,11 +9691,24 @@ export type OrgsListWebhooks = ( | Response<404, t_basic_error> > -export type OrgsCreateWebhookResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCreateWebhookResponder = { + with201: r.with201, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsCreateWebhookResponder = typeof orgsCreateWebhookResponder & + KoaRuntimeResponder + +const orgsCreateWebhookResponseValidator = responseValidationFactory( + [ + ["201", s_org_hook], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsCreateWebhook = ( params: Params< @@ -6764,10 +9726,22 @@ export type OrgsCreateWebhook = ( | Response<422, t_validation_error> > -export type OrgsGetWebhookResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetWebhookResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsGetWebhookResponder = typeof orgsGetWebhookResponder & + KoaRuntimeResponder + +const orgsGetWebhookResponseValidator = responseValidationFactory( + [ + ["200", s_org_hook], + ["404", s_basic_error], + ], + undefined, +) export type OrgsGetWebhook = ( params: Params, @@ -6779,11 +9753,24 @@ export type OrgsGetWebhook = ( | Response<404, t_basic_error> > -export type OrgsUpdateWebhookResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsUpdateWebhookResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsUpdateWebhookResponder = typeof orgsUpdateWebhookResponder & + KoaRuntimeResponder + +const orgsUpdateWebhookResponseValidator = responseValidationFactory( + [ + ["200", s_org_hook], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsUpdateWebhook = ( params: Params< @@ -6801,10 +9788,22 @@ export type OrgsUpdateWebhook = ( | Response<422, t_validation_error> > -export type OrgsDeleteWebhookResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsDeleteWebhookResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsDeleteWebhookResponder = typeof orgsDeleteWebhookResponder & + KoaRuntimeResponder + +const orgsDeleteWebhookResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type OrgsDeleteWebhook = ( params: Params, @@ -6816,9 +9815,18 @@ export type OrgsDeleteWebhook = ( | Response<404, t_basic_error> > -export type OrgsGetWebhookConfigForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetWebhookConfigForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type OrgsGetWebhookConfigForOrgResponder = + typeof orgsGetWebhookConfigForOrgResponder & KoaRuntimeResponder + +const orgsGetWebhookConfigForOrgResponseValidator = responseValidationFactory( + [["200", s_webhook_config]], + undefined, +) export type OrgsGetWebhookConfigForOrg = ( params: Params, @@ -6826,9 +9834,16 @@ export type OrgsGetWebhookConfigForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -export type OrgsUpdateWebhookConfigForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsUpdateWebhookConfigForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type OrgsUpdateWebhookConfigForOrgResponder = + typeof orgsUpdateWebhookConfigForOrgResponder & KoaRuntimeResponder + +const orgsUpdateWebhookConfigForOrgResponseValidator = + responseValidationFactory([["200", s_webhook_config]], undefined) export type OrgsUpdateWebhookConfigForOrg = ( params: Params< @@ -6841,11 +9856,24 @@ export type OrgsUpdateWebhookConfigForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -export type OrgsListWebhookDeliveriesResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListWebhookDeliveriesResponder = { + with200: r.with200, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsListWebhookDeliveriesResponder = + typeof orgsListWebhookDeliveriesResponder & KoaRuntimeResponder + +const orgsListWebhookDeliveriesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_hook_delivery_item)], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsListWebhookDeliveries = ( params: Params< @@ -6863,11 +9891,24 @@ export type OrgsListWebhookDeliveries = ( | Response<422, t_validation_error> > -export type OrgsGetWebhookDeliveryResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetWebhookDeliveryResponder = { + with200: r.with200, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsGetWebhookDeliveryResponder = typeof orgsGetWebhookDeliveryResponder & + KoaRuntimeResponder + +const orgsGetWebhookDeliveryResponseValidator = responseValidationFactory( + [ + ["200", s_hook_delivery], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsGetWebhookDelivery = ( params: Params, @@ -6880,13 +9921,26 @@ export type OrgsGetWebhookDelivery = ( | Response<422, t_validation_error> > -export type OrgsRedeliverWebhookDeliveryResponder = { - with202(): KoaRuntimeResponse<{ +const orgsRedeliverWebhookDeliveryResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsRedeliverWebhookDeliveryResponder = + typeof orgsRedeliverWebhookDeliveryResponder & KoaRuntimeResponder + +const orgsRedeliverWebhookDeliveryResponseValidator = responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsRedeliverWebhookDelivery = ( params: Params, @@ -6904,10 +9958,22 @@ export type OrgsRedeliverWebhookDelivery = ( | Response<422, t_validation_error> > -export type OrgsPingWebhookResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsPingWebhookResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsPingWebhookResponder = typeof orgsPingWebhookResponder & + KoaRuntimeResponder + +const orgsPingWebhookResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type OrgsPingWebhook = ( params: Params, @@ -6919,9 +9985,16 @@ export type OrgsPingWebhook = ( | Response<404, t_basic_error> > -export type ApiInsightsGetRouteStatsByActorResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetRouteStatsByActorResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetRouteStatsByActorResponder = + typeof apiInsightsGetRouteStatsByActorResponder & KoaRuntimeResponder + +const apiInsightsGetRouteStatsByActorResponseValidator = + responseValidationFactory([["200", s_api_insights_route_stats]], undefined) export type ApiInsightsGetRouteStatsByActor = ( params: Params< @@ -6936,9 +10009,18 @@ export type ApiInsightsGetRouteStatsByActor = ( KoaRuntimeResponse | Response<200, t_api_insights_route_stats> > -export type ApiInsightsGetSubjectStatsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetSubjectStatsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetSubjectStatsResponder = + typeof apiInsightsGetSubjectStatsResponder & KoaRuntimeResponder + +const apiInsightsGetSubjectStatsResponseValidator = responseValidationFactory( + [["200", s_api_insights_subject_stats]], + undefined, +) export type ApiInsightsGetSubjectStats = ( params: Params< @@ -6953,9 +10035,18 @@ export type ApiInsightsGetSubjectStats = ( KoaRuntimeResponse | Response<200, t_api_insights_subject_stats> > -export type ApiInsightsGetSummaryStatsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetSummaryStatsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetSummaryStatsResponder = + typeof apiInsightsGetSummaryStatsResponder & KoaRuntimeResponder + +const apiInsightsGetSummaryStatsResponseValidator = responseValidationFactory( + [["200", s_api_insights_summary_stats]], + undefined, +) export type ApiInsightsGetSummaryStats = ( params: Params< @@ -6970,9 +10061,16 @@ export type ApiInsightsGetSummaryStats = ( KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> > -export type ApiInsightsGetSummaryStatsByUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetSummaryStatsByUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetSummaryStatsByUserResponder = + typeof apiInsightsGetSummaryStatsByUserResponder & KoaRuntimeResponder + +const apiInsightsGetSummaryStatsByUserResponseValidator = + responseValidationFactory([["200", s_api_insights_summary_stats]], undefined) export type ApiInsightsGetSummaryStatsByUser = ( params: Params< @@ -6987,9 +10085,16 @@ export type ApiInsightsGetSummaryStatsByUser = ( KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> > -export type ApiInsightsGetSummaryStatsByActorResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetSummaryStatsByActorResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetSummaryStatsByActorResponder = + typeof apiInsightsGetSummaryStatsByActorResponder & KoaRuntimeResponder + +const apiInsightsGetSummaryStatsByActorResponseValidator = + responseValidationFactory([["200", s_api_insights_summary_stats]], undefined) export type ApiInsightsGetSummaryStatsByActor = ( params: Params< @@ -7004,9 +10109,18 @@ export type ApiInsightsGetSummaryStatsByActor = ( KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> > -export type ApiInsightsGetTimeStatsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetTimeStatsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetTimeStatsResponder = + typeof apiInsightsGetTimeStatsResponder & KoaRuntimeResponder + +const apiInsightsGetTimeStatsResponseValidator = responseValidationFactory( + [["200", s_api_insights_time_stats]], + undefined, +) export type ApiInsightsGetTimeStats = ( params: Params< @@ -7021,9 +10135,16 @@ export type ApiInsightsGetTimeStats = ( KoaRuntimeResponse | Response<200, t_api_insights_time_stats> > -export type ApiInsightsGetTimeStatsByUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetTimeStatsByUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetTimeStatsByUserResponder = + typeof apiInsightsGetTimeStatsByUserResponder & KoaRuntimeResponder + +const apiInsightsGetTimeStatsByUserResponseValidator = + responseValidationFactory([["200", s_api_insights_time_stats]], undefined) export type ApiInsightsGetTimeStatsByUser = ( params: Params< @@ -7038,9 +10159,16 @@ export type ApiInsightsGetTimeStatsByUser = ( KoaRuntimeResponse | Response<200, t_api_insights_time_stats> > -export type ApiInsightsGetTimeStatsByActorResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetTimeStatsByActorResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetTimeStatsByActorResponder = + typeof apiInsightsGetTimeStatsByActorResponder & KoaRuntimeResponder + +const apiInsightsGetTimeStatsByActorResponseValidator = + responseValidationFactory([["200", s_api_insights_time_stats]], undefined) export type ApiInsightsGetTimeStatsByActor = ( params: Params< @@ -7055,9 +10183,18 @@ export type ApiInsightsGetTimeStatsByActor = ( KoaRuntimeResponse | Response<200, t_api_insights_time_stats> > -export type ApiInsightsGetUserStatsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const apiInsightsGetUserStatsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ApiInsightsGetUserStatsResponder = + typeof apiInsightsGetUserStatsResponder & KoaRuntimeResponder + +const apiInsightsGetUserStatsResponseValidator = responseValidationFactory( + [["200", s_api_insights_user_stats]], + undefined, +) export type ApiInsightsGetUserStats = ( params: Params< @@ -7072,9 +10209,18 @@ export type ApiInsightsGetUserStats = ( KoaRuntimeResponse | Response<200, t_api_insights_user_stats> > -export type AppsGetOrgInstallationResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetOrgInstallationResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type AppsGetOrgInstallationResponder = typeof appsGetOrgInstallationResponder & + KoaRuntimeResponder + +const appsGetOrgInstallationResponseValidator = responseValidationFactory( + [["200", s_installation]], + undefined, +) export type AppsGetOrgInstallation = ( params: Params, @@ -7082,12 +10228,29 @@ export type AppsGetOrgInstallation = ( ctx: RouterContext, ) => Promise | Response<200, t_installation>> -export type OrgsListAppInstallationsResponder = { - with200(): KoaRuntimeResponse<{ +const orgsListAppInstallationsResponder = { + with200: r.with200<{ installations: t_installation[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type OrgsListAppInstallationsResponder = + typeof orgsListAppInstallationsResponder & KoaRuntimeResponder + +const orgsListAppInstallationsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + installations: z.array(s_installation), + }), + ], + ], + undefined, +) export type OrgsListAppInstallations = ( params: Params< @@ -7109,9 +10272,19 @@ export type OrgsListAppInstallations = ( > > -export type InteractionsGetRestrictionsForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsGetRestrictionsForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type InteractionsGetRestrictionsForOrgResponder = + typeof interactionsGetRestrictionsForOrgResponder & KoaRuntimeResponder + +const interactionsGetRestrictionsForOrgResponseValidator = + responseValidationFactory( + [["200", z.union([s_interaction_limit_response, z.object({})])]], + undefined, + ) export type InteractionsGetRestrictionsForOrg = ( params: Params< @@ -7127,10 +10300,23 @@ export type InteractionsGetRestrictionsForOrg = ( | Response<200, t_interaction_limit_response | EmptyObject> > -export type InteractionsSetRestrictionsForOrgResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsSetRestrictionsForOrgResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type InteractionsSetRestrictionsForOrgResponder = + typeof interactionsSetRestrictionsForOrgResponder & KoaRuntimeResponder + +const interactionsSetRestrictionsForOrgResponseValidator = + responseValidationFactory( + [ + ["200", s_interaction_limit_response], + ["422", s_validation_error], + ], + undefined, + ) export type InteractionsSetRestrictionsForOrg = ( params: Params< @@ -7147,9 +10333,16 @@ export type InteractionsSetRestrictionsForOrg = ( | Response<422, t_validation_error> > -export type InteractionsRemoveRestrictionsForOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsRemoveRestrictionsForOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type InteractionsRemoveRestrictionsForOrgResponder = + typeof interactionsRemoveRestrictionsForOrgResponder & KoaRuntimeResponder + +const interactionsRemoveRestrictionsForOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type InteractionsRemoveRestrictionsForOrg = ( params: Params< @@ -7162,10 +10355,22 @@ export type InteractionsRemoveRestrictionsForOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type OrgsListPendingInvitationsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListPendingInvitationsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsListPendingInvitationsResponder = + typeof orgsListPendingInvitationsResponder & KoaRuntimeResponder + +const orgsListPendingInvitationsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_organization_invitation)], + ["404", s_basic_error], + ], + undefined, +) export type OrgsListPendingInvitations = ( params: Params< @@ -7182,11 +10387,24 @@ export type OrgsListPendingInvitations = ( | Response<404, t_basic_error> > -export type OrgsCreateInvitationResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCreateInvitationResponder = { + with201: r.with201, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsCreateInvitationResponder = typeof orgsCreateInvitationResponder & + KoaRuntimeResponder + +const orgsCreateInvitationResponseValidator = responseValidationFactory( + [ + ["201", s_organization_invitation], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsCreateInvitation = ( params: Params< @@ -7204,11 +10422,24 @@ export type OrgsCreateInvitation = ( | Response<422, t_validation_error> > -export type OrgsCancelInvitationResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCancelInvitationResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsCancelInvitationResponder = typeof orgsCancelInvitationResponder & + KoaRuntimeResponder + +const orgsCancelInvitationResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsCancelInvitation = ( params: Params, @@ -7221,10 +10452,22 @@ export type OrgsCancelInvitation = ( | Response<422, t_validation_error> > -export type OrgsListInvitationTeamsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListInvitationTeamsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsListInvitationTeamsResponder = + typeof orgsListInvitationTeamsResponder & KoaRuntimeResponder + +const orgsListInvitationTeamsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_team)], + ["404", s_basic_error], + ], + undefined, +) export type OrgsListInvitationTeams = ( params: Params< @@ -7241,10 +10484,22 @@ export type OrgsListInvitationTeams = ( | Response<404, t_basic_error> > -export type OrgsListIssueTypesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListIssueTypesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsListIssueTypesResponder = typeof orgsListIssueTypesResponder & + KoaRuntimeResponder + +const orgsListIssueTypesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue_type)], + ["404", s_basic_error], + ], + undefined, +) export type OrgsListIssueTypes = ( params: Params, @@ -7256,11 +10511,24 @@ export type OrgsListIssueTypes = ( | Response<404, t_basic_error> > -export type OrgsCreateIssueTypeResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCreateIssueTypeResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsCreateIssueTypeResponder = typeof orgsCreateIssueTypeResponder & + KoaRuntimeResponder + +const orgsCreateIssueTypeResponseValidator = responseValidationFactory( + [ + ["200", s_issue_type], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type OrgsCreateIssueType = ( params: Params< @@ -7278,11 +10546,24 @@ export type OrgsCreateIssueType = ( | Response<422, t_validation_error_simple> > -export type OrgsUpdateIssueTypeResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsUpdateIssueTypeResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsUpdateIssueTypeResponder = typeof orgsUpdateIssueTypeResponder & + KoaRuntimeResponder + +const orgsUpdateIssueTypeResponseValidator = responseValidationFactory( + [ + ["200", s_issue_type], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type OrgsUpdateIssueType = ( params: Params< @@ -7300,11 +10581,24 @@ export type OrgsUpdateIssueType = ( | Response<422, t_validation_error_simple> > -export type OrgsDeleteIssueTypeResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsDeleteIssueTypeResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsDeleteIssueTypeResponder = typeof orgsDeleteIssueTypeResponder & + KoaRuntimeResponder + +const orgsDeleteIssueTypeResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type OrgsDeleteIssueType = ( params: Params, @@ -7317,10 +10611,22 @@ export type OrgsDeleteIssueType = ( | Response<422, t_validation_error_simple> > -export type IssuesListForOrgResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListForOrgResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesListForOrgResponder = typeof issuesListForOrgResponder & + KoaRuntimeResponder + +const issuesListForOrgResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue)], + ["404", s_basic_error], + ], + undefined, +) export type IssuesListForOrg = ( params: Params< @@ -7337,10 +10643,22 @@ export type IssuesListForOrg = ( | Response<404, t_basic_error> > -export type OrgsListMembersResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListMembersResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsListMembersResponder = typeof orgsListMembersResponder & + KoaRuntimeResponder + +const orgsListMembersResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["422", s_validation_error], + ], + undefined, +) export type OrgsListMembers = ( params: Params< @@ -7357,11 +10675,24 @@ export type OrgsListMembers = ( | Response<422, t_validation_error> > -export type OrgsCheckMembershipForUserResponder = { - with204(): KoaRuntimeResponse - with302(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCheckMembershipForUserResponder = { + with204: r.with204, + with302: r.with302, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsCheckMembershipForUserResponder = + typeof orgsCheckMembershipForUserResponder & KoaRuntimeResponder + +const orgsCheckMembershipForUserResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["302", z.undefined()], + ["404", z.undefined()], + ], + undefined, +) export type OrgsCheckMembershipForUser = ( params: Params, @@ -7374,10 +10705,22 @@ export type OrgsCheckMembershipForUser = ( | Response<404, void> > -export type OrgsRemoveMemberResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRemoveMemberResponder = { + with204: r.with204, + with403: r.with403, + withStatus: r.withStatus, +} + +type OrgsRemoveMemberResponder = typeof orgsRemoveMemberResponder & + KoaRuntimeResponder + +const orgsRemoveMemberResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ], + undefined, +) export type OrgsRemoveMember = ( params: Params, @@ -7389,17 +10732,40 @@ export type OrgsRemoveMember = ( | Response<403, t_basic_error> > -export type CodespacesGetCodespacesForUserInOrgResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesGetCodespacesForUserInOrgResponder = { + with200: r.with200<{ codespaces: t_codespace[] total_count: number - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesGetCodespacesForUserInOrgResponder = + typeof codespacesGetCodespacesForUserInOrgResponder & KoaRuntimeResponder + +const codespacesGetCodespacesForUserInOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + codespaces: z.array(s_codespace), + }), + ], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesGetCodespacesForUserInOrg = ( params: Params< @@ -7426,16 +10792,33 @@ export type CodespacesGetCodespacesForUserInOrg = ( | Response<500, t_basic_error> > -export type CodespacesDeleteFromOrganizationResponder = { - with202(): KoaRuntimeResponse<{ +const codespacesDeleteFromOrganizationResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesDeleteFromOrganizationResponder = + typeof codespacesDeleteFromOrganizationResponder & KoaRuntimeResponder + +const codespacesDeleteFromOrganizationResponseValidator = + responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesDeleteFromOrganization = ( params: Params< @@ -7461,14 +10844,30 @@ export type CodespacesDeleteFromOrganization = ( | Response<500, t_basic_error> > -export type CodespacesStopInOrganizationResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesStopInOrganizationResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesStopInOrganizationResponder = + typeof codespacesStopInOrganizationResponder & KoaRuntimeResponder + +const codespacesStopInOrganizationResponseValidator = responseValidationFactory( + [ + ["200", s_codespace], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type CodespacesStopInOrganization = ( params: Params, @@ -7484,14 +10883,31 @@ export type CodespacesStopInOrganization = ( | Response<500, t_basic_error> > -export type CopilotGetCopilotSeatDetailsForUserResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const copilotGetCopilotSeatDetailsForUserResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotGetCopilotSeatDetailsForUserResponder = + typeof copilotGetCopilotSeatDetailsForUserResponder & KoaRuntimeResponder + +const copilotGetCopilotSeatDetailsForUserResponseValidator = + responseValidationFactory( + [ + ["200", s_copilot_seat_details], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + ["500", s_basic_error], + ], + undefined, + ) export type CopilotGetCopilotSeatDetailsForUser = ( params: Params< @@ -7512,11 +10928,24 @@ export type CopilotGetCopilotSeatDetailsForUser = ( | Response<500, t_basic_error> > -export type OrgsGetMembershipForUserResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetMembershipForUserResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsGetMembershipForUserResponder = + typeof orgsGetMembershipForUserResponder & KoaRuntimeResponder + +const orgsGetMembershipForUserResponseValidator = responseValidationFactory( + [ + ["200", s_org_membership], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type OrgsGetMembershipForUser = ( params: Params, @@ -7529,11 +10958,24 @@ export type OrgsGetMembershipForUser = ( | Response<404, t_basic_error> > -export type OrgsSetMembershipForUserResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsSetMembershipForUserResponder = { + with200: r.with200, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsSetMembershipForUserResponder = + typeof orgsSetMembershipForUserResponder & KoaRuntimeResponder + +const orgsSetMembershipForUserResponseValidator = responseValidationFactory( + [ + ["200", s_org_membership], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsSetMembershipForUser = ( params: Params< @@ -7551,11 +10993,24 @@ export type OrgsSetMembershipForUser = ( | Response<422, t_validation_error> > -export type OrgsRemoveMembershipForUserResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRemoveMembershipForUserResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsRemoveMembershipForUserResponder = + typeof orgsRemoveMembershipForUserResponder & KoaRuntimeResponder + +const orgsRemoveMembershipForUserResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type OrgsRemoveMembershipForUser = ( params: Params, @@ -7568,9 +11023,18 @@ export type OrgsRemoveMembershipForUser = ( | Response<404, t_basic_error> > -export type MigrationsListForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsListForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type MigrationsListForOrgResponder = typeof migrationsListForOrgResponder & + KoaRuntimeResponder + +const migrationsListForOrgResponseValidator = responseValidationFactory( + [["200", z.array(s_migration)]], + undefined, +) export type MigrationsListForOrg = ( params: Params< @@ -7583,11 +11047,24 @@ export type MigrationsListForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_migration[]>> -export type MigrationsStartForOrgResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsStartForOrgResponder = { + with201: r.with201, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type MigrationsStartForOrgResponder = typeof migrationsStartForOrgResponder & + KoaRuntimeResponder + +const migrationsStartForOrgResponseValidator = responseValidationFactory( + [ + ["201", s_migration], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type MigrationsStartForOrg = ( params: Params< @@ -7605,10 +11082,22 @@ export type MigrationsStartForOrg = ( | Response<422, t_validation_error> > -export type MigrationsGetStatusForOrgResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsGetStatusForOrgResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsGetStatusForOrgResponder = + typeof migrationsGetStatusForOrgResponder & KoaRuntimeResponder + +const migrationsGetStatusForOrgResponseValidator = responseValidationFactory( + [ + ["200", s_migration], + ["404", s_basic_error], + ], + undefined, +) export type MigrationsGetStatusForOrg = ( params: Params< @@ -7625,10 +11114,23 @@ export type MigrationsGetStatusForOrg = ( | Response<404, t_basic_error> > -export type MigrationsDownloadArchiveForOrgResponder = { - with302(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsDownloadArchiveForOrgResponder = { + with302: r.with302, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsDownloadArchiveForOrgResponder = + typeof migrationsDownloadArchiveForOrgResponder & KoaRuntimeResponder + +const migrationsDownloadArchiveForOrgResponseValidator = + responseValidationFactory( + [ + ["302", z.undefined()], + ["404", s_basic_error], + ], + undefined, + ) export type MigrationsDownloadArchiveForOrg = ( params: Params< @@ -7645,10 +11147,23 @@ export type MigrationsDownloadArchiveForOrg = ( | Response<404, t_basic_error> > -export type MigrationsDeleteArchiveForOrgResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsDeleteArchiveForOrgResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsDeleteArchiveForOrgResponder = + typeof migrationsDeleteArchiveForOrgResponder & KoaRuntimeResponder + +const migrationsDeleteArchiveForOrgResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, + ) export type MigrationsDeleteArchiveForOrg = ( params: Params, @@ -7660,10 +11175,22 @@ export type MigrationsDeleteArchiveForOrg = ( | Response<404, t_basic_error> > -export type MigrationsUnlockRepoForOrgResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsUnlockRepoForOrgResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsUnlockRepoForOrgResponder = + typeof migrationsUnlockRepoForOrgResponder & KoaRuntimeResponder + +const migrationsUnlockRepoForOrgResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type MigrationsUnlockRepoForOrg = ( params: Params, @@ -7675,10 +11202,22 @@ export type MigrationsUnlockRepoForOrg = ( | Response<404, t_basic_error> > -export type MigrationsListReposForOrgResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsListReposForOrgResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsListReposForOrgResponder = + typeof migrationsListReposForOrgResponder & KoaRuntimeResponder + +const migrationsListReposForOrgResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_minimal_repository)], + ["404", s_basic_error], + ], + undefined, +) export type MigrationsListReposForOrg = ( params: Params< @@ -7695,14 +11234,33 @@ export type MigrationsListReposForOrg = ( | Response<404, t_basic_error> > -export type OrgsListOrgRolesResponder = { - with200(): KoaRuntimeResponse<{ +const orgsListOrgRolesResponder = { + with200: r.with200<{ roles?: t_organization_role[] total_count?: number - }> - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsListOrgRolesResponder = typeof orgsListOrgRolesResponder & + KoaRuntimeResponder + +const orgsListOrgRolesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number().optional(), + roles: z.array(s_organization_role).optional(), + }), + ], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsListOrgRoles = ( params: Params, @@ -7721,9 +11279,18 @@ export type OrgsListOrgRoles = ( | Response<422, t_validation_error> > -export type OrgsRevokeAllOrgRolesTeamResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRevokeAllOrgRolesTeamResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type OrgsRevokeAllOrgRolesTeamResponder = + typeof orgsRevokeAllOrgRolesTeamResponder & KoaRuntimeResponder + +const orgsRevokeAllOrgRolesTeamResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type OrgsRevokeAllOrgRolesTeam = ( params: Params, @@ -7731,11 +11298,24 @@ export type OrgsRevokeAllOrgRolesTeam = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type OrgsAssignTeamToOrgRoleResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsAssignTeamToOrgRoleResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsAssignTeamToOrgRoleResponder = + typeof orgsAssignTeamToOrgRoleResponder & KoaRuntimeResponder + +const orgsAssignTeamToOrgRoleResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ["422", z.undefined()], + ], + undefined, +) export type OrgsAssignTeamToOrgRole = ( params: Params, @@ -7748,9 +11328,18 @@ export type OrgsAssignTeamToOrgRole = ( | Response<422, void> > -export type OrgsRevokeOrgRoleTeamResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRevokeOrgRoleTeamResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type OrgsRevokeOrgRoleTeamResponder = typeof orgsRevokeOrgRoleTeamResponder & + KoaRuntimeResponder + +const orgsRevokeOrgRoleTeamResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type OrgsRevokeOrgRoleTeam = ( params: Params, @@ -7758,9 +11347,18 @@ export type OrgsRevokeOrgRoleTeam = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type OrgsRevokeAllOrgRolesUserResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRevokeAllOrgRolesUserResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type OrgsRevokeAllOrgRolesUserResponder = + typeof orgsRevokeAllOrgRolesUserResponder & KoaRuntimeResponder + +const orgsRevokeAllOrgRolesUserResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type OrgsRevokeAllOrgRolesUser = ( params: Params, @@ -7768,11 +11366,24 @@ export type OrgsRevokeAllOrgRolesUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type OrgsAssignUserToOrgRoleResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsAssignUserToOrgRoleResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsAssignUserToOrgRoleResponder = + typeof orgsAssignUserToOrgRoleResponder & KoaRuntimeResponder + +const orgsAssignUserToOrgRoleResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ["422", z.undefined()], + ], + undefined, +) export type OrgsAssignUserToOrgRole = ( params: Params, @@ -7785,9 +11396,18 @@ export type OrgsAssignUserToOrgRole = ( | Response<422, void> > -export type OrgsRevokeOrgRoleUserResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRevokeOrgRoleUserResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type OrgsRevokeOrgRoleUserResponder = typeof orgsRevokeOrgRoleUserResponder & + KoaRuntimeResponder + +const orgsRevokeOrgRoleUserResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type OrgsRevokeOrgRoleUser = ( params: Params, @@ -7795,11 +11415,24 @@ export type OrgsRevokeOrgRoleUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type OrgsGetOrgRoleResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetOrgRoleResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsGetOrgRoleResponder = typeof orgsGetOrgRoleResponder & + KoaRuntimeResponder + +const orgsGetOrgRoleResponseValidator = responseValidationFactory( + [ + ["200", s_organization_role], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type OrgsGetOrgRole = ( params: Params, @@ -7812,11 +11445,24 @@ export type OrgsGetOrgRole = ( | Response<422, t_validation_error> > -export type OrgsListOrgRoleTeamsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListOrgRoleTeamsResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsListOrgRoleTeamsResponder = typeof orgsListOrgRoleTeamsResponder & + KoaRuntimeResponder + +const orgsListOrgRoleTeamsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_team_role_assignment)], + ["404", z.undefined()], + ["422", z.undefined()], + ], + undefined, +) export type OrgsListOrgRoleTeams = ( params: Params< @@ -7834,11 +11480,24 @@ export type OrgsListOrgRoleTeams = ( | Response<422, void> > -export type OrgsListOrgRoleUsersResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListOrgRoleUsersResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsListOrgRoleUsersResponder = typeof orgsListOrgRoleUsersResponder & + KoaRuntimeResponder + +const orgsListOrgRoleUsersResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_user_role_assignment)], + ["404", z.undefined()], + ["422", z.undefined()], + ], + undefined, +) export type OrgsListOrgRoleUsers = ( params: Params< @@ -7856,9 +11515,18 @@ export type OrgsListOrgRoleUsers = ( | Response<422, void> > -export type OrgsListOutsideCollaboratorsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListOutsideCollaboratorsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type OrgsListOutsideCollaboratorsResponder = + typeof orgsListOutsideCollaboratorsResponder & KoaRuntimeResponder + +const orgsListOutsideCollaboratorsResponseValidator = responseValidationFactory( + [["200", z.array(s_simple_user)]], + undefined, +) export type OrgsListOutsideCollaborators = ( params: Params< @@ -7871,12 +11539,27 @@ export type OrgsListOutsideCollaborators = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -export type OrgsConvertMemberToOutsideCollaboratorResponder = { - with202(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsConvertMemberToOutsideCollaboratorResponder = { + with202: r.with202, + with204: r.with204, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsConvertMemberToOutsideCollaboratorResponder = + typeof orgsConvertMemberToOutsideCollaboratorResponder & KoaRuntimeResponder + +const orgsConvertMemberToOutsideCollaboratorResponseValidator = + responseValidationFactory( + [ + ["202", z.object({})], + ["204", z.undefined()], + ["403", z.undefined()], + ["404", s_basic_error], + ], + undefined, + ) export type OrgsConvertMemberToOutsideCollaborator = ( params: Params< @@ -7895,13 +11578,32 @@ export type OrgsConvertMemberToOutsideCollaborator = ( | Response<404, t_basic_error> > -export type OrgsRemoveOutsideCollaboratorResponder = { - with204(): KoaRuntimeResponse - with422(): KoaRuntimeResponse<{ +const orgsRemoveOutsideCollaboratorResponder = { + with204: r.with204, + with422: r.with422<{ documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type OrgsRemoveOutsideCollaboratorResponder = + typeof orgsRemoveOutsideCollaboratorResponder & KoaRuntimeResponder + +const orgsRemoveOutsideCollaboratorResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + [ + "422", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type OrgsRemoveOutsideCollaborator = ( params: Params, @@ -7919,12 +11621,27 @@ export type OrgsRemoveOutsideCollaborator = ( > > -export type PackagesListPackagesForOrganizationResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesListPackagesForOrganizationResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type PackagesListPackagesForOrganizationResponder = + typeof packagesListPackagesForOrganizationResponder & KoaRuntimeResponder + +const packagesListPackagesForOrganizationResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_package)], + ["400", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type PackagesListPackagesForOrganization = ( params: Params< @@ -7943,9 +11660,16 @@ export type PackagesListPackagesForOrganization = ( | Response<403, t_basic_error> > -export type PackagesGetPackageForOrganizationResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesGetPackageForOrganizationResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PackagesGetPackageForOrganizationResponder = + typeof packagesGetPackageForOrganizationResponder & KoaRuntimeResponder + +const packagesGetPackageForOrganizationResponseValidator = + responseValidationFactory([["200", s_package]], undefined) export type PackagesGetPackageForOrganization = ( params: Params< @@ -7958,12 +11682,26 @@ export type PackagesGetPackageForOrganization = ( ctx: RouterContext, ) => Promise | Response<200, t_package>> -export type PackagesDeletePackageForOrgResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesDeletePackageForOrgResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesDeletePackageForOrgResponder = + typeof packagesDeletePackageForOrgResponder & KoaRuntimeResponder + +const packagesDeletePackageForOrgResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type PackagesDeletePackageForOrg = ( params: Params, @@ -7977,12 +11715,26 @@ export type PackagesDeletePackageForOrg = ( | Response<404, t_basic_error> > -export type PackagesRestorePackageForOrgResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesRestorePackageForOrgResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesRestorePackageForOrgResponder = + typeof packagesRestorePackageForOrgResponder & KoaRuntimeResponder + +const packagesRestorePackageForOrgResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type PackagesRestorePackageForOrg = ( params: Params< @@ -8001,12 +11753,28 @@ export type PackagesRestorePackageForOrg = ( | Response<404, t_basic_error> > -export type PackagesGetAllPackageVersionsForPackageOwnedByOrgResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesGetAllPackageVersionsForPackageOwnedByOrgResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesGetAllPackageVersionsForPackageOwnedByOrgResponder = + typeof packagesGetAllPackageVersionsForPackageOwnedByOrgResponder & + KoaRuntimeResponder + +const packagesGetAllPackageVersionsForPackageOwnedByOrgResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_package_version)], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesGetAllPackageVersionsForPackageOwnedByOrg = ( params: Params< @@ -8025,9 +11793,16 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByOrg = ( | Response<404, t_basic_error> > -export type PackagesGetPackageVersionForOrganizationResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesGetPackageVersionForOrganizationResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PackagesGetPackageVersionForOrganizationResponder = + typeof packagesGetPackageVersionForOrganizationResponder & KoaRuntimeResponder + +const packagesGetPackageVersionForOrganizationResponseValidator = + responseValidationFactory([["200", s_package_version]], undefined) export type PackagesGetPackageVersionForOrganization = ( params: Params< @@ -8040,12 +11815,27 @@ export type PackagesGetPackageVersionForOrganization = ( ctx: RouterContext, ) => Promise | Response<200, t_package_version>> -export type PackagesDeletePackageVersionForOrgResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesDeletePackageVersionForOrgResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesDeletePackageVersionForOrgResponder = + typeof packagesDeletePackageVersionForOrgResponder & KoaRuntimeResponder + +const packagesDeletePackageVersionForOrgResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesDeletePackageVersionForOrg = ( params: Params< @@ -8064,12 +11854,27 @@ export type PackagesDeletePackageVersionForOrg = ( | Response<404, t_basic_error> > -export type PackagesRestorePackageVersionForOrgResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesRestorePackageVersionForOrgResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesRestorePackageVersionForOrgResponder = + typeof packagesRestorePackageVersionForOrgResponder & KoaRuntimeResponder + +const packagesRestorePackageVersionForOrgResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesRestorePackageVersionForOrg = ( params: Params< @@ -8088,15 +11893,28 @@ export type PackagesRestorePackageVersionForOrg = ( | Response<404, t_basic_error> > -export type OrgsListPatGrantRequestsResponder = { - with200(): KoaRuntimeResponse< - t_organization_programmatic_access_grant_request[] - > - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListPatGrantRequestsResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsListPatGrantRequestsResponder = + typeof orgsListPatGrantRequestsResponder & KoaRuntimeResponder + +const orgsListPatGrantRequestsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_organization_programmatic_access_grant_request)], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, +) export type OrgsListPatGrantRequests = ( params: Params< @@ -8116,15 +11934,31 @@ export type OrgsListPatGrantRequests = ( | Response<500, t_basic_error> > -export type OrgsReviewPatGrantRequestsInBulkResponder = { - with202(): KoaRuntimeResponse<{ +const orgsReviewPatGrantRequestsInBulkResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsReviewPatGrantRequestsInBulkResponder = + typeof orgsReviewPatGrantRequestsInBulkResponder & KoaRuntimeResponder + +const orgsReviewPatGrantRequestsInBulkResponseValidator = + responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, + ) export type OrgsReviewPatGrantRequestsInBulk = ( params: Params< @@ -8149,13 +11983,28 @@ export type OrgsReviewPatGrantRequestsInBulk = ( | Response<500, t_basic_error> > -export type OrgsReviewPatGrantRequestResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsReviewPatGrantRequestResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsReviewPatGrantRequestResponder = + typeof orgsReviewPatGrantRequestResponder & KoaRuntimeResponder + +const orgsReviewPatGrantRequestResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, +) export type OrgsReviewPatGrantRequest = ( params: Params< @@ -8175,12 +12024,27 @@ export type OrgsReviewPatGrantRequest = ( | Response<500, t_basic_error> > -export type OrgsListPatGrantRequestRepositoriesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListPatGrantRequestRepositoriesResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsListPatGrantRequestRepositoriesResponder = + typeof orgsListPatGrantRequestRepositoriesResponder & KoaRuntimeResponder + +const orgsListPatGrantRequestRepositoriesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_minimal_repository)], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type OrgsListPatGrantRequestRepositories = ( params: Params< @@ -8199,13 +12063,28 @@ export type OrgsListPatGrantRequestRepositories = ( | Response<500, t_basic_error> > -export type OrgsListPatGrantsResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListPatGrantsResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsListPatGrantsResponder = typeof orgsListPatGrantsResponder & + KoaRuntimeResponder + +const orgsListPatGrantsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_organization_programmatic_access_grant)], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, +) export type OrgsListPatGrants = ( params: Params< @@ -8225,15 +12104,30 @@ export type OrgsListPatGrants = ( | Response<500, t_basic_error> > -export type OrgsUpdatePatAccessesResponder = { - with202(): KoaRuntimeResponse<{ +const orgsUpdatePatAccessesResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsUpdatePatAccessesResponder = typeof orgsUpdatePatAccessesResponder & + KoaRuntimeResponder + +const orgsUpdatePatAccessesResponseValidator = responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, +) export type OrgsUpdatePatAccesses = ( params: Params< @@ -8258,13 +12152,28 @@ export type OrgsUpdatePatAccesses = ( | Response<500, t_basic_error> > -export type OrgsUpdatePatAccessResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsUpdatePatAccessResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsUpdatePatAccessResponder = typeof orgsUpdatePatAccessResponder & + KoaRuntimeResponder + +const orgsUpdatePatAccessResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, +) export type OrgsUpdatePatAccess = ( params: Params< @@ -8284,12 +12193,26 @@ export type OrgsUpdatePatAccess = ( | Response<500, t_basic_error> > -export type OrgsListPatGrantRepositoriesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListPatGrantRepositoriesResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsListPatGrantRepositoriesResponder = + typeof orgsListPatGrantRepositoriesResponder & KoaRuntimeResponder + +const orgsListPatGrantRepositoriesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_minimal_repository)], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type OrgsListPatGrantRepositories = ( params: Params< @@ -8308,14 +12231,35 @@ export type OrgsListPatGrantRepositories = ( | Response<500, t_basic_error> > -export type PrivateRegistriesListOrgPrivateRegistriesResponder = { - with200(): KoaRuntimeResponse<{ +const privateRegistriesListOrgPrivateRegistriesResponder = { + with200: r.with200<{ configurations: t_org_private_registry_configuration[] total_count: number - }> - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with400: r.with400, + with404: r.with404, + withStatus: r.withStatus, +} + +type PrivateRegistriesListOrgPrivateRegistriesResponder = + typeof privateRegistriesListOrgPrivateRegistriesResponder & + KoaRuntimeResponder + +const privateRegistriesListOrgPrivateRegistriesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + configurations: z.array(s_org_private_registry_configuration), + }), + ], + ["400", s_scim_error], + ["404", s_basic_error], + ], + undefined, + ) export type PrivateRegistriesListOrgPrivateRegistries = ( params: Params< @@ -8339,11 +12283,27 @@ export type PrivateRegistriesListOrgPrivateRegistries = ( | Response<404, t_basic_error> > -export type PrivateRegistriesCreateOrgPrivateRegistryResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const privateRegistriesCreateOrgPrivateRegistryResponder = { + with201: + r.with201, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type PrivateRegistriesCreateOrgPrivateRegistryResponder = + typeof privateRegistriesCreateOrgPrivateRegistryResponder & + KoaRuntimeResponder + +const privateRegistriesCreateOrgPrivateRegistryResponseValidator = + responseValidationFactory( + [ + ["201", s_org_private_registry_configuration_with_selected_repositories], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type PrivateRegistriesCreateOrgPrivateRegistry = ( params: Params< @@ -8364,13 +12324,26 @@ export type PrivateRegistriesCreateOrgPrivateRegistry = ( | Response<422, t_validation_error> > -export type PrivateRegistriesGetOrgPublicKeyResponder = { - with200(): KoaRuntimeResponse<{ +const privateRegistriesGetOrgPublicKeyResponder = { + with200: r.with200<{ key: string key_id: string - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type PrivateRegistriesGetOrgPublicKeyResponder = + typeof privateRegistriesGetOrgPublicKeyResponder & KoaRuntimeResponder + +const privateRegistriesGetOrgPublicKeyResponseValidator = + responseValidationFactory( + [ + ["200", z.object({ key_id: z.string(), key: z.string() })], + ["404", s_basic_error], + ], + undefined, + ) export type PrivateRegistriesGetOrgPublicKey = ( params: Params< @@ -8393,10 +12366,23 @@ export type PrivateRegistriesGetOrgPublicKey = ( | Response<404, t_basic_error> > -export type PrivateRegistriesGetOrgPrivateRegistryResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const privateRegistriesGetOrgPrivateRegistryResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type PrivateRegistriesGetOrgPrivateRegistryResponder = + typeof privateRegistriesGetOrgPrivateRegistryResponder & KoaRuntimeResponder + +const privateRegistriesGetOrgPrivateRegistryResponseValidator = + responseValidationFactory( + [ + ["200", s_org_private_registry_configuration], + ["404", s_basic_error], + ], + undefined, + ) export type PrivateRegistriesGetOrgPrivateRegistry = ( params: Params< @@ -8413,11 +12399,26 @@ export type PrivateRegistriesGetOrgPrivateRegistry = ( | Response<404, t_basic_error> > -export type PrivateRegistriesUpdateOrgPrivateRegistryResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const privateRegistriesUpdateOrgPrivateRegistryResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type PrivateRegistriesUpdateOrgPrivateRegistryResponder = + typeof privateRegistriesUpdateOrgPrivateRegistryResponder & + KoaRuntimeResponder + +const privateRegistriesUpdateOrgPrivateRegistryResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type PrivateRegistriesUpdateOrgPrivateRegistry = ( params: Params< @@ -8435,11 +12436,26 @@ export type PrivateRegistriesUpdateOrgPrivateRegistry = ( | Response<422, t_validation_error> > -export type PrivateRegistriesDeleteOrgPrivateRegistryResponder = { - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const privateRegistriesDeleteOrgPrivateRegistryResponder = { + with204: r.with204, + with400: r.with400, + with404: r.with404, + withStatus: r.withStatus, +} + +type PrivateRegistriesDeleteOrgPrivateRegistryResponder = + typeof privateRegistriesDeleteOrgPrivateRegistryResponder & + KoaRuntimeResponder + +const privateRegistriesDeleteOrgPrivateRegistryResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["400", s_scim_error], + ["404", s_basic_error], + ], + undefined, + ) export type PrivateRegistriesDeleteOrgPrivateRegistry = ( params: Params< @@ -8457,10 +12473,22 @@ export type PrivateRegistriesDeleteOrgPrivateRegistry = ( | Response<404, t_basic_error> > -export type ProjectsListForOrgResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsListForOrgResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsListForOrgResponder = typeof projectsListForOrgResponder & + KoaRuntimeResponder + +const projectsListForOrgResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_project)], + ["422", s_validation_error_simple], + ], + undefined, +) export type ProjectsListForOrg = ( params: Params< @@ -8477,14 +12505,30 @@ export type ProjectsListForOrg = ( | Response<422, t_validation_error_simple> > -export type ProjectsCreateForOrgResponder = { - with201(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsCreateForOrgResponder = { + with201: r.with201, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsCreateForOrgResponder = typeof projectsCreateForOrgResponder & + KoaRuntimeResponder + +const projectsCreateForOrgResponseValidator = responseValidationFactory( + [ + ["201", s_project], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ProjectsCreateForOrg = ( params: Params< @@ -8505,11 +12549,24 @@ export type ProjectsCreateForOrg = ( | Response<422, t_validation_error_simple> > -export type OrgsGetAllCustomPropertiesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetAllCustomPropertiesResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsGetAllCustomPropertiesResponder = + typeof orgsGetAllCustomPropertiesResponder & KoaRuntimeResponder + +const orgsGetAllCustomPropertiesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_custom_property)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type OrgsGetAllCustomProperties = ( params: Params, @@ -8522,11 +12579,25 @@ export type OrgsGetAllCustomProperties = ( | Response<404, t_basic_error> > -export type OrgsCreateOrUpdateCustomPropertiesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCreateOrUpdateCustomPropertiesResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsCreateOrUpdateCustomPropertiesResponder = + typeof orgsCreateOrUpdateCustomPropertiesResponder & KoaRuntimeResponder + +const orgsCreateOrUpdateCustomPropertiesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_custom_property)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type OrgsCreateOrUpdateCustomProperties = ( params: Params< @@ -8544,11 +12615,24 @@ export type OrgsCreateOrUpdateCustomProperties = ( | Response<404, t_basic_error> > -export type OrgsGetCustomPropertyResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetCustomPropertyResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsGetCustomPropertyResponder = typeof orgsGetCustomPropertyResponder & + KoaRuntimeResponder + +const orgsGetCustomPropertyResponseValidator = responseValidationFactory( + [ + ["200", s_custom_property], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type OrgsGetCustomProperty = ( params: Params, @@ -8561,11 +12645,25 @@ export type OrgsGetCustomProperty = ( | Response<404, t_basic_error> > -export type OrgsCreateOrUpdateCustomPropertyResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCreateOrUpdateCustomPropertyResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsCreateOrUpdateCustomPropertyResponder = + typeof orgsCreateOrUpdateCustomPropertyResponder & KoaRuntimeResponder + +const orgsCreateOrUpdateCustomPropertyResponseValidator = + responseValidationFactory( + [ + ["200", s_custom_property], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type OrgsCreateOrUpdateCustomProperty = ( params: Params< @@ -8583,11 +12681,24 @@ export type OrgsCreateOrUpdateCustomProperty = ( | Response<404, t_basic_error> > -export type OrgsRemoveCustomPropertyResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRemoveCustomPropertyResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsRemoveCustomPropertyResponder = + typeof orgsRemoveCustomPropertyResponder & KoaRuntimeResponder + +const orgsRemoveCustomPropertyResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type OrgsRemoveCustomProperty = ( params: Params, @@ -8600,11 +12711,25 @@ export type OrgsRemoveCustomProperty = ( | Response<404, t_basic_error> > -export type OrgsListCustomPropertiesValuesForReposResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListCustomPropertiesValuesForReposResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsListCustomPropertiesValuesForReposResponder = + typeof orgsListCustomPropertiesValuesForReposResponder & KoaRuntimeResponder + +const orgsListCustomPropertiesValuesForReposResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_org_repo_custom_property_values)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type OrgsListCustomPropertiesValuesForRepos = ( params: Params< @@ -8622,12 +12747,28 @@ export type OrgsListCustomPropertiesValuesForRepos = ( | Response<404, t_basic_error> > -export type OrgsCreateOrUpdateCustomPropertiesValuesForReposResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCreateOrUpdateCustomPropertiesValuesForReposResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsCreateOrUpdateCustomPropertiesValuesForReposResponder = + typeof orgsCreateOrUpdateCustomPropertiesValuesForReposResponder & + KoaRuntimeResponder + +const orgsCreateOrUpdateCustomPropertiesValuesForReposResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type OrgsCreateOrUpdateCustomPropertiesValuesForRepos = ( params: Params< @@ -8646,9 +12787,18 @@ export type OrgsCreateOrUpdateCustomPropertiesValuesForRepos = ( | Response<422, t_validation_error> > -export type OrgsListPublicMembersResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListPublicMembersResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type OrgsListPublicMembersResponder = typeof orgsListPublicMembersResponder & + KoaRuntimeResponder + +const orgsListPublicMembersResponseValidator = responseValidationFactory( + [["200", z.array(s_simple_user)]], + undefined, +) export type OrgsListPublicMembers = ( params: Params< @@ -8661,10 +12811,23 @@ export type OrgsListPublicMembers = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -export type OrgsCheckPublicMembershipForUserResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsCheckPublicMembershipForUserResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsCheckPublicMembershipForUserResponder = + typeof orgsCheckPublicMembershipForUserResponder & KoaRuntimeResponder + +const orgsCheckPublicMembershipForUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, + ) export type OrgsCheckPublicMembershipForUser = ( params: Params< @@ -8679,10 +12842,24 @@ export type OrgsCheckPublicMembershipForUser = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -export type OrgsSetPublicMembershipForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsSetPublicMembershipForAuthenticatedUserResponder = { + with204: r.with204, + with403: r.with403, + withStatus: r.withStatus, +} + +type OrgsSetPublicMembershipForAuthenticatedUserResponder = + typeof orgsSetPublicMembershipForAuthenticatedUserResponder & + KoaRuntimeResponder + +const orgsSetPublicMembershipForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ], + undefined, + ) export type OrgsSetPublicMembershipForAuthenticatedUser = ( params: Params< @@ -8699,9 +12876,17 @@ export type OrgsSetPublicMembershipForAuthenticatedUser = ( | Response<403, t_basic_error> > -export type OrgsRemovePublicMembershipForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRemovePublicMembershipForAuthenticatedUserResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type OrgsRemovePublicMembershipForAuthenticatedUserResponder = + typeof orgsRemovePublicMembershipForAuthenticatedUserResponder & + KoaRuntimeResponder + +const orgsRemovePublicMembershipForAuthenticatedUserResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type OrgsRemovePublicMembershipForAuthenticatedUser = ( params: Params< @@ -8714,9 +12899,18 @@ export type OrgsRemovePublicMembershipForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposListForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListForOrgResponder = typeof reposListForOrgResponder & + KoaRuntimeResponder + +const reposListForOrgResponseValidator = responseValidationFactory( + [["200", z.array(s_minimal_repository)]], + undefined, +) export type ReposListForOrg = ( params: Params< @@ -8731,11 +12925,24 @@ export type ReposListForOrg = ( KoaRuntimeResponse | Response<200, t_minimal_repository[]> > -export type ReposCreateInOrgResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateInOrgResponder = { + with201: r.with201, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateInOrgResponder = typeof reposCreateInOrgResponder & + KoaRuntimeResponder + +const reposCreateInOrgResponseValidator = responseValidationFactory( + [ + ["201", s_full_repository], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateInOrg = ( params: Params< @@ -8753,11 +12960,24 @@ export type ReposCreateInOrg = ( | Response<422, t_validation_error> > -export type ReposGetOrgRulesetsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetOrgRulesetsResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetOrgRulesetsResponder = typeof reposGetOrgRulesetsResponder & + KoaRuntimeResponder + +const reposGetOrgRulesetsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_repository_ruleset)], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetOrgRulesets = ( params: Params< @@ -8775,11 +12995,24 @@ export type ReposGetOrgRulesets = ( | Response<500, t_basic_error> > -export type ReposCreateOrgRulesetResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateOrgRulesetResponder = { + with201: r.with201, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposCreateOrgRulesetResponder = typeof reposCreateOrgRulesetResponder & + KoaRuntimeResponder + +const reposCreateOrgRulesetResponseValidator = responseValidationFactory( + [ + ["201", s_repository_ruleset], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposCreateOrgRuleset = ( params: Params< @@ -8797,11 +13030,24 @@ export type ReposCreateOrgRuleset = ( | Response<500, t_basic_error> > -export type ReposGetOrgRuleSuitesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetOrgRuleSuitesResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetOrgRuleSuitesResponder = typeof reposGetOrgRuleSuitesResponder & + KoaRuntimeResponder + +const reposGetOrgRuleSuitesResponseValidator = responseValidationFactory( + [ + ["200", s_rule_suites], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetOrgRuleSuites = ( params: Params< @@ -8819,11 +13065,24 @@ export type ReposGetOrgRuleSuites = ( | Response<500, t_basic_error> > -export type ReposGetOrgRuleSuiteResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetOrgRuleSuiteResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetOrgRuleSuiteResponder = typeof reposGetOrgRuleSuiteResponder & + KoaRuntimeResponder + +const reposGetOrgRuleSuiteResponseValidator = responseValidationFactory( + [ + ["200", s_rule_suite], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetOrgRuleSuite = ( params: Params, @@ -8836,11 +13095,24 @@ export type ReposGetOrgRuleSuite = ( | Response<500, t_basic_error> > -export type ReposGetOrgRulesetResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetOrgRulesetResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetOrgRulesetResponder = typeof reposGetOrgRulesetResponder & + KoaRuntimeResponder + +const reposGetOrgRulesetResponseValidator = responseValidationFactory( + [ + ["200", s_repository_ruleset], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetOrgRuleset = ( params: Params, @@ -8853,11 +13125,24 @@ export type ReposGetOrgRuleset = ( | Response<500, t_basic_error> > -export type ReposUpdateOrgRulesetResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateOrgRulesetResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposUpdateOrgRulesetResponder = typeof reposUpdateOrgRulesetResponder & + KoaRuntimeResponder + +const reposUpdateOrgRulesetResponseValidator = responseValidationFactory( + [ + ["200", s_repository_ruleset], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposUpdateOrgRuleset = ( params: Params< @@ -8875,11 +13160,24 @@ export type ReposUpdateOrgRuleset = ( | Response<500, t_basic_error> > -export type ReposDeleteOrgRulesetResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteOrgRulesetResponder = { + with204: r.with204, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposDeleteOrgRulesetResponder = typeof reposDeleteOrgRulesetResponder & + KoaRuntimeResponder + +const reposDeleteOrgRulesetResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposDeleteOrgRuleset = ( params: Params, @@ -8892,11 +13190,24 @@ export type ReposDeleteOrgRuleset = ( | Response<500, t_basic_error> > -export type OrgsGetOrgRulesetHistoryResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetOrgRulesetHistoryResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsGetOrgRulesetHistoryResponder = + typeof orgsGetOrgRulesetHistoryResponder & KoaRuntimeResponder + +const orgsGetOrgRulesetHistoryResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_ruleset_version)], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type OrgsGetOrgRulesetHistory = ( params: Params< @@ -8914,11 +13225,24 @@ export type OrgsGetOrgRulesetHistory = ( | Response<500, t_basic_error> > -export type OrgsGetOrgRulesetVersionResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetOrgRulesetVersionResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type OrgsGetOrgRulesetVersionResponder = + typeof orgsGetOrgRulesetVersionResponder & KoaRuntimeResponder + +const orgsGetOrgRulesetVersionResponseValidator = responseValidationFactory( + [ + ["200", s_ruleset_version_with_state], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type OrgsGetOrgRulesetVersion = ( params: Params, @@ -8931,15 +13255,36 @@ export type OrgsGetOrgRulesetVersion = ( | Response<500, t_basic_error> > -export type SecretScanningListAlertsForOrgResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const secretScanningListAlertsForOrgResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SecretScanningListAlertsForOrgResponder = + typeof secretScanningListAlertsForOrgResponder & KoaRuntimeResponder + +const secretScanningListAlertsForOrgResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_organization_secret_scanning_alert)], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type SecretScanningListAlertsForOrg = ( params: Params< @@ -8964,11 +13309,26 @@ export type SecretScanningListAlertsForOrg = ( > > -export type SecurityAdvisoriesListOrgRepositoryAdvisoriesResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesListOrgRepositoryAdvisoriesResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesListOrgRepositoryAdvisoriesResponder = + typeof securityAdvisoriesListOrgRepositoryAdvisoriesResponder & + KoaRuntimeResponder + +const securityAdvisoriesListOrgRepositoryAdvisoriesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_repository_advisory)], + ["400", s_scim_error], + ["404", s_basic_error], + ], + undefined, + ) export type SecurityAdvisoriesListOrgRepositoryAdvisories = ( params: Params< @@ -8986,9 +13346,18 @@ export type SecurityAdvisoriesListOrgRepositoryAdvisories = ( | Response<404, t_basic_error> > -export type OrgsListSecurityManagerTeamsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListSecurityManagerTeamsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type OrgsListSecurityManagerTeamsResponder = + typeof orgsListSecurityManagerTeamsResponder & KoaRuntimeResponder + +const orgsListSecurityManagerTeamsResponseValidator = responseValidationFactory( + [["200", z.array(s_team_simple)]], + undefined, +) export type OrgsListSecurityManagerTeams = ( params: Params, @@ -8996,9 +13365,18 @@ export type OrgsListSecurityManagerTeams = ( ctx: RouterContext, ) => Promise | Response<200, t_team_simple[]>> -export type OrgsAddSecurityManagerTeamResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsAddSecurityManagerTeamResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type OrgsAddSecurityManagerTeamResponder = + typeof orgsAddSecurityManagerTeamResponder & KoaRuntimeResponder + +const orgsAddSecurityManagerTeamResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type OrgsAddSecurityManagerTeam = ( params: Params, @@ -9006,9 +13384,16 @@ export type OrgsAddSecurityManagerTeam = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type OrgsRemoveSecurityManagerTeamResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsRemoveSecurityManagerTeamResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type OrgsRemoveSecurityManagerTeamResponder = + typeof orgsRemoveSecurityManagerTeamResponder & KoaRuntimeResponder + +const orgsRemoveSecurityManagerTeamResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type OrgsRemoveSecurityManagerTeam = ( params: Params, @@ -9016,9 +13401,16 @@ export type OrgsRemoveSecurityManagerTeam = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type BillingGetGithubActionsBillingOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const billingGetGithubActionsBillingOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type BillingGetGithubActionsBillingOrgResponder = + typeof billingGetGithubActionsBillingOrgResponder & KoaRuntimeResponder + +const billingGetGithubActionsBillingOrgResponseValidator = + responseValidationFactory([["200", s_actions_billing_usage]], undefined) export type BillingGetGithubActionsBillingOrg = ( params: Params< @@ -9033,9 +13425,16 @@ export type BillingGetGithubActionsBillingOrg = ( KoaRuntimeResponse | Response<200, t_actions_billing_usage> > -export type BillingGetGithubPackagesBillingOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const billingGetGithubPackagesBillingOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type BillingGetGithubPackagesBillingOrgResponder = + typeof billingGetGithubPackagesBillingOrgResponder & KoaRuntimeResponder + +const billingGetGithubPackagesBillingOrgResponseValidator = + responseValidationFactory([["200", s_packages_billing_usage]], undefined) export type BillingGetGithubPackagesBillingOrg = ( params: Params< @@ -9050,9 +13449,16 @@ export type BillingGetGithubPackagesBillingOrg = ( KoaRuntimeResponse | Response<200, t_packages_billing_usage> > -export type BillingGetSharedStorageBillingOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const billingGetSharedStorageBillingOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type BillingGetSharedStorageBillingOrgResponder = + typeof billingGetSharedStorageBillingOrgResponder & KoaRuntimeResponder + +const billingGetSharedStorageBillingOrgResponseValidator = + responseValidationFactory([["200", s_combined_billing_usage]], undefined) export type BillingGetSharedStorageBillingOrg = ( params: Params< @@ -9067,12 +13473,31 @@ export type BillingGetSharedStorageBillingOrg = ( KoaRuntimeResponse | Response<200, t_combined_billing_usage> > -export type HostedComputeListNetworkConfigurationsForOrgResponder = { - with200(): KoaRuntimeResponse<{ +const hostedComputeListNetworkConfigurationsForOrgResponder = { + with200: r.with200<{ network_configurations: t_network_configuration[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type HostedComputeListNetworkConfigurationsForOrgResponder = + typeof hostedComputeListNetworkConfigurationsForOrgResponder & + KoaRuntimeResponder + +const hostedComputeListNetworkConfigurationsForOrgResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + network_configurations: z.array(s_network_configuration), + }), + ], + ], + undefined, + ) export type HostedComputeListNetworkConfigurationsForOrg = ( params: Params< @@ -9094,9 +13519,17 @@ export type HostedComputeListNetworkConfigurationsForOrg = ( > > -export type HostedComputeCreateNetworkConfigurationForOrgResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const hostedComputeCreateNetworkConfigurationForOrgResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type HostedComputeCreateNetworkConfigurationForOrgResponder = + typeof hostedComputeCreateNetworkConfigurationForOrgResponder & + KoaRuntimeResponder + +const hostedComputeCreateNetworkConfigurationForOrgResponseValidator = + responseValidationFactory([["201", s_network_configuration]], undefined) export type HostedComputeCreateNetworkConfigurationForOrg = ( params: Params< @@ -9111,9 +13544,17 @@ export type HostedComputeCreateNetworkConfigurationForOrg = ( KoaRuntimeResponse | Response<201, t_network_configuration> > -export type HostedComputeGetNetworkConfigurationForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const hostedComputeGetNetworkConfigurationForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type HostedComputeGetNetworkConfigurationForOrgResponder = + typeof hostedComputeGetNetworkConfigurationForOrgResponder & + KoaRuntimeResponder + +const hostedComputeGetNetworkConfigurationForOrgResponseValidator = + responseValidationFactory([["200", s_network_configuration]], undefined) export type HostedComputeGetNetworkConfigurationForOrg = ( params: Params< @@ -9128,9 +13569,17 @@ export type HostedComputeGetNetworkConfigurationForOrg = ( KoaRuntimeResponse | Response<200, t_network_configuration> > -export type HostedComputeUpdateNetworkConfigurationForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const hostedComputeUpdateNetworkConfigurationForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type HostedComputeUpdateNetworkConfigurationForOrgResponder = + typeof hostedComputeUpdateNetworkConfigurationForOrgResponder & + KoaRuntimeResponder + +const hostedComputeUpdateNetworkConfigurationForOrgResponseValidator = + responseValidationFactory([["200", s_network_configuration]], undefined) export type HostedComputeUpdateNetworkConfigurationForOrg = ( params: Params< @@ -9145,9 +13594,17 @@ export type HostedComputeUpdateNetworkConfigurationForOrg = ( KoaRuntimeResponse | Response<200, t_network_configuration> > -export type HostedComputeDeleteNetworkConfigurationFromOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const hostedComputeDeleteNetworkConfigurationFromOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type HostedComputeDeleteNetworkConfigurationFromOrgResponder = + typeof hostedComputeDeleteNetworkConfigurationFromOrgResponder & + KoaRuntimeResponder + +const hostedComputeDeleteNetworkConfigurationFromOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type HostedComputeDeleteNetworkConfigurationFromOrg = ( params: Params< @@ -9160,9 +13617,16 @@ export type HostedComputeDeleteNetworkConfigurationFromOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type HostedComputeGetNetworkSettingsForOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const hostedComputeGetNetworkSettingsForOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type HostedComputeGetNetworkSettingsForOrgResponder = + typeof hostedComputeGetNetworkSettingsForOrgResponder & KoaRuntimeResponder + +const hostedComputeGetNetworkSettingsForOrgResponseValidator = + responseValidationFactory([["200", s_network_settings]], undefined) export type HostedComputeGetNetworkSettingsForOrg = ( params: Params< @@ -9175,13 +13639,28 @@ export type HostedComputeGetNetworkSettingsForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_network_settings>> -export type CopilotCopilotMetricsForTeamResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const copilotCopilotMetricsForTeamResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CopilotCopilotMetricsForTeamResponder = + typeof copilotCopilotMetricsForTeamResponder & KoaRuntimeResponder + +const copilotCopilotMetricsForTeamResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_copilot_usage_metrics_day)], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type CopilotCopilotMetricsForTeam = ( params: Params< @@ -9201,10 +13680,21 @@ export type CopilotCopilotMetricsForTeam = ( | Response<500, t_basic_error> > -export type TeamsListResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListResponder = { + with200: r.with200, + with403: r.with403, + withStatus: r.withStatus, +} + +type TeamsListResponder = typeof teamsListResponder & KoaRuntimeResponder + +const teamsListResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_team)], + ["403", s_basic_error], + ], + undefined, +) export type TeamsList = ( params: Params, @@ -9216,11 +13706,23 @@ export type TeamsList = ( | Response<403, t_basic_error> > -export type TeamsCreateResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCreateResponder = { + with201: r.with201, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsCreateResponder = typeof teamsCreateResponder & KoaRuntimeResponder + +const teamsCreateResponseValidator = responseValidationFactory( + [ + ["201", s_team_full], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type TeamsCreate = ( params: Params, @@ -9233,10 +13735,22 @@ export type TeamsCreate = ( | Response<422, t_validation_error> > -export type TeamsGetByNameResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetByNameResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsGetByNameResponder = typeof teamsGetByNameResponder & + KoaRuntimeResponder + +const teamsGetByNameResponseValidator = responseValidationFactory( + [ + ["200", s_team_full], + ["404", s_basic_error], + ], + undefined, +) export type TeamsGetByName = ( params: Params, @@ -9248,13 +13762,28 @@ export type TeamsGetByName = ( | Response<404, t_basic_error> > -export type TeamsUpdateInOrgResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsUpdateInOrgResponder = { + with200: r.with200, + with201: r.with201, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsUpdateInOrgResponder = typeof teamsUpdateInOrgResponder & + KoaRuntimeResponder + +const teamsUpdateInOrgResponseValidator = responseValidationFactory( + [ + ["200", s_team_full], + ["201", s_team_full], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type TeamsUpdateInOrg = ( params: Params< @@ -9274,9 +13803,18 @@ export type TeamsUpdateInOrg = ( | Response<422, t_validation_error> > -export type TeamsDeleteInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsDeleteInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsDeleteInOrgResponder = typeof teamsDeleteInOrgResponder & + KoaRuntimeResponder + +const teamsDeleteInOrgResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type TeamsDeleteInOrg = ( params: Params, @@ -9284,9 +13822,18 @@ export type TeamsDeleteInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type TeamsListDiscussionsInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListDiscussionsInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListDiscussionsInOrgResponder = + typeof teamsListDiscussionsInOrgResponder & KoaRuntimeResponder + +const teamsListDiscussionsInOrgResponseValidator = responseValidationFactory( + [["200", z.array(s_team_discussion)]], + undefined, +) export type TeamsListDiscussionsInOrg = ( params: Params< @@ -9299,9 +13846,18 @@ export type TeamsListDiscussionsInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion[]>> -export type TeamsCreateDiscussionInOrgResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCreateDiscussionInOrgResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type TeamsCreateDiscussionInOrgResponder = + typeof teamsCreateDiscussionInOrgResponder & KoaRuntimeResponder + +const teamsCreateDiscussionInOrgResponseValidator = responseValidationFactory( + [["201", s_team_discussion]], + undefined, +) export type TeamsCreateDiscussionInOrg = ( params: Params< @@ -9314,9 +13870,18 @@ export type TeamsCreateDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<201, t_team_discussion>> -export type TeamsGetDiscussionInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetDiscussionInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsGetDiscussionInOrgResponder = + typeof teamsGetDiscussionInOrgResponder & KoaRuntimeResponder + +const teamsGetDiscussionInOrgResponseValidator = responseValidationFactory( + [["200", s_team_discussion]], + undefined, +) export type TeamsGetDiscussionInOrg = ( params: Params, @@ -9324,9 +13889,18 @@ export type TeamsGetDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> -export type TeamsUpdateDiscussionInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsUpdateDiscussionInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsUpdateDiscussionInOrgResponder = + typeof teamsUpdateDiscussionInOrgResponder & KoaRuntimeResponder + +const teamsUpdateDiscussionInOrgResponseValidator = responseValidationFactory( + [["200", s_team_discussion]], + undefined, +) export type TeamsUpdateDiscussionInOrg = ( params: Params< @@ -9339,9 +13913,18 @@ export type TeamsUpdateDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> -export type TeamsDeleteDiscussionInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsDeleteDiscussionInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsDeleteDiscussionInOrgResponder = + typeof teamsDeleteDiscussionInOrgResponder & KoaRuntimeResponder + +const teamsDeleteDiscussionInOrgResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type TeamsDeleteDiscussionInOrg = ( params: Params, @@ -9349,9 +13932,19 @@ export type TeamsDeleteDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type TeamsListDiscussionCommentsInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListDiscussionCommentsInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListDiscussionCommentsInOrgResponder = + typeof teamsListDiscussionCommentsInOrgResponder & KoaRuntimeResponder + +const teamsListDiscussionCommentsInOrgResponseValidator = + responseValidationFactory( + [["200", z.array(s_team_discussion_comment)]], + undefined, + ) export type TeamsListDiscussionCommentsInOrg = ( params: Params< @@ -9366,9 +13959,16 @@ export type TeamsListDiscussionCommentsInOrg = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment[]> > -export type TeamsCreateDiscussionCommentInOrgResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCreateDiscussionCommentInOrgResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type TeamsCreateDiscussionCommentInOrgResponder = + typeof teamsCreateDiscussionCommentInOrgResponder & KoaRuntimeResponder + +const teamsCreateDiscussionCommentInOrgResponseValidator = + responseValidationFactory([["201", s_team_discussion_comment]], undefined) export type TeamsCreateDiscussionCommentInOrg = ( params: Params< @@ -9383,9 +13983,16 @@ export type TeamsCreateDiscussionCommentInOrg = ( KoaRuntimeResponse | Response<201, t_team_discussion_comment> > -export type TeamsGetDiscussionCommentInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetDiscussionCommentInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsGetDiscussionCommentInOrgResponder = + typeof teamsGetDiscussionCommentInOrgResponder & KoaRuntimeResponder + +const teamsGetDiscussionCommentInOrgResponseValidator = + responseValidationFactory([["200", s_team_discussion_comment]], undefined) export type TeamsGetDiscussionCommentInOrg = ( params: Params, @@ -9395,9 +14002,16 @@ export type TeamsGetDiscussionCommentInOrg = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment> > -export type TeamsUpdateDiscussionCommentInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsUpdateDiscussionCommentInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsUpdateDiscussionCommentInOrgResponder = + typeof teamsUpdateDiscussionCommentInOrgResponder & KoaRuntimeResponder + +const teamsUpdateDiscussionCommentInOrgResponseValidator = + responseValidationFactory([["200", s_team_discussion_comment]], undefined) export type TeamsUpdateDiscussionCommentInOrg = ( params: Params< @@ -9412,9 +14026,16 @@ export type TeamsUpdateDiscussionCommentInOrg = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment> > -export type TeamsDeleteDiscussionCommentInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsDeleteDiscussionCommentInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsDeleteDiscussionCommentInOrgResponder = + typeof teamsDeleteDiscussionCommentInOrgResponder & KoaRuntimeResponder + +const teamsDeleteDiscussionCommentInOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type TeamsDeleteDiscussionCommentInOrg = ( params: Params< @@ -9427,9 +14048,17 @@ export type TeamsDeleteDiscussionCommentInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReactionsListForTeamDiscussionCommentInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForTeamDiscussionCommentInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReactionsListForTeamDiscussionCommentInOrgResponder = + typeof reactionsListForTeamDiscussionCommentInOrgResponder & + KoaRuntimeResponder + +const reactionsListForTeamDiscussionCommentInOrgResponseValidator = + responseValidationFactory([["200", z.array(s_reaction)]], undefined) export type ReactionsListForTeamDiscussionCommentInOrg = ( params: Params< @@ -9442,10 +14071,24 @@ export type ReactionsListForTeamDiscussionCommentInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> -export type ReactionsCreateForTeamDiscussionCommentInOrgResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForTeamDiscussionCommentInOrgResponder = { + with200: r.with200, + with201: r.with201, + withStatus: r.withStatus, +} + +type ReactionsCreateForTeamDiscussionCommentInOrgResponder = + typeof reactionsCreateForTeamDiscussionCommentInOrgResponder & + KoaRuntimeResponder + +const reactionsCreateForTeamDiscussionCommentInOrgResponseValidator = + responseValidationFactory( + [ + ["200", s_reaction], + ["201", s_reaction], + ], + undefined, + ) export type ReactionsCreateForTeamDiscussionCommentInOrg = ( params: Params< @@ -9462,9 +14105,16 @@ export type ReactionsCreateForTeamDiscussionCommentInOrg = ( | Response<201, t_reaction> > -export type ReactionsDeleteForTeamDiscussionCommentResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsDeleteForTeamDiscussionCommentResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReactionsDeleteForTeamDiscussionCommentResponder = + typeof reactionsDeleteForTeamDiscussionCommentResponder & KoaRuntimeResponder + +const reactionsDeleteForTeamDiscussionCommentResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReactionsDeleteForTeamDiscussionComment = ( params: Params< @@ -9477,9 +14127,16 @@ export type ReactionsDeleteForTeamDiscussionComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReactionsListForTeamDiscussionInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForTeamDiscussionInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReactionsListForTeamDiscussionInOrgResponder = + typeof reactionsListForTeamDiscussionInOrgResponder & KoaRuntimeResponder + +const reactionsListForTeamDiscussionInOrgResponseValidator = + responseValidationFactory([["200", z.array(s_reaction)]], undefined) export type ReactionsListForTeamDiscussionInOrg = ( params: Params< @@ -9492,10 +14149,23 @@ export type ReactionsListForTeamDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> -export type ReactionsCreateForTeamDiscussionInOrgResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForTeamDiscussionInOrgResponder = { + with200: r.with200, + with201: r.with201, + withStatus: r.withStatus, +} + +type ReactionsCreateForTeamDiscussionInOrgResponder = + typeof reactionsCreateForTeamDiscussionInOrgResponder & KoaRuntimeResponder + +const reactionsCreateForTeamDiscussionInOrgResponseValidator = + responseValidationFactory( + [ + ["200", s_reaction], + ["201", s_reaction], + ], + undefined, + ) export type ReactionsCreateForTeamDiscussionInOrg = ( params: Params< @@ -9512,9 +14182,16 @@ export type ReactionsCreateForTeamDiscussionInOrg = ( | Response<201, t_reaction> > -export type ReactionsDeleteForTeamDiscussionResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsDeleteForTeamDiscussionResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReactionsDeleteForTeamDiscussionResponder = + typeof reactionsDeleteForTeamDiscussionResponder & KoaRuntimeResponder + +const reactionsDeleteForTeamDiscussionResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReactionsDeleteForTeamDiscussion = ( params: Params< @@ -9527,9 +14204,19 @@ export type ReactionsDeleteForTeamDiscussion = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type TeamsListPendingInvitationsInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListPendingInvitationsInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListPendingInvitationsInOrgResponder = + typeof teamsListPendingInvitationsInOrgResponder & KoaRuntimeResponder + +const teamsListPendingInvitationsInOrgResponseValidator = + responseValidationFactory( + [["200", z.array(s_organization_invitation)]], + undefined, + ) export type TeamsListPendingInvitationsInOrg = ( params: Params< @@ -9544,9 +14231,18 @@ export type TeamsListPendingInvitationsInOrg = ( KoaRuntimeResponse | Response<200, t_organization_invitation[]> > -export type TeamsListMembersInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListMembersInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListMembersInOrgResponder = typeof teamsListMembersInOrgResponder & + KoaRuntimeResponder + +const teamsListMembersInOrgResponseValidator = responseValidationFactory( + [["200", z.array(s_simple_user)]], + undefined, +) export type TeamsListMembersInOrg = ( params: Params< @@ -9559,10 +14255,23 @@ export type TeamsListMembersInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -export type TeamsGetMembershipForUserInOrgResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetMembershipForUserInOrgResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsGetMembershipForUserInOrgResponder = + typeof teamsGetMembershipForUserInOrgResponder & KoaRuntimeResponder + +const teamsGetMembershipForUserInOrgResponseValidator = + responseValidationFactory( + [ + ["200", s_team_membership], + ["404", z.undefined()], + ], + undefined, + ) export type TeamsGetMembershipForUserInOrg = ( params: Params, @@ -9574,11 +14283,25 @@ export type TeamsGetMembershipForUserInOrg = ( | Response<404, void> > -export type TeamsAddOrUpdateMembershipForUserInOrgResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsAddOrUpdateMembershipForUserInOrgResponder = { + with200: r.with200, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsAddOrUpdateMembershipForUserInOrgResponder = + typeof teamsAddOrUpdateMembershipForUserInOrgResponder & KoaRuntimeResponder + +const teamsAddOrUpdateMembershipForUserInOrgResponseValidator = + responseValidationFactory( + [ + ["200", s_team_membership], + ["403", z.undefined()], + ["422", z.undefined()], + ], + undefined, + ) export type TeamsAddOrUpdateMembershipForUserInOrg = ( params: Params< @@ -9596,10 +14319,23 @@ export type TeamsAddOrUpdateMembershipForUserInOrg = ( | Response<422, void> > -export type TeamsRemoveMembershipForUserInOrgResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsRemoveMembershipForUserInOrgResponder = { + with204: r.with204, + with403: r.with403, + withStatus: r.withStatus, +} + +type TeamsRemoveMembershipForUserInOrgResponder = + typeof teamsRemoveMembershipForUserInOrgResponder & KoaRuntimeResponder + +const teamsRemoveMembershipForUserInOrgResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["403", z.undefined()], + ], + undefined, + ) export type TeamsRemoveMembershipForUserInOrg = ( params: Params< @@ -9614,9 +14350,18 @@ export type TeamsRemoveMembershipForUserInOrg = ( KoaRuntimeResponse | Response<204, void> | Response<403, void> > -export type TeamsListProjectsInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListProjectsInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListProjectsInOrgResponder = typeof teamsListProjectsInOrgResponder & + KoaRuntimeResponder + +const teamsListProjectsInOrgResponseValidator = responseValidationFactory( + [["200", z.array(s_team_project)]], + undefined, +) export type TeamsListProjectsInOrg = ( params: Params< @@ -9629,10 +14374,23 @@ export type TeamsListProjectsInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team_project[]>> -export type TeamsCheckPermissionsForProjectInOrgResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCheckPermissionsForProjectInOrgResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsCheckPermissionsForProjectInOrgResponder = + typeof teamsCheckPermissionsForProjectInOrgResponder & KoaRuntimeResponder + +const teamsCheckPermissionsForProjectInOrgResponseValidator = + responseValidationFactory( + [ + ["200", s_team_project], + ["404", z.undefined()], + ], + undefined, + ) export type TeamsCheckPermissionsForProjectInOrg = ( params: Params< @@ -9649,13 +14407,32 @@ export type TeamsCheckPermissionsForProjectInOrg = ( | Response<404, void> > -export type TeamsAddOrUpdateProjectPermissionsInOrgResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const teamsAddOrUpdateProjectPermissionsInOrgResponder = { + with204: r.with204, + with403: r.with403<{ documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type TeamsAddOrUpdateProjectPermissionsInOrgResponder = + typeof teamsAddOrUpdateProjectPermissionsInOrgResponder & KoaRuntimeResponder + +const teamsAddOrUpdateProjectPermissionsInOrgResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + [ + "403", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type TeamsAddOrUpdateProjectPermissionsInOrg = ( params: Params< @@ -9678,9 +14455,18 @@ export type TeamsAddOrUpdateProjectPermissionsInOrg = ( > > -export type TeamsRemoveProjectInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsRemoveProjectInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsRemoveProjectInOrgResponder = + typeof teamsRemoveProjectInOrgResponder & KoaRuntimeResponder + +const teamsRemoveProjectInOrgResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type TeamsRemoveProjectInOrg = ( params: Params, @@ -9688,9 +14474,18 @@ export type TeamsRemoveProjectInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type TeamsListReposInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListReposInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListReposInOrgResponder = typeof teamsListReposInOrgResponder & + KoaRuntimeResponder + +const teamsListReposInOrgResponseValidator = responseValidationFactory( + [["200", z.array(s_minimal_repository)]], + undefined, +) export type TeamsListReposInOrg = ( params: Params< @@ -9705,11 +14500,25 @@ export type TeamsListReposInOrg = ( KoaRuntimeResponse | Response<200, t_minimal_repository[]> > -export type TeamsCheckPermissionsForRepoInOrgResponder = { - with200(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCheckPermissionsForRepoInOrgResponder = { + with200: r.with200, + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsCheckPermissionsForRepoInOrgResponder = + typeof teamsCheckPermissionsForRepoInOrgResponder & KoaRuntimeResponder + +const teamsCheckPermissionsForRepoInOrgResponseValidator = + responseValidationFactory( + [ + ["200", s_team_repository], + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, + ) export type TeamsCheckPermissionsForRepoInOrg = ( params: Params< @@ -9727,9 +14536,16 @@ export type TeamsCheckPermissionsForRepoInOrg = ( | Response<404, void> > -export type TeamsAddOrUpdateRepoPermissionsInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsAddOrUpdateRepoPermissionsInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsAddOrUpdateRepoPermissionsInOrgResponder = + typeof teamsAddOrUpdateRepoPermissionsInOrgResponder & KoaRuntimeResponder + +const teamsAddOrUpdateRepoPermissionsInOrgResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type TeamsAddOrUpdateRepoPermissionsInOrg = ( params: Params< @@ -9742,9 +14558,18 @@ export type TeamsAddOrUpdateRepoPermissionsInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type TeamsRemoveRepoInOrgResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsRemoveRepoInOrgResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsRemoveRepoInOrgResponder = typeof teamsRemoveRepoInOrgResponder & + KoaRuntimeResponder + +const teamsRemoveRepoInOrgResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type TeamsRemoveRepoInOrg = ( params: Params, @@ -9752,9 +14577,18 @@ export type TeamsRemoveRepoInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type TeamsListChildInOrgResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListChildInOrgResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListChildInOrgResponder = typeof teamsListChildInOrgResponder & + KoaRuntimeResponder + +const teamsListChildInOrgResponseValidator = responseValidationFactory( + [["200", z.array(s_team)]], + undefined, +) export type TeamsListChildInOrg = ( params: Params< @@ -9767,10 +14601,24 @@ export type TeamsListChildInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team[]>> -export type OrgsEnableOrDisableSecurityProductOnAllOrgReposResponder = { - with204(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsEnableOrDisableSecurityProductOnAllOrgReposResponder = { + with204: r.with204, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsEnableOrDisableSecurityProductOnAllOrgReposResponder = + typeof orgsEnableOrDisableSecurityProductOnAllOrgReposResponder & + KoaRuntimeResponder + +const orgsEnableOrDisableSecurityProductOnAllOrgReposResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["422", z.undefined()], + ], + undefined, + ) export type OrgsEnableOrDisableSecurityProductOnAllOrgRepos = ( params: Params< @@ -9785,13 +14633,28 @@ export type OrgsEnableOrDisableSecurityProductOnAllOrgRepos = ( KoaRuntimeResponse | Response<204, void> | Response<422, void> > -export type ProjectsGetCardResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsGetCardResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ProjectsGetCardResponder = typeof projectsGetCardResponder & + KoaRuntimeResponder + +const projectsGetCardResponseValidator = responseValidationFactory( + [ + ["200", s_project_card], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ProjectsGetCard = ( params: Params, @@ -9806,14 +14669,30 @@ export type ProjectsGetCard = ( | Response<404, t_basic_error> > -export type ProjectsUpdateCardResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsUpdateCardResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsUpdateCardResponder = typeof projectsUpdateCardResponder & + KoaRuntimeResponder + +const projectsUpdateCardResponseValidator = responseValidationFactory( + [ + ["200", s_project_card], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ProjectsUpdateCard = ( params: Params< @@ -9834,17 +14713,39 @@ export type ProjectsUpdateCard = ( | Response<422, t_validation_error_simple> > -export type ProjectsDeleteCardResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const projectsDeleteCardResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403<{ documentation_url?: string errors?: string[] message?: string - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type ProjectsDeleteCardResponder = typeof projectsDeleteCardResponder & + KoaRuntimeResponder + +const projectsDeleteCardResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + [ + "403", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z.array(z.string()).optional(), + }), + ], + ["404", s_basic_error], + ], + undefined, +) export type ProjectsDeleteCard = ( params: Params, @@ -9866,11 +14767,11 @@ export type ProjectsDeleteCard = ( | Response<404, t_basic_error> > -export type ProjectsMoveCardResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const projectsMoveCardResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403<{ documentation_url?: string errors?: { code?: string @@ -9879,9 +14780,9 @@ export type ProjectsMoveCardResponder = { resource?: string }[] message?: string - }> - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ + }>, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string errors?: { @@ -9889,8 +14790,55 @@ export type ProjectsMoveCardResponder = { message?: string }[] message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ProjectsMoveCardResponder = typeof projectsMoveCardResponder & + KoaRuntimeResponder + +const projectsMoveCardResponseValidator = responseValidationFactory( + [ + ["201", z.object({})], + ["304", z.undefined()], + ["401", s_basic_error], + [ + "403", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z + .array( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + resource: z.string().optional(), + field: z.string().optional(), + }), + ) + .optional(), + }), + ], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z + .array( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + }), + ) + .optional(), + }), + ], + ], + undefined, +) export type ProjectsMoveCard = ( params: Params< @@ -9934,13 +14882,28 @@ export type ProjectsMoveCard = ( > > -export type ProjectsGetColumnResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsGetColumnResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ProjectsGetColumnResponder = typeof projectsGetColumnResponder & + KoaRuntimeResponder + +const projectsGetColumnResponseValidator = responseValidationFactory( + [ + ["200", s_project_column], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ProjectsGetColumn = ( params: Params, @@ -9955,12 +14918,26 @@ export type ProjectsGetColumn = ( | Response<404, t_basic_error> > -export type ProjectsUpdateColumnResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsUpdateColumnResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ProjectsUpdateColumnResponder = typeof projectsUpdateColumnResponder & + KoaRuntimeResponder + +const projectsUpdateColumnResponseValidator = responseValidationFactory( + [ + ["200", s_project_column], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type ProjectsUpdateColumn = ( params: Params< @@ -9979,12 +14956,26 @@ export type ProjectsUpdateColumn = ( | Response<403, t_basic_error> > -export type ProjectsDeleteColumnResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsDeleteColumnResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ProjectsDeleteColumnResponder = typeof projectsDeleteColumnResponder & + KoaRuntimeResponder + +const projectsDeleteColumnResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type ProjectsDeleteColumn = ( params: Params, @@ -9998,12 +14989,26 @@ export type ProjectsDeleteColumn = ( | Response<403, t_basic_error> > -export type ProjectsListCardsResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsListCardsResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ProjectsListCardsResponder = typeof projectsListCardsResponder & + KoaRuntimeResponder + +const projectsListCardsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_project_card)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type ProjectsListCards = ( params: Params< @@ -10022,13 +15027,13 @@ export type ProjectsListCards = ( | Response<403, t_basic_error> > -export type ProjectsCreateCardResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const projectsCreateCardResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string errors?: { @@ -10036,8 +15041,39 @@ export type ProjectsCreateCardResponder = { message?: string }[] message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ProjectsCreateCardResponder = typeof projectsCreateCardResponder & + KoaRuntimeResponder + +const projectsCreateCardResponseValidator = responseValidationFactory( + [ + ["201", s_project_card], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["422", z.union([s_validation_error, s_validation_error_simple])], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z + .array( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + }), + ) + .optional(), + }), + ], + ], + undefined, +) export type ProjectsCreateCard = ( params: Params< @@ -10069,13 +15105,28 @@ export type ProjectsCreateCard = ( > > -export type ProjectsMoveColumnResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsMoveColumnResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsMoveColumnResponder = typeof projectsMoveColumnResponder & + KoaRuntimeResponder + +const projectsMoveColumnResponseValidator = responseValidationFactory( + [ + ["201", z.object({})], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ProjectsMoveColumn = ( params: Params< @@ -10095,12 +15146,25 @@ export type ProjectsMoveColumn = ( | Response<422, t_validation_error_simple> > -export type ProjectsGetResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsGetResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ProjectsGetResponder = typeof projectsGetResponder & KoaRuntimeResponder + +const projectsGetResponseValidator = responseValidationFactory( + [ + ["200", s_project], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type ProjectsGet = ( params: Params, @@ -10114,19 +15178,43 @@ export type ProjectsGet = ( | Response<403, t_basic_error> > -export type ProjectsUpdateResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const projectsUpdateResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403<{ documentation_url?: string errors?: string[] message?: string - }> - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsUpdateResponder = typeof projectsUpdateResponder & + KoaRuntimeResponder + +const projectsUpdateResponseValidator = responseValidationFactory( + [ + ["200", s_project], + ["304", z.undefined()], + ["401", s_basic_error], + [ + "403", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z.array(z.string()).optional(), + }), + ], + ["404", z.undefined()], + ["410", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ProjectsUpdate = ( params: Params< @@ -10155,18 +15243,41 @@ export type ProjectsUpdate = ( | Response<422, t_validation_error_simple> > -export type ProjectsDeleteResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const projectsDeleteResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403<{ documentation_url?: string errors?: string[] message?: string - }> - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type ProjectsDeleteResponder = typeof projectsDeleteResponder & + KoaRuntimeResponder + +const projectsDeleteResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + [ + "403", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z.array(z.string()).optional(), + }), + ], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type ProjectsDelete = ( params: Params, @@ -10189,14 +15300,30 @@ export type ProjectsDelete = ( | Response<410, t_basic_error> > -export type ProjectsListCollaboratorsResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsListCollaboratorsResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsListCollaboratorsResponder = + typeof projectsListCollaboratorsResponder & KoaRuntimeResponder + +const projectsListCollaboratorsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ProjectsListCollaborators = ( params: Params< @@ -10217,14 +15344,30 @@ export type ProjectsListCollaborators = ( | Response<422, t_validation_error> > -export type ProjectsAddCollaboratorResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsAddCollaboratorResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsAddCollaboratorResponder = + typeof projectsAddCollaboratorResponder & KoaRuntimeResponder + +const projectsAddCollaboratorResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ProjectsAddCollaborator = ( params: Params< @@ -10245,14 +15388,30 @@ export type ProjectsAddCollaborator = ( | Response<422, t_validation_error> > -export type ProjectsRemoveCollaboratorResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsRemoveCollaboratorResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsRemoveCollaboratorResponder = + typeof projectsRemoveCollaboratorResponder & KoaRuntimeResponder + +const projectsRemoveCollaboratorResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ProjectsRemoveCollaborator = ( params: Params, @@ -10268,14 +15427,30 @@ export type ProjectsRemoveCollaborator = ( | Response<422, t_validation_error> > -export type ProjectsGetPermissionForUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsGetPermissionForUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsGetPermissionForUserResponder = + typeof projectsGetPermissionForUserResponder & KoaRuntimeResponder + +const projectsGetPermissionForUserResponseValidator = responseValidationFactory( + [ + ["200", s_project_collaborator_permission], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ProjectsGetPermissionForUser = ( params: Params, @@ -10291,12 +15466,26 @@ export type ProjectsGetPermissionForUser = ( | Response<422, t_validation_error> > -export type ProjectsListColumnsResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsListColumnsResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ProjectsListColumnsResponder = typeof projectsListColumnsResponder & + KoaRuntimeResponder + +const projectsListColumnsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_project_column)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type ProjectsListColumns = ( params: Params< @@ -10315,13 +15504,28 @@ export type ProjectsListColumns = ( | Response<403, t_basic_error> > -export type ProjectsCreateColumnResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsCreateColumnResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsCreateColumnResponder = typeof projectsCreateColumnResponder & + KoaRuntimeResponder + +const projectsCreateColumnResponseValidator = responseValidationFactory( + [ + ["201", s_project_column], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ProjectsCreateColumn = ( params: Params< @@ -10341,11 +15545,23 @@ export type ProjectsCreateColumn = ( | Response<422, t_validation_error_simple> > -export type RateLimitGetResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const rateLimitGetResponder = { + with200: r.with200, + with304: r.with304, + with404: r.with404, + withStatus: r.withStatus, +} + +type RateLimitGetResponder = typeof rateLimitGetResponder & KoaRuntimeResponder + +const rateLimitGetResponseValidator = responseValidationFactory( + [ + ["200", s_rate_limit_overview], + ["304", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type RateLimitGet = ( params: Params, @@ -10358,12 +15574,25 @@ export type RateLimitGet = ( | Response<404, t_basic_error> > -export type ReposGetResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetResponder = { + with200: r.with200, + with301: r.with301, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetResponder = typeof reposGetResponder & KoaRuntimeResponder + +const reposGetResponseValidator = responseValidationFactory( + [ + ["200", s_full_repository], + ["301", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ReposGet = ( params: Params, @@ -10377,13 +15606,27 @@ export type ReposGet = ( | Response<404, t_basic_error> > -export type ReposUpdateResponder = { - with200(): KoaRuntimeResponse - with307(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateResponder = { + with200: r.with200, + with307: r.with307, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposUpdateResponder = typeof reposUpdateResponder & KoaRuntimeResponder + +const reposUpdateResponseValidator = responseValidationFactory( + [ + ["200", s_full_repository], + ["307", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposUpdate = ( params: Params< @@ -10403,15 +15646,34 @@ export type ReposUpdate = ( | Response<422, t_validation_error> > -export type ReposDeleteResponder = { - with204(): KoaRuntimeResponse - with307(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const reposDeleteResponder = { + with204: r.with204, + with307: r.with307, + with403: r.with403<{ documentation_url?: string message?: string - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposDeleteResponder = typeof reposDeleteResponder & KoaRuntimeResponder + +const reposDeleteResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["307", s_basic_error], + [ + "403", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ["404", s_basic_error], + ], + undefined, +) export type ReposDelete = ( params: Params, @@ -10431,12 +15693,29 @@ export type ReposDelete = ( | Response<404, t_basic_error> > -export type ActionsListArtifactsForRepoResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListArtifactsForRepoResponder = { + with200: r.with200<{ artifacts: t_artifact[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListArtifactsForRepoResponder = + typeof actionsListArtifactsForRepoResponder & KoaRuntimeResponder + +const actionsListArtifactsForRepoResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + artifacts: z.array(s_artifact), + }), + ], + ], + undefined, +) export type ActionsListArtifactsForRepo = ( params: Params< @@ -10458,9 +15737,18 @@ export type ActionsListArtifactsForRepo = ( > > -export type ActionsGetArtifactResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetArtifactResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetArtifactResponder = typeof actionsGetArtifactResponder & + KoaRuntimeResponder + +const actionsGetArtifactResponseValidator = responseValidationFactory( + [["200", s_artifact]], + undefined, +) export type ActionsGetArtifact = ( params: Params, @@ -10468,9 +15756,18 @@ export type ActionsGetArtifact = ( ctx: RouterContext, ) => Promise | Response<200, t_artifact>> -export type ActionsDeleteArtifactResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteArtifactResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteArtifactResponder = typeof actionsDeleteArtifactResponder & + KoaRuntimeResponder + +const actionsDeleteArtifactResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsDeleteArtifact = ( params: Params, @@ -10478,10 +15775,22 @@ export type ActionsDeleteArtifact = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsDownloadArtifactResponder = { - with302(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDownloadArtifactResponder = { + with302: r.with302, + with410: r.with410, + withStatus: r.withStatus, +} + +type ActionsDownloadArtifactResponder = + typeof actionsDownloadArtifactResponder & KoaRuntimeResponder + +const actionsDownloadArtifactResponseValidator = responseValidationFactory( + [ + ["302", z.undefined()], + ["410", s_basic_error], + ], + undefined, +) export type ActionsDownloadArtifact = ( params: Params, @@ -10493,9 +15802,18 @@ export type ActionsDownloadArtifact = ( | Response<410, t_basic_error> > -export type ActionsGetActionsCacheUsageResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetActionsCacheUsageResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetActionsCacheUsageResponder = + typeof actionsGetActionsCacheUsageResponder & KoaRuntimeResponder + +const actionsGetActionsCacheUsageResponseValidator = responseValidationFactory( + [["200", s_actions_cache_usage_by_repository]], + undefined, +) export type ActionsGetActionsCacheUsage = ( params: Params, @@ -10506,9 +15824,18 @@ export type ActionsGetActionsCacheUsage = ( | Response<200, t_actions_cache_usage_by_repository> > -export type ActionsGetActionsCacheListResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetActionsCacheListResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetActionsCacheListResponder = + typeof actionsGetActionsCacheListResponder & KoaRuntimeResponder + +const actionsGetActionsCacheListResponseValidator = responseValidationFactory( + [["200", s_actions_cache_list]], + undefined, +) export type ActionsGetActionsCacheList = ( params: Params< @@ -10521,9 +15848,16 @@ export type ActionsGetActionsCacheList = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_cache_list>> -export type ActionsDeleteActionsCacheByKeyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteActionsCacheByKeyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsDeleteActionsCacheByKeyResponder = + typeof actionsDeleteActionsCacheByKeyResponder & KoaRuntimeResponder + +const actionsDeleteActionsCacheByKeyResponseValidator = + responseValidationFactory([["200", s_actions_cache_list]], undefined) export type ActionsDeleteActionsCacheByKey = ( params: Params< @@ -10536,9 +15870,16 @@ export type ActionsDeleteActionsCacheByKey = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_cache_list>> -export type ActionsDeleteActionsCacheByIdResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteActionsCacheByIdResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteActionsCacheByIdResponder = + typeof actionsDeleteActionsCacheByIdResponder & KoaRuntimeResponder + +const actionsDeleteActionsCacheByIdResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsDeleteActionsCacheById = ( params: Params, @@ -10546,9 +15887,18 @@ export type ActionsDeleteActionsCacheById = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsGetJobForWorkflowRunResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetJobForWorkflowRunResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetJobForWorkflowRunResponder = + typeof actionsGetJobForWorkflowRunResponder & KoaRuntimeResponder + +const actionsGetJobForWorkflowRunResponseValidator = responseValidationFactory( + [["200", s_job]], + undefined, +) export type ActionsGetJobForWorkflowRun = ( params: Params, @@ -10556,9 +15906,16 @@ export type ActionsGetJobForWorkflowRun = ( ctx: RouterContext, ) => Promise | Response<200, t_job>> -export type ActionsDownloadJobLogsForWorkflowRunResponder = { - with302(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDownloadJobLogsForWorkflowRunResponder = { + with302: r.with302, + withStatus: r.withStatus, +} + +type ActionsDownloadJobLogsForWorkflowRunResponder = + typeof actionsDownloadJobLogsForWorkflowRunResponder & KoaRuntimeResponder + +const actionsDownloadJobLogsForWorkflowRunResponseValidator = + responseValidationFactory([["302", z.undefined()]], undefined) export type ActionsDownloadJobLogsForWorkflowRun = ( params: Params< @@ -10571,10 +15928,23 @@ export type ActionsDownloadJobLogsForWorkflowRun = ( ctx: RouterContext, ) => Promise | Response<302, void>> -export type ActionsReRunJobForWorkflowRunResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsReRunJobForWorkflowRunResponder = { + with201: r.with201, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActionsReRunJobForWorkflowRunResponder = + typeof actionsReRunJobForWorkflowRunResponder & KoaRuntimeResponder + +const actionsReRunJobForWorkflowRunResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["403", s_basic_error], + ], + undefined, + ) export type ActionsReRunJobForWorkflowRun = ( params: Params< @@ -10591,11 +15961,25 @@ export type ActionsReRunJobForWorkflowRun = ( | Response<403, t_basic_error> > -export type ActionsGetCustomOidcSubClaimForRepoResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetCustomOidcSubClaimForRepoResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActionsGetCustomOidcSubClaimForRepoResponder = + typeof actionsGetCustomOidcSubClaimForRepoResponder & KoaRuntimeResponder + +const actionsGetCustomOidcSubClaimForRepoResponseValidator = + responseValidationFactory( + [ + ["200", s_oidc_custom_sub_repo], + ["400", s_scim_error], + ["404", s_basic_error], + ], + undefined, + ) export type ActionsGetCustomOidcSubClaimForRepo = ( params: Params< @@ -10613,12 +15997,27 @@ export type ActionsGetCustomOidcSubClaimForRepo = ( | Response<404, t_basic_error> > -export type ActionsSetCustomOidcSubClaimForRepoResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetCustomOidcSubClaimForRepoResponder = { + with201: r.with201, + with400: r.with400, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsSetCustomOidcSubClaimForRepoResponder = + typeof actionsSetCustomOidcSubClaimForRepoResponder & KoaRuntimeResponder + +const actionsSetCustomOidcSubClaimForRepoResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["400", s_scim_error], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsSetCustomOidcSubClaimForRepo = ( params: Params< @@ -10637,12 +16036,30 @@ export type ActionsSetCustomOidcSubClaimForRepo = ( | Response<422, t_validation_error_simple> > -export type ActionsListRepoOrganizationSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListRepoOrganizationSecretsResponder = { + with200: r.with200<{ secrets: t_actions_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListRepoOrganizationSecretsResponder = + typeof actionsListRepoOrganizationSecretsResponder & KoaRuntimeResponder + +const actionsListRepoOrganizationSecretsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_actions_secret), + }), + ], + ], + undefined, + ) export type ActionsListRepoOrganizationSecrets = ( params: Params< @@ -10664,12 +16081,30 @@ export type ActionsListRepoOrganizationSecrets = ( > > -export type ActionsListRepoOrganizationVariablesResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListRepoOrganizationVariablesResponder = { + with200: r.with200<{ total_count: number variables: t_actions_variable[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListRepoOrganizationVariablesResponder = + typeof actionsListRepoOrganizationVariablesResponder & KoaRuntimeResponder + +const actionsListRepoOrganizationVariablesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + variables: z.array(s_actions_variable), + }), + ], + ], + undefined, + ) export type ActionsListRepoOrganizationVariables = ( params: Params< @@ -10691,9 +16126,20 @@ export type ActionsListRepoOrganizationVariables = ( > > -export type ActionsGetGithubActionsPermissionsRepositoryResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetGithubActionsPermissionsRepositoryResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetGithubActionsPermissionsRepositoryResponder = + typeof actionsGetGithubActionsPermissionsRepositoryResponder & + KoaRuntimeResponder + +const actionsGetGithubActionsPermissionsRepositoryResponseValidator = + responseValidationFactory( + [["200", s_actions_repository_permissions]], + undefined, + ) export type ActionsGetGithubActionsPermissionsRepository = ( params: Params< @@ -10708,9 +16154,17 @@ export type ActionsGetGithubActionsPermissionsRepository = ( KoaRuntimeResponse | Response<200, t_actions_repository_permissions> > -export type ActionsSetGithubActionsPermissionsRepositoryResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetGithubActionsPermissionsRepositoryResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetGithubActionsPermissionsRepositoryResponder = + typeof actionsSetGithubActionsPermissionsRepositoryResponder & + KoaRuntimeResponder + +const actionsSetGithubActionsPermissionsRepositoryResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetGithubActionsPermissionsRepository = ( params: Params< @@ -10723,9 +16177,19 @@ export type ActionsSetGithubActionsPermissionsRepository = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsGetWorkflowAccessToRepositoryResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetWorkflowAccessToRepositoryResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetWorkflowAccessToRepositoryResponder = + typeof actionsGetWorkflowAccessToRepositoryResponder & KoaRuntimeResponder + +const actionsGetWorkflowAccessToRepositoryResponseValidator = + responseValidationFactory( + [["200", s_actions_workflow_access_to_repository]], + undefined, + ) export type ActionsGetWorkflowAccessToRepository = ( params: Params< @@ -10741,9 +16205,16 @@ export type ActionsGetWorkflowAccessToRepository = ( | Response<200, t_actions_workflow_access_to_repository> > -export type ActionsSetWorkflowAccessToRepositoryResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetWorkflowAccessToRepositoryResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetWorkflowAccessToRepositoryResponder = + typeof actionsSetWorkflowAccessToRepositoryResponder & KoaRuntimeResponder + +const actionsSetWorkflowAccessToRepositoryResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetWorkflowAccessToRepository = ( params: Params< @@ -10756,9 +16227,16 @@ export type ActionsSetWorkflowAccessToRepository = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsGetAllowedActionsRepositoryResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetAllowedActionsRepositoryResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetAllowedActionsRepositoryResponder = + typeof actionsGetAllowedActionsRepositoryResponder & KoaRuntimeResponder + +const actionsGetAllowedActionsRepositoryResponseValidator = + responseValidationFactory([["200", s_selected_actions]], undefined) export type ActionsGetAllowedActionsRepository = ( params: Params< @@ -10771,9 +16249,16 @@ export type ActionsGetAllowedActionsRepository = ( ctx: RouterContext, ) => Promise | Response<200, t_selected_actions>> -export type ActionsSetAllowedActionsRepositoryResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsSetAllowedActionsRepositoryResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsSetAllowedActionsRepositoryResponder = + typeof actionsSetAllowedActionsRepositoryResponder & KoaRuntimeResponder + +const actionsSetAllowedActionsRepositoryResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsSetAllowedActionsRepository = ( params: Params< @@ -10786,10 +16271,20 @@ export type ActionsSetAllowedActionsRepository = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = - { - with200(): KoaRuntimeResponse - } & KoaRuntimeResponder +const actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = + typeof actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder & + KoaRuntimeResponder + +const actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponseValidator = + responseValidationFactory( + [["200", s_actions_get_default_workflow_permissions]], + undefined, + ) export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepository = ( params: Params< @@ -10805,11 +16300,24 @@ export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepository = ( | Response<200, t_actions_get_default_workflow_permissions> > -export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = - { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - } & KoaRuntimeResponder +const actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = + typeof actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder & + KoaRuntimeResponder + +const actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepository = ( params: Params< @@ -10824,12 +16332,30 @@ export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepository = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type ActionsListSelfHostedRunnersForRepoResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListSelfHostedRunnersForRepoResponder = { + with200: r.with200<{ runners: t_runner[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListSelfHostedRunnersForRepoResponder = + typeof actionsListSelfHostedRunnersForRepoResponder & KoaRuntimeResponder + +const actionsListSelfHostedRunnersForRepoResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + runners: z.array(s_runner), + }), + ], + ], + undefined, + ) export type ActionsListSelfHostedRunnersForRepo = ( params: Params< @@ -10851,9 +16377,16 @@ export type ActionsListSelfHostedRunnersForRepo = ( > > -export type ActionsListRunnerApplicationsForRepoResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsListRunnerApplicationsForRepoResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsListRunnerApplicationsForRepoResponder = + typeof actionsListRunnerApplicationsForRepoResponder & KoaRuntimeResponder + +const actionsListRunnerApplicationsForRepoResponseValidator = + responseValidationFactory([["200", z.array(s_runner_application)]], undefined) export type ActionsListRunnerApplicationsForRepo = ( params: Params< @@ -10868,15 +16401,30 @@ export type ActionsListRunnerApplicationsForRepo = ( KoaRuntimeResponse | Response<200, t_runner_application[]> > -export type ActionsGenerateRunnerJitconfigForRepoResponder = { - with201(): KoaRuntimeResponse<{ +const actionsGenerateRunnerJitconfigForRepoResponder = { + with201: r.with201<{ encoded_jit_config: string runner: t_runner - }> - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsGenerateRunnerJitconfigForRepoResponder = + typeof actionsGenerateRunnerJitconfigForRepoResponder & KoaRuntimeResponder + +const actionsGenerateRunnerJitconfigForRepoResponseValidator = + responseValidationFactory( + [ + ["201", z.object({ runner: s_runner, encoded_jit_config: z.string() })], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsGenerateRunnerJitconfigForRepo = ( params: Params< @@ -10901,9 +16449,16 @@ export type ActionsGenerateRunnerJitconfigForRepo = ( | Response<422, t_validation_error_simple> > -export type ActionsCreateRegistrationTokenForRepoResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateRegistrationTokenForRepoResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateRegistrationTokenForRepoResponder = + typeof actionsCreateRegistrationTokenForRepoResponder & KoaRuntimeResponder + +const actionsCreateRegistrationTokenForRepoResponseValidator = + responseValidationFactory([["201", s_authentication_token]], undefined) export type ActionsCreateRegistrationTokenForRepo = ( params: Params< @@ -10918,9 +16473,16 @@ export type ActionsCreateRegistrationTokenForRepo = ( KoaRuntimeResponse | Response<201, t_authentication_token> > -export type ActionsCreateRemoveTokenForRepoResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateRemoveTokenForRepoResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateRemoveTokenForRepoResponder = + typeof actionsCreateRemoveTokenForRepoResponder & KoaRuntimeResponder + +const actionsCreateRemoveTokenForRepoResponseValidator = + responseValidationFactory([["201", s_authentication_token]], undefined) export type ActionsCreateRemoveTokenForRepo = ( params: Params< @@ -10935,9 +16497,16 @@ export type ActionsCreateRemoveTokenForRepo = ( KoaRuntimeResponse | Response<201, t_authentication_token> > -export type ActionsGetSelfHostedRunnerForRepoResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetSelfHostedRunnerForRepoResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetSelfHostedRunnerForRepoResponder = + typeof actionsGetSelfHostedRunnerForRepoResponder & KoaRuntimeResponder + +const actionsGetSelfHostedRunnerForRepoResponseValidator = + responseValidationFactory([["200", s_runner]], undefined) export type ActionsGetSelfHostedRunnerForRepo = ( params: Params< @@ -10950,9 +16519,16 @@ export type ActionsGetSelfHostedRunnerForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_runner>> -export type ActionsDeleteSelfHostedRunnerFromRepoResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteSelfHostedRunnerFromRepoResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteSelfHostedRunnerFromRepoResponder = + typeof actionsDeleteSelfHostedRunnerFromRepoResponder & KoaRuntimeResponder + +const actionsDeleteSelfHostedRunnerFromRepoResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsDeleteSelfHostedRunnerFromRepo = ( params: Params< @@ -10965,13 +16541,33 @@ export type ActionsDeleteSelfHostedRunnerFromRepo = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListLabelsForSelfHostedRunnerForRepoResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListLabelsForSelfHostedRunnerForRepoResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActionsListLabelsForSelfHostedRunnerForRepoResponder = + typeof actionsListLabelsForSelfHostedRunnerForRepoResponder & + KoaRuntimeResponder + +const actionsListLabelsForSelfHostedRunnerForRepoResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ], + undefined, + ) export type ActionsListLabelsForSelfHostedRunnerForRepo = ( params: Params< @@ -10994,14 +16590,35 @@ export type ActionsListLabelsForSelfHostedRunnerForRepo = ( | Response<404, t_basic_error> > -export type ActionsAddCustomLabelsToSelfHostedRunnerForRepoResponder = { - with200(): KoaRuntimeResponse<{ +const actionsAddCustomLabelsToSelfHostedRunnerForRepoResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsAddCustomLabelsToSelfHostedRunnerForRepoResponder = + typeof actionsAddCustomLabelsToSelfHostedRunnerForRepoResponder & + KoaRuntimeResponder + +const actionsAddCustomLabelsToSelfHostedRunnerForRepoResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo = ( params: Params< @@ -11025,14 +16642,35 @@ export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo = ( | Response<422, t_validation_error_simple> > -export type ActionsSetCustomLabelsForSelfHostedRunnerForRepoResponder = { - with200(): KoaRuntimeResponse<{ +const actionsSetCustomLabelsForSelfHostedRunnerForRepoResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsSetCustomLabelsForSelfHostedRunnerForRepoResponder = + typeof actionsSetCustomLabelsForSelfHostedRunnerForRepoResponder & + KoaRuntimeResponder + +const actionsSetCustomLabelsForSelfHostedRunnerForRepoResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo = ( params: Params< @@ -11056,13 +16694,33 @@ export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo = ( | Response<422, t_validation_error_simple> > -export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder = { - with200(): KoaRuntimeResponse<{ +const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder = + typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder & + KoaRuntimeResponder + +const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ], + undefined, + ) export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo = ( params: Params< @@ -11085,14 +16743,35 @@ export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo = ( | Response<404, t_basic_error> > -export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder = { - with200(): KoaRuntimeResponse<{ +const actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder = { + with200: r.with200<{ labels: t_runner_label[] total_count: number - }> - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder = + typeof actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder & + KoaRuntimeResponder + +const actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo = ( params: Params< @@ -11116,12 +16795,30 @@ export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo = ( | Response<422, t_validation_error_simple> > -export type ActionsListWorkflowRunsForRepoResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListWorkflowRunsForRepoResponder = { + with200: r.with200<{ total_count: number workflow_runs: t_workflow_run[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListWorkflowRunsForRepoResponder = + typeof actionsListWorkflowRunsForRepoResponder & KoaRuntimeResponder + +const actionsListWorkflowRunsForRepoResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + workflow_runs: z.array(s_workflow_run), + }), + ], + ], + undefined, + ) export type ActionsListWorkflowRunsForRepo = ( params: Params< @@ -11143,9 +16840,18 @@ export type ActionsListWorkflowRunsForRepo = ( > > -export type ActionsGetWorkflowRunResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetWorkflowRunResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetWorkflowRunResponder = typeof actionsGetWorkflowRunResponder & + KoaRuntimeResponder + +const actionsGetWorkflowRunResponseValidator = responseValidationFactory( + [["200", s_workflow_run]], + undefined, +) export type ActionsGetWorkflowRun = ( params: Params< @@ -11158,9 +16864,18 @@ export type ActionsGetWorkflowRun = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow_run>> -export type ActionsDeleteWorkflowRunResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteWorkflowRunResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteWorkflowRunResponder = + typeof actionsDeleteWorkflowRunResponder & KoaRuntimeResponder + +const actionsDeleteWorkflowRunResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsDeleteWorkflowRun = ( params: Params, @@ -11168,9 +16883,18 @@ export type ActionsDeleteWorkflowRun = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsGetReviewsForRunResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetReviewsForRunResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetReviewsForRunResponder = + typeof actionsGetReviewsForRunResponder & KoaRuntimeResponder + +const actionsGetReviewsForRunResponseValidator = responseValidationFactory( + [["200", z.array(s_environment_approvals)]], + undefined, +) export type ActionsGetReviewsForRun = ( params: Params, @@ -11180,11 +16904,24 @@ export type ActionsGetReviewsForRun = ( KoaRuntimeResponse | Response<200, t_environment_approvals[]> > -export type ActionsApproveWorkflowRunResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsApproveWorkflowRunResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActionsApproveWorkflowRunResponder = + typeof actionsApproveWorkflowRunResponder & KoaRuntimeResponder + +const actionsApproveWorkflowRunResponseValidator = responseValidationFactory( + [ + ["201", s_empty_object], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ActionsApproveWorkflowRun = ( params: Params, @@ -11197,12 +16934,30 @@ export type ActionsApproveWorkflowRun = ( | Response<404, t_basic_error> > -export type ActionsListWorkflowRunArtifactsResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListWorkflowRunArtifactsResponder = { + with200: r.with200<{ artifacts: t_artifact[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListWorkflowRunArtifactsResponder = + typeof actionsListWorkflowRunArtifactsResponder & KoaRuntimeResponder + +const actionsListWorkflowRunArtifactsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + artifacts: z.array(s_artifact), + }), + ], + ], + undefined, + ) export type ActionsListWorkflowRunArtifacts = ( params: Params< @@ -11224,9 +16979,18 @@ export type ActionsListWorkflowRunArtifacts = ( > > -export type ActionsGetWorkflowRunAttemptResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetWorkflowRunAttemptResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetWorkflowRunAttemptResponder = + typeof actionsGetWorkflowRunAttemptResponder & KoaRuntimeResponder + +const actionsGetWorkflowRunAttemptResponseValidator = responseValidationFactory( + [["200", s_workflow_run]], + undefined, +) export type ActionsGetWorkflowRunAttempt = ( params: Params< @@ -11239,13 +17003,29 @@ export type ActionsGetWorkflowRunAttempt = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow_run>> -export type ActionsListJobsForWorkflowRunAttemptResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListJobsForWorkflowRunAttemptResponder = { + with200: r.with200<{ jobs: t_job[] total_count: number - }> - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActionsListJobsForWorkflowRunAttemptResponder = + typeof actionsListJobsForWorkflowRunAttemptResponder & KoaRuntimeResponder + +const actionsListJobsForWorkflowRunAttemptResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ total_count: z.coerce.number(), jobs: z.array(s_job) }), + ], + ["404", s_basic_error], + ], + undefined, + ) export type ActionsListJobsForWorkflowRunAttempt = ( params: Params< @@ -11268,9 +17048,16 @@ export type ActionsListJobsForWorkflowRunAttempt = ( | Response<404, t_basic_error> > -export type ActionsDownloadWorkflowRunAttemptLogsResponder = { - with302(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDownloadWorkflowRunAttemptLogsResponder = { + with302: r.with302, + withStatus: r.withStatus, +} + +type ActionsDownloadWorkflowRunAttemptLogsResponder = + typeof actionsDownloadWorkflowRunAttemptLogsResponder & KoaRuntimeResponder + +const actionsDownloadWorkflowRunAttemptLogsResponseValidator = + responseValidationFactory([["302", z.undefined()]], undefined) export type ActionsDownloadWorkflowRunAttemptLogs = ( params: Params< @@ -11283,10 +17070,22 @@ export type ActionsDownloadWorkflowRunAttemptLogs = ( ctx: RouterContext, ) => Promise | Response<302, void>> -export type ActionsCancelWorkflowRunResponder = { - with202(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCancelWorkflowRunResponder = { + with202: r.with202, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsCancelWorkflowRunResponder = + typeof actionsCancelWorkflowRunResponder & KoaRuntimeResponder + +const actionsCancelWorkflowRunResponseValidator = responseValidationFactory( + [ + ["202", s_empty_object], + ["409", s_basic_error], + ], + undefined, +) export type ActionsCancelWorkflowRun = ( params: Params, @@ -11298,9 +17097,16 @@ export type ActionsCancelWorkflowRun = ( | Response<409, t_basic_error> > -export type ActionsReviewCustomGatesForRunResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsReviewCustomGatesForRunResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsReviewCustomGatesForRunResponder = + typeof actionsReviewCustomGatesForRunResponder & KoaRuntimeResponder + +const actionsReviewCustomGatesForRunResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsReviewCustomGatesForRun = ( params: Params< @@ -11313,10 +17119,23 @@ export type ActionsReviewCustomGatesForRun = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsForceCancelWorkflowRunResponder = { - with202(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsForceCancelWorkflowRunResponder = { + with202: r.with202, + with409: r.with409, + withStatus: r.withStatus, +} + +type ActionsForceCancelWorkflowRunResponder = + typeof actionsForceCancelWorkflowRunResponder & KoaRuntimeResponder + +const actionsForceCancelWorkflowRunResponseValidator = + responseValidationFactory( + [ + ["202", s_empty_object], + ["409", s_basic_error], + ], + undefined, + ) export type ActionsForceCancelWorkflowRun = ( params: Params, @@ -11328,12 +17147,27 @@ export type ActionsForceCancelWorkflowRun = ( | Response<409, t_basic_error> > -export type ActionsListJobsForWorkflowRunResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListJobsForWorkflowRunResponder = { + with200: r.with200<{ jobs: t_job[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListJobsForWorkflowRunResponder = + typeof actionsListJobsForWorkflowRunResponder & KoaRuntimeResponder + +const actionsListJobsForWorkflowRunResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ total_count: z.coerce.number(), jobs: z.array(s_job) }), + ], + ], + undefined, + ) export type ActionsListJobsForWorkflowRun = ( params: Params< @@ -11355,9 +17189,16 @@ export type ActionsListJobsForWorkflowRun = ( > > -export type ActionsDownloadWorkflowRunLogsResponder = { - with302(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDownloadWorkflowRunLogsResponder = { + with302: r.with302, + withStatus: r.withStatus, +} + +type ActionsDownloadWorkflowRunLogsResponder = + typeof actionsDownloadWorkflowRunLogsResponder & KoaRuntimeResponder + +const actionsDownloadWorkflowRunLogsResponseValidator = + responseValidationFactory([["302", z.undefined()]], undefined) export type ActionsDownloadWorkflowRunLogs = ( params: Params, @@ -11365,11 +17206,24 @@ export type ActionsDownloadWorkflowRunLogs = ( ctx: RouterContext, ) => Promise | Response<302, void>> -export type ActionsDeleteWorkflowRunLogsResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteWorkflowRunLogsResponder = { + with204: r.with204, + with403: r.with403, + with500: r.with500, + withStatus: r.withStatus, +} + +type ActionsDeleteWorkflowRunLogsResponder = + typeof actionsDeleteWorkflowRunLogsResponder & KoaRuntimeResponder + +const actionsDeleteWorkflowRunLogsResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ActionsDeleteWorkflowRunLogs = ( params: Params, @@ -11382,9 +17236,16 @@ export type ActionsDeleteWorkflowRunLogs = ( | Response<500, t_basic_error> > -export type ActionsGetPendingDeploymentsForRunResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetPendingDeploymentsForRunResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetPendingDeploymentsForRunResponder = + typeof actionsGetPendingDeploymentsForRunResponder & KoaRuntimeResponder + +const actionsGetPendingDeploymentsForRunResponseValidator = + responseValidationFactory([["200", z.array(s_pending_deployment)]], undefined) export type ActionsGetPendingDeploymentsForRun = ( params: Params< @@ -11399,9 +17260,16 @@ export type ActionsGetPendingDeploymentsForRun = ( KoaRuntimeResponse | Response<200, t_pending_deployment[]> > -export type ActionsReviewPendingDeploymentsForRunResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsReviewPendingDeploymentsForRunResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsReviewPendingDeploymentsForRunResponder = + typeof actionsReviewPendingDeploymentsForRunResponder & KoaRuntimeResponder + +const actionsReviewPendingDeploymentsForRunResponseValidator = + responseValidationFactory([["200", z.array(s_deployment)]], undefined) export type ActionsReviewPendingDeploymentsForRun = ( params: Params< @@ -11414,9 +17282,18 @@ export type ActionsReviewPendingDeploymentsForRun = ( ctx: RouterContext, ) => Promise | Response<200, t_deployment[]>> -export type ActionsReRunWorkflowResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsReRunWorkflowResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsReRunWorkflowResponder = typeof actionsReRunWorkflowResponder & + KoaRuntimeResponder + +const actionsReRunWorkflowResponseValidator = responseValidationFactory( + [["201", s_empty_object]], + undefined, +) export type ActionsReRunWorkflow = ( params: Params< @@ -11429,9 +17306,16 @@ export type ActionsReRunWorkflow = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -export type ActionsReRunWorkflowFailedJobsResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsReRunWorkflowFailedJobsResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsReRunWorkflowFailedJobsResponder = + typeof actionsReRunWorkflowFailedJobsResponder & KoaRuntimeResponder + +const actionsReRunWorkflowFailedJobsResponseValidator = + responseValidationFactory([["201", s_empty_object]], undefined) export type ActionsReRunWorkflowFailedJobs = ( params: Params< @@ -11444,9 +17328,18 @@ export type ActionsReRunWorkflowFailedJobs = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -export type ActionsGetWorkflowRunUsageResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetWorkflowRunUsageResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetWorkflowRunUsageResponder = + typeof actionsGetWorkflowRunUsageResponder & KoaRuntimeResponder + +const actionsGetWorkflowRunUsageResponseValidator = responseValidationFactory( + [["200", s_workflow_run_usage]], + undefined, +) export type ActionsGetWorkflowRunUsage = ( params: Params, @@ -11454,12 +17347,29 @@ export type ActionsGetWorkflowRunUsage = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow_run_usage>> -export type ActionsListRepoSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListRepoSecretsResponder = { + with200: r.with200<{ secrets: t_actions_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListRepoSecretsResponder = typeof actionsListRepoSecretsResponder & + KoaRuntimeResponder + +const actionsListRepoSecretsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_actions_secret), + }), + ], + ], + undefined, +) export type ActionsListRepoSecrets = ( params: Params< @@ -11481,9 +17391,18 @@ export type ActionsListRepoSecrets = ( > > -export type ActionsGetRepoPublicKeyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetRepoPublicKeyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetRepoPublicKeyResponder = + typeof actionsGetRepoPublicKeyResponder & KoaRuntimeResponder + +const actionsGetRepoPublicKeyResponseValidator = responseValidationFactory( + [["200", s_actions_public_key]], + undefined, +) export type ActionsGetRepoPublicKey = ( params: Params, @@ -11491,9 +17410,18 @@ export type ActionsGetRepoPublicKey = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> -export type ActionsGetRepoSecretResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetRepoSecretResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetRepoSecretResponder = typeof actionsGetRepoSecretResponder & + KoaRuntimeResponder + +const actionsGetRepoSecretResponseValidator = responseValidationFactory( + [["200", s_actions_secret]], + undefined, +) export type ActionsGetRepoSecret = ( params: Params, @@ -11501,10 +17429,23 @@ export type ActionsGetRepoSecret = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_secret>> -export type ActionsCreateOrUpdateRepoSecretResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateOrUpdateRepoSecretResponder = { + with201: r.with201, + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsCreateOrUpdateRepoSecretResponder = + typeof actionsCreateOrUpdateRepoSecretResponder & KoaRuntimeResponder + +const actionsCreateOrUpdateRepoSecretResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["204", z.undefined()], + ], + undefined, + ) export type ActionsCreateOrUpdateRepoSecret = ( params: Params< @@ -11521,9 +17462,18 @@ export type ActionsCreateOrUpdateRepoSecret = ( | Response<204, void> > -export type ActionsDeleteRepoSecretResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteRepoSecretResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteRepoSecretResponder = + typeof actionsDeleteRepoSecretResponder & KoaRuntimeResponder + +const actionsDeleteRepoSecretResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsDeleteRepoSecret = ( params: Params, @@ -11531,12 +17481,29 @@ export type ActionsDeleteRepoSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListRepoVariablesResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListRepoVariablesResponder = { + with200: r.with200<{ total_count: number variables: t_actions_variable[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListRepoVariablesResponder = + typeof actionsListRepoVariablesResponder & KoaRuntimeResponder + +const actionsListRepoVariablesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + variables: z.array(s_actions_variable), + }), + ], + ], + undefined, +) export type ActionsListRepoVariables = ( params: Params< @@ -11558,9 +17525,18 @@ export type ActionsListRepoVariables = ( > > -export type ActionsCreateRepoVariableResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateRepoVariableResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateRepoVariableResponder = + typeof actionsCreateRepoVariableResponder & KoaRuntimeResponder + +const actionsCreateRepoVariableResponseValidator = responseValidationFactory( + [["201", s_empty_object]], + undefined, +) export type ActionsCreateRepoVariable = ( params: Params< @@ -11573,9 +17549,18 @@ export type ActionsCreateRepoVariable = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -export type ActionsGetRepoVariableResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetRepoVariableResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetRepoVariableResponder = typeof actionsGetRepoVariableResponder & + KoaRuntimeResponder + +const actionsGetRepoVariableResponseValidator = responseValidationFactory( + [["200", s_actions_variable]], + undefined, +) export type ActionsGetRepoVariable = ( params: Params, @@ -11583,9 +17568,18 @@ export type ActionsGetRepoVariable = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_variable>> -export type ActionsUpdateRepoVariableResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsUpdateRepoVariableResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsUpdateRepoVariableResponder = + typeof actionsUpdateRepoVariableResponder & KoaRuntimeResponder + +const actionsUpdateRepoVariableResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsUpdateRepoVariable = ( params: Params< @@ -11598,9 +17592,18 @@ export type ActionsUpdateRepoVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsDeleteRepoVariableResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteRepoVariableResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteRepoVariableResponder = + typeof actionsDeleteRepoVariableResponder & KoaRuntimeResponder + +const actionsDeleteRepoVariableResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsDeleteRepoVariable = ( params: Params, @@ -11608,12 +17611,29 @@ export type ActionsDeleteRepoVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListRepoWorkflowsResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListRepoWorkflowsResponder = { + with200: r.with200<{ total_count: number workflows: t_workflow[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListRepoWorkflowsResponder = + typeof actionsListRepoWorkflowsResponder & KoaRuntimeResponder + +const actionsListRepoWorkflowsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + workflows: z.array(s_workflow), + }), + ], + ], + undefined, +) export type ActionsListRepoWorkflows = ( params: Params< @@ -11635,9 +17655,18 @@ export type ActionsListRepoWorkflows = ( > > -export type ActionsGetWorkflowResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetWorkflowResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetWorkflowResponder = typeof actionsGetWorkflowResponder & + KoaRuntimeResponder + +const actionsGetWorkflowResponseValidator = responseValidationFactory( + [["200", s_workflow]], + undefined, +) export type ActionsGetWorkflow = ( params: Params, @@ -11645,9 +17674,18 @@ export type ActionsGetWorkflow = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow>> -export type ActionsDisableWorkflowResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDisableWorkflowResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDisableWorkflowResponder = typeof actionsDisableWorkflowResponder & + KoaRuntimeResponder + +const actionsDisableWorkflowResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsDisableWorkflow = ( params: Params, @@ -11655,9 +17693,16 @@ export type ActionsDisableWorkflow = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsCreateWorkflowDispatchResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateWorkflowDispatchResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsCreateWorkflowDispatchResponder = + typeof actionsCreateWorkflowDispatchResponder & KoaRuntimeResponder + +const actionsCreateWorkflowDispatchResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsCreateWorkflowDispatch = ( params: Params< @@ -11670,9 +17715,18 @@ export type ActionsCreateWorkflowDispatch = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsEnableWorkflowResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsEnableWorkflowResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsEnableWorkflowResponder = typeof actionsEnableWorkflowResponder & + KoaRuntimeResponder + +const actionsEnableWorkflowResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ActionsEnableWorkflow = ( params: Params, @@ -11680,12 +17734,29 @@ export type ActionsEnableWorkflow = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListWorkflowRunsResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListWorkflowRunsResponder = { + with200: r.with200<{ total_count: number workflow_runs: t_workflow_run[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListWorkflowRunsResponder = + typeof actionsListWorkflowRunsResponder & KoaRuntimeResponder + +const actionsListWorkflowRunsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + workflow_runs: z.array(s_workflow_run), + }), + ], + ], + undefined, +) export type ActionsListWorkflowRuns = ( params: Params< @@ -11707,9 +17778,18 @@ export type ActionsListWorkflowRuns = ( > > -export type ActionsGetWorkflowUsageResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetWorkflowUsageResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetWorkflowUsageResponder = + typeof actionsGetWorkflowUsageResponder & KoaRuntimeResponder + +const actionsGetWorkflowUsageResponseValidator = responseValidationFactory( + [["200", s_workflow_usage]], + undefined, +) export type ActionsGetWorkflowUsage = ( params: Params, @@ -11717,10 +17797,22 @@ export type ActionsGetWorkflowUsage = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow_usage>> -export type ReposListActivitiesResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListActivitiesResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposListActivitiesResponder = typeof reposListActivitiesResponder & + KoaRuntimeResponder + +const reposListActivitiesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_activity)], + ["422", s_validation_error_simple], + ], + undefined, +) export type ReposListActivities = ( params: Params< @@ -11737,10 +17829,22 @@ export type ReposListActivities = ( | Response<422, t_validation_error_simple> > -export type IssuesListAssigneesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListAssigneesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesListAssigneesResponder = typeof issuesListAssigneesResponder & + KoaRuntimeResponder + +const issuesListAssigneesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["404", s_basic_error], + ], + undefined, +) export type IssuesListAssignees = ( params: Params< @@ -11757,10 +17861,22 @@ export type IssuesListAssignees = ( | Response<404, t_basic_error> > -export type IssuesCheckUserCanBeAssignedResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesCheckUserCanBeAssignedResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesCheckUserCanBeAssignedResponder = + typeof issuesCheckUserCanBeAssignedResponder & KoaRuntimeResponder + +const issuesCheckUserCanBeAssignedResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type IssuesCheckUserCanBeAssigned = ( params: Params, @@ -11772,13 +17888,26 @@ export type IssuesCheckUserCanBeAssigned = ( | Response<404, t_basic_error> > -export type ReposCreateAttestationResponder = { - with201(): KoaRuntimeResponse<{ +const reposCreateAttestationResponder = { + with201: r.with201<{ id?: number - }> - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateAttestationResponder = typeof reposCreateAttestationResponder & + KoaRuntimeResponder + +const reposCreateAttestationResponseValidator = responseValidationFactory( + [ + ["201", z.object({ id: z.coerce.number().optional() })], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateAttestation = ( params: Params< @@ -11801,8 +17930,8 @@ export type ReposCreateAttestation = ( | Response<422, t_validation_error> > -export type ReposListAttestationsResponder = { - with200(): KoaRuntimeResponse<{ +const reposListAttestationsResponder = { + with200: r.with200<{ attestations?: { bundle?: { dsseEnvelope?: { @@ -11816,8 +17945,38 @@ export type ReposListAttestationsResponder = { bundle_url?: string repository_id?: number }[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ReposListAttestationsResponder = typeof reposListAttestationsResponder & + KoaRuntimeResponder + +const reposListAttestationsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + attestations: z + .array( + z.object({ + bundle: z + .object({ + mediaType: z.string().optional(), + verificationMaterial: z.record(z.unknown()).optional(), + dsseEnvelope: z.record(z.unknown()).optional(), + }) + .optional(), + repository_id: z.coerce.number().optional(), + bundle_url: z.string().optional(), + }), + ) + .optional(), + }), + ], + ], + undefined, +) export type ReposListAttestations = ( params: Params< @@ -11850,9 +18009,18 @@ export type ReposListAttestations = ( > > -export type ReposListAutolinksResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListAutolinksResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListAutolinksResponder = typeof reposListAutolinksResponder & + KoaRuntimeResponder + +const reposListAutolinksResponseValidator = responseValidationFactory( + [["200", z.array(s_autolink)]], + undefined, +) export type ReposListAutolinks = ( params: Params, @@ -11860,10 +18028,22 @@ export type ReposListAutolinks = ( ctx: RouterContext, ) => Promise | Response<200, t_autolink[]>> -export type ReposCreateAutolinkResponder = { - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateAutolinkResponder = { + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateAutolinkResponder = typeof reposCreateAutolinkResponder & + KoaRuntimeResponder + +const reposCreateAutolinkResponseValidator = responseValidationFactory( + [ + ["201", s_autolink], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateAutolink = ( params: Params< @@ -11880,10 +18060,22 @@ export type ReposCreateAutolink = ( | Response<422, t_validation_error> > -export type ReposGetAutolinkResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetAutolinkResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetAutolinkResponder = typeof reposGetAutolinkResponder & + KoaRuntimeResponder + +const reposGetAutolinkResponseValidator = responseValidationFactory( + [ + ["200", s_autolink], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetAutolink = ( params: Params, @@ -11895,10 +18087,22 @@ export type ReposGetAutolink = ( | Response<404, t_basic_error> > -export type ReposDeleteAutolinkResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteAutolinkResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposDeleteAutolinkResponder = typeof reposDeleteAutolinkResponder & + KoaRuntimeResponder + +const reposDeleteAutolinkResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type ReposDeleteAutolink = ( params: Params, @@ -11910,10 +18114,23 @@ export type ReposDeleteAutolink = ( | Response<404, t_basic_error> > -export type ReposCheckAutomatedSecurityFixesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCheckAutomatedSecurityFixesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposCheckAutomatedSecurityFixesResponder = + typeof reposCheckAutomatedSecurityFixesResponder & KoaRuntimeResponder + +const reposCheckAutomatedSecurityFixesResponseValidator = + responseValidationFactory( + [ + ["200", s_check_automated_security_fixes], + ["404", z.undefined()], + ], + undefined, + ) export type ReposCheckAutomatedSecurityFixes = ( params: Params< @@ -11930,9 +18147,16 @@ export type ReposCheckAutomatedSecurityFixes = ( | Response<404, void> > -export type ReposEnableAutomatedSecurityFixesResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposEnableAutomatedSecurityFixesResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposEnableAutomatedSecurityFixesResponder = + typeof reposEnableAutomatedSecurityFixesResponder & KoaRuntimeResponder + +const reposEnableAutomatedSecurityFixesResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReposEnableAutomatedSecurityFixes = ( params: Params< @@ -11945,9 +18169,16 @@ export type ReposEnableAutomatedSecurityFixes = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposDisableAutomatedSecurityFixesResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDisableAutomatedSecurityFixesResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDisableAutomatedSecurityFixesResponder = + typeof reposDisableAutomatedSecurityFixesResponder & KoaRuntimeResponder + +const reposDisableAutomatedSecurityFixesResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReposDisableAutomatedSecurityFixes = ( params: Params< @@ -11960,10 +18191,22 @@ export type ReposDisableAutomatedSecurityFixes = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposListBranchesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListBranchesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListBranchesResponder = typeof reposListBranchesResponder & + KoaRuntimeResponder + +const reposListBranchesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_short_branch)], + ["404", s_basic_error], + ], + undefined, +) export type ReposListBranches = ( params: Params< @@ -11980,11 +18223,24 @@ export type ReposListBranches = ( | Response<404, t_basic_error> > -export type ReposGetBranchResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetBranchResponder = { + with200: r.with200, + with301: r.with301, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetBranchResponder = typeof reposGetBranchResponder & + KoaRuntimeResponder + +const reposGetBranchResponseValidator = responseValidationFactory( + [ + ["200", s_branch_with_protection], + ["301", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetBranch = ( params: Params, @@ -11997,10 +18253,22 @@ export type ReposGetBranch = ( | Response<404, t_basic_error> > -export type ReposGetBranchProtectionResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetBranchProtectionResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetBranchProtectionResponder = + typeof reposGetBranchProtectionResponder & KoaRuntimeResponder + +const reposGetBranchProtectionResponseValidator = responseValidationFactory( + [ + ["200", s_branch_protection], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetBranchProtection = ( params: Params, @@ -12012,12 +18280,26 @@ export type ReposGetBranchProtection = ( | Response<404, t_basic_error> > -export type ReposUpdateBranchProtectionResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateBranchProtectionResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposUpdateBranchProtectionResponder = + typeof reposUpdateBranchProtectionResponder & KoaRuntimeResponder + +const reposUpdateBranchProtectionResponseValidator = responseValidationFactory( + [ + ["200", s_protected_branch], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ReposUpdateBranchProtection = ( params: Params< @@ -12036,10 +18318,22 @@ export type ReposUpdateBranchProtection = ( | Response<422, t_validation_error_simple> > -export type ReposDeleteBranchProtectionResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteBranchProtectionResponder = { + with204: r.with204, + with403: r.with403, + withStatus: r.withStatus, +} + +type ReposDeleteBranchProtectionResponder = + typeof reposDeleteBranchProtectionResponder & KoaRuntimeResponder + +const reposDeleteBranchProtectionResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ], + undefined, +) export type ReposDeleteBranchProtection = ( params: Params, @@ -12051,9 +18345,19 @@ export type ReposDeleteBranchProtection = ( | Response<403, t_basic_error> > -export type ReposGetAdminBranchProtectionResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetAdminBranchProtectionResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetAdminBranchProtectionResponder = + typeof reposGetAdminBranchProtectionResponder & KoaRuntimeResponder + +const reposGetAdminBranchProtectionResponseValidator = + responseValidationFactory( + [["200", s_protected_branch_admin_enforced]], + undefined, + ) export type ReposGetAdminBranchProtection = ( params: Params, @@ -12063,9 +18367,19 @@ export type ReposGetAdminBranchProtection = ( KoaRuntimeResponse | Response<200, t_protected_branch_admin_enforced> > -export type ReposSetAdminBranchProtectionResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposSetAdminBranchProtectionResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposSetAdminBranchProtectionResponder = + typeof reposSetAdminBranchProtectionResponder & KoaRuntimeResponder + +const reposSetAdminBranchProtectionResponseValidator = + responseValidationFactory( + [["200", s_protected_branch_admin_enforced]], + undefined, + ) export type ReposSetAdminBranchProtection = ( params: Params, @@ -12075,10 +18389,23 @@ export type ReposSetAdminBranchProtection = ( KoaRuntimeResponse | Response<200, t_protected_branch_admin_enforced> > -export type ReposDeleteAdminBranchProtectionResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteAdminBranchProtectionResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposDeleteAdminBranchProtectionResponder = + typeof reposDeleteAdminBranchProtectionResponder & KoaRuntimeResponder + +const reposDeleteAdminBranchProtectionResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, + ) export type ReposDeleteAdminBranchProtection = ( params: Params< @@ -12095,9 +18422,19 @@ export type ReposDeleteAdminBranchProtection = ( | Response<404, t_basic_error> > -export type ReposGetPullRequestReviewProtectionResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetPullRequestReviewProtectionResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetPullRequestReviewProtectionResponder = + typeof reposGetPullRequestReviewProtectionResponder & KoaRuntimeResponder + +const reposGetPullRequestReviewProtectionResponseValidator = + responseValidationFactory( + [["200", s_protected_branch_pull_request_review]], + undefined, + ) export type ReposGetPullRequestReviewProtection = ( params: Params< @@ -12113,10 +18450,23 @@ export type ReposGetPullRequestReviewProtection = ( | Response<200, t_protected_branch_pull_request_review> > -export type ReposUpdatePullRequestReviewProtectionResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdatePullRequestReviewProtectionResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposUpdatePullRequestReviewProtectionResponder = + typeof reposUpdatePullRequestReviewProtectionResponder & KoaRuntimeResponder + +const reposUpdatePullRequestReviewProtectionResponseValidator = + responseValidationFactory( + [ + ["200", s_protected_branch_pull_request_review], + ["422", s_validation_error], + ], + undefined, + ) export type ReposUpdatePullRequestReviewProtection = ( params: Params< @@ -12133,10 +18483,23 @@ export type ReposUpdatePullRequestReviewProtection = ( | Response<422, t_validation_error> > -export type ReposDeletePullRequestReviewProtectionResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeletePullRequestReviewProtectionResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposDeletePullRequestReviewProtectionResponder = + typeof reposDeletePullRequestReviewProtectionResponder & KoaRuntimeResponder + +const reposDeletePullRequestReviewProtectionResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, + ) export type ReposDeletePullRequestReviewProtection = ( params: Params< @@ -12153,10 +18516,23 @@ export type ReposDeletePullRequestReviewProtection = ( | Response<404, t_basic_error> > -export type ReposGetCommitSignatureProtectionResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetCommitSignatureProtectionResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetCommitSignatureProtectionResponder = + typeof reposGetCommitSignatureProtectionResponder & KoaRuntimeResponder + +const reposGetCommitSignatureProtectionResponseValidator = + responseValidationFactory( + [ + ["200", s_protected_branch_admin_enforced], + ["404", s_basic_error], + ], + undefined, + ) export type ReposGetCommitSignatureProtection = ( params: Params< @@ -12173,10 +18549,23 @@ export type ReposGetCommitSignatureProtection = ( | Response<404, t_basic_error> > -export type ReposCreateCommitSignatureProtectionResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateCommitSignatureProtectionResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposCreateCommitSignatureProtectionResponder = + typeof reposCreateCommitSignatureProtectionResponder & KoaRuntimeResponder + +const reposCreateCommitSignatureProtectionResponseValidator = + responseValidationFactory( + [ + ["200", s_protected_branch_admin_enforced], + ["404", s_basic_error], + ], + undefined, + ) export type ReposCreateCommitSignatureProtection = ( params: Params< @@ -12193,10 +18582,23 @@ export type ReposCreateCommitSignatureProtection = ( | Response<404, t_basic_error> > -export type ReposDeleteCommitSignatureProtectionResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteCommitSignatureProtectionResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposDeleteCommitSignatureProtectionResponder = + typeof reposDeleteCommitSignatureProtectionResponder & KoaRuntimeResponder + +const reposDeleteCommitSignatureProtectionResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, + ) export type ReposDeleteCommitSignatureProtection = ( params: Params< @@ -12213,10 +18615,23 @@ export type ReposDeleteCommitSignatureProtection = ( | Response<404, t_basic_error> > -export type ReposGetStatusChecksProtectionResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetStatusChecksProtectionResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetStatusChecksProtectionResponder = + typeof reposGetStatusChecksProtectionResponder & KoaRuntimeResponder + +const reposGetStatusChecksProtectionResponseValidator = + responseValidationFactory( + [ + ["200", s_status_check_policy], + ["404", s_basic_error], + ], + undefined, + ) export type ReposGetStatusChecksProtection = ( params: Params, @@ -12228,11 +18643,25 @@ export type ReposGetStatusChecksProtection = ( | Response<404, t_basic_error> > -export type ReposUpdateStatusCheckProtectionResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateStatusCheckProtectionResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposUpdateStatusCheckProtectionResponder = + typeof reposUpdateStatusCheckProtectionResponder & KoaRuntimeResponder + +const reposUpdateStatusCheckProtectionResponseValidator = + responseValidationFactory( + [ + ["200", s_status_check_policy], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type ReposUpdateStatusCheckProtection = ( params: Params< @@ -12250,9 +18679,16 @@ export type ReposUpdateStatusCheckProtection = ( | Response<422, t_validation_error> > -export type ReposRemoveStatusCheckProtectionResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposRemoveStatusCheckProtectionResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposRemoveStatusCheckProtectionResponder = + typeof reposRemoveStatusCheckProtectionResponder & KoaRuntimeResponder + +const reposRemoveStatusCheckProtectionResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReposRemoveStatusCheckProtection = ( params: Params< @@ -12265,10 +18701,23 @@ export type ReposRemoveStatusCheckProtection = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposGetAllStatusCheckContextsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetAllStatusCheckContextsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetAllStatusCheckContextsResponder = + typeof reposGetAllStatusCheckContextsResponder & KoaRuntimeResponder + +const reposGetAllStatusCheckContextsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(z.string())], + ["404", s_basic_error], + ], + undefined, + ) export type ReposGetAllStatusCheckContexts = ( params: Params, @@ -12280,12 +18729,26 @@ export type ReposGetAllStatusCheckContexts = ( | Response<404, t_basic_error> > -export type ReposAddStatusCheckContextsResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposAddStatusCheckContextsResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposAddStatusCheckContextsResponder = + typeof reposAddStatusCheckContextsResponder & KoaRuntimeResponder + +const reposAddStatusCheckContextsResponseValidator = responseValidationFactory( + [ + ["200", z.array(z.string())], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposAddStatusCheckContexts = ( params: Params< @@ -12304,11 +18767,24 @@ export type ReposAddStatusCheckContexts = ( | Response<422, t_validation_error> > -export type ReposSetStatusCheckContextsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposSetStatusCheckContextsResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposSetStatusCheckContextsResponder = + typeof reposSetStatusCheckContextsResponder & KoaRuntimeResponder + +const reposSetStatusCheckContextsResponseValidator = responseValidationFactory( + [ + ["200", z.array(z.string())], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposSetStatusCheckContexts = ( params: Params< @@ -12326,11 +18802,25 @@ export type ReposSetStatusCheckContexts = ( | Response<422, t_validation_error> > -export type ReposRemoveStatusCheckContextsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposRemoveStatusCheckContextsResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposRemoveStatusCheckContextsResponder = + typeof reposRemoveStatusCheckContextsResponder & KoaRuntimeResponder + +const reposRemoveStatusCheckContextsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(z.string())], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type ReposRemoveStatusCheckContexts = ( params: Params< @@ -12348,10 +18838,22 @@ export type ReposRemoveStatusCheckContexts = ( | Response<422, t_validation_error> > -export type ReposGetAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetAccessRestrictionsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetAccessRestrictionsResponder = + typeof reposGetAccessRestrictionsResponder & KoaRuntimeResponder + +const reposGetAccessRestrictionsResponseValidator = responseValidationFactory( + [ + ["200", s_branch_restriction_policy], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetAccessRestrictions = ( params: Params, @@ -12363,9 +18865,16 @@ export type ReposGetAccessRestrictions = ( | Response<404, t_basic_error> > -export type ReposDeleteAccessRestrictionsResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteAccessRestrictionsResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDeleteAccessRestrictionsResponder = + typeof reposDeleteAccessRestrictionsResponder & KoaRuntimeResponder + +const reposDeleteAccessRestrictionsResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReposDeleteAccessRestrictions = ( params: Params, @@ -12373,10 +18882,23 @@ export type ReposDeleteAccessRestrictions = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposGetAppsWithAccessToProtectedBranchResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetAppsWithAccessToProtectedBranchResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetAppsWithAccessToProtectedBranchResponder = + typeof reposGetAppsWithAccessToProtectedBranchResponder & KoaRuntimeResponder + +const reposGetAppsWithAccessToProtectedBranchResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_integration)], + ["404", s_basic_error], + ], + undefined, + ) export type ReposGetAppsWithAccessToProtectedBranch = ( params: Params< @@ -12393,10 +18915,23 @@ export type ReposGetAppsWithAccessToProtectedBranch = ( | Response<404, t_basic_error> > -export type ReposAddAppAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposAddAppAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposAddAppAccessRestrictionsResponder = + typeof reposAddAppAccessRestrictionsResponder & KoaRuntimeResponder + +const reposAddAppAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_integration)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposAddAppAccessRestrictions = ( params: Params< @@ -12413,10 +18948,23 @@ export type ReposAddAppAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposSetAppAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposSetAppAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposSetAppAccessRestrictionsResponder = + typeof reposSetAppAccessRestrictionsResponder & KoaRuntimeResponder + +const reposSetAppAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_integration)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposSetAppAccessRestrictions = ( params: Params< @@ -12433,10 +18981,23 @@ export type ReposSetAppAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposRemoveAppAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposRemoveAppAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposRemoveAppAccessRestrictionsResponder = + typeof reposRemoveAppAccessRestrictionsResponder & KoaRuntimeResponder + +const reposRemoveAppAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_integration)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposRemoveAppAccessRestrictions = ( params: Params< @@ -12453,10 +19014,23 @@ export type ReposRemoveAppAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposGetTeamsWithAccessToProtectedBranchResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetTeamsWithAccessToProtectedBranchResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetTeamsWithAccessToProtectedBranchResponder = + typeof reposGetTeamsWithAccessToProtectedBranchResponder & KoaRuntimeResponder + +const reposGetTeamsWithAccessToProtectedBranchResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_team)], + ["404", s_basic_error], + ], + undefined, + ) export type ReposGetTeamsWithAccessToProtectedBranch = ( params: Params< @@ -12473,10 +19047,23 @@ export type ReposGetTeamsWithAccessToProtectedBranch = ( | Response<404, t_basic_error> > -export type ReposAddTeamAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposAddTeamAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposAddTeamAccessRestrictionsResponder = + typeof reposAddTeamAccessRestrictionsResponder & KoaRuntimeResponder + +const reposAddTeamAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_team)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposAddTeamAccessRestrictions = ( params: Params< @@ -12493,10 +19080,23 @@ export type ReposAddTeamAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposSetTeamAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposSetTeamAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposSetTeamAccessRestrictionsResponder = + typeof reposSetTeamAccessRestrictionsResponder & KoaRuntimeResponder + +const reposSetTeamAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_team)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposSetTeamAccessRestrictions = ( params: Params< @@ -12513,10 +19113,23 @@ export type ReposSetTeamAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposRemoveTeamAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposRemoveTeamAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposRemoveTeamAccessRestrictionsResponder = + typeof reposRemoveTeamAccessRestrictionsResponder & KoaRuntimeResponder + +const reposRemoveTeamAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_team)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposRemoveTeamAccessRestrictions = ( params: Params< @@ -12533,10 +19146,23 @@ export type ReposRemoveTeamAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposGetUsersWithAccessToProtectedBranchResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetUsersWithAccessToProtectedBranchResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetUsersWithAccessToProtectedBranchResponder = + typeof reposGetUsersWithAccessToProtectedBranchResponder & KoaRuntimeResponder + +const reposGetUsersWithAccessToProtectedBranchResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["404", s_basic_error], + ], + undefined, + ) export type ReposGetUsersWithAccessToProtectedBranch = ( params: Params< @@ -12553,10 +19179,23 @@ export type ReposGetUsersWithAccessToProtectedBranch = ( | Response<404, t_basic_error> > -export type ReposAddUserAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposAddUserAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposAddUserAccessRestrictionsResponder = + typeof reposAddUserAccessRestrictionsResponder & KoaRuntimeResponder + +const reposAddUserAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposAddUserAccessRestrictions = ( params: Params< @@ -12573,10 +19212,23 @@ export type ReposAddUserAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposSetUserAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposSetUserAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposSetUserAccessRestrictionsResponder = + typeof reposSetUserAccessRestrictionsResponder & KoaRuntimeResponder + +const reposSetUserAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposSetUserAccessRestrictions = ( params: Params< @@ -12593,10 +19245,23 @@ export type ReposSetUserAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposRemoveUserAccessRestrictionsResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposRemoveUserAccessRestrictionsResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposRemoveUserAccessRestrictionsResponder = + typeof reposRemoveUserAccessRestrictionsResponder & KoaRuntimeResponder + +const reposRemoveUserAccessRestrictionsResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["422", s_validation_error], + ], + undefined, + ) export type ReposRemoveUserAccessRestrictions = ( params: Params< @@ -12613,12 +19278,26 @@ export type ReposRemoveUserAccessRestrictions = ( | Response<422, t_validation_error> > -export type ReposRenameBranchResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposRenameBranchResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposRenameBranchResponder = typeof reposRenameBranchResponder & + KoaRuntimeResponder + +const reposRenameBranchResponseValidator = responseValidationFactory( + [ + ["201", s_branch_with_protection], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposRenameBranch = ( params: Params< @@ -12637,9 +19316,17 @@ export type ReposRenameBranch = ( | Response<422, t_validation_error> > -export type ChecksCreateResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksCreateResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ChecksCreateResponder = typeof checksCreateResponder & KoaRuntimeResponder + +const checksCreateResponseValidator = responseValidationFactory( + [["201", s_check_run]], + undefined, +) export type ChecksCreate = ( params: Params< @@ -12652,9 +19339,17 @@ export type ChecksCreate = ( ctx: RouterContext, ) => Promise | Response<201, t_check_run>> -export type ChecksGetResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksGetResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ChecksGetResponder = typeof checksGetResponder & KoaRuntimeResponder + +const checksGetResponseValidator = responseValidationFactory( + [["200", s_check_run]], + undefined, +) export type ChecksGet = ( params: Params, @@ -12662,9 +19357,17 @@ export type ChecksGet = ( ctx: RouterContext, ) => Promise | Response<200, t_check_run>> -export type ChecksUpdateResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksUpdateResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ChecksUpdateResponder = typeof checksUpdateResponder & KoaRuntimeResponder + +const checksUpdateResponseValidator = responseValidationFactory( + [["200", s_check_run]], + undefined, +) export type ChecksUpdate = ( params: Params< @@ -12677,9 +19380,18 @@ export type ChecksUpdate = ( ctx: RouterContext, ) => Promise | Response<200, t_check_run>> -export type ChecksListAnnotationsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksListAnnotationsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ChecksListAnnotationsResponder = typeof checksListAnnotationsResponder & + KoaRuntimeResponder + +const checksListAnnotationsResponseValidator = responseValidationFactory( + [["200", z.array(s_check_annotation)]], + undefined, +) export type ChecksListAnnotations = ( params: Params< @@ -12692,12 +19404,26 @@ export type ChecksListAnnotations = ( ctx: RouterContext, ) => Promise | Response<200, t_check_annotation[]>> -export type ChecksRerequestRunResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksRerequestRunResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ChecksRerequestRunResponder = typeof checksRerequestRunResponder & + KoaRuntimeResponder + +const checksRerequestRunResponseValidator = responseValidationFactory( + [ + ["201", s_empty_object], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_basic_error], + ], + undefined, +) export type ChecksRerequestRun = ( params: Params, @@ -12711,10 +19437,22 @@ export type ChecksRerequestRun = ( | Response<422, t_basic_error> > -export type ChecksCreateSuiteResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksCreateSuiteResponder = { + with200: r.with200, + with201: r.with201, + withStatus: r.withStatus, +} + +type ChecksCreateSuiteResponder = typeof checksCreateSuiteResponder & + KoaRuntimeResponder + +const checksCreateSuiteResponseValidator = responseValidationFactory( + [ + ["200", s_check_suite], + ["201", s_check_suite], + ], + undefined, +) export type ChecksCreateSuite = ( params: Params< @@ -12731,9 +19469,18 @@ export type ChecksCreateSuite = ( | Response<201, t_check_suite> > -export type ChecksSetSuitesPreferencesResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksSetSuitesPreferencesResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ChecksSetSuitesPreferencesResponder = + typeof checksSetSuitesPreferencesResponder & KoaRuntimeResponder + +const checksSetSuitesPreferencesResponseValidator = responseValidationFactory( + [["200", s_check_suite_preference]], + undefined, +) export type ChecksSetSuitesPreferences = ( params: Params< @@ -12748,9 +19495,18 @@ export type ChecksSetSuitesPreferences = ( KoaRuntimeResponse | Response<200, t_check_suite_preference> > -export type ChecksGetSuiteResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksGetSuiteResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ChecksGetSuiteResponder = typeof checksGetSuiteResponder & + KoaRuntimeResponder + +const checksGetSuiteResponseValidator = responseValidationFactory( + [["200", s_check_suite]], + undefined, +) export type ChecksGetSuite = ( params: Params, @@ -12758,12 +19514,29 @@ export type ChecksGetSuite = ( ctx: RouterContext, ) => Promise | Response<200, t_check_suite>> -export type ChecksListForSuiteResponder = { - with200(): KoaRuntimeResponse<{ +const checksListForSuiteResponder = { + with200: r.with200<{ check_runs: t_check_run[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ChecksListForSuiteResponder = typeof checksListForSuiteResponder & + KoaRuntimeResponder + +const checksListForSuiteResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + check_runs: z.array(s_check_run), + }), + ], + ], + undefined, +) export type ChecksListForSuite = ( params: Params< @@ -12785,9 +19558,18 @@ export type ChecksListForSuite = ( > > -export type ChecksRerequestSuiteResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const checksRerequestSuiteResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ChecksRerequestSuiteResponder = typeof checksRerequestSuiteResponder & + KoaRuntimeResponder + +const checksRerequestSuiteResponseValidator = responseValidationFactory( + [["201", s_empty_object]], + undefined, +) export type ChecksRerequestSuite = ( params: Params, @@ -12795,17 +19577,40 @@ export type ChecksRerequestSuite = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -export type CodeScanningListAlertsForRepoResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningListAlertsForRepoResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningListAlertsForRepoResponder = + typeof codeScanningListAlertsForRepoResponder & KoaRuntimeResponder + +const codeScanningListAlertsForRepoResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_scanning_alert_items)], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningListAlertsForRepo = ( params: Params< @@ -12832,17 +19637,39 @@ export type CodeScanningListAlertsForRepo = ( > > -export type CodeScanningGetAlertResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningGetAlertResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningGetAlertResponder = typeof codeScanningGetAlertResponder & + KoaRuntimeResponder + +const codeScanningGetAlertResponseValidator = responseValidationFactory( + [ + ["200", s_code_scanning_alert], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningGetAlert = ( params: Params, @@ -12864,17 +19691,39 @@ export type CodeScanningGetAlert = ( > > -export type CodeScanningUpdateAlertResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningUpdateAlertResponder = { + with200: r.with200, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningUpdateAlertResponder = + typeof codeScanningUpdateAlertResponder & KoaRuntimeResponder + +const codeScanningUpdateAlertResponseValidator = responseValidationFactory( + [ + ["200", s_code_scanning_alert], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningUpdateAlert = ( params: Params< @@ -12901,17 +19750,39 @@ export type CodeScanningUpdateAlert = ( > > -export type CodeScanningGetAutofixResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningGetAutofixResponder = { + with200: r.with200, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningGetAutofixResponder = typeof codeScanningGetAutofixResponder & + KoaRuntimeResponder + +const codeScanningGetAutofixResponseValidator = responseValidationFactory( + [ + ["200", s_code_scanning_autofix], + ["400", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningGetAutofix = ( params: Params, @@ -12933,19 +19804,43 @@ export type CodeScanningGetAutofix = ( > > -export type CodeScanningCreateAutofixResponder = { - with200(): KoaRuntimeResponse - with202(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningCreateAutofixResponder = { + with200: r.with200, + with202: r.with202, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningCreateAutofixResponder = + typeof codeScanningCreateAutofixResponder & KoaRuntimeResponder + +const codeScanningCreateAutofixResponseValidator = responseValidationFactory( + [ + ["200", s_code_scanning_autofix], + ["202", s_code_scanning_autofix], + ["400", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningCreateAutofix = ( params: Params, @@ -12969,18 +19864,41 @@ export type CodeScanningCreateAutofix = ( > > -export type CodeScanningCommitAutofixResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningCommitAutofixResponder = { + with201: r.with201, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningCommitAutofixResponder = + typeof codeScanningCommitAutofixResponder & KoaRuntimeResponder + +const codeScanningCommitAutofixResponseValidator = responseValidationFactory( + [ + ["201", s_code_scanning_autofix_commits_response], + ["400", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningCommitAutofix = ( params: Params< @@ -13008,16 +19926,38 @@ export type CodeScanningCommitAutofix = ( > > -export type CodeScanningListAlertInstancesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningListAlertInstancesResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningListAlertInstancesResponder = + typeof codeScanningListAlertInstancesResponder & KoaRuntimeResponder + +const codeScanningListAlertInstancesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_scanning_alert_instance)], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningListAlertInstances = ( params: Params< @@ -13043,16 +19983,38 @@ export type CodeScanningListAlertInstances = ( > > -export type CodeScanningListRecentAnalysesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningListRecentAnalysesResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningListRecentAnalysesResponder = + typeof codeScanningListRecentAnalysesResponder & KoaRuntimeResponder + +const codeScanningListRecentAnalysesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_scanning_analysis)], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningListRecentAnalyses = ( params: Params< @@ -13078,18 +20040,39 @@ export type CodeScanningListRecentAnalyses = ( > > -export type CodeScanningGetAnalysisResponder = { - with200(): KoaRuntimeResponse<{ +const codeScanningGetAnalysisResponder = { + with200: r.with200<{ [key: string]: unknown | undefined - }> - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ + }>, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningGetAnalysisResponder = + typeof codeScanningGetAnalysisResponder & KoaRuntimeResponder + +const codeScanningGetAnalysisResponseValidator = responseValidationFactory( + [ + ["200", z.record(z.unknown())], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningGetAnalysis = ( params: Params, @@ -13115,17 +20098,39 @@ export type CodeScanningGetAnalysis = ( > > -export type CodeScanningDeleteAnalysisResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningDeleteAnalysisResponder = { + with200: r.with200, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningDeleteAnalysisResponder = + typeof codeScanningDeleteAnalysisResponder & KoaRuntimeResponder + +const codeScanningDeleteAnalysisResponseValidator = responseValidationFactory( + [ + ["200", s_code_scanning_analysis_deletion], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningDeleteAnalysis = ( params: Params< @@ -13152,16 +20157,38 @@ export type CodeScanningDeleteAnalysis = ( > > -export type CodeScanningListCodeqlDatabasesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningListCodeqlDatabasesResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningListCodeqlDatabasesResponder = + typeof codeScanningListCodeqlDatabasesResponder & KoaRuntimeResponder + +const codeScanningListCodeqlDatabasesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_code_scanning_codeql_database)], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningListCodeqlDatabases = ( params: Params< @@ -13187,17 +20214,40 @@ export type CodeScanningListCodeqlDatabases = ( > > -export type CodeScanningGetCodeqlDatabaseResponder = { - with200(): KoaRuntimeResponse - with302(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningGetCodeqlDatabaseResponder = { + with200: r.with200, + with302: r.with302, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningGetCodeqlDatabaseResponder = + typeof codeScanningGetCodeqlDatabaseResponder & KoaRuntimeResponder + +const codeScanningGetCodeqlDatabaseResponseValidator = + responseValidationFactory( + [ + ["200", s_code_scanning_codeql_database], + ["302", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningGetCodeqlDatabase = ( params: Params, @@ -13219,16 +20269,38 @@ export type CodeScanningGetCodeqlDatabase = ( > > -export type CodeScanningDeleteCodeqlDatabaseResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningDeleteCodeqlDatabaseResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningDeleteCodeqlDatabaseResponder = + typeof codeScanningDeleteCodeqlDatabaseResponder & KoaRuntimeResponder + +const codeScanningDeleteCodeqlDatabaseResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningDeleteCodeqlDatabase = ( params: Params< @@ -13254,16 +20326,38 @@ export type CodeScanningDeleteCodeqlDatabase = ( > > -export type CodeScanningCreateVariantAnalysisResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningCreateVariantAnalysisResponder = { + with201: r.with201, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningCreateVariantAnalysisResponder = + typeof codeScanningCreateVariantAnalysisResponder & KoaRuntimeResponder + +const codeScanningCreateVariantAnalysisResponseValidator = + responseValidationFactory( + [ + ["201", s_code_scanning_variant_analysis], + ["404", s_basic_error], + ["422", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningCreateVariantAnalysis = ( params: Params< @@ -13289,15 +20383,36 @@ export type CodeScanningCreateVariantAnalysis = ( > > -export type CodeScanningGetVariantAnalysisResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningGetVariantAnalysisResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningGetVariantAnalysisResponder = + typeof codeScanningGetVariantAnalysisResponder & KoaRuntimeResponder + +const codeScanningGetVariantAnalysisResponseValidator = + responseValidationFactory( + [ + ["200", s_code_scanning_variant_analysis], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningGetVariantAnalysis = ( params: Params, @@ -13317,15 +20432,36 @@ export type CodeScanningGetVariantAnalysis = ( > > -export type CodeScanningGetVariantAnalysisRepoTaskResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningGetVariantAnalysisRepoTaskResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningGetVariantAnalysisRepoTaskResponder = + typeof codeScanningGetVariantAnalysisRepoTaskResponder & KoaRuntimeResponder + +const codeScanningGetVariantAnalysisRepoTaskResponseValidator = + responseValidationFactory( + [ + ["200", s_code_scanning_variant_analysis_repo_task], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningGetVariantAnalysisRepoTask = ( params: Params< @@ -13350,16 +20486,37 @@ export type CodeScanningGetVariantAnalysisRepoTask = ( > > -export type CodeScanningGetDefaultSetupResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningGetDefaultSetupResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningGetDefaultSetupResponder = + typeof codeScanningGetDefaultSetupResponder & KoaRuntimeResponder + +const codeScanningGetDefaultSetupResponseValidator = responseValidationFactory( + [ + ["200", s_code_scanning_default_setup], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningGetDefaultSetup = ( params: Params, @@ -13380,18 +20537,42 @@ export type CodeScanningGetDefaultSetup = ( > > -export type CodeScanningUpdateDefaultSetupResponder = { - with200(): KoaRuntimeResponse - with202(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningUpdateDefaultSetupResponder = { + with200: r.with200, + with202: r.with202, + with403: r.with403, + with404: r.with404, + with409: r.with409, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningUpdateDefaultSetupResponder = + typeof codeScanningUpdateDefaultSetupResponder & KoaRuntimeResponder + +const codeScanningUpdateDefaultSetupResponseValidator = + responseValidationFactory( + [ + ["200", s_empty_object], + ["202", s_code_scanning_default_setup_update_response], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodeScanningUpdateDefaultSetup = ( params: Params< @@ -13419,18 +20600,41 @@ export type CodeScanningUpdateDefaultSetup = ( > > -export type CodeScanningUploadSarifResponder = { - with202(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with413(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningUploadSarifResponder = { + with202: r.with202, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with413: r.with413, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningUploadSarifResponder = + typeof codeScanningUploadSarifResponder & KoaRuntimeResponder + +const codeScanningUploadSarifResponseValidator = responseValidationFactory( + [ + ["202", s_code_scanning_sarifs_receipt], + ["400", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["413", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningUploadSarif = ( params: Params< @@ -13458,16 +20662,37 @@ export type CodeScanningUploadSarif = ( > > -export type CodeScanningGetSarifResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codeScanningGetSarifResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodeScanningGetSarifResponder = typeof codeScanningGetSarifResponder & + KoaRuntimeResponder + +const codeScanningGetSarifResponseValidator = responseValidationFactory( + [ + ["200", s_code_scanning_sarifs_status], + ["403", s_basic_error], + ["404", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type CodeScanningGetSarif = ( params: Params, @@ -13488,13 +20713,30 @@ export type CodeScanningGetSarif = ( > > -export type CodeSecurityGetConfigurationForRepositoryResponder = { - with200(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codeSecurityGetConfigurationForRepositoryResponder = { + with200: r.with200, + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodeSecurityGetConfigurationForRepositoryResponder = + typeof codeSecurityGetConfigurationForRepositoryResponder & + KoaRuntimeResponder + +const codeSecurityGetConfigurationForRepositoryResponseValidator = + responseValidationFactory( + [ + ["200", s_code_security_configuration_for_repository], + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodeSecurityGetConfigurationForRepository = ( params: Params< @@ -13514,10 +20756,22 @@ export type CodeSecurityGetConfigurationForRepository = ( | Response<404, t_basic_error> > -export type ReposCodeownersErrorsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCodeownersErrorsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposCodeownersErrorsResponder = typeof reposCodeownersErrorsResponder & + KoaRuntimeResponder + +const reposCodeownersErrorsResponseValidator = responseValidationFactory( + [ + ["200", s_codeowners_errors], + ["404", z.undefined()], + ], + undefined, +) export type ReposCodeownersErrors = ( params: Params< @@ -13534,16 +20788,39 @@ export type ReposCodeownersErrors = ( | Response<404, void> > -export type CodespacesListInRepositoryForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesListInRepositoryForAuthenticatedUserResponder = { + with200: r.with200<{ codespaces: t_codespace[] total_count: number - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesListInRepositoryForAuthenticatedUserResponder = + typeof codespacesListInRepositoryForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesListInRepositoryForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + codespaces: z.array(s_codespace), + }), + ], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesListInRepositoryForAuthenticatedUser = ( params: Params< @@ -13569,19 +20846,45 @@ export type CodespacesListInRepositoryForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesCreateWithRepoForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with202(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codespacesCreateWithRepoForAuthenticatedUserResponder = { + with201: r.with201, + with202: r.with202, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodespacesCreateWithRepoForAuthenticatedUserResponder = + typeof codespacesCreateWithRepoForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesCreateWithRepoForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_codespace], + ["202", s_codespace], + ["400", s_scim_error], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodespacesCreateWithRepoForAuthenticatedUser = ( params: Params< @@ -13610,22 +20913,51 @@ export type CodespacesCreateWithRepoForAuthenticatedUser = ( > > -export type CodespacesListDevcontainersInRepositoryForAuthenticatedUserResponder = - { - with200(): KoaRuntimeResponse<{ - devcontainers: { - display_name?: string - name?: string - path: string - }[] - total_count: number - }> - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse - } & KoaRuntimeResponder +const codespacesListDevcontainersInRepositoryForAuthenticatedUserResponder = { + with200: r.with200<{ + devcontainers: { + display_name?: string + name?: string + path: string + }[] + total_count: number + }>, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesListDevcontainersInRepositoryForAuthenticatedUserResponder = + typeof codespacesListDevcontainersInRepositoryForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesListDevcontainersInRepositoryForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + devcontainers: z.array( + z.object({ + path: z.string(), + name: z.string().optional(), + display_name: z.string().optional(), + }), + ), + }), + ], + ["400", s_scim_error], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser = ( params: Params< @@ -13656,17 +20988,41 @@ export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesRepoMachinesForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesRepoMachinesForAuthenticatedUserResponder = { + with200: r.with200<{ machines: t_codespace_machine[] total_count: number - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesRepoMachinesForAuthenticatedUserResponder = + typeof codespacesRepoMachinesForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesRepoMachinesForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + machines: z.array(s_codespace_machine), + }), + ], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesRepoMachinesForAuthenticatedUser = ( params: Params< @@ -13693,18 +21049,45 @@ export type CodespacesRepoMachinesForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesPreFlightWithRepoForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesPreFlightWithRepoForAuthenticatedUserResponder = { + with200: r.with200<{ billable_owner?: t_simple_user defaults?: { devcontainer_path: string | null location: string } - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodespacesPreFlightWithRepoForAuthenticatedUserResponder = + typeof codespacesPreFlightWithRepoForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesPreFlightWithRepoForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + billable_owner: s_simple_user.optional(), + defaults: z + .object({ + location: z.string(), + devcontainer_path: z.string().nullable(), + }) + .optional(), + }), + ], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodespacesPreFlightWithRepoForAuthenticatedUser = ( params: Params< @@ -13732,18 +21115,43 @@ export type CodespacesPreFlightWithRepoForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type CodespacesCheckPermissionsForDevcontainerResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codespacesCheckPermissionsForDevcontainerResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodespacesCheckPermissionsForDevcontainerResponder = + typeof codespacesCheckPermissionsForDevcontainerResponder & + KoaRuntimeResponder + +const codespacesCheckPermissionsForDevcontainerResponseValidator = + responseValidationFactory( + [ + ["200", s_codespaces_permissions_check_for_devcontainer], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodespacesCheckPermissionsForDevcontainer = ( params: Params< @@ -13771,12 +21179,29 @@ export type CodespacesCheckPermissionsForDevcontainer = ( > > -export type CodespacesListRepoSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesListRepoSecretsResponder = { + with200: r.with200<{ secrets: t_repo_codespaces_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodespacesListRepoSecretsResponder = + typeof codespacesListRepoSecretsResponder & KoaRuntimeResponder + +const codespacesListRepoSecretsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_repo_codespaces_secret), + }), + ], + ], + undefined, +) export type CodespacesListRepoSecrets = ( params: Params< @@ -13798,9 +21223,18 @@ export type CodespacesListRepoSecrets = ( > > -export type CodespacesGetRepoPublicKeyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesGetRepoPublicKeyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type CodespacesGetRepoPublicKeyResponder = + typeof codespacesGetRepoPublicKeyResponder & KoaRuntimeResponder + +const codespacesGetRepoPublicKeyResponseValidator = responseValidationFactory( + [["200", s_codespaces_public_key]], + undefined, +) export type CodespacesGetRepoPublicKey = ( params: Params, @@ -13810,9 +21244,18 @@ export type CodespacesGetRepoPublicKey = ( KoaRuntimeResponse | Response<200, t_codespaces_public_key> > -export type CodespacesGetRepoSecretResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesGetRepoSecretResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type CodespacesGetRepoSecretResponder = + typeof codespacesGetRepoSecretResponder & KoaRuntimeResponder + +const codespacesGetRepoSecretResponseValidator = responseValidationFactory( + [["200", s_repo_codespaces_secret]], + undefined, +) export type CodespacesGetRepoSecret = ( params: Params, @@ -13822,10 +21265,23 @@ export type CodespacesGetRepoSecret = ( KoaRuntimeResponse | Response<200, t_repo_codespaces_secret> > -export type CodespacesCreateOrUpdateRepoSecretResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesCreateOrUpdateRepoSecretResponder = { + with201: r.with201, + with204: r.with204, + withStatus: r.withStatus, +} + +type CodespacesCreateOrUpdateRepoSecretResponder = + typeof codespacesCreateOrUpdateRepoSecretResponder & KoaRuntimeResponder + +const codespacesCreateOrUpdateRepoSecretResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["204", z.undefined()], + ], + undefined, + ) export type CodespacesCreateOrUpdateRepoSecret = ( params: Params< @@ -13842,9 +21298,18 @@ export type CodespacesCreateOrUpdateRepoSecret = ( | Response<204, void> > -export type CodespacesDeleteRepoSecretResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesDeleteRepoSecretResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type CodespacesDeleteRepoSecretResponder = + typeof codespacesDeleteRepoSecretResponder & KoaRuntimeResponder + +const codespacesDeleteRepoSecretResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type CodespacesDeleteRepoSecret = ( params: Params, @@ -13852,10 +21317,22 @@ export type CodespacesDeleteRepoSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposListCollaboratorsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListCollaboratorsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListCollaboratorsResponder = typeof reposListCollaboratorsResponder & + KoaRuntimeResponder + +const reposListCollaboratorsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_collaborator)], + ["404", s_basic_error], + ], + undefined, +) export type ReposListCollaborators = ( params: Params< @@ -13872,10 +21349,22 @@ export type ReposListCollaborators = ( | Response<404, t_basic_error> > -export type ReposCheckCollaboratorResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCheckCollaboratorResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposCheckCollaboratorResponder = typeof reposCheckCollaboratorResponder & + KoaRuntimeResponder + +const reposCheckCollaboratorResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, +) export type ReposCheckCollaborator = ( params: Params, @@ -13885,12 +21374,26 @@ export type ReposCheckCollaborator = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -export type ReposAddCollaboratorResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposAddCollaboratorResponder = { + with201: r.with201, + with204: r.with204, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposAddCollaboratorResponder = typeof reposAddCollaboratorResponder & + KoaRuntimeResponder + +const reposAddCollaboratorResponseValidator = responseValidationFactory( + [ + ["201", s_repository_invitation], + ["204", z.undefined()], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposAddCollaborator = ( params: Params< @@ -13909,11 +21412,24 @@ export type ReposAddCollaborator = ( | Response<422, t_validation_error> > -export type ReposRemoveCollaboratorResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposRemoveCollaboratorResponder = { + with204: r.with204, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposRemoveCollaboratorResponder = + typeof reposRemoveCollaboratorResponder & KoaRuntimeResponder + +const reposRemoveCollaboratorResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposRemoveCollaborator = ( params: Params, @@ -13926,10 +21442,23 @@ export type ReposRemoveCollaborator = ( | Response<422, t_validation_error> > -export type ReposGetCollaboratorPermissionLevelResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetCollaboratorPermissionLevelResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetCollaboratorPermissionLevelResponder = + typeof reposGetCollaboratorPermissionLevelResponder & KoaRuntimeResponder + +const reposGetCollaboratorPermissionLevelResponseValidator = + responseValidationFactory( + [ + ["200", s_repository_collaborator_permission], + ["404", s_basic_error], + ], + undefined, + ) export type ReposGetCollaboratorPermissionLevel = ( params: Params< @@ -13946,9 +21475,16 @@ export type ReposGetCollaboratorPermissionLevel = ( | Response<404, t_basic_error> > -export type ReposListCommitCommentsForRepoResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListCommitCommentsForRepoResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListCommitCommentsForRepoResponder = + typeof reposListCommitCommentsForRepoResponder & KoaRuntimeResponder + +const reposListCommitCommentsForRepoResponseValidator = + responseValidationFactory([["200", z.array(s_commit_comment)]], undefined) export type ReposListCommitCommentsForRepo = ( params: Params< @@ -13961,10 +21497,22 @@ export type ReposListCommitCommentsForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_commit_comment[]>> -export type ReposGetCommitCommentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetCommitCommentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetCommitCommentResponder = typeof reposGetCommitCommentResponder & + KoaRuntimeResponder + +const reposGetCommitCommentResponseValidator = responseValidationFactory( + [ + ["200", s_commit_comment], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetCommitComment = ( params: Params, @@ -13976,10 +21524,22 @@ export type ReposGetCommitComment = ( | Response<404, t_basic_error> > -export type ReposUpdateCommitCommentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateCommitCommentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposUpdateCommitCommentResponder = + typeof reposUpdateCommitCommentResponder & KoaRuntimeResponder + +const reposUpdateCommitCommentResponseValidator = responseValidationFactory( + [ + ["200", s_commit_comment], + ["404", s_basic_error], + ], + undefined, +) export type ReposUpdateCommitComment = ( params: Params< @@ -13996,10 +21556,22 @@ export type ReposUpdateCommitComment = ( | Response<404, t_basic_error> > -export type ReposDeleteCommitCommentResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteCommitCommentResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposDeleteCommitCommentResponder = + typeof reposDeleteCommitCommentResponder & KoaRuntimeResponder + +const reposDeleteCommitCommentResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type ReposDeleteCommitComment = ( params: Params, @@ -14011,10 +21583,23 @@ export type ReposDeleteCommitComment = ( | Response<404, t_basic_error> > -export type ReactionsListForCommitCommentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForCommitCommentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReactionsListForCommitCommentResponder = + typeof reactionsListForCommitCommentResponder & KoaRuntimeResponder + +const reactionsListForCommitCommentResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_reaction)], + ["404", s_basic_error], + ], + undefined, + ) export type ReactionsListForCommitComment = ( params: Params< @@ -14031,11 +21616,25 @@ export type ReactionsListForCommitComment = ( | Response<404, t_basic_error> > -export type ReactionsCreateForCommitCommentResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForCommitCommentResponder = { + with200: r.with200, + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReactionsCreateForCommitCommentResponder = + typeof reactionsCreateForCommitCommentResponder & KoaRuntimeResponder + +const reactionsCreateForCommitCommentResponseValidator = + responseValidationFactory( + [ + ["200", s_reaction], + ["201", s_reaction], + ["422", s_validation_error], + ], + undefined, + ) export type ReactionsCreateForCommitComment = ( params: Params< @@ -14053,9 +21652,16 @@ export type ReactionsCreateForCommitComment = ( | Response<422, t_validation_error> > -export type ReactionsDeleteForCommitCommentResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsDeleteForCommitCommentResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReactionsDeleteForCommitCommentResponder = + typeof reactionsDeleteForCommitCommentResponder & KoaRuntimeResponder + +const reactionsDeleteForCommitCommentResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReactionsDeleteForCommitComment = ( params: Params< @@ -14068,13 +21674,28 @@ export type ReactionsDeleteForCommitComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposListCommitsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListCommitsResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + with409: r.with409, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposListCommitsResponder = typeof reposListCommitsResponder & + KoaRuntimeResponder + +const reposListCommitsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_commit)], + ["400", s_scim_error], + ["404", s_basic_error], + ["409", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposListCommits = ( params: Params< @@ -14094,11 +21715,25 @@ export type ReposListCommits = ( | Response<500, t_basic_error> > -export type ReposListBranchesForHeadCommitResponder = { - with200(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListBranchesForHeadCommitResponder = { + with200: r.with200, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposListBranchesForHeadCommitResponder = + typeof reposListBranchesForHeadCommitResponder & KoaRuntimeResponder + +const reposListBranchesForHeadCommitResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_branch_short)], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type ReposListBranchesForHeadCommit = ( params: Params, @@ -14111,9 +21746,18 @@ export type ReposListBranchesForHeadCommit = ( | Response<422, t_validation_error> > -export type ReposListCommentsForCommitResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListCommentsForCommitResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListCommentsForCommitResponder = + typeof reposListCommentsForCommitResponder & KoaRuntimeResponder + +const reposListCommentsForCommitResponseValidator = responseValidationFactory( + [["200", z.array(s_commit_comment)]], + undefined, +) export type ReposListCommentsForCommit = ( params: Params< @@ -14126,11 +21770,24 @@ export type ReposListCommentsForCommit = ( ctx: RouterContext, ) => Promise | Response<200, t_commit_comment[]>> -export type ReposCreateCommitCommentResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateCommitCommentResponder = { + with201: r.with201, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateCommitCommentResponder = + typeof reposCreateCommitCommentResponder & KoaRuntimeResponder + +const reposCreateCommitCommentResponseValidator = responseValidationFactory( + [ + ["201", s_commit_comment], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateCommitComment = ( params: Params< @@ -14148,10 +21805,24 @@ export type ReposCreateCommitComment = ( | Response<422, t_validation_error> > -export type ReposListPullRequestsAssociatedWithCommitResponder = { - with200(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListPullRequestsAssociatedWithCommitResponder = { + with200: r.with200, + with409: r.with409, + withStatus: r.withStatus, +} + +type ReposListPullRequestsAssociatedWithCommitResponder = + typeof reposListPullRequestsAssociatedWithCommitResponder & + KoaRuntimeResponder + +const reposListPullRequestsAssociatedWithCommitResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_pull_request_simple)], + ["409", s_basic_error], + ], + undefined, + ) export type ReposListPullRequestsAssociatedWithCommit = ( params: Params< @@ -14168,18 +21839,41 @@ export type ReposListPullRequestsAssociatedWithCommit = ( | Response<409, t_basic_error> > -export type ReposGetCommitResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const reposGetCommitResponder = { + with200: r.with200, + with404: r.with404, + with409: r.with409, + with422: r.with422, + with500: r.with500, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ReposGetCommitResponder = typeof reposGetCommitResponder & + KoaRuntimeResponder + +const reposGetCommitResponseValidator = responseValidationFactory( + [ + ["200", s_commit], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type ReposGetCommit = ( params: Params< @@ -14207,12 +21901,29 @@ export type ReposGetCommit = ( > > -export type ChecksListForRefResponder = { - with200(): KoaRuntimeResponse<{ +const checksListForRefResponder = { + with200: r.with200<{ check_runs: t_check_run[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ChecksListForRefResponder = typeof checksListForRefResponder & + KoaRuntimeResponder + +const checksListForRefResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + check_runs: z.array(s_check_run), + }), + ], + ], + undefined, +) export type ChecksListForRef = ( params: Params< @@ -14234,12 +21945,29 @@ export type ChecksListForRef = ( > > -export type ChecksListSuitesForRefResponder = { - with200(): KoaRuntimeResponse<{ +const checksListSuitesForRefResponder = { + with200: r.with200<{ check_suites: t_check_suite[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ChecksListSuitesForRefResponder = typeof checksListSuitesForRefResponder & + KoaRuntimeResponder + +const checksListSuitesForRefResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + check_suites: z.array(s_check_suite), + }), + ], + ], + undefined, +) export type ChecksListSuitesForRef = ( params: Params< @@ -14261,10 +21989,22 @@ export type ChecksListSuitesForRef = ( > > -export type ReposGetCombinedStatusForRefResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetCombinedStatusForRefResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetCombinedStatusForRefResponder = + typeof reposGetCombinedStatusForRefResponder & KoaRuntimeResponder + +const reposGetCombinedStatusForRefResponseValidator = responseValidationFactory( + [ + ["200", s_combined_commit_status], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetCombinedStatusForRef = ( params: Params< @@ -14281,10 +22021,23 @@ export type ReposGetCombinedStatusForRef = ( | Response<404, t_basic_error> > -export type ReposListCommitStatusesForRefResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListCommitStatusesForRefResponder = { + with200: r.with200, + with301: r.with301, + withStatus: r.withStatus, +} + +type ReposListCommitStatusesForRefResponder = + typeof reposListCommitStatusesForRefResponder & KoaRuntimeResponder + +const reposListCommitStatusesForRefResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_status)], + ["301", s_basic_error], + ], + undefined, + ) export type ReposListCommitStatusesForRef = ( params: Params< @@ -14301,9 +22054,16 @@ export type ReposListCommitStatusesForRef = ( | Response<301, t_basic_error> > -export type ReposGetCommunityProfileMetricsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetCommunityProfileMetricsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetCommunityProfileMetricsResponder = + typeof reposGetCommunityProfileMetricsResponder & KoaRuntimeResponder + +const reposGetCommunityProfileMetricsResponseValidator = + responseValidationFactory([["200", s_community_profile]], undefined) export type ReposGetCommunityProfileMetrics = ( params: Params< @@ -14316,16 +22076,37 @@ export type ReposGetCommunityProfileMetrics = ( ctx: RouterContext, ) => Promise | Response<200, t_community_profile>> -export type ReposCompareCommitsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const reposCompareCommitsResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ReposCompareCommitsResponder = typeof reposCompareCommitsResponder & + KoaRuntimeResponder + +const reposCompareCommitsResponseValidator = responseValidationFactory( + [ + ["200", s_commit_comparison], + ["404", s_basic_error], + ["500", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type ReposCompareCommits = ( params: Params< @@ -14351,18 +22132,41 @@ export type ReposCompareCommits = ( > > -export type ReposGetContentResponder = { - with200(): KoaRuntimeResponse< +const reposGetContentResponder = { + with200: r.with200< | t_content_directory | t_content_file | t_content_symlink | t_content_submodule - > - with302(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + >, + with302: r.with302, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetContentResponder = typeof reposGetContentResponder & + KoaRuntimeResponder + +const reposGetContentResponseValidator = responseValidationFactory( + [ + [ + "200", + z.union([ + s_content_directory, + s_content_file, + s_content_symlink, + s_content_submodule, + ]), + ], + ["302", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetContent = ( params: Params< @@ -14388,15 +22192,29 @@ export type ReposGetContent = ( | Response<404, t_basic_error> > -export type ReposCreateOrUpdateFileContentsResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse< - t_basic_error | t_repository_rule_violation_error - > - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateOrUpdateFileContentsResponder = { + with200: r.with200, + with201: r.with201, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateOrUpdateFileContentsResponder = + typeof reposCreateOrUpdateFileContentsResponder & KoaRuntimeResponder + +const reposCreateOrUpdateFileContentsResponseValidator = + responseValidationFactory( + [ + ["200", s_file_commit], + ["201", s_file_commit], + ["404", s_basic_error], + ["409", z.union([s_basic_error, s_repository_rule_violation_error])], + ["422", s_validation_error], + ], + undefined, + ) export type ReposCreateOrUpdateFileContents = ( params: Params< @@ -14416,17 +22234,39 @@ export type ReposCreateOrUpdateFileContents = ( | Response<422, t_validation_error> > -export type ReposDeleteFileResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const reposDeleteFileResponder = { + with200: r.with200, + with404: r.with404, + with409: r.with409, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ReposDeleteFileResponder = typeof reposDeleteFileResponder & + KoaRuntimeResponder + +const reposDeleteFileResponseValidator = responseValidationFactory( + [ + ["200", s_file_commit], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type ReposDeleteFile = ( params: Params< @@ -14453,12 +22293,26 @@ export type ReposDeleteFile = ( > > -export type ReposListContributorsResponder = { - with200(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListContributorsResponder = { + with200: r.with200, + with204: r.with204, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListContributorsResponder = typeof reposListContributorsResponder & + KoaRuntimeResponder + +const reposListContributorsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_contributor)], + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ReposListContributors = ( params: Params< @@ -14477,14 +22331,30 @@ export type ReposListContributors = ( | Response<404, t_basic_error> > -export type DependabotListAlertsForRepoResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotListAlertsForRepoResponder = { + with200: r.with200, + with304: r.with304, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type DependabotListAlertsForRepoResponder = + typeof dependabotListAlertsForRepoResponder & KoaRuntimeResponder + +const dependabotListAlertsForRepoResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_dependabot_alert)], + ["304", z.undefined()], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type DependabotListAlertsForRepo = ( params: Params< @@ -14505,12 +22375,26 @@ export type DependabotListAlertsForRepo = ( | Response<422, t_validation_error_simple> > -export type DependabotGetAlertResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotGetAlertResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type DependabotGetAlertResponder = typeof dependabotGetAlertResponder & + KoaRuntimeResponder + +const dependabotGetAlertResponseValidator = responseValidationFactory( + [ + ["200", s_dependabot_alert], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type DependabotGetAlert = ( params: Params, @@ -14524,14 +22408,30 @@ export type DependabotGetAlert = ( | Response<404, t_basic_error> > -export type DependabotUpdateAlertResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotUpdateAlertResponder = { + with200: r.with200, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type DependabotUpdateAlertResponder = typeof dependabotUpdateAlertResponder & + KoaRuntimeResponder + +const dependabotUpdateAlertResponseValidator = responseValidationFactory( + [ + ["200", s_dependabot_alert], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type DependabotUpdateAlert = ( params: Params< @@ -14552,12 +22452,29 @@ export type DependabotUpdateAlert = ( | Response<422, t_validation_error_simple> > -export type DependabotListRepoSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const dependabotListRepoSecretsResponder = { + with200: r.with200<{ secrets: t_dependabot_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type DependabotListRepoSecretsResponder = + typeof dependabotListRepoSecretsResponder & KoaRuntimeResponder + +const dependabotListRepoSecretsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_dependabot_secret), + }), + ], + ], + undefined, +) export type DependabotListRepoSecrets = ( params: Params< @@ -14579,9 +22496,18 @@ export type DependabotListRepoSecrets = ( > > -export type DependabotGetRepoPublicKeyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotGetRepoPublicKeyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type DependabotGetRepoPublicKeyResponder = + typeof dependabotGetRepoPublicKeyResponder & KoaRuntimeResponder + +const dependabotGetRepoPublicKeyResponseValidator = responseValidationFactory( + [["200", s_dependabot_public_key]], + undefined, +) export type DependabotGetRepoPublicKey = ( params: Params, @@ -14591,9 +22517,18 @@ export type DependabotGetRepoPublicKey = ( KoaRuntimeResponse | Response<200, t_dependabot_public_key> > -export type DependabotGetRepoSecretResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotGetRepoSecretResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type DependabotGetRepoSecretResponder = + typeof dependabotGetRepoSecretResponder & KoaRuntimeResponder + +const dependabotGetRepoSecretResponseValidator = responseValidationFactory( + [["200", s_dependabot_secret]], + undefined, +) export type DependabotGetRepoSecret = ( params: Params, @@ -14601,10 +22536,23 @@ export type DependabotGetRepoSecret = ( ctx: RouterContext, ) => Promise | Response<200, t_dependabot_secret>> -export type DependabotCreateOrUpdateRepoSecretResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotCreateOrUpdateRepoSecretResponder = { + with201: r.with201, + with204: r.with204, + withStatus: r.withStatus, +} + +type DependabotCreateOrUpdateRepoSecretResponder = + typeof dependabotCreateOrUpdateRepoSecretResponder & KoaRuntimeResponder + +const dependabotCreateOrUpdateRepoSecretResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["204", z.undefined()], + ], + undefined, + ) export type DependabotCreateOrUpdateRepoSecret = ( params: Params< @@ -14621,9 +22569,18 @@ export type DependabotCreateOrUpdateRepoSecret = ( | Response<204, void> > -export type DependabotDeleteRepoSecretResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependabotDeleteRepoSecretResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type DependabotDeleteRepoSecretResponder = + typeof dependabotDeleteRepoSecretResponder & KoaRuntimeResponder + +const dependabotDeleteRepoSecretResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type DependabotDeleteRepoSecret = ( params: Params, @@ -14631,11 +22588,24 @@ export type DependabotDeleteRepoSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type DependencyGraphDiffRangeResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependencyGraphDiffRangeResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type DependencyGraphDiffRangeResponder = + typeof dependencyGraphDiffRangeResponder & KoaRuntimeResponder + +const dependencyGraphDiffRangeResponseValidator = responseValidationFactory( + [ + ["200", s_dependency_graph_diff], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type DependencyGraphDiffRange = ( params: Params< @@ -14653,11 +22623,24 @@ export type DependencyGraphDiffRange = ( | Response<404, t_basic_error> > -export type DependencyGraphExportSbomResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const dependencyGraphExportSbomResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type DependencyGraphExportSbomResponder = + typeof dependencyGraphExportSbomResponder & KoaRuntimeResponder + +const dependencyGraphExportSbomResponseValidator = responseValidationFactory( + [ + ["200", s_dependency_graph_spdx_sbom], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type DependencyGraphExportSbom = ( params: Params, @@ -14670,14 +22653,34 @@ export type DependencyGraphExportSbom = ( | Response<404, t_basic_error> > -export type DependencyGraphCreateRepositorySnapshotResponder = { - with201(): KoaRuntimeResponse<{ +const dependencyGraphCreateRepositorySnapshotResponder = { + with201: r.with201<{ created_at: string id: number message: string result: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type DependencyGraphCreateRepositorySnapshotResponder = + typeof dependencyGraphCreateRepositorySnapshotResponder & KoaRuntimeResponder + +const dependencyGraphCreateRepositorySnapshotResponseValidator = + responseValidationFactory( + [ + [ + "201", + z.object({ + id: z.coerce.number(), + created_at: z.string(), + result: z.string(), + message: z.string(), + }), + ], + ], + undefined, + ) export type DependencyGraphCreateRepositorySnapshot = ( params: Params< @@ -14701,9 +22704,18 @@ export type DependencyGraphCreateRepositorySnapshot = ( > > -export type ReposListDeploymentsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListDeploymentsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListDeploymentsResponder = typeof reposListDeploymentsResponder & + KoaRuntimeResponder + +const reposListDeploymentsResponseValidator = responseValidationFactory( + [["200", z.array(s_deployment)]], + undefined, +) export type ReposListDeployments = ( params: Params< @@ -14716,14 +22728,28 @@ export type ReposListDeployments = ( ctx: RouterContext, ) => Promise | Response<200, t_deployment[]>> -export type ReposCreateDeploymentResponder = { - with201(): KoaRuntimeResponse - with202(): KoaRuntimeResponse<{ +const reposCreateDeploymentResponder = { + with201: r.with201, + with202: r.with202<{ message?: string - }> - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateDeploymentResponder = typeof reposCreateDeploymentResponder & + KoaRuntimeResponder + +const reposCreateDeploymentResponseValidator = responseValidationFactory( + [ + ["201", s_deployment], + ["202", z.object({ message: z.string().optional() })], + ["409", z.undefined()], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateDeployment = ( params: Params< @@ -14747,10 +22773,22 @@ export type ReposCreateDeployment = ( | Response<422, t_validation_error> > -export type ReposGetDeploymentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetDeploymentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetDeploymentResponder = typeof reposGetDeploymentResponder & + KoaRuntimeResponder + +const reposGetDeploymentResponseValidator = responseValidationFactory( + [ + ["200", s_deployment], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetDeployment = ( params: Params, @@ -14762,11 +22800,24 @@ export type ReposGetDeployment = ( | Response<404, t_basic_error> > -export type ReposDeleteDeploymentResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteDeploymentResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposDeleteDeploymentResponder = typeof reposDeleteDeploymentResponder & + KoaRuntimeResponder + +const reposDeleteDeploymentResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ReposDeleteDeployment = ( params: Params, @@ -14779,10 +22830,22 @@ export type ReposDeleteDeployment = ( | Response<422, t_validation_error_simple> > -export type ReposListDeploymentStatusesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListDeploymentStatusesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListDeploymentStatusesResponder = + typeof reposListDeploymentStatusesResponder & KoaRuntimeResponder + +const reposListDeploymentStatusesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_deployment_status)], + ["404", s_basic_error], + ], + undefined, +) export type ReposListDeploymentStatuses = ( params: Params< @@ -14799,10 +22862,22 @@ export type ReposListDeploymentStatuses = ( | Response<404, t_basic_error> > -export type ReposCreateDeploymentStatusResponder = { - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateDeploymentStatusResponder = { + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateDeploymentStatusResponder = + typeof reposCreateDeploymentStatusResponder & KoaRuntimeResponder + +const reposCreateDeploymentStatusResponseValidator = responseValidationFactory( + [ + ["201", s_deployment_status], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateDeploymentStatus = ( params: Params< @@ -14819,10 +22894,22 @@ export type ReposCreateDeploymentStatus = ( | Response<422, t_validation_error> > -export type ReposGetDeploymentStatusResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetDeploymentStatusResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetDeploymentStatusResponder = + typeof reposGetDeploymentStatusResponder & KoaRuntimeResponder + +const reposGetDeploymentStatusResponseValidator = responseValidationFactory( + [ + ["200", s_deployment_status], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetDeploymentStatus = ( params: Params, @@ -14834,11 +22921,24 @@ export type ReposGetDeploymentStatus = ( | Response<404, t_basic_error> > -export type ReposCreateDispatchEventResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateDispatchEventResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateDispatchEventResponder = + typeof reposCreateDispatchEventResponder & KoaRuntimeResponder + +const reposCreateDispatchEventResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateDispatchEvent = ( params: Params< @@ -14856,12 +22956,29 @@ export type ReposCreateDispatchEvent = ( | Response<422, t_validation_error> > -export type ReposGetAllEnvironmentsResponder = { - with200(): KoaRuntimeResponse<{ +const reposGetAllEnvironmentsResponder = { + with200: r.with200<{ environments?: t_environment[] total_count?: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ReposGetAllEnvironmentsResponder = + typeof reposGetAllEnvironmentsResponder & KoaRuntimeResponder + +const reposGetAllEnvironmentsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number().optional(), + environments: z.array(s_environment).optional(), + }), + ], + ], + undefined, +) export type ReposGetAllEnvironments = ( params: Params< @@ -14883,9 +23000,18 @@ export type ReposGetAllEnvironments = ( > > -export type ReposGetEnvironmentResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetEnvironmentResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetEnvironmentResponder = typeof reposGetEnvironmentResponder & + KoaRuntimeResponder + +const reposGetEnvironmentResponseValidator = responseValidationFactory( + [["200", s_environment]], + undefined, +) export type ReposGetEnvironment = ( params: Params, @@ -14893,10 +23019,23 @@ export type ReposGetEnvironment = ( ctx: RouterContext, ) => Promise | Response<200, t_environment>> -export type ReposCreateOrUpdateEnvironmentResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateOrUpdateEnvironmentResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateOrUpdateEnvironmentResponder = + typeof reposCreateOrUpdateEnvironmentResponder & KoaRuntimeResponder + +const reposCreateOrUpdateEnvironmentResponseValidator = + responseValidationFactory( + [ + ["200", s_environment], + ["422", s_basic_error], + ], + undefined, + ) export type ReposCreateOrUpdateEnvironment = ( params: Params< @@ -14913,9 +23052,18 @@ export type ReposCreateOrUpdateEnvironment = ( | Response<422, t_basic_error> > -export type ReposDeleteAnEnvironmentResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteAnEnvironmentResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDeleteAnEnvironmentResponder = + typeof reposDeleteAnEnvironmentResponder & KoaRuntimeResponder + +const reposDeleteAnEnvironmentResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ReposDeleteAnEnvironment = ( params: Params, @@ -14923,12 +23071,30 @@ export type ReposDeleteAnEnvironment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposListDeploymentBranchPoliciesResponder = { - with200(): KoaRuntimeResponse<{ +const reposListDeploymentBranchPoliciesResponder = { + with200: r.with200<{ branch_policies: t_deployment_branch_policy[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ReposListDeploymentBranchPoliciesResponder = + typeof reposListDeploymentBranchPoliciesResponder & KoaRuntimeResponder + +const reposListDeploymentBranchPoliciesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + branch_policies: z.array(s_deployment_branch_policy), + }), + ], + ], + undefined, + ) export type ReposListDeploymentBranchPolicies = ( params: Params< @@ -14950,11 +23116,25 @@ export type ReposListDeploymentBranchPolicies = ( > > -export type ReposCreateDeploymentBranchPolicyResponder = { - with200(): KoaRuntimeResponse - with303(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateDeploymentBranchPolicyResponder = { + with200: r.with200, + with303: r.with303, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposCreateDeploymentBranchPolicyResponder = + typeof reposCreateDeploymentBranchPolicyResponder & KoaRuntimeResponder + +const reposCreateDeploymentBranchPolicyResponseValidator = + responseValidationFactory( + [ + ["200", s_deployment_branch_policy], + ["303", z.undefined()], + ["404", z.undefined()], + ], + undefined, + ) export type ReposCreateDeploymentBranchPolicy = ( params: Params< @@ -14972,9 +23152,16 @@ export type ReposCreateDeploymentBranchPolicy = ( | Response<404, void> > -export type ReposGetDeploymentBranchPolicyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetDeploymentBranchPolicyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetDeploymentBranchPolicyResponder = + typeof reposGetDeploymentBranchPolicyResponder & KoaRuntimeResponder + +const reposGetDeploymentBranchPolicyResponseValidator = + responseValidationFactory([["200", s_deployment_branch_policy]], undefined) export type ReposGetDeploymentBranchPolicy = ( params: Params, @@ -14984,9 +23171,16 @@ export type ReposGetDeploymentBranchPolicy = ( KoaRuntimeResponse | Response<200, t_deployment_branch_policy> > -export type ReposUpdateDeploymentBranchPolicyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateDeploymentBranchPolicyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposUpdateDeploymentBranchPolicyResponder = + typeof reposUpdateDeploymentBranchPolicyResponder & KoaRuntimeResponder + +const reposUpdateDeploymentBranchPolicyResponseValidator = + responseValidationFactory([["200", s_deployment_branch_policy]], undefined) export type ReposUpdateDeploymentBranchPolicy = ( params: Params< @@ -15001,9 +23195,16 @@ export type ReposUpdateDeploymentBranchPolicy = ( KoaRuntimeResponse | Response<200, t_deployment_branch_policy> > -export type ReposDeleteDeploymentBranchPolicyResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteDeploymentBranchPolicyResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDeleteDeploymentBranchPolicyResponder = + typeof reposDeleteDeploymentBranchPolicyResponder & KoaRuntimeResponder + +const reposDeleteDeploymentBranchPolicyResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReposDeleteDeploymentBranchPolicy = ( params: Params< @@ -15016,12 +23217,32 @@ export type ReposDeleteDeploymentBranchPolicy = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposGetAllDeploymentProtectionRulesResponder = { - with200(): KoaRuntimeResponse<{ +const reposGetAllDeploymentProtectionRulesResponder = { + with200: r.with200<{ custom_deployment_protection_rules?: t_deployment_protection_rule[] total_count?: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ReposGetAllDeploymentProtectionRulesResponder = + typeof reposGetAllDeploymentProtectionRulesResponder & KoaRuntimeResponder + +const reposGetAllDeploymentProtectionRulesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number().optional(), + custom_deployment_protection_rules: z + .array(s_deployment_protection_rule) + .optional(), + }), + ], + ], + undefined, + ) export type ReposGetAllDeploymentProtectionRules = ( params: Params< @@ -15043,9 +23264,16 @@ export type ReposGetAllDeploymentProtectionRules = ( > > -export type ReposCreateDeploymentProtectionRuleResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateDeploymentProtectionRuleResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ReposCreateDeploymentProtectionRuleResponder = + typeof reposCreateDeploymentProtectionRuleResponder & KoaRuntimeResponder + +const reposCreateDeploymentProtectionRuleResponseValidator = + responseValidationFactory([["201", s_deployment_protection_rule]], undefined) export type ReposCreateDeploymentProtectionRule = ( params: Params< @@ -15060,12 +23288,33 @@ export type ReposCreateDeploymentProtectionRule = ( KoaRuntimeResponse | Response<201, t_deployment_protection_rule> > -export type ReposListCustomDeploymentRuleIntegrationsResponder = { - with200(): KoaRuntimeResponse<{ +const reposListCustomDeploymentRuleIntegrationsResponder = { + with200: r.with200<{ available_custom_deployment_protection_rule_integrations?: t_custom_deployment_rule_app[] total_count?: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ReposListCustomDeploymentRuleIntegrationsResponder = + typeof reposListCustomDeploymentRuleIntegrationsResponder & + KoaRuntimeResponder + +const reposListCustomDeploymentRuleIntegrationsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number().optional(), + available_custom_deployment_protection_rule_integrations: z + .array(s_custom_deployment_rule_app) + .optional(), + }), + ], + ], + undefined, + ) export type ReposListCustomDeploymentRuleIntegrations = ( params: Params< @@ -15087,9 +23336,16 @@ export type ReposListCustomDeploymentRuleIntegrations = ( > > -export type ReposGetCustomDeploymentProtectionRuleResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetCustomDeploymentProtectionRuleResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetCustomDeploymentProtectionRuleResponder = + typeof reposGetCustomDeploymentProtectionRuleResponder & KoaRuntimeResponder + +const reposGetCustomDeploymentProtectionRuleResponseValidator = + responseValidationFactory([["200", s_deployment_protection_rule]], undefined) export type ReposGetCustomDeploymentProtectionRule = ( params: Params< @@ -15104,9 +23360,16 @@ export type ReposGetCustomDeploymentProtectionRule = ( KoaRuntimeResponse | Response<200, t_deployment_protection_rule> > -export type ReposDisableDeploymentProtectionRuleResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDisableDeploymentProtectionRuleResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDisableDeploymentProtectionRuleResponder = + typeof reposDisableDeploymentProtectionRuleResponder & KoaRuntimeResponder + +const reposDisableDeploymentProtectionRuleResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReposDisableDeploymentProtectionRule = ( params: Params< @@ -15119,12 +23382,30 @@ export type ReposDisableDeploymentProtectionRule = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListEnvironmentSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListEnvironmentSecretsResponder = { + with200: r.with200<{ secrets: t_actions_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListEnvironmentSecretsResponder = + typeof actionsListEnvironmentSecretsResponder & KoaRuntimeResponder + +const actionsListEnvironmentSecretsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_actions_secret), + }), + ], + ], + undefined, + ) export type ActionsListEnvironmentSecrets = ( params: Params< @@ -15146,9 +23427,16 @@ export type ActionsListEnvironmentSecrets = ( > > -export type ActionsGetEnvironmentPublicKeyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetEnvironmentPublicKeyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetEnvironmentPublicKeyResponder = + typeof actionsGetEnvironmentPublicKeyResponder & KoaRuntimeResponder + +const actionsGetEnvironmentPublicKeyResponseValidator = + responseValidationFactory([["200", s_actions_public_key]], undefined) export type ActionsGetEnvironmentPublicKey = ( params: Params, @@ -15156,9 +23444,18 @@ export type ActionsGetEnvironmentPublicKey = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> -export type ActionsGetEnvironmentSecretResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetEnvironmentSecretResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetEnvironmentSecretResponder = + typeof actionsGetEnvironmentSecretResponder & KoaRuntimeResponder + +const actionsGetEnvironmentSecretResponseValidator = responseValidationFactory( + [["200", s_actions_secret]], + undefined, +) export type ActionsGetEnvironmentSecret = ( params: Params, @@ -15166,10 +23463,23 @@ export type ActionsGetEnvironmentSecret = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_secret>> -export type ActionsCreateOrUpdateEnvironmentSecretResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateOrUpdateEnvironmentSecretResponder = { + with201: r.with201, + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsCreateOrUpdateEnvironmentSecretResponder = + typeof actionsCreateOrUpdateEnvironmentSecretResponder & KoaRuntimeResponder + +const actionsCreateOrUpdateEnvironmentSecretResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["204", z.undefined()], + ], + undefined, + ) export type ActionsCreateOrUpdateEnvironmentSecret = ( params: Params< @@ -15186,9 +23496,16 @@ export type ActionsCreateOrUpdateEnvironmentSecret = ( | Response<204, void> > -export type ActionsDeleteEnvironmentSecretResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteEnvironmentSecretResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteEnvironmentSecretResponder = + typeof actionsDeleteEnvironmentSecretResponder & KoaRuntimeResponder + +const actionsDeleteEnvironmentSecretResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsDeleteEnvironmentSecret = ( params: Params, @@ -15196,12 +23513,30 @@ export type ActionsDeleteEnvironmentSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsListEnvironmentVariablesResponder = { - with200(): KoaRuntimeResponse<{ +const actionsListEnvironmentVariablesResponder = { + with200: r.with200<{ total_count: number variables: t_actions_variable[] - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type ActionsListEnvironmentVariablesResponder = + typeof actionsListEnvironmentVariablesResponder & KoaRuntimeResponder + +const actionsListEnvironmentVariablesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + variables: z.array(s_actions_variable), + }), + ], + ], + undefined, + ) export type ActionsListEnvironmentVariables = ( params: Params< @@ -15223,9 +23558,16 @@ export type ActionsListEnvironmentVariables = ( > > -export type ActionsCreateEnvironmentVariableResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsCreateEnvironmentVariableResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ActionsCreateEnvironmentVariableResponder = + typeof actionsCreateEnvironmentVariableResponder & KoaRuntimeResponder + +const actionsCreateEnvironmentVariableResponseValidator = + responseValidationFactory([["201", s_empty_object]], undefined) export type ActionsCreateEnvironmentVariable = ( params: Params< @@ -15238,9 +23580,16 @@ export type ActionsCreateEnvironmentVariable = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -export type ActionsGetEnvironmentVariableResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsGetEnvironmentVariableResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActionsGetEnvironmentVariableResponder = + typeof actionsGetEnvironmentVariableResponder & KoaRuntimeResponder + +const actionsGetEnvironmentVariableResponseValidator = + responseValidationFactory([["200", s_actions_variable]], undefined) export type ActionsGetEnvironmentVariable = ( params: Params, @@ -15248,9 +23597,16 @@ export type ActionsGetEnvironmentVariable = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_variable>> -export type ActionsUpdateEnvironmentVariableResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsUpdateEnvironmentVariableResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsUpdateEnvironmentVariableResponder = + typeof actionsUpdateEnvironmentVariableResponder & KoaRuntimeResponder + +const actionsUpdateEnvironmentVariableResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsUpdateEnvironmentVariable = ( params: Params< @@ -15263,9 +23619,16 @@ export type ActionsUpdateEnvironmentVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActionsDeleteEnvironmentVariableResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const actionsDeleteEnvironmentVariableResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActionsDeleteEnvironmentVariableResponder = + typeof actionsDeleteEnvironmentVariableResponder & KoaRuntimeResponder + +const actionsDeleteEnvironmentVariableResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActionsDeleteEnvironmentVariable = ( params: Params< @@ -15278,9 +23641,18 @@ export type ActionsDeleteEnvironmentVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ActivityListRepoEventsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListRepoEventsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListRepoEventsResponder = typeof activityListRepoEventsResponder & + KoaRuntimeResponder + +const activityListRepoEventsResponseValidator = responseValidationFactory( + [["200", z.array(s_event)]], + undefined, +) export type ActivityListRepoEvents = ( params: Params< @@ -15293,10 +23665,22 @@ export type ActivityListRepoEvents = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -export type ReposListForksResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListForksResponder = { + with200: r.with200, + with400: r.with400, + withStatus: r.withStatus, +} + +type ReposListForksResponder = typeof reposListForksResponder & + KoaRuntimeResponder + +const reposListForksResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_minimal_repository)], + ["400", s_scim_error], + ], + undefined, +) export type ReposListForks = ( params: Params< @@ -15313,13 +23697,28 @@ export type ReposListForks = ( | Response<400, t_scim_error> > -export type ReposCreateForkResponder = { - with202(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateForkResponder = { + with202: r.with202, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateForkResponder = typeof reposCreateForkResponder & + KoaRuntimeResponder + +const reposCreateForkResponseValidator = responseValidationFactory( + [ + ["202", s_full_repository], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateFork = ( params: Params< @@ -15339,15 +23738,28 @@ export type ReposCreateFork = ( | Response<422, t_validation_error> > -export type GitCreateBlobResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse< - t_validation_error | t_repository_rule_violation_error - > -} & KoaRuntimeResponder +const gitCreateBlobResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitCreateBlobResponder = typeof gitCreateBlobResponder & + KoaRuntimeResponder + +const gitCreateBlobResponseValidator = responseValidationFactory( + [ + ["201", s_short_blob], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", z.union([s_validation_error, s_repository_rule_violation_error])], + ], + undefined, +) export type GitCreateBlob = ( params: Params< @@ -15367,13 +23779,27 @@ export type GitCreateBlob = ( | Response<422, t_validation_error | t_repository_rule_violation_error> > -export type GitGetBlobResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitGetBlobResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitGetBlobResponder = typeof gitGetBlobResponder & KoaRuntimeResponder + +const gitGetBlobResponseValidator = responseValidationFactory( + [ + ["200", s_blob], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GitGetBlob = ( params: Params, @@ -15388,12 +23814,26 @@ export type GitGetBlob = ( | Response<422, t_validation_error> > -export type GitCreateCommitResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitCreateCommitResponder = { + with201: r.with201, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitCreateCommitResponder = typeof gitCreateCommitResponder & + KoaRuntimeResponder + +const gitCreateCommitResponseValidator = responseValidationFactory( + [ + ["201", s_git_commit], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GitCreateCommit = ( params: Params< @@ -15412,11 +23852,23 @@ export type GitCreateCommit = ( | Response<422, t_validation_error> > -export type GitGetCommitResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitGetCommitResponder = { + with200: r.with200, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type GitGetCommitResponder = typeof gitGetCommitResponder & KoaRuntimeResponder + +const gitGetCommitResponseValidator = responseValidationFactory( + [ + ["200", s_git_commit], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, +) export type GitGetCommit = ( params: Params, @@ -15429,10 +23881,22 @@ export type GitGetCommit = ( | Response<409, t_basic_error> > -export type GitListMatchingRefsResponder = { - with200(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitListMatchingRefsResponder = { + with200: r.with200, + with409: r.with409, + withStatus: r.withStatus, +} + +type GitListMatchingRefsResponder = typeof gitListMatchingRefsResponder & + KoaRuntimeResponder + +const gitListMatchingRefsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_git_ref)], + ["409", s_basic_error], + ], + undefined, +) export type GitListMatchingRefs = ( params: Params, @@ -15444,11 +23908,23 @@ export type GitListMatchingRefs = ( | Response<409, t_basic_error> > -export type GitGetRefResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitGetRefResponder = { + with200: r.with200, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type GitGetRefResponder = typeof gitGetRefResponder & KoaRuntimeResponder + +const gitGetRefResponseValidator = responseValidationFactory( + [ + ["200", s_git_ref], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, +) export type GitGetRef = ( params: Params, @@ -15461,11 +23937,23 @@ export type GitGetRef = ( | Response<409, t_basic_error> > -export type GitCreateRefResponder = { - with201(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitCreateRefResponder = { + with201: r.with201, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitCreateRefResponder = typeof gitCreateRefResponder & KoaRuntimeResponder + +const gitCreateRefResponseValidator = responseValidationFactory( + [ + ["201", s_git_ref], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GitCreateRef = ( params: Params< @@ -15483,11 +23971,23 @@ export type GitCreateRef = ( | Response<422, t_validation_error> > -export type GitUpdateRefResponder = { - with200(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitUpdateRefResponder = { + with200: r.with200, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitUpdateRefResponder = typeof gitUpdateRefResponder & KoaRuntimeResponder + +const gitUpdateRefResponseValidator = responseValidationFactory( + [ + ["200", s_git_ref], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GitUpdateRef = ( params: Params< @@ -15505,11 +24005,23 @@ export type GitUpdateRef = ( | Response<422, t_validation_error> > -export type GitDeleteRefResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitDeleteRefResponder = { + with204: r.with204, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitDeleteRefResponder = typeof gitDeleteRefResponder & KoaRuntimeResponder + +const gitDeleteRefResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["409", s_basic_error], + ["422", z.undefined()], + ], + undefined, +) export type GitDeleteRef = ( params: Params, @@ -15522,11 +24034,23 @@ export type GitDeleteRef = ( | Response<422, void> > -export type GitCreateTagResponder = { - with201(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitCreateTagResponder = { + with201: r.with201, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitCreateTagResponder = typeof gitCreateTagResponder & KoaRuntimeResponder + +const gitCreateTagResponseValidator = responseValidationFactory( + [ + ["201", s_git_tag], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GitCreateTag = ( params: Params< @@ -15544,11 +24068,23 @@ export type GitCreateTag = ( | Response<422, t_validation_error> > -export type GitGetTagResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitGetTagResponder = { + with200: r.with200, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type GitGetTagResponder = typeof gitGetTagResponder & KoaRuntimeResponder + +const gitGetTagResponseValidator = responseValidationFactory( + [ + ["200", s_git_tag], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, +) export type GitGetTag = ( params: Params, @@ -15561,13 +24097,28 @@ export type GitGetTag = ( | Response<409, t_basic_error> > -export type GitCreateTreeResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitCreateTreeResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitCreateTreeResponder = typeof gitCreateTreeResponder & + KoaRuntimeResponder + +const gitCreateTreeResponseValidator = responseValidationFactory( + [ + ["201", s_git_tree], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GitCreateTree = ( params: Params< @@ -15587,12 +24138,25 @@ export type GitCreateTree = ( | Response<422, t_validation_error> > -export type GitGetTreeResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gitGetTreeResponder = { + with200: r.with200, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type GitGetTreeResponder = typeof gitGetTreeResponder & KoaRuntimeResponder + +const gitGetTreeResponseValidator = responseValidationFactory( + [ + ["200", s_git_tree], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type GitGetTree = ( params: Params, @@ -15606,10 +24170,22 @@ export type GitGetTree = ( | Response<422, t_validation_error> > -export type ReposListWebhooksResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListWebhooksResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListWebhooksResponder = typeof reposListWebhooksResponder & + KoaRuntimeResponder + +const reposListWebhooksResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_hook)], + ["404", s_basic_error], + ], + undefined, +) export type ReposListWebhooks = ( params: Params< @@ -15626,12 +24202,26 @@ export type ReposListWebhooks = ( | Response<404, t_basic_error> > -export type ReposCreateWebhookResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateWebhookResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateWebhookResponder = typeof reposCreateWebhookResponder & + KoaRuntimeResponder + +const reposCreateWebhookResponseValidator = responseValidationFactory( + [ + ["201", s_hook], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateWebhook = ( params: Params< @@ -15650,10 +24240,22 @@ export type ReposCreateWebhook = ( | Response<422, t_validation_error> > -export type ReposGetWebhookResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetWebhookResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetWebhookResponder = typeof reposGetWebhookResponder & + KoaRuntimeResponder + +const reposGetWebhookResponseValidator = responseValidationFactory( + [ + ["200", s_hook], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetWebhook = ( params: Params, @@ -15665,11 +24267,24 @@ export type ReposGetWebhook = ( | Response<404, t_basic_error> > -export type ReposUpdateWebhookResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateWebhookResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposUpdateWebhookResponder = typeof reposUpdateWebhookResponder & + KoaRuntimeResponder + +const reposUpdateWebhookResponseValidator = responseValidationFactory( + [ + ["200", s_hook], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposUpdateWebhook = ( params: Params< @@ -15687,10 +24302,22 @@ export type ReposUpdateWebhook = ( | Response<422, t_validation_error> > -export type ReposDeleteWebhookResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteWebhookResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposDeleteWebhookResponder = typeof reposDeleteWebhookResponder & + KoaRuntimeResponder + +const reposDeleteWebhookResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type ReposDeleteWebhook = ( params: Params, @@ -15702,9 +24329,18 @@ export type ReposDeleteWebhook = ( | Response<404, t_basic_error> > -export type ReposGetWebhookConfigForRepoResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetWebhookConfigForRepoResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetWebhookConfigForRepoResponder = + typeof reposGetWebhookConfigForRepoResponder & KoaRuntimeResponder + +const reposGetWebhookConfigForRepoResponseValidator = responseValidationFactory( + [["200", s_webhook_config]], + undefined, +) export type ReposGetWebhookConfigForRepo = ( params: Params, @@ -15712,9 +24348,16 @@ export type ReposGetWebhookConfigForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -export type ReposUpdateWebhookConfigForRepoResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateWebhookConfigForRepoResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposUpdateWebhookConfigForRepoResponder = + typeof reposUpdateWebhookConfigForRepoResponder & KoaRuntimeResponder + +const reposUpdateWebhookConfigForRepoResponseValidator = + responseValidationFactory([["200", s_webhook_config]], undefined) export type ReposUpdateWebhookConfigForRepo = ( params: Params< @@ -15727,11 +24370,24 @@ export type ReposUpdateWebhookConfigForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -export type ReposListWebhookDeliveriesResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListWebhookDeliveriesResponder = { + with200: r.with200, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposListWebhookDeliveriesResponder = + typeof reposListWebhookDeliveriesResponder & KoaRuntimeResponder + +const reposListWebhookDeliveriesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_hook_delivery_item)], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposListWebhookDeliveries = ( params: Params< @@ -15749,11 +24405,24 @@ export type ReposListWebhookDeliveries = ( | Response<422, t_validation_error> > -export type ReposGetWebhookDeliveryResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetWebhookDeliveryResponder = { + with200: r.with200, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposGetWebhookDeliveryResponder = + typeof reposGetWebhookDeliveryResponder & KoaRuntimeResponder + +const reposGetWebhookDeliveryResponseValidator = responseValidationFactory( + [ + ["200", s_hook_delivery], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposGetWebhookDelivery = ( params: Params, @@ -15766,13 +24435,27 @@ export type ReposGetWebhookDelivery = ( | Response<422, t_validation_error> > -export type ReposRedeliverWebhookDeliveryResponder = { - with202(): KoaRuntimeResponse<{ +const reposRedeliverWebhookDeliveryResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with400(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with400: r.with400, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposRedeliverWebhookDeliveryResponder = + typeof reposRedeliverWebhookDeliveryResponder & KoaRuntimeResponder + +const reposRedeliverWebhookDeliveryResponseValidator = + responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["400", s_scim_error], + ["422", s_validation_error], + ], + undefined, + ) export type ReposRedeliverWebhookDelivery = ( params: Params, @@ -15790,10 +24473,22 @@ export type ReposRedeliverWebhookDelivery = ( | Response<422, t_validation_error> > -export type ReposPingWebhookResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposPingWebhookResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposPingWebhookResponder = typeof reposPingWebhookResponder & + KoaRuntimeResponder + +const reposPingWebhookResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type ReposPingWebhook = ( params: Params, @@ -15805,10 +24500,22 @@ export type ReposPingWebhook = ( | Response<404, t_basic_error> > -export type ReposTestPushWebhookResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposTestPushWebhookResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposTestPushWebhookResponder = typeof reposTestPushWebhookResponder & + KoaRuntimeResponder + +const reposTestPushWebhookResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type ReposTestPushWebhook = ( params: Params, @@ -15820,11 +24527,24 @@ export type ReposTestPushWebhook = ( | Response<404, t_basic_error> > -export type MigrationsGetImportStatusResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsGetImportStatusResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503, + withStatus: r.withStatus, +} + +type MigrationsGetImportStatusResponder = + typeof migrationsGetImportStatusResponder & KoaRuntimeResponder + +const migrationsGetImportStatusResponseValidator = responseValidationFactory( + [ + ["200", s_import], + ["404", s_basic_error], + ["503", s_basic_error], + ], + undefined, +) export type MigrationsGetImportStatus = ( params: Params, @@ -15837,12 +24557,26 @@ export type MigrationsGetImportStatus = ( | Response<503, t_basic_error> > -export type MigrationsStartImportResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsStartImportResponder = { + with201: r.with201, + with404: r.with404, + with422: r.with422, + with503: r.with503, + withStatus: r.withStatus, +} + +type MigrationsStartImportResponder = typeof migrationsStartImportResponder & + KoaRuntimeResponder + +const migrationsStartImportResponseValidator = responseValidationFactory( + [ + ["201", s_import], + ["404", s_basic_error], + ["422", s_validation_error], + ["503", s_basic_error], + ], + undefined, +) export type MigrationsStartImport = ( params: Params< @@ -15861,10 +24595,22 @@ export type MigrationsStartImport = ( | Response<503, t_basic_error> > -export type MigrationsUpdateImportResponder = { - with200(): KoaRuntimeResponse - with503(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsUpdateImportResponder = { + with200: r.with200, + with503: r.with503, + withStatus: r.withStatus, +} + +type MigrationsUpdateImportResponder = typeof migrationsUpdateImportResponder & + KoaRuntimeResponder + +const migrationsUpdateImportResponseValidator = responseValidationFactory( + [ + ["200", s_import], + ["503", s_basic_error], + ], + undefined, +) export type MigrationsUpdateImport = ( params: Params< @@ -15881,10 +24627,22 @@ export type MigrationsUpdateImport = ( | Response<503, t_basic_error> > -export type MigrationsCancelImportResponder = { - with204(): KoaRuntimeResponse - with503(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsCancelImportResponder = { + with204: r.with204, + with503: r.with503, + withStatus: r.withStatus, +} + +type MigrationsCancelImportResponder = typeof migrationsCancelImportResponder & + KoaRuntimeResponder + +const migrationsCancelImportResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["503", s_basic_error], + ], + undefined, +) export type MigrationsCancelImport = ( params: Params, @@ -15896,11 +24654,24 @@ export type MigrationsCancelImport = ( | Response<503, t_basic_error> > -export type MigrationsGetCommitAuthorsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsGetCommitAuthorsResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503, + withStatus: r.withStatus, +} + +type MigrationsGetCommitAuthorsResponder = + typeof migrationsGetCommitAuthorsResponder & KoaRuntimeResponder + +const migrationsGetCommitAuthorsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_porter_author)], + ["404", s_basic_error], + ["503", s_basic_error], + ], + undefined, +) export type MigrationsGetCommitAuthors = ( params: Params< @@ -15918,12 +24689,26 @@ export type MigrationsGetCommitAuthors = ( | Response<503, t_basic_error> > -export type MigrationsMapCommitAuthorResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsMapCommitAuthorResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + with503: r.with503, + withStatus: r.withStatus, +} + +type MigrationsMapCommitAuthorResponder = + typeof migrationsMapCommitAuthorResponder & KoaRuntimeResponder + +const migrationsMapCommitAuthorResponseValidator = responseValidationFactory( + [ + ["200", s_porter_author], + ["404", s_basic_error], + ["422", s_validation_error], + ["503", s_basic_error], + ], + undefined, +) export type MigrationsMapCommitAuthor = ( params: Params< @@ -15942,10 +24727,22 @@ export type MigrationsMapCommitAuthor = ( | Response<503, t_basic_error> > -export type MigrationsGetLargeFilesResponder = { - with200(): KoaRuntimeResponse - with503(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsGetLargeFilesResponder = { + with200: r.with200, + with503: r.with503, + withStatus: r.withStatus, +} + +type MigrationsGetLargeFilesResponder = + typeof migrationsGetLargeFilesResponder & KoaRuntimeResponder + +const migrationsGetLargeFilesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_porter_large_file)], + ["503", s_basic_error], + ], + undefined, +) export type MigrationsGetLargeFiles = ( params: Params, @@ -15957,11 +24754,24 @@ export type MigrationsGetLargeFiles = ( | Response<503, t_basic_error> > -export type MigrationsSetLfsPreferenceResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsSetLfsPreferenceResponder = { + with200: r.with200, + with422: r.with422, + with503: r.with503, + withStatus: r.withStatus, +} + +type MigrationsSetLfsPreferenceResponder = + typeof migrationsSetLfsPreferenceResponder & KoaRuntimeResponder + +const migrationsSetLfsPreferenceResponseValidator = responseValidationFactory( + [ + ["200", s_import], + ["422", s_validation_error], + ["503", s_basic_error], + ], + undefined, +) export type MigrationsSetLfsPreference = ( params: Params< @@ -15979,11 +24789,24 @@ export type MigrationsSetLfsPreference = ( | Response<503, t_basic_error> > -export type AppsGetRepoInstallationResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetRepoInstallationResponder = { + with200: r.with200, + with301: r.with301, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsGetRepoInstallationResponder = + typeof appsGetRepoInstallationResponder & KoaRuntimeResponder + +const appsGetRepoInstallationResponseValidator = responseValidationFactory( + [ + ["200", s_installation], + ["301", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type AppsGetRepoInstallation = ( params: Params, @@ -15996,9 +24819,19 @@ export type AppsGetRepoInstallation = ( | Response<404, t_basic_error> > -export type InteractionsGetRestrictionsForRepoResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsGetRestrictionsForRepoResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type InteractionsGetRestrictionsForRepoResponder = + typeof interactionsGetRestrictionsForRepoResponder & KoaRuntimeResponder + +const interactionsGetRestrictionsForRepoResponseValidator = + responseValidationFactory( + [["200", z.union([s_interaction_limit_response, z.object({})])]], + undefined, + ) export type InteractionsGetRestrictionsForRepo = ( params: Params< @@ -16014,10 +24847,23 @@ export type InteractionsGetRestrictionsForRepo = ( | Response<200, t_interaction_limit_response | EmptyObject> > -export type InteractionsSetRestrictionsForRepoResponder = { - with200(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsSetRestrictionsForRepoResponder = { + with200: r.with200, + with409: r.with409, + withStatus: r.withStatus, +} + +type InteractionsSetRestrictionsForRepoResponder = + typeof interactionsSetRestrictionsForRepoResponder & KoaRuntimeResponder + +const interactionsSetRestrictionsForRepoResponseValidator = + responseValidationFactory( + [ + ["200", s_interaction_limit_response], + ["409", z.undefined()], + ], + undefined, + ) export type InteractionsSetRestrictionsForRepo = ( params: Params< @@ -16034,10 +24880,23 @@ export type InteractionsSetRestrictionsForRepo = ( | Response<409, void> > -export type InteractionsRemoveRestrictionsForRepoResponder = { - with204(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsRemoveRestrictionsForRepoResponder = { + with204: r.with204, + with409: r.with409, + withStatus: r.withStatus, +} + +type InteractionsRemoveRestrictionsForRepoResponder = + typeof interactionsRemoveRestrictionsForRepoResponder & KoaRuntimeResponder + +const interactionsRemoveRestrictionsForRepoResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["409", z.undefined()], + ], + undefined, + ) export type InteractionsRemoveRestrictionsForRepo = ( params: Params< @@ -16052,9 +24911,18 @@ export type InteractionsRemoveRestrictionsForRepo = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -export type ReposListInvitationsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListInvitationsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListInvitationsResponder = typeof reposListInvitationsResponder & + KoaRuntimeResponder + +const reposListInvitationsResponseValidator = responseValidationFactory( + [["200", z.array(s_repository_invitation)]], + undefined, +) export type ReposListInvitations = ( params: Params< @@ -16069,9 +24937,18 @@ export type ReposListInvitations = ( KoaRuntimeResponse | Response<200, t_repository_invitation[]> > -export type ReposUpdateInvitationResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateInvitationResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposUpdateInvitationResponder = typeof reposUpdateInvitationResponder & + KoaRuntimeResponder + +const reposUpdateInvitationResponseValidator = responseValidationFactory( + [["200", s_repository_invitation]], + undefined, +) export type ReposUpdateInvitation = ( params: Params< @@ -16086,9 +24963,18 @@ export type ReposUpdateInvitation = ( KoaRuntimeResponse | Response<200, t_repository_invitation> > -export type ReposDeleteInvitationResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteInvitationResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDeleteInvitationResponder = typeof reposDeleteInvitationResponder & + KoaRuntimeResponder + +const reposDeleteInvitationResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ReposDeleteInvitation = ( params: Params, @@ -16096,12 +24982,26 @@ export type ReposDeleteInvitation = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type IssuesListForRepoResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListForRepoResponder = { + with200: r.with200, + with301: r.with301, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesListForRepoResponder = typeof issuesListForRepoResponder & + KoaRuntimeResponder + +const issuesListForRepoResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue)], + ["301", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesListForRepo = ( params: Params< @@ -16120,19 +25020,42 @@ export type IssuesListForRepo = ( | Response<422, t_validation_error> > -export type IssuesCreateResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const issuesCreateResponder = { + with201: r.with201, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with410: r.with410, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type IssuesCreateResponder = typeof issuesCreateResponder & KoaRuntimeResponder + +const issuesCreateResponseValidator = responseValidationFactory( + [ + ["201", s_issue], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type IssuesCreate = ( params: Params< @@ -16161,11 +25084,24 @@ export type IssuesCreate = ( > > -export type IssuesListCommentsForRepoResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListCommentsForRepoResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesListCommentsForRepoResponder = + typeof issuesListCommentsForRepoResponder & KoaRuntimeResponder + +const issuesListCommentsForRepoResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue_comment)], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesListCommentsForRepo = ( params: Params< @@ -16183,10 +25119,22 @@ export type IssuesListCommentsForRepo = ( | Response<422, t_validation_error> > -export type IssuesGetCommentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesGetCommentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesGetCommentResponder = typeof issuesGetCommentResponder & + KoaRuntimeResponder + +const issuesGetCommentResponseValidator = responseValidationFactory( + [ + ["200", s_issue_comment], + ["404", s_basic_error], + ], + undefined, +) export type IssuesGetComment = ( params: Params, @@ -16198,10 +25146,22 @@ export type IssuesGetComment = ( | Response<404, t_basic_error> > -export type IssuesUpdateCommentResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesUpdateCommentResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesUpdateCommentResponder = typeof issuesUpdateCommentResponder & + KoaRuntimeResponder + +const issuesUpdateCommentResponseValidator = responseValidationFactory( + [ + ["200", s_issue_comment], + ["422", s_validation_error], + ], + undefined, +) export type IssuesUpdateComment = ( params: Params< @@ -16218,9 +25178,18 @@ export type IssuesUpdateComment = ( | Response<422, t_validation_error> > -export type IssuesDeleteCommentResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesDeleteCommentResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type IssuesDeleteCommentResponder = typeof issuesDeleteCommentResponder & + KoaRuntimeResponder + +const issuesDeleteCommentResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type IssuesDeleteComment = ( params: Params, @@ -16228,10 +25197,22 @@ export type IssuesDeleteComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReactionsListForIssueCommentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForIssueCommentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReactionsListForIssueCommentResponder = + typeof reactionsListForIssueCommentResponder & KoaRuntimeResponder + +const reactionsListForIssueCommentResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_reaction)], + ["404", s_basic_error], + ], + undefined, +) export type ReactionsListForIssueComment = ( params: Params< @@ -16248,11 +25229,25 @@ export type ReactionsListForIssueComment = ( | Response<404, t_basic_error> > -export type ReactionsCreateForIssueCommentResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForIssueCommentResponder = { + with200: r.with200, + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReactionsCreateForIssueCommentResponder = + typeof reactionsCreateForIssueCommentResponder & KoaRuntimeResponder + +const reactionsCreateForIssueCommentResponseValidator = + responseValidationFactory( + [ + ["200", s_reaction], + ["201", s_reaction], + ["422", s_validation_error], + ], + undefined, + ) export type ReactionsCreateForIssueComment = ( params: Params< @@ -16270,9 +25265,16 @@ export type ReactionsCreateForIssueComment = ( | Response<422, t_validation_error> > -export type ReactionsDeleteForIssueCommentResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsDeleteForIssueCommentResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReactionsDeleteForIssueCommentResponder = + typeof reactionsDeleteForIssueCommentResponder & KoaRuntimeResponder + +const reactionsDeleteForIssueCommentResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReactionsDeleteForIssueComment = ( params: Params, @@ -16280,10 +25282,22 @@ export type ReactionsDeleteForIssueComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type IssuesListEventsForRepoResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListEventsForRepoResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesListEventsForRepoResponder = + typeof issuesListEventsForRepoResponder & KoaRuntimeResponder + +const issuesListEventsForRepoResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue_event)], + ["422", s_validation_error], + ], + undefined, +) export type IssuesListEventsForRepo = ( params: Params< @@ -16300,12 +25314,26 @@ export type IssuesListEventsForRepo = ( | Response<422, t_validation_error> > -export type IssuesGetEventResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesGetEventResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesGetEventResponder = typeof issuesGetEventResponder & + KoaRuntimeResponder + +const issuesGetEventResponseValidator = responseValidationFactory( + [ + ["200", s_issue_event], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type IssuesGetEvent = ( params: Params, @@ -16319,13 +25347,27 @@ export type IssuesGetEvent = ( | Response<410, t_basic_error> > -export type IssuesGetResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesGetResponder = { + with200: r.with200, + with301: r.with301, + with304: r.with304, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesGetResponder = typeof issuesGetResponder & KoaRuntimeResponder + +const issuesGetResponseValidator = responseValidationFactory( + [ + ["200", s_issue], + ["301", s_basic_error], + ["304", z.undefined()], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type IssuesGet = ( params: Params, @@ -16340,19 +25382,42 @@ export type IssuesGet = ( | Response<410, t_basic_error> > -export type IssuesUpdateResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const issuesUpdateResponder = { + with200: r.with200, + with301: r.with301, + with403: r.with403, + with404: r.with404, + with410: r.with410, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type IssuesUpdateResponder = typeof issuesUpdateResponder & KoaRuntimeResponder + +const issuesUpdateResponseValidator = responseValidationFactory( + [ + ["200", s_issue], + ["301", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type IssuesUpdate = ( params: Params< @@ -16381,9 +25446,18 @@ export type IssuesUpdate = ( > > -export type IssuesAddAssigneesResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesAddAssigneesResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type IssuesAddAssigneesResponder = typeof issuesAddAssigneesResponder & + KoaRuntimeResponder + +const issuesAddAssigneesResponseValidator = responseValidationFactory( + [["201", s_issue]], + undefined, +) export type IssuesAddAssignees = ( params: Params< @@ -16396,9 +25470,18 @@ export type IssuesAddAssignees = ( ctx: RouterContext, ) => Promise | Response<201, t_issue>> -export type IssuesRemoveAssigneesResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesRemoveAssigneesResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type IssuesRemoveAssigneesResponder = typeof issuesRemoveAssigneesResponder & + KoaRuntimeResponder + +const issuesRemoveAssigneesResponseValidator = responseValidationFactory( + [["200", s_issue]], + undefined, +) export type IssuesRemoveAssignees = ( params: Params< @@ -16411,10 +25494,23 @@ export type IssuesRemoveAssignees = ( ctx: RouterContext, ) => Promise | Response<200, t_issue>> -export type IssuesCheckUserCanBeAssignedToIssueResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesCheckUserCanBeAssignedToIssueResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesCheckUserCanBeAssignedToIssueResponder = + typeof issuesCheckUserCanBeAssignedToIssueResponder & KoaRuntimeResponder + +const issuesCheckUserCanBeAssignedToIssueResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, + ) export type IssuesCheckUserCanBeAssignedToIssue = ( params: Params< @@ -16431,11 +25527,24 @@ export type IssuesCheckUserCanBeAssignedToIssue = ( | Response<404, t_basic_error> > -export type IssuesListCommentsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListCommentsResponder = { + with200: r.with200, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesListCommentsResponder = typeof issuesListCommentsResponder & + KoaRuntimeResponder + +const issuesListCommentsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue_comment)], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type IssuesListComments = ( params: Params< @@ -16453,13 +25562,28 @@ export type IssuesListComments = ( | Response<410, t_basic_error> > -export type IssuesCreateCommentResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesCreateCommentResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesCreateCommentResponder = typeof issuesCreateCommentResponder & + KoaRuntimeResponder + +const issuesCreateCommentResponseValidator = responseValidationFactory( + [ + ["201", s_issue_comment], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesCreateComment = ( params: Params< @@ -16479,10 +25603,22 @@ export type IssuesCreateComment = ( | Response<422, t_validation_error> > -export type IssuesListEventsResponder = { - with200(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListEventsResponder = { + with200: r.with200, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesListEventsResponder = typeof issuesListEventsResponder & + KoaRuntimeResponder + +const issuesListEventsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue_event_for_issue)], + ["410", s_basic_error], + ], + undefined, +) export type IssuesListEvents = ( params: Params< @@ -16499,12 +25635,26 @@ export type IssuesListEvents = ( | Response<410, t_basic_error> > -export type IssuesListLabelsOnIssueResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListLabelsOnIssueResponder = { + with200: r.with200, + with301: r.with301, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesListLabelsOnIssueResponder = + typeof issuesListLabelsOnIssueResponder & KoaRuntimeResponder + +const issuesListLabelsOnIssueResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_label)], + ["301", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type IssuesListLabelsOnIssue = ( params: Params< @@ -16523,13 +25673,28 @@ export type IssuesListLabelsOnIssue = ( | Response<410, t_basic_error> > -export type IssuesAddLabelsResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesAddLabelsResponder = { + with200: r.with200, + with301: r.with301, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesAddLabelsResponder = typeof issuesAddLabelsResponder & + KoaRuntimeResponder + +const issuesAddLabelsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_label)], + ["301", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesAddLabels = ( params: Params< @@ -16549,13 +25714,28 @@ export type IssuesAddLabels = ( | Response<422, t_validation_error> > -export type IssuesSetLabelsResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesSetLabelsResponder = { + with200: r.with200, + with301: r.with301, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesSetLabelsResponder = typeof issuesSetLabelsResponder & + KoaRuntimeResponder + +const issuesSetLabelsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_label)], + ["301", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesSetLabels = ( params: Params< @@ -16575,12 +25755,26 @@ export type IssuesSetLabels = ( | Response<422, t_validation_error> > -export type IssuesRemoveAllLabelsResponder = { - with204(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesRemoveAllLabelsResponder = { + with204: r.with204, + with301: r.with301, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesRemoveAllLabelsResponder = typeof issuesRemoveAllLabelsResponder & + KoaRuntimeResponder + +const issuesRemoveAllLabelsResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["301", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type IssuesRemoveAllLabels = ( params: Params, @@ -16594,12 +25788,26 @@ export type IssuesRemoveAllLabels = ( | Response<410, t_basic_error> > -export type IssuesRemoveLabelResponder = { - with200(): KoaRuntimeResponse - with301(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesRemoveLabelResponder = { + with200: r.with200, + with301: r.with301, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesRemoveLabelResponder = typeof issuesRemoveLabelResponder & + KoaRuntimeResponder + +const issuesRemoveLabelResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_label)], + ["301", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type IssuesRemoveLabel = ( params: Params, @@ -16613,13 +25821,27 @@ export type IssuesRemoveLabel = ( | Response<410, t_basic_error> > -export type IssuesLockResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesLockResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesLockResponder = typeof issuesLockResponder & KoaRuntimeResponder + +const issuesLockResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesLock = ( params: Params< @@ -16639,11 +25861,23 @@ export type IssuesLock = ( | Response<422, t_validation_error> > -export type IssuesUnlockResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesUnlockResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesUnlockResponder = typeof issuesUnlockResponder & KoaRuntimeResponder + +const issuesUnlockResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type IssuesUnlock = ( params: Params, @@ -16656,11 +25890,24 @@ export type IssuesUnlock = ( | Response<404, t_basic_error> > -export type ReactionsListForIssueResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForIssueResponder = { + with200: r.with200, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type ReactionsListForIssueResponder = typeof reactionsListForIssueResponder & + KoaRuntimeResponder + +const reactionsListForIssueResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_reaction)], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type ReactionsListForIssue = ( params: Params< @@ -16678,11 +25925,24 @@ export type ReactionsListForIssue = ( | Response<410, t_basic_error> > -export type ReactionsCreateForIssueResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForIssueResponder = { + with200: r.with200, + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReactionsCreateForIssueResponder = + typeof reactionsCreateForIssueResponder & KoaRuntimeResponder + +const reactionsCreateForIssueResponseValidator = responseValidationFactory( + [ + ["200", s_reaction], + ["201", s_reaction], + ["422", s_validation_error], + ], + undefined, +) export type ReactionsCreateForIssue = ( params: Params< @@ -16700,9 +25960,18 @@ export type ReactionsCreateForIssue = ( | Response<422, t_validation_error> > -export type ReactionsDeleteForIssueResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsDeleteForIssueResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReactionsDeleteForIssueResponder = + typeof reactionsDeleteForIssueResponder & KoaRuntimeResponder + +const reactionsDeleteForIssueResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ReactionsDeleteForIssue = ( params: Params, @@ -16710,11 +25979,24 @@ export type ReactionsDeleteForIssue = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type IssuesRemoveSubIssueResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesRemoveSubIssueResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesRemoveSubIssueResponder = typeof issuesRemoveSubIssueResponder & + KoaRuntimeResponder + +const issuesRemoveSubIssueResponseValidator = responseValidationFactory( + [ + ["200", s_issue], + ["400", s_scim_error], + ["404", s_basic_error], + ], + undefined, +) export type IssuesRemoveSubIssue = ( params: Params< @@ -16732,11 +26014,24 @@ export type IssuesRemoveSubIssue = ( | Response<404, t_basic_error> > -export type IssuesListSubIssuesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListSubIssuesResponder = { + with200: r.with200, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesListSubIssuesResponder = typeof issuesListSubIssuesResponder & + KoaRuntimeResponder + +const issuesListSubIssuesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_issue)], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type IssuesListSubIssues = ( params: Params< @@ -16754,13 +26049,28 @@ export type IssuesListSubIssues = ( | Response<410, t_basic_error> > -export type IssuesAddSubIssueResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesAddSubIssueResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesAddSubIssueResponder = typeof issuesAddSubIssueResponder & + KoaRuntimeResponder + +const issuesAddSubIssueResponseValidator = responseValidationFactory( + [ + ["201", s_issue], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesAddSubIssue = ( params: Params< @@ -16780,17 +26090,39 @@ export type IssuesAddSubIssue = ( | Response<422, t_validation_error> > -export type IssuesReprioritizeSubIssueResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const issuesReprioritizeSubIssueResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type IssuesReprioritizeSubIssueResponder = + typeof issuesReprioritizeSubIssueResponder & KoaRuntimeResponder + +const issuesReprioritizeSubIssueResponseValidator = responseValidationFactory( + [ + ["200", s_issue], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error_simple], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type IssuesReprioritizeSubIssue = ( params: Params< @@ -16817,11 +26149,24 @@ export type IssuesReprioritizeSubIssue = ( > > -export type IssuesListEventsForTimelineResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListEventsForTimelineResponder = { + with200: r.with200, + with404: r.with404, + with410: r.with410, + withStatus: r.withStatus, +} + +type IssuesListEventsForTimelineResponder = + typeof issuesListEventsForTimelineResponder & KoaRuntimeResponder + +const issuesListEventsForTimelineResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_timeline_issue_events)], + ["404", s_basic_error], + ["410", s_basic_error], + ], + undefined, +) export type IssuesListEventsForTimeline = ( params: Params< @@ -16839,9 +26184,18 @@ export type IssuesListEventsForTimeline = ( | Response<410, t_basic_error> > -export type ReposListDeployKeysResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListDeployKeysResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListDeployKeysResponder = typeof reposListDeployKeysResponder & + KoaRuntimeResponder + +const reposListDeployKeysResponseValidator = responseValidationFactory( + [["200", z.array(s_deploy_key)]], + undefined, +) export type ReposListDeployKeys = ( params: Params< @@ -16854,10 +26208,22 @@ export type ReposListDeployKeys = ( ctx: RouterContext, ) => Promise | Response<200, t_deploy_key[]>> -export type ReposCreateDeployKeyResponder = { - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateDeployKeyResponder = { + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateDeployKeyResponder = typeof reposCreateDeployKeyResponder & + KoaRuntimeResponder + +const reposCreateDeployKeyResponseValidator = responseValidationFactory( + [ + ["201", s_deploy_key], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateDeployKey = ( params: Params< @@ -16874,10 +26240,22 @@ export type ReposCreateDeployKey = ( | Response<422, t_validation_error> > -export type ReposGetDeployKeyResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetDeployKeyResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetDeployKeyResponder = typeof reposGetDeployKeyResponder & + KoaRuntimeResponder + +const reposGetDeployKeyResponseValidator = responseValidationFactory( + [ + ["200", s_deploy_key], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetDeployKey = ( params: Params, @@ -16889,9 +26267,18 @@ export type ReposGetDeployKey = ( | Response<404, t_basic_error> > -export type ReposDeleteDeployKeyResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteDeployKeyResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDeleteDeployKeyResponder = typeof reposDeleteDeployKeyResponder & + KoaRuntimeResponder + +const reposDeleteDeployKeyResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ReposDeleteDeployKey = ( params: Params, @@ -16899,10 +26286,22 @@ export type ReposDeleteDeployKey = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type IssuesListLabelsForRepoResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListLabelsForRepoResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesListLabelsForRepoResponder = + typeof issuesListLabelsForRepoResponder & KoaRuntimeResponder + +const issuesListLabelsForRepoResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_label)], + ["404", s_basic_error], + ], + undefined, +) export type IssuesListLabelsForRepo = ( params: Params< @@ -16919,11 +26318,24 @@ export type IssuesListLabelsForRepo = ( | Response<404, t_basic_error> > -export type IssuesCreateLabelResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesCreateLabelResponder = { + with201: r.with201, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesCreateLabelResponder = typeof issuesCreateLabelResponder & + KoaRuntimeResponder + +const issuesCreateLabelResponseValidator = responseValidationFactory( + [ + ["201", s_label], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesCreateLabel = ( params: Params< @@ -16941,10 +26353,22 @@ export type IssuesCreateLabel = ( | Response<422, t_validation_error> > -export type IssuesGetLabelResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesGetLabelResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesGetLabelResponder = typeof issuesGetLabelResponder & + KoaRuntimeResponder + +const issuesGetLabelResponseValidator = responseValidationFactory( + [ + ["200", s_label], + ["404", s_basic_error], + ], + undefined, +) export type IssuesGetLabel = ( params: Params, @@ -16956,9 +26380,18 @@ export type IssuesGetLabel = ( | Response<404, t_basic_error> > -export type IssuesUpdateLabelResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesUpdateLabelResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type IssuesUpdateLabelResponder = typeof issuesUpdateLabelResponder & + KoaRuntimeResponder + +const issuesUpdateLabelResponseValidator = responseValidationFactory( + [["200", s_label]], + undefined, +) export type IssuesUpdateLabel = ( params: Params< @@ -16971,9 +26404,18 @@ export type IssuesUpdateLabel = ( ctx: RouterContext, ) => Promise | Response<200, t_label>> -export type IssuesDeleteLabelResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesDeleteLabelResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type IssuesDeleteLabelResponder = typeof issuesDeleteLabelResponder & + KoaRuntimeResponder + +const issuesDeleteLabelResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type IssuesDeleteLabel = ( params: Params, @@ -16981,9 +26423,18 @@ export type IssuesDeleteLabel = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposListLanguagesResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListLanguagesResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListLanguagesResponder = typeof reposListLanguagesResponder & + KoaRuntimeResponder + +const reposListLanguagesResponseValidator = responseValidationFactory( + [["200", s_language]], + undefined, +) export type ReposListLanguages = ( params: Params, @@ -16991,10 +26442,22 @@ export type ReposListLanguages = ( ctx: RouterContext, ) => Promise | Response<200, t_language>> -export type LicensesGetForRepoResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const licensesGetForRepoResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type LicensesGetForRepoResponder = typeof licensesGetForRepoResponder & + KoaRuntimeResponder + +const licensesGetForRepoResponseValidator = responseValidationFactory( + [ + ["200", s_license_content], + ["404", s_basic_error], + ], + undefined, +) export type LicensesGetForRepo = ( params: Params< @@ -17011,11 +26474,24 @@ export type LicensesGetForRepo = ( | Response<404, t_basic_error> > -export type ReposMergeUpstreamResponder = { - with200(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposMergeUpstreamResponder = { + with200: r.with200, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposMergeUpstreamResponder = typeof reposMergeUpstreamResponder & + KoaRuntimeResponder + +const reposMergeUpstreamResponseValidator = responseValidationFactory( + [ + ["200", s_merged_upstream], + ["409", z.undefined()], + ["422", z.undefined()], + ], + undefined, +) export type ReposMergeUpstream = ( params: Params< @@ -17033,14 +26509,29 @@ export type ReposMergeUpstream = ( | Response<422, void> > -export type ReposMergeResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposMergeResponder = { + with201: r.with201, + with204: r.with204, + with403: r.with403, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposMergeResponder = typeof reposMergeResponder & KoaRuntimeResponder + +const reposMergeResponseValidator = responseValidationFactory( + [ + ["201", s_commit], + ["204", z.undefined()], + ["403", s_basic_error], + ["404", z.undefined()], + ["409", z.undefined()], + ["422", s_validation_error], + ], + undefined, +) export type ReposMerge = ( params: Params, @@ -17056,10 +26547,22 @@ export type ReposMerge = ( | Response<422, t_validation_error> > -export type IssuesListMilestonesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListMilestonesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesListMilestonesResponder = typeof issuesListMilestonesResponder & + KoaRuntimeResponder + +const issuesListMilestonesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_milestone)], + ["404", s_basic_error], + ], + undefined, +) export type IssuesListMilestones = ( params: Params< @@ -17076,11 +26579,24 @@ export type IssuesListMilestones = ( | Response<404, t_basic_error> > -export type IssuesCreateMilestoneResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesCreateMilestoneResponder = { + with201: r.with201, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type IssuesCreateMilestoneResponder = typeof issuesCreateMilestoneResponder & + KoaRuntimeResponder + +const issuesCreateMilestoneResponseValidator = responseValidationFactory( + [ + ["201", s_milestone], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type IssuesCreateMilestone = ( params: Params< @@ -17098,10 +26614,22 @@ export type IssuesCreateMilestone = ( | Response<422, t_validation_error> > -export type IssuesGetMilestoneResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesGetMilestoneResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesGetMilestoneResponder = typeof issuesGetMilestoneResponder & + KoaRuntimeResponder + +const issuesGetMilestoneResponseValidator = responseValidationFactory( + [ + ["200", s_milestone], + ["404", s_basic_error], + ], + undefined, +) export type IssuesGetMilestone = ( params: Params, @@ -17113,9 +26641,18 @@ export type IssuesGetMilestone = ( | Response<404, t_basic_error> > -export type IssuesUpdateMilestoneResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesUpdateMilestoneResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type IssuesUpdateMilestoneResponder = typeof issuesUpdateMilestoneResponder & + KoaRuntimeResponder + +const issuesUpdateMilestoneResponseValidator = responseValidationFactory( + [["200", s_milestone]], + undefined, +) export type IssuesUpdateMilestone = ( params: Params< @@ -17128,10 +26665,22 @@ export type IssuesUpdateMilestone = ( ctx: RouterContext, ) => Promise | Response<200, t_milestone>> -export type IssuesDeleteMilestoneResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesDeleteMilestoneResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesDeleteMilestoneResponder = typeof issuesDeleteMilestoneResponder & + KoaRuntimeResponder + +const issuesDeleteMilestoneResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type IssuesDeleteMilestone = ( params: Params, @@ -17143,9 +26692,18 @@ export type IssuesDeleteMilestone = ( | Response<404, t_basic_error> > -export type IssuesListLabelsForMilestoneResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListLabelsForMilestoneResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type IssuesListLabelsForMilestoneResponder = + typeof issuesListLabelsForMilestoneResponder & KoaRuntimeResponder + +const issuesListLabelsForMilestoneResponseValidator = responseValidationFactory( + [["200", z.array(s_label)]], + undefined, +) export type IssuesListLabelsForMilestone = ( params: Params< @@ -17158,9 +26716,17 @@ export type IssuesListLabelsForMilestone = ( ctx: RouterContext, ) => Promise | Response<200, t_label[]>> -export type ActivityListRepoNotificationsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListRepoNotificationsForAuthenticatedUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListRepoNotificationsForAuthenticatedUserResponder = + typeof activityListRepoNotificationsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const activityListRepoNotificationsForAuthenticatedUserResponseValidator = + responseValidationFactory([["200", z.array(s_thread)]], undefined) export type ActivityListRepoNotificationsForAuthenticatedUser = ( params: Params< @@ -17173,13 +26739,32 @@ export type ActivityListRepoNotificationsForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_thread[]>> -export type ActivityMarkRepoNotificationsAsReadResponder = { - with202(): KoaRuntimeResponse<{ +const activityMarkRepoNotificationsAsReadResponder = { + with202: r.with202<{ message?: string url?: string - }> - with205(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with205: r.with205, + withStatus: r.withStatus, +} + +type ActivityMarkRepoNotificationsAsReadResponder = + typeof activityMarkRepoNotificationsAsReadResponder & KoaRuntimeResponder + +const activityMarkRepoNotificationsAsReadResponseValidator = + responseValidationFactory( + [ + [ + "202", + z.object({ + message: z.string().optional(), + url: z.string().optional(), + }), + ], + ["205", z.undefined()], + ], + undefined, + ) export type ActivityMarkRepoNotificationsAsRead = ( params: Params< @@ -17202,10 +26787,22 @@ export type ActivityMarkRepoNotificationsAsRead = ( | Response<205, void> > -export type ReposGetPagesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetPagesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetPagesResponder = typeof reposGetPagesResponder & + KoaRuntimeResponder + +const reposGetPagesResponseValidator = responseValidationFactory( + [ + ["200", s_page], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetPages = ( params: Params, @@ -17217,11 +26814,24 @@ export type ReposGetPages = ( | Response<404, t_basic_error> > -export type ReposCreatePagesSiteResponder = { - with201(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreatePagesSiteResponder = { + with201: r.with201, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreatePagesSiteResponder = typeof reposCreatePagesSiteResponder & + KoaRuntimeResponder + +const reposCreatePagesSiteResponseValidator = responseValidationFactory( + [ + ["201", s_page], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreatePagesSite = ( params: Params< @@ -17239,12 +26849,27 @@ export type ReposCreatePagesSite = ( | Response<422, t_validation_error> > -export type ReposUpdateInformationAboutPagesSiteResponder = { - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateInformationAboutPagesSiteResponder = { + with204: r.with204, + with400: r.with400, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposUpdateInformationAboutPagesSiteResponder = + typeof reposUpdateInformationAboutPagesSiteResponder & KoaRuntimeResponder + +const reposUpdateInformationAboutPagesSiteResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["400", s_scim_error], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type ReposUpdateInformationAboutPagesSite = ( params: Params< @@ -17263,12 +26888,26 @@ export type ReposUpdateInformationAboutPagesSite = ( | Response<422, t_validation_error> > -export type ReposDeletePagesSiteResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeletePagesSiteResponder = { + with204: r.with204, + with404: r.with404, + with409: r.with409, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposDeletePagesSiteResponder = typeof reposDeletePagesSiteResponder & + KoaRuntimeResponder + +const reposDeletePagesSiteResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["409", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposDeletePagesSite = ( params: Params, @@ -17282,9 +26921,18 @@ export type ReposDeletePagesSite = ( | Response<422, t_validation_error> > -export type ReposListPagesBuildsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListPagesBuildsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListPagesBuildsResponder = typeof reposListPagesBuildsResponder & + KoaRuntimeResponder + +const reposListPagesBuildsResponseValidator = responseValidationFactory( + [["200", z.array(s_page_build)]], + undefined, +) export type ReposListPagesBuilds = ( params: Params< @@ -17297,9 +26945,18 @@ export type ReposListPagesBuilds = ( ctx: RouterContext, ) => Promise | Response<200, t_page_build[]>> -export type ReposRequestPagesBuildResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposRequestPagesBuildResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ReposRequestPagesBuildResponder = typeof reposRequestPagesBuildResponder & + KoaRuntimeResponder + +const reposRequestPagesBuildResponseValidator = responseValidationFactory( + [["201", s_page_build_status]], + undefined, +) export type ReposRequestPagesBuild = ( params: Params, @@ -17307,9 +26964,18 @@ export type ReposRequestPagesBuild = ( ctx: RouterContext, ) => Promise | Response<201, t_page_build_status>> -export type ReposGetLatestPagesBuildResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetLatestPagesBuildResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetLatestPagesBuildResponder = + typeof reposGetLatestPagesBuildResponder & KoaRuntimeResponder + +const reposGetLatestPagesBuildResponseValidator = responseValidationFactory( + [["200", s_page_build]], + undefined, +) export type ReposGetLatestPagesBuild = ( params: Params, @@ -17317,9 +26983,18 @@ export type ReposGetLatestPagesBuild = ( ctx: RouterContext, ) => Promise | Response<200, t_page_build>> -export type ReposGetPagesBuildResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetPagesBuildResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetPagesBuildResponder = typeof reposGetPagesBuildResponder & + KoaRuntimeResponder + +const reposGetPagesBuildResponseValidator = responseValidationFactory( + [["200", s_page_build]], + undefined, +) export type ReposGetPagesBuild = ( params: Params, @@ -17327,12 +27002,26 @@ export type ReposGetPagesBuild = ( ctx: RouterContext, ) => Promise | Response<200, t_page_build>> -export type ReposCreatePagesDeploymentResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreatePagesDeploymentResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreatePagesDeploymentResponder = + typeof reposCreatePagesDeploymentResponder & KoaRuntimeResponder + +const reposCreatePagesDeploymentResponseValidator = responseValidationFactory( + [ + ["200", s_page_deployment], + ["400", s_scim_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreatePagesDeployment = ( params: Params< @@ -17351,10 +27040,22 @@ export type ReposCreatePagesDeployment = ( | Response<422, t_validation_error> > -export type ReposGetPagesDeploymentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetPagesDeploymentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetPagesDeploymentResponder = + typeof reposGetPagesDeploymentResponder & KoaRuntimeResponder + +const reposGetPagesDeploymentResponseValidator = responseValidationFactory( + [ + ["200", s_pages_deployment_status], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetPagesDeployment = ( params: Params, @@ -17366,10 +27067,22 @@ export type ReposGetPagesDeployment = ( | Response<404, t_basic_error> > -export type ReposCancelPagesDeploymentResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCancelPagesDeploymentResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposCancelPagesDeploymentResponder = + typeof reposCancelPagesDeploymentResponder & KoaRuntimeResponder + +const reposCancelPagesDeploymentResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type ReposCancelPagesDeployment = ( params: Params, @@ -17381,13 +27094,28 @@ export type ReposCancelPagesDeployment = ( | Response<404, t_basic_error> > -export type ReposGetPagesHealthCheckResponder = { - with200(): KoaRuntimeResponse - with202(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetPagesHealthCheckResponder = { + with200: r.with200, + with202: r.with202, + with400: r.with400, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposGetPagesHealthCheckResponder = + typeof reposGetPagesHealthCheckResponder & KoaRuntimeResponder + +const reposGetPagesHealthCheckResponseValidator = responseValidationFactory( + [ + ["200", s_pages_health_check], + ["202", s_empty_object], + ["400", z.undefined()], + ["404", s_basic_error], + ["422", z.undefined()], + ], + undefined, +) export type ReposGetPagesHealthCheck = ( params: Params, @@ -17402,12 +27130,25 @@ export type ReposGetPagesHealthCheck = ( | Response<422, void> > -export type ReposCheckPrivateVulnerabilityReportingResponder = { - with200(): KoaRuntimeResponse<{ +const reposCheckPrivateVulnerabilityReportingResponder = { + with200: r.with200<{ enabled: boolean - }> - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCheckPrivateVulnerabilityReportingResponder = + typeof reposCheckPrivateVulnerabilityReportingResponder & KoaRuntimeResponder + +const reposCheckPrivateVulnerabilityReportingResponseValidator = + responseValidationFactory( + [ + ["200", z.object({ enabled: PermissiveBoolean })], + ["422", s_scim_error], + ], + undefined, + ) export type ReposCheckPrivateVulnerabilityReporting = ( params: Params< @@ -17429,10 +27170,23 @@ export type ReposCheckPrivateVulnerabilityReporting = ( | Response<422, t_scim_error> > -export type ReposEnablePrivateVulnerabilityReportingResponder = { - with204(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposEnablePrivateVulnerabilityReportingResponder = { + with204: r.with204, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposEnablePrivateVulnerabilityReportingResponder = + typeof reposEnablePrivateVulnerabilityReportingResponder & KoaRuntimeResponder + +const reposEnablePrivateVulnerabilityReportingResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["422", s_scim_error], + ], + undefined, + ) export type ReposEnablePrivateVulnerabilityReporting = ( params: Params< @@ -17449,10 +27203,24 @@ export type ReposEnablePrivateVulnerabilityReporting = ( | Response<422, t_scim_error> > -export type ReposDisablePrivateVulnerabilityReportingResponder = { - with204(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDisablePrivateVulnerabilityReportingResponder = { + with204: r.with204, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposDisablePrivateVulnerabilityReportingResponder = + typeof reposDisablePrivateVulnerabilityReportingResponder & + KoaRuntimeResponder + +const reposDisablePrivateVulnerabilityReportingResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["422", s_scim_error], + ], + undefined, + ) export type ReposDisablePrivateVulnerabilityReporting = ( params: Params< @@ -17469,14 +27237,30 @@ export type ReposDisablePrivateVulnerabilityReporting = ( | Response<422, t_scim_error> > -export type ProjectsListForRepoResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsListForRepoResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsListForRepoResponder = typeof projectsListForRepoResponder & + KoaRuntimeResponder + +const projectsListForRepoResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_project)], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ProjectsListForRepo = ( params: Params< @@ -17497,14 +27281,30 @@ export type ProjectsListForRepo = ( | Response<422, t_validation_error_simple> > -export type ProjectsCreateForRepoResponder = { - with201(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with410(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsCreateForRepoResponder = { + with201: r.with201, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with410: r.with410, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsCreateForRepoResponder = typeof projectsCreateForRepoResponder & + KoaRuntimeResponder + +const projectsCreateForRepoResponseValidator = responseValidationFactory( + [ + ["201", s_project], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["410", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ProjectsCreateForRepo = ( params: Params< @@ -17525,11 +27325,25 @@ export type ProjectsCreateForRepo = ( | Response<422, t_validation_error_simple> > -export type ReposGetCustomPropertiesValuesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetCustomPropertiesValuesResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetCustomPropertiesValuesResponder = + typeof reposGetCustomPropertiesValuesResponder & KoaRuntimeResponder + +const reposGetCustomPropertiesValuesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_custom_property_value)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type ReposGetCustomPropertiesValues = ( params: Params, @@ -17542,12 +27356,28 @@ export type ReposGetCustomPropertiesValues = ( | Response<404, t_basic_error> > -export type ReposCreateOrUpdateCustomPropertiesValuesResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateOrUpdateCustomPropertiesValuesResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateOrUpdateCustomPropertiesValuesResponder = + typeof reposCreateOrUpdateCustomPropertiesValuesResponder & + KoaRuntimeResponder + +const reposCreateOrUpdateCustomPropertiesValuesResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type ReposCreateOrUpdateCustomPropertiesValues = ( params: Params< @@ -17566,11 +27396,23 @@ export type ReposCreateOrUpdateCustomPropertiesValues = ( | Response<422, t_validation_error> > -export type PullsListResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsListResponder = { + with200: r.with200, + with304: r.with304, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsListResponder = typeof pullsListResponder & KoaRuntimeResponder + +const pullsListResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_pull_request_simple)], + ["304", z.undefined()], + ["422", s_validation_error], + ], + undefined, +) export type PullsList = ( params: Params, @@ -17583,11 +27425,23 @@ export type PullsList = ( | Response<422, t_validation_error> > -export type PullsCreateResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsCreateResponder = { + with201: r.with201, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsCreateResponder = typeof pullsCreateResponder & KoaRuntimeResponder + +const pullsCreateResponseValidator = responseValidationFactory( + [ + ["201", s_pull_request], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type PullsCreate = ( params: Params, @@ -17600,9 +27454,19 @@ export type PullsCreate = ( | Response<422, t_validation_error> > -export type PullsListReviewCommentsForRepoResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsListReviewCommentsForRepoResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PullsListReviewCommentsForRepoResponder = + typeof pullsListReviewCommentsForRepoResponder & KoaRuntimeResponder + +const pullsListReviewCommentsForRepoResponseValidator = + responseValidationFactory( + [["200", z.array(s_pull_request_review_comment)]], + undefined, + ) export type PullsListReviewCommentsForRepo = ( params: Params< @@ -17617,10 +27481,22 @@ export type PullsListReviewCommentsForRepo = ( KoaRuntimeResponse | Response<200, t_pull_request_review_comment[]> > -export type PullsGetReviewCommentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsGetReviewCommentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type PullsGetReviewCommentResponder = typeof pullsGetReviewCommentResponder & + KoaRuntimeResponder + +const pullsGetReviewCommentResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request_review_comment], + ["404", s_basic_error], + ], + undefined, +) export type PullsGetReviewComment = ( params: Params, @@ -17632,9 +27508,18 @@ export type PullsGetReviewComment = ( | Response<404, t_basic_error> > -export type PullsUpdateReviewCommentResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsUpdateReviewCommentResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PullsUpdateReviewCommentResponder = + typeof pullsUpdateReviewCommentResponder & KoaRuntimeResponder + +const pullsUpdateReviewCommentResponseValidator = responseValidationFactory( + [["200", s_pull_request_review_comment]], + undefined, +) export type PullsUpdateReviewComment = ( params: Params< @@ -17649,10 +27534,22 @@ export type PullsUpdateReviewComment = ( KoaRuntimeResponse | Response<200, t_pull_request_review_comment> > -export type PullsDeleteReviewCommentResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsDeleteReviewCommentResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type PullsDeleteReviewCommentResponder = + typeof pullsDeleteReviewCommentResponder & KoaRuntimeResponder + +const pullsDeleteReviewCommentResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type PullsDeleteReviewComment = ( params: Params, @@ -17664,10 +27561,23 @@ export type PullsDeleteReviewComment = ( | Response<404, t_basic_error> > -export type ReactionsListForPullRequestReviewCommentResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForPullRequestReviewCommentResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReactionsListForPullRequestReviewCommentResponder = + typeof reactionsListForPullRequestReviewCommentResponder & KoaRuntimeResponder + +const reactionsListForPullRequestReviewCommentResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_reaction)], + ["404", s_basic_error], + ], + undefined, + ) export type ReactionsListForPullRequestReviewComment = ( params: Params< @@ -17684,11 +27594,26 @@ export type ReactionsListForPullRequestReviewComment = ( | Response<404, t_basic_error> > -export type ReactionsCreateForPullRequestReviewCommentResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForPullRequestReviewCommentResponder = { + with200: r.with200, + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReactionsCreateForPullRequestReviewCommentResponder = + typeof reactionsCreateForPullRequestReviewCommentResponder & + KoaRuntimeResponder + +const reactionsCreateForPullRequestReviewCommentResponseValidator = + responseValidationFactory( + [ + ["200", s_reaction], + ["201", s_reaction], + ["422", s_validation_error], + ], + undefined, + ) export type ReactionsCreateForPullRequestReviewComment = ( params: Params< @@ -17706,9 +27631,16 @@ export type ReactionsCreateForPullRequestReviewComment = ( | Response<422, t_validation_error> > -export type ReactionsDeleteForPullRequestCommentResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsDeleteForPullRequestCommentResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReactionsDeleteForPullRequestCommentResponder = + typeof reactionsDeleteForPullRequestCommentResponder & KoaRuntimeResponder + +const reactionsDeleteForPullRequestCommentResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReactionsDeleteForPullRequestComment = ( params: Params< @@ -17721,18 +27653,40 @@ export type ReactionsDeleteForPullRequestComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type PullsGetResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with406(): KoaRuntimeResponse - with500(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const pullsGetResponder = { + with200: r.with200, + with304: r.with304, + with404: r.with404, + with406: r.with406, + with500: r.with500, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type PullsGetResponder = typeof pullsGetResponder & KoaRuntimeResponder + +const pullsGetResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request], + ["304", z.undefined()], + ["404", s_basic_error], + ["406", s_basic_error], + ["500", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type PullsGet = ( params: Params, @@ -17755,11 +27709,23 @@ export type PullsGet = ( > > -export type PullsUpdateResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsUpdateResponder = { + with200: r.with200, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsUpdateResponder = typeof pullsUpdateResponder & KoaRuntimeResponder + +const pullsUpdateResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type PullsUpdate = ( params: Params< @@ -17777,18 +27743,43 @@ export type PullsUpdate = ( | Response<422, t_validation_error> > -export type CodespacesCreateWithPrForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with202(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codespacesCreateWithPrForAuthenticatedUserResponder = { + with201: r.with201, + with202: r.with202, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodespacesCreateWithPrForAuthenticatedUserResponder = + typeof codespacesCreateWithPrForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesCreateWithPrForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_codespace], + ["202", s_codespace], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodespacesCreateWithPrForAuthenticatedUser = ( params: Params< @@ -17816,9 +27807,18 @@ export type CodespacesCreateWithPrForAuthenticatedUser = ( > > -export type PullsListReviewCommentsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsListReviewCommentsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PullsListReviewCommentsResponder = + typeof pullsListReviewCommentsResponder & KoaRuntimeResponder + +const pullsListReviewCommentsResponseValidator = responseValidationFactory( + [["200", z.array(s_pull_request_review_comment)]], + undefined, +) export type PullsListReviewComments = ( params: Params< @@ -17833,11 +27833,24 @@ export type PullsListReviewComments = ( KoaRuntimeResponse | Response<200, t_pull_request_review_comment[]> > -export type PullsCreateReviewCommentResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsCreateReviewCommentResponder = { + with201: r.with201, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsCreateReviewCommentResponder = + typeof pullsCreateReviewCommentResponder & KoaRuntimeResponder + +const pullsCreateReviewCommentResponseValidator = responseValidationFactory( + [ + ["201", s_pull_request_review_comment], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type PullsCreateReviewComment = ( params: Params< @@ -17855,10 +27868,23 @@ export type PullsCreateReviewComment = ( | Response<422, t_validation_error> > -export type PullsCreateReplyForReviewCommentResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsCreateReplyForReviewCommentResponder = { + with201: r.with201, + with404: r.with404, + withStatus: r.withStatus, +} + +type PullsCreateReplyForReviewCommentResponder = + typeof pullsCreateReplyForReviewCommentResponder & KoaRuntimeResponder + +const pullsCreateReplyForReviewCommentResponseValidator = + responseValidationFactory( + [ + ["201", s_pull_request_review_comment], + ["404", s_basic_error], + ], + undefined, + ) export type PullsCreateReplyForReviewComment = ( params: Params< @@ -17875,9 +27901,18 @@ export type PullsCreateReplyForReviewComment = ( | Response<404, t_basic_error> > -export type PullsListCommitsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsListCommitsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PullsListCommitsResponder = typeof pullsListCommitsResponder & + KoaRuntimeResponder + +const pullsListCommitsResponseValidator = responseValidationFactory( + [["200", z.array(s_commit)]], + undefined, +) export type PullsListCommits = ( params: Params< @@ -17890,16 +27925,37 @@ export type PullsListCommits = ( ctx: RouterContext, ) => Promise | Response<200, t_commit[]>> -export type PullsListFilesResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const pullsListFilesResponder = { + with200: r.with200, + with422: r.with422, + with500: r.with500, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type PullsListFilesResponder = typeof pullsListFilesResponder & + KoaRuntimeResponder + +const pullsListFilesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_diff_entry)], + ["422", s_validation_error], + ["500", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type PullsListFiles = ( params: Params< @@ -17925,10 +27981,22 @@ export type PullsListFiles = ( > > -export type PullsCheckIfMergedResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsCheckIfMergedResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type PullsCheckIfMergedResponder = typeof pullsCheckIfMergedResponder & + KoaRuntimeResponder + +const pullsCheckIfMergedResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, +) export type PullsCheckIfMerged = ( params: Params, @@ -17938,20 +28006,47 @@ export type PullsCheckIfMerged = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -export type PullsMergeResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with405(): KoaRuntimeResponse<{ +const pullsMergeResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with405: r.with405<{ documentation_url?: string message?: string - }> - with409(): KoaRuntimeResponse<{ + }>, + with409: r.with409<{ documentation_url?: string message?: string - }> - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsMergeResponder = typeof pullsMergeResponder & KoaRuntimeResponder + +const pullsMergeResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request_merge_result], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "405", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + [ + "409", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ["422", s_validation_error], + ], + undefined, +) export type PullsMerge = ( params: Params< @@ -17984,9 +28079,18 @@ export type PullsMerge = ( | Response<422, t_validation_error> > -export type PullsListRequestedReviewersResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsListRequestedReviewersResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PullsListRequestedReviewersResponder = + typeof pullsListRequestedReviewersResponder & KoaRuntimeResponder + +const pullsListRequestedReviewersResponseValidator = responseValidationFactory( + [["200", s_pull_request_review_request]], + undefined, +) export type PullsListRequestedReviewers = ( params: Params, @@ -17996,11 +28100,24 @@ export type PullsListRequestedReviewers = ( KoaRuntimeResponse | Response<200, t_pull_request_review_request> > -export type PullsRequestReviewersResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsRequestReviewersResponder = { + with201: r.with201, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsRequestReviewersResponder = typeof pullsRequestReviewersResponder & + KoaRuntimeResponder + +const pullsRequestReviewersResponseValidator = responseValidationFactory( + [ + ["201", s_pull_request_simple], + ["403", s_basic_error], + ["422", z.undefined()], + ], + undefined, +) export type PullsRequestReviewers = ( params: Params< @@ -18018,10 +28135,23 @@ export type PullsRequestReviewers = ( | Response<422, void> > -export type PullsRemoveRequestedReviewersResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsRemoveRequestedReviewersResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsRemoveRequestedReviewersResponder = + typeof pullsRemoveRequestedReviewersResponder & KoaRuntimeResponder + +const pullsRemoveRequestedReviewersResponseValidator = + responseValidationFactory( + [ + ["200", s_pull_request_simple], + ["422", s_validation_error], + ], + undefined, + ) export type PullsRemoveRequestedReviewers = ( params: Params< @@ -18038,9 +28168,18 @@ export type PullsRemoveRequestedReviewers = ( | Response<422, t_validation_error> > -export type PullsListReviewsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsListReviewsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PullsListReviewsResponder = typeof pullsListReviewsResponder & + KoaRuntimeResponder + +const pullsListReviewsResponseValidator = responseValidationFactory( + [["200", z.array(s_pull_request_review)]], + undefined, +) export type PullsListReviews = ( params: Params< @@ -18055,11 +28194,24 @@ export type PullsListReviews = ( KoaRuntimeResponse | Response<200, t_pull_request_review[]> > -export type PullsCreateReviewResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsCreateReviewResponder = { + with200: r.with200, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsCreateReviewResponder = typeof pullsCreateReviewResponder & + KoaRuntimeResponder + +const pullsCreateReviewResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request_review], + ["403", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type PullsCreateReview = ( params: Params< @@ -18077,10 +28229,22 @@ export type PullsCreateReview = ( | Response<422, t_validation_error_simple> > -export type PullsGetReviewResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsGetReviewResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type PullsGetReviewResponder = typeof pullsGetReviewResponder & + KoaRuntimeResponder + +const pullsGetReviewResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request_review], + ["404", s_basic_error], + ], + undefined, +) export type PullsGetReview = ( params: Params, @@ -18092,10 +28256,22 @@ export type PullsGetReview = ( | Response<404, t_basic_error> > -export type PullsUpdateReviewResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsUpdateReviewResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsUpdateReviewResponder = typeof pullsUpdateReviewResponder & + KoaRuntimeResponder + +const pullsUpdateReviewResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request_review], + ["422", s_validation_error_simple], + ], + undefined, +) export type PullsUpdateReview = ( params: Params< @@ -18112,11 +28288,24 @@ export type PullsUpdateReview = ( | Response<422, t_validation_error_simple> > -export type PullsDeletePendingReviewResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsDeletePendingReviewResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsDeletePendingReviewResponder = + typeof pullsDeletePendingReviewResponder & KoaRuntimeResponder + +const pullsDeletePendingReviewResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request_review], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type PullsDeletePendingReview = ( params: Params, @@ -18129,10 +28318,22 @@ export type PullsDeletePendingReview = ( | Response<422, t_validation_error_simple> > -export type PullsListCommentsForReviewResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsListCommentsForReviewResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type PullsListCommentsForReviewResponder = + typeof pullsListCommentsForReviewResponder & KoaRuntimeResponder + +const pullsListCommentsForReviewResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_review_comment)], + ["404", s_basic_error], + ], + undefined, +) export type PullsListCommentsForReview = ( params: Params< @@ -18149,11 +28350,24 @@ export type PullsListCommentsForReview = ( | Response<404, t_basic_error> > -export type PullsDismissReviewResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsDismissReviewResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsDismissReviewResponder = typeof pullsDismissReviewResponder & + KoaRuntimeResponder + +const pullsDismissReviewResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request_review], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type PullsDismissReview = ( params: Params< @@ -18171,12 +28385,26 @@ export type PullsDismissReview = ( | Response<422, t_validation_error_simple> > -export type PullsSubmitReviewResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const pullsSubmitReviewResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsSubmitReviewResponder = typeof pullsSubmitReviewResponder & + KoaRuntimeResponder + +const pullsSubmitReviewResponseValidator = responseValidationFactory( + [ + ["200", s_pull_request_review], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type PullsSubmitReview = ( params: Params< @@ -18195,14 +28423,30 @@ export type PullsSubmitReview = ( | Response<422, t_validation_error_simple> > -export type PullsUpdateBranchResponder = { - with202(): KoaRuntimeResponse<{ +const pullsUpdateBranchResponder = { + with202: r.with202<{ message?: string url?: string - }> - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type PullsUpdateBranchResponder = typeof pullsUpdateBranchResponder & + KoaRuntimeResponder + +const pullsUpdateBranchResponseValidator = responseValidationFactory( + [ + [ + "202", + z.object({ message: z.string().optional(), url: z.string().optional() }), + ], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type PullsUpdateBranch = ( params: Params< @@ -18226,12 +28470,26 @@ export type PullsUpdateBranch = ( | Response<422, t_validation_error> > -export type ReposGetReadmeResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetReadmeResponder = { + with200: r.with200, + with304: r.with304, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposGetReadmeResponder = typeof reposGetReadmeResponder & + KoaRuntimeResponder + +const reposGetReadmeResponseValidator = responseValidationFactory( + [ + ["200", s_content_file], + ["304", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposGetReadme = ( params: Params< @@ -18250,11 +28508,24 @@ export type ReposGetReadme = ( | Response<422, t_validation_error> > -export type ReposGetReadmeInDirectoryResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetReadmeInDirectoryResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposGetReadmeInDirectoryResponder = + typeof reposGetReadmeInDirectoryResponder & KoaRuntimeResponder + +const reposGetReadmeInDirectoryResponseValidator = responseValidationFactory( + [ + ["200", s_content_file], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposGetReadmeInDirectory = ( params: Params< @@ -18272,10 +28543,22 @@ export type ReposGetReadmeInDirectory = ( | Response<422, t_validation_error> > -export type ReposListReleasesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListReleasesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListReleasesResponder = typeof reposListReleasesResponder & + KoaRuntimeResponder + +const reposListReleasesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_release)], + ["404", s_basic_error], + ], + undefined, +) export type ReposListReleases = ( params: Params< @@ -18292,11 +28575,24 @@ export type ReposListReleases = ( | Response<404, t_basic_error> > -export type ReposCreateReleaseResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateReleaseResponder = { + with201: r.with201, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateReleaseResponder = typeof reposCreateReleaseResponder & + KoaRuntimeResponder + +const reposCreateReleaseResponseValidator = responseValidationFactory( + [ + ["201", s_release], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type ReposCreateRelease = ( params: Params< @@ -18314,11 +28610,24 @@ export type ReposCreateRelease = ( | Response<422, t_validation_error> > -export type ReposGetReleaseAssetResponder = { - with200(): KoaRuntimeResponse - with302(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetReleaseAssetResponder = { + with200: r.with200, + with302: r.with302, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetReleaseAssetResponder = typeof reposGetReleaseAssetResponder & + KoaRuntimeResponder + +const reposGetReleaseAssetResponseValidator = responseValidationFactory( + [ + ["200", s_release_asset], + ["302", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetReleaseAsset = ( params: Params, @@ -18331,9 +28640,18 @@ export type ReposGetReleaseAsset = ( | Response<404, t_basic_error> > -export type ReposUpdateReleaseAssetResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateReleaseAssetResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposUpdateReleaseAssetResponder = + typeof reposUpdateReleaseAssetResponder & KoaRuntimeResponder + +const reposUpdateReleaseAssetResponseValidator = responseValidationFactory( + [["200", s_release_asset]], + undefined, +) export type ReposUpdateReleaseAsset = ( params: Params< @@ -18346,9 +28664,18 @@ export type ReposUpdateReleaseAsset = ( ctx: RouterContext, ) => Promise | Response<200, t_release_asset>> -export type ReposDeleteReleaseAssetResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteReleaseAssetResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDeleteReleaseAssetResponder = + typeof reposDeleteReleaseAssetResponder & KoaRuntimeResponder + +const reposDeleteReleaseAssetResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ReposDeleteReleaseAsset = ( params: Params, @@ -18356,10 +28683,22 @@ export type ReposDeleteReleaseAsset = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposGenerateReleaseNotesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGenerateReleaseNotesResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGenerateReleaseNotesResponder = + typeof reposGenerateReleaseNotesResponder & KoaRuntimeResponder + +const reposGenerateReleaseNotesResponseValidator = responseValidationFactory( + [ + ["200", s_release_notes_content], + ["404", s_basic_error], + ], + undefined, +) export type ReposGenerateReleaseNotes = ( params: Params< @@ -18376,9 +28715,18 @@ export type ReposGenerateReleaseNotes = ( | Response<404, t_basic_error> > -export type ReposGetLatestReleaseResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetLatestReleaseResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetLatestReleaseResponder = typeof reposGetLatestReleaseResponder & + KoaRuntimeResponder + +const reposGetLatestReleaseResponseValidator = responseValidationFactory( + [["200", s_release]], + undefined, +) export type ReposGetLatestRelease = ( params: Params, @@ -18386,10 +28734,22 @@ export type ReposGetLatestRelease = ( ctx: RouterContext, ) => Promise | Response<200, t_release>> -export type ReposGetReleaseByTagResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetReleaseByTagResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetReleaseByTagResponder = typeof reposGetReleaseByTagResponder & + KoaRuntimeResponder + +const reposGetReleaseByTagResponseValidator = responseValidationFactory( + [ + ["200", s_release], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetReleaseByTag = ( params: Params, @@ -18401,10 +28761,22 @@ export type ReposGetReleaseByTag = ( | Response<404, t_basic_error> > -export type ReposGetReleaseResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetReleaseResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type ReposGetReleaseResponder = typeof reposGetReleaseResponder & + KoaRuntimeResponder + +const reposGetReleaseResponseValidator = responseValidationFactory( + [ + ["200", s_release], + ["401", z.undefined()], + ], + undefined, +) export type ReposGetRelease = ( params: Params, @@ -18414,10 +28786,22 @@ export type ReposGetRelease = ( KoaRuntimeResponse | Response<200, t_release> | Response<401, void> > -export type ReposUpdateReleaseResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateReleaseResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposUpdateReleaseResponder = typeof reposUpdateReleaseResponder & + KoaRuntimeResponder + +const reposUpdateReleaseResponseValidator = responseValidationFactory( + [ + ["200", s_release], + ["404", s_basic_error], + ], + undefined, +) export type ReposUpdateRelease = ( params: Params< @@ -18434,9 +28818,18 @@ export type ReposUpdateRelease = ( | Response<404, t_basic_error> > -export type ReposDeleteReleaseResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteReleaseResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDeleteReleaseResponder = typeof reposDeleteReleaseResponder & + KoaRuntimeResponder + +const reposDeleteReleaseResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ReposDeleteRelease = ( params: Params, @@ -18444,9 +28837,18 @@ export type ReposDeleteRelease = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposListReleaseAssetsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListReleaseAssetsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListReleaseAssetsResponder = typeof reposListReleaseAssetsResponder & + KoaRuntimeResponder + +const reposListReleaseAssetsResponseValidator = responseValidationFactory( + [["200", z.array(s_release_asset)]], + undefined, +) export type ReposListReleaseAssets = ( params: Params< @@ -18459,10 +28861,22 @@ export type ReposListReleaseAssets = ( ctx: RouterContext, ) => Promise | Response<200, t_release_asset[]>> -export type ReposUploadReleaseAssetResponder = { - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUploadReleaseAssetResponder = { + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposUploadReleaseAssetResponder = + typeof reposUploadReleaseAssetResponder & KoaRuntimeResponder + +const reposUploadReleaseAssetResponseValidator = responseValidationFactory( + [ + ["201", s_release_asset], + ["422", z.undefined()], + ], + undefined, +) export type ReposUploadReleaseAsset = ( params: Params< @@ -18479,10 +28893,22 @@ export type ReposUploadReleaseAsset = ( | Response<422, void> > -export type ReactionsListForReleaseResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForReleaseResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReactionsListForReleaseResponder = + typeof reactionsListForReleaseResponder & KoaRuntimeResponder + +const reactionsListForReleaseResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_reaction)], + ["404", s_basic_error], + ], + undefined, +) export type ReactionsListForRelease = ( params: Params< @@ -18499,11 +28925,24 @@ export type ReactionsListForRelease = ( | Response<404, t_basic_error> > -export type ReactionsCreateForReleaseResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForReleaseResponder = { + with200: r.with200, + with201: r.with201, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReactionsCreateForReleaseResponder = + typeof reactionsCreateForReleaseResponder & KoaRuntimeResponder + +const reactionsCreateForReleaseResponseValidator = responseValidationFactory( + [ + ["200", s_reaction], + ["201", s_reaction], + ["422", s_validation_error], + ], + undefined, +) export type ReactionsCreateForRelease = ( params: Params< @@ -18521,9 +28960,18 @@ export type ReactionsCreateForRelease = ( | Response<422, t_validation_error> > -export type ReactionsDeleteForReleaseResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsDeleteForReleaseResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReactionsDeleteForReleaseResponder = + typeof reactionsDeleteForReleaseResponder & KoaRuntimeResponder + +const reactionsDeleteForReleaseResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type ReactionsDeleteForRelease = ( params: Params, @@ -18531,9 +28979,18 @@ export type ReactionsDeleteForRelease = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposGetBranchRulesResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetBranchRulesResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposGetBranchRulesResponder = typeof reposGetBranchRulesResponder & + KoaRuntimeResponder + +const reposGetBranchRulesResponseValidator = responseValidationFactory( + [["200", z.array(s_repository_rule_detailed)]], + undefined, +) export type ReposGetBranchRules = ( params: Params< @@ -18548,11 +29005,24 @@ export type ReposGetBranchRules = ( KoaRuntimeResponse | Response<200, t_repository_rule_detailed[]> > -export type ReposGetRepoRulesetsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetRepoRulesetsResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetRepoRulesetsResponder = typeof reposGetRepoRulesetsResponder & + KoaRuntimeResponder + +const reposGetRepoRulesetsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_repository_ruleset)], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetRepoRulesets = ( params: Params< @@ -18570,11 +29040,24 @@ export type ReposGetRepoRulesets = ( | Response<500, t_basic_error> > -export type ReposCreateRepoRulesetResponder = { - with201(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateRepoRulesetResponder = { + with201: r.with201, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposCreateRepoRulesetResponder = typeof reposCreateRepoRulesetResponder & + KoaRuntimeResponder + +const reposCreateRepoRulesetResponseValidator = responseValidationFactory( + [ + ["201", s_repository_ruleset], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposCreateRepoRuleset = ( params: Params< @@ -18592,11 +29075,24 @@ export type ReposCreateRepoRuleset = ( | Response<500, t_basic_error> > -export type ReposGetRepoRuleSuitesResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetRepoRuleSuitesResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetRepoRuleSuitesResponder = typeof reposGetRepoRuleSuitesResponder & + KoaRuntimeResponder + +const reposGetRepoRuleSuitesResponseValidator = responseValidationFactory( + [ + ["200", s_rule_suites], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetRepoRuleSuites = ( params: Params< @@ -18614,11 +29110,24 @@ export type ReposGetRepoRuleSuites = ( | Response<500, t_basic_error> > -export type ReposGetRepoRuleSuiteResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetRepoRuleSuiteResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetRepoRuleSuiteResponder = typeof reposGetRepoRuleSuiteResponder & + KoaRuntimeResponder + +const reposGetRepoRuleSuiteResponseValidator = responseValidationFactory( + [ + ["200", s_rule_suite], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetRepoRuleSuite = ( params: Params, @@ -18631,11 +29140,24 @@ export type ReposGetRepoRuleSuite = ( | Response<500, t_basic_error> > -export type ReposGetRepoRulesetResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetRepoRulesetResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetRepoRulesetResponder = typeof reposGetRepoRulesetResponder & + KoaRuntimeResponder + +const reposGetRepoRulesetResponseValidator = responseValidationFactory( + [ + ["200", s_repository_ruleset], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetRepoRuleset = ( params: Params< @@ -18653,11 +29175,24 @@ export type ReposGetRepoRuleset = ( | Response<500, t_basic_error> > -export type ReposUpdateRepoRulesetResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposUpdateRepoRulesetResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposUpdateRepoRulesetResponder = typeof reposUpdateRepoRulesetResponder & + KoaRuntimeResponder + +const reposUpdateRepoRulesetResponseValidator = responseValidationFactory( + [ + ["200", s_repository_ruleset], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposUpdateRepoRuleset = ( params: Params< @@ -18675,11 +29210,24 @@ export type ReposUpdateRepoRuleset = ( | Response<500, t_basic_error> > -export type ReposDeleteRepoRulesetResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteRepoRulesetResponder = { + with204: r.with204, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposDeleteRepoRulesetResponder = typeof reposDeleteRepoRulesetResponder & + KoaRuntimeResponder + +const reposDeleteRepoRulesetResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposDeleteRepoRuleset = ( params: Params, @@ -18692,11 +29240,24 @@ export type ReposDeleteRepoRuleset = ( | Response<500, t_basic_error> > -export type ReposGetRepoRulesetHistoryResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetRepoRulesetHistoryResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetRepoRulesetHistoryResponder = + typeof reposGetRepoRulesetHistoryResponder & KoaRuntimeResponder + +const reposGetRepoRulesetHistoryResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_ruleset_version)], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetRepoRulesetHistory = ( params: Params< @@ -18714,11 +29275,24 @@ export type ReposGetRepoRulesetHistory = ( | Response<500, t_basic_error> > -export type ReposGetRepoRulesetVersionResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetRepoRulesetVersionResponder = { + with200: r.with200, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type ReposGetRepoRulesetVersionResponder = + typeof reposGetRepoRulesetVersionResponder & KoaRuntimeResponder + +const reposGetRepoRulesetVersionResponseValidator = responseValidationFactory( + [ + ["200", s_ruleset_version_with_state], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, +) export type ReposGetRepoRulesetVersion = ( params: Params, @@ -18731,15 +29305,36 @@ export type ReposGetRepoRulesetVersion = ( | Response<500, t_basic_error> > -export type SecretScanningListAlertsForRepoResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const secretScanningListAlertsForRepoResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SecretScanningListAlertsForRepoResponder = + typeof secretScanningListAlertsForRepoResponder & KoaRuntimeResponder + +const secretScanningListAlertsForRepoResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_secret_scanning_alert)], + ["404", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type SecretScanningListAlertsForRepo = ( params: Params< @@ -18764,16 +29359,37 @@ export type SecretScanningListAlertsForRepo = ( > > -export type SecretScanningGetAlertResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const secretScanningGetAlertResponder = { + with200: r.with200, + with304: r.with304, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SecretScanningGetAlertResponder = typeof secretScanningGetAlertResponder & + KoaRuntimeResponder + +const secretScanningGetAlertResponseValidator = responseValidationFactory( + [ + ["200", s_secret_scanning_alert], + ["304", z.undefined()], + ["404", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type SecretScanningGetAlert = ( params: Params, @@ -18794,17 +29410,39 @@ export type SecretScanningGetAlert = ( > > -export type SecretScanningUpdateAlertResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const secretScanningUpdateAlertResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SecretScanningUpdateAlertResponder = + typeof secretScanningUpdateAlertResponder & KoaRuntimeResponder + +const secretScanningUpdateAlertResponseValidator = responseValidationFactory( + [ + ["200", s_secret_scanning_alert], + ["400", z.undefined()], + ["404", z.undefined()], + ["422", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type SecretScanningUpdateAlert = ( params: Params< @@ -18831,15 +29469,36 @@ export type SecretScanningUpdateAlert = ( > > -export type SecretScanningListLocationsForAlertResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const secretScanningListLocationsForAlertResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SecretScanningListLocationsForAlertResponder = + typeof secretScanningListLocationsForAlertResponder & KoaRuntimeResponder + +const secretScanningListLocationsForAlertResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_secret_scanning_location)], + ["404", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type SecretScanningListLocationsForAlert = ( params: Params< @@ -18864,17 +29523,40 @@ export type SecretScanningListLocationsForAlert = ( > > -export type SecretScanningCreatePushProtectionBypassResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const secretScanningCreatePushProtectionBypassResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SecretScanningCreatePushProtectionBypassResponder = + typeof secretScanningCreatePushProtectionBypassResponder & KoaRuntimeResponder + +const secretScanningCreatePushProtectionBypassResponseValidator = + responseValidationFactory( + [ + ["200", s_secret_scanning_push_protection_bypass], + ["403", z.undefined()], + ["404", z.undefined()], + ["422", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type SecretScanningCreatePushProtectionBypass = ( params: Params< @@ -18901,15 +29583,35 @@ export type SecretScanningCreatePushProtectionBypass = ( > > -export type SecretScanningGetScanHistoryResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const secretScanningGetScanHistoryResponder = { + with200: r.with200, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SecretScanningGetScanHistoryResponder = + typeof secretScanningGetScanHistoryResponder & KoaRuntimeResponder + +const secretScanningGetScanHistoryResponseValidator = responseValidationFactory( + [ + ["200", s_secret_scanning_scan_history], + ["404", z.undefined()], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type SecretScanningGetScanHistory = ( params: Params, @@ -18929,11 +29631,26 @@ export type SecretScanningGetScanHistory = ( > > -export type SecurityAdvisoriesListRepositoryAdvisoriesResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesListRepositoryAdvisoriesResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesListRepositoryAdvisoriesResponder = + typeof securityAdvisoriesListRepositoryAdvisoriesResponder & + KoaRuntimeResponder + +const securityAdvisoriesListRepositoryAdvisoriesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_repository_advisory)], + ["400", s_scim_error], + ["404", s_basic_error], + ], + undefined, + ) export type SecurityAdvisoriesListRepositoryAdvisories = ( params: Params< @@ -18951,12 +29668,28 @@ export type SecurityAdvisoriesListRepositoryAdvisories = ( | Response<404, t_basic_error> > -export type SecurityAdvisoriesCreateRepositoryAdvisoryResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesCreateRepositoryAdvisoryResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesCreateRepositoryAdvisoryResponder = + typeof securityAdvisoriesCreateRepositoryAdvisoryResponder & + KoaRuntimeResponder + +const securityAdvisoriesCreateRepositoryAdvisoryResponseValidator = + responseValidationFactory( + [ + ["201", s_repository_advisory], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type SecurityAdvisoriesCreateRepositoryAdvisory = ( params: Params< @@ -18975,12 +29708,28 @@ export type SecurityAdvisoriesCreateRepositoryAdvisory = ( | Response<422, t_validation_error> > -export type SecurityAdvisoriesCreatePrivateVulnerabilityReportResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesCreatePrivateVulnerabilityReportResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesCreatePrivateVulnerabilityReportResponder = + typeof securityAdvisoriesCreatePrivateVulnerabilityReportResponder & + KoaRuntimeResponder + +const securityAdvisoriesCreatePrivateVulnerabilityReportResponseValidator = + responseValidationFactory( + [ + ["201", s_repository_advisory], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type SecurityAdvisoriesCreatePrivateVulnerabilityReport = ( params: Params< @@ -18999,11 +29748,25 @@ export type SecurityAdvisoriesCreatePrivateVulnerabilityReport = ( | Response<422, t_validation_error> > -export type SecurityAdvisoriesGetRepositoryAdvisoryResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesGetRepositoryAdvisoryResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesGetRepositoryAdvisoryResponder = + typeof securityAdvisoriesGetRepositoryAdvisoryResponder & KoaRuntimeResponder + +const securityAdvisoriesGetRepositoryAdvisoryResponseValidator = + responseValidationFactory( + [ + ["200", s_repository_advisory], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type SecurityAdvisoriesGetRepositoryAdvisory = ( params: Params< @@ -19021,12 +29784,28 @@ export type SecurityAdvisoriesGetRepositoryAdvisory = ( | Response<404, t_basic_error> > -export type SecurityAdvisoriesUpdateRepositoryAdvisoryResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesUpdateRepositoryAdvisoryResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesUpdateRepositoryAdvisoryResponder = + typeof securityAdvisoriesUpdateRepositoryAdvisoryResponder & + KoaRuntimeResponder + +const securityAdvisoriesUpdateRepositoryAdvisoryResponseValidator = + responseValidationFactory( + [ + ["200", s_repository_advisory], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type SecurityAdvisoriesUpdateRepositoryAdvisory = ( params: Params< @@ -19045,15 +29824,32 @@ export type SecurityAdvisoriesUpdateRepositoryAdvisory = ( | Response<422, t_validation_error> > -export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder = { - with202(): KoaRuntimeResponse<{ +const securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder = + typeof securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder & + KoaRuntimeResponder + +const securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponseValidator = + responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest = ( params: Params< @@ -19078,13 +29874,28 @@ export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest = ( | Response<422, t_validation_error> > -export type SecurityAdvisoriesCreateForkResponder = { - with202(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const securityAdvisoriesCreateForkResponder = { + with202: r.with202, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type SecurityAdvisoriesCreateForkResponder = + typeof securityAdvisoriesCreateForkResponder & KoaRuntimeResponder + +const securityAdvisoriesCreateForkResponseValidator = responseValidationFactory( + [ + ["202", s_full_repository], + ["400", s_scim_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type SecurityAdvisoriesCreateFork = ( params: Params, @@ -19099,10 +29910,23 @@ export type SecurityAdvisoriesCreateFork = ( | Response<422, t_validation_error> > -export type ActivityListStargazersForRepoResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListStargazersForRepoResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ActivityListStargazersForRepoResponder = + typeof activityListStargazersForRepoResponder & KoaRuntimeResponder + +const activityListStargazersForRepoResponseValidator = + responseValidationFactory( + [ + ["200", z.union([z.array(s_simple_user), z.array(s_stargazer)])], + ["422", s_validation_error], + ], + undefined, + ) export type ActivityListStargazersForRepo = ( params: Params< @@ -19119,14 +29943,28 @@ export type ActivityListStargazersForRepo = ( | Response<422, t_validation_error> > -export type ReposGetCodeFrequencyStatsResponder = { - with200(): KoaRuntimeResponse - with202(): KoaRuntimeResponse<{ +const reposGetCodeFrequencyStatsResponder = { + with200: r.with200, + with202: r.with202<{ [key: string]: unknown | undefined - }> - with204(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with204: r.with204, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposGetCodeFrequencyStatsResponder = + typeof reposGetCodeFrequencyStatsResponder & KoaRuntimeResponder + +const reposGetCodeFrequencyStatsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_code_frequency_stat)], + ["202", z.record(z.unknown())], + ["204", z.undefined()], + ["422", z.undefined()], + ], + undefined, +) export type ReposGetCodeFrequencyStats = ( params: Params, @@ -19145,13 +29983,26 @@ export type ReposGetCodeFrequencyStats = ( | Response<422, void> > -export type ReposGetCommitActivityStatsResponder = { - with200(): KoaRuntimeResponse - with202(): KoaRuntimeResponse<{ +const reposGetCommitActivityStatsResponder = { + with200: r.with200, + with202: r.with202<{ [key: string]: unknown | undefined - }> - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposGetCommitActivityStatsResponder = + typeof reposGetCommitActivityStatsResponder & KoaRuntimeResponder + +const reposGetCommitActivityStatsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_commit_activity)], + ["202", z.record(z.unknown())], + ["204", z.undefined()], + ], + undefined, +) export type ReposGetCommitActivityStats = ( params: Params, @@ -19169,13 +30020,26 @@ export type ReposGetCommitActivityStats = ( | Response<204, void> > -export type ReposGetContributorsStatsResponder = { - with200(): KoaRuntimeResponse - with202(): KoaRuntimeResponse<{ +const reposGetContributorsStatsResponder = { + with200: r.with200, + with202: r.with202<{ [key: string]: unknown | undefined - }> - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposGetContributorsStatsResponder = + typeof reposGetContributorsStatsResponder & KoaRuntimeResponder + +const reposGetContributorsStatsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_contributor_activity)], + ["202", z.record(z.unknown())], + ["204", z.undefined()], + ], + undefined, +) export type ReposGetContributorsStats = ( params: Params, @@ -19193,10 +30057,22 @@ export type ReposGetContributorsStats = ( | Response<204, void> > -export type ReposGetParticipationStatsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetParticipationStatsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetParticipationStatsResponder = + typeof reposGetParticipationStatsResponder & KoaRuntimeResponder + +const reposGetParticipationStatsResponseValidator = responseValidationFactory( + [ + ["200", s_participation_stats], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetParticipationStats = ( params: Params, @@ -19208,10 +30084,22 @@ export type ReposGetParticipationStats = ( | Response<404, t_basic_error> > -export type ReposGetPunchCardStatsResponder = { - with200(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetPunchCardStatsResponder = { + with200: r.with200, + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposGetPunchCardStatsResponder = typeof reposGetPunchCardStatsResponder & + KoaRuntimeResponder + +const reposGetPunchCardStatsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_code_frequency_stat)], + ["204", z.undefined()], + ], + undefined, +) export type ReposGetPunchCardStats = ( params: Params, @@ -19223,9 +30111,18 @@ export type ReposGetPunchCardStats = ( | Response<204, void> > -export type ReposCreateCommitStatusResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateCommitStatusResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ReposCreateCommitStatusResponder = + typeof reposCreateCommitStatusResponder & KoaRuntimeResponder + +const reposCreateCommitStatusResponseValidator = responseValidationFactory( + [["201", s_status]], + undefined, +) export type ReposCreateCommitStatus = ( params: Params< @@ -19238,9 +30135,18 @@ export type ReposCreateCommitStatus = ( ctx: RouterContext, ) => Promise | Response<201, t_status>> -export type ActivityListWatchersForRepoResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListWatchersForRepoResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListWatchersForRepoResponder = + typeof activityListWatchersForRepoResponder & KoaRuntimeResponder + +const activityListWatchersForRepoResponseValidator = responseValidationFactory( + [["200", z.array(s_simple_user)]], + undefined, +) export type ActivityListWatchersForRepo = ( params: Params< @@ -19253,11 +30159,24 @@ export type ActivityListWatchersForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -export type ActivityGetRepoSubscriptionResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityGetRepoSubscriptionResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActivityGetRepoSubscriptionResponder = + typeof activityGetRepoSubscriptionResponder & KoaRuntimeResponder + +const activityGetRepoSubscriptionResponseValidator = responseValidationFactory( + [ + ["200", s_repository_subscription], + ["403", s_basic_error], + ["404", z.undefined()], + ], + undefined, +) export type ActivityGetRepoSubscription = ( params: Params, @@ -19270,9 +30189,18 @@ export type ActivityGetRepoSubscription = ( | Response<404, void> > -export type ActivitySetRepoSubscriptionResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activitySetRepoSubscriptionResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivitySetRepoSubscriptionResponder = + typeof activitySetRepoSubscriptionResponder & KoaRuntimeResponder + +const activitySetRepoSubscriptionResponseValidator = responseValidationFactory( + [["200", s_repository_subscription]], + undefined, +) export type ActivitySetRepoSubscription = ( params: Params< @@ -19287,9 +30215,16 @@ export type ActivitySetRepoSubscription = ( KoaRuntimeResponse | Response<200, t_repository_subscription> > -export type ActivityDeleteRepoSubscriptionResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityDeleteRepoSubscriptionResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ActivityDeleteRepoSubscriptionResponder = + typeof activityDeleteRepoSubscriptionResponder & KoaRuntimeResponder + +const activityDeleteRepoSubscriptionResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ActivityDeleteRepoSubscription = ( params: Params, @@ -19297,9 +30232,18 @@ export type ActivityDeleteRepoSubscription = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposListTagsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListTagsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListTagsResponder = typeof reposListTagsResponder & + KoaRuntimeResponder + +const reposListTagsResponseValidator = responseValidationFactory( + [["200", z.array(s_tag)]], + undefined, +) export type ReposListTags = ( params: Params< @@ -19312,11 +30256,24 @@ export type ReposListTags = ( ctx: RouterContext, ) => Promise | Response<200, t_tag[]>> -export type ReposListTagProtectionResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListTagProtectionResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListTagProtectionResponder = typeof reposListTagProtectionResponder & + KoaRuntimeResponder + +const reposListTagProtectionResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_tag_protection)], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ReposListTagProtection = ( params: Params, @@ -19329,11 +30286,24 @@ export type ReposListTagProtection = ( | Response<404, t_basic_error> > -export type ReposCreateTagProtectionResponder = { - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateTagProtectionResponder = { + with201: r.with201, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposCreateTagProtectionResponder = + typeof reposCreateTagProtectionResponder & KoaRuntimeResponder + +const reposCreateTagProtectionResponseValidator = responseValidationFactory( + [ + ["201", s_tag_protection], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ReposCreateTagProtection = ( params: Params< @@ -19351,11 +30321,24 @@ export type ReposCreateTagProtection = ( | Response<404, t_basic_error> > -export type ReposDeleteTagProtectionResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeleteTagProtectionResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposDeleteTagProtectionResponder = + typeof reposDeleteTagProtectionResponder & KoaRuntimeResponder + +const reposDeleteTagProtectionResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type ReposDeleteTagProtection = ( params: Params, @@ -19368,9 +30351,18 @@ export type ReposDeleteTagProtection = ( | Response<404, t_basic_error> > -export type ReposDownloadTarballArchiveResponder = { - with302(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDownloadTarballArchiveResponder = { + with302: r.with302, + withStatus: r.withStatus, +} + +type ReposDownloadTarballArchiveResponder = + typeof reposDownloadTarballArchiveResponder & KoaRuntimeResponder + +const reposDownloadTarballArchiveResponseValidator = responseValidationFactory( + [["302", z.undefined()]], + undefined, +) export type ReposDownloadTarballArchive = ( params: Params, @@ -19378,10 +30370,22 @@ export type ReposDownloadTarballArchive = ( ctx: RouterContext, ) => Promise | Response<302, void>> -export type ReposListTeamsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListTeamsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListTeamsResponder = typeof reposListTeamsResponder & + KoaRuntimeResponder + +const reposListTeamsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_team)], + ["404", s_basic_error], + ], + undefined, +) export type ReposListTeams = ( params: Params< @@ -19398,10 +30402,22 @@ export type ReposListTeams = ( | Response<404, t_basic_error> > -export type ReposGetAllTopicsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetAllTopicsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposGetAllTopicsResponder = typeof reposGetAllTopicsResponder & + KoaRuntimeResponder + +const reposGetAllTopicsResponseValidator = responseValidationFactory( + [ + ["200", s_topic], + ["404", s_basic_error], + ], + undefined, +) export type ReposGetAllTopics = ( params: Params< @@ -19418,11 +30434,24 @@ export type ReposGetAllTopics = ( | Response<404, t_basic_error> > -export type ReposReplaceAllTopicsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposReplaceAllTopicsResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposReplaceAllTopicsResponder = typeof reposReplaceAllTopicsResponder & + KoaRuntimeResponder + +const reposReplaceAllTopicsResponseValidator = responseValidationFactory( + [ + ["200", s_topic], + ["404", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, +) export type ReposReplaceAllTopics = ( params: Params< @@ -19440,10 +30469,22 @@ export type ReposReplaceAllTopics = ( | Response<422, t_validation_error_simple> > -export type ReposGetClonesResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetClonesResponder = { + with200: r.with200, + with403: r.with403, + withStatus: r.withStatus, +} + +type ReposGetClonesResponder = typeof reposGetClonesResponder & + KoaRuntimeResponder + +const reposGetClonesResponseValidator = responseValidationFactory( + [ + ["200", s_clone_traffic], + ["403", s_basic_error], + ], + undefined, +) export type ReposGetClones = ( params: Params< @@ -19460,10 +30501,22 @@ export type ReposGetClones = ( | Response<403, t_basic_error> > -export type ReposGetTopPathsResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetTopPathsResponder = { + with200: r.with200, + with403: r.with403, + withStatus: r.withStatus, +} + +type ReposGetTopPathsResponder = typeof reposGetTopPathsResponder & + KoaRuntimeResponder + +const reposGetTopPathsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_content_traffic)], + ["403", s_basic_error], + ], + undefined, +) export type ReposGetTopPaths = ( params: Params, @@ -19475,10 +30528,22 @@ export type ReposGetTopPaths = ( | Response<403, t_basic_error> > -export type ReposGetTopReferrersResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetTopReferrersResponder = { + with200: r.with200, + with403: r.with403, + withStatus: r.withStatus, +} + +type ReposGetTopReferrersResponder = typeof reposGetTopReferrersResponder & + KoaRuntimeResponder + +const reposGetTopReferrersResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_referrer_traffic)], + ["403", s_basic_error], + ], + undefined, +) export type ReposGetTopReferrers = ( params: Params, @@ -19490,10 +30555,22 @@ export type ReposGetTopReferrers = ( | Response<403, t_basic_error> > -export type ReposGetViewsResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposGetViewsResponder = { + with200: r.with200, + with403: r.with403, + withStatus: r.withStatus, +} + +type ReposGetViewsResponder = typeof reposGetViewsResponder & + KoaRuntimeResponder + +const reposGetViewsResponseValidator = responseValidationFactory( + [ + ["200", s_view_traffic], + ["403", s_basic_error], + ], + undefined, +) export type ReposGetViews = ( params: Params< @@ -19510,9 +30587,18 @@ export type ReposGetViews = ( | Response<403, t_basic_error> > -export type ReposTransferResponder = { - with202(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposTransferResponder = { + with202: r.with202, + withStatus: r.withStatus, +} + +type ReposTransferResponder = typeof reposTransferResponder & + KoaRuntimeResponder + +const reposTransferResponseValidator = responseValidationFactory( + [["202", s_minimal_repository]], + undefined, +) export type ReposTransfer = ( params: Params< @@ -19525,10 +30611,23 @@ export type ReposTransfer = ( ctx: RouterContext, ) => Promise | Response<202, t_minimal_repository>> -export type ReposCheckVulnerabilityAlertsResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCheckVulnerabilityAlertsResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposCheckVulnerabilityAlertsResponder = + typeof reposCheckVulnerabilityAlertsResponder & KoaRuntimeResponder + +const reposCheckVulnerabilityAlertsResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, + ) export type ReposCheckVulnerabilityAlerts = ( params: Params, @@ -19538,9 +30637,16 @@ export type ReposCheckVulnerabilityAlerts = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -export type ReposEnableVulnerabilityAlertsResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposEnableVulnerabilityAlertsResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposEnableVulnerabilityAlertsResponder = + typeof reposEnableVulnerabilityAlertsResponder & KoaRuntimeResponder + +const reposEnableVulnerabilityAlertsResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReposEnableVulnerabilityAlerts = ( params: Params, @@ -19548,9 +30654,16 @@ export type ReposEnableVulnerabilityAlerts = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposDisableVulnerabilityAlertsResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDisableVulnerabilityAlertsResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type ReposDisableVulnerabilityAlertsResponder = + typeof reposDisableVulnerabilityAlertsResponder & KoaRuntimeResponder + +const reposDisableVulnerabilityAlertsResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type ReposDisableVulnerabilityAlerts = ( params: Params< @@ -19563,9 +30676,18 @@ export type ReposDisableVulnerabilityAlerts = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReposDownloadZipballArchiveResponder = { - with302(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDownloadZipballArchiveResponder = { + with302: r.with302, + withStatus: r.withStatus, +} + +type ReposDownloadZipballArchiveResponder = + typeof reposDownloadZipballArchiveResponder & KoaRuntimeResponder + +const reposDownloadZipballArchiveResponseValidator = responseValidationFactory( + [["302", z.undefined()]], + undefined, +) export type ReposDownloadZipballArchive = ( params: Params, @@ -19573,9 +30695,18 @@ export type ReposDownloadZipballArchive = ( ctx: RouterContext, ) => Promise | Response<302, void>> -export type ReposCreateUsingTemplateResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateUsingTemplateResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ReposCreateUsingTemplateResponder = + typeof reposCreateUsingTemplateResponder & KoaRuntimeResponder + +const reposCreateUsingTemplateResponseValidator = responseValidationFactory( + [["201", s_full_repository]], + undefined, +) export type ReposCreateUsingTemplate = ( params: Params< @@ -19588,11 +30719,24 @@ export type ReposCreateUsingTemplate = ( ctx: RouterContext, ) => Promise | Response<201, t_full_repository>> -export type ReposListPublicResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListPublicResponder = { + with200: r.with200, + with304: r.with304, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposListPublicResponder = typeof reposListPublicResponder & + KoaRuntimeResponder + +const reposListPublicResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_minimal_repository)], + ["304", z.undefined()], + ["422", s_validation_error], + ], + undefined, +) export type ReposListPublic = ( params: Params, @@ -19605,21 +30749,49 @@ export type ReposListPublic = ( | Response<422, t_validation_error> > -export type SearchCodeResponder = { - with200(): KoaRuntimeResponse<{ +const searchCodeResponder = { + with200: r.with200<{ incomplete_results: boolean items: t_code_search_result_item[] total_count: number - }> - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ + }>, + with304: r.with304, + with403: r.with403, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SearchCodeResponder = typeof searchCodeResponder & KoaRuntimeResponder + +const searchCodeResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_code_search_result_item), + }), + ], + ["304", z.undefined()], + ["403", s_basic_error], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type SearchCode = ( params: Params, @@ -19648,14 +30820,33 @@ export type SearchCode = ( > > -export type SearchCommitsResponder = { - with200(): KoaRuntimeResponse<{ +const searchCommitsResponder = { + with200: r.with200<{ incomplete_results: boolean items: t_commit_search_result_item[] total_count: number - }> - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + withStatus: r.withStatus, +} + +type SearchCommitsResponder = typeof searchCommitsResponder & + KoaRuntimeResponder + +const searchCommitsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_commit_search_result_item), + }), + ], + ["304", z.undefined()], + ], + undefined, +) export type SearchCommits = ( params: Params, @@ -19674,21 +30865,50 @@ export type SearchCommits = ( | Response<304, void> > -export type SearchIssuesAndPullRequestsResponder = { - with200(): KoaRuntimeResponse<{ +const searchIssuesAndPullRequestsResponder = { + with200: r.with200<{ incomplete_results: boolean items: t_issue_search_result_item[] total_count: number - }> - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ + }>, + with304: r.with304, + with403: r.with403, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SearchIssuesAndPullRequestsResponder = + typeof searchIssuesAndPullRequestsResponder & KoaRuntimeResponder + +const searchIssuesAndPullRequestsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_issue_search_result_item), + }), + ], + ["304", z.undefined()], + ["403", s_basic_error], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type SearchIssuesAndPullRequests = ( params: Params, @@ -19717,17 +30937,38 @@ export type SearchIssuesAndPullRequests = ( > > -export type SearchLabelsResponder = { - with200(): KoaRuntimeResponse<{ +const searchLabelsResponder = { + with200: r.with200<{ incomplete_results: boolean items: t_label_search_result_item[] total_count: number - }> - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type SearchLabelsResponder = typeof searchLabelsResponder & KoaRuntimeResponder + +const searchLabelsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_label_search_result_item), + }), + ], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type SearchLabels = ( params: Params, @@ -19749,20 +30990,47 @@ export type SearchLabels = ( | Response<422, t_validation_error> > -export type SearchReposResponder = { - with200(): KoaRuntimeResponse<{ +const searchReposResponder = { + with200: r.with200<{ incomplete_results: boolean items: t_repo_search_result_item[] total_count: number - }> - with304(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ + }>, + with304: r.with304, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SearchReposResponder = typeof searchReposResponder & KoaRuntimeResponder + +const searchReposResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_repo_search_result_item), + }), + ], + ["304", z.undefined()], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type SearchRepos = ( params: Params, @@ -19790,14 +31058,32 @@ export type SearchRepos = ( > > -export type SearchTopicsResponder = { - with200(): KoaRuntimeResponse<{ +const searchTopicsResponder = { + with200: r.with200<{ incomplete_results: boolean items: t_topic_search_result_item[] total_count: number - }> - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + withStatus: r.withStatus, +} + +type SearchTopicsResponder = typeof searchTopicsResponder & KoaRuntimeResponder + +const searchTopicsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_topic_search_result_item), + }), + ], + ["304", z.undefined()], + ], + undefined, +) export type SearchTopics = ( params: Params, @@ -19816,20 +31102,47 @@ export type SearchTopics = ( | Response<304, void> > -export type SearchUsersResponder = { - with200(): KoaRuntimeResponse<{ +const searchUsersResponder = { + with200: r.with200<{ incomplete_results: boolean items: t_user_search_result_item[] total_count: number - }> - with304(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ + }>, + with304: r.with304, + with422: r.with422, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type SearchUsersResponder = typeof searchUsersResponder & KoaRuntimeResponder + +const searchUsersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_user_search_result_item), + }), + ], + ["304", z.undefined()], + ["422", s_validation_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, +) export type SearchUsers = ( params: Params, @@ -19857,10 +31170,22 @@ export type SearchUsers = ( > > -export type TeamsGetLegacyResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetLegacyResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsGetLegacyResponder = typeof teamsGetLegacyResponder & + KoaRuntimeResponder + +const teamsGetLegacyResponseValidator = responseValidationFactory( + [ + ["200", s_team_full], + ["404", s_basic_error], + ], + undefined, +) export type TeamsGetLegacy = ( params: Params, @@ -19872,13 +31197,28 @@ export type TeamsGetLegacy = ( | Response<404, t_basic_error> > -export type TeamsUpdateLegacyResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsUpdateLegacyResponder = { + with200: r.with200, + with201: r.with201, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsUpdateLegacyResponder = typeof teamsUpdateLegacyResponder & + KoaRuntimeResponder + +const teamsUpdateLegacyResponseValidator = responseValidationFactory( + [ + ["200", s_team_full], + ["201", s_team_full], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type TeamsUpdateLegacy = ( params: Params< @@ -19898,11 +31238,24 @@ export type TeamsUpdateLegacy = ( | Response<422, t_validation_error> > -export type TeamsDeleteLegacyResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsDeleteLegacyResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsDeleteLegacyResponder = typeof teamsDeleteLegacyResponder & + KoaRuntimeResponder + +const teamsDeleteLegacyResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type TeamsDeleteLegacy = ( params: Params, @@ -19915,9 +31268,18 @@ export type TeamsDeleteLegacy = ( | Response<422, t_validation_error> > -export type TeamsListDiscussionsLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListDiscussionsLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListDiscussionsLegacyResponder = + typeof teamsListDiscussionsLegacyResponder & KoaRuntimeResponder + +const teamsListDiscussionsLegacyResponseValidator = responseValidationFactory( + [["200", z.array(s_team_discussion)]], + undefined, +) export type TeamsListDiscussionsLegacy = ( params: Params< @@ -19930,9 +31292,18 @@ export type TeamsListDiscussionsLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion[]>> -export type TeamsCreateDiscussionLegacyResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCreateDiscussionLegacyResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type TeamsCreateDiscussionLegacyResponder = + typeof teamsCreateDiscussionLegacyResponder & KoaRuntimeResponder + +const teamsCreateDiscussionLegacyResponseValidator = responseValidationFactory( + [["201", s_team_discussion]], + undefined, +) export type TeamsCreateDiscussionLegacy = ( params: Params< @@ -19945,9 +31316,18 @@ export type TeamsCreateDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<201, t_team_discussion>> -export type TeamsGetDiscussionLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetDiscussionLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsGetDiscussionLegacyResponder = + typeof teamsGetDiscussionLegacyResponder & KoaRuntimeResponder + +const teamsGetDiscussionLegacyResponseValidator = responseValidationFactory( + [["200", s_team_discussion]], + undefined, +) export type TeamsGetDiscussionLegacy = ( params: Params, @@ -19955,9 +31335,18 @@ export type TeamsGetDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> -export type TeamsUpdateDiscussionLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsUpdateDiscussionLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsUpdateDiscussionLegacyResponder = + typeof teamsUpdateDiscussionLegacyResponder & KoaRuntimeResponder + +const teamsUpdateDiscussionLegacyResponseValidator = responseValidationFactory( + [["200", s_team_discussion]], + undefined, +) export type TeamsUpdateDiscussionLegacy = ( params: Params< @@ -19970,9 +31359,18 @@ export type TeamsUpdateDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> -export type TeamsDeleteDiscussionLegacyResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsDeleteDiscussionLegacyResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsDeleteDiscussionLegacyResponder = + typeof teamsDeleteDiscussionLegacyResponder & KoaRuntimeResponder + +const teamsDeleteDiscussionLegacyResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type TeamsDeleteDiscussionLegacy = ( params: Params, @@ -19980,9 +31378,19 @@ export type TeamsDeleteDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type TeamsListDiscussionCommentsLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListDiscussionCommentsLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListDiscussionCommentsLegacyResponder = + typeof teamsListDiscussionCommentsLegacyResponder & KoaRuntimeResponder + +const teamsListDiscussionCommentsLegacyResponseValidator = + responseValidationFactory( + [["200", z.array(s_team_discussion_comment)]], + undefined, + ) export type TeamsListDiscussionCommentsLegacy = ( params: Params< @@ -19997,9 +31405,16 @@ export type TeamsListDiscussionCommentsLegacy = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment[]> > -export type TeamsCreateDiscussionCommentLegacyResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCreateDiscussionCommentLegacyResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type TeamsCreateDiscussionCommentLegacyResponder = + typeof teamsCreateDiscussionCommentLegacyResponder & KoaRuntimeResponder + +const teamsCreateDiscussionCommentLegacyResponseValidator = + responseValidationFactory([["201", s_team_discussion_comment]], undefined) export type TeamsCreateDiscussionCommentLegacy = ( params: Params< @@ -20014,9 +31429,16 @@ export type TeamsCreateDiscussionCommentLegacy = ( KoaRuntimeResponse | Response<201, t_team_discussion_comment> > -export type TeamsGetDiscussionCommentLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetDiscussionCommentLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsGetDiscussionCommentLegacyResponder = + typeof teamsGetDiscussionCommentLegacyResponder & KoaRuntimeResponder + +const teamsGetDiscussionCommentLegacyResponseValidator = + responseValidationFactory([["200", s_team_discussion_comment]], undefined) export type TeamsGetDiscussionCommentLegacy = ( params: Params< @@ -20031,9 +31453,16 @@ export type TeamsGetDiscussionCommentLegacy = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment> > -export type TeamsUpdateDiscussionCommentLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsUpdateDiscussionCommentLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsUpdateDiscussionCommentLegacyResponder = + typeof teamsUpdateDiscussionCommentLegacyResponder & KoaRuntimeResponder + +const teamsUpdateDiscussionCommentLegacyResponseValidator = + responseValidationFactory([["200", s_team_discussion_comment]], undefined) export type TeamsUpdateDiscussionCommentLegacy = ( params: Params< @@ -20048,9 +31477,16 @@ export type TeamsUpdateDiscussionCommentLegacy = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment> > -export type TeamsDeleteDiscussionCommentLegacyResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsDeleteDiscussionCommentLegacyResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsDeleteDiscussionCommentLegacyResponder = + typeof teamsDeleteDiscussionCommentLegacyResponder & KoaRuntimeResponder + +const teamsDeleteDiscussionCommentLegacyResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type TeamsDeleteDiscussionCommentLegacy = ( params: Params< @@ -20063,9 +31499,17 @@ export type TeamsDeleteDiscussionCommentLegacy = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ReactionsListForTeamDiscussionCommentLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForTeamDiscussionCommentLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReactionsListForTeamDiscussionCommentLegacyResponder = + typeof reactionsListForTeamDiscussionCommentLegacyResponder & + KoaRuntimeResponder + +const reactionsListForTeamDiscussionCommentLegacyResponseValidator = + responseValidationFactory([["200", z.array(s_reaction)]], undefined) export type ReactionsListForTeamDiscussionCommentLegacy = ( params: Params< @@ -20078,9 +31522,17 @@ export type ReactionsListForTeamDiscussionCommentLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> -export type ReactionsCreateForTeamDiscussionCommentLegacyResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForTeamDiscussionCommentLegacyResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ReactionsCreateForTeamDiscussionCommentLegacyResponder = + typeof reactionsCreateForTeamDiscussionCommentLegacyResponder & + KoaRuntimeResponder + +const reactionsCreateForTeamDiscussionCommentLegacyResponseValidator = + responseValidationFactory([["201", s_reaction]], undefined) export type ReactionsCreateForTeamDiscussionCommentLegacy = ( params: Params< @@ -20093,9 +31545,16 @@ export type ReactionsCreateForTeamDiscussionCommentLegacy = ( ctx: RouterContext, ) => Promise | Response<201, t_reaction>> -export type ReactionsListForTeamDiscussionLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsListForTeamDiscussionLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReactionsListForTeamDiscussionLegacyResponder = + typeof reactionsListForTeamDiscussionLegacyResponder & KoaRuntimeResponder + +const reactionsListForTeamDiscussionLegacyResponseValidator = + responseValidationFactory([["200", z.array(s_reaction)]], undefined) export type ReactionsListForTeamDiscussionLegacy = ( params: Params< @@ -20108,9 +31567,16 @@ export type ReactionsListForTeamDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> -export type ReactionsCreateForTeamDiscussionLegacyResponder = { - with201(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reactionsCreateForTeamDiscussionLegacyResponder = { + with201: r.with201, + withStatus: r.withStatus, +} + +type ReactionsCreateForTeamDiscussionLegacyResponder = + typeof reactionsCreateForTeamDiscussionLegacyResponder & KoaRuntimeResponder + +const reactionsCreateForTeamDiscussionLegacyResponseValidator = + responseValidationFactory([["201", s_reaction]], undefined) export type ReactionsCreateForTeamDiscussionLegacy = ( params: Params< @@ -20123,9 +31589,19 @@ export type ReactionsCreateForTeamDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<201, t_reaction>> -export type TeamsListPendingInvitationsLegacyResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListPendingInvitationsLegacyResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type TeamsListPendingInvitationsLegacyResponder = + typeof teamsListPendingInvitationsLegacyResponder & KoaRuntimeResponder + +const teamsListPendingInvitationsLegacyResponseValidator = + responseValidationFactory( + [["200", z.array(s_organization_invitation)]], + undefined, + ) export type TeamsListPendingInvitationsLegacy = ( params: Params< @@ -20140,10 +31616,22 @@ export type TeamsListPendingInvitationsLegacy = ( KoaRuntimeResponse | Response<200, t_organization_invitation[]> > -export type TeamsListMembersLegacyResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListMembersLegacyResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsListMembersLegacyResponder = typeof teamsListMembersLegacyResponder & + KoaRuntimeResponder + +const teamsListMembersLegacyResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["404", s_basic_error], + ], + undefined, +) export type TeamsListMembersLegacy = ( params: Params< @@ -20160,10 +31648,22 @@ export type TeamsListMembersLegacy = ( | Response<404, t_basic_error> > -export type TeamsGetMemberLegacyResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetMemberLegacyResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsGetMemberLegacyResponder = typeof teamsGetMemberLegacyResponder & + KoaRuntimeResponder + +const teamsGetMemberLegacyResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, +) export type TeamsGetMemberLegacy = ( params: Params, @@ -20173,12 +31673,26 @@ export type TeamsGetMemberLegacy = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -export type TeamsAddMemberLegacyResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsAddMemberLegacyResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsAddMemberLegacyResponder = typeof teamsAddMemberLegacyResponder & + KoaRuntimeResponder + +const teamsAddMemberLegacyResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["404", z.undefined()], + ["422", z.undefined()], + ], + undefined, +) export type TeamsAddMemberLegacy = ( params: Params, @@ -20192,10 +31706,22 @@ export type TeamsAddMemberLegacy = ( | Response<422, void> > -export type TeamsRemoveMemberLegacyResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsRemoveMemberLegacyResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsRemoveMemberLegacyResponder = + typeof teamsRemoveMemberLegacyResponder & KoaRuntimeResponder + +const teamsRemoveMemberLegacyResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, +) export type TeamsRemoveMemberLegacy = ( params: Params, @@ -20205,10 +31731,23 @@ export type TeamsRemoveMemberLegacy = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -export type TeamsGetMembershipForUserLegacyResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsGetMembershipForUserLegacyResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsGetMembershipForUserLegacyResponder = + typeof teamsGetMembershipForUserLegacyResponder & KoaRuntimeResponder + +const teamsGetMembershipForUserLegacyResponseValidator = + responseValidationFactory( + [ + ["200", s_team_membership], + ["404", s_basic_error], + ], + undefined, + ) export type TeamsGetMembershipForUserLegacy = ( params: Params< @@ -20225,12 +31764,27 @@ export type TeamsGetMembershipForUserLegacy = ( | Response<404, t_basic_error> > -export type TeamsAddOrUpdateMembershipForUserLegacyResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsAddOrUpdateMembershipForUserLegacyResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsAddOrUpdateMembershipForUserLegacyResponder = + typeof teamsAddOrUpdateMembershipForUserLegacyResponder & KoaRuntimeResponder + +const teamsAddOrUpdateMembershipForUserLegacyResponseValidator = + responseValidationFactory( + [ + ["200", s_team_membership], + ["403", z.undefined()], + ["404", s_basic_error], + ["422", z.undefined()], + ], + undefined, + ) export type TeamsAddOrUpdateMembershipForUserLegacy = ( params: Params< @@ -20249,10 +31803,23 @@ export type TeamsAddOrUpdateMembershipForUserLegacy = ( | Response<422, void> > -export type TeamsRemoveMembershipForUserLegacyResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsRemoveMembershipForUserLegacyResponder = { + with204: r.with204, + with403: r.with403, + withStatus: r.withStatus, +} + +type TeamsRemoveMembershipForUserLegacyResponder = + typeof teamsRemoveMembershipForUserLegacyResponder & KoaRuntimeResponder + +const teamsRemoveMembershipForUserLegacyResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["403", z.undefined()], + ], + undefined, + ) export type TeamsRemoveMembershipForUserLegacy = ( params: Params< @@ -20267,10 +31834,22 @@ export type TeamsRemoveMembershipForUserLegacy = ( KoaRuntimeResponse | Response<204, void> | Response<403, void> > -export type TeamsListProjectsLegacyResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListProjectsLegacyResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsListProjectsLegacyResponder = + typeof teamsListProjectsLegacyResponder & KoaRuntimeResponder + +const teamsListProjectsLegacyResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_team_project)], + ["404", s_basic_error], + ], + undefined, +) export type TeamsListProjectsLegacy = ( params: Params< @@ -20287,10 +31866,23 @@ export type TeamsListProjectsLegacy = ( | Response<404, t_basic_error> > -export type TeamsCheckPermissionsForProjectLegacyResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCheckPermissionsForProjectLegacyResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsCheckPermissionsForProjectLegacyResponder = + typeof teamsCheckPermissionsForProjectLegacyResponder & KoaRuntimeResponder + +const teamsCheckPermissionsForProjectLegacyResponseValidator = + responseValidationFactory( + [ + ["200", s_team_project], + ["404", z.undefined()], + ], + undefined, + ) export type TeamsCheckPermissionsForProjectLegacy = ( params: Params< @@ -20307,15 +31899,36 @@ export type TeamsCheckPermissionsForProjectLegacy = ( | Response<404, void> > -export type TeamsAddOrUpdateProjectPermissionsLegacyResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse<{ +const teamsAddOrUpdateProjectPermissionsLegacyResponder = { + with204: r.with204, + with403: r.with403<{ documentation_url?: string message?: string - }> - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsAddOrUpdateProjectPermissionsLegacyResponder = + typeof teamsAddOrUpdateProjectPermissionsLegacyResponder & KoaRuntimeResponder + +const teamsAddOrUpdateProjectPermissionsLegacyResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + [ + "403", + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type TeamsAddOrUpdateProjectPermissionsLegacy = ( params: Params< @@ -20340,11 +31953,24 @@ export type TeamsAddOrUpdateProjectPermissionsLegacy = ( | Response<422, t_validation_error> > -export type TeamsRemoveProjectLegacyResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsRemoveProjectLegacyResponder = { + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsRemoveProjectLegacyResponder = + typeof teamsRemoveProjectLegacyResponder & KoaRuntimeResponder + +const teamsRemoveProjectLegacyResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type TeamsRemoveProjectLegacy = ( params: Params, @@ -20357,10 +31983,22 @@ export type TeamsRemoveProjectLegacy = ( | Response<422, t_validation_error> > -export type TeamsListReposLegacyResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListReposLegacyResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsListReposLegacyResponder = typeof teamsListReposLegacyResponder & + KoaRuntimeResponder + +const teamsListReposLegacyResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_minimal_repository)], + ["404", s_basic_error], + ], + undefined, +) export type TeamsListReposLegacy = ( params: Params< @@ -20377,11 +32015,25 @@ export type TeamsListReposLegacy = ( | Response<404, t_basic_error> > -export type TeamsCheckPermissionsForRepoLegacyResponder = { - with200(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsCheckPermissionsForRepoLegacyResponder = { + with200: r.with200, + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsCheckPermissionsForRepoLegacyResponder = + typeof teamsCheckPermissionsForRepoLegacyResponder & KoaRuntimeResponder + +const teamsCheckPermissionsForRepoLegacyResponseValidator = + responseValidationFactory( + [ + ["200", s_team_repository], + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, + ) export type TeamsCheckPermissionsForRepoLegacy = ( params: Params< @@ -20399,11 +32051,25 @@ export type TeamsCheckPermissionsForRepoLegacy = ( | Response<404, void> > -export type TeamsAddOrUpdateRepoPermissionsLegacyResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsAddOrUpdateRepoPermissionsLegacyResponder = { + with204: r.with204, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsAddOrUpdateRepoPermissionsLegacyResponder = + typeof teamsAddOrUpdateRepoPermissionsLegacyResponder & KoaRuntimeResponder + +const teamsAddOrUpdateRepoPermissionsLegacyResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type TeamsAddOrUpdateRepoPermissionsLegacy = ( params: Params< @@ -20421,9 +32087,18 @@ export type TeamsAddOrUpdateRepoPermissionsLegacy = ( | Response<422, t_validation_error> > -export type TeamsRemoveRepoLegacyResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsRemoveRepoLegacyResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type TeamsRemoveRepoLegacyResponder = typeof teamsRemoveRepoLegacyResponder & + KoaRuntimeResponder + +const teamsRemoveRepoLegacyResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type TeamsRemoveRepoLegacy = ( params: Params, @@ -20431,12 +32106,26 @@ export type TeamsRemoveRepoLegacy = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type TeamsListChildLegacyResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListChildLegacyResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type TeamsListChildLegacyResponder = typeof teamsListChildLegacyResponder & + KoaRuntimeResponder + +const teamsListChildLegacyResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_team)], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type TeamsListChildLegacy = ( params: Params< @@ -20455,12 +32144,26 @@ export type TeamsListChildLegacy = ( | Response<422, t_validation_error> > -export type UsersGetAuthenticatedResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersGetAuthenticatedResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type UsersGetAuthenticatedResponder = typeof usersGetAuthenticatedResponder & + KoaRuntimeResponder + +const usersGetAuthenticatedResponseValidator = responseValidationFactory( + [ + ["200", z.union([s_private_user, s_public_user])], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type UsersGetAuthenticated = ( params: Params, @@ -20474,14 +32177,30 @@ export type UsersGetAuthenticated = ( | Response<403, t_basic_error> > -export type UsersUpdateAuthenticatedResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersUpdateAuthenticatedResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersUpdateAuthenticatedResponder = + typeof usersUpdateAuthenticatedResponder & KoaRuntimeResponder + +const usersUpdateAuthenticatedResponseValidator = responseValidationFactory( + [ + ["200", s_private_user], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type UsersUpdateAuthenticated = ( params: Params< @@ -20502,13 +32221,29 @@ export type UsersUpdateAuthenticated = ( | Response<422, t_validation_error> > -export type UsersListBlockedByAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListBlockedByAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersListBlockedByAuthenticatedUserResponder = + typeof usersListBlockedByAuthenticatedUserResponder & KoaRuntimeResponder + +const usersListBlockedByAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersListBlockedByAuthenticatedUser = ( params: Params< @@ -20528,13 +32263,28 @@ export type UsersListBlockedByAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersCheckBlockedResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersCheckBlockedResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersCheckBlockedResponder = typeof usersCheckBlockedResponder & + KoaRuntimeResponder + +const usersCheckBlockedResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type UsersCheckBlocked = ( params: Params, @@ -20549,14 +32299,29 @@ export type UsersCheckBlocked = ( | Response<404, t_basic_error> > -export type UsersBlockResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersBlockResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersBlockResponder = typeof usersBlockResponder & KoaRuntimeResponder + +const usersBlockResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type UsersBlock = ( params: Params, @@ -20572,13 +32337,27 @@ export type UsersBlock = ( | Response<422, t_validation_error> > -export type UsersUnblockResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersUnblockResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersUnblockResponder = typeof usersUnblockResponder & KoaRuntimeResponder + +const usersUnblockResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type UsersUnblock = ( params: Params, @@ -20593,17 +32372,40 @@ export type UsersUnblock = ( | Response<404, t_basic_error> > -export type CodespacesListForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesListForAuthenticatedUserResponder = { + with200: r.with200<{ codespaces: t_codespace[] total_count: number - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesListForAuthenticatedUserResponder = + typeof codespacesListForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesListForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + codespaces: z.array(s_codespace), + }), + ], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesListForAuthenticatedUser = ( params: Params< @@ -20630,18 +32432,42 @@ export type CodespacesListForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesCreateForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with202(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with503(): KoaRuntimeResponse<{ +const codespacesCreateForAuthenticatedUserResponder = { + with201: r.with201, + with202: r.with202, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with503: r.with503<{ code?: string documentation_url?: string message?: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodespacesCreateForAuthenticatedUserResponder = + typeof codespacesCreateForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesCreateForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_codespace], + ["202", s_codespace], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + [ + "503", + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ], + ], + undefined, + ) export type CodespacesCreateForAuthenticatedUser = ( params: Params< @@ -20669,12 +32495,31 @@ export type CodespacesCreateForAuthenticatedUser = ( > > -export type CodespacesListSecretsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesListSecretsForAuthenticatedUserResponder = { + with200: r.with200<{ secrets: t_codespaces_secret[] total_count: number - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type CodespacesListSecretsForAuthenticatedUserResponder = + typeof codespacesListSecretsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesListSecretsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_codespaces_secret), + }), + ], + ], + undefined, + ) export type CodespacesListSecretsForAuthenticatedUser = ( params: Params< @@ -20696,9 +32541,17 @@ export type CodespacesListSecretsForAuthenticatedUser = ( > > -export type CodespacesGetPublicKeyForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesGetPublicKeyForAuthenticatedUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type CodespacesGetPublicKeyForAuthenticatedUserResponder = + typeof codespacesGetPublicKeyForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesGetPublicKeyForAuthenticatedUserResponseValidator = + responseValidationFactory([["200", s_codespaces_user_public_key]], undefined) export type CodespacesGetPublicKeyForAuthenticatedUser = ( params: Params, @@ -20708,9 +32561,16 @@ export type CodespacesGetPublicKeyForAuthenticatedUser = ( KoaRuntimeResponse | Response<200, t_codespaces_user_public_key> > -export type CodespacesGetSecretForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesGetSecretForAuthenticatedUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type CodespacesGetSecretForAuthenticatedUserResponder = + typeof codespacesGetSecretForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesGetSecretForAuthenticatedUserResponseValidator = + responseValidationFactory([["200", s_codespaces_secret]], undefined) export type CodespacesGetSecretForAuthenticatedUser = ( params: Params< @@ -20723,12 +32583,28 @@ export type CodespacesGetSecretForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_codespaces_secret>> -export type CodespacesCreateOrUpdateSecretForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesCreateOrUpdateSecretForAuthenticatedUserResponder = { + with201: r.with201, + with204: r.with204, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type CodespacesCreateOrUpdateSecretForAuthenticatedUserResponder = + typeof codespacesCreateOrUpdateSecretForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesCreateOrUpdateSecretForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_empty_object], + ["204", z.undefined()], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type CodespacesCreateOrUpdateSecretForAuthenticatedUser = ( params: Params< @@ -20747,9 +32623,17 @@ export type CodespacesCreateOrUpdateSecretForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type CodespacesDeleteSecretForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesDeleteSecretForAuthenticatedUserResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type CodespacesDeleteSecretForAuthenticatedUserResponder = + typeof codespacesDeleteSecretForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesDeleteSecretForAuthenticatedUserResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type CodespacesDeleteSecretForAuthenticatedUser = ( params: Params< @@ -20762,16 +32646,39 @@ export type CodespacesDeleteSecretForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type CodespacesListRepositoriesForSecretForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesListRepositoriesForSecretForAuthenticatedUserResponder = { + with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesListRepositoriesForSecretForAuthenticatedUserResponder = + typeof codespacesListRepositoriesForSecretForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesListRepositoriesForSecretForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesListRepositoriesForSecretForAuthenticatedUser = ( params: Params< @@ -20797,13 +32704,30 @@ export type CodespacesListRepositoriesForSecretForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesSetRepositoriesForSecretForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesSetRepositoriesForSecretForAuthenticatedUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesSetRepositoriesForSecretForAuthenticatedUserResponder = + typeof codespacesSetRepositoriesForSecretForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesSetRepositoriesForSecretForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesSetRepositoriesForSecretForAuthenticatedUser = ( params: Params< @@ -20823,13 +32747,30 @@ export type CodespacesSetRepositoriesForSecretForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesAddRepositoryForSecretForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesAddRepositoryForSecretForAuthenticatedUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesAddRepositoryForSecretForAuthenticatedUserResponder = + typeof codespacesAddRepositoryForSecretForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesAddRepositoryForSecretForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesAddRepositoryForSecretForAuthenticatedUser = ( params: Params< @@ -20849,13 +32790,30 @@ export type CodespacesAddRepositoryForSecretForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesRemoveRepositoryForSecretForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesRemoveRepositoryForSecretForAuthenticatedUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesRemoveRepositoryForSecretForAuthenticatedUserResponder = + typeof codespacesRemoveRepositoryForSecretForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesRemoveRepositoryForSecretForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesRemoveRepositoryForSecretForAuthenticatedUser = ( params: Params< @@ -20875,14 +32833,31 @@ export type CodespacesRemoveRepositoryForSecretForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesGetForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesGetForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesGetForAuthenticatedUserResponder = + typeof codespacesGetForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesGetForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_codespace], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesGetForAuthenticatedUser = ( params: Params< @@ -20903,12 +32878,27 @@ export type CodespacesGetForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesUpdateForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesUpdateForAuthenticatedUserResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodespacesUpdateForAuthenticatedUserResponder = + typeof codespacesUpdateForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesUpdateForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_codespace], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type CodespacesUpdateForAuthenticatedUser = ( params: Params< @@ -20927,16 +32917,33 @@ export type CodespacesUpdateForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type CodespacesDeleteForAuthenticatedUserResponder = { - with202(): KoaRuntimeResponse<{ +const codespacesDeleteForAuthenticatedUserResponder = { + with202: r.with202<{ [key: string]: unknown | undefined - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesDeleteForAuthenticatedUserResponder = + typeof codespacesDeleteForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesDeleteForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["202", z.record(z.unknown())], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesDeleteForAuthenticatedUser = ( params: Params< @@ -20962,14 +32969,31 @@ export type CodespacesDeleteForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesExportForAuthenticatedUserResponder = { - with202(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesExportForAuthenticatedUserResponder = { + with202: r.with202, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesExportForAuthenticatedUserResponder = + typeof codespacesExportForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesExportForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["202", s_codespace_export_details], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesExportForAuthenticatedUser = ( params: Params< @@ -20990,10 +33014,24 @@ export type CodespacesExportForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesGetExportDetailsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesGetExportDetailsForAuthenticatedUserResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type CodespacesGetExportDetailsForAuthenticatedUserResponder = + typeof codespacesGetExportDetailsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesGetExportDetailsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_codespace_export_details], + ["404", s_basic_error], + ], + undefined, + ) export type CodespacesGetExportDetailsForAuthenticatedUser = ( params: Params< @@ -21010,17 +33048,41 @@ export type CodespacesGetExportDetailsForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type CodespacesCodespaceMachinesForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const codespacesCodespaceMachinesForAuthenticatedUserResponder = { + with200: r.with200<{ machines: t_codespace_machine[] total_count: number - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesCodespaceMachinesForAuthenticatedUserResponder = + typeof codespacesCodespaceMachinesForAuthenticatedUserResponder & + KoaRuntimeResponder + +const codespacesCodespaceMachinesForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + machines: z.array(s_codespace_machine), + }), + ], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesCodespaceMachinesForAuthenticatedUser = ( params: Params< @@ -21047,13 +33109,29 @@ export type CodespacesCodespaceMachinesForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesPublishForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesPublishForAuthenticatedUserResponder = { + with201: r.with201, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type CodespacesPublishForAuthenticatedUserResponder = + typeof codespacesPublishForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesPublishForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_codespace_with_full_repository], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type CodespacesPublishForAuthenticatedUser = ( params: Params< @@ -21073,17 +33151,37 @@ export type CodespacesPublishForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type CodespacesStartForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with402(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesStartForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with400: r.with400, + with401: r.with401, + with402: r.with402, + with403: r.with403, + with404: r.with404, + with409: r.with409, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesStartForAuthenticatedUserResponder = + typeof codespacesStartForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesStartForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_codespace], + ["304", z.undefined()], + ["400", s_scim_error], + ["401", s_basic_error], + ["402", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesStartForAuthenticatedUser = ( params: Params< @@ -21107,13 +33205,29 @@ export type CodespacesStartForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type CodespacesStopForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const codespacesStopForAuthenticatedUserResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type CodespacesStopForAuthenticatedUserResponder = + typeof codespacesStopForAuthenticatedUserResponder & KoaRuntimeResponder + +const codespacesStopForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_codespace], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["500", s_basic_error], + ], + undefined, + ) export type CodespacesStopForAuthenticatedUser = ( params: Params< @@ -21133,10 +33247,18 @@ export type CodespacesStopForAuthenticatedUser = ( | Response<500, t_basic_error> > -export type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder = +const packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withStatus: r.withStatus, + } + +type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder = + typeof packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder & + KoaRuntimeResponder + +const packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponseValidator = + responseValidationFactory([["200", z.array(s_package)]], undefined) export type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser = ( @@ -21145,14 +33267,32 @@ export type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser = ctx: RouterContext, ) => Promise | Response<200, t_package[]>> -export type UsersSetPrimaryEmailVisibilityForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersSetPrimaryEmailVisibilityForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersSetPrimaryEmailVisibilityForAuthenticatedUserResponder = + typeof usersSetPrimaryEmailVisibilityForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersSetPrimaryEmailVisibilityForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_email)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersSetPrimaryEmailVisibilityForAuthenticatedUser = ( params: Params< @@ -21173,13 +33313,29 @@ export type UsersSetPrimaryEmailVisibilityForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type UsersListEmailsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListEmailsForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersListEmailsForAuthenticatedUserResponder = + typeof usersListEmailsForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersListEmailsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_email)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersListEmailsForAuthenticatedUser = ( params: Params< @@ -21199,14 +33355,31 @@ export type UsersListEmailsForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersAddEmailForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersAddEmailForAuthenticatedUserResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersAddEmailForAuthenticatedUserResponder = + typeof usersAddEmailForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersAddEmailForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", z.array(s_email)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersAddEmailForAuthenticatedUser = ( params: Params< @@ -21227,14 +33400,31 @@ export type UsersAddEmailForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type UsersDeleteEmailForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersDeleteEmailForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersDeleteEmailForAuthenticatedUserResponder = + typeof usersDeleteEmailForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersDeleteEmailForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersDeleteEmailForAuthenticatedUser = ( params: Params< @@ -21255,12 +33445,27 @@ export type UsersDeleteEmailForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type UsersListFollowersForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListFollowersForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type UsersListFollowersForAuthenticatedUserResponder = + typeof usersListFollowersForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersListFollowersForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type UsersListFollowersForAuthenticatedUser = ( params: Params< @@ -21279,12 +33484,27 @@ export type UsersListFollowersForAuthenticatedUser = ( | Response<403, t_basic_error> > -export type UsersListFollowedByAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListFollowedByAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type UsersListFollowedByAuthenticatedUserResponder = + typeof usersListFollowedByAuthenticatedUserResponder & KoaRuntimeResponder + +const usersListFollowedByAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type UsersListFollowedByAuthenticatedUser = ( params: Params< @@ -21303,13 +33523,30 @@ export type UsersListFollowedByAuthenticatedUser = ( | Response<403, t_basic_error> > -export type UsersCheckPersonIsFollowedByAuthenticatedResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersCheckPersonIsFollowedByAuthenticatedResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersCheckPersonIsFollowedByAuthenticatedResponder = + typeof usersCheckPersonIsFollowedByAuthenticatedResponder & + KoaRuntimeResponder + +const usersCheckPersonIsFollowedByAuthenticatedResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersCheckPersonIsFollowedByAuthenticated = ( params: Params< @@ -21329,14 +33566,29 @@ export type UsersCheckPersonIsFollowedByAuthenticated = ( | Response<404, t_basic_error> > -export type UsersFollowResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersFollowResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersFollowResponder = typeof usersFollowResponder & KoaRuntimeResponder + +const usersFollowResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type UsersFollow = ( params: Params, @@ -21352,13 +33604,28 @@ export type UsersFollow = ( | Response<422, t_validation_error> > -export type UsersUnfollowResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersUnfollowResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersUnfollowResponder = typeof usersUnfollowResponder & + KoaRuntimeResponder + +const usersUnfollowResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type UsersUnfollow = ( params: Params, @@ -21373,13 +33640,29 @@ export type UsersUnfollow = ( | Response<404, t_basic_error> > -export type UsersListGpgKeysForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListGpgKeysForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersListGpgKeysForAuthenticatedUserResponder = + typeof usersListGpgKeysForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersListGpgKeysForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_gpg_key)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersListGpgKeysForAuthenticatedUser = ( params: Params< @@ -21399,14 +33682,31 @@ export type UsersListGpgKeysForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersCreateGpgKeyForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersCreateGpgKeyForAuthenticatedUserResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersCreateGpgKeyForAuthenticatedUserResponder = + typeof usersCreateGpgKeyForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersCreateGpgKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_gpg_key], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersCreateGpgKeyForAuthenticatedUser = ( params: Params< @@ -21427,13 +33727,29 @@ export type UsersCreateGpgKeyForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type UsersGetGpgKeyForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersGetGpgKeyForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersGetGpgKeyForAuthenticatedUserResponder = + typeof usersGetGpgKeyForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersGetGpgKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_gpg_key], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersGetGpgKeyForAuthenticatedUser = ( params: Params< @@ -21453,14 +33769,31 @@ export type UsersGetGpgKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersDeleteGpgKeyForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersDeleteGpgKeyForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersDeleteGpgKeyForAuthenticatedUserResponder = + typeof usersDeleteGpgKeyForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersDeleteGpgKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersDeleteGpgKeyForAuthenticatedUser = ( params: Params< @@ -21481,15 +33814,37 @@ export type UsersDeleteGpgKeyForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type AppsListInstallationsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const appsListInstallationsForAuthenticatedUserResponder = { + with200: r.with200<{ installations: t_installation[] total_count: number - }> - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type AppsListInstallationsForAuthenticatedUserResponder = + typeof appsListInstallationsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const appsListInstallationsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + installations: z.array(s_installation), + }), + ], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type AppsListInstallationsForAuthenticatedUser = ( params: Params< @@ -21514,16 +33869,39 @@ export type AppsListInstallationsForAuthenticatedUser = ( | Response<403, t_basic_error> > -export type AppsListInstallationReposForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse<{ +const appsListInstallationReposForAuthenticatedUserResponder = { + with200: r.with200<{ repositories: t_repository[] repository_selection?: string total_count: number - }> - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsListInstallationReposForAuthenticatedUserResponder = + typeof appsListInstallationReposForAuthenticatedUserResponder & + KoaRuntimeResponder + +const appsListInstallationReposForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + total_count: z.coerce.number(), + repository_selection: z.string().optional(), + repositories: z.array(s_repository), + }), + ], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type AppsListInstallationReposForAuthenticatedUser = ( params: Params< @@ -21549,12 +33927,28 @@ export type AppsListInstallationReposForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type AppsAddRepoToInstallationForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsAddRepoToInstallationForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsAddRepoToInstallationForAuthenticatedUserResponder = + typeof appsAddRepoToInstallationForAuthenticatedUserResponder & + KoaRuntimeResponder + +const appsAddRepoToInstallationForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type AppsAddRepoToInstallationForAuthenticatedUser = ( params: Params< @@ -21573,13 +33967,30 @@ export type AppsAddRepoToInstallationForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type AppsRemoveRepoFromInstallationForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsRemoveRepoFromInstallationForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type AppsRemoveRepoFromInstallationForAuthenticatedUserResponder = + typeof appsRemoveRepoFromInstallationForAuthenticatedUserResponder & + KoaRuntimeResponder + +const appsRemoveRepoFromInstallationForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", z.undefined()], + ], + undefined, + ) export type AppsRemoveRepoFromInstallationForAuthenticatedUser = ( params: Params< @@ -21599,10 +34010,24 @@ export type AppsRemoveRepoFromInstallationForAuthenticatedUser = ( | Response<422, void> > -export type InteractionsGetRestrictionsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsGetRestrictionsForAuthenticatedUserResponder = { + with200: r.with200, + with204: r.with204, + withStatus: r.withStatus, +} + +type InteractionsGetRestrictionsForAuthenticatedUserResponder = + typeof interactionsGetRestrictionsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const interactionsGetRestrictionsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.union([s_interaction_limit_response, z.object({})])], + ["204", z.undefined()], + ], + undefined, + ) export type InteractionsGetRestrictionsForAuthenticatedUser = ( params: Params, @@ -21614,10 +34039,24 @@ export type InteractionsGetRestrictionsForAuthenticatedUser = ( | Response<204, void> > -export type InteractionsSetRestrictionsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsSetRestrictionsForAuthenticatedUserResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type InteractionsSetRestrictionsForAuthenticatedUserResponder = + typeof interactionsSetRestrictionsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const interactionsSetRestrictionsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_interaction_limit_response], + ["422", s_validation_error], + ], + undefined, + ) export type InteractionsSetRestrictionsForAuthenticatedUser = ( params: Params< @@ -21634,9 +34073,17 @@ export type InteractionsSetRestrictionsForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type InteractionsRemoveRestrictionsForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const interactionsRemoveRestrictionsForAuthenticatedUserResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type InteractionsRemoveRestrictionsForAuthenticatedUserResponder = + typeof interactionsRemoveRestrictionsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const interactionsRemoveRestrictionsForAuthenticatedUserResponseValidator = + responseValidationFactory([["204", z.undefined()]], undefined) export type InteractionsRemoveRestrictionsForAuthenticatedUser = ( params: Params, @@ -21644,11 +34091,25 @@ export type InteractionsRemoveRestrictionsForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type IssuesListForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const issuesListForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with404: r.with404, + withStatus: r.withStatus, +} + +type IssuesListForAuthenticatedUserResponder = + typeof issuesListForAuthenticatedUserResponder & KoaRuntimeResponder + +const issuesListForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_issue)], + ["304", z.undefined()], + ["404", s_basic_error], + ], + undefined, + ) export type IssuesListForAuthenticatedUser = ( params: Params, @@ -21661,13 +34122,30 @@ export type IssuesListForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersListPublicSshKeysForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListPublicSshKeysForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersListPublicSshKeysForAuthenticatedUserResponder = + typeof usersListPublicSshKeysForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersListPublicSshKeysForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_key)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersListPublicSshKeysForAuthenticatedUser = ( params: Params< @@ -21687,14 +34165,32 @@ export type UsersListPublicSshKeysForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersCreatePublicSshKeyForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersCreatePublicSshKeyForAuthenticatedUserResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersCreatePublicSshKeyForAuthenticatedUserResponder = + typeof usersCreatePublicSshKeyForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersCreatePublicSshKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_key], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersCreatePublicSshKeyForAuthenticatedUser = ( params: Params< @@ -21715,13 +34211,29 @@ export type UsersCreatePublicSshKeyForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type UsersGetPublicSshKeyForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersGetPublicSshKeyForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersGetPublicSshKeyForAuthenticatedUserResponder = + typeof usersGetPublicSshKeyForAuthenticatedUserResponder & KoaRuntimeResponder + +const usersGetPublicSshKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_key], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersGetPublicSshKeyForAuthenticatedUser = ( params: Params< @@ -21741,13 +34253,30 @@ export type UsersGetPublicSshKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersDeletePublicSshKeyForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersDeletePublicSshKeyForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersDeletePublicSshKeyForAuthenticatedUserResponder = + typeof usersDeletePublicSshKeyForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersDeletePublicSshKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersDeletePublicSshKeyForAuthenticatedUser = ( params: Params< @@ -21767,12 +34296,28 @@ export type UsersDeletePublicSshKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type AppsListSubscriptionsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListSubscriptionsForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type AppsListSubscriptionsForAuthenticatedUserResponder = + typeof appsListSubscriptionsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const appsListSubscriptionsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_user_marketplace_purchase)], + ["304", z.undefined()], + ["401", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type AppsListSubscriptionsForAuthenticatedUser = ( params: Params< @@ -21791,11 +34336,26 @@ export type AppsListSubscriptionsForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type AppsListSubscriptionsForAuthenticatedUserStubbedResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsListSubscriptionsForAuthenticatedUserStubbedResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + withStatus: r.withStatus, +} + +type AppsListSubscriptionsForAuthenticatedUserStubbedResponder = + typeof appsListSubscriptionsForAuthenticatedUserStubbedResponder & + KoaRuntimeResponder + +const appsListSubscriptionsForAuthenticatedUserStubbedResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_user_marketplace_purchase)], + ["304", z.undefined()], + ["401", s_basic_error], + ], + undefined, + ) export type AppsListSubscriptionsForAuthenticatedUserStubbed = ( params: Params< @@ -21813,13 +34373,29 @@ export type AppsListSubscriptionsForAuthenticatedUserStubbed = ( | Response<401, t_basic_error> > -export type OrgsListMembershipsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListMembershipsForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsListMembershipsForAuthenticatedUserResponder = + typeof orgsListMembershipsForAuthenticatedUserResponder & KoaRuntimeResponder + +const orgsListMembershipsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_org_membership)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type OrgsListMembershipsForAuthenticatedUser = ( params: Params< @@ -21839,11 +34415,25 @@ export type OrgsListMembershipsForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type OrgsGetMembershipForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsGetMembershipForAuthenticatedUserResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type OrgsGetMembershipForAuthenticatedUserResponder = + typeof orgsGetMembershipForAuthenticatedUserResponder & KoaRuntimeResponder + +const orgsGetMembershipForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_org_membership], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type OrgsGetMembershipForAuthenticatedUser = ( params: Params< @@ -21861,12 +34451,27 @@ export type OrgsGetMembershipForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type OrgsUpdateMembershipForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsUpdateMembershipForAuthenticatedUserResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type OrgsUpdateMembershipForAuthenticatedUserResponder = + typeof orgsUpdateMembershipForAuthenticatedUserResponder & KoaRuntimeResponder + +const orgsUpdateMembershipForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_org_membership], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type OrgsUpdateMembershipForAuthenticatedUser = ( params: Params< @@ -21885,12 +34490,27 @@ export type OrgsUpdateMembershipForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type MigrationsListForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsListForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type MigrationsListForAuthenticatedUserResponder = + typeof migrationsListForAuthenticatedUserResponder & KoaRuntimeResponder + +const migrationsListForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_migration)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type MigrationsListForAuthenticatedUser = ( params: Params< @@ -21909,13 +34529,29 @@ export type MigrationsListForAuthenticatedUser = ( | Response<403, t_basic_error> > -export type MigrationsStartForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsStartForAuthenticatedUserResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type MigrationsStartForAuthenticatedUserResponder = + typeof migrationsStartForAuthenticatedUserResponder & KoaRuntimeResponder + +const migrationsStartForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_migration], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type MigrationsStartForAuthenticatedUser = ( params: Params< @@ -21935,13 +34571,29 @@ export type MigrationsStartForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type MigrationsGetStatusForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsGetStatusForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsGetStatusForAuthenticatedUserResponder = + typeof migrationsGetStatusForAuthenticatedUserResponder & KoaRuntimeResponder + +const migrationsGetStatusForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_migration], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type MigrationsGetStatusForAuthenticatedUser = ( params: Params< @@ -21961,12 +34613,27 @@ export type MigrationsGetStatusForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type MigrationsGetArchiveForAuthenticatedUserResponder = { - with302(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsGetArchiveForAuthenticatedUserResponder = { + with302: r.with302, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type MigrationsGetArchiveForAuthenticatedUserResponder = + typeof migrationsGetArchiveForAuthenticatedUserResponder & KoaRuntimeResponder + +const migrationsGetArchiveForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["302", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type MigrationsGetArchiveForAuthenticatedUser = ( params: Params< @@ -21985,13 +34652,30 @@ export type MigrationsGetArchiveForAuthenticatedUser = ( | Response<403, t_basic_error> > -export type MigrationsDeleteArchiveForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsDeleteArchiveForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsDeleteArchiveForAuthenticatedUserResponder = + typeof migrationsDeleteArchiveForAuthenticatedUserResponder & + KoaRuntimeResponder + +const migrationsDeleteArchiveForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type MigrationsDeleteArchiveForAuthenticatedUser = ( params: Params< @@ -22011,13 +34695,29 @@ export type MigrationsDeleteArchiveForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type MigrationsUnlockRepoForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsUnlockRepoForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsUnlockRepoForAuthenticatedUserResponder = + typeof migrationsUnlockRepoForAuthenticatedUserResponder & KoaRuntimeResponder + +const migrationsUnlockRepoForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type MigrationsUnlockRepoForAuthenticatedUser = ( params: Params< @@ -22037,10 +34737,23 @@ export type MigrationsUnlockRepoForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type MigrationsListReposForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const migrationsListReposForAuthenticatedUserResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type MigrationsListReposForAuthenticatedUserResponder = + typeof migrationsListReposForAuthenticatedUserResponder & KoaRuntimeResponder + +const migrationsListReposForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_minimal_repository)], + ["404", s_basic_error], + ], + undefined, + ) export type MigrationsListReposForAuthenticatedUser = ( params: Params< @@ -22057,12 +34770,26 @@ export type MigrationsListReposForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type OrgsListForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type OrgsListForAuthenticatedUserResponder = + typeof orgsListForAuthenticatedUserResponder & KoaRuntimeResponder + +const orgsListForAuthenticatedUserResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_organization_simple)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type OrgsListForAuthenticatedUser = ( params: Params, @@ -22076,10 +34803,23 @@ export type OrgsListForAuthenticatedUser = ( | Response<403, t_basic_error> > -export type PackagesListPackagesForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesListPackagesForAuthenticatedUserResponder = { + with200: r.with200, + with400: r.with400, + withStatus: r.withStatus, +} + +type PackagesListPackagesForAuthenticatedUserResponder = + typeof packagesListPackagesForAuthenticatedUserResponder & KoaRuntimeResponder + +const packagesListPackagesForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_package)], + ["400", z.undefined()], + ], + undefined, + ) export type PackagesListPackagesForAuthenticatedUser = ( params: Params< @@ -22094,9 +34834,16 @@ export type PackagesListPackagesForAuthenticatedUser = ( KoaRuntimeResponse | Response<200, t_package[]> | Response<400, void> > -export type PackagesGetPackageForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesGetPackageForAuthenticatedUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PackagesGetPackageForAuthenticatedUserResponder = + typeof packagesGetPackageForAuthenticatedUserResponder & KoaRuntimeResponder + +const packagesGetPackageForAuthenticatedUserResponseValidator = + responseValidationFactory([["200", s_package]], undefined) export type PackagesGetPackageForAuthenticatedUser = ( params: Params< @@ -22109,12 +34856,28 @@ export type PackagesGetPackageForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_package>> -export type PackagesDeletePackageForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesDeletePackageForAuthenticatedUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesDeletePackageForAuthenticatedUserResponder = + typeof packagesDeletePackageForAuthenticatedUserResponder & + KoaRuntimeResponder + +const packagesDeletePackageForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesDeletePackageForAuthenticatedUser = ( params: Params< @@ -22133,12 +34896,28 @@ export type PackagesDeletePackageForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type PackagesRestorePackageForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesRestorePackageForAuthenticatedUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesRestorePackageForAuthenticatedUserResponder = + typeof packagesRestorePackageForAuthenticatedUserResponder & + KoaRuntimeResponder + +const packagesRestorePackageForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesRestorePackageForAuthenticatedUser = ( params: Params< @@ -22157,13 +34936,29 @@ export type PackagesRestorePackageForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder = +const packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, + } + +type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder = + typeof packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder & + KoaRuntimeResponder + +const packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_package_version)], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser = ( params: Params< @@ -22182,9 +34977,17 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser = ( | Response<404, t_basic_error> > -export type PackagesGetPackageVersionForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesGetPackageVersionForAuthenticatedUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PackagesGetPackageVersionForAuthenticatedUserResponder = + typeof packagesGetPackageVersionForAuthenticatedUserResponder & + KoaRuntimeResponder + +const packagesGetPackageVersionForAuthenticatedUserResponseValidator = + responseValidationFactory([["200", s_package_version]], undefined) export type PackagesGetPackageVersionForAuthenticatedUser = ( params: Params< @@ -22197,12 +35000,28 @@ export type PackagesGetPackageVersionForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_package_version>> -export type PackagesDeletePackageVersionForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesDeletePackageVersionForAuthenticatedUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesDeletePackageVersionForAuthenticatedUserResponder = + typeof packagesDeletePackageVersionForAuthenticatedUserResponder & + KoaRuntimeResponder + +const packagesDeletePackageVersionForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesDeletePackageVersionForAuthenticatedUser = ( params: Params< @@ -22221,12 +35040,28 @@ export type PackagesDeletePackageVersionForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type PackagesRestorePackageVersionForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesRestorePackageVersionForAuthenticatedUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesRestorePackageVersionForAuthenticatedUserResponder = + typeof packagesRestorePackageVersionForAuthenticatedUserResponder & + KoaRuntimeResponder + +const packagesRestorePackageVersionForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesRestorePackageVersionForAuthenticatedUser = ( params: Params< @@ -22245,13 +35080,29 @@ export type PackagesRestorePackageVersionForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type ProjectsCreateForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsCreateForAuthenticatedUserResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsCreateForAuthenticatedUserResponder = + typeof projectsCreateForAuthenticatedUserResponder & KoaRuntimeResponder + +const projectsCreateForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_project], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["422", s_validation_error_simple], + ], + undefined, + ) export type ProjectsCreateForAuthenticatedUser = ( params: Params< @@ -22271,13 +35122,30 @@ export type ProjectsCreateForAuthenticatedUser = ( | Response<422, t_validation_error_simple> > -export type UsersListPublicEmailsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListPublicEmailsForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersListPublicEmailsForAuthenticatedUserResponder = + typeof usersListPublicEmailsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersListPublicEmailsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_email)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersListPublicEmailsForAuthenticatedUser = ( params: Params< @@ -22297,13 +35165,29 @@ export type UsersListPublicEmailsForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type ReposListForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposListForAuthenticatedUserResponder = + typeof reposListForAuthenticatedUserResponder & KoaRuntimeResponder + +const reposListForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_repository)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type ReposListForAuthenticatedUser = ( params: Params, @@ -22318,15 +35202,33 @@ export type ReposListForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type ReposCreateForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposCreateForAuthenticatedUserResponder = { + with201: r.with201, + with304: r.with304, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type ReposCreateForAuthenticatedUserResponder = + typeof reposCreateForAuthenticatedUserResponder & KoaRuntimeResponder + +const reposCreateForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_full_repository], + ["304", z.undefined()], + ["400", s_scim_error], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type ReposCreateForAuthenticatedUser = ( params: Params, @@ -22343,13 +35245,29 @@ export type ReposCreateForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type ReposListInvitationsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListInvitationsForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ReposListInvitationsForAuthenticatedUserResponder = + typeof reposListInvitationsForAuthenticatedUserResponder & KoaRuntimeResponder + +const reposListInvitationsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_repository_invitation)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type ReposListInvitationsForAuthenticatedUser = ( params: Params< @@ -22369,13 +35287,30 @@ export type ReposListInvitationsForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type ReposAcceptInvitationForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposAcceptInvitationForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type ReposAcceptInvitationForAuthenticatedUserResponder = + typeof reposAcceptInvitationForAuthenticatedUserResponder & + KoaRuntimeResponder + +const reposAcceptInvitationForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, + ) export type ReposAcceptInvitationForAuthenticatedUser = ( params: Params< @@ -22395,13 +35330,30 @@ export type ReposAcceptInvitationForAuthenticatedUser = ( | Response<409, t_basic_error> > -export type ReposDeclineInvitationForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposDeclineInvitationForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with403: r.with403, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type ReposDeclineInvitationForAuthenticatedUserResponder = + typeof reposDeclineInvitationForAuthenticatedUserResponder & + KoaRuntimeResponder + +const reposDeclineInvitationForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ["409", s_basic_error], + ], + undefined, + ) export type ReposDeclineInvitationForAuthenticatedUser = ( params: Params< @@ -22421,13 +35373,30 @@ export type ReposDeclineInvitationForAuthenticatedUser = ( | Response<409, t_basic_error> > -export type UsersListSocialAccountsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListSocialAccountsForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersListSocialAccountsForAuthenticatedUserResponder = + typeof usersListSocialAccountsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersListSocialAccountsForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_social_account)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersListSocialAccountsForAuthenticatedUser = ( params: Params< @@ -22447,14 +35416,32 @@ export type UsersListSocialAccountsForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersAddSocialAccountForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersAddSocialAccountForAuthenticatedUserResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersAddSocialAccountForAuthenticatedUserResponder = + typeof usersAddSocialAccountForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersAddSocialAccountForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", z.array(s_social_account)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersAddSocialAccountForAuthenticatedUser = ( params: Params< @@ -22475,14 +35462,32 @@ export type UsersAddSocialAccountForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type UsersDeleteSocialAccountForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersDeleteSocialAccountForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersDeleteSocialAccountForAuthenticatedUserResponder = + typeof usersDeleteSocialAccountForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersDeleteSocialAccountForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersDeleteSocialAccountForAuthenticatedUser = ( params: Params< @@ -22503,13 +35508,30 @@ export type UsersDeleteSocialAccountForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type UsersListSshSigningKeysForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListSshSigningKeysForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersListSshSigningKeysForAuthenticatedUserResponder = + typeof usersListSshSigningKeysForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersListSshSigningKeysForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_ssh_signing_key)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersListSshSigningKeysForAuthenticatedUser = ( params: Params< @@ -22529,14 +35551,32 @@ export type UsersListSshSigningKeysForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersCreateSshSigningKeyForAuthenticatedUserResponder = { - with201(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersCreateSshSigningKeyForAuthenticatedUserResponder = { + with201: r.with201, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersCreateSshSigningKeyForAuthenticatedUserResponder = + typeof usersCreateSshSigningKeyForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersCreateSshSigningKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["201", s_ssh_signing_key], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, + ) export type UsersCreateSshSigningKeyForAuthenticatedUser = ( params: Params< @@ -22557,13 +35597,30 @@ export type UsersCreateSshSigningKeyForAuthenticatedUser = ( | Response<422, t_validation_error> > -export type UsersGetSshSigningKeyForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersGetSshSigningKeyForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersGetSshSigningKeyForAuthenticatedUserResponder = + typeof usersGetSshSigningKeyForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersGetSshSigningKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", s_ssh_signing_key], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersGetSshSigningKeyForAuthenticatedUser = ( params: Params< @@ -22583,13 +35640,30 @@ export type UsersGetSshSigningKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersDeleteSshSigningKeyForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersDeleteSshSigningKeyForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersDeleteSshSigningKeyForAuthenticatedUserResponder = + typeof usersDeleteSshSigningKeyForAuthenticatedUserResponder & + KoaRuntimeResponder + +const usersDeleteSshSigningKeyForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type UsersDeleteSshSigningKeyForAuthenticatedUser = ( params: Params< @@ -22609,12 +35683,28 @@ export type UsersDeleteSshSigningKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type ActivityListReposStarredByAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListReposStarredByAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActivityListReposStarredByAuthenticatedUserResponder = + typeof activityListReposStarredByAuthenticatedUserResponder & + KoaRuntimeResponder + +const activityListReposStarredByAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_starred_repository)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type ActivityListReposStarredByAuthenticatedUser = ( params: Params< @@ -22633,13 +35723,30 @@ export type ActivityListReposStarredByAuthenticatedUser = ( | Response<403, t_basic_error> > -export type ActivityCheckRepoIsStarredByAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityCheckRepoIsStarredByAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActivityCheckRepoIsStarredByAuthenticatedUserResponder = + typeof activityCheckRepoIsStarredByAuthenticatedUserResponder & + KoaRuntimeResponder + +const activityCheckRepoIsStarredByAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type ActivityCheckRepoIsStarredByAuthenticatedUser = ( params: Params< @@ -22659,13 +35766,29 @@ export type ActivityCheckRepoIsStarredByAuthenticatedUser = ( | Response<404, t_basic_error> > -export type ActivityStarRepoForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityStarRepoForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActivityStarRepoForAuthenticatedUserResponder = + typeof activityStarRepoForAuthenticatedUserResponder & KoaRuntimeResponder + +const activityStarRepoForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type ActivityStarRepoForAuthenticatedUser = ( params: Params< @@ -22685,13 +35808,29 @@ export type ActivityStarRepoForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type ActivityUnstarRepoForAuthenticatedUserResponder = { - with204(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityUnstarRepoForAuthenticatedUserResponder = { + with204: r.with204, + with304: r.with304, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type ActivityUnstarRepoForAuthenticatedUserResponder = + typeof activityUnstarRepoForAuthenticatedUserResponder & KoaRuntimeResponder + +const activityUnstarRepoForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type ActivityUnstarRepoForAuthenticatedUser = ( params: Params< @@ -22711,12 +35850,28 @@ export type ActivityUnstarRepoForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type ActivityListWatchedReposForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListWatchedReposForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ActivityListWatchedReposForAuthenticatedUserResponder = + typeof activityListWatchedReposForAuthenticatedUserResponder & + KoaRuntimeResponder + +const activityListWatchedReposForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_minimal_repository)], + ["304", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type ActivityListWatchedReposForAuthenticatedUser = ( params: Params< @@ -22735,12 +35890,27 @@ export type ActivityListWatchedReposForAuthenticatedUser = ( | Response<403, t_basic_error> > -export type TeamsListForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const teamsListForAuthenticatedUserResponder = { + with200: r.with200, + with304: r.with304, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type TeamsListForAuthenticatedUserResponder = + typeof teamsListForAuthenticatedUserResponder & KoaRuntimeResponder + +const teamsListForAuthenticatedUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_team_full)], + ["304", z.undefined()], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type TeamsListForAuthenticatedUser = ( params: Params, @@ -22754,10 +35924,21 @@ export type TeamsListForAuthenticatedUser = ( | Response<404, t_basic_error> > -export type UsersGetByIdResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersGetByIdResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersGetByIdResponder = typeof usersGetByIdResponder & KoaRuntimeResponder + +const usersGetByIdResponseValidator = responseValidationFactory( + [ + ["200", z.union([s_private_user, s_public_user])], + ["404", s_basic_error], + ], + undefined, +) export type UsersGetById = ( params: Params, @@ -22769,10 +35950,21 @@ export type UsersGetById = ( | Response<404, t_basic_error> > -export type UsersListResponder = { - with200(): KoaRuntimeResponse - with304(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListResponder = { + with200: r.with200, + with304: r.with304, + withStatus: r.withStatus, +} + +type UsersListResponder = typeof usersListResponder & KoaRuntimeResponder + +const usersListResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_simple_user)], + ["304", z.undefined()], + ], + undefined, +) export type UsersList = ( params: Params, @@ -22784,10 +35976,22 @@ export type UsersList = ( | Response<304, void> > -export type UsersGetByUsernameResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersGetByUsernameResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersGetByUsernameResponder = typeof usersGetByUsernameResponder & + KoaRuntimeResponder + +const usersGetByUsernameResponseValidator = responseValidationFactory( + [ + ["200", z.union([s_private_user, s_public_user])], + ["404", s_basic_error], + ], + undefined, +) export type UsersGetByUsername = ( params: Params, @@ -22799,8 +36003,8 @@ export type UsersGetByUsername = ( | Response<404, t_basic_error> > -export type UsersListAttestationsResponder = { - with200(): KoaRuntimeResponse<{ +const usersListAttestationsResponder = { + with200: r.with200<{ attestations?: { bundle?: { dsseEnvelope?: { @@ -22814,11 +36018,44 @@ export type UsersListAttestationsResponder = { bundle_url?: string repository_id?: number }[] - }> - with201(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with201: r.with201, + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersListAttestationsResponder = typeof usersListAttestationsResponder & + KoaRuntimeResponder + +const usersListAttestationsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + attestations: z + .array( + z.object({ + bundle: z + .object({ + mediaType: z.string().optional(), + verificationMaterial: z.record(z.unknown()).optional(), + dsseEnvelope: z.record(z.unknown()).optional(), + }) + .optional(), + repository_id: z.coerce.number().optional(), + bundle_url: z.string().optional(), + }), + ) + .optional(), + }), + ], + ["201", s_empty_object], + ["204", z.undefined()], + ["404", s_basic_error], + ], + undefined, +) export type UsersListAttestations = ( params: Params< @@ -22854,11 +36091,26 @@ export type UsersListAttestations = ( | Response<404, t_basic_error> > -export type PackagesListDockerMigrationConflictingPackagesForUserResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesListDockerMigrationConflictingPackagesForUserResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type PackagesListDockerMigrationConflictingPackagesForUserResponder = + typeof packagesListDockerMigrationConflictingPackagesForUserResponder & + KoaRuntimeResponder + +const packagesListDockerMigrationConflictingPackagesForUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_package)], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, + ) export type PackagesListDockerMigrationConflictingPackagesForUser = ( params: Params< @@ -22876,9 +36128,16 @@ export type PackagesListDockerMigrationConflictingPackagesForUser = ( | Response<403, t_basic_error> > -export type ActivityListEventsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListEventsForAuthenticatedUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListEventsForAuthenticatedUserResponder = + typeof activityListEventsForAuthenticatedUserResponder & KoaRuntimeResponder + +const activityListEventsForAuthenticatedUserResponseValidator = + responseValidationFactory([["200", z.array(s_event)]], undefined) export type ActivityListEventsForAuthenticatedUser = ( params: Params< @@ -22891,9 +36150,17 @@ export type ActivityListEventsForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -export type ActivityListOrgEventsForAuthenticatedUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListOrgEventsForAuthenticatedUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListOrgEventsForAuthenticatedUserResponder = + typeof activityListOrgEventsForAuthenticatedUserResponder & + KoaRuntimeResponder + +const activityListOrgEventsForAuthenticatedUserResponseValidator = + responseValidationFactory([["200", z.array(s_event)]], undefined) export type ActivityListOrgEventsForAuthenticatedUser = ( params: Params< @@ -22906,9 +36173,16 @@ export type ActivityListOrgEventsForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -export type ActivityListPublicEventsForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListPublicEventsForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListPublicEventsForUserResponder = + typeof activityListPublicEventsForUserResponder & KoaRuntimeResponder + +const activityListPublicEventsForUserResponseValidator = + responseValidationFactory([["200", z.array(s_event)]], undefined) export type ActivityListPublicEventsForUser = ( params: Params< @@ -22921,9 +36195,18 @@ export type ActivityListPublicEventsForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -export type UsersListFollowersForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListFollowersForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type UsersListFollowersForUserResponder = + typeof usersListFollowersForUserResponder & KoaRuntimeResponder + +const usersListFollowersForUserResponseValidator = responseValidationFactory( + [["200", z.array(s_simple_user)]], + undefined, +) export type UsersListFollowersForUser = ( params: Params< @@ -22936,9 +36219,18 @@ export type UsersListFollowersForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -export type UsersListFollowingForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListFollowingForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type UsersListFollowingForUserResponder = + typeof usersListFollowingForUserResponder & KoaRuntimeResponder + +const usersListFollowingForUserResponseValidator = responseValidationFactory( + [["200", z.array(s_simple_user)]], + undefined, +) export type UsersListFollowingForUser = ( params: Params< @@ -22951,10 +36243,22 @@ export type UsersListFollowingForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -export type UsersCheckFollowingForUserResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersCheckFollowingForUserResponder = { + with204: r.with204, + with404: r.with404, + withStatus: r.withStatus, +} + +type UsersCheckFollowingForUserResponder = + typeof usersCheckFollowingForUserResponder & KoaRuntimeResponder + +const usersCheckFollowingForUserResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ], + undefined, +) export type UsersCheckFollowingForUser = ( params: Params, @@ -22964,10 +36268,22 @@ export type UsersCheckFollowingForUser = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -export type GistsListForUserResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const gistsListForUserResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type GistsListForUserResponder = typeof gistsListForUserResponder & + KoaRuntimeResponder + +const gistsListForUserResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_base_gist)], + ["422", s_validation_error], + ], + undefined, +) export type GistsListForUser = ( params: Params< @@ -22984,9 +36300,18 @@ export type GistsListForUser = ( | Response<422, t_validation_error> > -export type UsersListGpgKeysForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListGpgKeysForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type UsersListGpgKeysForUserResponder = + typeof usersListGpgKeysForUserResponder & KoaRuntimeResponder + +const usersListGpgKeysForUserResponseValidator = responseValidationFactory( + [["200", z.array(s_gpg_key)]], + undefined, +) export type UsersListGpgKeysForUser = ( params: Params< @@ -22999,11 +36324,24 @@ export type UsersListGpgKeysForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_gpg_key[]>> -export type UsersGetContextForUserResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersGetContextForUserResponder = { + with200: r.with200, + with404: r.with404, + with422: r.with422, + withStatus: r.withStatus, +} + +type UsersGetContextForUserResponder = typeof usersGetContextForUserResponder & + KoaRuntimeResponder + +const usersGetContextForUserResponseValidator = responseValidationFactory( + [ + ["200", s_hovercard], + ["404", s_basic_error], + ["422", s_validation_error], + ], + undefined, +) export type UsersGetContextForUser = ( params: Params< @@ -23021,9 +36359,18 @@ export type UsersGetContextForUser = ( | Response<422, t_validation_error> > -export type AppsGetUserInstallationResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const appsGetUserInstallationResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type AppsGetUserInstallationResponder = + typeof appsGetUserInstallationResponder & KoaRuntimeResponder + +const appsGetUserInstallationResponseValidator = responseValidationFactory( + [["200", s_installation]], + undefined, +) export type AppsGetUserInstallation = ( params: Params, @@ -23031,9 +36378,18 @@ export type AppsGetUserInstallation = ( ctx: RouterContext, ) => Promise | Response<200, t_installation>> -export type UsersListPublicKeysForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListPublicKeysForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type UsersListPublicKeysForUserResponder = + typeof usersListPublicKeysForUserResponder & KoaRuntimeResponder + +const usersListPublicKeysForUserResponseValidator = responseValidationFactory( + [["200", z.array(s_key_simple)]], + undefined, +) export type UsersListPublicKeysForUser = ( params: Params< @@ -23046,9 +36402,18 @@ export type UsersListPublicKeysForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_key_simple[]>> -export type OrgsListForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const orgsListForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type OrgsListForUserResponder = typeof orgsListForUserResponder & + KoaRuntimeResponder + +const orgsListForUserResponseValidator = responseValidationFactory( + [["200", z.array(s_organization_simple)]], + undefined, +) export type OrgsListForUser = ( params: Params< @@ -23063,12 +36428,26 @@ export type OrgsListForUser = ( KoaRuntimeResponse | Response<200, t_organization_simple[]> > -export type PackagesListPackagesForUserResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesListPackagesForUserResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type PackagesListPackagesForUserResponder = + typeof packagesListPackagesForUserResponder & KoaRuntimeResponder + +const packagesListPackagesForUserResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_package)], + ["400", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ], + undefined, +) export type PackagesListPackagesForUser = ( params: Params< @@ -23087,9 +36466,18 @@ export type PackagesListPackagesForUser = ( | Response<403, t_basic_error> > -export type PackagesGetPackageForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesGetPackageForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PackagesGetPackageForUserResponder = + typeof packagesGetPackageForUserResponder & KoaRuntimeResponder + +const packagesGetPackageForUserResponseValidator = responseValidationFactory( + [["200", s_package]], + undefined, +) export type PackagesGetPackageForUser = ( params: Params, @@ -23097,12 +36485,26 @@ export type PackagesGetPackageForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_package>> -export type PackagesDeletePackageForUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesDeletePackageForUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesDeletePackageForUserResponder = + typeof packagesDeletePackageForUserResponder & KoaRuntimeResponder + +const packagesDeletePackageForUserResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, +) export type PackagesDeletePackageForUser = ( params: Params, @@ -23116,12 +36518,27 @@ export type PackagesDeletePackageForUser = ( | Response<404, t_basic_error> > -export type PackagesRestorePackageForUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesRestorePackageForUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesRestorePackageForUserResponder = + typeof packagesRestorePackageForUserResponder & KoaRuntimeResponder + +const packagesRestorePackageForUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesRestorePackageForUser = ( params: Params< @@ -23140,12 +36557,28 @@ export type PackagesRestorePackageForUser = ( | Response<404, t_basic_error> > -export type PackagesGetAllPackageVersionsForPackageOwnedByUserResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesGetAllPackageVersionsForPackageOwnedByUserResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesGetAllPackageVersionsForPackageOwnedByUserResponder = + typeof packagesGetAllPackageVersionsForPackageOwnedByUserResponder & + KoaRuntimeResponder + +const packagesGetAllPackageVersionsForPackageOwnedByUserResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_package_version)], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesGetAllPackageVersionsForPackageOwnedByUser = ( params: Params< @@ -23164,9 +36597,16 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByUser = ( | Response<404, t_basic_error> > -export type PackagesGetPackageVersionForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesGetPackageVersionForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PackagesGetPackageVersionForUserResponder = + typeof packagesGetPackageVersionForUserResponder & KoaRuntimeResponder + +const packagesGetPackageVersionForUserResponseValidator = + responseValidationFactory([["200", s_package_version]], undefined) export type PackagesGetPackageVersionForUser = ( params: Params< @@ -23179,12 +36619,27 @@ export type PackagesGetPackageVersionForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_package_version>> -export type PackagesDeletePackageVersionForUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesDeletePackageVersionForUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesDeletePackageVersionForUserResponder = + typeof packagesDeletePackageVersionForUserResponder & KoaRuntimeResponder + +const packagesDeletePackageVersionForUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesDeletePackageVersionForUser = ( params: Params< @@ -23203,12 +36658,27 @@ export type PackagesDeletePackageVersionForUser = ( | Response<404, t_basic_error> > -export type PackagesRestorePackageVersionForUserResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const packagesRestorePackageVersionForUserResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type PackagesRestorePackageVersionForUserResponder = + typeof packagesRestorePackageVersionForUserResponder & KoaRuntimeResponder + +const packagesRestorePackageVersionForUserResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_basic_error], + ["403", s_basic_error], + ["404", s_basic_error], + ], + undefined, + ) export type PackagesRestorePackageVersionForUser = ( params: Params< @@ -23227,10 +36697,22 @@ export type PackagesRestorePackageVersionForUser = ( | Response<404, t_basic_error> > -export type ProjectsListForUserResponder = { - with200(): KoaRuntimeResponse - with422(): KoaRuntimeResponse -} & KoaRuntimeResponder +const projectsListForUserResponder = { + with200: r.with200, + with422: r.with422, + withStatus: r.withStatus, +} + +type ProjectsListForUserResponder = typeof projectsListForUserResponder & + KoaRuntimeResponder + +const projectsListForUserResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_project)], + ["422", s_validation_error], + ], + undefined, +) export type ProjectsListForUser = ( params: Params< @@ -23247,9 +36729,16 @@ export type ProjectsListForUser = ( | Response<422, t_validation_error> > -export type ActivityListReceivedEventsForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListReceivedEventsForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListReceivedEventsForUserResponder = + typeof activityListReceivedEventsForUserResponder & KoaRuntimeResponder + +const activityListReceivedEventsForUserResponseValidator = + responseValidationFactory([["200", z.array(s_event)]], undefined) export type ActivityListReceivedEventsForUser = ( params: Params< @@ -23262,9 +36751,16 @@ export type ActivityListReceivedEventsForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -export type ActivityListReceivedPublicEventsForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListReceivedPublicEventsForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListReceivedPublicEventsForUserResponder = + typeof activityListReceivedPublicEventsForUserResponder & KoaRuntimeResponder + +const activityListReceivedPublicEventsForUserResponseValidator = + responseValidationFactory([["200", z.array(s_event)]], undefined) export type ActivityListReceivedPublicEventsForUser = ( params: Params< @@ -23277,9 +36773,18 @@ export type ActivityListReceivedPublicEventsForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -export type ReposListForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const reposListForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ReposListForUserResponder = typeof reposListForUserResponder & + KoaRuntimeResponder + +const reposListForUserResponseValidator = responseValidationFactory( + [["200", z.array(s_minimal_repository)]], + undefined, +) export type ReposListForUser = ( params: Params< @@ -23294,9 +36799,16 @@ export type ReposListForUser = ( KoaRuntimeResponse | Response<200, t_minimal_repository[]> > -export type BillingGetGithubActionsBillingUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const billingGetGithubActionsBillingUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type BillingGetGithubActionsBillingUserResponder = + typeof billingGetGithubActionsBillingUserResponder & KoaRuntimeResponder + +const billingGetGithubActionsBillingUserResponseValidator = + responseValidationFactory([["200", s_actions_billing_usage]], undefined) export type BillingGetGithubActionsBillingUser = ( params: Params< @@ -23311,9 +36823,16 @@ export type BillingGetGithubActionsBillingUser = ( KoaRuntimeResponse | Response<200, t_actions_billing_usage> > -export type BillingGetGithubPackagesBillingUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const billingGetGithubPackagesBillingUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type BillingGetGithubPackagesBillingUserResponder = + typeof billingGetGithubPackagesBillingUserResponder & KoaRuntimeResponder + +const billingGetGithubPackagesBillingUserResponseValidator = + responseValidationFactory([["200", s_packages_billing_usage]], undefined) export type BillingGetGithubPackagesBillingUser = ( params: Params< @@ -23328,9 +36847,16 @@ export type BillingGetGithubPackagesBillingUser = ( KoaRuntimeResponse | Response<200, t_packages_billing_usage> > -export type BillingGetSharedStorageBillingUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const billingGetSharedStorageBillingUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type BillingGetSharedStorageBillingUserResponder = + typeof billingGetSharedStorageBillingUserResponder & KoaRuntimeResponder + +const billingGetSharedStorageBillingUserResponseValidator = + responseValidationFactory([["200", s_combined_billing_usage]], undefined) export type BillingGetSharedStorageBillingUser = ( params: Params< @@ -23345,9 +36871,16 @@ export type BillingGetSharedStorageBillingUser = ( KoaRuntimeResponse | Response<200, t_combined_billing_usage> > -export type UsersListSocialAccountsForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListSocialAccountsForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type UsersListSocialAccountsForUserResponder = + typeof usersListSocialAccountsForUserResponder & KoaRuntimeResponder + +const usersListSocialAccountsForUserResponseValidator = + responseValidationFactory([["200", z.array(s_social_account)]], undefined) export type UsersListSocialAccountsForUser = ( params: Params< @@ -23360,9 +36893,16 @@ export type UsersListSocialAccountsForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_social_account[]>> -export type UsersListSshSigningKeysForUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const usersListSshSigningKeysForUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type UsersListSshSigningKeysForUserResponder = + typeof usersListSshSigningKeysForUserResponder & KoaRuntimeResponder + +const usersListSshSigningKeysForUserResponseValidator = + responseValidationFactory([["200", z.array(s_ssh_signing_key)]], undefined) export type UsersListSshSigningKeysForUser = ( params: Params< @@ -23375,9 +36915,19 @@ export type UsersListSshSigningKeysForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_ssh_signing_key[]>> -export type ActivityListReposStarredByUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListReposStarredByUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListReposStarredByUserResponder = + typeof activityListReposStarredByUserResponder & KoaRuntimeResponder + +const activityListReposStarredByUserResponseValidator = + responseValidationFactory( + [["200", z.union([z.array(s_starred_repository), z.array(s_repository)])]], + undefined, + ) export type ActivityListReposStarredByUser = ( params: Params< @@ -23393,9 +36943,16 @@ export type ActivityListReposStarredByUser = ( | Response<200, t_starred_repository[] | t_repository[]> > -export type ActivityListReposWatchedByUserResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const activityListReposWatchedByUserResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ActivityListReposWatchedByUserResponder = + typeof activityListReposWatchedByUserResponder & KoaRuntimeResponder + +const activityListReposWatchedByUserResponseValidator = + responseValidationFactory([["200", z.array(s_minimal_repository)]], undefined) export type ActivityListReposWatchedByUser = ( params: Params< @@ -23410,10 +36967,22 @@ export type ActivityListReposWatchedByUser = ( KoaRuntimeResponse | Response<200, t_minimal_repository[]> > -export type MetaGetAllVersionsResponder = { - with200(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const metaGetAllVersionsResponder = { + with200: r.with200, + with404: r.with404, + withStatus: r.withStatus, +} + +type MetaGetAllVersionsResponder = typeof metaGetAllVersionsResponder & + KoaRuntimeResponder + +const metaGetAllVersionsResponseValidator = responseValidationFactory( + [ + ["200", z.array(z.string())], + ["404", s_basic_error], + ], + undefined, +) export type MetaGetAllVersions = ( params: Params, @@ -23425,9 +36994,17 @@ export type MetaGetAllVersions = ( | Response<404, t_basic_error> > -export type MetaGetZenResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const metaGetZenResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type MetaGetZenResponder = typeof metaGetZenResponder & KoaRuntimeResponder + +const metaGetZenResponseValidator = responseValidationFactory( + [["200", z.string()]], + undefined, +) export type MetaGetZen = ( params: Params, @@ -24467,11 +38044,6 @@ export type Implementation = { export function createRouter(implementation: Implementation): KoaRouter { const router = new KoaRouter() - const metaRootResponseValidator = responseValidationFactory( - [["200", s_root]], - undefined, - ) - router.get("metaRoot", "/", async (ctx, next) => { const input = { params: undefined, @@ -24480,17 +38052,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .metaRoot(input, responder, ctx) + .metaRoot(input, metaRootResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24532,16 +38095,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .default("published"), }) - const securityAdvisoriesListGlobalAdvisoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_global_advisory)], - ["422", s_validation_error_simple], - ["429", s_basic_error], - ], - undefined, - ) - router.get( "securityAdvisoriesListGlobalAdvisories", "/advisories", @@ -24557,23 +38110,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .securityAdvisoriesListGlobalAdvisories(input, responder, ctx) + .securityAdvisoriesListGlobalAdvisories( + input, + securityAdvisoriesListGlobalAdvisoriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24594,15 +38136,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ghsa_id: z.string(), }) - const securityAdvisoriesGetGlobalAdvisoryResponseValidator = - responseValidationFactory( - [ - ["200", s_global_advisory], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "securityAdvisoriesGetGlobalAdvisory", "/advisories/:ghsa_id", @@ -24618,20 +38151,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .securityAdvisoriesGetGlobalAdvisory(input, responder, ctx) + .securityAdvisoriesGetGlobalAdvisory( + input, + securityAdvisoriesGetGlobalAdvisoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24648,11 +38173,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const appsGetAuthenticatedResponseValidator = responseValidationFactory( - [["200", s_integration]], - undefined, - ) - router.get("appsGetAuthenticated", "/app", async (ctx, next) => { const input = { params: undefined, @@ -24661,17 +38181,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetAuthenticated(input, responder, ctx) + .appsGetAuthenticated(input, appsGetAuthenticatedResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24686,29 +38197,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const appsCreateFromManifestParamSchema = z.object({ code: z.string() }) - const appsCreateFromManifestResponseValidator = responseValidationFactory( - [ - [ - "201", - z.intersection( - s_integration, - z.intersection( - z.object({ - client_id: z.string(), - client_secret: z.string(), - webhook_secret: z.string().nullable(), - pem: z.string(), - }), - z.record(z.unknown()), - ), - ), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "appsCreateFromManifest", "/app-manifests/:code/conversions", @@ -24724,31 +38212,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse< - t_integration & { - client_id: string - client_secret: string - pem: string - webhook_secret: string | null - [key: string]: unknown | undefined - } - >(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsCreateFromManifest(input, responder, ctx) + .appsCreateFromManifest(input, appsCreateFromManifestResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24762,11 +38227,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const appsGetWebhookConfigForAppResponseValidator = responseValidationFactory( - [["200", s_webhook_config]], - undefined, - ) - router.get( "appsGetWebhookConfigForApp", "/app/hook/config", @@ -24778,17 +38238,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetWebhookConfigForApp(input, responder, ctx) + .appsGetWebhookConfigForApp( + input, + appsGetWebhookConfigForAppResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24809,9 +38264,6 @@ export function createRouter(implementation: Implementation): KoaRouter { insecure_ssl: s_webhook_config_insecure_ssl.optional(), }) - const appsUpdateWebhookConfigForAppResponseValidator = - responseValidationFactory([["200", s_webhook_config]], undefined) - router.patch( "appsUpdateWebhookConfigForApp", "/app/hook/config", @@ -24827,17 +38279,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsUpdateWebhookConfigForApp(input, responder, ctx) + .appsUpdateWebhookConfigForApp( + input, + appsUpdateWebhookConfigForAppResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24856,15 +38303,6 @@ export function createRouter(implementation: Implementation): KoaRouter { cursor: z.string().optional(), }) - const appsListWebhookDeliveriesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_hook_delivery_item)], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "appsListWebhookDeliveries", "/app/hook/deliveries", @@ -24880,23 +38318,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListWebhookDeliveries(input, responder, ctx) + .appsListWebhookDeliveries( + input, + appsListWebhookDeliveriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24914,15 +38341,6 @@ export function createRouter(implementation: Implementation): KoaRouter { delivery_id: z.coerce.number(), }) - const appsGetWebhookDeliveryResponseValidator = responseValidationFactory( - [ - ["200", s_hook_delivery], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "appsGetWebhookDelivery", "/app/hook/deliveries/:delivery_id", @@ -24938,23 +38356,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetWebhookDelivery(input, responder, ctx) + .appsGetWebhookDelivery(input, appsGetWebhookDeliveryResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24972,16 +38375,6 @@ export function createRouter(implementation: Implementation): KoaRouter { delivery_id: z.coerce.number(), }) - const appsRedeliverWebhookDeliveryResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "appsRedeliverWebhookDelivery", "/app/hook/deliveries/:delivery_id/attempts", @@ -24997,25 +38390,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsRedeliverWebhookDelivery(input, responder, ctx) + .appsRedeliverWebhookDelivery( + input, + appsRedeliverWebhookDeliveryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25034,16 +38414,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListInstallationRequestsForAuthenticatedAppResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration_installation_request)], - ["304", z.undefined()], - ["401", s_basic_error], - ], - undefined, - ) - router.get( "appsListInstallationRequestsForAuthenticatedApp", "/app/installation-requests", @@ -25059,25 +38429,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListInstallationRequestsForAuthenticatedApp(input, responder, ctx) + .appsListInstallationRequestsForAuthenticatedApp( + input, + appsListInstallationRequestsForAuthenticatedAppResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25102,11 +38459,6 @@ export function createRouter(implementation: Implementation): KoaRouter { outdated: z.string().optional(), }) - const appsListInstallationsResponseValidator = responseValidationFactory( - [["200", z.array(s_installation)]], - undefined, - ) - router.get( "appsListInstallations", "/app/installations", @@ -25122,17 +38474,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListInstallations(input, responder, ctx) + .appsListInstallations(input, appsListInstallationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25150,14 +38493,6 @@ export function createRouter(implementation: Implementation): KoaRouter { installation_id: z.coerce.number(), }) - const appsGetInstallationResponseValidator = responseValidationFactory( - [ - ["200", s_installation], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "appsGetInstallation", "/app/installations/:installation_id", @@ -25173,20 +38508,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetInstallation(input, responder, ctx) + .appsGetInstallation(input, appsGetInstallationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25204,14 +38527,6 @@ export function createRouter(implementation: Implementation): KoaRouter { installation_id: z.coerce.number(), }) - const appsDeleteInstallationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "appsDeleteInstallation", "/app/installations/:installation_id", @@ -25227,20 +38542,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsDeleteInstallation(input, responder, ctx) + .appsDeleteInstallation(input, appsDeleteInstallationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25266,18 +38569,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const appsCreateInstallationAccessTokenResponseValidator = - responseValidationFactory( - [ - ["201", s_installation_token], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "appsCreateInstallationAccessToken", "/app/installations/:installation_id/access_tokens", @@ -25297,29 +38588,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsCreateInstallationAccessToken(input, responder, ctx) + .appsCreateInstallationAccessToken( + input, + appsCreateInstallationAccessTokenResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25340,14 +38614,6 @@ export function createRouter(implementation: Implementation): KoaRouter { installation_id: z.coerce.number(), }) - const appsSuspendInstallationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.put( "appsSuspendInstallation", "/app/installations/:installation_id/suspended", @@ -25363,20 +38629,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsSuspendInstallation(input, responder, ctx) + .appsSuspendInstallation(input, appsSuspendInstallationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25394,14 +38648,6 @@ export function createRouter(implementation: Implementation): KoaRouter { installation_id: z.coerce.number(), }) - const appsUnsuspendInstallationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "appsUnsuspendInstallation", "/app/installations/:installation_id/suspended", @@ -25417,20 +38663,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsUnsuspendInstallation(input, responder, ctx) + .appsUnsuspendInstallation( + input, + appsUnsuspendInstallationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25450,14 +38688,6 @@ export function createRouter(implementation: Implementation): KoaRouter { access_token: z.string(), }) - const appsDeleteAuthorizationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "appsDeleteAuthorization", "/applications/:client_id/grant", @@ -25477,20 +38707,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsDeleteAuthorization(input, responder, ctx) + .appsDeleteAuthorization(input, appsDeleteAuthorizationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25508,15 +38726,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const appsCheckTokenBodySchema = z.object({ access_token: z.string() }) - const appsCheckTokenResponseValidator = responseValidationFactory( - [ - ["200", s_authorization], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "appsCheckToken", "/applications/:client_id/token", @@ -25536,23 +38745,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsCheckToken(input, responder, ctx) + .appsCheckToken(input, appsCheckTokenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25570,14 +38764,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const appsResetTokenBodySchema = z.object({ access_token: z.string() }) - const appsResetTokenResponseValidator = responseValidationFactory( - [ - ["200", s_authorization], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "appsResetToken", "/applications/:client_id/token", @@ -25597,20 +38783,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsResetToken(input, responder, ctx) + .appsResetToken(input, appsResetTokenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25628,14 +38802,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const appsDeleteTokenBodySchema = z.object({ access_token: z.string() }) - const appsDeleteTokenResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "appsDeleteToken", "/applications/:client_id/token", @@ -25655,20 +38821,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsDeleteToken(input, responder, ctx) + .appsDeleteToken(input, appsDeleteTokenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25693,17 +38847,6 @@ export function createRouter(implementation: Implementation): KoaRouter { permissions: s_app_permissions.optional(), }) - const appsScopeTokenResponseValidator = responseValidationFactory( - [ - ["200", s_authorization], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "appsScopeToken", "/applications/:client_id/token/scoped", @@ -25723,29 +38866,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsScopeToken(input, responder, ctx) + .appsScopeToken(input, appsScopeTokenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25761,15 +38883,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const appsGetBySlugParamSchema = z.object({ app_slug: z.string() }) - const appsGetBySlugResponseValidator = responseValidationFactory( - [ - ["200", s_integration], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get("appsGetBySlug", "/apps/:app_slug", async (ctx, next) => { const input = { params: parseRequestInput( @@ -25782,23 +38895,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetBySlug(input, responder, ctx) + .appsGetBySlug(input, appsGetBySlugResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25815,14 +38913,6 @@ export function createRouter(implementation: Implementation): KoaRouter { assignment_id: z.coerce.number(), }) - const classroomGetAnAssignmentResponseValidator = responseValidationFactory( - [ - ["200", s_classroom_assignment], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "classroomGetAnAssignment", "/assignments/:assignment_id", @@ -25838,20 +38928,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .classroomGetAnAssignment(input, responder, ctx) + .classroomGetAnAssignment(input, classroomGetAnAssignmentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25874,12 +38952,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const classroomListAcceptedAssignmentsForAnAssignmentResponseValidator = - responseValidationFactory( - [["200", z.array(s_classroom_accepted_assignment)]], - undefined, - ) - router.get( "classroomListAcceptedAssignmentsForAnAssignment", "/assignments/:assignment_id/accepted_assignments", @@ -25899,17 +38971,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .classroomListAcceptedAssignmentsForAnAssignment(input, responder, ctx) + .classroomListAcceptedAssignmentsForAnAssignment( + input, + classroomListAcceptedAssignmentsForAnAssignmentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25931,15 +38998,6 @@ export function createRouter(implementation: Implementation): KoaRouter { assignment_id: z.coerce.number(), }) - const classroomGetAssignmentGradesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_classroom_assignment_grade)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "classroomGetAssignmentGrades", "/assignments/:assignment_id/grades", @@ -25955,20 +39013,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .classroomGetAssignmentGrades(input, responder, ctx) + .classroomGetAssignmentGrades( + input, + classroomGetAssignmentGradesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25987,11 +39037,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const classroomListClassroomsResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_classroom)]], - undefined, - ) - router.get("classroomListClassrooms", "/classrooms", async (ctx, next) => { const input = { params: undefined, @@ -26004,17 +39049,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .classroomListClassrooms(input, responder, ctx) + .classroomListClassrooms(input, classroomListClassroomsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26031,14 +39067,6 @@ export function createRouter(implementation: Implementation): KoaRouter { classroom_id: z.coerce.number(), }) - const classroomGetAClassroomResponseValidator = responseValidationFactory( - [ - ["200", s_classroom], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "classroomGetAClassroom", "/classrooms/:classroom_id", @@ -26054,20 +39082,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .classroomGetAClassroom(input, responder, ctx) + .classroomGetAClassroom(input, classroomGetAClassroomResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26090,12 +39106,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const classroomListAssignmentsForAClassroomResponseValidator = - responseValidationFactory( - [["200", z.array(s_simple_classroom_assignment)]], - undefined, - ) - router.get( "classroomListAssignmentsForAClassroom", "/classrooms/:classroom_id/assignments", @@ -26115,17 +39125,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .classroomListAssignmentsForAClassroom(input, responder, ctx) + .classroomListAssignmentsForAClassroom( + input, + classroomListAssignmentsForAClassroomResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26142,15 +39147,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const codesOfConductGetAllCodesOfConductResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_of_conduct)], - ["304", z.undefined()], - ], - undefined, - ) - router.get( "codesOfConductGetAllCodesOfConduct", "/codes_of_conduct", @@ -26162,20 +39158,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codesOfConductGetAllCodesOfConduct(input, responder, ctx) + .codesOfConductGetAllCodesOfConduct( + input, + codesOfConductGetAllCodesOfConductResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26194,16 +39182,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const codesOfConductGetConductCodeParamSchema = z.object({ key: z.string() }) - const codesOfConductGetConductCodeResponseValidator = - responseValidationFactory( - [ - ["200", s_code_of_conduct], - ["304", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codesOfConductGetConductCode", "/codes_of_conduct/:key", @@ -26219,23 +39197,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codesOfConductGetConductCode(input, responder, ctx) + .codesOfConductGetConductCode( + input, + codesOfConductGetConductCodeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26249,14 +39216,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const emojisGetResponseValidator = responseValidationFactory( - [ - ["200", z.record(z.string())], - ["304", z.undefined()], - ], - undefined, - ) - router.get("emojisGet", "/emojis", async (ctx, next) => { const input = { params: undefined, @@ -26265,22 +39224,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - [key: string]: string | undefined - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .emojisGet(input, responder, ctx) + .emojisGet(input, emojisGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26303,16 +39248,6 @@ export function createRouter(implementation: Implementation): KoaRouter { after: z.string().optional(), }) - const codeSecurityGetConfigurationsForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_security_configuration)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codeSecurityGetConfigurationsForEnterprise", "/enterprises/:enterprise/code-security/configurations", @@ -26332,23 +39267,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityGetConfigurationsForEnterprise(input, responder, ctx) + .codeSecurityGetConfigurationsForEnterprise( + input, + codeSecurityGetConfigurationsForEnterpriseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26439,17 +39363,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .default("enforced"), }) - const codeSecurityCreateConfigurationForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["201", s_code_security_configuration], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "codeSecurityCreateConfigurationForEnterprise", "/enterprises/:enterprise/code-security/configurations", @@ -26469,26 +39382,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityCreateConfigurationForEnterprise(input, responder, ctx) + .codeSecurityCreateConfigurationForEnterprise( + input, + codeSecurityCreateConfigurationForEnterpriseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26509,12 +39408,6 @@ export function createRouter(implementation: Implementation): KoaRouter { { enterprise: z.string() }, ) - const codeSecurityGetDefaultConfigurationsForEnterpriseResponseValidator = - responseValidationFactory( - [["200", s_code_security_default_configurations]], - undefined, - ) - router.get( "codeSecurityGetDefaultConfigurationsForEnterprise", "/enterprises/:enterprise/code-security/configurations/defaults", @@ -26530,21 +39423,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codeSecurityGetDefaultConfigurationsForEnterprise( input, - responder, + codeSecurityGetDefaultConfigurationsForEnterpriseResponder, ctx, ) .catch((err) => { @@ -26569,17 +39451,6 @@ export function createRouter(implementation: Implementation): KoaRouter { configuration_id: z.coerce.number(), }) - const codeSecurityGetSingleConfigurationForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codeSecurityGetSingleConfigurationForEnterprise", "/enterprises/:enterprise/code-security/configurations/:configuration_id", @@ -26595,26 +39466,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityGetSingleConfigurationForEnterprise(input, responder, ctx) + .codeSecurityGetSingleConfigurationForEnterprise( + input, + codeSecurityGetSingleConfigurationForEnterpriseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26687,18 +39544,6 @@ export function createRouter(implementation: Implementation): KoaRouter { enforcement: z.enum(["enforced", "unenforced"]).optional(), }) - const codeSecurityUpdateEnterpriseConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.patch( "codeSecurityUpdateEnterpriseConfiguration", "/enterprises/:enterprise/code-security/configurations/:configuration_id", @@ -26718,29 +39563,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityUpdateEnterpriseConfiguration(input, responder, ctx) + .codeSecurityUpdateEnterpriseConfiguration( + input, + codeSecurityUpdateEnterpriseConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26762,18 +39590,6 @@ export function createRouter(implementation: Implementation): KoaRouter { configuration_id: z.coerce.number(), }) - const codeSecurityDeleteConfigurationForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.delete( "codeSecurityDeleteConfigurationForEnterprise", "/enterprises/:enterprise/code-security/configurations/:configuration_id", @@ -26789,29 +39605,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityDeleteConfigurationForEnterprise(input, responder, ctx) + .codeSecurityDeleteConfigurationForEnterprise( + input, + codeSecurityDeleteConfigurationForEnterpriseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26837,17 +39636,6 @@ export function createRouter(implementation: Implementation): KoaRouter { scope: z.enum(["all", "all_without_configurations"]), }) - const codeSecurityAttachEnterpriseConfigurationResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.post( "codeSecurityAttachEnterpriseConfiguration", "/enterprises/:enterprise/code-security/configurations/:configuration_id/attach", @@ -26867,28 +39655,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityAttachEnterpriseConfiguration(input, responder, ctx) + .codeSecurityAttachEnterpriseConfiguration( + input, + codeSecurityAttachEnterpriseConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26916,24 +39688,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const codeSecuritySetConfigurationAsDefaultForEnterpriseResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - default_for_new_repos: z - .enum(["all", "none", "private_and_internal", "public"]) - .optional(), - configuration: s_code_security_configuration.optional(), - }), - ], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.put( "codeSecuritySetConfigurationAsDefaultForEnterprise", "/enterprises/:enterprise/code-security/configurations/:configuration_id/defaults", @@ -26953,32 +39707,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - configuration?: t_code_security_configuration - default_for_new_repos?: - | "all" - | "none" - | "private_and_internal" - | "public" - }>(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codeSecuritySetConfigurationAsDefaultForEnterprise( input, - responder, + codeSecuritySetConfigurationAsDefaultForEnterpriseResponder, ctx, ) .catch((err) => { @@ -27009,16 +39741,6 @@ export function createRouter(implementation: Implementation): KoaRouter { status: z.string().optional().default("all"), }) - const codeSecurityGetRepositoriesForEnterpriseConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_security_configuration_repositories)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codeSecurityGetRepositoriesForEnterpriseConfiguration", "/enterprises/:enterprise/code-security/configurations/:configuration_id/repositories", @@ -27038,27 +39760,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_code_security_configuration_repositories[] - >(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codeSecurityGetRepositoriesForEnterpriseConfiguration( input, - responder, + codeSecurityGetRepositoriesForEnterpriseConfigurationResponder, ctx, ) .catch((err) => { @@ -27101,18 +39806,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const dependabotListAlertsForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_dependabot_alert_with_repository)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.get( "dependabotListAlertsForEnterprise", "/enterprises/:enterprise/dependabot/alerts", @@ -27132,31 +39825,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotListAlertsForEnterprise(input, responder, ctx) + .dependabotListAlertsForEnterprise( + input, + dependabotListAlertsForEnterpriseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27191,23 +39865,6 @@ export function createRouter(implementation: Implementation): KoaRouter { is_multi_repo: PermissiveBoolean.optional().default(false), }) - const secretScanningListAlertsForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_organization_secret_scanning_alert)], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "secretScanningListAlertsForEnterprise", "/enterprises/:enterprise/secret-scanning/alerts", @@ -27227,29 +39884,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .secretScanningListAlertsForEnterprise(input, responder, ctx) + .secretScanningListAlertsForEnterprise( + input, + secretScanningListAlertsForEnterpriseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27271,23 +39911,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListPublicEventsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_event)], - ["304", z.undefined()], - ["403", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get("activityListPublicEvents", "/events", async (ctx, next) => { const input = { params: undefined, @@ -27300,30 +39923,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListPublicEvents(input, responder, ctx) + .activityListPublicEvents(input, activityListPublicEventsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27336,11 +39937,6 @@ export function createRouter(implementation: Implementation): KoaRouter { return next() }) - const activityGetFeedsResponseValidator = responseValidationFactory( - [["200", s_feed]], - undefined, - ) - router.get("activityGetFeeds", "/feeds", async (ctx, next) => { const input = { params: undefined, @@ -27349,17 +39945,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityGetFeeds(input, responder, ctx) + .activityGetFeeds(input, activityGetFeedsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27378,15 +39965,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const gistsListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_base_gist)], - ["304", z.undefined()], - ["403", s_basic_error], - ], - undefined, - ) - router.get("gistsList", "/gists", async (ctx, next) => { const input = { params: undefined, @@ -27399,23 +39977,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsList(input, responder, ctx) + .gistsList(input, gistsListResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27439,17 +40002,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const gistsCreateResponseValidator = responseValidationFactory( - [ - ["201", s_gist_simple], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post("gistsCreate", "/gists", async (ctx, next) => { const input = { params: undefined, @@ -27462,29 +40014,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsCreate(input, responder, ctx) + .gistsCreate(input, gistsCreateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27503,16 +40034,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const gistsListPublicResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_base_gist)], - ["304", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get("gistsListPublic", "/gists/public", async (ctx, next) => { const input = { params: undefined, @@ -27525,26 +40046,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsListPublic(input, responder, ctx) + .gistsListPublic(input, gistsListPublicResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27563,16 +40066,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const gistsListStarredResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_base_gist)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get("gistsListStarred", "/gists/starred", async (ctx, next) => { const input = { params: undefined, @@ -27585,26 +40078,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsListStarred(input, responder, ctx) + .gistsListStarred(input, gistsListStarredResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27619,29 +40094,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gistsGetParamSchema = z.object({ gist_id: z.string() }) - const gistsGetResponseValidator = responseValidationFactory( - [ - ["200", s_gist_simple], - ["304", z.undefined()], - [ - "403", - z.object({ - block: z - .object({ - reason: z.string().optional(), - created_at: z.string().optional(), - html_url: z.string().nullable().optional(), - }) - .optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.get("gistsGet", "/gists/:gist_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -27654,34 +40106,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse<{ - block?: { - created_at?: string - html_url?: string | null - reason?: string - } - documentation_url?: string - message?: string - }>(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsGet(input, responder, ctx) + .gistsGet(input, gistsGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27712,15 +40138,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .nullable() - const gistsUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_gist_simple], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch("gistsUpdate", "/gists/:gist_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -27737,23 +40154,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsUpdate(input, responder, ctx) + .gistsUpdate(input, gistsUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27768,16 +40170,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gistsDeleteParamSchema = z.object({ gist_id: z.string() }) - const gistsDeleteResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete("gistsDelete", "/gists/:gist_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -27790,26 +40182,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsDelete(input, responder, ctx) + .gistsDelete(input, gistsDeleteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27829,16 +40203,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const gistsListCommentsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_gist_comment)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "gistsListComments", "/gists/:gist_id/comments", @@ -27858,26 +40222,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsListComments(input, responder, ctx) + .gistsListComments(input, gistsListCommentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27895,16 +40241,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gistsCreateCommentBodySchema = z.object({ body: z.string().max(65535) }) - const gistsCreateCommentResponseValidator = responseValidationFactory( - [ - ["201", s_gist_comment], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "gistsCreateComment", "/gists/:gist_id/comments", @@ -27924,26 +40260,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsCreateComment(input, responder, ctx) + .gistsCreateComment(input, gistsCreateCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27962,29 +40280,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_id: z.coerce.number(), }) - const gistsGetCommentResponseValidator = responseValidationFactory( - [ - ["200", s_gist_comment], - ["304", z.undefined()], - [ - "403", - z.object({ - block: z - .object({ - reason: z.string().optional(), - created_at: z.string().optional(), - html_url: z.string().nullable().optional(), - }) - .optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "gistsGetComment", "/gists/:gist_id/comments/:comment_id", @@ -28000,34 +40295,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse<{ - block?: { - created_at?: string - html_url?: string | null - reason?: string - } - documentation_url?: string - message?: string - }>(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsGetComment(input, responder, ctx) + .gistsGetComment(input, gistsGetCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28048,14 +40317,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gistsUpdateCommentBodySchema = z.object({ body: z.string().max(65535) }) - const gistsUpdateCommentResponseValidator = responseValidationFactory( - [ - ["200", s_gist_comment], - ["404", s_basic_error], - ], - undefined, - ) - router.patch( "gistsUpdateComment", "/gists/:gist_id/comments/:comment_id", @@ -28075,20 +40336,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsUpdateComment(input, responder, ctx) + .gistsUpdateComment(input, gistsUpdateCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28107,16 +40356,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_id: z.coerce.number(), }) - const gistsDeleteCommentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "gistsDeleteComment", "/gists/:gist_id/comments/:comment_id", @@ -28132,26 +40371,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsDeleteComment(input, responder, ctx) + .gistsDeleteComment(input, gistsDeleteCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28172,16 +40393,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const gistsListCommitsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_gist_commit)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "gistsListCommits", "/gists/:gist_id/commits", @@ -28201,26 +40412,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsListCommits(input, responder, ctx) + .gistsListCommits(input, gistsListCommitsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28241,16 +40434,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const gistsListForksResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_gist_simple)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get("gistsListForks", "/gists/:gist_id/forks", async (ctx, next) => { const input = { params: parseRequestInput( @@ -28267,26 +40450,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsListForks(input, responder, ctx) + .gistsListForks(input, gistsListForksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28301,17 +40466,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gistsForkParamSchema = z.object({ gist_id: z.string() }) - const gistsForkResponseValidator = responseValidationFactory( - [ - ["201", s_base_gist], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post("gistsFork", "/gists/:gist_id/forks", async (ctx, next) => { const input = { params: parseRequestInput( @@ -28324,29 +40478,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsFork(input, responder, ctx) + .gistsFork(input, gistsForkResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28361,16 +40494,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gistsCheckIsStarredParamSchema = z.object({ gist_id: z.string() }) - const gistsCheckIsStarredResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", z.object({})], - ], - undefined, - ) - router.get( "gistsCheckIsStarred", "/gists/:gist_id/star", @@ -28386,26 +40509,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsCheckIsStarred(input, responder, ctx) + .gistsCheckIsStarred(input, gistsCheckIsStarredResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28421,16 +40526,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gistsStarParamSchema = z.object({ gist_id: z.string() }) - const gistsStarResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.put("gistsStar", "/gists/:gist_id/star", async (ctx, next) => { const input = { params: parseRequestInput( @@ -28443,26 +40538,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsStar(input, responder, ctx) + .gistsStar(input, gistsStarResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28477,16 +40554,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gistsUnstarParamSchema = z.object({ gist_id: z.string() }) - const gistsUnstarResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete("gistsUnstar", "/gists/:gist_id/star", async (ctx, next) => { const input = { params: parseRequestInput( @@ -28499,26 +40566,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsUnstar(input, responder, ctx) + .gistsUnstar(input, gistsUnstarResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28536,16 +40585,6 @@ export function createRouter(implementation: Implementation): KoaRouter { sha: z.string(), }) - const gistsGetRevisionResponseValidator = responseValidationFactory( - [ - ["200", s_gist_simple], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get("gistsGetRevision", "/gists/:gist_id/:sha", async (ctx, next) => { const input = { params: parseRequestInput( @@ -28558,26 +40597,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsGetRevision(input, responder, ctx) + .gistsGetRevision(input, gistsGetRevisionResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28590,14 +40611,6 @@ export function createRouter(implementation: Implementation): KoaRouter { return next() }) - const gitignoreGetAllTemplatesResponseValidator = responseValidationFactory( - [ - ["200", z.array(z.string())], - ["304", z.undefined()], - ], - undefined, - ) - router.get( "gitignoreGetAllTemplates", "/gitignore/templates", @@ -28609,20 +40622,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitignoreGetAllTemplates(input, responder, ctx) + .gitignoreGetAllTemplates(input, gitignoreGetAllTemplatesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28638,14 +40639,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gitignoreGetTemplateParamSchema = z.object({ name: z.string() }) - const gitignoreGetTemplateResponseValidator = responseValidationFactory( - [ - ["200", s_gitignore_template], - ["304", z.undefined()], - ], - undefined, - ) - router.get( "gitignoreGetTemplate", "/gitignore/templates/:name", @@ -28661,20 +40654,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitignoreGetTemplate(input, responder, ctx) + .gitignoreGetTemplate(input, gitignoreGetTemplateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28693,24 +40674,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListReposAccessibleToInstallationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_repository), - repository_selection: z.string().optional(), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "appsListReposAccessibleToInstallation", "/installation/repositories", @@ -28726,30 +40689,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_repository[] - repository_selection?: string - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListReposAccessibleToInstallation(input, responder, ctx) + .appsListReposAccessibleToInstallation( + input, + appsListReposAccessibleToInstallationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28766,9 +40711,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const appsRevokeInstallationAccessTokenResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "appsRevokeInstallationAccessToken", "/installation/token", @@ -28780,17 +40722,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsRevokeInstallationAccessToken(input, responder, ctx) + .appsRevokeInstallationAccessToken( + input, + appsRevokeInstallationAccessTokenResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28828,16 +40765,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["304", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get("issuesList", "/issues", async (ctx, next) => { const input = { params: undefined, @@ -28850,26 +40777,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesList(input, responder, ctx) + .issuesList(input, issuesListResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28888,14 +40797,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const licensesGetAllCommonlyUsedResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_license_simple)], - ["304", z.undefined()], - ], - undefined, - ) - router.get("licensesGetAllCommonlyUsed", "/licenses", async (ctx, next) => { const input = { params: undefined, @@ -28908,20 +40809,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .licensesGetAllCommonlyUsed(input, responder, ctx) + .licensesGetAllCommonlyUsed( + input, + licensesGetAllCommonlyUsedResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28936,16 +40829,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const licensesGetParamSchema = z.object({ license: z.string() }) - const licensesGetResponseValidator = responseValidationFactory( - [ - ["200", s_license], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get("licensesGet", "/licenses/:license", async (ctx, next) => { const input = { params: parseRequestInput( @@ -28958,26 +40841,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .licensesGet(input, responder, ctx) + .licensesGet(input, licensesGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28996,14 +40861,6 @@ export function createRouter(implementation: Implementation): KoaRouter { context: z.string().optional(), }) - const markdownRenderResponseValidator = responseValidationFactory( - [ - ["200", z.string()], - ["304", z.undefined()], - ], - undefined, - ) - router.post("markdownRender", "/markdown", async (ctx, next) => { const input = { params: undefined, @@ -29016,20 +40873,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .markdownRender(input, responder, ctx) + .markdownRender(input, markdownRenderResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29044,14 +40889,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const markdownRenderRawBodySchema = z.string().optional() - const markdownRenderRawResponseValidator = responseValidationFactory( - [ - ["200", z.string()], - ["304", z.undefined()], - ], - undefined, - ) - router.post("markdownRenderRaw", "/markdown/raw", async (ctx, next) => { const input = { params: undefined, @@ -29064,20 +40901,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .markdownRenderRaw(input, responder, ctx) + .markdownRenderRaw(input, markdownRenderRawResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29094,16 +40919,6 @@ export function createRouter(implementation: Implementation): KoaRouter { account_id: z.coerce.number(), }) - const appsGetSubscriptionPlanForAccountResponseValidator = - responseValidationFactory( - [ - ["200", s_marketplace_purchase], - ["401", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "appsGetSubscriptionPlanForAccount", "/marketplace_listing/accounts/:account_id", @@ -29119,23 +40934,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetSubscriptionPlanForAccount(input, responder, ctx) + .appsGetSubscriptionPlanForAccount( + input, + appsGetSubscriptionPlanForAccountResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29157,15 +40961,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListPlansResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_marketplace_listing_plan)], - ["401", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "appsListPlans", "/marketplace_listing/plans", @@ -29181,23 +40976,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListPlans(input, responder, ctx) + .appsListPlans(input, appsListPlansResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29222,16 +41002,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListAccountsForPlanResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_marketplace_purchase)], - ["401", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "appsListAccountsForPlan", "/marketplace_listing/plans/:plan_id/accounts", @@ -29251,26 +41021,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListAccountsForPlan(input, responder, ctx) + .appsListAccountsForPlan(input, appsListAccountsForPlanResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29288,16 +41040,6 @@ export function createRouter(implementation: Implementation): KoaRouter { account_id: z.coerce.number(), }) - const appsGetSubscriptionPlanForAccountStubbedResponseValidator = - responseValidationFactory( - [ - ["200", s_marketplace_purchase], - ["401", s_basic_error], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "appsGetSubscriptionPlanForAccountStubbed", "/marketplace_listing/stubbed/accounts/:account_id", @@ -29313,23 +41055,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetSubscriptionPlanForAccountStubbed(input, responder, ctx) + .appsGetSubscriptionPlanForAccountStubbed( + input, + appsGetSubscriptionPlanForAccountStubbedResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29351,14 +41082,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListPlansStubbedResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_marketplace_listing_plan)], - ["401", s_basic_error], - ], - undefined, - ) - router.get( "appsListPlansStubbed", "/marketplace_listing/stubbed/plans", @@ -29374,20 +41097,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListPlansStubbed(input, responder, ctx) + .appsListPlansStubbed(input, appsListPlansStubbedResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29412,15 +41123,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListAccountsForPlanStubbedResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_marketplace_purchase)], - ["401", s_basic_error], - ], - undefined, - ) - router.get( "appsListAccountsForPlanStubbed", "/marketplace_listing/stubbed/plans/:plan_id/accounts", @@ -29440,20 +41142,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListAccountsForPlanStubbed(input, responder, ctx) + .appsListAccountsForPlanStubbed( + input, + appsListAccountsForPlanStubbedResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29467,14 +41161,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const metaGetResponseValidator = responseValidationFactory( - [ - ["200", s_api_overview], - ["304", z.undefined()], - ], - undefined, - ) - router.get("metaGet", "/meta", async (ctx, next) => { const input = { params: undefined, @@ -29483,20 +41169,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .metaGet(input, responder, ctx) + .metaGet(input, metaGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29519,18 +41193,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListPublicEventsForRepoNetworkResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_event)], - ["301", s_basic_error], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "activityListPublicEventsForRepoNetwork", "/networks/:owner/:repo/events", @@ -29550,29 +41212,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListPublicEventsForRepoNetwork(input, responder, ctx) + .activityListPublicEventsForRepoNetwork( + input, + activityListPublicEventsForRepoNetworkResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29598,18 +41243,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(50), }) - const activityListNotificationsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_thread)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "activityListNotificationsForAuthenticatedUser", "/notifications", @@ -29625,29 +41258,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListNotificationsForAuthenticatedUser(input, responder, ctx) + .activityListNotificationsForAuthenticatedUser( + input, + activityListNotificationsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29671,18 +41287,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const activityMarkNotificationsAsReadResponseValidator = - responseValidationFactory( - [ - ["202", z.object({ message: z.string().optional() })], - ["205", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.put( "activityMarkNotificationsAsRead", "/notifications", @@ -29698,31 +41302,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - message?: string - }>(202) - }, - with205() { - return new KoaRuntimeResponse(205) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityMarkNotificationsAsRead(input, responder, ctx) + .activityMarkNotificationsAsRead( + input, + activityMarkNotificationsAsReadResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29740,16 +41325,6 @@ export function createRouter(implementation: Implementation): KoaRouter { thread_id: z.coerce.number(), }) - const activityGetThreadResponseValidator = responseValidationFactory( - [ - ["200", s_thread], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "activityGetThread", "/notifications/threads/:thread_id", @@ -29765,26 +41340,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityGetThread(input, responder, ctx) + .activityGetThread(input, activityGetThreadResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29802,15 +41359,6 @@ export function createRouter(implementation: Implementation): KoaRouter { thread_id: z.coerce.number(), }) - const activityMarkThreadAsReadResponseValidator = responseValidationFactory( - [ - ["205", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ], - undefined, - ) - router.patch( "activityMarkThreadAsRead", "/notifications/threads/:thread_id", @@ -29826,23 +41374,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with205() { - return new KoaRuntimeResponse(205) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityMarkThreadAsRead(input, responder, ctx) + .activityMarkThreadAsRead(input, activityMarkThreadAsReadResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29860,11 +41393,6 @@ export function createRouter(implementation: Implementation): KoaRouter { thread_id: z.coerce.number(), }) - const activityMarkThreadAsDoneResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "activityMarkThreadAsDone", "/notifications/threads/:thread_id", @@ -29880,17 +41408,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityMarkThreadAsDone(input, responder, ctx) + .activityMarkThreadAsDone(input, activityMarkThreadAsDoneResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29908,17 +41427,6 @@ export function createRouter(implementation: Implementation): KoaRouter { { thread_id: z.coerce.number() }, ) - const activityGetThreadSubscriptionForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_thread_subscription], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "activityGetThreadSubscriptionForAuthenticatedUser", "/notifications/threads/:thread_id/subscription", @@ -29934,28 +41442,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .activityGetThreadSubscriptionForAuthenticatedUser( input, - responder, + activityGetThreadSubscriptionForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -29983,17 +41473,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ ignored: PermissiveBoolean.optional().default(false) }) .optional() - const activitySetThreadSubscriptionResponseValidator = - responseValidationFactory( - [ - ["200", s_thread_subscription], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.put( "activitySetThreadSubscription", "/notifications/threads/:thread_id/subscription", @@ -30013,26 +41492,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activitySetThreadSubscription(input, responder, ctx) + .activitySetThreadSubscription( + input, + activitySetThreadSubscriptionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30050,17 +41515,6 @@ export function createRouter(implementation: Implementation): KoaRouter { thread_id: z.coerce.number(), }) - const activityDeleteThreadSubscriptionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.delete( "activityDeleteThreadSubscription", "/notifications/threads/:thread_id/subscription", @@ -30076,26 +41530,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityDeleteThreadSubscription(input, responder, ctx) + .activityDeleteThreadSubscription( + input, + activityDeleteThreadSubscriptionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30111,11 +41551,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const metaGetOctocatQuerySchema = z.object({ s: z.string().optional() }) - const metaGetOctocatResponseValidator = responseValidationFactory( - [["200", z.string()]], - undefined, - ) - router.get("metaGetOctocat", "/octocat", async (ctx, next) => { const input = { params: undefined, @@ -30128,17 +41563,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .metaGetOctocat(input, responder, ctx) + .metaGetOctocat(input, metaGetOctocatResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30156,14 +41582,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const orgsListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_simple)], - ["304", z.undefined()], - ], - undefined, - ) - router.get("orgsList", "/organizations", async (ctx, next) => { const input = { params: undefined, @@ -30176,20 +41594,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsList(input, responder, ctx) + .orgsList(input, orgsListResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30213,25 +41619,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hour: z.coerce.number().optional(), }) - const billingGetGithubBillingUsageReportOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_billing_usage_report], - ["400", s_scim_error], - ["403", s_basic_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "billingGetGithubBillingUsageReportOrg", "/organizations/:org/settings/billing/usage", @@ -30251,33 +41638,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .billingGetGithubBillingUsageReportOrg(input, responder, ctx) + .billingGetGithubBillingUsageReportOrg( + input, + billingGetGithubBillingUsageReportOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30296,14 +41662,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsGetParamSchema = z.object({ org: z.string() }) - const orgsGetResponseValidator = responseValidationFactory( - [ - ["200", s_organization_full], - ["404", s_basic_error], - ], - undefined, - ) - router.get("orgsGet", "/orgs/:org", async (ctx, next) => { const input = { params: parseRequestInput( @@ -30316,20 +41674,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGet(input, responder, ctx) + .orgsGet(input, orgsGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30395,15 +41741,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const orgsUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_organization_full], - ["409", s_basic_error], - ["422", z.union([s_validation_error, s_validation_error_simple])], - ], - undefined, - ) - router.patch("orgsUpdate", "/orgs/:org", async (ctx, next) => { const input = { params: parseRequestInput( @@ -30420,25 +41757,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse< - t_validation_error | t_validation_error_simple - >(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsUpdate(input, responder, ctx) + .orgsUpdate(input, orgsUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30453,15 +41773,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsDeleteParamSchema = z.object({ org: z.string() }) - const orgsDeleteResponseValidator = responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete("orgsDelete", "/orgs/:org", async (ctx, next) => { const input = { params: parseRequestInput( @@ -30474,25 +41785,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsDelete(input, responder, ctx) + .orgsDelete(input, orgsDeleteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30509,12 +41803,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsGetActionsCacheUsageForOrgResponseValidator = - responseValidationFactory( - [["200", s_actions_cache_usage_org_enterprise]], - undefined, - ) - router.get( "actionsGetActionsCacheUsageForOrg", "/orgs/:org/actions/cache/usage", @@ -30530,19 +41818,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetActionsCacheUsageForOrg(input, responder, ctx) + .actionsGetActionsCacheUsageForOrg( + input, + actionsGetActionsCacheUsageForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30568,22 +41849,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsGetActionsCacheUsageByRepoForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repository_cache_usages: z.array( - s_actions_cache_usage_by_repository, - ), - }), - ], - ], - undefined, - ) - router.get( "actionsGetActionsCacheUsageByRepoForOrg", "/orgs/:org/actions/cache/usage-by-repository", @@ -30603,20 +41868,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repository_cache_usages: t_actions_cache_usage_by_repository[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetActionsCacheUsageByRepoForOrg(input, responder, ctx) + .actionsGetActionsCacheUsageByRepoForOrg( + input, + actionsGetActionsCacheUsageByRepoForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30642,20 +41899,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListHostedRunnersForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_actions_hosted_runner), - }), - ], - ], - undefined, - ) - router.get( "actionsListHostedRunnersForOrg", "/orgs/:org/actions/hosted-runners", @@ -30675,20 +41918,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - runners: t_actions_hosted_runner[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListHostedRunnersForOrg(input, responder, ctx) + .actionsListHostedRunnersForOrg( + input, + actionsListHostedRunnersForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30718,9 +41953,6 @@ export function createRouter(implementation: Implementation): KoaRouter { enable_static_ip: PermissiveBoolean.optional(), }) - const actionsCreateHostedRunnerForOrgResponseValidator = - responseValidationFactory([["201", s_actions_hosted_runner]], undefined) - router.post( "actionsCreateHostedRunnerForOrg", "/orgs/:org/actions/hosted-runners", @@ -30740,17 +41972,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateHostedRunnerForOrg(input, responder, ctx) + .actionsCreateHostedRunnerForOrg( + input, + actionsCreateHostedRunnerForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30768,20 +41995,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsGetHostedRunnersGithubOwnedImagesForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - images: z.array(s_actions_hosted_runner_image), - }), - ], - ], - undefined, - ) - router.get( "actionsGetHostedRunnersGithubOwnedImagesForOrg", "/orgs/:org/actions/hosted-runners/images/github-owned", @@ -30797,20 +42010,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - images: t_actions_hosted_runner_image[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetHostedRunnersGithubOwnedImagesForOrg(input, responder, ctx) + .actionsGetHostedRunnersGithubOwnedImagesForOrg( + input, + actionsGetHostedRunnersGithubOwnedImagesForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30832,20 +42037,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsGetHostedRunnersPartnerImagesForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - images: z.array(s_actions_hosted_runner_image), - }), - ], - ], - undefined, - ) - router.get( "actionsGetHostedRunnersPartnerImagesForOrg", "/orgs/:org/actions/hosted-runners/images/partner", @@ -30861,20 +42052,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - images: t_actions_hosted_runner_image[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetHostedRunnersPartnerImagesForOrg(input, responder, ctx) + .actionsGetHostedRunnersPartnerImagesForOrg( + input, + actionsGetHostedRunnersPartnerImagesForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30895,12 +42078,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsGetHostedRunnersLimitsForOrgResponseValidator = - responseValidationFactory( - [["200", s_actions_hosted_runner_limits]], - undefined, - ) - router.get( "actionsGetHostedRunnersLimitsForOrg", "/orgs/:org/actions/hosted-runners/limits", @@ -30916,17 +42093,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetHostedRunnersLimitsForOrg(input, responder, ctx) + .actionsGetHostedRunnersLimitsForOrg( + input, + actionsGetHostedRunnersLimitsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30947,20 +42119,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsGetHostedRunnersMachineSpecsForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - machine_specs: z.array(s_actions_hosted_runner_machine_spec), - }), - ], - ], - undefined, - ) - router.get( "actionsGetHostedRunnersMachineSpecsForOrg", "/orgs/:org/actions/hosted-runners/machine-sizes", @@ -30976,20 +42134,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - machine_specs: t_actions_hosted_runner_machine_spec[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetHostedRunnersMachineSpecsForOrg(input, responder, ctx) + .actionsGetHostedRunnersMachineSpecsForOrg( + input, + actionsGetHostedRunnersMachineSpecsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31010,20 +42160,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsGetHostedRunnersPlatformsForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - platforms: z.array(z.string()), - }), - ], - ], - undefined, - ) - router.get( "actionsGetHostedRunnersPlatformsForOrg", "/orgs/:org/actions/hosted-runners/platforms", @@ -31039,20 +42175,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - platforms: string[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetHostedRunnersPlatformsForOrg(input, responder, ctx) + .actionsGetHostedRunnersPlatformsForOrg( + input, + actionsGetHostedRunnersPlatformsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31074,9 +42202,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hosted_runner_id: z.coerce.number(), }) - const actionsGetHostedRunnerForOrgResponseValidator = - responseValidationFactory([["200", s_actions_hosted_runner]], undefined) - router.get( "actionsGetHostedRunnerForOrg", "/orgs/:org/actions/hosted-runners/:hosted_runner_id", @@ -31092,17 +42217,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetHostedRunnerForOrg(input, responder, ctx) + .actionsGetHostedRunnerForOrg( + input, + actionsGetHostedRunnerForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31128,9 +42248,6 @@ export function createRouter(implementation: Implementation): KoaRouter { enable_static_ip: PermissiveBoolean.optional(), }) - const actionsUpdateHostedRunnerForOrgResponseValidator = - responseValidationFactory([["200", s_actions_hosted_runner]], undefined) - router.patch( "actionsUpdateHostedRunnerForOrg", "/orgs/:org/actions/hosted-runners/:hosted_runner_id", @@ -31150,17 +42267,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsUpdateHostedRunnerForOrg(input, responder, ctx) + .actionsUpdateHostedRunnerForOrg( + input, + actionsUpdateHostedRunnerForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31179,9 +42291,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hosted_runner_id: z.coerce.number(), }) - const actionsDeleteHostedRunnerForOrgResponseValidator = - responseValidationFactory([["202", s_actions_hosted_runner]], undefined) - router.delete( "actionsDeleteHostedRunnerForOrg", "/orgs/:org/actions/hosted-runners/:hosted_runner_id", @@ -31197,17 +42306,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteHostedRunnerForOrg(input, responder, ctx) + .actionsDeleteHostedRunnerForOrg( + input, + actionsDeleteHostedRunnerForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31225,9 +42329,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const oidcGetOidcCustomSubTemplateForOrgResponseValidator = - responseValidationFactory([["200", s_oidc_custom_sub]], undefined) - router.get( "oidcGetOidcCustomSubTemplateForOrg", "/orgs/:org/actions/oidc/customization/sub", @@ -31243,17 +42344,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .oidcGetOidcCustomSubTemplateForOrg(input, responder, ctx) + .oidcGetOidcCustomSubTemplateForOrg( + input, + oidcGetOidcCustomSubTemplateForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31276,16 +42372,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const oidcUpdateOidcCustomSubTemplateForOrgBodySchema = s_oidc_custom_sub - const oidcUpdateOidcCustomSubTemplateForOrgResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.put( "oidcUpdateOidcCustomSubTemplateForOrg", "/orgs/:org/actions/oidc/customization/sub", @@ -31305,23 +42391,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .oidcUpdateOidcCustomSubTemplateForOrg(input, responder, ctx) + .oidcUpdateOidcCustomSubTemplateForOrg( + input, + oidcUpdateOidcCustomSubTemplateForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31342,12 +42417,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsGetGithubActionsPermissionsOrganizationResponseValidator = - responseValidationFactory( - [["200", s_actions_organization_permissions]], - undefined, - ) - router.get( "actionsGetGithubActionsPermissionsOrganization", "/orgs/:org/actions/permissions", @@ -31363,17 +42432,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetGithubActionsPermissionsOrganization(input, responder, ctx) + .actionsGetGithubActionsPermissionsOrganization( + input, + actionsGetGithubActionsPermissionsOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31400,9 +42464,6 @@ export function createRouter(implementation: Implementation): KoaRouter { allowed_actions: s_allowed_actions.optional(), }) - const actionsSetGithubActionsPermissionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetGithubActionsPermissionsOrganization", "/orgs/:org/actions/permissions", @@ -31422,17 +42483,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetGithubActionsPermissionsOrganization(input, responder, ctx) + .actionsSetGithubActionsPermissionsOrganization( + input, + actionsSetGithubActionsPermissionsOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31459,20 +42515,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_repository), - }), - ], - ], - undefined, - ) - router.get( "actionsListSelectedRepositoriesEnabledGithubActionsOrganization", "/orgs/:org/actions/permissions/repositories", @@ -31492,22 +42534,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_repository[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsListSelectedRepositoriesEnabledGithubActionsOrganization( input, - responder, + actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder, ctx, ) .catch((err) => { @@ -31533,9 +42563,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationBodySchema = z.object({ selected_repository_ids: z.array(z.coerce.number()) }) - const actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetSelectedRepositoriesEnabledGithubActionsOrganization", "/orgs/:org/actions/permissions/repositories", @@ -31555,19 +42582,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsSetSelectedRepositoriesEnabledGithubActionsOrganization( input, - responder, + actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder, ctx, ) .catch((err) => { @@ -31590,9 +42608,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsEnableSelectedRepositoryGithubActionsOrganizationParamSchema = z.object({ org: z.string(), repository_id: z.coerce.number() }) - const actionsEnableSelectedRepositoryGithubActionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsEnableSelectedRepositoryGithubActionsOrganization", "/orgs/:org/actions/permissions/repositories/:repository_id", @@ -31608,19 +42623,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsEnableSelectedRepositoryGithubActionsOrganization( input, - responder, + actionsEnableSelectedRepositoryGithubActionsOrganizationResponder, ctx, ) .catch((err) => { @@ -31643,9 +42649,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsDisableSelectedRepositoryGithubActionsOrganizationParamSchema = z.object({ org: z.string(), repository_id: z.coerce.number() }) - const actionsDisableSelectedRepositoryGithubActionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsDisableSelectedRepositoryGithubActionsOrganization", "/orgs/:org/actions/permissions/repositories/:repository_id", @@ -31661,19 +42664,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsDisableSelectedRepositoryGithubActionsOrganization( input, - responder, + actionsDisableSelectedRepositoryGithubActionsOrganizationResponder, ctx, ) .catch((err) => { @@ -31697,9 +42691,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsGetAllowedActionsOrganizationResponseValidator = - responseValidationFactory([["200", s_selected_actions]], undefined) - router.get( "actionsGetAllowedActionsOrganization", "/orgs/:org/actions/permissions/selected-actions", @@ -31715,17 +42706,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetAllowedActionsOrganization(input, responder, ctx) + .actionsGetAllowedActionsOrganization( + input, + actionsGetAllowedActionsOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31749,9 +42735,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsSetAllowedActionsOrganizationBodySchema = s_selected_actions.optional() - const actionsSetAllowedActionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetAllowedActionsOrganization", "/orgs/:org/actions/permissions/selected-actions", @@ -31771,17 +42754,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetAllowedActionsOrganization(input, responder, ctx) + .actionsSetAllowedActionsOrganization( + input, + actionsSetAllowedActionsOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31801,12 +42779,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParamSchema = z.object({ org: z.string() }) - const actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponseValidator = - responseValidationFactory( - [["200", s_actions_get_default_workflow_permissions]], - undefined, - ) - router.get( "actionsGetGithubActionsDefaultWorkflowPermissionsOrganization", "/orgs/:org/actions/permissions/workflow", @@ -31822,21 +42794,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsGetGithubActionsDefaultWorkflowPermissionsOrganization( input, - responder, + actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder, ctx, ) .catch((err) => { @@ -31862,9 +42823,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationBodySchema = s_actions_set_default_workflow_permissions.optional() - const actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetGithubActionsDefaultWorkflowPermissionsOrganization", "/orgs/:org/actions/permissions/workflow", @@ -31884,19 +42842,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsSetGithubActionsDefaultWorkflowPermissionsOrganization( input, - responder, + actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder, ctx, ) .catch((err) => { @@ -31926,20 +42875,6 @@ export function createRouter(implementation: Implementation): KoaRouter { visible_to_repository: z.string().optional(), }) - const actionsListSelfHostedRunnerGroupsForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runner_groups: z.array(s_runner_groups_org), - }), - ], - ], - undefined, - ) - router.get( "actionsListSelfHostedRunnerGroupsForOrg", "/orgs/:org/actions/runner-groups", @@ -31959,20 +42894,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - runner_groups: t_runner_groups_org[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListSelfHostedRunnerGroupsForOrg(input, responder, ctx) + .actionsListSelfHostedRunnerGroupsForOrg( + input, + actionsListSelfHostedRunnerGroupsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32007,9 +42934,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network_configuration_id: z.string().optional(), }) - const actionsCreateSelfHostedRunnerGroupForOrgResponseValidator = - responseValidationFactory([["201", s_runner_groups_org]], undefined) - router.post( "actionsCreateSelfHostedRunnerGroupForOrg", "/orgs/:org/actions/runner-groups", @@ -32029,17 +42953,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateSelfHostedRunnerGroupForOrg(input, responder, ctx) + .actionsCreateSelfHostedRunnerGroupForOrg( + input, + actionsCreateSelfHostedRunnerGroupForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32061,9 +42980,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_group_id: z.coerce.number(), }) - const actionsGetSelfHostedRunnerGroupForOrgResponseValidator = - responseValidationFactory([["200", s_runner_groups_org]], undefined) - router.get( "actionsGetSelfHostedRunnerGroupForOrg", "/orgs/:org/actions/runner-groups/:runner_group_id", @@ -32079,17 +42995,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetSelfHostedRunnerGroupForOrg(input, responder, ctx) + .actionsGetSelfHostedRunnerGroupForOrg( + input, + actionsGetSelfHostedRunnerGroupForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32120,9 +43031,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network_configuration_id: z.string().nullable().optional(), }) - const actionsUpdateSelfHostedRunnerGroupForOrgResponseValidator = - responseValidationFactory([["200", s_runner_groups_org]], undefined) - router.patch( "actionsUpdateSelfHostedRunnerGroupForOrg", "/orgs/:org/actions/runner-groups/:runner_group_id", @@ -32142,17 +43050,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsUpdateSelfHostedRunnerGroupForOrg(input, responder, ctx) + .actionsUpdateSelfHostedRunnerGroupForOrg( + input, + actionsUpdateSelfHostedRunnerGroupForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32174,9 +43077,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_group_id: z.coerce.number(), }) - const actionsDeleteSelfHostedRunnerGroupFromOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsDeleteSelfHostedRunnerGroupFromOrg", "/orgs/:org/actions/runner-groups/:runner_group_id", @@ -32192,17 +43092,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteSelfHostedRunnerGroupFromOrg(input, responder, ctx) + .actionsDeleteSelfHostedRunnerGroupFromOrg( + input, + actionsDeleteSelfHostedRunnerGroupFromOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32229,20 +43124,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListGithubHostedRunnersInGroupForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_actions_hosted_runner), - }), - ], - ], - undefined, - ) - router.get( "actionsListGithubHostedRunnersInGroupForOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/hosted-runners", @@ -32262,20 +43143,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - runners: t_actions_hosted_runner[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListGithubHostedRunnersInGroupForOrg(input, responder, ctx) + .actionsListGithubHostedRunnersInGroupForOrg( + input, + actionsListGithubHostedRunnersInGroupForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32303,20 +43176,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ], - undefined, - ) - router.get( "actionsListRepoAccessToSelfHostedRunnerGroupInOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/repositories", @@ -32336,22 +43195,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_minimal_repository[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsListRepoAccessToSelfHostedRunnerGroupInOrg( input, - responder, + actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder, ctx, ) .catch((err) => { @@ -32380,9 +43227,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()), }) - const actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetRepoAccessToSelfHostedRunnerGroupInOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/repositories", @@ -32402,17 +43246,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetRepoAccessToSelfHostedRunnerGroupInOrg(input, responder, ctx) + .actionsSetRepoAccessToSelfHostedRunnerGroupInOrg( + input, + actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32436,9 +43275,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsAddRepoAccessToSelfHostedRunnerGroupInOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/repositories/:repository_id", @@ -32454,17 +43290,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsAddRepoAccessToSelfHostedRunnerGroupInOrg(input, responder, ctx) + .actionsAddRepoAccessToSelfHostedRunnerGroupInOrg( + input, + actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32489,9 +43320,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/repositories/:repository_id", @@ -32507,19 +43335,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg( input, - responder, + actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder, ctx, ) .catch((err) => { @@ -32549,20 +43368,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListSelfHostedRunnersInGroupForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_runner), - }), - ], - ], - undefined, - ) - router.get( "actionsListSelfHostedRunnersInGroupForOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/runners", @@ -32582,20 +43387,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - runners: t_runner[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListSelfHostedRunnersInGroupForOrg(input, responder, ctx) + .actionsListSelfHostedRunnersInGroupForOrg( + input, + actionsListSelfHostedRunnersInGroupForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32621,9 +43418,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runners: z.array(z.coerce.number()), }) - const actionsSetSelfHostedRunnersInGroupForOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetSelfHostedRunnersInGroupForOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/runners", @@ -32643,17 +43437,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetSelfHostedRunnersInGroupForOrg(input, responder, ctx) + .actionsSetSelfHostedRunnersInGroupForOrg( + input, + actionsSetSelfHostedRunnersInGroupForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32676,9 +43465,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsAddSelfHostedRunnerToGroupForOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsAddSelfHostedRunnerToGroupForOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id", @@ -32694,17 +43480,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsAddSelfHostedRunnerToGroupForOrg(input, responder, ctx) + .actionsAddSelfHostedRunnerToGroupForOrg( + input, + actionsAddSelfHostedRunnerToGroupForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32727,9 +43508,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsRemoveSelfHostedRunnerFromGroupForOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsRemoveSelfHostedRunnerFromGroupForOrg", "/orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id", @@ -32745,17 +43523,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsRemoveSelfHostedRunnerFromGroupForOrg(input, responder, ctx) + .actionsRemoveSelfHostedRunnerFromGroupForOrg( + input, + actionsRemoveSelfHostedRunnerFromGroupForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32782,20 +43555,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListSelfHostedRunnersForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_runner), - }), - ], - ], - undefined, - ) - router.get( "actionsListSelfHostedRunnersForOrg", "/orgs/:org/actions/runners", @@ -32815,20 +43574,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - runners: t_runner[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListSelfHostedRunnersForOrg(input, responder, ctx) + .actionsListSelfHostedRunnersForOrg( + input, + actionsListSelfHostedRunnersForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32849,12 +43600,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsListRunnerApplicationsForOrgResponseValidator = - responseValidationFactory( - [["200", z.array(s_runner_application)]], - undefined, - ) - router.get( "actionsListRunnerApplicationsForOrg", "/orgs/:org/actions/runners/downloads", @@ -32870,17 +43615,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListRunnerApplicationsForOrg(input, responder, ctx) + .actionsListRunnerApplicationsForOrg( + input, + actionsListRunnerApplicationsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32908,17 +43648,6 @@ export function createRouter(implementation: Implementation): KoaRouter { work_folder: z.string().optional().default("_work"), }) - const actionsGenerateRunnerJitconfigForOrgResponseValidator = - responseValidationFactory( - [ - ["201", z.object({ runner: s_runner, encoded_jit_config: z.string() })], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "actionsGenerateRunnerJitconfigForOrg", "/orgs/:org/actions/runners/generate-jitconfig", @@ -32938,29 +43667,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse<{ - encoded_jit_config: string - runner: t_runner - }>(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGenerateRunnerJitconfigForOrg(input, responder, ctx) + .actionsGenerateRunnerJitconfigForOrg( + input, + actionsGenerateRunnerJitconfigForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32981,9 +43693,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsCreateRegistrationTokenForOrgResponseValidator = - responseValidationFactory([["201", s_authentication_token]], undefined) - router.post( "actionsCreateRegistrationTokenForOrg", "/orgs/:org/actions/runners/registration-token", @@ -32999,17 +43708,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateRegistrationTokenForOrg(input, responder, ctx) + .actionsCreateRegistrationTokenForOrg( + input, + actionsCreateRegistrationTokenForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33030,9 +43734,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const actionsCreateRemoveTokenForOrgResponseValidator = - responseValidationFactory([["201", s_authentication_token]], undefined) - router.post( "actionsCreateRemoveTokenForOrg", "/orgs/:org/actions/runners/remove-token", @@ -33048,17 +43749,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateRemoveTokenForOrg(input, responder, ctx) + .actionsCreateRemoveTokenForOrg( + input, + actionsCreateRemoveTokenForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33077,9 +43773,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsGetSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory([["200", s_runner]], undefined) - router.get( "actionsGetSelfHostedRunnerForOrg", "/orgs/:org/actions/runners/:runner_id", @@ -33095,17 +43788,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetSelfHostedRunnerForOrg(input, responder, ctx) + .actionsGetSelfHostedRunnerForOrg( + input, + actionsGetSelfHostedRunnerForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33124,9 +43812,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsDeleteSelfHostedRunnerFromOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsDeleteSelfHostedRunnerFromOrg", "/orgs/:org/actions/runners/:runner_id", @@ -33142,17 +43827,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteSelfHostedRunnerFromOrg(input, responder, ctx) + .actionsDeleteSelfHostedRunnerFromOrg( + input, + actionsDeleteSelfHostedRunnerFromOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33174,21 +43854,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsListLabelsForSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "actionsListLabelsForSelfHostedRunnerForOrg", "/orgs/:org/actions/runners/:runner_id/labels", @@ -33204,23 +43869,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListLabelsForSelfHostedRunnerForOrg(input, responder, ctx) + .actionsListLabelsForSelfHostedRunnerForOrg( + input, + actionsListLabelsForSelfHostedRunnerForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33246,22 +43900,6 @@ export function createRouter(implementation: Implementation): KoaRouter { labels: z.array(z.string()).min(1).max(100), }) - const actionsAddCustomLabelsToSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "actionsAddCustomLabelsToSelfHostedRunnerForOrg", "/orgs/:org/actions/runners/:runner_id/labels", @@ -33281,26 +43919,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsAddCustomLabelsToSelfHostedRunnerForOrg(input, responder, ctx) + .actionsAddCustomLabelsToSelfHostedRunnerForOrg( + input, + actionsAddCustomLabelsToSelfHostedRunnerForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33327,22 +43951,6 @@ export function createRouter(implementation: Implementation): KoaRouter { labels: z.array(z.string()).min(0).max(100), }) - const actionsSetCustomLabelsForSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.put( "actionsSetCustomLabelsForSelfHostedRunnerForOrg", "/orgs/:org/actions/runners/:runner_id/labels", @@ -33362,26 +43970,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetCustomLabelsForSelfHostedRunnerForOrg(input, responder, ctx) + .actionsSetCustomLabelsForSelfHostedRunnerForOrg( + input, + actionsSetCustomLabelsForSelfHostedRunnerForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33402,21 +43996,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParamSchema = z.object({ org: z.string(), runner_id: z.coerce.number() }) - const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg", "/orgs/:org/actions/runners/:runner_id/labels", @@ -33432,25 +44011,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg( input, - responder, + actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder, ctx, ) .catch((err) => { @@ -33477,22 +44041,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.delete( "actionsRemoveCustomLabelFromSelfHostedRunnerForOrg", "/orgs/:org/actions/runners/:runner_id/labels/:name", @@ -33508,28 +44056,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsRemoveCustomLabelFromSelfHostedRunnerForOrg( input, - responder, + actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder, ctx, ) .catch((err) => { @@ -33556,19 +44086,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListOrgSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_organization_actions_secret), - }), - ], - ], - undefined, - ) - router.get( "actionsListOrgSecrets", "/orgs/:org/actions/secrets", @@ -33588,20 +44105,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_organization_actions_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListOrgSecrets(input, responder, ctx) + .actionsListOrgSecrets(input, actionsListOrgSecretsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33617,11 +44122,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsGetOrgPublicKeyParamSchema = z.object({ org: z.string() }) - const actionsGetOrgPublicKeyResponseValidator = responseValidationFactory( - [["200", s_actions_public_key]], - undefined, - ) - router.get( "actionsGetOrgPublicKey", "/orgs/:org/actions/secrets/public-key", @@ -33637,17 +44137,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetOrgPublicKey(input, responder, ctx) + .actionsGetOrgPublicKey(input, actionsGetOrgPublicKeyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33666,11 +44157,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const actionsGetOrgSecretResponseValidator = responseValidationFactory( - [["200", s_organization_actions_secret]], - undefined, - ) - router.get( "actionsGetOrgSecret", "/orgs/:org/actions/secrets/:secret_name", @@ -33686,17 +44172,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetOrgSecret(input, responder, ctx) + .actionsGetOrgSecret(input, actionsGetOrgSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33728,15 +44205,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()).optional(), }) - const actionsCreateOrUpdateOrgSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) - router.put( "actionsCreateOrUpdateOrgSecret", "/orgs/:org/actions/secrets/:secret_name", @@ -33756,20 +44224,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateOrUpdateOrgSecret(input, responder, ctx) + .actionsCreateOrUpdateOrgSecret( + input, + actionsCreateOrUpdateOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33788,11 +44248,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const actionsDeleteOrgSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "actionsDeleteOrgSecret", "/orgs/:org/actions/secrets/:secret_name", @@ -33808,17 +44263,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteOrgSecret(input, responder, ctx) + .actionsDeleteOrgSecret(input, actionsDeleteOrgSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33842,20 +44288,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const actionsListSelectedReposForOrgSecretResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ], - undefined, - ) - router.get( "actionsListSelectedReposForOrgSecret", "/orgs/:org/actions/secrets/:secret_name/repositories", @@ -33875,20 +44307,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_minimal_repository[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListSelectedReposForOrgSecret(input, responder, ctx) + .actionsListSelectedReposForOrgSecret( + input, + actionsListSelectedReposForOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33914,9 +44338,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()), }) - const actionsSetSelectedReposForOrgSecretResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetSelectedReposForOrgSecret", "/orgs/:org/actions/secrets/:secret_name/repositories", @@ -33936,17 +44357,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetSelectedReposForOrgSecret(input, responder, ctx) + .actionsSetSelectedReposForOrgSecret( + input, + actionsSetSelectedReposForOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33969,15 +44385,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const actionsAddSelectedRepoToOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.put( "actionsAddSelectedRepoToOrgSecret", "/orgs/:org/actions/secrets/:secret_name/repositories/:repository_id", @@ -33993,20 +44400,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsAddSelectedRepoToOrgSecret(input, responder, ctx) + .actionsAddSelectedRepoToOrgSecret( + input, + actionsAddSelectedRepoToOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34029,15 +44428,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const actionsRemoveSelectedRepoFromOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.delete( "actionsRemoveSelectedRepoFromOrgSecret", "/orgs/:org/actions/secrets/:secret_name/repositories/:repository_id", @@ -34053,20 +44443,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsRemoveSelectedRepoFromOrgSecret(input, responder, ctx) + .actionsRemoveSelectedRepoFromOrgSecret( + input, + actionsRemoveSelectedRepoFromOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34090,19 +44472,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListOrgVariablesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - variables: z.array(s_organization_actions_variable), - }), - ], - ], - undefined, - ) - router.get( "actionsListOrgVariables", "/orgs/:org/actions/variables", @@ -34122,20 +44491,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - total_count: number - variables: t_organization_actions_variable[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListOrgVariables(input, responder, ctx) + .actionsListOrgVariables(input, actionsListOrgVariablesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34158,11 +44515,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()).optional(), }) - const actionsCreateOrgVariableResponseValidator = responseValidationFactory( - [["201", s_empty_object]], - undefined, - ) - router.post( "actionsCreateOrgVariable", "/orgs/:org/actions/variables", @@ -34182,17 +44534,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateOrgVariable(input, responder, ctx) + .actionsCreateOrgVariable(input, actionsCreateOrgVariableResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34211,11 +44554,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const actionsGetOrgVariableResponseValidator = responseValidationFactory( - [["200", s_organization_actions_variable]], - undefined, - ) - router.get( "actionsGetOrgVariable", "/orgs/:org/actions/variables/:name", @@ -34231,17 +44569,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetOrgVariable(input, responder, ctx) + .actionsGetOrgVariable(input, actionsGetOrgVariableResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34267,11 +44596,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()).optional(), }) - const actionsUpdateOrgVariableResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.patch( "actionsUpdateOrgVariable", "/orgs/:org/actions/variables/:name", @@ -34291,17 +44615,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsUpdateOrgVariable(input, responder, ctx) + .actionsUpdateOrgVariable(input, actionsUpdateOrgVariableResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34320,11 +44635,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const actionsDeleteOrgVariableResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "actionsDeleteOrgVariable", "/orgs/:org/actions/variables/:name", @@ -34340,17 +44650,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteOrgVariable(input, responder, ctx) + .actionsDeleteOrgVariable(input, actionsDeleteOrgVariableResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34374,21 +44675,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const actionsListSelectedReposForOrgVariableResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ["409", z.undefined()], - ], - undefined, - ) - router.get( "actionsListSelectedReposForOrgVariable", "/orgs/:org/actions/variables/:name/repositories", @@ -34408,23 +44694,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_minimal_repository[] - total_count: number - }>(200) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListSelectedReposForOrgVariable(input, responder, ctx) + .actionsListSelectedReposForOrgVariable( + input, + actionsListSelectedReposForOrgVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34450,15 +44725,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()), }) - const actionsSetSelectedReposForOrgVariableResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.put( "actionsSetSelectedReposForOrgVariable", "/orgs/:org/actions/variables/:name/repositories", @@ -34478,20 +44744,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetSelectedReposForOrgVariable(input, responder, ctx) + .actionsSetSelectedReposForOrgVariable( + input, + actionsSetSelectedReposForOrgVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34514,15 +44772,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const actionsAddSelectedRepoToOrgVariableResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.put( "actionsAddSelectedRepoToOrgVariable", "/orgs/:org/actions/variables/:name/repositories/:repository_id", @@ -34538,20 +44787,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsAddSelectedRepoToOrgVariable(input, responder, ctx) + .actionsAddSelectedRepoToOrgVariable( + input, + actionsAddSelectedRepoToOrgVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34574,15 +44815,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const actionsRemoveSelectedRepoFromOrgVariableResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.delete( "actionsRemoveSelectedRepoFromOrgVariable", "/orgs/:org/actions/variables/:name/repositories/:repository_id", @@ -34598,20 +44830,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsRemoveSelectedRepoFromOrgVariable(input, responder, ctx) + .actionsRemoveSelectedRepoFromOrgVariable( + input, + actionsRemoveSelectedRepoFromOrgVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34640,32 +44864,6 @@ export function createRouter(implementation: Implementation): KoaRouter { predicate_type: z.string().optional(), }) - const orgsListAttestationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - attestations: z - .array( - z.object({ - bundle: z - .object({ - mediaType: z.string().optional(), - verificationMaterial: z.record(z.unknown()).optional(), - dsseEnvelope: z.record(z.unknown()).optional(), - }) - .optional(), - repository_id: z.coerce.number().optional(), - bundle_url: z.string().optional(), - }), - ) - .optional(), - }), - ], - ], - undefined, - ) - router.get( "orgsListAttestations", "/orgs/:org/attestations/:subject_digest", @@ -34685,31 +44883,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - attestations?: { - bundle?: { - dsseEnvelope?: { - [key: string]: unknown | undefined - } - mediaType?: string - verificationMaterial?: { - [key: string]: unknown | undefined - } - } - bundle_url?: string - repository_id?: number - }[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListAttestations(input, responder, ctx) + .orgsListAttestations(input, orgsListAttestationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34730,11 +44905,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListBlockedUsersResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, - ) - router.get("orgsListBlockedUsers", "/orgs/:org/blocks", async (ctx, next) => { const input = { params: parseRequestInput( @@ -34751,17 +44921,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListBlockedUsers(input, responder, ctx) + .orgsListBlockedUsers(input, orgsListBlockedUsersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34779,14 +44940,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsCheckBlockedUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsCheckBlockedUser", "/orgs/:org/blocks/:username", @@ -34802,20 +44955,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCheckBlockedUser(input, responder, ctx) + .orgsCheckBlockedUser(input, orgsCheckBlockedUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34834,14 +44975,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsBlockUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "orgsBlockUser", "/orgs/:org/blocks/:username", @@ -34857,20 +44990,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsBlockUser(input, responder, ctx) + .orgsBlockUser(input, orgsBlockUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34889,11 +45010,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsUnblockUserResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "orgsUnblockUser", "/orgs/:org/blocks/:username", @@ -34909,17 +45025,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsUnblockUser(input, responder, ctx) + .orgsUnblockUser(input, orgsUnblockUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34946,22 +45053,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .default("created"), }) - const campaignsListOrgCampaignsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_campaign_summary)], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "campaignsListOrgCampaigns", "/orgs/:org/campaigns", @@ -34981,27 +45072,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .campaignsListOrgCampaigns(input, responder, ctx) + .campaignsListOrgCampaigns( + input, + campaignsListOrgCampaignsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35035,25 +45111,6 @@ export function createRouter(implementation: Implementation): KoaRouter { generate_issues: PermissiveBoolean.optional().default(false), }) - const campaignsCreateCampaignResponseValidator = responseValidationFactory( - [ - ["200", s_campaign_summary], - ["400", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - ["429", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "campaignsCreateCampaign", "/orgs/:org/campaigns", @@ -35073,36 +45130,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .campaignsCreateCampaign(input, responder, ctx) + .campaignsCreateCampaign(input, campaignsCreateCampaignResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35121,24 +45150,6 @@ export function createRouter(implementation: Implementation): KoaRouter { campaign_number: z.coerce.number(), }) - const campaignsGetCampaignSummaryResponseValidator = - responseValidationFactory( - [ - ["200", s_campaign_summary], - ["404", s_basic_error], - ["422", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "campaignsGetCampaignSummary", "/orgs/:org/campaigns/:campaign_number", @@ -35154,30 +45165,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .campaignsGetCampaignSummary(input, responder, ctx) + .campaignsGetCampaignSummary( + input, + campaignsGetCampaignSummaryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35206,24 +45199,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: s_campaign_state.optional(), }) - const campaignsUpdateCampaignResponseValidator = responseValidationFactory( - [ - ["200", s_campaign_summary], - ["400", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.patch( "campaignsUpdateCampaign", "/orgs/:org/campaigns/:campaign_number", @@ -35243,33 +45218,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .campaignsUpdateCampaign(input, responder, ctx) + .campaignsUpdateCampaign(input, campaignsUpdateCampaignResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35288,22 +45238,6 @@ export function createRouter(implementation: Implementation): KoaRouter { campaign_number: z.coerce.number(), }) - const campaignsDeleteCampaignResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.delete( "campaignsDeleteCampaign", "/orgs/:org/campaigns/:campaign_number", @@ -35319,27 +45253,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .campaignsDeleteCampaign(input, responder, ctx) + .campaignsDeleteCampaign(input, campaignsDeleteCampaignResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35368,23 +45283,6 @@ export function createRouter(implementation: Implementation): KoaRouter { severity: s_code_scanning_alert_severity.optional(), }) - const codeScanningListAlertsForOrgResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_organization_alert_items)], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningListAlertsForOrg", "/orgs/:org/code-scanning/alerts", @@ -35404,29 +45302,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_code_scanning_organization_alert_items[] - >(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningListAlertsForOrg(input, responder, ctx) + .codeScanningListAlertsForOrg( + input, + codeScanningListAlertsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35451,16 +45332,6 @@ export function createRouter(implementation: Implementation): KoaRouter { after: z.string().optional(), }) - const codeSecurityGetConfigurationsForOrgResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_security_configuration)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codeSecurityGetConfigurationsForOrg", "/orgs/:org/code-security/configurations", @@ -35480,23 +45351,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityGetConfigurationsForOrg(input, responder, ctx) + .codeSecurityGetConfigurationsForOrg( + input, + codeSecurityGetConfigurationsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35602,12 +45462,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .default("enforced"), }) - const codeSecurityCreateConfigurationResponseValidator = - responseValidationFactory( - [["201", s_code_security_configuration]], - undefined, - ) - router.post( "codeSecurityCreateConfiguration", "/orgs/:org/code-security/configurations", @@ -35627,17 +45481,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityCreateConfiguration(input, responder, ctx) + .codeSecurityCreateConfiguration( + input, + codeSecurityCreateConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35655,17 +45504,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const codeSecurityGetDefaultConfigurationsResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_default_configurations], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codeSecurityGetDefaultConfigurations", "/orgs/:org/code-security/configurations/defaults", @@ -35681,28 +45519,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityGetDefaultConfigurations(input, responder, ctx) + .codeSecurityGetDefaultConfigurations( + input, + codeSecurityGetDefaultConfigurationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35727,18 +45549,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()).optional(), }) - const codeSecurityDetachConfigurationResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.delete( "codeSecurityDetachConfiguration", "/orgs/:org/code-security/configurations/detach", @@ -35758,29 +45568,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityDetachConfiguration(input, responder, ctx) + .codeSecurityDetachConfiguration( + input, + codeSecurityDetachConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35799,17 +45592,6 @@ export function createRouter(implementation: Implementation): KoaRouter { configuration_id: z.coerce.number(), }) - const codeSecurityGetConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codeSecurityGetConfiguration", "/orgs/:org/code-security/configurations/:configuration_id", @@ -35825,26 +45607,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityGetConfiguration(input, responder, ctx) + .codeSecurityGetConfiguration( + input, + codeSecurityGetConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35926,15 +45694,6 @@ export function createRouter(implementation: Implementation): KoaRouter { enforcement: z.enum(["enforced", "unenforced"]).optional(), }) - const codeSecurityUpdateConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration], - ["204", z.undefined()], - ], - undefined, - ) - router.patch( "codeSecurityUpdateConfiguration", "/orgs/:org/code-security/configurations/:configuration_id", @@ -35954,20 +45713,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityUpdateConfiguration(input, responder, ctx) + .codeSecurityUpdateConfiguration( + input, + codeSecurityUpdateConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35986,18 +45737,6 @@ export function createRouter(implementation: Implementation): KoaRouter { configuration_id: z.coerce.number(), }) - const codeSecurityDeleteConfigurationResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.delete( "codeSecurityDeleteConfiguration", "/orgs/:org/code-security/configurations/:configuration_id", @@ -36013,29 +45752,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityDeleteConfiguration(input, responder, ctx) + .codeSecurityDeleteConfiguration( + input, + codeSecurityDeleteConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36065,9 +45787,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()).optional(), }) - const codeSecurityAttachConfigurationResponseValidator = - responseValidationFactory([["202", z.record(z.unknown())]], undefined) - router.post( "codeSecurityAttachConfiguration", "/orgs/:org/code-security/configurations/:configuration_id/attach", @@ -36087,19 +45806,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityAttachConfiguration(input, responder, ctx) + .codeSecurityAttachConfiguration( + input, + codeSecurityAttachConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36124,24 +45836,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const codeSecuritySetConfigurationAsDefaultResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - default_for_new_repos: z - .enum(["all", "none", "private_and_internal", "public"]) - .optional(), - configuration: s_code_security_configuration.optional(), - }), - ], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.put( "codeSecuritySetConfigurationAsDefault", "/orgs/:org/code-security/configurations/:configuration_id/defaults", @@ -36161,30 +45855,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - configuration?: t_code_security_configuration - default_for_new_repos?: - | "all" - | "none" - | "private_and_internal" - | "public" - }>(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecuritySetConfigurationAsDefault(input, responder, ctx) + .codeSecuritySetConfigurationAsDefault( + input, + codeSecuritySetConfigurationAsDefaultResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36213,16 +45889,6 @@ export function createRouter(implementation: Implementation): KoaRouter { status: z.string().optional().default("all"), }) - const codeSecurityGetRepositoriesForConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_security_configuration_repositories)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codeSecurityGetRepositoriesForConfiguration", "/orgs/:org/code-security/configurations/:configuration_id/repositories", @@ -36242,25 +45908,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_code_security_configuration_repositories[] - >(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityGetRepositoriesForConfiguration(input, responder, ctx) + .codeSecurityGetRepositoriesForConfiguration( + input, + codeSecurityGetRepositoriesForConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36284,25 +45937,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const codespacesListInOrganizationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - codespaces: z.array(s_codespace), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesListInOrganization", "/orgs/:org/codespaces", @@ -36322,35 +45956,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - codespaces: t_codespace[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesListInOrganization(input, responder, ctx) + .codespacesListInOrganization( + input, + codespacesListInOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36376,19 +45987,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_usernames: z.array(z.string()).max(100).optional(), }) - const codespacesSetCodespacesAccessResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["400", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.put( "codespacesSetCodespacesAccess", "/orgs/:org/codespaces/access", @@ -36408,32 +46006,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesSetCodespacesAccess(input, responder, ctx) + .codespacesSetCodespacesAccess( + input, + codespacesSetCodespacesAccessResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36455,19 +46033,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_usernames: z.array(z.string()).max(100), }) - const codespacesSetCodespacesAccessUsersResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["400", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "codespacesSetCodespacesAccessUsers", "/orgs/:org/codespaces/access/selected_users", @@ -36487,32 +46052,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesSetCodespacesAccessUsers(input, responder, ctx) + .codespacesSetCodespacesAccessUsers( + input, + codespacesSetCodespacesAccessUsersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36537,19 +46082,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_usernames: z.array(z.string()).max(100), }) - const codespacesDeleteCodespacesAccessUsersResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["400", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "codespacesDeleteCodespacesAccessUsers", "/orgs/:org/codespaces/access/selected_users", @@ -36569,32 +46101,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesDeleteCodespacesAccessUsers(input, responder, ctx) + .codespacesDeleteCodespacesAccessUsers( + input, + codespacesDeleteCodespacesAccessUsersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36618,19 +46130,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const codespacesListOrgSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_codespaces_org_secret), - }), - ], - ], - undefined, - ) - router.get( "codespacesListOrgSecrets", "/orgs/:org/codespaces/secrets", @@ -36650,20 +46149,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_codespaces_org_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesListOrgSecrets(input, responder, ctx) + .codespacesListOrgSecrets(input, codespacesListOrgSecretsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36679,11 +46166,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const codespacesGetOrgPublicKeyParamSchema = z.object({ org: z.string() }) - const codespacesGetOrgPublicKeyResponseValidator = responseValidationFactory( - [["200", s_codespaces_public_key]], - undefined, - ) - router.get( "codespacesGetOrgPublicKey", "/orgs/:org/codespaces/secrets/public-key", @@ -36699,17 +46181,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetOrgPublicKey(input, responder, ctx) + .codespacesGetOrgPublicKey( + input, + codespacesGetOrgPublicKeyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36728,11 +46205,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const codespacesGetOrgSecretResponseValidator = responseValidationFactory( - [["200", s_codespaces_org_secret]], - undefined, - ) - router.get( "codespacesGetOrgSecret", "/orgs/:org/codespaces/secrets/:secret_name", @@ -36748,17 +46220,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetOrgSecret(input, responder, ctx) + .codespacesGetOrgSecret(input, codespacesGetOrgSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36791,17 +46254,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()).optional(), }) - const codespacesCreateOrUpdateOrgSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "codespacesCreateOrUpdateOrgSecret", "/orgs/:org/codespaces/secrets/:secret_name", @@ -36821,26 +46273,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesCreateOrUpdateOrgSecret(input, responder, ctx) + .codespacesCreateOrUpdateOrgSecret( + input, + codespacesCreateOrUpdateOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36862,14 +46300,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const codespacesDeleteOrgSecretResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "codespacesDeleteOrgSecret", "/orgs/:org/codespaces/secrets/:secret_name", @@ -36885,20 +46315,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesDeleteOrgSecret(input, responder, ctx) + .codespacesDeleteOrgSecret( + input, + codespacesDeleteOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36922,21 +46344,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const codespacesListSelectedReposForOrgSecretResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codespacesListSelectedReposForOrgSecret", "/orgs/:org/codespaces/secrets/:secret_name/repositories", @@ -36956,23 +46363,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_minimal_repository[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesListSelectedReposForOrgSecret(input, responder, ctx) + .codespacesListSelectedReposForOrgSecret( + input, + codespacesListSelectedReposForOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36998,16 +46394,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()), }) - const codespacesSetSelectedReposForOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["409", z.undefined()], - ], - undefined, - ) - router.put( "codespacesSetSelectedReposForOrgSecret", "/orgs/:org/codespaces/secrets/:secret_name/repositories", @@ -37027,23 +46413,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesSetSelectedReposForOrgSecret(input, responder, ctx) + .codespacesSetSelectedReposForOrgSecret( + input, + codespacesSetSelectedReposForOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37066,17 +46441,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const codespacesAddSelectedRepoToOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["409", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "codespacesAddSelectedRepoToOrgSecret", "/orgs/:org/codespaces/secrets/:secret_name/repositories/:repository_id", @@ -37092,26 +46456,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesAddSelectedRepoToOrgSecret(input, responder, ctx) + .codespacesAddSelectedRepoToOrgSecret( + input, + codespacesAddSelectedRepoToOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37134,17 +46484,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const codespacesRemoveSelectedRepoFromOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["409", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "codespacesRemoveSelectedRepoFromOrgSecret", "/orgs/:org/codespaces/secrets/:secret_name/repositories/:repository_id", @@ -37160,26 +46499,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesRemoveSelectedRepoFromOrgSecret(input, responder, ctx) + .codespacesRemoveSelectedRepoFromOrgSecret( + input, + codespacesRemoveSelectedRepoFromOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37200,19 +46525,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const copilotGetCopilotOrganizationDetailsResponseValidator = - responseValidationFactory( - [ - ["200", s_copilot_organization_details], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "copilotGetCopilotOrganizationDetails", "/orgs/:org/copilot/billing", @@ -37228,32 +46540,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotGetCopilotOrganizationDetails(input, responder, ctx) + .copilotGetCopilotOrganizationDetails( + input, + copilotGetCopilotOrganizationDetailsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37277,23 +46569,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(50), }) - const copilotListCopilotSeatsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_seats: z.coerce.number().optional(), - seats: z.array(s_copilot_seat_details).optional(), - }), - ], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "copilotListCopilotSeats", "/orgs/:org/copilot/billing/seats", @@ -37313,32 +46588,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - seats?: t_copilot_seat_details[] - total_seats?: number - }>(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotListCopilotSeats(input, responder, ctx) + .copilotListCopilotSeats(input, copilotListCopilotSeatsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37360,19 +46611,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_teams: z.array(z.string()).min(1), }) - const copilotAddCopilotSeatsForTeamsResponseValidator = - responseValidationFactory( - [ - ["201", z.object({ seats_created: z.coerce.number() })], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "copilotAddCopilotSeatsForTeams", "/orgs/:org/copilot/billing/selected_teams", @@ -37392,34 +46630,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse<{ - seats_created: number - }>(201) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotAddCopilotSeatsForTeams(input, responder, ctx) + .copilotAddCopilotSeatsForTeams( + input, + copilotAddCopilotSeatsForTeamsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37441,19 +46657,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_teams: z.array(z.string()).min(1), }) - const copilotCancelCopilotSeatAssignmentForTeamsResponseValidator = - responseValidationFactory( - [ - ["200", z.object({ seats_cancelled: z.coerce.number() })], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "copilotCancelCopilotSeatAssignmentForTeams", "/orgs/:org/copilot/billing/selected_teams", @@ -37473,34 +46676,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - seats_cancelled: number - }>(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotCancelCopilotSeatAssignmentForTeams(input, responder, ctx) + .copilotCancelCopilotSeatAssignmentForTeams( + input, + copilotCancelCopilotSeatAssignmentForTeamsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37525,19 +46706,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_usernames: z.array(z.string()).min(1), }) - const copilotAddCopilotSeatsForUsersResponseValidator = - responseValidationFactory( - [ - ["201", z.object({ seats_created: z.coerce.number() })], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "copilotAddCopilotSeatsForUsers", "/orgs/:org/copilot/billing/selected_users", @@ -37557,34 +46725,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse<{ - seats_created: number - }>(201) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotAddCopilotSeatsForUsers(input, responder, ctx) + .copilotAddCopilotSeatsForUsers( + input, + copilotAddCopilotSeatsForUsersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37606,19 +46752,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_usernames: z.array(z.string()).min(1), }) - const copilotCancelCopilotSeatAssignmentForUsersResponseValidator = - responseValidationFactory( - [ - ["200", z.object({ seats_cancelled: z.coerce.number() })], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "copilotCancelCopilotSeatAssignmentForUsers", "/orgs/:org/copilot/billing/selected_users", @@ -37638,34 +46771,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - seats_cancelled: number - }>(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotCancelCopilotSeatAssignmentForUsers(input, responder, ctx) + .copilotCancelCopilotSeatAssignmentForUsers( + input, + copilotCancelCopilotSeatAssignmentForUsersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37693,18 +46804,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(28), }) - const copilotCopilotMetricsForOrganizationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_copilot_usage_metrics_day)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "copilotCopilotMetricsForOrganization", "/orgs/:org/copilot/metrics", @@ -37724,29 +46823,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotCopilotMetricsForOrganization(input, responder, ctx) + .copilotCopilotMetricsForOrganization( + input, + copilotCopilotMetricsForOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37784,18 +46866,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const dependabotListAlertsForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_dependabot_alert_with_repository)], - ["304", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.get( "dependabotListAlertsForOrg", "/orgs/:org/dependabot/alerts", @@ -37815,34 +46885,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotListAlertsForOrg(input, responder, ctx) + .dependabotListAlertsForOrg( + input, + dependabotListAlertsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37863,19 +46911,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const dependabotListOrgSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_organization_dependabot_secret), - }), - ], - ], - undefined, - ) - router.get( "dependabotListOrgSecrets", "/orgs/:org/dependabot/secrets", @@ -37895,20 +46930,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_organization_dependabot_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotListOrgSecrets(input, responder, ctx) + .dependabotListOrgSecrets(input, dependabotListOrgSecretsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37924,11 +46947,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const dependabotGetOrgPublicKeyParamSchema = z.object({ org: z.string() }) - const dependabotGetOrgPublicKeyResponseValidator = responseValidationFactory( - [["200", s_dependabot_public_key]], - undefined, - ) - router.get( "dependabotGetOrgPublicKey", "/orgs/:org/dependabot/secrets/public-key", @@ -37944,17 +46962,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotGetOrgPublicKey(input, responder, ctx) + .dependabotGetOrgPublicKey( + input, + dependabotGetOrgPublicKeyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37973,11 +46986,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const dependabotGetOrgSecretResponseValidator = responseValidationFactory( - [["200", s_organization_dependabot_secret]], - undefined, - ) - router.get( "dependabotGetOrgSecret", "/orgs/:org/dependabot/secrets/:secret_name", @@ -37993,17 +47001,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotGetOrgSecret(input, responder, ctx) + .dependabotGetOrgSecret(input, dependabotGetOrgSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38036,15 +47035,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.string()).optional(), }) - const dependabotCreateOrUpdateOrgSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) - router.put( "dependabotCreateOrUpdateOrgSecret", "/orgs/:org/dependabot/secrets/:secret_name", @@ -38064,20 +47054,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotCreateOrUpdateOrgSecret(input, responder, ctx) + .dependabotCreateOrUpdateOrgSecret( + input, + dependabotCreateOrUpdateOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38099,11 +47081,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const dependabotDeleteOrgSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "dependabotDeleteOrgSecret", "/orgs/:org/dependabot/secrets/:secret_name", @@ -38119,17 +47096,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotDeleteOrgSecret(input, responder, ctx) + .dependabotDeleteOrgSecret( + input, + dependabotDeleteOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38153,20 +47125,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const dependabotListSelectedReposForOrgSecretResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ], - undefined, - ) - router.get( "dependabotListSelectedReposForOrgSecret", "/orgs/:org/dependabot/secrets/:secret_name/repositories", @@ -38186,20 +47144,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_minimal_repository[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotListSelectedReposForOrgSecret(input, responder, ctx) + .dependabotListSelectedReposForOrgSecret( + input, + dependabotListSelectedReposForOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38225,9 +47175,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()), }) - const dependabotSetSelectedReposForOrgSecretResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "dependabotSetSelectedReposForOrgSecret", "/orgs/:org/dependabot/secrets/:secret_name/repositories", @@ -38247,17 +47194,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotSetSelectedReposForOrgSecret(input, responder, ctx) + .dependabotSetSelectedReposForOrgSecret( + input, + dependabotSetSelectedReposForOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38280,15 +47222,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const dependabotAddSelectedRepoToOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.put( "dependabotAddSelectedRepoToOrgSecret", "/orgs/:org/dependabot/secrets/:secret_name/repositories/:repository_id", @@ -38304,20 +47237,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotAddSelectedRepoToOrgSecret(input, responder, ctx) + .dependabotAddSelectedRepoToOrgSecret( + input, + dependabotAddSelectedRepoToOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38340,15 +47265,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const dependabotRemoveSelectedRepoFromOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.delete( "dependabotRemoveSelectedRepoFromOrgSecret", "/orgs/:org/dependabot/secrets/:secret_name/repositories/:repository_id", @@ -38364,20 +47280,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotRemoveSelectedRepoFromOrgSecret(input, responder, ctx) + .dependabotRemoveSelectedRepoFromOrgSecret( + input, + dependabotRemoveSelectedRepoFromOrgSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38397,16 +47305,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const packagesListDockerMigrationConflictingPackagesForOrganizationParamSchema = z.object({ org: z.string() }) - const packagesListDockerMigrationConflictingPackagesForOrganizationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "packagesListDockerMigrationConflictingPackagesForOrganization", "/orgs/:org/docker/conflicts", @@ -38422,25 +47320,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .packagesListDockerMigrationConflictingPackagesForOrganization( input, - responder, + packagesListDockerMigrationConflictingPackagesForOrganizationResponder, ctx, ) .catch((err) => { @@ -38467,9 +47350,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListPublicOrgEventsResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) - router.get( "activityListPublicOrgEvents", "/orgs/:org/events", @@ -38489,17 +47369,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListPublicOrgEvents(input, responder, ctx) + .activityListPublicOrgEvents( + input, + activityListPublicOrgEventsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38520,14 +47395,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListFailedInvitationsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_invitation)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsListFailedInvitations", "/orgs/:org/failed_invitations", @@ -38547,20 +47414,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListFailedInvitations(input, responder, ctx) + .orgsListFailedInvitations( + input, + orgsListFailedInvitationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38581,14 +47440,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListWebhooksResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_org_hook)], - ["404", s_basic_error], - ], - undefined, - ) - router.get("orgsListWebhooks", "/orgs/:org/hooks", async (ctx, next) => { const input = { params: parseRequestInput( @@ -38605,20 +47456,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListWebhooks(input, responder, ctx) + .orgsListWebhooks(input, orgsListWebhooksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38647,15 +47486,6 @@ export function createRouter(implementation: Implementation): KoaRouter { active: PermissiveBoolean.optional().default(true), }) - const orgsCreateWebhookResponseValidator = responseValidationFactory( - [ - ["201", s_org_hook], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post("orgsCreateWebhook", "/orgs/:org/hooks", async (ctx, next) => { const input = { params: parseRequestInput( @@ -38672,23 +47502,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCreateWebhook(input, responder, ctx) + .orgsCreateWebhook(input, orgsCreateWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38706,14 +47521,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const orgsGetWebhookResponseValidator = responseValidationFactory( - [ - ["200", s_org_hook], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsGetWebhook", "/orgs/:org/hooks/:hook_id", @@ -38729,20 +47536,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetWebhook(input, responder, ctx) + .orgsGetWebhook(input, orgsGetWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38777,15 +47572,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const orgsUpdateWebhookResponseValidator = responseValidationFactory( - [ - ["200", s_org_hook], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "orgsUpdateWebhook", "/orgs/:org/hooks/:hook_id", @@ -38805,23 +47591,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsUpdateWebhook(input, responder, ctx) + .orgsUpdateWebhook(input, orgsUpdateWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38840,14 +47611,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const orgsDeleteWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "orgsDeleteWebhook", "/orgs/:org/hooks/:hook_id", @@ -38863,20 +47626,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsDeleteWebhook(input, responder, ctx) + .orgsDeleteWebhook(input, orgsDeleteWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38895,11 +47646,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const orgsGetWebhookConfigForOrgResponseValidator = responseValidationFactory( - [["200", s_webhook_config]], - undefined, - ) - router.get( "orgsGetWebhookConfigForOrg", "/orgs/:org/hooks/:hook_id/config", @@ -38915,17 +47661,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetWebhookConfigForOrg(input, responder, ctx) + .orgsGetWebhookConfigForOrg( + input, + orgsGetWebhookConfigForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38953,9 +47694,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const orgsUpdateWebhookConfigForOrgResponseValidator = - responseValidationFactory([["200", s_webhook_config]], undefined) - router.patch( "orgsUpdateWebhookConfigForOrg", "/orgs/:org/hooks/:hook_id/config", @@ -38975,17 +47713,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsUpdateWebhookConfigForOrg(input, responder, ctx) + .orgsUpdateWebhookConfigForOrg( + input, + orgsUpdateWebhookConfigForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39009,15 +47742,6 @@ export function createRouter(implementation: Implementation): KoaRouter { cursor: z.string().optional(), }) - const orgsListWebhookDeliveriesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_hook_delivery_item)], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "orgsListWebhookDeliveries", "/orgs/:org/hooks/:hook_id/deliveries", @@ -39037,23 +47761,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListWebhookDeliveries(input, responder, ctx) + .orgsListWebhookDeliveries( + input, + orgsListWebhookDeliveriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39073,15 +47786,6 @@ export function createRouter(implementation: Implementation): KoaRouter { delivery_id: z.coerce.number(), }) - const orgsGetWebhookDeliveryResponseValidator = responseValidationFactory( - [ - ["200", s_hook_delivery], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "orgsGetWebhookDelivery", "/orgs/:org/hooks/:hook_id/deliveries/:delivery_id", @@ -39097,23 +47801,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetWebhookDelivery(input, responder, ctx) + .orgsGetWebhookDelivery(input, orgsGetWebhookDeliveryResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39133,16 +47822,6 @@ export function createRouter(implementation: Implementation): KoaRouter { delivery_id: z.coerce.number(), }) - const orgsRedeliverWebhookDeliveryResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "orgsRedeliverWebhookDelivery", "/orgs/:org/hooks/:hook_id/deliveries/:delivery_id/attempts", @@ -39158,25 +47837,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRedeliverWebhookDelivery(input, responder, ctx) + .orgsRedeliverWebhookDelivery( + input, + orgsRedeliverWebhookDeliveryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39195,14 +47861,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const orgsPingWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "orgsPingWebhook", "/orgs/:org/hooks/:hook_id/pings", @@ -39218,20 +47876,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsPingWebhook(input, responder, ctx) + .orgsPingWebhook(input, orgsPingWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39283,9 +47929,6 @@ export function createRouter(implementation: Implementation): KoaRouter { api_route_substring: z.string().optional(), }) - const apiInsightsGetRouteStatsByActorResponseValidator = - responseValidationFactory([["200", s_api_insights_route_stats]], undefined) - router.get( "apiInsightsGetRouteStatsByActor", "/orgs/:org/insights/api/route-stats/:actor_type/:actor_id", @@ -39305,17 +47948,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetRouteStatsByActor(input, responder, ctx) + .apiInsightsGetRouteStatsByActor( + input, + apiInsightsGetRouteStatsByActorResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39356,11 +47994,6 @@ export function createRouter(implementation: Implementation): KoaRouter { subject_name_substring: z.string().optional(), }) - const apiInsightsGetSubjectStatsResponseValidator = responseValidationFactory( - [["200", s_api_insights_subject_stats]], - undefined, - ) - router.get( "apiInsightsGetSubjectStats", "/orgs/:org/insights/api/subject-stats", @@ -39380,17 +48013,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetSubjectStats(input, responder, ctx) + .apiInsightsGetSubjectStats( + input, + apiInsightsGetSubjectStatsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39411,11 +48039,6 @@ export function createRouter(implementation: Implementation): KoaRouter { max_timestamp: z.string().optional(), }) - const apiInsightsGetSummaryStatsResponseValidator = responseValidationFactory( - [["200", s_api_insights_summary_stats]], - undefined, - ) - router.get( "apiInsightsGetSummaryStats", "/orgs/:org/insights/api/summary-stats", @@ -39435,17 +48058,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetSummaryStats(input, responder, ctx) + .apiInsightsGetSummaryStats( + input, + apiInsightsGetSummaryStatsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39469,12 +48087,6 @@ export function createRouter(implementation: Implementation): KoaRouter { max_timestamp: z.string().optional(), }) - const apiInsightsGetSummaryStatsByUserResponseValidator = - responseValidationFactory( - [["200", s_api_insights_summary_stats]], - undefined, - ) - router.get( "apiInsightsGetSummaryStatsByUser", "/orgs/:org/insights/api/summary-stats/users/:user_id", @@ -39494,17 +48106,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetSummaryStatsByUser(input, responder, ctx) + .apiInsightsGetSummaryStatsByUser( + input, + apiInsightsGetSummaryStatsByUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39535,12 +48142,6 @@ export function createRouter(implementation: Implementation): KoaRouter { max_timestamp: z.string().optional(), }) - const apiInsightsGetSummaryStatsByActorResponseValidator = - responseValidationFactory( - [["200", s_api_insights_summary_stats]], - undefined, - ) - router.get( "apiInsightsGetSummaryStatsByActor", "/orgs/:org/insights/api/summary-stats/:actor_type/:actor_id", @@ -39560,17 +48161,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetSummaryStatsByActor(input, responder, ctx) + .apiInsightsGetSummaryStatsByActor( + input, + apiInsightsGetSummaryStatsByActorResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39595,11 +48191,6 @@ export function createRouter(implementation: Implementation): KoaRouter { timestamp_increment: z.string(), }) - const apiInsightsGetTimeStatsResponseValidator = responseValidationFactory( - [["200", s_api_insights_time_stats]], - undefined, - ) - router.get( "apiInsightsGetTimeStats", "/orgs/:org/insights/api/time-stats", @@ -39619,17 +48210,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetTimeStats(input, responder, ctx) + .apiInsightsGetTimeStats(input, apiInsightsGetTimeStatsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39654,9 +48236,6 @@ export function createRouter(implementation: Implementation): KoaRouter { timestamp_increment: z.string(), }) - const apiInsightsGetTimeStatsByUserResponseValidator = - responseValidationFactory([["200", s_api_insights_time_stats]], undefined) - router.get( "apiInsightsGetTimeStatsByUser", "/orgs/:org/insights/api/time-stats/users/:user_id", @@ -39676,17 +48255,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetTimeStatsByUser(input, responder, ctx) + .apiInsightsGetTimeStatsByUser( + input, + apiInsightsGetTimeStatsByUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39718,9 +48292,6 @@ export function createRouter(implementation: Implementation): KoaRouter { timestamp_increment: z.string(), }) - const apiInsightsGetTimeStatsByActorResponseValidator = - responseValidationFactory([["200", s_api_insights_time_stats]], undefined) - router.get( "apiInsightsGetTimeStatsByActor", "/orgs/:org/insights/api/time-stats/:actor_type/:actor_id", @@ -39740,17 +48311,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetTimeStatsByActor(input, responder, ctx) + .apiInsightsGetTimeStatsByActor( + input, + apiInsightsGetTimeStatsByActorResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39794,11 +48360,6 @@ export function createRouter(implementation: Implementation): KoaRouter { actor_name_substring: z.string().optional(), }) - const apiInsightsGetUserStatsResponseValidator = responseValidationFactory( - [["200", s_api_insights_user_stats]], - undefined, - ) - router.get( "apiInsightsGetUserStats", "/orgs/:org/insights/api/user-stats/:user_id", @@ -39818,17 +48379,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .apiInsightsGetUserStats(input, responder, ctx) + .apiInsightsGetUserStats(input, apiInsightsGetUserStatsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39844,11 +48396,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const appsGetOrgInstallationParamSchema = z.object({ org: z.string() }) - const appsGetOrgInstallationResponseValidator = responseValidationFactory( - [["200", s_installation]], - undefined, - ) - router.get( "appsGetOrgInstallation", "/orgs/:org/installation", @@ -39864,17 +48411,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetOrgInstallation(input, responder, ctx) + .appsGetOrgInstallation(input, appsGetOrgInstallationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39895,19 +48433,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListAppInstallationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - installations: z.array(s_installation), - }), - ], - ], - undefined, - ) - router.get( "orgsListAppInstallations", "/orgs/:org/installations", @@ -39927,20 +48452,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - installations: t_installation[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListAppInstallations(input, responder, ctx) + .orgsListAppInstallations(input, orgsListAppInstallationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39958,12 +48471,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const interactionsGetRestrictionsForOrgResponseValidator = - responseValidationFactory( - [["200", z.union([s_interaction_limit_response, z.object({})])]], - undefined, - ) - router.get( "interactionsGetRestrictionsForOrg", "/orgs/:org/interaction-limits", @@ -39979,19 +48486,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_interaction_limit_response | EmptyObject - >(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .interactionsGetRestrictionsForOrg(input, responder, ctx) + .interactionsGetRestrictionsForOrg( + input, + interactionsGetRestrictionsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40014,15 +48514,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const interactionsSetRestrictionsForOrgBodySchema = s_interaction_limit - const interactionsSetRestrictionsForOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_interaction_limit_response], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "interactionsSetRestrictionsForOrg", "/orgs/:org/interaction-limits", @@ -40042,20 +48533,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .interactionsSetRestrictionsForOrg(input, responder, ctx) + .interactionsSetRestrictionsForOrg( + input, + interactionsSetRestrictionsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40076,9 +48559,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const interactionsRemoveRestrictionsForOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "interactionsRemoveRestrictionsForOrg", "/orgs/:org/interaction-limits", @@ -40094,17 +48574,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .interactionsRemoveRestrictionsForOrg(input, responder, ctx) + .interactionsRemoveRestrictionsForOrg( + input, + interactionsRemoveRestrictionsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40142,14 +48617,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .default("all"), }) - const orgsListPendingInvitationsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_invitation)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsListPendingInvitations", "/orgs/:org/invitations", @@ -40169,20 +48636,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListPendingInvitations(input, responder, ctx) + .orgsListPendingInvitations( + input, + orgsListPendingInvitationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40210,15 +48669,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const orgsCreateInvitationResponseValidator = responseValidationFactory( - [ - ["201", s_organization_invitation], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "orgsCreateInvitation", "/orgs/:org/invitations", @@ -40238,23 +48688,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCreateInvitation(input, responder, ctx) + .orgsCreateInvitation(input, orgsCreateInvitationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40273,15 +48708,6 @@ export function createRouter(implementation: Implementation): KoaRouter { invitation_id: z.coerce.number(), }) - const orgsCancelInvitationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "orgsCancelInvitation", "/orgs/:org/invitations/:invitation_id", @@ -40297,23 +48723,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCancelInvitation(input, responder, ctx) + .orgsCancelInvitation(input, orgsCancelInvitationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40337,14 +48748,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListInvitationTeamsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsListInvitationTeams", "/orgs/:org/invitations/:invitation_id/teams", @@ -40364,20 +48767,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListInvitationTeams(input, responder, ctx) + .orgsListInvitationTeams(input, orgsListInvitationTeamsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40393,14 +48784,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsListIssueTypesParamSchema = z.object({ org: z.string() }) - const orgsListIssueTypesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_type)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsListIssueTypes", "/orgs/:org/issue-types", @@ -40416,20 +48799,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListIssueTypes(input, responder, ctx) + .orgsListIssueTypes(input, orgsListIssueTypesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40447,15 +48818,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsCreateIssueTypeBodySchema = s_organization_create_issue_type - const orgsCreateIssueTypeResponseValidator = responseValidationFactory( - [ - ["200", s_issue_type], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "orgsCreateIssueType", "/orgs/:org/issue-types", @@ -40475,23 +48837,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCreateIssueType(input, responder, ctx) + .orgsCreateIssueType(input, orgsCreateIssueTypeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40512,15 +48859,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsUpdateIssueTypeBodySchema = s_organization_update_issue_type - const orgsUpdateIssueTypeResponseValidator = responseValidationFactory( - [ - ["200", s_issue_type], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.put( "orgsUpdateIssueType", "/orgs/:org/issue-types/:issue_type_id", @@ -40540,23 +48878,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsUpdateIssueType(input, responder, ctx) + .orgsUpdateIssueType(input, orgsUpdateIssueTypeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40575,15 +48898,6 @@ export function createRouter(implementation: Implementation): KoaRouter { issue_type_id: z.coerce.number(), }) - const orgsDeleteIssueTypeResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.delete( "orgsDeleteIssueType", "/orgs/:org/issue-types/:issue_type_id", @@ -40599,23 +48913,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsDeleteIssueType(input, responder, ctx) + .orgsDeleteIssueType(input, orgsDeleteIssueTypeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40649,14 +48948,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["404", s_basic_error], - ], - undefined, - ) - router.get("issuesListForOrg", "/orgs/:org/issues", async (ctx, next) => { const input = { params: parseRequestInput( @@ -40673,20 +48964,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListForOrg(input, responder, ctx) + .issuesListForOrg(input, issuesListForOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40708,14 +48987,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListMembersResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["422", s_validation_error], - ], - undefined, - ) - router.get("orgsListMembers", "/orgs/:org/members", async (ctx, next) => { const input = { params: parseRequestInput( @@ -40732,20 +49003,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListMembers(input, responder, ctx) + .orgsListMembers(input, orgsListMembersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40763,15 +49022,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsCheckMembershipForUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["302", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "orgsCheckMembershipForUser", "/orgs/:org/members/:username", @@ -40787,23 +49037,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with302() { - return new KoaRuntimeResponse(302) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCheckMembershipForUser(input, responder, ctx) + .orgsCheckMembershipForUser( + input, + orgsCheckMembershipForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40822,14 +49061,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsRemoveMemberResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ], - undefined, - ) - router.delete( "orgsRemoveMember", "/orgs/:org/members/:username", @@ -40845,20 +49076,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRemoveMember(input, responder, ctx) + .orgsRemoveMember(input, orgsRemoveMemberResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40882,25 +49101,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const codespacesGetCodespacesForUserInOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - codespaces: z.array(s_codespace), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesGetCodespacesForUserInOrg", "/orgs/:org/members/:username/codespaces", @@ -40920,35 +49120,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - codespaces: t_codespace[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetCodespacesForUserInOrg(input, responder, ctx) + .codespacesGetCodespacesForUserInOrg( + input, + codespacesGetCodespacesForUserInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40971,19 +49148,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codespace_name: z.string(), }) - const codespacesDeleteFromOrganizationResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "codespacesDeleteFromOrganization", "/orgs/:org/members/:username/codespaces/:codespace_name", @@ -40999,34 +49163,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesDeleteFromOrganization(input, responder, ctx) + .codespacesDeleteFromOrganization( + input, + codespacesDeleteFromOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41046,19 +49188,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codespace_name: z.string(), }) - const codespacesStopInOrganizationResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "codespacesStopInOrganization", "/orgs/:org/members/:username/codespaces/:codespace_name/stop", @@ -41074,32 +49203,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesStopInOrganization(input, responder, ctx) + .codespacesStopInOrganization( + input, + codespacesStopInOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41118,19 +49227,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const copilotGetCopilotSeatDetailsForUserResponseValidator = - responseValidationFactory( - [ - ["200", s_copilot_seat_details], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "copilotGetCopilotSeatDetailsForUser", "/orgs/:org/members/:username/copilot", @@ -41146,32 +49242,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotGetCopilotSeatDetailsForUser(input, responder, ctx) + .copilotGetCopilotSeatDetailsForUser( + input, + copilotGetCopilotSeatDetailsForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41193,15 +49269,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsGetMembershipForUserResponseValidator = responseValidationFactory( - [ - ["200", s_org_membership], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsGetMembershipForUser", "/orgs/:org/memberships/:username", @@ -41217,23 +49284,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetMembershipForUser(input, responder, ctx) + .orgsGetMembershipForUser(input, orgsGetMembershipForUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41256,15 +49308,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ role: z.enum(["admin", "member"]).optional().default("member") }) .optional() - const orgsSetMembershipForUserResponseValidator = responseValidationFactory( - [ - ["200", s_org_membership], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "orgsSetMembershipForUser", "/orgs/:org/memberships/:username", @@ -41284,23 +49327,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsSetMembershipForUser(input, responder, ctx) + .orgsSetMembershipForUser(input, orgsSetMembershipForUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41319,16 +49347,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsRemoveMembershipForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "orgsRemoveMembershipForUser", "/orgs/:org/memberships/:username", @@ -41344,23 +49362,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRemoveMembershipForUser(input, responder, ctx) + .orgsRemoveMembershipForUser( + input, + orgsRemoveMembershipForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41387,11 +49394,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const migrationsListForOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_migration)]], - undefined, - ) - router.get( "migrationsListForOrg", "/orgs/:org/migrations", @@ -41411,17 +49413,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsListForOrg(input, responder, ctx) + .migrationsListForOrg(input, migrationsListForOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41449,15 +49442,6 @@ export function createRouter(implementation: Implementation): KoaRouter { exclude: z.array(z.enum(["repositories"])).optional(), }) - const migrationsStartForOrgResponseValidator = responseValidationFactory( - [ - ["201", s_migration], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "migrationsStartForOrg", "/orgs/:org/migrations", @@ -41477,23 +49461,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsStartForOrg(input, responder, ctx) + .migrationsStartForOrg(input, migrationsStartForOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41521,14 +49490,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const migrationsGetStatusForOrgResponseValidator = responseValidationFactory( - [ - ["200", s_migration], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "migrationsGetStatusForOrg", "/orgs/:org/migrations/:migration_id", @@ -41548,20 +49509,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsGetStatusForOrg(input, responder, ctx) + .migrationsGetStatusForOrg( + input, + migrationsGetStatusForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41580,15 +49533,6 @@ export function createRouter(implementation: Implementation): KoaRouter { migration_id: z.coerce.number(), }) - const migrationsDownloadArchiveForOrgResponseValidator = - responseValidationFactory( - [ - ["302", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "migrationsDownloadArchiveForOrg", "/orgs/:org/migrations/:migration_id/archive", @@ -41604,20 +49548,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with302() { - return new KoaRuntimeResponse(302) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsDownloadArchiveForOrg(input, responder, ctx) + .migrationsDownloadArchiveForOrg( + input, + migrationsDownloadArchiveForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41636,15 +49572,6 @@ export function createRouter(implementation: Implementation): KoaRouter { migration_id: z.coerce.number(), }) - const migrationsDeleteArchiveForOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "migrationsDeleteArchiveForOrg", "/orgs/:org/migrations/:migration_id/archive", @@ -41660,20 +49587,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsDeleteArchiveForOrg(input, responder, ctx) + .migrationsDeleteArchiveForOrg( + input, + migrationsDeleteArchiveForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41693,14 +49612,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo_name: z.string(), }) - const migrationsUnlockRepoForOrgResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "migrationsUnlockRepoForOrg", "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock", @@ -41716,20 +49627,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsUnlockRepoForOrg(input, responder, ctx) + .migrationsUnlockRepoForOrg( + input, + migrationsUnlockRepoForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41753,14 +49656,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const migrationsListReposForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "migrationsListReposForOrg", "/orgs/:org/migrations/:migration_id/repositories", @@ -41780,20 +49675,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsListReposForOrg(input, responder, ctx) + .migrationsListReposForOrg( + input, + migrationsListReposForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41809,21 +49696,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsListOrgRolesParamSchema = z.object({ org: z.string() }) - const orgsListOrgRolesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number().optional(), - roles: z.array(s_organization_role).optional(), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "orgsListOrgRoles", "/orgs/:org/organization-roles", @@ -41839,26 +49711,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - roles?: t_organization_role[] - total_count?: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListOrgRoles(input, responder, ctx) + .orgsListOrgRoles(input, orgsListOrgRolesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41877,11 +49731,6 @@ export function createRouter(implementation: Implementation): KoaRouter { team_slug: z.string(), }) - const orgsRevokeAllOrgRolesTeamResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "orgsRevokeAllOrgRolesTeam", "/orgs/:org/organization-roles/teams/:team_slug", @@ -41897,17 +49746,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRevokeAllOrgRolesTeam(input, responder, ctx) + .orgsRevokeAllOrgRolesTeam( + input, + orgsRevokeAllOrgRolesTeamResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41927,15 +49771,6 @@ export function createRouter(implementation: Implementation): KoaRouter { role_id: z.coerce.number(), }) - const orgsAssignTeamToOrgRoleResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.put( "orgsAssignTeamToOrgRole", "/orgs/:org/organization-roles/teams/:team_slug/:role_id", @@ -41951,23 +49786,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsAssignTeamToOrgRole(input, responder, ctx) + .orgsAssignTeamToOrgRole(input, orgsAssignTeamToOrgRoleResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41987,11 +49807,6 @@ export function createRouter(implementation: Implementation): KoaRouter { role_id: z.coerce.number(), }) - const orgsRevokeOrgRoleTeamResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "orgsRevokeOrgRoleTeam", "/orgs/:org/organization-roles/teams/:team_slug/:role_id", @@ -42007,17 +49822,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRevokeOrgRoleTeam(input, responder, ctx) + .orgsRevokeOrgRoleTeam(input, orgsRevokeOrgRoleTeamResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42036,11 +49842,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsRevokeAllOrgRolesUserResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "orgsRevokeAllOrgRolesUser", "/orgs/:org/organization-roles/users/:username", @@ -42056,17 +49857,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRevokeAllOrgRolesUser(input, responder, ctx) + .orgsRevokeAllOrgRolesUser( + input, + orgsRevokeAllOrgRolesUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42086,15 +49882,6 @@ export function createRouter(implementation: Implementation): KoaRouter { role_id: z.coerce.number(), }) - const orgsAssignUserToOrgRoleResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.put( "orgsAssignUserToOrgRole", "/orgs/:org/organization-roles/users/:username/:role_id", @@ -42110,23 +49897,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsAssignUserToOrgRole(input, responder, ctx) + .orgsAssignUserToOrgRole(input, orgsAssignUserToOrgRoleResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42146,11 +49918,6 @@ export function createRouter(implementation: Implementation): KoaRouter { role_id: z.coerce.number(), }) - const orgsRevokeOrgRoleUserResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "orgsRevokeOrgRoleUser", "/orgs/:org/organization-roles/users/:username/:role_id", @@ -42166,17 +49933,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRevokeOrgRoleUser(input, responder, ctx) + .orgsRevokeOrgRoleUser(input, orgsRevokeOrgRoleUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42195,15 +49953,6 @@ export function createRouter(implementation: Implementation): KoaRouter { role_id: z.coerce.number(), }) - const orgsGetOrgRoleResponseValidator = responseValidationFactory( - [ - ["200", s_organization_role], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "orgsGetOrgRole", "/orgs/:org/organization-roles/:role_id", @@ -42219,23 +49968,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetOrgRole(input, responder, ctx) + .orgsGetOrgRole(input, orgsGetOrgRoleResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42259,15 +49993,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListOrgRoleTeamsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team_role_assignment)], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.get( "orgsListOrgRoleTeams", "/orgs/:org/organization-roles/:role_id/teams", @@ -42287,23 +50012,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListOrgRoleTeams(input, responder, ctx) + .orgsListOrgRoleTeams(input, orgsListOrgRoleTeamsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42327,15 +50037,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListOrgRoleUsersResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_user_role_assignment)], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.get( "orgsListOrgRoleUsers", "/orgs/:org/organization-roles/:role_id/users", @@ -42355,23 +50056,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListOrgRoleUsers(input, responder, ctx) + .orgsListOrgRoleUsers(input, orgsListOrgRoleUsersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42393,9 +50079,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListOutsideCollaboratorsResponseValidator = - responseValidationFactory([["200", z.array(s_simple_user)]], undefined) - router.get( "orgsListOutsideCollaborators", "/orgs/:org/outside_collaborators", @@ -42415,17 +50098,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListOutsideCollaborators(input, responder, ctx) + .orgsListOutsideCollaborators( + input, + orgsListOutsideCollaboratorsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42448,17 +50126,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ async: PermissiveBoolean.optional().default(false) }) .optional() - const orgsConvertMemberToOutsideCollaboratorResponseValidator = - responseValidationFactory( - [ - ["202", z.object({})], - ["204", z.undefined()], - ["403", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.put( "orgsConvertMemberToOutsideCollaborator", "/orgs/:org/outside_collaborators/:username", @@ -42478,26 +50145,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsConvertMemberToOutsideCollaborator(input, responder, ctx) + .orgsConvertMemberToOutsideCollaborator( + input, + orgsConvertMemberToOutsideCollaboratorResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42519,21 +50172,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsRemoveOutsideCollaboratorResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - [ - "422", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.delete( "orgsRemoveOutsideCollaborator", "/orgs/:org/outside_collaborators/:username", @@ -42549,23 +50187,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with422() { - return new KoaRuntimeResponse<{ - documentation_url?: string - message?: string - }>(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRemoveOutsideCollaborator(input, responder, ctx) + .orgsRemoveOutsideCollaborator( + input, + orgsRemoveOutsideCollaboratorResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42597,17 +50224,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const packagesListPackagesForOrganizationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["400", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "packagesListPackagesForOrganization", "/orgs/:org/packages", @@ -42627,26 +50243,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesListPackagesForOrganization(input, responder, ctx) + .packagesListPackagesForOrganization( + input, + packagesListPackagesForOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42676,9 +50278,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const packagesGetPackageForOrganizationResponseValidator = - responseValidationFactory([["200", s_package]], undefined) - router.get( "packagesGetPackageForOrganization", "/orgs/:org/packages/:package_type/:package_name", @@ -42694,17 +50293,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesGetPackageForOrganization(input, responder, ctx) + .packagesGetPackageForOrganization( + input, + packagesGetPackageForOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42734,17 +50328,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const packagesDeletePackageForOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "packagesDeletePackageForOrg", "/orgs/:org/packages/:package_type/:package_name", @@ -42760,26 +50343,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesDeletePackageForOrg(input, responder, ctx) + .packagesDeletePackageForOrg( + input, + packagesDeletePackageForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42810,17 +50379,6 @@ export function createRouter(implementation: Implementation): KoaRouter { token: z.string().optional(), }) - const packagesRestorePackageForOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "packagesRestorePackageForOrg", "/orgs/:org/packages/:package_type/:package_name/restore", @@ -42840,26 +50398,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesRestorePackageForOrg(input, responder, ctx) + .packagesRestorePackageForOrg( + input, + packagesRestorePackageForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42896,17 +50440,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const packagesGetAllPackageVersionsForPackageOwnedByOrgResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package_version)], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "packagesGetAllPackageVersionsForPackageOwnedByOrg", "/orgs/:org/packages/:package_type/:package_name/versions", @@ -42926,28 +50459,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .packagesGetAllPackageVersionsForPackageOwnedByOrg( input, - responder, + packagesGetAllPackageVersionsForPackageOwnedByOrgResponder, ctx, ) .catch((err) => { @@ -42981,9 +50496,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_version_id: z.coerce.number(), }) - const packagesGetPackageVersionForOrganizationResponseValidator = - responseValidationFactory([["200", s_package_version]], undefined) - router.get( "packagesGetPackageVersionForOrganization", "/orgs/:org/packages/:package_type/:package_name/versions/:package_version_id", @@ -42999,17 +50511,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesGetPackageVersionForOrganization(input, responder, ctx) + .packagesGetPackageVersionForOrganization( + input, + packagesGetPackageVersionForOrganizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43040,17 +50547,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_version_id: z.coerce.number(), }) - const packagesDeletePackageVersionForOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "packagesDeletePackageVersionForOrg", "/orgs/:org/packages/:package_type/:package_name/versions/:package_version_id", @@ -43066,26 +50562,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesDeletePackageVersionForOrg(input, responder, ctx) + .packagesDeletePackageVersionForOrg( + input, + packagesDeletePackageVersionForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43116,17 +50598,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_version_id: z.coerce.number(), }) - const packagesRestorePackageVersionForOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "packagesRestorePackageVersionForOrg", "/orgs/:org/packages/:package_type/:package_name/versions/:package_version_id/restore", @@ -43142,26 +50613,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesRestorePackageVersionForOrg(input, responder, ctx) + .packagesRestorePackageVersionForOrg( + input, + packagesRestorePackageVersionForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43203,17 +50660,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const orgsListPatGrantRequestsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_programmatic_access_grant_request)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "orgsListPatGrantRequests", "/orgs/:org/personal-access-token-requests", @@ -43233,31 +50679,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_organization_programmatic_access_grant_request[] - >(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListPatGrantRequests(input, responder, ctx) + .orgsListPatGrantRequests(input, orgsListPatGrantRequestsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43281,18 +50704,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reason: z.string().max(1024).nullable().optional(), }) - const orgsReviewPatGrantRequestsInBulkResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "orgsReviewPatGrantRequestsInBulk", "/orgs/:org/personal-access-token-requests", @@ -43312,31 +50723,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsReviewPatGrantRequestsInBulk(input, responder, ctx) + .orgsReviewPatGrantRequestsInBulk( + input, + orgsReviewPatGrantRequestsInBulkResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43360,17 +50752,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reason: z.string().max(1024).nullable().optional(), }) - const orgsReviewPatGrantRequestResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "orgsReviewPatGrantRequest", "/orgs/:org/personal-access-token-requests/:pat_request_id", @@ -43390,29 +50771,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsReviewPatGrantRequest(input, responder, ctx) + .orgsReviewPatGrantRequest( + input, + orgsReviewPatGrantRequestResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43436,17 +50800,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListPatGrantRequestRepositoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "orgsListPatGrantRequestRepositories", "/orgs/:org/personal-access-token-requests/:pat_request_id/repositories", @@ -43466,26 +50819,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListPatGrantRequestRepositories(input, responder, ctx) + .orgsListPatGrantRequestRepositories( + input, + orgsListPatGrantRequestRepositoriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43527,17 +50866,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const orgsListPatGrantsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_programmatic_access_grant)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "orgsListPatGrants", "/orgs/:org/personal-access-tokens", @@ -43557,31 +50885,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_organization_programmatic_access_grant[] - >(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListPatGrants(input, responder, ctx) + .orgsListPatGrants(input, orgsListPatGrantsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43602,17 +50907,6 @@ export function createRouter(implementation: Implementation): KoaRouter { pat_ids: z.array(z.coerce.number()).min(1).max(100), }) - const orgsUpdatePatAccessesResponseValidator = responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "orgsUpdatePatAccesses", "/orgs/:org/personal-access-tokens", @@ -43632,31 +50926,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsUpdatePatAccesses(input, responder, ctx) + .orgsUpdatePatAccesses(input, orgsUpdatePatAccessesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43677,17 +50948,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsUpdatePatAccessBodySchema = z.object({ action: z.enum(["revoke"]) }) - const orgsUpdatePatAccessResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "orgsUpdatePatAccess", "/orgs/:org/personal-access-tokens/:pat_id", @@ -43707,29 +50967,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsUpdatePatAccess(input, responder, ctx) + .orgsUpdatePatAccess(input, orgsUpdatePatAccessResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43753,17 +50992,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListPatGrantRepositoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "orgsListPatGrantRepositories", "/orgs/:org/personal-access-tokens/:pat_id/repositories", @@ -43783,26 +51011,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListPatGrantRepositories(input, responder, ctx) + .orgsListPatGrantRepositories( + input, + orgsListPatGrantRepositoriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43825,22 +51039,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const privateRegistriesListOrgPrivateRegistriesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - configurations: z.array(s_org_private_registry_configuration), - }), - ], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "privateRegistriesListOrgPrivateRegistries", "/orgs/:org/private-registries", @@ -43860,26 +51058,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - configurations: t_org_private_registry_configuration[] - total_count: number - }>(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .privateRegistriesListOrgPrivateRegistries(input, responder, ctx) + .privateRegistriesListOrgPrivateRegistries( + input, + privateRegistriesListOrgPrivateRegistriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43915,19 +51099,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()).optional(), }) - const privateRegistriesCreateOrgPrivateRegistryResponseValidator = - responseValidationFactory( - [ - [ - "201", - s_org_private_registry_configuration_with_selected_repositories, - ], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "privateRegistriesCreateOrgPrivateRegistry", "/orgs/:org/private-registries", @@ -43947,25 +51118,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse( - 201, - ) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .privateRegistriesCreateOrgPrivateRegistry(input, responder, ctx) + .privateRegistriesCreateOrgPrivateRegistry( + input, + privateRegistriesCreateOrgPrivateRegistryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43986,15 +51144,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const privateRegistriesGetOrgPublicKeyResponseValidator = - responseValidationFactory( - [ - ["200", z.object({ key_id: z.string(), key: z.string() })], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "privateRegistriesGetOrgPublicKey", "/orgs/:org/private-registries/public-key", @@ -44010,23 +51159,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - key: string - key_id: string - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .privateRegistriesGetOrgPublicKey(input, responder, ctx) + .privateRegistriesGetOrgPublicKey( + input, + privateRegistriesGetOrgPublicKeyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44045,15 +51183,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const privateRegistriesGetOrgPrivateRegistryResponseValidator = - responseValidationFactory( - [ - ["200", s_org_private_registry_configuration], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "privateRegistriesGetOrgPrivateRegistry", "/orgs/:org/private-registries/:secret_name", @@ -44069,22 +51198,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .privateRegistriesGetOrgPrivateRegistry(input, responder, ctx) + .privateRegistriesGetOrgPrivateRegistry( + input, + privateRegistriesGetOrgPrivateRegistryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44122,16 +51241,6 @@ export function createRouter(implementation: Implementation): KoaRouter { selected_repository_ids: z.array(z.coerce.number()).optional(), }) - const privateRegistriesUpdateOrgPrivateRegistryResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "privateRegistriesUpdateOrgPrivateRegistry", "/orgs/:org/private-registries/:secret_name", @@ -44151,23 +51260,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .privateRegistriesUpdateOrgPrivateRegistry(input, responder, ctx) + .privateRegistriesUpdateOrgPrivateRegistry( + input, + privateRegistriesUpdateOrgPrivateRegistryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44189,16 +51287,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const privateRegistriesDeleteOrgPrivateRegistryResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "privateRegistriesDeleteOrgPrivateRegistry", "/orgs/:org/private-registries/:secret_name", @@ -44214,23 +51302,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .privateRegistriesDeleteOrgPrivateRegistry(input, responder, ctx) + .privateRegistriesDeleteOrgPrivateRegistry( + input, + privateRegistriesDeleteOrgPrivateRegistryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44255,14 +51332,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const projectsListForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project)], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.get("projectsListForOrg", "/orgs/:org/projects", async (ctx, next) => { const input = { params: parseRequestInput( @@ -44279,20 +51348,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsListForOrg(input, responder, ctx) + .projectsListForOrg(input, projectsListForOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44312,18 +51369,6 @@ export function createRouter(implementation: Implementation): KoaRouter { body: z.string().optional(), }) - const projectsCreateForOrgResponseValidator = responseValidationFactory( - [ - ["201", s_project], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "projectsCreateForOrg", "/orgs/:org/projects", @@ -44343,32 +51388,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsCreateForOrg(input, responder, ctx) + .projectsCreateForOrg(input, projectsCreateForOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44384,15 +51405,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsGetAllCustomPropertiesParamSchema = z.object({ org: z.string() }) - const orgsGetAllCustomPropertiesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_custom_property)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsGetAllCustomProperties", "/orgs/:org/properties/schema", @@ -44408,23 +51420,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetAllCustomProperties(input, responder, ctx) + .orgsGetAllCustomProperties( + input, + orgsGetAllCustomPropertiesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44446,16 +51447,6 @@ export function createRouter(implementation: Implementation): KoaRouter { properties: z.array(s_custom_property).min(1).max(100), }) - const orgsCreateOrUpdateCustomPropertiesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_custom_property)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.patch( "orgsCreateOrUpdateCustomProperties", "/orgs/:org/properties/schema", @@ -44475,23 +51466,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCreateOrUpdateCustomProperties(input, responder, ctx) + .orgsCreateOrUpdateCustomProperties( + input, + orgsCreateOrUpdateCustomPropertiesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44513,15 +51493,6 @@ export function createRouter(implementation: Implementation): KoaRouter { custom_property_name: z.string(), }) - const orgsGetCustomPropertyResponseValidator = responseValidationFactory( - [ - ["200", s_custom_property], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsGetCustomProperty", "/orgs/:org/properties/schema/:custom_property_name", @@ -44537,23 +51508,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetCustomProperty(input, responder, ctx) + .orgsGetCustomProperty(input, orgsGetCustomPropertyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44575,16 +51531,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsCreateOrUpdateCustomPropertyBodySchema = s_custom_property_set_payload - const orgsCreateOrUpdateCustomPropertyResponseValidator = - responseValidationFactory( - [ - ["200", s_custom_property], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.put( "orgsCreateOrUpdateCustomProperty", "/orgs/:org/properties/schema/:custom_property_name", @@ -44604,23 +51550,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCreateOrUpdateCustomProperty(input, responder, ctx) + .orgsCreateOrUpdateCustomProperty( + input, + orgsCreateOrUpdateCustomPropertyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44639,15 +51574,6 @@ export function createRouter(implementation: Implementation): KoaRouter { custom_property_name: z.string(), }) - const orgsRemoveCustomPropertyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "orgsRemoveCustomProperty", "/orgs/:org/properties/schema/:custom_property_name", @@ -44663,23 +51589,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRemoveCustomProperty(input, responder, ctx) + .orgsRemoveCustomProperty(input, orgsRemoveCustomPropertyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44703,16 +51614,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_query: z.string().optional(), }) - const orgsListCustomPropertiesValuesForReposResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_org_repo_custom_property_values)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsListCustomPropertiesValuesForRepos", "/orgs/:org/properties/values", @@ -44732,25 +51633,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListCustomPropertiesValuesForRepos(input, responder, ctx) + .orgsListCustomPropertiesValuesForRepos( + input, + orgsListCustomPropertiesValuesForReposResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44776,17 +51664,6 @@ export function createRouter(implementation: Implementation): KoaRouter { properties: z.array(s_custom_property_value), }) - const orgsCreateOrUpdateCustomPropertiesValuesForReposResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "orgsCreateOrUpdateCustomPropertiesValuesForRepos", "/orgs/:org/properties/values", @@ -44806,26 +51683,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCreateOrUpdateCustomPropertiesValuesForRepos(input, responder, ctx) + .orgsCreateOrUpdateCustomPropertiesValuesForRepos( + input, + orgsCreateOrUpdateCustomPropertiesValuesForReposResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44850,11 +51713,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListPublicMembersResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, - ) - router.get( "orgsListPublicMembers", "/orgs/:org/public_members", @@ -44874,17 +51732,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListPublicMembers(input, responder, ctx) + .orgsListPublicMembers(input, orgsListPublicMembersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44903,15 +51752,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsCheckPublicMembershipForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "orgsCheckPublicMembershipForUser", "/orgs/:org/public_members/:username", @@ -44927,20 +51767,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsCheckPublicMembershipForUser(input, responder, ctx) + .orgsCheckPublicMembershipForUser( + input, + orgsCheckPublicMembershipForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44959,15 +51791,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsSetPublicMembershipForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ], - undefined, - ) - router.put( "orgsSetPublicMembershipForAuthenticatedUser", "/orgs/:org/public_members/:username", @@ -44983,20 +51806,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsSetPublicMembershipForAuthenticatedUser(input, responder, ctx) + .orgsSetPublicMembershipForAuthenticatedUser( + input, + orgsSetPublicMembershipForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45018,9 +51833,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const orgsRemovePublicMembershipForAuthenticatedUserResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "orgsRemovePublicMembershipForAuthenticatedUser", "/orgs/:org/public_members/:username", @@ -45036,17 +51848,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRemovePublicMembershipForAuthenticatedUser(input, responder, ctx) + .orgsRemovePublicMembershipForAuthenticatedUser( + input, + orgsRemovePublicMembershipForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45080,11 +51887,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListForOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_minimal_repository)]], - undefined, - ) - router.get("reposListForOrg", "/orgs/:org/repos", async (ctx, next) => { const input = { params: parseRequestInput( @@ -45101,17 +51903,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListForOrg(input, responder, ctx) + .reposListForOrg(input, reposListForOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45158,15 +51951,6 @@ export function createRouter(implementation: Implementation): KoaRouter { custom_properties: z.record(z.unknown()).optional(), }) - const reposCreateInOrgResponseValidator = responseValidationFactory( - [ - ["201", s_full_repository], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post("reposCreateInOrg", "/orgs/:org/repos", async (ctx, next) => { const input = { params: parseRequestInput( @@ -45183,23 +51967,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateInOrg(input, responder, ctx) + .reposCreateInOrg(input, reposCreateInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45220,15 +51989,6 @@ export function createRouter(implementation: Implementation): KoaRouter { targets: z.string().optional(), }) - const reposGetOrgRulesetsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_repository_ruleset)], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetOrgRulesets", "/orgs/:org/rulesets", @@ -45248,23 +52008,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetOrgRulesets(input, responder, ctx) + .reposGetOrgRulesets(input, reposGetOrgRulesetsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45292,15 +52037,6 @@ export function createRouter(implementation: Implementation): KoaRouter { rules: z.array(s_repository_rule).optional(), }) - const reposCreateOrgRulesetResponseValidator = responseValidationFactory( - [ - ["201", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "reposCreateOrgRuleset", "/orgs/:org/rulesets", @@ -45320,23 +52056,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateOrgRuleset(input, responder, ctx) + .reposCreateOrgRuleset(input, reposCreateOrgRulesetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45368,15 +52089,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposGetOrgRuleSuitesResponseValidator = responseValidationFactory( - [ - ["200", s_rule_suites], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetOrgRuleSuites", "/orgs/:org/rulesets/rule-suites", @@ -45396,23 +52108,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetOrgRuleSuites(input, responder, ctx) + .reposGetOrgRuleSuites(input, reposGetOrgRuleSuitesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45431,15 +52128,6 @@ export function createRouter(implementation: Implementation): KoaRouter { rule_suite_id: z.coerce.number(), }) - const reposGetOrgRuleSuiteResponseValidator = responseValidationFactory( - [ - ["200", s_rule_suite], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetOrgRuleSuite", "/orgs/:org/rulesets/rule-suites/:rule_suite_id", @@ -45455,23 +52143,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetOrgRuleSuite(input, responder, ctx) + .reposGetOrgRuleSuite(input, reposGetOrgRuleSuiteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45490,15 +52163,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ruleset_id: z.coerce.number(), }) - const reposGetOrgRulesetResponseValidator = responseValidationFactory( - [ - ["200", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetOrgRuleset", "/orgs/:org/rulesets/:ruleset_id", @@ -45514,23 +52178,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetOrgRuleset(input, responder, ctx) + .reposGetOrgRuleset(input, reposGetOrgRulesetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45560,15 +52209,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdateOrgRulesetResponseValidator = responseValidationFactory( - [ - ["200", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.put( "reposUpdateOrgRuleset", "/orgs/:org/rulesets/:ruleset_id", @@ -45588,23 +52228,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateOrgRuleset(input, responder, ctx) + .reposUpdateOrgRuleset(input, reposUpdateOrgRulesetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45623,15 +52248,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ruleset_id: z.coerce.number(), }) - const reposDeleteOrgRulesetResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteOrgRuleset", "/orgs/:org/rulesets/:ruleset_id", @@ -45647,23 +52263,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteOrgRuleset(input, responder, ctx) + .reposDeleteOrgRuleset(input, reposDeleteOrgRulesetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45687,15 +52288,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsGetOrgRulesetHistoryResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_ruleset_version)], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "orgsGetOrgRulesetHistory", "/orgs/:org/rulesets/:ruleset_id/history", @@ -45715,23 +52307,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetOrgRulesetHistory(input, responder, ctx) + .orgsGetOrgRulesetHistory(input, orgsGetOrgRulesetHistoryResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45751,15 +52328,6 @@ export function createRouter(implementation: Implementation): KoaRouter { version_id: z.coerce.number(), }) - const orgsGetOrgRulesetVersionResponseValidator = responseValidationFactory( - [ - ["200", s_ruleset_version_with_state], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "orgsGetOrgRulesetVersion", "/orgs/:org/rulesets/:ruleset_id/history/:version_id", @@ -45775,23 +52343,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetOrgRulesetVersion(input, responder, ctx) + .orgsGetOrgRulesetVersion(input, orgsGetOrgRulesetVersionResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45824,23 +52377,6 @@ export function createRouter(implementation: Implementation): KoaRouter { is_multi_repo: PermissiveBoolean.optional().default(false), }) - const secretScanningListAlertsForOrgResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_organization_secret_scanning_alert)], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "secretScanningListAlertsForOrg", "/orgs/:org/secret-scanning/alerts", @@ -45860,29 +52396,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .secretScanningListAlertsForOrg(input, responder, ctx) + .secretScanningListAlertsForOrg( + input, + secretScanningListAlertsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45912,16 +52431,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: z.enum(["triage", "draft", "published", "closed"]).optional(), }) - const securityAdvisoriesListOrgRepositoryAdvisoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_repository_advisory)], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "securityAdvisoriesListOrgRepositoryAdvisories", "/orgs/:org/security-advisories", @@ -45941,23 +52450,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .securityAdvisoriesListOrgRepositoryAdvisories(input, responder, ctx) + .securityAdvisoriesListOrgRepositoryAdvisories( + input, + securityAdvisoriesListOrgRepositoryAdvisoriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45976,9 +52474,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const orgsListSecurityManagerTeamsParamSchema = z.object({ org: z.string() }) - const orgsListSecurityManagerTeamsResponseValidator = - responseValidationFactory([["200", z.array(s_team_simple)]], undefined) - router.get( "orgsListSecurityManagerTeams", "/orgs/:org/security-managers", @@ -45994,17 +52489,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListSecurityManagerTeams(input, responder, ctx) + .orgsListSecurityManagerTeams( + input, + orgsListSecurityManagerTeamsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46023,11 +52513,6 @@ export function createRouter(implementation: Implementation): KoaRouter { team_slug: z.string(), }) - const orgsAddSecurityManagerTeamResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.put( "orgsAddSecurityManagerTeam", "/orgs/:org/security-managers/teams/:team_slug", @@ -46043,17 +52528,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsAddSecurityManagerTeam(input, responder, ctx) + .orgsAddSecurityManagerTeam( + input, + orgsAddSecurityManagerTeamResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46072,9 +52552,6 @@ export function createRouter(implementation: Implementation): KoaRouter { team_slug: z.string(), }) - const orgsRemoveSecurityManagerTeamResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "orgsRemoveSecurityManagerTeam", "/orgs/:org/security-managers/teams/:team_slug", @@ -46090,17 +52567,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsRemoveSecurityManagerTeam(input, responder, ctx) + .orgsRemoveSecurityManagerTeam( + input, + orgsRemoveSecurityManagerTeamResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46118,9 +52590,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const billingGetGithubActionsBillingOrgResponseValidator = - responseValidationFactory([["200", s_actions_billing_usage]], undefined) - router.get( "billingGetGithubActionsBillingOrg", "/orgs/:org/settings/billing/actions", @@ -46136,17 +52605,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .billingGetGithubActionsBillingOrg(input, responder, ctx) + .billingGetGithubActionsBillingOrg( + input, + billingGetGithubActionsBillingOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46167,9 +52631,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const billingGetGithubPackagesBillingOrgResponseValidator = - responseValidationFactory([["200", s_packages_billing_usage]], undefined) - router.get( "billingGetGithubPackagesBillingOrg", "/orgs/:org/settings/billing/packages", @@ -46185,17 +52646,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .billingGetGithubPackagesBillingOrg(input, responder, ctx) + .billingGetGithubPackagesBillingOrg( + input, + billingGetGithubPackagesBillingOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46216,9 +52672,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const billingGetSharedStorageBillingOrgResponseValidator = - responseValidationFactory([["200", s_combined_billing_usage]], undefined) - router.get( "billingGetSharedStorageBillingOrg", "/orgs/:org/settings/billing/shared-storage", @@ -46234,17 +52687,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .billingGetSharedStorageBillingOrg(input, responder, ctx) + .billingGetSharedStorageBillingOrg( + input, + billingGetSharedStorageBillingOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46270,20 +52718,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const hostedComputeListNetworkConfigurationsForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - network_configurations: z.array(s_network_configuration), - }), - ], - ], - undefined, - ) - router.get( "hostedComputeListNetworkConfigurationsForOrg", "/orgs/:org/settings/network-configurations", @@ -46303,20 +52737,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - network_configurations: t_network_configuration[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .hostedComputeListNetworkConfigurationsForOrg(input, responder, ctx) + .hostedComputeListNetworkConfigurationsForOrg( + input, + hostedComputeListNetworkConfigurationsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46343,9 +52769,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network_settings_ids: z.array(z.string()).min(1).max(1), }) - const hostedComputeCreateNetworkConfigurationForOrgResponseValidator = - responseValidationFactory([["201", s_network_configuration]], undefined) - router.post( "hostedComputeCreateNetworkConfigurationForOrg", "/orgs/:org/settings/network-configurations", @@ -46365,17 +52788,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .hostedComputeCreateNetworkConfigurationForOrg(input, responder, ctx) + .hostedComputeCreateNetworkConfigurationForOrg( + input, + hostedComputeCreateNetworkConfigurationForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46397,9 +52815,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network_configuration_id: z.string(), }) - const hostedComputeGetNetworkConfigurationForOrgResponseValidator = - responseValidationFactory([["200", s_network_configuration]], undefined) - router.get( "hostedComputeGetNetworkConfigurationForOrg", "/orgs/:org/settings/network-configurations/:network_configuration_id", @@ -46415,17 +52830,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .hostedComputeGetNetworkConfigurationForOrg(input, responder, ctx) + .hostedComputeGetNetworkConfigurationForOrg( + input, + hostedComputeGetNetworkConfigurationForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46453,9 +52863,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network_settings_ids: z.array(z.string()).min(0).max(1).optional(), }) - const hostedComputeUpdateNetworkConfigurationForOrgResponseValidator = - responseValidationFactory([["200", s_network_configuration]], undefined) - router.patch( "hostedComputeUpdateNetworkConfigurationForOrg", "/orgs/:org/settings/network-configurations/:network_configuration_id", @@ -46475,17 +52882,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .hostedComputeUpdateNetworkConfigurationForOrg(input, responder, ctx) + .hostedComputeUpdateNetworkConfigurationForOrg( + input, + hostedComputeUpdateNetworkConfigurationForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46507,9 +52909,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network_configuration_id: z.string(), }) - const hostedComputeDeleteNetworkConfigurationFromOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "hostedComputeDeleteNetworkConfigurationFromOrg", "/orgs/:org/settings/network-configurations/:network_configuration_id", @@ -46525,17 +52924,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .hostedComputeDeleteNetworkConfigurationFromOrg(input, responder, ctx) + .hostedComputeDeleteNetworkConfigurationFromOrg( + input, + hostedComputeDeleteNetworkConfigurationFromOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46558,9 +52952,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network_settings_id: z.string(), }) - const hostedComputeGetNetworkSettingsForOrgResponseValidator = - responseValidationFactory([["200", s_network_settings]], undefined) - router.get( "hostedComputeGetNetworkSettingsForOrg", "/orgs/:org/settings/network-settings/:network_settings_id", @@ -46576,17 +52967,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .hostedComputeGetNetworkSettingsForOrg(input, responder, ctx) + .hostedComputeGetNetworkSettingsForOrg( + input, + hostedComputeGetNetworkSettingsForOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46615,18 +53001,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(28), }) - const copilotCopilotMetricsForTeamResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_copilot_usage_metrics_day)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "copilotCopilotMetricsForTeam", "/orgs/:org/team/:team_slug/copilot/metrics", @@ -46646,29 +53020,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .copilotCopilotMetricsForTeam(input, responder, ctx) + .copilotCopilotMetricsForTeam( + input, + copilotCopilotMetricsForTeamResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46689,14 +53046,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team)], - ["403", s_basic_error], - ], - undefined, - ) - router.get("teamsList", "/orgs/:org/teams", async (ctx, next) => { const input = { params: parseRequestInput( @@ -46713,20 +53062,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsList(input, responder, ctx) + .teamsList(input, teamsListResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46754,15 +53091,6 @@ export function createRouter(implementation: Implementation): KoaRouter { parent_team_id: z.coerce.number().optional(), }) - const teamsCreateResponseValidator = responseValidationFactory( - [ - ["201", s_team_full], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post("teamsCreate", "/orgs/:org/teams", async (ctx, next) => { const input = { params: parseRequestInput( @@ -46779,23 +53107,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCreate(input, responder, ctx) + .teamsCreate(input, teamsCreateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46813,14 +53126,6 @@ export function createRouter(implementation: Implementation): KoaRouter { team_slug: z.string(), }) - const teamsGetByNameResponseValidator = responseValidationFactory( - [ - ["200", s_team_full], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "teamsGetByName", "/orgs/:org/teams/:team_slug", @@ -46836,20 +53141,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetByName(input, responder, ctx) + .teamsGetByName(input, teamsGetByNameResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46881,17 +53174,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const teamsUpdateInOrgResponseValidator = responseValidationFactory( - [ - ["200", s_team_full], - ["201", s_team_full], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "teamsUpdateInOrg", "/orgs/:org/teams/:team_slug", @@ -46911,29 +53193,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsUpdateInOrg(input, responder, ctx) + .teamsUpdateInOrg(input, teamsUpdateInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46952,11 +53213,6 @@ export function createRouter(implementation: Implementation): KoaRouter { team_slug: z.string(), }) - const teamsDeleteInOrgResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "teamsDeleteInOrg", "/orgs/:org/teams/:team_slug", @@ -46972,17 +53228,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsDeleteInOrg(input, responder, ctx) + .teamsDeleteInOrg(input, teamsDeleteInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47008,11 +53255,6 @@ export function createRouter(implementation: Implementation): KoaRouter { pinned: z.string().optional(), }) - const teamsListDiscussionsInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_team_discussion)]], - undefined, - ) - router.get( "teamsListDiscussionsInOrg", "/orgs/:org/teams/:team_slug/discussions", @@ -47032,17 +53274,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListDiscussionsInOrg(input, responder, ctx) + .teamsListDiscussionsInOrg( + input, + teamsListDiscussionsInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47067,11 +53304,6 @@ export function createRouter(implementation: Implementation): KoaRouter { private: PermissiveBoolean.optional().default(false), }) - const teamsCreateDiscussionInOrgResponseValidator = responseValidationFactory( - [["201", s_team_discussion]], - undefined, - ) - router.post( "teamsCreateDiscussionInOrg", "/orgs/:org/teams/:team_slug/discussions", @@ -47091,17 +53323,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCreateDiscussionInOrg(input, responder, ctx) + .teamsCreateDiscussionInOrg( + input, + teamsCreateDiscussionInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47121,11 +53348,6 @@ export function createRouter(implementation: Implementation): KoaRouter { discussion_number: z.coerce.number(), }) - const teamsGetDiscussionInOrgResponseValidator = responseValidationFactory( - [["200", s_team_discussion]], - undefined, - ) - router.get( "teamsGetDiscussionInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number", @@ -47141,17 +53363,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetDiscussionInOrg(input, responder, ctx) + .teamsGetDiscussionInOrg(input, teamsGetDiscussionInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47175,11 +53388,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ title: z.string().optional(), body: z.string().optional() }) .optional() - const teamsUpdateDiscussionInOrgResponseValidator = responseValidationFactory( - [["200", s_team_discussion]], - undefined, - ) - router.patch( "teamsUpdateDiscussionInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number", @@ -47199,17 +53407,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsUpdateDiscussionInOrg(input, responder, ctx) + .teamsUpdateDiscussionInOrg( + input, + teamsUpdateDiscussionInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47229,11 +53432,6 @@ export function createRouter(implementation: Implementation): KoaRouter { discussion_number: z.coerce.number(), }) - const teamsDeleteDiscussionInOrgResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "teamsDeleteDiscussionInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number", @@ -47249,17 +53447,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsDeleteDiscussionInOrg(input, responder, ctx) + .teamsDeleteDiscussionInOrg( + input, + teamsDeleteDiscussionInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47285,12 +53478,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListDiscussionCommentsInOrgResponseValidator = - responseValidationFactory( - [["200", z.array(s_team_discussion_comment)]], - undefined, - ) - router.get( "teamsListDiscussionCommentsInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments", @@ -47310,17 +53497,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListDiscussionCommentsInOrg(input, responder, ctx) + .teamsListDiscussionCommentsInOrg( + input, + teamsListDiscussionCommentsInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47344,9 +53526,6 @@ export function createRouter(implementation: Implementation): KoaRouter { body: z.string(), }) - const teamsCreateDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["201", s_team_discussion_comment]], undefined) - router.post( "teamsCreateDiscussionCommentInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments", @@ -47366,17 +53545,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCreateDiscussionCommentInOrg(input, responder, ctx) + .teamsCreateDiscussionCommentInOrg( + input, + teamsCreateDiscussionCommentInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47400,9 +53574,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_number: z.coerce.number(), }) - const teamsGetDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["200", s_team_discussion_comment]], undefined) - router.get( "teamsGetDiscussionCommentInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number", @@ -47418,17 +53589,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetDiscussionCommentInOrg(input, responder, ctx) + .teamsGetDiscussionCommentInOrg( + input, + teamsGetDiscussionCommentInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47453,9 +53619,6 @@ export function createRouter(implementation: Implementation): KoaRouter { body: z.string(), }) - const teamsUpdateDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["200", s_team_discussion_comment]], undefined) - router.patch( "teamsUpdateDiscussionCommentInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number", @@ -47475,17 +53638,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsUpdateDiscussionCommentInOrg(input, responder, ctx) + .teamsUpdateDiscussionCommentInOrg( + input, + teamsUpdateDiscussionCommentInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47509,9 +53667,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_number: z.coerce.number(), }) - const teamsDeleteDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "teamsDeleteDiscussionCommentInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number", @@ -47527,17 +53682,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsDeleteDiscussionCommentInOrg(input, responder, ctx) + .teamsDeleteDiscussionCommentInOrg( + input, + teamsDeleteDiscussionCommentInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47578,9 +53728,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForTeamDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["200", z.array(s_reaction)]], undefined) - router.get( "reactionsListForTeamDiscussionCommentInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions", @@ -47600,17 +53747,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForTeamDiscussionCommentInOrg(input, responder, ctx) + .reactionsListForTeamDiscussionCommentInOrg( + input, + reactionsListForTeamDiscussionCommentInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47647,15 +53789,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const reactionsCreateForTeamDiscussionCommentInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ], - undefined, - ) - router.post( "reactionsCreateForTeamDiscussionCommentInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions", @@ -47675,20 +53808,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForTeamDiscussionCommentInOrg(input, responder, ctx) + .reactionsCreateForTeamDiscussionCommentInOrg( + input, + reactionsCreateForTeamDiscussionCommentInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47713,9 +53838,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reaction_id: z.coerce.number(), }) - const reactionsDeleteForTeamDiscussionCommentResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reactionsDeleteForTeamDiscussionComment", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id", @@ -47731,17 +53853,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsDeleteForTeamDiscussionComment(input, responder, ctx) + .reactionsDeleteForTeamDiscussionComment( + input, + reactionsDeleteForTeamDiscussionCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47781,9 +53898,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForTeamDiscussionInOrgResponseValidator = - responseValidationFactory([["200", z.array(s_reaction)]], undefined) - router.get( "reactionsListForTeamDiscussionInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions", @@ -47803,17 +53917,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForTeamDiscussionInOrg(input, responder, ctx) + .reactionsListForTeamDiscussionInOrg( + input, + reactionsListForTeamDiscussionInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47849,15 +53958,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const reactionsCreateForTeamDiscussionInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ], - undefined, - ) - router.post( "reactionsCreateForTeamDiscussionInOrg", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions", @@ -47877,20 +53977,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForTeamDiscussionInOrg(input, responder, ctx) + .reactionsCreateForTeamDiscussionInOrg( + input, + reactionsCreateForTeamDiscussionInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47914,9 +54006,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reaction_id: z.coerce.number(), }) - const reactionsDeleteForTeamDiscussionResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reactionsDeleteForTeamDiscussion", "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id", @@ -47932,17 +54021,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsDeleteForTeamDiscussion(input, responder, ctx) + .reactionsDeleteForTeamDiscussion( + input, + reactionsDeleteForTeamDiscussionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47966,12 +54050,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListPendingInvitationsInOrgResponseValidator = - responseValidationFactory( - [["200", z.array(s_organization_invitation)]], - undefined, - ) - router.get( "teamsListPendingInvitationsInOrg", "/orgs/:org/teams/:team_slug/invitations", @@ -47991,17 +54069,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListPendingInvitationsInOrg(input, responder, ctx) + .teamsListPendingInvitationsInOrg( + input, + teamsListPendingInvitationsInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48026,11 +54099,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListMembersInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, - ) - router.get( "teamsListMembersInOrg", "/orgs/:org/teams/:team_slug/members", @@ -48050,17 +54118,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListMembersInOrg(input, responder, ctx) + .teamsListMembersInOrg(input, teamsListMembersInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48080,15 +54139,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const teamsGetMembershipForUserInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_team_membership], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "teamsGetMembershipForUserInOrg", "/orgs/:org/teams/:team_slug/memberships/:username", @@ -48104,20 +54154,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetMembershipForUserInOrg(input, responder, ctx) + .teamsGetMembershipForUserInOrg( + input, + teamsGetMembershipForUserInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48143,16 +54185,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const teamsAddOrUpdateMembershipForUserInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_team_membership], - ["403", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.put( "teamsAddOrUpdateMembershipForUserInOrg", "/orgs/:org/teams/:team_slug/memberships/:username", @@ -48172,23 +54204,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsAddOrUpdateMembershipForUserInOrg(input, responder, ctx) + .teamsAddOrUpdateMembershipForUserInOrg( + input, + teamsAddOrUpdateMembershipForUserInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48211,15 +54232,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const teamsRemoveMembershipForUserInOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", z.undefined()], - ], - undefined, - ) - router.delete( "teamsRemoveMembershipForUserInOrg", "/orgs/:org/teams/:team_slug/memberships/:username", @@ -48235,20 +54247,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsRemoveMembershipForUserInOrg(input, responder, ctx) + .teamsRemoveMembershipForUserInOrg( + input, + teamsRemoveMembershipForUserInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48275,11 +54279,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListProjectsInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_team_project)]], - undefined, - ) - router.get( "teamsListProjectsInOrg", "/orgs/:org/teams/:team_slug/projects", @@ -48299,17 +54298,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListProjectsInOrg(input, responder, ctx) + .teamsListProjectsInOrg(input, teamsListProjectsInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48329,15 +54319,6 @@ export function createRouter(implementation: Implementation): KoaRouter { project_id: z.coerce.number(), }) - const teamsCheckPermissionsForProjectInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_team_project], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "teamsCheckPermissionsForProjectInOrg", "/orgs/:org/teams/:team_slug/projects/:project_id", @@ -48353,20 +54334,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCheckPermissionsForProjectInOrg(input, responder, ctx) + .teamsCheckPermissionsForProjectInOrg( + input, + teamsCheckPermissionsForProjectInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48394,21 +54367,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const teamsAddOrUpdateProjectPermissionsInOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.put( "teamsAddOrUpdateProjectPermissionsInOrg", "/orgs/:org/teams/:team_slug/projects/:project_id", @@ -48428,23 +54386,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse<{ - documentation_url?: string - message?: string - }>(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsAddOrUpdateProjectPermissionsInOrg(input, responder, ctx) + .teamsAddOrUpdateProjectPermissionsInOrg( + input, + teamsAddOrUpdateProjectPermissionsInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48467,11 +54414,6 @@ export function createRouter(implementation: Implementation): KoaRouter { project_id: z.coerce.number(), }) - const teamsRemoveProjectInOrgResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "teamsRemoveProjectInOrg", "/orgs/:org/teams/:team_slug/projects/:project_id", @@ -48487,17 +54429,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsRemoveProjectInOrg(input, responder, ctx) + .teamsRemoveProjectInOrg(input, teamsRemoveProjectInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48521,11 +54454,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListReposInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_minimal_repository)]], - undefined, - ) - router.get( "teamsListReposInOrg", "/orgs/:org/teams/:team_slug/repos", @@ -48545,17 +54473,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListReposInOrg(input, responder, ctx) + .teamsListReposInOrg(input, teamsListReposInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48576,16 +54495,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const teamsCheckPermissionsForRepoInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_team_repository], - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "teamsCheckPermissionsForRepoInOrg", "/orgs/:org/teams/:team_slug/repos/:owner/:repo", @@ -48601,23 +54510,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCheckPermissionsForRepoInOrg(input, responder, ctx) + .teamsCheckPermissionsForRepoInOrg( + input, + teamsCheckPermissionsForRepoInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48645,9 +54543,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ permission: z.string().optional() }) .optional() - const teamsAddOrUpdateRepoPermissionsInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "teamsAddOrUpdateRepoPermissionsInOrg", "/orgs/:org/teams/:team_slug/repos/:owner/:repo", @@ -48667,17 +54562,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsAddOrUpdateRepoPermissionsInOrg(input, responder, ctx) + .teamsAddOrUpdateRepoPermissionsInOrg( + input, + teamsAddOrUpdateRepoPermissionsInOrgResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48701,11 +54591,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const teamsRemoveRepoInOrgResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "teamsRemoveRepoInOrg", "/orgs/:org/teams/:team_slug/repos/:owner/:repo", @@ -48721,17 +54606,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsRemoveRepoInOrg(input, responder, ctx) + .teamsRemoveRepoInOrg(input, teamsRemoveRepoInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48755,11 +54631,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListChildInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_team)]], - undefined, - ) - router.get( "teamsListChildInOrg", "/orgs/:org/teams/:team_slug/teams", @@ -48779,17 +54650,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListChildInOrg(input, responder, ctx) + .teamsListChildInOrg(input, teamsListChildInOrgResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48821,15 +54683,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ query_suite: z.enum(["default", "extended"]).optional() }) .optional() - const orgsEnableOrDisableSecurityProductOnAllOrgReposResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.post( "orgsEnableOrDisableSecurityProductOnAllOrgRepos", "/orgs/:org/:security_product/:enablement", @@ -48849,20 +54702,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsEnableOrDisableSecurityProductOnAllOrgRepos(input, responder, ctx) + .orgsEnableOrDisableSecurityProductOnAllOrgRepos( + input, + orgsEnableOrDisableSecurityProductOnAllOrgReposResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48882,17 +54727,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const projectsGetCardParamSchema = z.object({ card_id: z.coerce.number() }) - const projectsGetCardResponseValidator = responseValidationFactory( - [ - ["200", s_project_card], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "projectsGetCard", "/projects/columns/cards/:card_id", @@ -48908,29 +54742,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsGetCard(input, responder, ctx) + .projectsGetCard(input, projectsGetCardResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48953,18 +54766,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const projectsUpdateCardResponseValidator = responseValidationFactory( - [ - ["200", s_project_card], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.patch( "projectsUpdateCard", "/projects/columns/cards/:card_id", @@ -48984,32 +54785,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsUpdateCard(input, responder, ctx) + .projectsUpdateCard(input, projectsUpdateCardResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49025,24 +54802,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const projectsDeleteCardParamSchema = z.object({ card_id: z.coerce.number() }) - const projectsDeleteCardResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z.array(z.string()).optional(), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "projectsDeleteCard", "/projects/columns/cards/:card_id", @@ -49058,33 +54817,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse<{ - documentation_url?: string - errors?: string[] - message?: string - }>(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsDeleteCard(input, responder, ctx) + .projectsDeleteCard(input, projectsDeleteCardResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49105,49 +54839,6 @@ export function createRouter(implementation: Implementation): KoaRouter { column_id: z.coerce.number().optional(), }) - const projectsMoveCardResponseValidator = responseValidationFactory( - [ - ["201", z.object({})], - ["304", z.undefined()], - ["401", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z - .array( - z.object({ - code: z.string().optional(), - message: z.string().optional(), - resource: z.string().optional(), - field: z.string().optional(), - }), - ) - .optional(), - }), - ], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z - .array( - z.object({ - code: z.string().optional(), - message: z.string().optional(), - }), - ) - .optional(), - }), - ], - ], - undefined, - ) - router.post( "projectsMoveCard", "/projects/columns/cards/:card_id/moves", @@ -49167,49 +54858,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse<{ - documentation_url?: string - errors?: { - code?: string - field?: string - message?: string - resource?: string - }[] - message?: string - }>(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - errors?: { - code?: string - message?: string - }[] - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsMoveCard(input, responder, ctx) + .projectsMoveCard(input, projectsMoveCardResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49227,17 +54877,6 @@ export function createRouter(implementation: Implementation): KoaRouter { column_id: z.coerce.number(), }) - const projectsGetColumnResponseValidator = responseValidationFactory( - [ - ["200", s_project_column], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "projectsGetColumn", "/projects/columns/:column_id", @@ -49253,29 +54892,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsGetColumn(input, responder, ctx) + .projectsGetColumn(input, projectsGetColumnResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49295,16 +54913,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const projectsUpdateColumnBodySchema = z.object({ name: z.string() }) - const projectsUpdateColumnResponseValidator = responseValidationFactory( - [ - ["200", s_project_column], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.patch( "projectsUpdateColumn", "/projects/columns/:column_id", @@ -49324,26 +54932,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsUpdateColumn(input, responder, ctx) + .projectsUpdateColumn(input, projectsUpdateColumnResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49361,16 +54951,6 @@ export function createRouter(implementation: Implementation): KoaRouter { column_id: z.coerce.number(), }) - const projectsDeleteColumnResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.delete( "projectsDeleteColumn", "/projects/columns/:column_id", @@ -49386,26 +54966,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsDeleteColumn(input, responder, ctx) + .projectsDeleteColumn(input, projectsDeleteColumnResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49432,16 +54994,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const projectsListCardsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project_card)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "projectsListCards", "/projects/columns/:column_id/cards", @@ -49461,26 +55013,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsListCards(input, responder, ctx) + .projectsListCards(input, projectsListCardsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49503,33 +55037,6 @@ export function createRouter(implementation: Implementation): KoaRouter { z.object({ content_id: z.coerce.number(), content_type: z.string() }), ]) - const projectsCreateCardResponseValidator = responseValidationFactory( - [ - ["201", s_project_card], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", z.union([s_validation_error, s_validation_error_simple])], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z - .array( - z.object({ - code: z.string().optional(), - message: z.string().optional(), - }), - ) - .optional(), - }), - ], - ], - undefined, - ) - router.post( "projectsCreateCard", "/projects/columns/:column_id/cards", @@ -49549,42 +55056,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse< - t_validation_error | t_validation_error_simple - >(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - errors?: { - code?: string - message?: string - }[] - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsCreateCard(input, responder, ctx) + .projectsCreateCard(input, projectsCreateCardResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49606,17 +55079,6 @@ export function createRouter(implementation: Implementation): KoaRouter { position: z.string().regex(new RegExp("^(?:first|last|after:\\d+)$")), }) - const projectsMoveColumnResponseValidator = responseValidationFactory( - [ - ["201", z.object({})], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "projectsMoveColumn", "/projects/columns/:column_id/moves", @@ -49636,29 +55098,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsMoveColumn(input, responder, ctx) + .projectsMoveColumn(input, projectsMoveColumnResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49674,16 +55115,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const projectsGetParamSchema = z.object({ project_id: z.coerce.number() }) - const projectsGetResponseValidator = responseValidationFactory( - [ - ["200", s_project], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get("projectsGet", "/projects/:project_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -49696,26 +55127,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsGet(input, responder, ctx) + .projectsGet(input, projectsGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49742,26 +55155,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const projectsUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_project], - ["304", z.undefined()], - ["401", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z.array(z.string()).optional(), - }), - ], - ["404", z.undefined()], - ["410", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.patch("projectsUpdate", "/projects/:project_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -49778,39 +55171,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse<{ - documentation_url?: string - errors?: string[] - message?: string - }>(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsUpdate(input, responder, ctx) + .projectsUpdate(input, projectsUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49825,25 +55187,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const projectsDeleteParamSchema = z.object({ project_id: z.coerce.number() }) - const projectsDeleteResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z.array(z.string()).optional(), - }), - ], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.delete( "projectsDelete", "/projects/:project_id", @@ -49859,36 +55202,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse<{ - documentation_url?: string - errors?: string[] - message?: string - }>(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsDelete(input, responder, ctx) + .projectsDelete(input, projectsDeleteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49912,18 +55227,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const projectsListCollaboratorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "projectsListCollaborators", "/projects/:project_id/collaborators", @@ -49943,32 +55246,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsListCollaborators(input, responder, ctx) + .projectsListCollaborators( + input, + projectsListCollaboratorsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49997,18 +55280,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const projectsAddCollaboratorResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "projectsAddCollaborator", "/projects/:project_id/collaborators/:username", @@ -50028,32 +55299,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsAddCollaborator(input, responder, ctx) + .projectsAddCollaborator(input, projectsAddCollaboratorResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50072,18 +55319,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const projectsRemoveCollaboratorResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "projectsRemoveCollaborator", "/projects/:project_id/collaborators/:username", @@ -50099,32 +55334,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsRemoveCollaborator(input, responder, ctx) + .projectsRemoveCollaborator( + input, + projectsRemoveCollaboratorResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50143,19 +55358,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const projectsGetPermissionForUserResponseValidator = - responseValidationFactory( - [ - ["200", s_project_collaborator_permission], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "projectsGetPermissionForUser", "/projects/:project_id/collaborators/:username/permission", @@ -50171,32 +55373,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsGetPermissionForUser(input, responder, ctx) + .projectsGetPermissionForUser( + input, + projectsGetPermissionForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50219,16 +55401,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const projectsListColumnsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project_column)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "projectsListColumns", "/projects/:project_id/columns", @@ -50248,26 +55420,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsListColumns(input, responder, ctx) + .projectsListColumns(input, projectsListColumnsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50287,17 +55441,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const projectsCreateColumnBodySchema = z.object({ name: z.string() }) - const projectsCreateColumnResponseValidator = responseValidationFactory( - [ - ["201", s_project_column], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "projectsCreateColumn", "/projects/:project_id/columns", @@ -50317,29 +55460,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsCreateColumn(input, responder, ctx) + .projectsCreateColumn(input, projectsCreateColumnResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50353,15 +55475,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const rateLimitGetResponseValidator = responseValidationFactory( - [ - ["200", s_rate_limit_overview], - ["304", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get("rateLimitGet", "/rate_limit", async (ctx, next) => { const input = { params: undefined, @@ -50370,23 +55483,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .rateLimitGet(input, responder, ctx) + .rateLimitGet(input, rateLimitGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50401,16 +55499,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposGetParamSchema = z.object({ owner: z.string(), repo: z.string() }) - const reposGetResponseValidator = responseValidationFactory( - [ - ["200", s_full_repository], - ["301", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get("reposGet", "/repos/:owner/:repo", async (ctx, next) => { const input = { params: parseRequestInput( @@ -50423,26 +55511,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGet(input, responder, ctx) + .reposGet(input, reposGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50515,17 +55585,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_full_repository], - ["307", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch("reposUpdate", "/repos/:owner/:repo", async (ctx, next) => { const input = { params: parseRequestInput( @@ -50542,29 +55601,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with307() { - return new KoaRuntimeResponse(307) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdate(input, responder, ctx) + .reposUpdate(input, reposUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50582,22 +55620,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposDeleteResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["307", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.delete("reposDelete", "/repos/:owner/:repo", async (ctx, next) => { const input = { params: parseRequestInput( @@ -50610,29 +55632,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with307() { - return new KoaRuntimeResponse(307) - }, - with403() { - return new KoaRuntimeResponse<{ - documentation_url?: string - message?: string - }>(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDelete(input, responder, ctx) + .reposDelete(input, reposDeleteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50656,20 +55657,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string().optional(), }) - const actionsListArtifactsForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - artifacts: z.array(s_artifact), - }), - ], - ], - undefined, - ) - router.get( "actionsListArtifactsForRepo", "/repos/:owner/:repo/actions/artifacts", @@ -50689,20 +55676,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - artifacts: t_artifact[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListArtifactsForRepo(input, responder, ctx) + .actionsListArtifactsForRepo( + input, + actionsListArtifactsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50722,11 +55701,6 @@ export function createRouter(implementation: Implementation): KoaRouter { artifact_id: z.coerce.number(), }) - const actionsGetArtifactResponseValidator = responseValidationFactory( - [["200", s_artifact]], - undefined, - ) - router.get( "actionsGetArtifact", "/repos/:owner/:repo/actions/artifacts/:artifact_id", @@ -50742,17 +55716,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetArtifact(input, responder, ctx) + .actionsGetArtifact(input, actionsGetArtifactResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50772,11 +55737,6 @@ export function createRouter(implementation: Implementation): KoaRouter { artifact_id: z.coerce.number(), }) - const actionsDeleteArtifactResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "actionsDeleteArtifact", "/repos/:owner/:repo/actions/artifacts/:artifact_id", @@ -50792,17 +55752,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteArtifact(input, responder, ctx) + .actionsDeleteArtifact(input, actionsDeleteArtifactResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50823,14 +55774,6 @@ export function createRouter(implementation: Implementation): KoaRouter { archive_format: z.string(), }) - const actionsDownloadArtifactResponseValidator = responseValidationFactory( - [ - ["302", z.undefined()], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "actionsDownloadArtifact", "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format", @@ -50846,20 +55789,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with302() { - return new KoaRuntimeResponse(302) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDownloadArtifact(input, responder, ctx) + .actionsDownloadArtifact(input, actionsDownloadArtifactResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50878,12 +55809,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsGetActionsCacheUsageResponseValidator = - responseValidationFactory( - [["200", s_actions_cache_usage_by_repository]], - undefined, - ) - router.get( "actionsGetActionsCacheUsage", "/repos/:owner/:repo/actions/cache/usage", @@ -50899,19 +55824,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetActionsCacheUsage(input, responder, ctx) + .actionsGetActionsCacheUsage( + input, + actionsGetActionsCacheUsageResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50942,11 +55860,6 @@ export function createRouter(implementation: Implementation): KoaRouter { direction: z.enum(["asc", "desc"]).optional().default("desc"), }) - const actionsGetActionsCacheListResponseValidator = responseValidationFactory( - [["200", s_actions_cache_list]], - undefined, - ) - router.get( "actionsGetActionsCacheList", "/repos/:owner/:repo/actions/caches", @@ -50966,17 +55879,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetActionsCacheList(input, responder, ctx) + .actionsGetActionsCacheList( + input, + actionsGetActionsCacheListResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51000,9 +55908,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string().optional(), }) - const actionsDeleteActionsCacheByKeyResponseValidator = - responseValidationFactory([["200", s_actions_cache_list]], undefined) - router.delete( "actionsDeleteActionsCacheByKey", "/repos/:owner/:repo/actions/caches", @@ -51022,17 +55927,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteActionsCacheByKey(input, responder, ctx) + .actionsDeleteActionsCacheByKey( + input, + actionsDeleteActionsCacheByKeyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51052,9 +55952,6 @@ export function createRouter(implementation: Implementation): KoaRouter { cache_id: z.coerce.number(), }) - const actionsDeleteActionsCacheByIdResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsDeleteActionsCacheById", "/repos/:owner/:repo/actions/caches/:cache_id", @@ -51070,17 +55967,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteActionsCacheById(input, responder, ctx) + .actionsDeleteActionsCacheById( + input, + actionsDeleteActionsCacheByIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51100,9 +55992,6 @@ export function createRouter(implementation: Implementation): KoaRouter { job_id: z.coerce.number(), }) - const actionsGetJobForWorkflowRunResponseValidator = - responseValidationFactory([["200", s_job]], undefined) - router.get( "actionsGetJobForWorkflowRun", "/repos/:owner/:repo/actions/jobs/:job_id", @@ -51118,17 +56007,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetJobForWorkflowRun(input, responder, ctx) + .actionsGetJobForWorkflowRun( + input, + actionsGetJobForWorkflowRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51148,9 +56032,6 @@ export function createRouter(implementation: Implementation): KoaRouter { job_id: z.coerce.number(), }) - const actionsDownloadJobLogsForWorkflowRunResponseValidator = - responseValidationFactory([["302", z.undefined()]], undefined) - router.get( "actionsDownloadJobLogsForWorkflowRun", "/repos/:owner/:repo/actions/jobs/:job_id/logs", @@ -51166,17 +56047,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with302() { - return new KoaRuntimeResponse(302) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDownloadJobLogsForWorkflowRun(input, responder, ctx) + .actionsDownloadJobLogsForWorkflowRun( + input, + actionsDownloadJobLogsForWorkflowRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51206,15 +56082,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const actionsReRunJobForWorkflowRunResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["403", s_basic_error], - ], - undefined, - ) - router.post( "actionsReRunJobForWorkflowRun", "/repos/:owner/:repo/actions/jobs/:job_id/rerun", @@ -51234,20 +56101,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsReRunJobForWorkflowRun(input, responder, ctx) + .actionsReRunJobForWorkflowRun( + input, + actionsReRunJobForWorkflowRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51266,16 +56125,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsGetCustomOidcSubClaimForRepoResponseValidator = - responseValidationFactory( - [ - ["200", s_oidc_custom_sub_repo], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "actionsGetCustomOidcSubClaimForRepo", "/repos/:owner/:repo/actions/oidc/customization/sub", @@ -51291,23 +56140,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetCustomOidcSubClaimForRepo(input, responder, ctx) + .actionsGetCustomOidcSubClaimForRepo( + input, + actionsGetCustomOidcSubClaimForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51334,17 +56172,6 @@ export function createRouter(implementation: Implementation): KoaRouter { include_claim_keys: z.array(z.string()).optional(), }) - const actionsSetCustomOidcSubClaimForRepoResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["400", s_scim_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.put( "actionsSetCustomOidcSubClaimForRepo", "/repos/:owner/:repo/actions/oidc/customization/sub", @@ -51364,26 +56191,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetCustomOidcSubClaimForRepo(input, responder, ctx) + .actionsSetCustomOidcSubClaimForRepo( + input, + actionsSetCustomOidcSubClaimForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51410,20 +56223,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListRepoOrganizationSecretsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_actions_secret), - }), - ], - ], - undefined, - ) - router.get( "actionsListRepoOrganizationSecrets", "/repos/:owner/:repo/actions/organization-secrets", @@ -51443,20 +56242,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_actions_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListRepoOrganizationSecrets(input, responder, ctx) + .actionsListRepoOrganizationSecrets( + input, + actionsListRepoOrganizationSecretsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51483,20 +56274,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListRepoOrganizationVariablesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - variables: z.array(s_actions_variable), - }), - ], - ], - undefined, - ) - router.get( "actionsListRepoOrganizationVariables", "/repos/:owner/:repo/actions/organization-variables", @@ -51516,20 +56293,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - total_count: number - variables: t_actions_variable[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListRepoOrganizationVariables(input, responder, ctx) + .actionsListRepoOrganizationVariables( + input, + actionsListRepoOrganizationVariablesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51551,12 +56320,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsGetGithubActionsPermissionsRepositoryResponseValidator = - responseValidationFactory( - [["200", s_actions_repository_permissions]], - undefined, - ) - router.get( "actionsGetGithubActionsPermissionsRepository", "/repos/:owner/:repo/actions/permissions", @@ -51572,17 +56335,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetGithubActionsPermissionsRepository(input, responder, ctx) + .actionsGetGithubActionsPermissionsRepository( + input, + actionsGetGithubActionsPermissionsRepositoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51609,9 +56367,6 @@ export function createRouter(implementation: Implementation): KoaRouter { allowed_actions: s_allowed_actions.optional(), }) - const actionsSetGithubActionsPermissionsRepositoryResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetGithubActionsPermissionsRepository", "/repos/:owner/:repo/actions/permissions", @@ -51631,17 +56386,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetGithubActionsPermissionsRepository(input, responder, ctx) + .actionsSetGithubActionsPermissionsRepository( + input, + actionsSetGithubActionsPermissionsRepositoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51663,12 +56413,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsGetWorkflowAccessToRepositoryResponseValidator = - responseValidationFactory( - [["200", s_actions_workflow_access_to_repository]], - undefined, - ) - router.get( "actionsGetWorkflowAccessToRepository", "/repos/:owner/:repo/actions/permissions/access", @@ -51684,19 +56428,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetWorkflowAccessToRepository(input, responder, ctx) + .actionsGetWorkflowAccessToRepository( + input, + actionsGetWorkflowAccessToRepositoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51721,9 +56458,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsSetWorkflowAccessToRepositoryBodySchema = s_actions_workflow_access_to_repository - const actionsSetWorkflowAccessToRepositoryResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetWorkflowAccessToRepository", "/repos/:owner/:repo/actions/permissions/access", @@ -51743,17 +56477,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetWorkflowAccessToRepository(input, responder, ctx) + .actionsSetWorkflowAccessToRepository( + input, + actionsSetWorkflowAccessToRepositoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51775,9 +56504,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsGetAllowedActionsRepositoryResponseValidator = - responseValidationFactory([["200", s_selected_actions]], undefined) - router.get( "actionsGetAllowedActionsRepository", "/repos/:owner/:repo/actions/permissions/selected-actions", @@ -51793,17 +56519,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetAllowedActionsRepository(input, responder, ctx) + .actionsGetAllowedActionsRepository( + input, + actionsGetAllowedActionsRepositoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51828,9 +56549,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsSetAllowedActionsRepositoryBodySchema = s_selected_actions.optional() - const actionsSetAllowedActionsRepositoryResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "actionsSetAllowedActionsRepository", "/repos/:owner/:repo/actions/permissions/selected-actions", @@ -51850,17 +56568,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetAllowedActionsRepository(input, responder, ctx) + .actionsSetAllowedActionsRepository( + input, + actionsSetAllowedActionsRepositoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51880,12 +56593,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParamSchema = z.object({ owner: z.string(), repo: z.string() }) - const actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponseValidator = - responseValidationFactory( - [["200", s_actions_get_default_workflow_permissions]], - undefined, - ) - router.get( "actionsGetGithubActionsDefaultWorkflowPermissionsRepository", "/repos/:owner/:repo/actions/permissions/workflow", @@ -51901,21 +56608,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsGetGithubActionsDefaultWorkflowPermissionsRepository( input, - responder, + actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder, ctx, ) .catch((err) => { @@ -51941,15 +56637,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryBodySchema = s_actions_set_default_workflow_permissions - const actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.put( "actionsSetGithubActionsDefaultWorkflowPermissionsRepository", "/repos/:owner/:repo/actions/permissions/workflow", @@ -51969,22 +56656,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsSetGithubActionsDefaultWorkflowPermissionsRepository( input, - responder, + actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder, ctx, ) .catch((err) => { @@ -52015,20 +56690,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListSelfHostedRunnersForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_runner), - }), - ], - ], - undefined, - ) - router.get( "actionsListSelfHostedRunnersForRepo", "/repos/:owner/:repo/actions/runners", @@ -52048,20 +56709,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - runners: t_runner[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListSelfHostedRunnersForRepo(input, responder, ctx) + .actionsListSelfHostedRunnersForRepo( + input, + actionsListSelfHostedRunnersForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52083,12 +56736,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsListRunnerApplicationsForRepoResponseValidator = - responseValidationFactory( - [["200", z.array(s_runner_application)]], - undefined, - ) - router.get( "actionsListRunnerApplicationsForRepo", "/repos/:owner/:repo/actions/runners/downloads", @@ -52104,17 +56751,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListRunnerApplicationsForRepo(input, responder, ctx) + .actionsListRunnerApplicationsForRepo( + input, + actionsListRunnerApplicationsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52143,17 +56785,6 @@ export function createRouter(implementation: Implementation): KoaRouter { work_folder: z.string().optional().default("_work"), }) - const actionsGenerateRunnerJitconfigForRepoResponseValidator = - responseValidationFactory( - [ - ["201", z.object({ runner: s_runner, encoded_jit_config: z.string() })], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "actionsGenerateRunnerJitconfigForRepo", "/repos/:owner/:repo/actions/runners/generate-jitconfig", @@ -52173,29 +56804,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse<{ - encoded_jit_config: string - runner: t_runner - }>(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGenerateRunnerJitconfigForRepo(input, responder, ctx) + .actionsGenerateRunnerJitconfigForRepo( + input, + actionsGenerateRunnerJitconfigForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52217,9 +56831,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsCreateRegistrationTokenForRepoResponseValidator = - responseValidationFactory([["201", s_authentication_token]], undefined) - router.post( "actionsCreateRegistrationTokenForRepo", "/repos/:owner/:repo/actions/runners/registration-token", @@ -52235,17 +56846,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateRegistrationTokenForRepo(input, responder, ctx) + .actionsCreateRegistrationTokenForRepo( + input, + actionsCreateRegistrationTokenForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52267,9 +56873,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsCreateRemoveTokenForRepoResponseValidator = - responseValidationFactory([["201", s_authentication_token]], undefined) - router.post( "actionsCreateRemoveTokenForRepo", "/repos/:owner/:repo/actions/runners/remove-token", @@ -52285,17 +56888,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateRemoveTokenForRepo(input, responder, ctx) + .actionsCreateRemoveTokenForRepo( + input, + actionsCreateRemoveTokenForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52315,9 +56913,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsGetSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory([["200", s_runner]], undefined) - router.get( "actionsGetSelfHostedRunnerForRepo", "/repos/:owner/:repo/actions/runners/:runner_id", @@ -52333,17 +56928,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetSelfHostedRunnerForRepo(input, responder, ctx) + .actionsGetSelfHostedRunnerForRepo( + input, + actionsGetSelfHostedRunnerForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52366,9 +56956,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsDeleteSelfHostedRunnerFromRepoResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsDeleteSelfHostedRunnerFromRepo", "/repos/:owner/:repo/actions/runners/:runner_id", @@ -52384,17 +56971,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteSelfHostedRunnerFromRepo(input, responder, ctx) + .actionsDeleteSelfHostedRunnerFromRepo( + input, + actionsDeleteSelfHostedRunnerFromRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52417,21 +56999,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsListLabelsForSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "actionsListLabelsForSelfHostedRunnerForRepo", "/repos/:owner/:repo/actions/runners/:runner_id/labels", @@ -52447,23 +57014,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListLabelsForSelfHostedRunnerForRepo(input, responder, ctx) + .actionsListLabelsForSelfHostedRunnerForRepo( + input, + actionsListLabelsForSelfHostedRunnerForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52490,22 +57046,6 @@ export function createRouter(implementation: Implementation): KoaRouter { labels: z.array(z.string()).min(1).max(100), }) - const actionsAddCustomLabelsToSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "actionsAddCustomLabelsToSelfHostedRunnerForRepo", "/repos/:owner/:repo/actions/runners/:runner_id/labels", @@ -52525,26 +57065,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsAddCustomLabelsToSelfHostedRunnerForRepo(input, responder, ctx) + .actionsAddCustomLabelsToSelfHostedRunnerForRepo( + input, + actionsAddCustomLabelsToSelfHostedRunnerForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52572,22 +57098,6 @@ export function createRouter(implementation: Implementation): KoaRouter { labels: z.array(z.string()).min(0).max(100), }) - const actionsSetCustomLabelsForSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.put( "actionsSetCustomLabelsForSelfHostedRunnerForRepo", "/repos/:owner/:repo/actions/runners/:runner_id/labels", @@ -52607,26 +57117,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsSetCustomLabelsForSelfHostedRunnerForRepo(input, responder, ctx) + .actionsSetCustomLabelsForSelfHostedRunnerForRepo( + input, + actionsSetCustomLabelsForSelfHostedRunnerForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52651,21 +57147,6 @@ export function createRouter(implementation: Implementation): KoaRouter { runner_id: z.coerce.number(), }) - const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo", "/repos/:owner/:repo/actions/runners/:runner_id/labels", @@ -52681,25 +57162,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo( input, - responder, + actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder, ctx, ) .catch((err) => { @@ -52727,22 +57193,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.delete( "actionsRemoveCustomLabelFromSelfHostedRunnerForRepo", "/repos/:owner/:repo/actions/runners/:runner_id/labels/:name", @@ -52758,28 +57208,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - labels: t_runner_label[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .actionsRemoveCustomLabelFromSelfHostedRunnerForRepo( input, - responder, + actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder, ctx, ) .catch((err) => { @@ -52834,20 +57266,6 @@ export function createRouter(implementation: Implementation): KoaRouter { head_sha: z.string().optional(), }) - const actionsListWorkflowRunsForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - workflow_runs: z.array(s_workflow_run), - }), - ], - ], - undefined, - ) - router.get( "actionsListWorkflowRunsForRepo", "/repos/:owner/:repo/actions/runs", @@ -52867,20 +57285,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - total_count: number - workflow_runs: t_workflow_run[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListWorkflowRunsForRepo(input, responder, ctx) + .actionsListWorkflowRunsForRepo( + input, + actionsListWorkflowRunsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52904,11 +57314,6 @@ export function createRouter(implementation: Implementation): KoaRouter { exclude_pull_requests: PermissiveBoolean.optional().default(false), }) - const actionsGetWorkflowRunResponseValidator = responseValidationFactory( - [["200", s_workflow_run]], - undefined, - ) - router.get( "actionsGetWorkflowRun", "/repos/:owner/:repo/actions/runs/:run_id", @@ -52928,17 +57333,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetWorkflowRun(input, responder, ctx) + .actionsGetWorkflowRun(input, actionsGetWorkflowRunResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52958,11 +57354,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsDeleteWorkflowRunResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "actionsDeleteWorkflowRun", "/repos/:owner/:repo/actions/runs/:run_id", @@ -52978,17 +57369,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteWorkflowRun(input, responder, ctx) + .actionsDeleteWorkflowRun(input, actionsDeleteWorkflowRunResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53008,11 +57390,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsGetReviewsForRunResponseValidator = responseValidationFactory( - [["200", z.array(s_environment_approvals)]], - undefined, - ) - router.get( "actionsGetReviewsForRun", "/repos/:owner/:repo/actions/runs/:run_id/approvals", @@ -53028,17 +57405,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetReviewsForRun(input, responder, ctx) + .actionsGetReviewsForRun(input, actionsGetReviewsForRunResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53058,15 +57426,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsApproveWorkflowRunResponseValidator = responseValidationFactory( - [ - ["201", s_empty_object], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "actionsApproveWorkflowRun", "/repos/:owner/:repo/actions/runs/:run_id/approve", @@ -53082,23 +57441,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsApproveWorkflowRun(input, responder, ctx) + .actionsApproveWorkflowRun( + input, + actionsApproveWorkflowRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53124,20 +57472,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string().optional(), }) - const actionsListWorkflowRunArtifactsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - artifacts: z.array(s_artifact), - }), - ], - ], - undefined, - ) - router.get( "actionsListWorkflowRunArtifacts", "/repos/:owner/:repo/actions/runs/:run_id/artifacts", @@ -53157,20 +57491,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - artifacts: t_artifact[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListWorkflowRunArtifacts(input, responder, ctx) + .actionsListWorkflowRunArtifacts( + input, + actionsListWorkflowRunArtifactsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53195,9 +57521,6 @@ export function createRouter(implementation: Implementation): KoaRouter { exclude_pull_requests: PermissiveBoolean.optional().default(false), }) - const actionsGetWorkflowRunAttemptResponseValidator = - responseValidationFactory([["200", s_workflow_run]], undefined) - router.get( "actionsGetWorkflowRunAttempt", "/repos/:owner/:repo/actions/runs/:run_id/attempts/:attempt_number", @@ -53217,17 +57540,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetWorkflowRunAttempt(input, responder, ctx) + .actionsGetWorkflowRunAttempt( + input, + actionsGetWorkflowRunAttemptResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53253,18 +57571,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListJobsForWorkflowRunAttemptResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ total_count: z.coerce.number(), jobs: z.array(s_job) }), - ], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "actionsListJobsForWorkflowRunAttempt", "/repos/:owner/:repo/actions/runs/:run_id/attempts/:attempt_number/jobs", @@ -53284,23 +57590,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - jobs: t_job[] - total_count: number - }>(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListJobsForWorkflowRunAttempt(input, responder, ctx) + .actionsListJobsForWorkflowRunAttempt( + input, + actionsListJobsForWorkflowRunAttemptResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53324,9 +57619,6 @@ export function createRouter(implementation: Implementation): KoaRouter { attempt_number: z.coerce.number(), }) - const actionsDownloadWorkflowRunAttemptLogsResponseValidator = - responseValidationFactory([["302", z.undefined()]], undefined) - router.get( "actionsDownloadWorkflowRunAttemptLogs", "/repos/:owner/:repo/actions/runs/:run_id/attempts/:attempt_number/logs", @@ -53342,17 +57634,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with302() { - return new KoaRuntimeResponse(302) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDownloadWorkflowRunAttemptLogs(input, responder, ctx) + .actionsDownloadWorkflowRunAttemptLogs( + input, + actionsDownloadWorkflowRunAttemptLogsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53375,14 +57662,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsCancelWorkflowRunResponseValidator = responseValidationFactory( - [ - ["202", s_empty_object], - ["409", s_basic_error], - ], - undefined, - ) - router.post( "actionsCancelWorkflowRun", "/repos/:owner/:repo/actions/runs/:run_id/cancel", @@ -53398,20 +57677,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCancelWorkflowRun(input, responder, ctx) + .actionsCancelWorkflowRun(input, actionsCancelWorkflowRunResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53436,9 +57703,6 @@ export function createRouter(implementation: Implementation): KoaRouter { s_review_custom_gates_state_required, ]) - const actionsReviewCustomGatesForRunResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.post( "actionsReviewCustomGatesForRun", "/repos/:owner/:repo/actions/runs/:run_id/deployment_protection_rule", @@ -53458,17 +57722,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsReviewCustomGatesForRun(input, responder, ctx) + .actionsReviewCustomGatesForRun( + input, + actionsReviewCustomGatesForRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53488,15 +57747,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsForceCancelWorkflowRunResponseValidator = - responseValidationFactory( - [ - ["202", s_empty_object], - ["409", s_basic_error], - ], - undefined, - ) - router.post( "actionsForceCancelWorkflowRun", "/repos/:owner/:repo/actions/runs/:run_id/force-cancel", @@ -53512,20 +57762,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsForceCancelWorkflowRun(input, responder, ctx) + .actionsForceCancelWorkflowRun( + input, + actionsForceCancelWorkflowRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53551,17 +57793,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListJobsForWorkflowRunResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ total_count: z.coerce.number(), jobs: z.array(s_job) }), - ], - ], - undefined, - ) - router.get( "actionsListJobsForWorkflowRun", "/repos/:owner/:repo/actions/runs/:run_id/jobs", @@ -53581,20 +57812,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - jobs: t_job[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListJobsForWorkflowRun(input, responder, ctx) + .actionsListJobsForWorkflowRun( + input, + actionsListJobsForWorkflowRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53614,9 +57837,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsDownloadWorkflowRunLogsResponseValidator = - responseValidationFactory([["302", z.undefined()]], undefined) - router.get( "actionsDownloadWorkflowRunLogs", "/repos/:owner/:repo/actions/runs/:run_id/logs", @@ -53632,17 +57852,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with302() { - return new KoaRuntimeResponse(302) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDownloadWorkflowRunLogs(input, responder, ctx) + .actionsDownloadWorkflowRunLogs( + input, + actionsDownloadWorkflowRunLogsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53662,16 +57877,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsDeleteWorkflowRunLogsResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "actionsDeleteWorkflowRunLogs", "/repos/:owner/:repo/actions/runs/:run_id/logs", @@ -53687,23 +57892,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteWorkflowRunLogs(input, responder, ctx) + .actionsDeleteWorkflowRunLogs( + input, + actionsDeleteWorkflowRunLogsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53723,12 +57917,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsGetPendingDeploymentsForRunResponseValidator = - responseValidationFactory( - [["200", z.array(s_pending_deployment)]], - undefined, - ) - router.get( "actionsGetPendingDeploymentsForRun", "/repos/:owner/:repo/actions/runs/:run_id/pending_deployments", @@ -53744,17 +57932,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetPendingDeploymentsForRun(input, responder, ctx) + .actionsGetPendingDeploymentsForRun( + input, + actionsGetPendingDeploymentsForRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53783,9 +57966,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment: z.string(), }) - const actionsReviewPendingDeploymentsForRunResponseValidator = - responseValidationFactory([["200", z.array(s_deployment)]], undefined) - router.post( "actionsReviewPendingDeploymentsForRun", "/repos/:owner/:repo/actions/runs/:run_id/pending_deployments", @@ -53805,17 +57985,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsReviewPendingDeploymentsForRun(input, responder, ctx) + .actionsReviewPendingDeploymentsForRun( + input, + actionsReviewPendingDeploymentsForRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53845,11 +58020,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const actionsReRunWorkflowResponseValidator = responseValidationFactory( - [["201", s_empty_object]], - undefined, - ) - router.post( "actionsReRunWorkflow", "/repos/:owner/:repo/actions/runs/:run_id/rerun", @@ -53869,17 +58039,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsReRunWorkflow(input, responder, ctx) + .actionsReRunWorkflow(input, actionsReRunWorkflowResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53906,9 +58067,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const actionsReRunWorkflowFailedJobsResponseValidator = - responseValidationFactory([["201", s_empty_object]], undefined) - router.post( "actionsReRunWorkflowFailedJobs", "/repos/:owner/:repo/actions/runs/:run_id/rerun-failed-jobs", @@ -53928,17 +58086,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsReRunWorkflowFailedJobs(input, responder, ctx) + .actionsReRunWorkflowFailedJobs( + input, + actionsReRunWorkflowFailedJobsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53958,11 +58111,6 @@ export function createRouter(implementation: Implementation): KoaRouter { run_id: z.coerce.number(), }) - const actionsGetWorkflowRunUsageResponseValidator = responseValidationFactory( - [["200", s_workflow_run_usage]], - undefined, - ) - router.get( "actionsGetWorkflowRunUsage", "/repos/:owner/:repo/actions/runs/:run_id/timing", @@ -53978,17 +58126,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetWorkflowRunUsage(input, responder, ctx) + .actionsGetWorkflowRunUsage( + input, + actionsGetWorkflowRunUsageResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54012,19 +58155,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListRepoSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_actions_secret), - }), - ], - ], - undefined, - ) - router.get( "actionsListRepoSecrets", "/repos/:owner/:repo/actions/secrets", @@ -54044,20 +58174,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_actions_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListRepoSecrets(input, responder, ctx) + .actionsListRepoSecrets(input, actionsListRepoSecretsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54076,11 +58194,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const actionsGetRepoPublicKeyResponseValidator = responseValidationFactory( - [["200", s_actions_public_key]], - undefined, - ) - router.get( "actionsGetRepoPublicKey", "/repos/:owner/:repo/actions/secrets/public-key", @@ -54096,17 +58209,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetRepoPublicKey(input, responder, ctx) + .actionsGetRepoPublicKey(input, actionsGetRepoPublicKeyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54126,11 +58230,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const actionsGetRepoSecretResponseValidator = responseValidationFactory( - [["200", s_actions_secret]], - undefined, - ) - router.get( "actionsGetRepoSecret", "/repos/:owner/:repo/actions/secrets/:secret_name", @@ -54146,17 +58245,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetRepoSecret(input, responder, ctx) + .actionsGetRepoSecret(input, actionsGetRepoSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54187,15 +58277,6 @@ export function createRouter(implementation: Implementation): KoaRouter { key_id: z.string(), }) - const actionsCreateOrUpdateRepoSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) - router.put( "actionsCreateOrUpdateRepoSecret", "/repos/:owner/:repo/actions/secrets/:secret_name", @@ -54215,20 +58296,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateOrUpdateRepoSecret(input, responder, ctx) + .actionsCreateOrUpdateRepoSecret( + input, + actionsCreateOrUpdateRepoSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54248,11 +58321,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const actionsDeleteRepoSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "actionsDeleteRepoSecret", "/repos/:owner/:repo/actions/secrets/:secret_name", @@ -54268,17 +58336,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteRepoSecret(input, responder, ctx) + .actionsDeleteRepoSecret(input, actionsDeleteRepoSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54302,19 +58361,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListRepoVariablesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - variables: z.array(s_actions_variable), - }), - ], - ], - undefined, - ) - router.get( "actionsListRepoVariables", "/repos/:owner/:repo/actions/variables", @@ -54334,20 +58380,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - total_count: number - variables: t_actions_variable[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListRepoVariables(input, responder, ctx) + .actionsListRepoVariables(input, actionsListRepoVariablesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54371,11 +58405,6 @@ export function createRouter(implementation: Implementation): KoaRouter { value: z.string(), }) - const actionsCreateRepoVariableResponseValidator = responseValidationFactory( - [["201", s_empty_object]], - undefined, - ) - router.post( "actionsCreateRepoVariable", "/repos/:owner/:repo/actions/variables", @@ -54395,17 +58424,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateRepoVariable(input, responder, ctx) + .actionsCreateRepoVariable( + input, + actionsCreateRepoVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54425,11 +58449,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const actionsGetRepoVariableResponseValidator = responseValidationFactory( - [["200", s_actions_variable]], - undefined, - ) - router.get( "actionsGetRepoVariable", "/repos/:owner/:repo/actions/variables/:name", @@ -54445,17 +58464,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetRepoVariable(input, responder, ctx) + .actionsGetRepoVariable(input, actionsGetRepoVariableResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54480,11 +58490,6 @@ export function createRouter(implementation: Implementation): KoaRouter { value: z.string().optional(), }) - const actionsUpdateRepoVariableResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.patch( "actionsUpdateRepoVariable", "/repos/:owner/:repo/actions/variables/:name", @@ -54504,17 +58509,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsUpdateRepoVariable(input, responder, ctx) + .actionsUpdateRepoVariable( + input, + actionsUpdateRepoVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54534,11 +58534,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const actionsDeleteRepoVariableResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "actionsDeleteRepoVariable", "/repos/:owner/:repo/actions/variables/:name", @@ -54554,17 +58549,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteRepoVariable(input, responder, ctx) + .actionsDeleteRepoVariable( + input, + actionsDeleteRepoVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54588,19 +58578,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListRepoWorkflowsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - workflows: z.array(s_workflow), - }), - ], - ], - undefined, - ) - router.get( "actionsListRepoWorkflows", "/repos/:owner/:repo/actions/workflows", @@ -54620,20 +58597,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - total_count: number - workflows: t_workflow[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListRepoWorkflows(input, responder, ctx) + .actionsListRepoWorkflows(input, actionsListRepoWorkflowsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54653,11 +58618,6 @@ export function createRouter(implementation: Implementation): KoaRouter { workflow_id: z.union([z.coerce.number(), z.string()]), }) - const actionsGetWorkflowResponseValidator = responseValidationFactory( - [["200", s_workflow]], - undefined, - ) - router.get( "actionsGetWorkflow", "/repos/:owner/:repo/actions/workflows/:workflow_id", @@ -54673,17 +58633,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetWorkflow(input, responder, ctx) + .actionsGetWorkflow(input, actionsGetWorkflowResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54703,11 +58654,6 @@ export function createRouter(implementation: Implementation): KoaRouter { workflow_id: z.union([z.coerce.number(), z.string()]), }) - const actionsDisableWorkflowResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.put( "actionsDisableWorkflow", "/repos/:owner/:repo/actions/workflows/:workflow_id/disable", @@ -54723,17 +58669,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDisableWorkflow(input, responder, ctx) + .actionsDisableWorkflow(input, actionsDisableWorkflowResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54758,9 +58695,6 @@ export function createRouter(implementation: Implementation): KoaRouter { inputs: z.record(z.unknown()).optional(), }) - const actionsCreateWorkflowDispatchResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.post( "actionsCreateWorkflowDispatch", "/repos/:owner/:repo/actions/workflows/:workflow_id/dispatches", @@ -54780,17 +58714,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateWorkflowDispatch(input, responder, ctx) + .actionsCreateWorkflowDispatch( + input, + actionsCreateWorkflowDispatchResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54810,11 +58739,6 @@ export function createRouter(implementation: Implementation): KoaRouter { workflow_id: z.union([z.coerce.number(), z.string()]), }) - const actionsEnableWorkflowResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.put( "actionsEnableWorkflow", "/repos/:owner/:repo/actions/workflows/:workflow_id/enable", @@ -54830,17 +58754,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsEnableWorkflow(input, responder, ctx) + .actionsEnableWorkflow(input, actionsEnableWorkflowResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54890,19 +58805,6 @@ export function createRouter(implementation: Implementation): KoaRouter { head_sha: z.string().optional(), }) - const actionsListWorkflowRunsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - workflow_runs: z.array(s_workflow_run), - }), - ], - ], - undefined, - ) - router.get( "actionsListWorkflowRuns", "/repos/:owner/:repo/actions/workflows/:workflow_id/runs", @@ -54922,20 +58824,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - total_count: number - workflow_runs: t_workflow_run[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListWorkflowRuns(input, responder, ctx) + .actionsListWorkflowRuns(input, actionsListWorkflowRunsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54955,11 +58845,6 @@ export function createRouter(implementation: Implementation): KoaRouter { workflow_id: z.union([z.coerce.number(), z.string()]), }) - const actionsGetWorkflowUsageResponseValidator = responseValidationFactory( - [["200", s_workflow_usage]], - undefined, - ) - router.get( "actionsGetWorkflowUsage", "/repos/:owner/:repo/actions/workflows/:workflow_id/timing", @@ -54975,17 +58860,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetWorkflowUsage(input, responder, ctx) + .actionsGetWorkflowUsage(input, actionsGetWorkflowUsageResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55024,14 +58900,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const reposListActivitiesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_activity)], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.get( "reposListActivities", "/repos/:owner/:repo/activity", @@ -55051,20 +58919,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListActivities(input, responder, ctx) + .reposListActivities(input, reposListActivitiesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55088,14 +58944,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListAssigneesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesListAssignees", "/repos/:owner/:repo/assignees", @@ -55115,20 +58963,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListAssignees(input, responder, ctx) + .issuesListAssignees(input, issuesListAssigneesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55148,15 +58984,6 @@ export function createRouter(implementation: Implementation): KoaRouter { assignee: z.string(), }) - const issuesCheckUserCanBeAssignedResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesCheckUserCanBeAssigned", "/repos/:owner/:repo/assignees/:assignee", @@ -55172,20 +58999,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesCheckUserCanBeAssigned(input, responder, ctx) + .issuesCheckUserCanBeAssigned( + input, + issuesCheckUserCanBeAssignedResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55212,15 +59031,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }), }) - const reposCreateAttestationResponseValidator = responseValidationFactory( - [ - ["201", z.object({ id: z.coerce.number().optional() })], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateAttestation", "/repos/:owner/:repo/attestations", @@ -55240,25 +59050,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse<{ - id?: number - }>(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateAttestation(input, responder, ctx) + .reposCreateAttestation(input, reposCreateAttestationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55285,32 +59078,6 @@ export function createRouter(implementation: Implementation): KoaRouter { predicate_type: z.string().optional(), }) - const reposListAttestationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - attestations: z - .array( - z.object({ - bundle: z - .object({ - mediaType: z.string().optional(), - verificationMaterial: z.record(z.unknown()).optional(), - dsseEnvelope: z.record(z.unknown()).optional(), - }) - .optional(), - repository_id: z.coerce.number().optional(), - bundle_url: z.string().optional(), - }), - ) - .optional(), - }), - ], - ], - undefined, - ) - router.get( "reposListAttestations", "/repos/:owner/:repo/attestations/:subject_digest", @@ -55330,31 +59097,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - attestations?: { - bundle?: { - dsseEnvelope?: { - [key: string]: unknown | undefined - } - mediaType?: string - verificationMaterial?: { - [key: string]: unknown | undefined - } - } - bundle_url?: string - repository_id?: number - }[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListAttestations(input, responder, ctx) + .reposListAttestations(input, reposListAttestationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55373,11 +59117,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposListAutolinksResponseValidator = responseValidationFactory( - [["200", z.array(s_autolink)]], - undefined, - ) - router.get( "reposListAutolinks", "/repos/:owner/:repo/autolinks", @@ -55393,17 +59132,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListAutolinks(input, responder, ctx) + .reposListAutolinks(input, reposListAutolinksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55428,14 +59158,6 @@ export function createRouter(implementation: Implementation): KoaRouter { is_alphanumeric: PermissiveBoolean.optional().default(true), }) - const reposCreateAutolinkResponseValidator = responseValidationFactory( - [ - ["201", s_autolink], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateAutolink", "/repos/:owner/:repo/autolinks", @@ -55455,20 +59177,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateAutolink(input, responder, ctx) + .reposCreateAutolink(input, reposCreateAutolinkResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55488,14 +59198,6 @@ export function createRouter(implementation: Implementation): KoaRouter { autolink_id: z.coerce.number(), }) - const reposGetAutolinkResponseValidator = responseValidationFactory( - [ - ["200", s_autolink], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetAutolink", "/repos/:owner/:repo/autolinks/:autolink_id", @@ -55511,20 +59213,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetAutolink(input, responder, ctx) + .reposGetAutolink(input, reposGetAutolinkResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55544,14 +59234,6 @@ export function createRouter(implementation: Implementation): KoaRouter { autolink_id: z.coerce.number(), }) - const reposDeleteAutolinkResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteAutolink", "/repos/:owner/:repo/autolinks/:autolink_id", @@ -55567,20 +59249,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteAutolink(input, responder, ctx) + .reposDeleteAutolink(input, reposDeleteAutolinkResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55599,15 +59269,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposCheckAutomatedSecurityFixesResponseValidator = - responseValidationFactory( - [ - ["200", s_check_automated_security_fixes], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "reposCheckAutomatedSecurityFixes", "/repos/:owner/:repo/automated-security-fixes", @@ -55623,20 +59284,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCheckAutomatedSecurityFixes(input, responder, ctx) + .reposCheckAutomatedSecurityFixes( + input, + reposCheckAutomatedSecurityFixesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55655,9 +59308,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposEnableAutomatedSecurityFixesResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "reposEnableAutomatedSecurityFixes", "/repos/:owner/:repo/automated-security-fixes", @@ -55673,17 +59323,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposEnableAutomatedSecurityFixes(input, responder, ctx) + .reposEnableAutomatedSecurityFixes( + input, + reposEnableAutomatedSecurityFixesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55705,9 +59350,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposDisableAutomatedSecurityFixesResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reposDisableAutomatedSecurityFixes", "/repos/:owner/:repo/automated-security-fixes", @@ -55723,17 +59365,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDisableAutomatedSecurityFixes(input, responder, ctx) + .reposDisableAutomatedSecurityFixes( + input, + reposDisableAutomatedSecurityFixesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55761,14 +59398,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListBranchesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_short_branch)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListBranches", "/repos/:owner/:repo/branches", @@ -55788,20 +59417,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListBranches(input, responder, ctx) + .reposListBranches(input, reposListBranchesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55821,15 +59438,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetBranchResponseValidator = responseValidationFactory( - [ - ["200", s_branch_with_protection], - ["301", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetBranch", "/repos/:owner/:repo/branches/:branch", @@ -55845,23 +59453,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetBranch(input, responder, ctx) + .reposGetBranch(input, reposGetBranchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55881,14 +59474,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetBranchProtectionResponseValidator = responseValidationFactory( - [ - ["200", s_branch_protection], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetBranchProtection", "/repos/:owner/:repo/branches/:branch/protection", @@ -55904,20 +59489,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetBranchProtection(input, responder, ctx) + .reposGetBranchProtection(input, reposGetBranchProtectionResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55991,17 +59564,6 @@ export function createRouter(implementation: Implementation): KoaRouter { allow_fork_syncing: PermissiveBoolean.optional().default(false), }) - const reposUpdateBranchProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_protected_branch], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.put( "reposUpdateBranchProtection", "/repos/:owner/:repo/branches/:branch/protection", @@ -56021,26 +59583,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateBranchProtection(input, responder, ctx) + .reposUpdateBranchProtection( + input, + reposUpdateBranchProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56060,15 +59608,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposDeleteBranchProtectionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteBranchProtection", "/repos/:owner/:repo/branches/:branch/protection", @@ -56084,20 +59623,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteBranchProtection(input, responder, ctx) + .reposDeleteBranchProtection( + input, + reposDeleteBranchProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56117,12 +59648,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetAdminBranchProtectionResponseValidator = - responseValidationFactory( - [["200", s_protected_branch_admin_enforced]], - undefined, - ) - router.get( "reposGetAdminBranchProtection", "/repos/:owner/:repo/branches/:branch/protection/enforce_admins", @@ -56138,17 +59663,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetAdminBranchProtection(input, responder, ctx) + .reposGetAdminBranchProtection( + input, + reposGetAdminBranchProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56168,12 +59688,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposSetAdminBranchProtectionResponseValidator = - responseValidationFactory( - [["200", s_protected_branch_admin_enforced]], - undefined, - ) - router.post( "reposSetAdminBranchProtection", "/repos/:owner/:repo/branches/:branch/protection/enforce_admins", @@ -56189,17 +59703,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposSetAdminBranchProtection(input, responder, ctx) + .reposSetAdminBranchProtection( + input, + reposSetAdminBranchProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56219,15 +59728,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposDeleteAdminBranchProtectionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteAdminBranchProtection", "/repos/:owner/:repo/branches/:branch/protection/enforce_admins", @@ -56243,20 +59743,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteAdminBranchProtection(input, responder, ctx) + .reposDeleteAdminBranchProtection( + input, + reposDeleteAdminBranchProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56276,12 +59768,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetPullRequestReviewProtectionResponseValidator = - responseValidationFactory( - [["200", s_protected_branch_pull_request_review]], - undefined, - ) - router.get( "reposGetPullRequestReviewProtection", "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews", @@ -56297,19 +59783,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetPullRequestReviewProtection(input, responder, ctx) + .reposGetPullRequestReviewProtection( + input, + reposGetPullRequestReviewProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56355,15 +59834,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdatePullRequestReviewProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_protected_branch_pull_request_review], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "reposUpdatePullRequestReviewProtection", "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews", @@ -56383,22 +59853,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdatePullRequestReviewProtection(input, responder, ctx) + .reposUpdatePullRequestReviewProtection( + input, + reposUpdatePullRequestReviewProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56421,15 +59881,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposDeletePullRequestReviewProtectionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeletePullRequestReviewProtection", "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews", @@ -56445,20 +59896,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeletePullRequestReviewProtection(input, responder, ctx) + .reposDeletePullRequestReviewProtection( + input, + reposDeletePullRequestReviewProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56481,15 +59924,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetCommitSignatureProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_protected_branch_admin_enforced], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetCommitSignatureProtection", "/repos/:owner/:repo/branches/:branch/protection/required_signatures", @@ -56505,20 +59939,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCommitSignatureProtection(input, responder, ctx) + .reposGetCommitSignatureProtection( + input, + reposGetCommitSignatureProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56541,15 +59967,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposCreateCommitSignatureProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_protected_branch_admin_enforced], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "reposCreateCommitSignatureProtection", "/repos/:owner/:repo/branches/:branch/protection/required_signatures", @@ -56565,20 +59982,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateCommitSignatureProtection(input, responder, ctx) + .reposCreateCommitSignatureProtection( + input, + reposCreateCommitSignatureProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56601,15 +60010,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposDeleteCommitSignatureProtectionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteCommitSignatureProtection", "/repos/:owner/:repo/branches/:branch/protection/required_signatures", @@ -56625,20 +60025,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteCommitSignatureProtection(input, responder, ctx) + .reposDeleteCommitSignatureProtection( + input, + reposDeleteCommitSignatureProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56661,15 +60053,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetStatusChecksProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_status_check_policy], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetStatusChecksProtection", "/repos/:owner/:repo/branches/:branch/protection/required_status_checks", @@ -56685,20 +60068,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetStatusChecksProtection(input, responder, ctx) + .reposGetStatusChecksProtection( + input, + reposGetStatusChecksProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56733,16 +60108,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdateStatusCheckProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_status_check_policy], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "reposUpdateStatusCheckProtection", "/repos/:owner/:repo/branches/:branch/protection/required_status_checks", @@ -56762,23 +60127,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateStatusCheckProtection(input, responder, ctx) + .reposUpdateStatusCheckProtection( + input, + reposUpdateStatusCheckProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56798,9 +60152,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposRemoveStatusCheckProtectionResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reposRemoveStatusCheckProtection", "/repos/:owner/:repo/branches/:branch/protection/required_status_checks", @@ -56816,17 +60167,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRemoveStatusCheckProtection(input, responder, ctx) + .reposRemoveStatusCheckProtection( + input, + reposRemoveStatusCheckProtectionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56846,15 +60192,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetAllStatusCheckContextsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(z.string())], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetAllStatusCheckContexts", "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts", @@ -56870,20 +60207,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetAllStatusCheckContexts(input, responder, ctx) + .reposGetAllStatusCheckContexts( + input, + reposGetAllStatusCheckContextsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56907,17 +60236,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .union([z.object({ contexts: z.array(z.string()) }), z.array(z.string())]) .optional() - const reposAddStatusCheckContextsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(z.string())], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposAddStatusCheckContexts", "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts", @@ -56937,26 +60255,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposAddStatusCheckContexts(input, responder, ctx) + .reposAddStatusCheckContexts( + input, + reposAddStatusCheckContextsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56980,16 +60284,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .union([z.object({ contexts: z.array(z.string()) }), z.array(z.string())]) .optional() - const reposSetStatusCheckContextsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(z.string())], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "reposSetStatusCheckContexts", "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts", @@ -57009,23 +60303,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposSetStatusCheckContexts(input, responder, ctx) + .reposSetStatusCheckContexts( + input, + reposSetStatusCheckContextsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57050,16 +60333,6 @@ export function createRouter(implementation: Implementation): KoaRouter { z.array(z.string()), ]) - const reposRemoveStatusCheckContextsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(z.string())], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "reposRemoveStatusCheckContexts", "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts", @@ -57079,23 +60352,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRemoveStatusCheckContexts(input, responder, ctx) + .reposRemoveStatusCheckContexts( + input, + reposRemoveStatusCheckContextsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57115,14 +60377,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetAccessRestrictionsResponseValidator = responseValidationFactory( - [ - ["200", s_branch_restriction_policy], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions", @@ -57138,20 +60392,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetAccessRestrictions(input, responder, ctx) + .reposGetAccessRestrictions( + input, + reposGetAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57171,9 +60417,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposDeleteAccessRestrictionsResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reposDeleteAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions", @@ -57189,17 +60432,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteAccessRestrictions(input, responder, ctx) + .reposDeleteAccessRestrictions( + input, + reposDeleteAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57219,15 +60457,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetAppsWithAccessToProtectedBranchResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetAppsWithAccessToProtectedBranch", "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps", @@ -57243,20 +60472,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetAppsWithAccessToProtectedBranch(input, responder, ctx) + .reposGetAppsWithAccessToProtectedBranch( + input, + reposGetAppsWithAccessToProtectedBranchResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57283,15 +60504,6 @@ export function createRouter(implementation: Implementation): KoaRouter { apps: z.array(z.string()), }) - const reposAddAppAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration)], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposAddAppAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps", @@ -57311,20 +60523,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposAddAppAccessRestrictions(input, responder, ctx) + .reposAddAppAccessRestrictions( + input, + reposAddAppAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57348,15 +60552,6 @@ export function createRouter(implementation: Implementation): KoaRouter { apps: z.array(z.string()), }) - const reposSetAppAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration)], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "reposSetAppAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps", @@ -57376,20 +60571,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposSetAppAccessRestrictions(input, responder, ctx) + .reposSetAppAccessRestrictions( + input, + reposSetAppAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57413,15 +60600,6 @@ export function createRouter(implementation: Implementation): KoaRouter { apps: z.array(z.string()), }) - const reposRemoveAppAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration)], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "reposRemoveAppAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps", @@ -57441,20 +60619,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRemoveAppAccessRestrictions(input, responder, ctx) + .reposRemoveAppAccessRestrictions( + input, + reposRemoveAppAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57474,15 +60644,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetTeamsWithAccessToProtectedBranchResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetTeamsWithAccessToProtectedBranch", "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams", @@ -57498,20 +60659,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetTeamsWithAccessToProtectedBranch(input, responder, ctx) + .reposGetTeamsWithAccessToProtectedBranch( + input, + reposGetTeamsWithAccessToProtectedBranchResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57538,15 +60691,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .union([z.object({ teams: z.array(z.string()) }), z.array(z.string())]) .optional() - const reposAddTeamAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team)], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposAddTeamAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams", @@ -57566,20 +60710,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposAddTeamAccessRestrictions(input, responder, ctx) + .reposAddTeamAccessRestrictions( + input, + reposAddTeamAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57603,15 +60739,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .union([z.object({ teams: z.array(z.string()) }), z.array(z.string())]) .optional() - const reposSetTeamAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team)], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "reposSetTeamAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams", @@ -57631,20 +60758,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposSetTeamAccessRestrictions(input, responder, ctx) + .reposSetTeamAccessRestrictions( + input, + reposSetTeamAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57669,15 +60788,6 @@ export function createRouter(implementation: Implementation): KoaRouter { z.array(z.string()), ]) - const reposRemoveTeamAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team)], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "reposRemoveTeamAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams", @@ -57697,20 +60807,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRemoveTeamAccessRestrictions(input, responder, ctx) + .reposRemoveTeamAccessRestrictions( + input, + reposRemoveTeamAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57733,15 +60835,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch: z.string(), }) - const reposGetUsersWithAccessToProtectedBranchResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetUsersWithAccessToProtectedBranch", "/repos/:owner/:repo/branches/:branch/protection/restrictions/users", @@ -57757,20 +60850,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetUsersWithAccessToProtectedBranch(input, responder, ctx) + .reposGetUsersWithAccessToProtectedBranch( + input, + reposGetUsersWithAccessToProtectedBranchResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57797,15 +60882,6 @@ export function createRouter(implementation: Implementation): KoaRouter { users: z.array(z.string()), }) - const reposAddUserAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposAddUserAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/users", @@ -57825,20 +60901,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposAddUserAccessRestrictions(input, responder, ctx) + .reposAddUserAccessRestrictions( + input, + reposAddUserAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57862,15 +60930,6 @@ export function createRouter(implementation: Implementation): KoaRouter { users: z.array(z.string()), }) - const reposSetUserAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "reposSetUserAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/users", @@ -57890,20 +60949,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposSetUserAccessRestrictions(input, responder, ctx) + .reposSetUserAccessRestrictions( + input, + reposSetUserAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57927,15 +60978,6 @@ export function createRouter(implementation: Implementation): KoaRouter { users: z.array(z.string()), }) - const reposRemoveUserAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "reposRemoveUserAccessRestrictions", "/repos/:owner/:repo/branches/:branch/protection/restrictions/users", @@ -57955,20 +60997,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRemoveUserAccessRestrictions(input, responder, ctx) + .reposRemoveUserAccessRestrictions( + input, + reposRemoveUserAccessRestrictionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57993,16 +61027,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposRenameBranchBodySchema = z.object({ new_name: z.string() }) - const reposRenameBranchResponseValidator = responseValidationFactory( - [ - ["201", s_branch_with_protection], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposRenameBranch", "/repos/:owner/:repo/branches/:branch/rename", @@ -58022,26 +61046,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRenameBranch(input, responder, ctx) + .reposRenameBranch(input, reposRenameBranchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58068,11 +61074,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ), ]) - const checksCreateResponseValidator = responseValidationFactory( - [["201", s_check_run]], - undefined, - ) - router.post( "checksCreate", "/repos/:owner/:repo/check-runs", @@ -58092,17 +61093,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksCreate(input, responder, ctx) + .checksCreate(input, checksCreateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58122,11 +61114,6 @@ export function createRouter(implementation: Implementation): KoaRouter { check_run_id: z.coerce.number(), }) - const checksGetResponseValidator = responseValidationFactory( - [["200", s_check_run]], - undefined, - ) - router.get( "checksGet", "/repos/:owner/:repo/check-runs/:check_run_id", @@ -58142,17 +61129,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksGet(input, responder, ctx) + .checksGet(input, checksGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58244,11 +61222,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const checksUpdateResponseValidator = responseValidationFactory( - [["200", s_check_run]], - undefined, - ) - router.patch( "checksUpdate", "/repos/:owner/:repo/check-runs/:check_run_id", @@ -58268,17 +61241,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksUpdate(input, responder, ctx) + .checksUpdate(input, checksUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58303,11 +61267,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const checksListAnnotationsResponseValidator = responseValidationFactory( - [["200", z.array(s_check_annotation)]], - undefined, - ) - router.get( "checksListAnnotations", "/repos/:owner/:repo/check-runs/:check_run_id/annotations", @@ -58327,17 +61286,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksListAnnotations(input, responder, ctx) + .checksListAnnotations(input, checksListAnnotationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58357,16 +61307,6 @@ export function createRouter(implementation: Implementation): KoaRouter { check_run_id: z.coerce.number(), }) - const checksRerequestRunResponseValidator = responseValidationFactory( - [ - ["201", s_empty_object], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - ], - undefined, - ) - router.post( "checksRerequestRun", "/repos/:owner/:repo/check-runs/:check_run_id/rerequest", @@ -58382,26 +61322,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksRerequestRun(input, responder, ctx) + .checksRerequestRun(input, checksRerequestRunResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58422,14 +61344,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const checksCreateSuiteBodySchema = z.object({ head_sha: z.string() }) - const checksCreateSuiteResponseValidator = responseValidationFactory( - [ - ["200", s_check_suite], - ["201", s_check_suite], - ], - undefined, - ) - router.post( "checksCreateSuite", "/repos/:owner/:repo/check-suites", @@ -58449,20 +61363,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksCreateSuite(input, responder, ctx) + .checksCreateSuite(input, checksCreateSuiteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58492,11 +61394,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const checksSetSuitesPreferencesResponseValidator = responseValidationFactory( - [["200", s_check_suite_preference]], - undefined, - ) - router.patch( "checksSetSuitesPreferences", "/repos/:owner/:repo/check-suites/preferences", @@ -58516,17 +61413,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksSetSuitesPreferences(input, responder, ctx) + .checksSetSuitesPreferences( + input, + checksSetSuitesPreferencesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58546,11 +61438,6 @@ export function createRouter(implementation: Implementation): KoaRouter { check_suite_id: z.coerce.number(), }) - const checksGetSuiteResponseValidator = responseValidationFactory( - [["200", s_check_suite]], - undefined, - ) - router.get( "checksGetSuite", "/repos/:owner/:repo/check-suites/:check_suite_id", @@ -58566,17 +61453,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksGetSuite(input, responder, ctx) + .checksGetSuite(input, checksGetSuiteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58604,19 +61482,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const checksListForSuiteResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - check_runs: z.array(s_check_run), - }), - ], - ], - undefined, - ) - router.get( "checksListForSuite", "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs", @@ -58636,20 +61501,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - check_runs: t_check_run[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksListForSuite(input, responder, ctx) + .checksListForSuite(input, checksListForSuiteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58669,11 +61522,6 @@ export function createRouter(implementation: Implementation): KoaRouter { check_suite_id: z.coerce.number(), }) - const checksRerequestSuiteResponseValidator = responseValidationFactory( - [["201", s_empty_object]], - undefined, - ) - router.post( "checksRerequestSuite", "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest", @@ -58689,17 +61537,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksRerequestSuite(input, responder, ctx) + .checksRerequestSuite(input, checksRerequestSuiteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58733,25 +61572,6 @@ export function createRouter(implementation: Implementation): KoaRouter { severity: s_code_scanning_alert_severity.optional(), }) - const codeScanningListAlertsForRepoResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_alert_items)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningListAlertsForRepo", "/repos/:owner/:repo/code-scanning/alerts", @@ -58771,33 +61591,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningListAlertsForRepo(input, responder, ctx) + .codeScanningListAlertsForRepo( + input, + codeScanningListAlertsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58817,24 +61616,6 @@ export function createRouter(implementation: Implementation): KoaRouter { alert_number: s_alert_number, }) - const codeScanningGetAlertResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_alert], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningGetAlert", "/repos/:owner/:repo/code-scanning/alerts/:alert_number", @@ -58850,33 +61631,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningGetAlert(input, responder, ctx) + .codeScanningGetAlert(input, codeScanningGetAlertResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58903,24 +61659,6 @@ export function createRouter(implementation: Implementation): KoaRouter { create_request: s_code_scanning_alert_create_request.optional(), }) - const codeScanningUpdateAlertResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_alert], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.patch( "codeScanningUpdateAlert", "/repos/:owner/:repo/code-scanning/alerts/:alert_number", @@ -58940,33 +61678,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningUpdateAlert(input, responder, ctx) + .codeScanningUpdateAlert(input, codeScanningUpdateAlertResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58986,24 +61699,6 @@ export function createRouter(implementation: Implementation): KoaRouter { alert_number: s_alert_number, }) - const codeScanningGetAutofixResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_autofix], - ["400", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningGetAutofix", "/repos/:owner/:repo/code-scanning/alerts/:alert_number/autofix", @@ -59019,33 +61714,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningGetAutofix(input, responder, ctx) + .codeScanningGetAutofix(input, codeScanningGetAutofixResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59065,26 +61735,6 @@ export function createRouter(implementation: Implementation): KoaRouter { alert_number: s_alert_number, }) - const codeScanningCreateAutofixResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_autofix], - ["202", s_code_scanning_autofix], - ["400", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "codeScanningCreateAutofix", "/repos/:owner/:repo/code-scanning/alerts/:alert_number/autofix", @@ -59100,39 +61750,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with202() { - return new KoaRuntimeResponse(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningCreateAutofix(input, responder, ctx) + .codeScanningCreateAutofix( + input, + codeScanningCreateAutofixResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59155,25 +61778,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const codeScanningCommitAutofixBodySchema = s_code_scanning_autofix_commits.optional() - const codeScanningCommitAutofixResponseValidator = responseValidationFactory( - [ - ["201", s_code_scanning_autofix_commits_response], - ["400", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "codeScanningCommitAutofix", "/repos/:owner/:repo/code-scanning/alerts/:alert_number/autofix/commits", @@ -59193,38 +61797,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse( - 201, - ) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningCommitAutofix(input, responder, ctx) + .codeScanningCommitAutofix( + input, + codeScanningCommitAutofixResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59251,24 +61829,6 @@ export function createRouter(implementation: Implementation): KoaRouter { pr: z.coerce.number().optional(), }) - const codeScanningListAlertInstancesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_alert_instance)], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningListAlertInstances", "/repos/:owner/:repo/code-scanning/alerts/:alert_number/instances", @@ -59288,30 +61848,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningListAlertInstances(input, responder, ctx) + .codeScanningListAlertInstances( + input, + codeScanningListAlertInstancesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59342,24 +61884,6 @@ export function createRouter(implementation: Implementation): KoaRouter { sort: z.enum(["created"]).optional().default("created"), }) - const codeScanningListRecentAnalysesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_analysis)], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningListRecentAnalyses", "/repos/:owner/:repo/code-scanning/analyses", @@ -59379,30 +61903,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningListRecentAnalyses(input, responder, ctx) + .codeScanningListRecentAnalyses( + input, + codeScanningListRecentAnalysesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59422,23 +61928,6 @@ export function createRouter(implementation: Implementation): KoaRouter { analysis_id: z.coerce.number(), }) - const codeScanningGetAnalysisResponseValidator = responseValidationFactory( - [ - ["200", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningGetAnalysis", "/repos/:owner/:repo/code-scanning/analyses/:analysis_id", @@ -59454,32 +61943,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningGetAnalysis(input, responder, ctx) + .codeScanningGetAnalysis(input, codeScanningGetAnalysisResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59503,24 +61968,6 @@ export function createRouter(implementation: Implementation): KoaRouter { confirm_delete: z.string().nullable().optional(), }) - const codeScanningDeleteAnalysisResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_analysis_deletion], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.delete( "codeScanningDeleteAnalysis", "/repos/:owner/:repo/code-scanning/analyses/:analysis_id", @@ -59540,33 +61987,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningDeleteAnalysis(input, responder, ctx) + .codeScanningDeleteAnalysis( + input, + codeScanningDeleteAnalysisResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59585,24 +62011,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const codeScanningListCodeqlDatabasesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_codeql_database)], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningListCodeqlDatabases", "/repos/:owner/:repo/code-scanning/codeql/databases", @@ -59618,30 +62026,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningListCodeqlDatabases(input, responder, ctx) + .codeScanningListCodeqlDatabases( + input, + codeScanningListCodeqlDatabasesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59661,25 +62051,6 @@ export function createRouter(implementation: Implementation): KoaRouter { language: z.string(), }) - const codeScanningGetCodeqlDatabaseResponseValidator = - responseValidationFactory( - [ - ["200", s_code_scanning_codeql_database], - ["302", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningGetCodeqlDatabase", "/repos/:owner/:repo/code-scanning/codeql/databases/:language", @@ -59695,33 +62066,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with302() { - return new KoaRuntimeResponse(302) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningGetCodeqlDatabase(input, responder, ctx) + .codeScanningGetCodeqlDatabase( + input, + codeScanningGetCodeqlDatabaseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59741,24 +62091,6 @@ export function createRouter(implementation: Implementation): KoaRouter { language: z.string(), }) - const codeScanningDeleteCodeqlDatabaseResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.delete( "codeScanningDeleteCodeqlDatabase", "/repos/:owner/:repo/code-scanning/codeql/databases/:language", @@ -59774,30 +62106,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningDeleteCodeqlDatabase(input, responder, ctx) + .codeScanningDeleteCodeqlDatabase( + input, + codeScanningDeleteCodeqlDatabaseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59822,24 +62136,6 @@ export function createRouter(implementation: Implementation): KoaRouter { z.object({}), ]) - const codeScanningCreateVariantAnalysisResponseValidator = - responseValidationFactory( - [ - ["201", s_code_scanning_variant_analysis], - ["404", s_basic_error], - ["422", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "codeScanningCreateVariantAnalysis", "/repos/:owner/:repo/code-scanning/codeql/variant-analyses", @@ -59859,30 +62155,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningCreateVariantAnalysis(input, responder, ctx) + .codeScanningCreateVariantAnalysis( + input, + codeScanningCreateVariantAnalysisResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59905,23 +62183,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codeql_variant_analysis_id: z.coerce.number(), }) - const codeScanningGetVariantAnalysisResponseValidator = - responseValidationFactory( - [ - ["200", s_code_scanning_variant_analysis], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningGetVariantAnalysis", "/repos/:owner/:repo/code-scanning/codeql/variant-analyses/:codeql_variant_analysis_id", @@ -59937,27 +62198,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningGetVariantAnalysis(input, responder, ctx) + .codeScanningGetVariantAnalysis( + input, + codeScanningGetVariantAnalysisResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59979,23 +62225,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo_name: z.string(), }) - const codeScanningGetVariantAnalysisRepoTaskResponseValidator = - responseValidationFactory( - [ - ["200", s_code_scanning_variant_analysis_repo_task], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningGetVariantAnalysisRepoTask", "/repos/:owner/:repo/code-scanning/codeql/variant-analyses/:codeql_variant_analysis_id/repos/:repo_owner/:repo_name", @@ -60011,29 +62240,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningGetVariantAnalysisRepoTask(input, responder, ctx) + .codeScanningGetVariantAnalysisRepoTask( + input, + codeScanningGetVariantAnalysisRepoTaskResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60055,24 +62267,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const codeScanningGetDefaultSetupResponseValidator = - responseValidationFactory( - [ - ["200", s_code_scanning_default_setup], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningGetDefaultSetup", "/repos/:owner/:repo/code-scanning/default-setup", @@ -60088,30 +62282,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningGetDefaultSetup(input, responder, ctx) + .codeScanningGetDefaultSetup( + input, + codeScanningGetDefaultSetupResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60133,26 +62309,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const codeScanningUpdateDefaultSetupBodySchema = s_code_scanning_default_setup_update - const codeScanningUpdateDefaultSetupResponseValidator = - responseValidationFactory( - [ - ["200", s_empty_object], - ["202", s_code_scanning_default_setup_update_response], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.patch( "codeScanningUpdateDefaultSetup", "/repos/:owner/:repo/code-scanning/default-setup", @@ -60172,38 +62328,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with202() { - return new KoaRuntimeResponse( - 202, - ) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningUpdateDefaultSetup(input, responder, ctx) + .codeScanningUpdateDefaultSetup( + input, + codeScanningUpdateDefaultSetupResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60232,25 +62362,6 @@ export function createRouter(implementation: Implementation): KoaRouter { validate: PermissiveBoolean.optional(), }) - const codeScanningUploadSarifResponseValidator = responseValidationFactory( - [ - ["202", s_code_scanning_sarifs_receipt], - ["400", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["413", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "codeScanningUploadSarif", "/repos/:owner/:repo/code-scanning/sarifs", @@ -60270,36 +62381,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with413() { - return new KoaRuntimeResponse(413) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningUploadSarif(input, responder, ctx) + .codeScanningUploadSarif(input, codeScanningUploadSarifResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60319,23 +62402,6 @@ export function createRouter(implementation: Implementation): KoaRouter { sarif_id: z.string(), }) - const codeScanningGetSarifResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_sarifs_status], - ["403", s_basic_error], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codeScanningGetSarif", "/repos/:owner/:repo/code-scanning/sarifs/:sarif_id", @@ -60351,30 +62417,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeScanningGetSarif(input, responder, ctx) + .codeScanningGetSarif(input, codeScanningGetSarifResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60393,18 +62437,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const codeSecurityGetConfigurationForRepositoryResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration_for_repository], - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codeSecurityGetConfigurationForRepository", "/repos/:owner/:repo/code-security-configuration", @@ -60420,31 +62452,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codeSecurityGetConfigurationForRepository(input, responder, ctx) + .codeSecurityGetConfigurationForRepository( + input, + codeSecurityGetConfigurationForRepositoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60470,14 +62483,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string().optional(), }) - const reposCodeownersErrorsResponseValidator = responseValidationFactory( - [ - ["200", s_codeowners_errors], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "reposCodeownersErrors", "/repos/:owner/:repo/codeowners/errors", @@ -60497,20 +62502,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCodeownersErrors(input, responder, ctx) + .reposCodeownersErrors(input, reposCodeownersErrorsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60534,24 +62527,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const codespacesListInRepositoryForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - codespaces: z.array(s_codespace), - }), - ], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesListInRepositoryForAuthenticatedUser", "/repos/:owner/:repo/codespaces", @@ -60571,32 +62546,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - codespaces: t_codespace[] - total_count: number - }>(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesListInRepositoryForAuthenticatedUser(input, responder, ctx) + .codespacesListInRepositoryForAuthenticatedUser( + input, + codespacesListInRepositoryForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60637,27 +62592,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .nullable() - const codespacesCreateWithRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_codespace], - ["202", s_codespace], - ["400", s_scim_error], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "codespacesCreateWithRepoForAuthenticatedUser", "/repos/:owner/:repo/codespaces", @@ -60677,39 +62611,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with202() { - return new KoaRuntimeResponse(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesCreateWithRepoForAuthenticatedUser(input, responder, ctx) + .codespacesCreateWithRepoForAuthenticatedUser( + input, + codespacesCreateWithRepoForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60735,31 +62642,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const codespacesListDevcontainersInRepositoryForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - devcontainers: z.array( - z.object({ - path: z.string(), - name: z.string().optional(), - display_name: z.string().optional(), - }), - ), - }), - ], - ["400", s_scim_error], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesListDevcontainersInRepositoryForAuthenticatedUser", "/repos/:owner/:repo/codespaces/devcontainers", @@ -60779,41 +62661,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - devcontainers: { - display_name?: string - name?: string - path: string - }[] - total_count: number - }>(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codespacesListDevcontainersInRepositoryForAuthenticatedUser( input, - responder, + codespacesListDevcontainersInRepositoryForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -60844,25 +62695,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string().optional(), }) - const codespacesRepoMachinesForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - machines: z.array(s_codespace_machine), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesRepoMachinesForAuthenticatedUser", "/repos/:owner/:repo/codespaces/machines", @@ -60882,35 +62714,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - machines: t_codespace_machine[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesRepoMachinesForAuthenticatedUser(input, responder, ctx) + .codespacesRepoMachinesForAuthenticatedUser( + input, + codespacesRepoMachinesForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60937,28 +62746,6 @@ export function createRouter(implementation: Implementation): KoaRouter { client_ip: z.string().optional(), }) - const codespacesPreFlightWithRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - billable_owner: s_simple_user.optional(), - defaults: z - .object({ - location: z.string(), - devcontainer_path: z.string().nullable(), - }) - .optional(), - }), - ], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codespacesPreFlightWithRepoForAuthenticatedUser", "/repos/:owner/:repo/codespaces/new", @@ -60978,32 +62765,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - billable_owner?: t_simple_user - defaults?: { - devcontainer_path: string | null - location: string - } - }>(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesPreFlightWithRepoForAuthenticatedUser(input, responder, ctx) + .codespacesPreFlightWithRepoForAuthenticatedUser( + input, + codespacesPreFlightWithRepoForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61031,26 +62798,6 @@ export function createRouter(implementation: Implementation): KoaRouter { devcontainer_path: z.string(), }) - const codespacesCheckPermissionsForDevcontainerResponseValidator = - responseValidationFactory( - [ - ["200", s_codespaces_permissions_check_for_devcontainer], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "codespacesCheckPermissionsForDevcontainer", "/repos/:owner/:repo/codespaces/permissions_check", @@ -61070,38 +62817,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesCheckPermissionsForDevcontainer(input, responder, ctx) + .codespacesCheckPermissionsForDevcontainer( + input, + codespacesCheckPermissionsForDevcontainerResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61128,19 +62849,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const codespacesListRepoSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_repo_codespaces_secret), - }), - ], - ], - undefined, - ) - router.get( "codespacesListRepoSecrets", "/repos/:owner/:repo/codespaces/secrets", @@ -61160,20 +62868,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_repo_codespaces_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesListRepoSecrets(input, responder, ctx) + .codespacesListRepoSecrets( + input, + codespacesListRepoSecretsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61192,11 +62892,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const codespacesGetRepoPublicKeyResponseValidator = responseValidationFactory( - [["200", s_codespaces_public_key]], - undefined, - ) - router.get( "codespacesGetRepoPublicKey", "/repos/:owner/:repo/codespaces/secrets/public-key", @@ -61212,17 +62907,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetRepoPublicKey(input, responder, ctx) + .codespacesGetRepoPublicKey( + input, + codespacesGetRepoPublicKeyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61242,11 +62932,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const codespacesGetRepoSecretResponseValidator = responseValidationFactory( - [["200", s_repo_codespaces_secret]], - undefined, - ) - router.get( "codespacesGetRepoSecret", "/repos/:owner/:repo/codespaces/secrets/:secret_name", @@ -61262,17 +62947,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetRepoSecret(input, responder, ctx) + .codespacesGetRepoSecret(input, codespacesGetRepoSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61304,15 +62980,6 @@ export function createRouter(implementation: Implementation): KoaRouter { key_id: z.string().optional(), }) - const codespacesCreateOrUpdateRepoSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) - router.put( "codespacesCreateOrUpdateRepoSecret", "/repos/:owner/:repo/codespaces/secrets/:secret_name", @@ -61332,20 +62999,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesCreateOrUpdateRepoSecret(input, responder, ctx) + .codespacesCreateOrUpdateRepoSecret( + input, + codespacesCreateOrUpdateRepoSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61368,11 +63027,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const codespacesDeleteRepoSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "codespacesDeleteRepoSecret", "/repos/:owner/:repo/codespaces/secrets/:secret_name", @@ -61388,17 +63042,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesDeleteRepoSecret(input, responder, ctx) + .codespacesDeleteRepoSecret( + input, + codespacesDeleteRepoSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61426,14 +63075,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListCollaboratorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_collaborator)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListCollaborators", "/repos/:owner/:repo/collaborators", @@ -61453,20 +63094,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListCollaborators(input, responder, ctx) + .reposListCollaborators(input, reposListCollaboratorsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61486,14 +63115,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const reposCheckCollaboratorResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "reposCheckCollaborator", "/repos/:owner/:repo/collaborators/:username", @@ -61509,20 +63130,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCheckCollaborator(input, responder, ctx) + .reposCheckCollaborator(input, reposCheckCollaboratorResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61546,16 +63155,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ permission: z.string().optional().default("push") }) .optional() - const reposAddCollaboratorResponseValidator = responseValidationFactory( - [ - ["201", s_repository_invitation], - ["204", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "reposAddCollaborator", "/repos/:owner/:repo/collaborators/:username", @@ -61575,26 +63174,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposAddCollaborator(input, responder, ctx) + .reposAddCollaborator(input, reposAddCollaboratorResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61614,15 +63195,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const reposRemoveCollaboratorResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "reposRemoveCollaborator", "/repos/:owner/:repo/collaborators/:username", @@ -61638,23 +63210,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRemoveCollaborator(input, responder, ctx) + .reposRemoveCollaborator(input, reposRemoveCollaboratorResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61674,15 +63231,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const reposGetCollaboratorPermissionLevelResponseValidator = - responseValidationFactory( - [ - ["200", s_repository_collaborator_permission], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetCollaboratorPermissionLevel", "/repos/:owner/:repo/collaborators/:username/permission", @@ -61698,22 +63246,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCollaboratorPermissionLevel(input, responder, ctx) + .reposGetCollaboratorPermissionLevel( + input, + reposGetCollaboratorPermissionLevelResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61740,9 +63278,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListCommitCommentsForRepoResponseValidator = - responseValidationFactory([["200", z.array(s_commit_comment)]], undefined) - router.get( "reposListCommitCommentsForRepo", "/repos/:owner/:repo/comments", @@ -61762,17 +63297,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListCommitCommentsForRepo(input, responder, ctx) + .reposListCommitCommentsForRepo( + input, + reposListCommitCommentsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61792,14 +63322,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_id: z.coerce.number(), }) - const reposGetCommitCommentResponseValidator = responseValidationFactory( - [ - ["200", s_commit_comment], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetCommitComment", "/repos/:owner/:repo/comments/:comment_id", @@ -61815,20 +63337,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCommitComment(input, responder, ctx) + .reposGetCommitComment(input, reposGetCommitCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61850,14 +63360,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposUpdateCommitCommentBodySchema = z.object({ body: z.string() }) - const reposUpdateCommitCommentResponseValidator = responseValidationFactory( - [ - ["200", s_commit_comment], - ["404", s_basic_error], - ], - undefined, - ) - router.patch( "reposUpdateCommitComment", "/repos/:owner/:repo/comments/:comment_id", @@ -61877,20 +63379,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateCommitComment(input, responder, ctx) + .reposUpdateCommitComment(input, reposUpdateCommitCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61910,14 +63400,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_id: z.coerce.number(), }) - const reposDeleteCommitCommentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteCommitComment", "/repos/:owner/:repo/comments/:comment_id", @@ -61933,20 +63415,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteCommitComment(input, responder, ctx) + .reposDeleteCommitComment(input, reposDeleteCommitCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61983,15 +63453,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForCommitCommentResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reactionsListForCommitComment", "/repos/:owner/:repo/comments/:comment_id/reactions", @@ -62011,20 +63472,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForCommitComment(input, responder, ctx) + .reactionsListForCommitComment( + input, + reactionsListForCommitCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62057,16 +63510,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const reactionsCreateForCommitCommentResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reactionsCreateForCommitComment", "/repos/:owner/:repo/comments/:comment_id/reactions", @@ -62086,23 +63529,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForCommitComment(input, responder, ctx) + .reactionsCreateForCommitComment( + input, + reactionsCreateForCommitCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62123,9 +63555,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reaction_id: z.coerce.number(), }) - const reactionsDeleteForCommitCommentResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reactionsDeleteForCommitComment", "/repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id", @@ -62141,17 +63570,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsDeleteForCommitComment(input, responder, ctx) + .reactionsDeleteForCommitComment( + input, + reactionsDeleteForCommitCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62181,17 +63605,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListCommitsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_commit)], - ["400", s_scim_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposListCommits", "/repos/:owner/:repo/commits", @@ -62211,29 +63624,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListCommits(input, responder, ctx) + .reposListCommits(input, reposListCommitsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62253,16 +63645,6 @@ export function createRouter(implementation: Implementation): KoaRouter { commit_sha: z.string(), }) - const reposListBranchesForHeadCommitResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_branch_short)], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "reposListBranchesForHeadCommit", "/repos/:owner/:repo/commits/:commit_sha/branches-where-head", @@ -62278,23 +63660,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListBranchesForHeadCommit(input, responder, ctx) + .reposListBranchesForHeadCommit( + input, + reposListBranchesForHeadCommitResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62319,11 +63690,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListCommentsForCommitResponseValidator = responseValidationFactory( - [["200", z.array(s_commit_comment)]], - undefined, - ) - router.get( "reposListCommentsForCommit", "/repos/:owner/:repo/commits/:commit_sha/comments", @@ -62343,17 +63709,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListCommentsForCommit(input, responder, ctx) + .reposListCommentsForCommit( + input, + reposListCommentsForCommitResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62380,15 +63741,6 @@ export function createRouter(implementation: Implementation): KoaRouter { line: z.coerce.number().optional(), }) - const reposCreateCommitCommentResponseValidator = responseValidationFactory( - [ - ["201", s_commit_comment], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateCommitComment", "/repos/:owner/:repo/commits/:commit_sha/comments", @@ -62408,23 +63760,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateCommitComment(input, responder, ctx) + .reposCreateCommitComment(input, reposCreateCommitCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62449,15 +63786,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListPullRequestsAssociatedWithCommitResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_pull_request_simple)], - ["409", s_basic_error], - ], - undefined, - ) - router.get( "reposListPullRequestsAssociatedWithCommit", "/repos/:owner/:repo/commits/:commit_sha/pulls", @@ -62477,20 +63805,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListPullRequestsAssociatedWithCommit(input, responder, ctx) + .reposListPullRequestsAssociatedWithCommit( + input, + reposListPullRequestsAssociatedWithCommitResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62518,25 +63838,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const reposGetCommitResponseValidator = responseValidationFactory( - [ - ["200", s_commit], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "reposGetCommit", "/repos/:owner/:repo/commits/:ref", @@ -62556,36 +63857,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCommit(input, responder, ctx) + .reposGetCommit(input, reposGetCommitResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62614,19 +63887,6 @@ export function createRouter(implementation: Implementation): KoaRouter { app_id: z.coerce.number().optional(), }) - const checksListForRefResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - check_runs: z.array(s_check_run), - }), - ], - ], - undefined, - ) - router.get( "checksListForRef", "/repos/:owner/:repo/commits/:ref/check-runs", @@ -62646,20 +63906,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - check_runs: t_check_run[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksListForRef(input, responder, ctx) + .checksListForRef(input, checksListForRefResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62686,19 +63934,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const checksListSuitesForRefResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - check_suites: z.array(s_check_suite), - }), - ], - ], - undefined, - ) - router.get( "checksListSuitesForRef", "/repos/:owner/:repo/commits/:ref/check-suites", @@ -62718,20 +63953,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - check_suites: t_check_suite[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .checksListSuitesForRef(input, responder, ctx) + .checksListSuitesForRef(input, checksListSuitesForRefResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62756,15 +63979,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposGetCombinedStatusForRefResponseValidator = - responseValidationFactory( - [ - ["200", s_combined_commit_status], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetCombinedStatusForRef", "/repos/:owner/:repo/commits/:ref/status", @@ -62784,20 +63998,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCombinedStatusForRef(input, responder, ctx) + .reposGetCombinedStatusForRef( + input, + reposGetCombinedStatusForRefResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62822,15 +64028,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListCommitStatusesForRefResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_status)], - ["301", s_basic_error], - ], - undefined, - ) - router.get( "reposListCommitStatusesForRef", "/repos/:owner/:repo/commits/:ref/statuses", @@ -62850,20 +64047,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListCommitStatusesForRef(input, responder, ctx) + .reposListCommitStatusesForRef( + input, + reposListCommitStatusesForRefResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62882,9 +64071,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetCommunityProfileMetricsResponseValidator = - responseValidationFactory([["200", s_community_profile]], undefined) - router.get( "reposGetCommunityProfileMetrics", "/repos/:owner/:repo/community/profile", @@ -62900,17 +64086,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCommunityProfileMetrics(input, responder, ctx) + .reposGetCommunityProfileMetrics( + input, + reposGetCommunityProfileMetricsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62935,23 +64116,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const reposCompareCommitsResponseValidator = responseValidationFactory( - [ - ["200", s_commit_comparison], - ["404", s_basic_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "reposCompareCommits", "/repos/:owner/:repo/compare/:basehead", @@ -62971,30 +64135,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCompareCommits(input, responder, ctx) + .reposCompareCommits(input, reposCompareCommitsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63016,25 +64158,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposGetContentQuerySchema = z.object({ ref: z.string().optional() }) - const reposGetContentResponseValidator = responseValidationFactory( - [ - [ - "200", - z.union([ - s_content_directory, - s_content_file, - s_content_symlink, - s_content_submodule, - ]), - ], - ["302", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetContent", "/repos/:owner/:repo/contents/:path", @@ -63054,34 +64177,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - | t_content_directory - | t_content_file - | t_content_symlink - | t_content_submodule - >(200) - }, - with302() { - return new KoaRuntimeResponse(302) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetContent(input, responder, ctx) + .reposGetContent(input, reposGetContentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63122,18 +64219,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const reposCreateOrUpdateFileContentsResponseValidator = - responseValidationFactory( - [ - ["200", s_file_commit], - ["201", s_file_commit], - ["404", s_basic_error], - ["409", z.union([s_basic_error, s_repository_rule_violation_error])], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "reposCreateOrUpdateFileContents", "/repos/:owner/:repo/contents/:path", @@ -63153,31 +64238,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse< - t_basic_error | t_repository_rule_violation_error - >(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateOrUpdateFileContents(input, responder, ctx) + .reposCreateOrUpdateFileContents( + input, + reposCreateOrUpdateFileContentsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63209,24 +64275,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const reposDeleteFileResponseValidator = responseValidationFactory( - [ - ["200", s_file_commit], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.delete( "reposDeleteFile", "/repos/:owner/:repo/contents/:path", @@ -63246,33 +64294,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteFile(input, responder, ctx) + .reposDeleteFile(input, reposDeleteFileResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63297,16 +64320,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListContributorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_contributor)], - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListContributors", "/repos/:owner/:repo/contributors", @@ -63326,26 +64339,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListContributors(input, responder, ctx) + .reposListContributors(input, reposListContributorsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63385,19 +64380,6 @@ export function createRouter(implementation: Implementation): KoaRouter { last: z.coerce.number().min(1).max(100).optional(), }) - const dependabotListAlertsForRepoResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_dependabot_alert)], - ["304", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.get( "dependabotListAlertsForRepo", "/repos/:owner/:repo/dependabot/alerts", @@ -63417,32 +64399,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotListAlertsForRepo(input, responder, ctx) + .dependabotListAlertsForRepo( + input, + dependabotListAlertsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63462,16 +64424,6 @@ export function createRouter(implementation: Implementation): KoaRouter { alert_number: s_alert_number, }) - const dependabotGetAlertResponseValidator = responseValidationFactory( - [ - ["200", s_dependabot_alert], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "dependabotGetAlert", "/repos/:owner/:repo/dependabot/alerts/:alert_number", @@ -63487,26 +64439,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotGetAlert(input, responder, ctx) + .dependabotGetAlert(input, dependabotGetAlertResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63540,18 +64474,6 @@ export function createRouter(implementation: Implementation): KoaRouter { dismissed_comment: z.string().max(280).optional(), }) - const dependabotUpdateAlertResponseValidator = responseValidationFactory( - [ - ["200", s_dependabot_alert], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.patch( "dependabotUpdateAlert", "/repos/:owner/:repo/dependabot/alerts/:alert_number", @@ -63571,32 +64493,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotUpdateAlert(input, responder, ctx) + .dependabotUpdateAlert(input, dependabotUpdateAlertResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63620,19 +64518,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const dependabotListRepoSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_dependabot_secret), - }), - ], - ], - undefined, - ) - router.get( "dependabotListRepoSecrets", "/repos/:owner/:repo/dependabot/secrets", @@ -63652,20 +64537,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_dependabot_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotListRepoSecrets(input, responder, ctx) + .dependabotListRepoSecrets( + input, + dependabotListRepoSecretsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63684,11 +64561,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const dependabotGetRepoPublicKeyResponseValidator = responseValidationFactory( - [["200", s_dependabot_public_key]], - undefined, - ) - router.get( "dependabotGetRepoPublicKey", "/repos/:owner/:repo/dependabot/secrets/public-key", @@ -63704,17 +64576,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotGetRepoPublicKey(input, responder, ctx) + .dependabotGetRepoPublicKey( + input, + dependabotGetRepoPublicKeyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63734,11 +64601,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const dependabotGetRepoSecretResponseValidator = responseValidationFactory( - [["200", s_dependabot_secret]], - undefined, - ) - router.get( "dependabotGetRepoSecret", "/repos/:owner/:repo/dependabot/secrets/:secret_name", @@ -63754,17 +64616,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotGetRepoSecret(input, responder, ctx) + .dependabotGetRepoSecret(input, dependabotGetRepoSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63796,15 +64649,6 @@ export function createRouter(implementation: Implementation): KoaRouter { key_id: z.string().optional(), }) - const dependabotCreateOrUpdateRepoSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) - router.put( "dependabotCreateOrUpdateRepoSecret", "/repos/:owner/:repo/dependabot/secrets/:secret_name", @@ -63824,20 +64668,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotCreateOrUpdateRepoSecret(input, responder, ctx) + .dependabotCreateOrUpdateRepoSecret( + input, + dependabotCreateOrUpdateRepoSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63860,11 +64696,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const dependabotDeleteRepoSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "dependabotDeleteRepoSecret", "/repos/:owner/:repo/dependabot/secrets/:secret_name", @@ -63880,17 +64711,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependabotDeleteRepoSecret(input, responder, ctx) + .dependabotDeleteRepoSecret( + input, + dependabotDeleteRepoSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63914,15 +64740,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string().optional(), }) - const dependencyGraphDiffRangeResponseValidator = responseValidationFactory( - [ - ["200", s_dependency_graph_diff], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "dependencyGraphDiffRange", "/repos/:owner/:repo/dependency-graph/compare/:basehead", @@ -63942,23 +64759,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependencyGraphDiffRange(input, responder, ctx) + .dependencyGraphDiffRange(input, dependencyGraphDiffRangeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63977,15 +64779,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const dependencyGraphExportSbomResponseValidator = responseValidationFactory( - [ - ["200", s_dependency_graph_spdx_sbom], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "dependencyGraphExportSbom", "/repos/:owner/:repo/dependency-graph/sbom", @@ -64001,23 +64794,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependencyGraphExportSbom(input, responder, ctx) + .dependencyGraphExportSbom( + input, + dependencyGraphExportSbomResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64038,22 +64820,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const dependencyGraphCreateRepositorySnapshotBodySchema = s_snapshot - const dependencyGraphCreateRepositorySnapshotResponseValidator = - responseValidationFactory( - [ - [ - "201", - z.object({ - id: z.coerce.number(), - created_at: z.string(), - result: z.string(), - message: z.string(), - }), - ], - ], - undefined, - ) - router.post( "dependencyGraphCreateRepositorySnapshot", "/repos/:owner/:repo/dependency-graph/snapshots", @@ -64073,22 +64839,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse<{ - created_at: string - id: number - message: string - result: string - }>(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .dependencyGraphCreateRepositorySnapshot(input, responder, ctx) + .dependencyGraphCreateRepositorySnapshot( + input, + dependencyGraphCreateRepositorySnapshotResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64119,11 +64875,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListDeploymentsResponseValidator = responseValidationFactory( - [["200", z.array(s_deployment)]], - undefined, - ) - router.get( "reposListDeployments", "/repos/:owner/:repo/deployments", @@ -64143,17 +64894,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListDeployments(input, responder, ctx) + .reposListDeployments(input, reposListDeploymentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64186,16 +64928,6 @@ export function createRouter(implementation: Implementation): KoaRouter { production_environment: PermissiveBoolean.optional(), }) - const reposCreateDeploymentResponseValidator = responseValidationFactory( - [ - ["201", s_deployment], - ["202", z.object({ message: z.string().optional() })], - ["409", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateDeployment", "/repos/:owner/:repo/deployments", @@ -64215,28 +64947,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with202() { - return new KoaRuntimeResponse<{ - message?: string - }>(202) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateDeployment(input, responder, ctx) + .reposCreateDeployment(input, reposCreateDeploymentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64256,14 +64968,6 @@ export function createRouter(implementation: Implementation): KoaRouter { deployment_id: z.coerce.number(), }) - const reposGetDeploymentResponseValidator = responseValidationFactory( - [ - ["200", s_deployment], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetDeployment", "/repos/:owner/:repo/deployments/:deployment_id", @@ -64279,20 +64983,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetDeployment(input, responder, ctx) + .reposGetDeployment(input, reposGetDeploymentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64312,15 +65004,6 @@ export function createRouter(implementation: Implementation): KoaRouter { deployment_id: z.coerce.number(), }) - const reposDeleteDeploymentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.delete( "reposDeleteDeployment", "/repos/:owner/:repo/deployments/:deployment_id", @@ -64336,23 +65019,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteDeployment(input, responder, ctx) + .reposDeleteDeployment(input, reposDeleteDeploymentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64377,15 +65045,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListDeploymentStatusesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_deployment_status)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListDeploymentStatuses", "/repos/:owner/:repo/deployments/:deployment_id/statuses", @@ -64405,20 +65064,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListDeploymentStatuses(input, responder, ctx) + .reposListDeploymentStatuses( + input, + reposListDeploymentStatusesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64456,15 +65107,6 @@ export function createRouter(implementation: Implementation): KoaRouter { auto_inactive: PermissiveBoolean.optional(), }) - const reposCreateDeploymentStatusResponseValidator = - responseValidationFactory( - [ - ["201", s_deployment_status], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateDeploymentStatus", "/repos/:owner/:repo/deployments/:deployment_id/statuses", @@ -64484,20 +65126,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateDeploymentStatus(input, responder, ctx) + .reposCreateDeploymentStatus( + input, + reposCreateDeploymentStatusResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64518,14 +65152,6 @@ export function createRouter(implementation: Implementation): KoaRouter { status_id: z.coerce.number(), }) - const reposGetDeploymentStatusResponseValidator = responseValidationFactory( - [ - ["200", s_deployment_status], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetDeploymentStatus", "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id", @@ -64541,20 +65167,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetDeploymentStatus(input, responder, ctx) + .reposGetDeploymentStatus(input, reposGetDeploymentStatusResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64578,15 +65192,6 @@ export function createRouter(implementation: Implementation): KoaRouter { client_payload: z.record(z.unknown()).optional(), }) - const reposCreateDispatchEventResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateDispatchEvent", "/repos/:owner/:repo/dispatches", @@ -64606,23 +65211,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateDispatchEvent(input, responder, ctx) + .reposCreateDispatchEvent(input, reposCreateDispatchEventResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64646,19 +65236,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposGetAllEnvironmentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number().optional(), - environments: z.array(s_environment).optional(), - }), - ], - ], - undefined, - ) - router.get( "reposGetAllEnvironments", "/repos/:owner/:repo/environments", @@ -64678,20 +65255,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - environments?: t_environment[] - total_count?: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetAllEnvironments(input, responder, ctx) + .reposGetAllEnvironments(input, reposGetAllEnvironmentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64711,11 +65276,6 @@ export function createRouter(implementation: Implementation): KoaRouter { environment_name: z.string(), }) - const reposGetEnvironmentResponseValidator = responseValidationFactory( - [["200", s_environment]], - undefined, - ) - router.get( "reposGetEnvironment", "/repos/:owner/:repo/environments/:environment_name", @@ -64731,17 +65291,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetEnvironment(input, responder, ctx) + .reposGetEnvironment(input, reposGetEnvironmentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64779,15 +65330,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const reposCreateOrUpdateEnvironmentResponseValidator = - responseValidationFactory( - [ - ["200", s_environment], - ["422", s_basic_error], - ], - undefined, - ) - router.put( "reposCreateOrUpdateEnvironment", "/repos/:owner/:repo/environments/:environment_name", @@ -64807,20 +65349,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateOrUpdateEnvironment(input, responder, ctx) + .reposCreateOrUpdateEnvironment( + input, + reposCreateOrUpdateEnvironmentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64840,11 +65374,6 @@ export function createRouter(implementation: Implementation): KoaRouter { environment_name: z.string(), }) - const reposDeleteAnEnvironmentResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "reposDeleteAnEnvironment", "/repos/:owner/:repo/environments/:environment_name", @@ -64860,17 +65389,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteAnEnvironment(input, responder, ctx) + .reposDeleteAnEnvironment(input, reposDeleteAnEnvironmentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64895,20 +65415,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListDeploymentBranchPoliciesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - branch_policies: z.array(s_deployment_branch_policy), - }), - ], - ], - undefined, - ) - router.get( "reposListDeploymentBranchPolicies", "/repos/:owner/:repo/environments/:environment_name/deployment-branch-policies", @@ -64928,20 +65434,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - branch_policies: t_deployment_branch_policy[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListDeploymentBranchPolicies(input, responder, ctx) + .reposListDeploymentBranchPolicies( + input, + reposListDeploymentBranchPoliciesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64967,16 +65465,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposCreateDeploymentBranchPolicyBodySchema = s_deployment_branch_policy_name_pattern_with_type - const reposCreateDeploymentBranchPolicyResponseValidator = - responseValidationFactory( - [ - ["200", s_deployment_branch_policy], - ["303", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.post( "reposCreateDeploymentBranchPolicy", "/repos/:owner/:repo/environments/:environment_name/deployment-branch-policies", @@ -64996,23 +65484,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with303() { - return new KoaRuntimeResponse(303) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateDeploymentBranchPolicy(input, responder, ctx) + .reposCreateDeploymentBranchPolicy( + input, + reposCreateDeploymentBranchPolicyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65036,9 +65513,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch_policy_id: z.coerce.number(), }) - const reposGetDeploymentBranchPolicyResponseValidator = - responseValidationFactory([["200", s_deployment_branch_policy]], undefined) - router.get( "reposGetDeploymentBranchPolicy", "/repos/:owner/:repo/environments/:environment_name/deployment-branch-policies/:branch_policy_id", @@ -65054,17 +65528,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetDeploymentBranchPolicy(input, responder, ctx) + .reposGetDeploymentBranchPolicy( + input, + reposGetDeploymentBranchPolicyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65088,9 +65557,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposUpdateDeploymentBranchPolicyBodySchema = s_deployment_branch_policy_name_pattern - const reposUpdateDeploymentBranchPolicyResponseValidator = - responseValidationFactory([["200", s_deployment_branch_policy]], undefined) - router.put( "reposUpdateDeploymentBranchPolicy", "/repos/:owner/:repo/environments/:environment_name/deployment-branch-policies/:branch_policy_id", @@ -65110,17 +65576,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateDeploymentBranchPolicy(input, responder, ctx) + .reposUpdateDeploymentBranchPolicy( + input, + reposUpdateDeploymentBranchPolicyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65144,9 +65605,6 @@ export function createRouter(implementation: Implementation): KoaRouter { branch_policy_id: z.coerce.number(), }) - const reposDeleteDeploymentBranchPolicyResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reposDeleteDeploymentBranchPolicy", "/repos/:owner/:repo/environments/:environment_name/deployment-branch-policies/:branch_policy_id", @@ -65162,17 +65620,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteDeploymentBranchPolicy(input, responder, ctx) + .reposDeleteDeploymentBranchPolicy( + input, + reposDeleteDeploymentBranchPolicyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65195,22 +65648,6 @@ export function createRouter(implementation: Implementation): KoaRouter { owner: z.string(), }) - const reposGetAllDeploymentProtectionRulesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number().optional(), - custom_deployment_protection_rules: z - .array(s_deployment_protection_rule) - .optional(), - }), - ], - ], - undefined, - ) - router.get( "reposGetAllDeploymentProtectionRules", "/repos/:owner/:repo/environments/:environment_name/deployment_protection_rules", @@ -65226,20 +65663,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - custom_deployment_protection_rules?: t_deployment_protection_rule[] - total_count?: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetAllDeploymentProtectionRules(input, responder, ctx) + .reposGetAllDeploymentProtectionRules( + input, + reposGetAllDeploymentProtectionRulesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65266,12 +65695,6 @@ export function createRouter(implementation: Implementation): KoaRouter { integration_id: z.coerce.number().optional(), }) - const reposCreateDeploymentProtectionRuleResponseValidator = - responseValidationFactory( - [["201", s_deployment_protection_rule]], - undefined, - ) - router.post( "reposCreateDeploymentProtectionRule", "/repos/:owner/:repo/environments/:environment_name/deployment_protection_rules", @@ -65291,17 +65714,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateDeploymentProtectionRule(input, responder, ctx) + .reposCreateDeploymentProtectionRule( + input, + reposCreateDeploymentProtectionRuleResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65329,22 +65747,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const reposListCustomDeploymentRuleIntegrationsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number().optional(), - available_custom_deployment_protection_rule_integrations: z - .array(s_custom_deployment_rule_app) - .optional(), - }), - ], - ], - undefined, - ) - router.get( "reposListCustomDeploymentRuleIntegrations", "/repos/:owner/:repo/environments/:environment_name/deployment_protection_rules/apps", @@ -65364,20 +65766,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - available_custom_deployment_protection_rule_integrations?: t_custom_deployment_rule_app[] - total_count?: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListCustomDeploymentRuleIntegrations(input, responder, ctx) + .reposListCustomDeploymentRuleIntegrations( + input, + reposListCustomDeploymentRuleIntegrationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65401,12 +65795,6 @@ export function createRouter(implementation: Implementation): KoaRouter { protection_rule_id: z.coerce.number(), }) - const reposGetCustomDeploymentProtectionRuleResponseValidator = - responseValidationFactory( - [["200", s_deployment_protection_rule]], - undefined, - ) - router.get( "reposGetCustomDeploymentProtectionRule", "/repos/:owner/:repo/environments/:environment_name/deployment_protection_rules/:protection_rule_id", @@ -65422,17 +65810,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCustomDeploymentProtectionRule(input, responder, ctx) + .reposGetCustomDeploymentProtectionRule( + input, + reposGetCustomDeploymentProtectionRuleResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65456,9 +65839,6 @@ export function createRouter(implementation: Implementation): KoaRouter { protection_rule_id: z.coerce.number(), }) - const reposDisableDeploymentProtectionRuleResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reposDisableDeploymentProtectionRule", "/repos/:owner/:repo/environments/:environment_name/deployment_protection_rules/:protection_rule_id", @@ -65474,17 +65854,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDisableDeploymentProtectionRule(input, responder, ctx) + .reposDisableDeploymentProtectionRule( + input, + reposDisableDeploymentProtectionRuleResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65512,20 +65887,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListEnvironmentSecretsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_actions_secret), - }), - ], - ], - undefined, - ) - router.get( "actionsListEnvironmentSecrets", "/repos/:owner/:repo/environments/:environment_name/secrets", @@ -65545,20 +65906,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_actions_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListEnvironmentSecrets(input, responder, ctx) + .actionsListEnvironmentSecrets( + input, + actionsListEnvironmentSecretsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65578,9 +65931,6 @@ export function createRouter(implementation: Implementation): KoaRouter { environment_name: z.string(), }) - const actionsGetEnvironmentPublicKeyResponseValidator = - responseValidationFactory([["200", s_actions_public_key]], undefined) - router.get( "actionsGetEnvironmentPublicKey", "/repos/:owner/:repo/environments/:environment_name/secrets/public-key", @@ -65596,17 +65946,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetEnvironmentPublicKey(input, responder, ctx) + .actionsGetEnvironmentPublicKey( + input, + actionsGetEnvironmentPublicKeyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65627,9 +65972,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const actionsGetEnvironmentSecretResponseValidator = - responseValidationFactory([["200", s_actions_secret]], undefined) - router.get( "actionsGetEnvironmentSecret", "/repos/:owner/:repo/environments/:environment_name/secrets/:secret_name", @@ -65645,17 +65987,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetEnvironmentSecret(input, responder, ctx) + .actionsGetEnvironmentSecret( + input, + actionsGetEnvironmentSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65687,15 +66024,6 @@ export function createRouter(implementation: Implementation): KoaRouter { key_id: z.string(), }) - const actionsCreateOrUpdateEnvironmentSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) - router.put( "actionsCreateOrUpdateEnvironmentSecret", "/repos/:owner/:repo/environments/:environment_name/secrets/:secret_name", @@ -65715,20 +66043,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateOrUpdateEnvironmentSecret(input, responder, ctx) + .actionsCreateOrUpdateEnvironmentSecret( + input, + actionsCreateOrUpdateEnvironmentSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65752,9 +66072,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const actionsDeleteEnvironmentSecretResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsDeleteEnvironmentSecret", "/repos/:owner/:repo/environments/:environment_name/secrets/:secret_name", @@ -65770,17 +66087,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteEnvironmentSecret(input, responder, ctx) + .actionsDeleteEnvironmentSecret( + input, + actionsDeleteEnvironmentSecretResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65805,20 +66117,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const actionsListEnvironmentVariablesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - variables: z.array(s_actions_variable), - }), - ], - ], - undefined, - ) - router.get( "actionsListEnvironmentVariables", "/repos/:owner/:repo/environments/:environment_name/variables", @@ -65838,20 +66136,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - total_count: number - variables: t_actions_variable[] - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsListEnvironmentVariables(input, responder, ctx) + .actionsListEnvironmentVariables( + input, + actionsListEnvironmentVariablesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65876,9 +66166,6 @@ export function createRouter(implementation: Implementation): KoaRouter { value: z.string(), }) - const actionsCreateEnvironmentVariableResponseValidator = - responseValidationFactory([["201", s_empty_object]], undefined) - router.post( "actionsCreateEnvironmentVariable", "/repos/:owner/:repo/environments/:environment_name/variables", @@ -65898,17 +66185,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsCreateEnvironmentVariable(input, responder, ctx) + .actionsCreateEnvironmentVariable( + input, + actionsCreateEnvironmentVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65929,9 +66211,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const actionsGetEnvironmentVariableResponseValidator = - responseValidationFactory([["200", s_actions_variable]], undefined) - router.get( "actionsGetEnvironmentVariable", "/repos/:owner/:repo/environments/:environment_name/variables/:name", @@ -65947,17 +66226,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsGetEnvironmentVariable(input, responder, ctx) + .actionsGetEnvironmentVariable( + input, + actionsGetEnvironmentVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65983,9 +66257,6 @@ export function createRouter(implementation: Implementation): KoaRouter { value: z.string().optional(), }) - const actionsUpdateEnvironmentVariableResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.patch( "actionsUpdateEnvironmentVariable", "/repos/:owner/:repo/environments/:environment_name/variables/:name", @@ -66005,17 +66276,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsUpdateEnvironmentVariable(input, responder, ctx) + .actionsUpdateEnvironmentVariable( + input, + actionsUpdateEnvironmentVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66036,9 +66302,6 @@ export function createRouter(implementation: Implementation): KoaRouter { environment_name: z.string(), }) - const actionsDeleteEnvironmentVariableResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "actionsDeleteEnvironmentVariable", "/repos/:owner/:repo/environments/:environment_name/variables/:name", @@ -66054,17 +66317,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .actionsDeleteEnvironmentVariable(input, responder, ctx) + .actionsDeleteEnvironmentVariable( + input, + actionsDeleteEnvironmentVariableResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66088,11 +66346,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListRepoEventsResponseValidator = responseValidationFactory( - [["200", z.array(s_event)]], - undefined, - ) - router.get( "activityListRepoEvents", "/repos/:owner/:repo/events", @@ -66112,17 +66365,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListRepoEvents(input, responder, ctx) + .activityListRepoEvents(input, activityListRepoEventsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66150,14 +66394,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListForksResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["400", s_scim_error], - ], - undefined, - ) - router.get( "reposListForks", "/repos/:owner/:repo/forks", @@ -66177,20 +66413,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListForks(input, responder, ctx) + .reposListForks(input, reposListForksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66218,17 +66442,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const reposCreateForkResponseValidator = responseValidationFactory( - [ - ["202", s_full_repository], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateFork", "/repos/:owner/:repo/forks", @@ -66248,29 +66461,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateFork(input, responder, ctx) + .reposCreateFork(input, reposCreateForkResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66294,17 +66486,6 @@ export function createRouter(implementation: Implementation): KoaRouter { encoding: z.string().optional().default("utf-8"), }) - const gitCreateBlobResponseValidator = responseValidationFactory( - [ - ["201", s_short_blob], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", z.union([s_validation_error, s_repository_rule_violation_error])], - ], - undefined, - ) - router.post( "gitCreateBlob", "/repos/:owner/:repo/git/blobs", @@ -66324,31 +66505,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse< - t_validation_error | t_repository_rule_violation_error - >(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitCreateBlob(input, responder, ctx) + .gitCreateBlob(input, gitCreateBlobResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66368,17 +66526,6 @@ export function createRouter(implementation: Implementation): KoaRouter { file_sha: z.string(), }) - const gitGetBlobResponseValidator = responseValidationFactory( - [ - ["200", s_blob], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "gitGetBlob", "/repos/:owner/:repo/git/blobs/:file_sha", @@ -66394,29 +66541,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitGetBlob(input, responder, ctx) + .gitGetBlob(input, gitGetBlobResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66456,16 +66582,6 @@ export function createRouter(implementation: Implementation): KoaRouter { signature: z.string().optional(), }) - const gitCreateCommitResponseValidator = responseValidationFactory( - [ - ["201", s_git_commit], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "gitCreateCommit", "/repos/:owner/:repo/git/commits", @@ -66485,26 +66601,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitCreateCommit(input, responder, ctx) + .gitCreateCommit(input, gitCreateCommitResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66524,15 +66622,6 @@ export function createRouter(implementation: Implementation): KoaRouter { commit_sha: z.string(), }) - const gitGetCommitResponseValidator = responseValidationFactory( - [ - ["200", s_git_commit], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.get( "gitGetCommit", "/repos/:owner/:repo/git/commits/:commit_sha", @@ -66548,23 +66637,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitGetCommit(input, responder, ctx) + .gitGetCommit(input, gitGetCommitResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66584,14 +66658,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string(), }) - const gitListMatchingRefsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_git_ref)], - ["409", s_basic_error], - ], - undefined, - ) - router.get( "gitListMatchingRefs", "/repos/:owner/:repo/git/matching-refs/:ref", @@ -66607,20 +66673,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitListMatchingRefs(input, responder, ctx) + .gitListMatchingRefs(input, gitListMatchingRefsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66640,15 +66694,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string(), }) - const gitGetRefResponseValidator = responseValidationFactory( - [ - ["200", s_git_ref], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.get( "gitGetRef", "/repos/:owner/:repo/git/ref/:ref", @@ -66664,23 +66709,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitGetRef(input, responder, ctx) + .gitGetRef(input, gitGetRefResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66701,15 +66731,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gitCreateRefBodySchema = z.object({ ref: z.string(), sha: z.string() }) - const gitCreateRefResponseValidator = responseValidationFactory( - [ - ["201", s_git_ref], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "gitCreateRef", "/repos/:owner/:repo/git/refs", @@ -66729,23 +66750,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitCreateRef(input, responder, ctx) + .gitCreateRef(input, gitCreateRefResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66770,15 +66776,6 @@ export function createRouter(implementation: Implementation): KoaRouter { force: PermissiveBoolean.optional().default(false), }) - const gitUpdateRefResponseValidator = responseValidationFactory( - [ - ["200", s_git_ref], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "gitUpdateRef", "/repos/:owner/:repo/git/refs/:ref", @@ -66798,23 +66795,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitUpdateRef(input, responder, ctx) + .gitUpdateRef(input, gitUpdateRefResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66834,15 +66816,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string(), }) - const gitDeleteRefResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["409", s_basic_error], - ["422", z.undefined()], - ], - undefined, - ) - router.delete( "gitDeleteRef", "/repos/:owner/:repo/git/refs/:ref", @@ -66858,23 +66831,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitDeleteRef(input, responder, ctx) + .gitDeleteRef(input, gitDeleteRefResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66907,15 +66865,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const gitCreateTagResponseValidator = responseValidationFactory( - [ - ["201", s_git_tag], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "gitCreateTag", "/repos/:owner/:repo/git/tags", @@ -66935,23 +66884,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitCreateTag(input, responder, ctx) + .gitCreateTag(input, gitCreateTagResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66971,15 +66905,6 @@ export function createRouter(implementation: Implementation): KoaRouter { tag_sha: z.string(), }) - const gitGetTagResponseValidator = responseValidationFactory( - [ - ["200", s_git_tag], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.get( "gitGetTag", "/repos/:owner/:repo/git/tags/:tag_sha", @@ -66995,23 +66920,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitGetTag(input, responder, ctx) + .gitGetTag(input, gitGetTagResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67045,17 +66955,6 @@ export function createRouter(implementation: Implementation): KoaRouter { base_tree: z.string().optional(), }) - const gitCreateTreeResponseValidator = responseValidationFactory( - [ - ["201", s_git_tree], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "gitCreateTree", "/repos/:owner/:repo/git/trees", @@ -67075,29 +66974,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitCreateTree(input, responder, ctx) + .gitCreateTree(input, gitCreateTreeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67119,16 +66997,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const gitGetTreeQuerySchema = z.object({ recursive: z.string().optional() }) - const gitGetTreeResponseValidator = responseValidationFactory( - [ - ["200", s_git_tree], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "gitGetTree", "/repos/:owner/:repo/git/trees/:tree_sha", @@ -67148,26 +67016,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gitGetTree(input, responder, ctx) + .gitGetTree(input, gitGetTreeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67191,14 +67041,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListWebhooksResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_hook)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListWebhooks", "/repos/:owner/:repo/hooks", @@ -67218,20 +67060,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListWebhooks(input, responder, ctx) + .reposListWebhooks(input, reposListWebhooksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67267,16 +67097,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const reposCreateWebhookResponseValidator = responseValidationFactory( - [ - ["201", s_hook], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateWebhook", "/repos/:owner/:repo/hooks", @@ -67296,26 +67116,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateWebhook(input, responder, ctx) + .reposCreateWebhook(input, reposCreateWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67335,14 +67137,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const reposGetWebhookResponseValidator = responseValidationFactory( - [ - ["200", s_hook], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetWebhook", "/repos/:owner/:repo/hooks/:hook_id", @@ -67358,20 +67152,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetWebhook(input, responder, ctx) + .reposGetWebhook(input, reposGetWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67399,15 +67181,6 @@ export function createRouter(implementation: Implementation): KoaRouter { active: PermissiveBoolean.optional().default(true), }) - const reposUpdateWebhookResponseValidator = responseValidationFactory( - [ - ["200", s_hook], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "reposUpdateWebhook", "/repos/:owner/:repo/hooks/:hook_id", @@ -67427,23 +67200,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateWebhook(input, responder, ctx) + .reposUpdateWebhook(input, reposUpdateWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67463,14 +67221,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const reposDeleteWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteWebhook", "/repos/:owner/:repo/hooks/:hook_id", @@ -67486,20 +67236,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteWebhook(input, responder, ctx) + .reposDeleteWebhook(input, reposDeleteWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67519,9 +67257,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const reposGetWebhookConfigForRepoResponseValidator = - responseValidationFactory([["200", s_webhook_config]], undefined) - router.get( "reposGetWebhookConfigForRepo", "/repos/:owner/:repo/hooks/:hook_id/config", @@ -67537,17 +67272,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetWebhookConfigForRepo(input, responder, ctx) + .reposGetWebhookConfigForRepo( + input, + reposGetWebhookConfigForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67576,9 +67306,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdateWebhookConfigForRepoResponseValidator = - responseValidationFactory([["200", s_webhook_config]], undefined) - router.patch( "reposUpdateWebhookConfigForRepo", "/repos/:owner/:repo/hooks/:hook_id/config", @@ -67598,17 +67325,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateWebhookConfigForRepo(input, responder, ctx) + .reposUpdateWebhookConfigForRepo( + input, + reposUpdateWebhookConfigForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67633,15 +67355,6 @@ export function createRouter(implementation: Implementation): KoaRouter { cursor: z.string().optional(), }) - const reposListWebhookDeliveriesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_hook_delivery_item)], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "reposListWebhookDeliveries", "/repos/:owner/:repo/hooks/:hook_id/deliveries", @@ -67661,23 +67374,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListWebhookDeliveries(input, responder, ctx) + .reposListWebhookDeliveries( + input, + reposListWebhookDeliveriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67698,15 +67400,6 @@ export function createRouter(implementation: Implementation): KoaRouter { delivery_id: z.coerce.number(), }) - const reposGetWebhookDeliveryResponseValidator = responseValidationFactory( - [ - ["200", s_hook_delivery], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "reposGetWebhookDelivery", "/repos/:owner/:repo/hooks/:hook_id/deliveries/:delivery_id", @@ -67722,23 +67415,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetWebhookDelivery(input, responder, ctx) + .reposGetWebhookDelivery(input, reposGetWebhookDeliveryResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67759,16 +67437,6 @@ export function createRouter(implementation: Implementation): KoaRouter { delivery_id: z.coerce.number(), }) - const reposRedeliverWebhookDeliveryResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposRedeliverWebhookDelivery", "/repos/:owner/:repo/hooks/:hook_id/deliveries/:delivery_id/attempts", @@ -67784,25 +67452,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRedeliverWebhookDelivery(input, responder, ctx) + .reposRedeliverWebhookDelivery( + input, + reposRedeliverWebhookDeliveryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67822,14 +67477,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const reposPingWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "reposPingWebhook", "/repos/:owner/:repo/hooks/:hook_id/pings", @@ -67845,20 +67492,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposPingWebhook(input, responder, ctx) + .reposPingWebhook(input, reposPingWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67878,14 +67513,6 @@ export function createRouter(implementation: Implementation): KoaRouter { hook_id: z.coerce.number(), }) - const reposTestPushWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "reposTestPushWebhook", "/repos/:owner/:repo/hooks/:hook_id/tests", @@ -67901,20 +67528,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposTestPushWebhook(input, responder, ctx) + .reposTestPushWebhook(input, reposTestPushWebhookResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67933,15 +67548,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const migrationsGetImportStatusResponseValidator = responseValidationFactory( - [ - ["200", s_import], - ["404", s_basic_error], - ["503", s_basic_error], - ], - undefined, - ) - router.get( "migrationsGetImportStatus", "/repos/:owner/:repo/import", @@ -67957,23 +67563,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsGetImportStatus(input, responder, ctx) + .migrationsGetImportStatus( + input, + migrationsGetImportStatusResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68000,16 +67595,6 @@ export function createRouter(implementation: Implementation): KoaRouter { tfvc_project: z.string().optional(), }) - const migrationsStartImportResponseValidator = responseValidationFactory( - [ - ["201", s_import], - ["404", s_basic_error], - ["422", s_validation_error], - ["503", s_basic_error], - ], - undefined, - ) - router.put( "migrationsStartImport", "/repos/:owner/:repo/import", @@ -68029,26 +67614,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsStartImport(input, responder, ctx) + .migrationsStartImport(input, migrationsStartImportResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68077,14 +67644,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const migrationsUpdateImportResponseValidator = responseValidationFactory( - [ - ["200", s_import], - ["503", s_basic_error], - ], - undefined, - ) - router.patch( "migrationsUpdateImport", "/repos/:owner/:repo/import", @@ -68104,20 +67663,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with503() { - return new KoaRuntimeResponse(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsUpdateImport(input, responder, ctx) + .migrationsUpdateImport(input, migrationsUpdateImportResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68136,14 +67683,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const migrationsCancelImportResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["503", s_basic_error], - ], - undefined, - ) - router.delete( "migrationsCancelImport", "/repos/:owner/:repo/import", @@ -68159,20 +67698,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with503() { - return new KoaRuntimeResponse(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsCancelImport(input, responder, ctx) + .migrationsCancelImport(input, migrationsCancelImportResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68195,15 +67722,6 @@ export function createRouter(implementation: Implementation): KoaRouter { since: z.coerce.number().optional(), }) - const migrationsGetCommitAuthorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_porter_author)], - ["404", s_basic_error], - ["503", s_basic_error], - ], - undefined, - ) - router.get( "migrationsGetCommitAuthors", "/repos/:owner/:repo/import/authors", @@ -68223,23 +67741,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsGetCommitAuthors(input, responder, ctx) + .migrationsGetCommitAuthors( + input, + migrationsGetCommitAuthorsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68263,16 +67770,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ email: z.string().optional(), name: z.string().optional() }) .optional() - const migrationsMapCommitAuthorResponseValidator = responseValidationFactory( - [ - ["200", s_porter_author], - ["404", s_basic_error], - ["422", s_validation_error], - ["503", s_basic_error], - ], - undefined, - ) - router.patch( "migrationsMapCommitAuthor", "/repos/:owner/:repo/import/authors/:author_id", @@ -68292,26 +67789,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsMapCommitAuthor(input, responder, ctx) + .migrationsMapCommitAuthor( + input, + migrationsMapCommitAuthorResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68330,14 +67813,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const migrationsGetLargeFilesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_porter_large_file)], - ["503", s_basic_error], - ], - undefined, - ) - router.get( "migrationsGetLargeFiles", "/repos/:owner/:repo/import/large_files", @@ -68353,20 +67828,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with503() { - return new KoaRuntimeResponse(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsGetLargeFiles(input, responder, ctx) + .migrationsGetLargeFiles(input, migrationsGetLargeFilesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68389,15 +67852,6 @@ export function createRouter(implementation: Implementation): KoaRouter { use_lfs: z.enum(["opt_in", "opt_out"]), }) - const migrationsSetLfsPreferenceResponseValidator = responseValidationFactory( - [ - ["200", s_import], - ["422", s_validation_error], - ["503", s_basic_error], - ], - undefined, - ) - router.patch( "migrationsSetLfsPreference", "/repos/:owner/:repo/import/lfs", @@ -68417,23 +67871,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsSetLfsPreference(input, responder, ctx) + .migrationsSetLfsPreference( + input, + migrationsSetLfsPreferenceResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68452,15 +67895,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const appsGetRepoInstallationResponseValidator = responseValidationFactory( - [ - ["200", s_installation], - ["301", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "appsGetRepoInstallation", "/repos/:owner/:repo/installation", @@ -68476,23 +67910,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetRepoInstallation(input, responder, ctx) + .appsGetRepoInstallation(input, appsGetRepoInstallationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68511,12 +67930,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const interactionsGetRestrictionsForRepoResponseValidator = - responseValidationFactory( - [["200", z.union([s_interaction_limit_response, z.object({})])]], - undefined, - ) - router.get( "interactionsGetRestrictionsForRepo", "/repos/:owner/:repo/interaction-limits", @@ -68532,19 +67945,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_interaction_limit_response | EmptyObject - >(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .interactionsGetRestrictionsForRepo(input, responder, ctx) + .interactionsGetRestrictionsForRepo( + input, + interactionsGetRestrictionsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68568,15 +67974,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const interactionsSetRestrictionsForRepoBodySchema = s_interaction_limit - const interactionsSetRestrictionsForRepoResponseValidator = - responseValidationFactory( - [ - ["200", s_interaction_limit_response], - ["409", z.undefined()], - ], - undefined, - ) - router.put( "interactionsSetRestrictionsForRepo", "/repos/:owner/:repo/interaction-limits", @@ -68596,20 +67993,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .interactionsSetRestrictionsForRepo(input, responder, ctx) + .interactionsSetRestrictionsForRepo( + input, + interactionsSetRestrictionsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68631,15 +68020,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const interactionsRemoveRestrictionsForRepoResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - router.delete( "interactionsRemoveRestrictionsForRepo", "/repos/:owner/:repo/interaction-limits", @@ -68655,20 +68035,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .interactionsRemoveRestrictionsForRepo(input, responder, ctx) + .interactionsRemoveRestrictionsForRepo( + input, + interactionsRemoveRestrictionsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68695,11 +68067,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListInvitationsResponseValidator = responseValidationFactory( - [["200", z.array(s_repository_invitation)]], - undefined, - ) - router.get( "reposListInvitations", "/repos/:owner/:repo/invitations", @@ -68719,17 +68086,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListInvitations(input, responder, ctx) + .reposListInvitations(input, reposListInvitationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68757,11 +68115,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdateInvitationResponseValidator = responseValidationFactory( - [["200", s_repository_invitation]], - undefined, - ) - router.patch( "reposUpdateInvitation", "/repos/:owner/:repo/invitations/:invitation_id", @@ -68781,17 +68134,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateInvitation(input, responder, ctx) + .reposUpdateInvitation(input, reposUpdateInvitationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68811,11 +68155,6 @@ export function createRouter(implementation: Implementation): KoaRouter { invitation_id: z.coerce.number(), }) - const reposDeleteInvitationResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "reposDeleteInvitation", "/repos/:owner/:repo/invitations/:invitation_id", @@ -68831,17 +68170,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteInvitation(input, responder, ctx) + .reposDeleteInvitation(input, reposDeleteInvitationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68878,16 +68208,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["301", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "issuesListForRepo", "/repos/:owner/:repo/issues", @@ -68907,26 +68227,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListForRepo(input, responder, ctx) + .issuesListForRepo(input, issuesListForRepoResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68967,26 +68269,6 @@ export function createRouter(implementation: Implementation): KoaRouter { type: z.string().nullable().optional(), }) - const issuesCreateResponseValidator = responseValidationFactory( - [ - ["201", s_issue], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "issuesCreate", "/repos/:owner/:repo/issues", @@ -69006,39 +68288,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesCreate(input, responder, ctx) + .issuesCreate(input, issuesCreateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69065,15 +68316,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListCommentsForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_comment)], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "issuesListCommentsForRepo", "/repos/:owner/:repo/issues/comments", @@ -69093,23 +68335,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListCommentsForRepo(input, responder, ctx) + .issuesListCommentsForRepo( + input, + issuesListCommentsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69129,14 +68360,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_id: z.coerce.number(), }) - const issuesGetCommentResponseValidator = responseValidationFactory( - [ - ["200", s_issue_comment], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesGetComment", "/repos/:owner/:repo/issues/comments/:comment_id", @@ -69152,20 +68375,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesGetComment(input, responder, ctx) + .issuesGetComment(input, issuesGetCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69187,14 +68398,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const issuesUpdateCommentBodySchema = z.object({ body: z.string() }) - const issuesUpdateCommentResponseValidator = responseValidationFactory( - [ - ["200", s_issue_comment], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "issuesUpdateComment", "/repos/:owner/:repo/issues/comments/:comment_id", @@ -69214,20 +68417,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesUpdateComment(input, responder, ctx) + .issuesUpdateComment(input, issuesUpdateCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69247,11 +68438,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_id: z.coerce.number(), }) - const issuesDeleteCommentResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "issuesDeleteComment", "/repos/:owner/:repo/issues/comments/:comment_id", @@ -69267,17 +68453,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesDeleteComment(input, responder, ctx) + .issuesDeleteComment(input, issuesDeleteCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69314,15 +68491,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForIssueCommentResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reactionsListForIssueComment", "/repos/:owner/:repo/issues/comments/:comment_id/reactions", @@ -69342,20 +68510,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForIssueComment(input, responder, ctx) + .reactionsListForIssueComment( + input, + reactionsListForIssueCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69388,16 +68548,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const reactionsCreateForIssueCommentResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reactionsCreateForIssueComment", "/repos/:owner/:repo/issues/comments/:comment_id/reactions", @@ -69417,23 +68567,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForIssueComment(input, responder, ctx) + .reactionsCreateForIssueComment( + input, + reactionsCreateForIssueCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69454,9 +68593,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reaction_id: z.coerce.number(), }) - const reactionsDeleteForIssueCommentResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reactionsDeleteForIssueComment", "/repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id", @@ -69472,17 +68608,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsDeleteForIssueComment(input, responder, ctx) + .reactionsDeleteForIssueComment( + input, + reactionsDeleteForIssueCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69506,14 +68637,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListEventsForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_event)], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "issuesListEventsForRepo", "/repos/:owner/:repo/issues/events", @@ -69533,20 +68656,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListEventsForRepo(input, responder, ctx) + .issuesListEventsForRepo(input, issuesListEventsForRepoResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69566,16 +68677,6 @@ export function createRouter(implementation: Implementation): KoaRouter { event_id: z.coerce.number(), }) - const issuesGetEventResponseValidator = responseValidationFactory( - [ - ["200", s_issue_event], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "issuesGetEvent", "/repos/:owner/:repo/issues/events/:event_id", @@ -69591,26 +68692,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesGetEvent(input, responder, ctx) + .issuesGetEvent(input, issuesGetEventResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69630,17 +68713,6 @@ export function createRouter(implementation: Implementation): KoaRouter { issue_number: z.coerce.number(), }) - const issuesGetResponseValidator = responseValidationFactory( - [ - ["200", s_issue], - ["301", s_basic_error], - ["304", z.undefined()], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "issuesGet", "/repos/:owner/:repo/issues/:issue_number", @@ -69656,29 +68728,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesGet(input, responder, ctx) + .issuesGet(input, issuesGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69727,26 +68778,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const issuesUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_issue], - ["301", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.patch( "issuesUpdate", "/repos/:owner/:repo/issues/:issue_number", @@ -69766,39 +68797,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesUpdate(input, responder, ctx) + .issuesUpdate(input, issuesUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69822,11 +68822,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ assignees: z.array(z.string()).optional() }) .optional() - const issuesAddAssigneesResponseValidator = responseValidationFactory( - [["201", s_issue]], - undefined, - ) - router.post( "issuesAddAssignees", "/repos/:owner/:repo/issues/:issue_number/assignees", @@ -69846,17 +68841,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesAddAssignees(input, responder, ctx) + .issuesAddAssignees(input, issuesAddAssigneesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69880,11 +68866,6 @@ export function createRouter(implementation: Implementation): KoaRouter { assignees: z.array(z.string()).optional(), }) - const issuesRemoveAssigneesResponseValidator = responseValidationFactory( - [["200", s_issue]], - undefined, - ) - router.delete( "issuesRemoveAssignees", "/repos/:owner/:repo/issues/:issue_number/assignees", @@ -69904,17 +68885,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesRemoveAssignees(input, responder, ctx) + .issuesRemoveAssignees(input, issuesRemoveAssigneesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69935,15 +68907,6 @@ export function createRouter(implementation: Implementation): KoaRouter { assignee: z.string(), }) - const issuesCheckUserCanBeAssignedToIssueResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesCheckUserCanBeAssignedToIssue", "/repos/:owner/:repo/issues/:issue_number/assignees/:assignee", @@ -69959,20 +68922,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesCheckUserCanBeAssignedToIssue(input, responder, ctx) + .issuesCheckUserCanBeAssignedToIssue( + input, + issuesCheckUserCanBeAssignedToIssueResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70001,15 +68956,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListCommentsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_comment)], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "issuesListComments", "/repos/:owner/:repo/issues/:issue_number/comments", @@ -70029,23 +68975,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListComments(input, responder, ctx) + .issuesListComments(input, issuesListCommentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70067,17 +68998,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const issuesCreateCommentBodySchema = z.object({ body: z.string() }) - const issuesCreateCommentResponseValidator = responseValidationFactory( - [ - ["201", s_issue_comment], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "issuesCreateComment", "/repos/:owner/:repo/issues/:issue_number/comments", @@ -70097,29 +69017,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesCreateComment(input, responder, ctx) + .issuesCreateComment(input, issuesCreateCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70144,14 +69043,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListEventsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_event_for_issue)], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "issuesListEvents", "/repos/:owner/:repo/issues/:issue_number/events", @@ -70171,20 +69062,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListEvents(input, responder, ctx) + .issuesListEvents(input, issuesListEventsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70209,16 +69088,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListLabelsOnIssueResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "issuesListLabelsOnIssue", "/repos/:owner/:repo/issues/:issue_number/labels", @@ -70238,26 +69107,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListLabelsOnIssue(input, responder, ctx) + .issuesListLabelsOnIssue(input, issuesListLabelsOnIssueResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70292,17 +69143,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]) .optional() - const issuesAddLabelsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "issuesAddLabels", "/repos/:owner/:repo/issues/:issue_number/labels", @@ -70322,29 +69162,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesAddLabels(input, responder, ctx) + .issuesAddLabels(input, issuesAddLabelsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70379,17 +69198,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]) .optional() - const issuesSetLabelsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "issuesSetLabels", "/repos/:owner/:repo/issues/:issue_number/labels", @@ -70409,29 +69217,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesSetLabels(input, responder, ctx) + .issuesSetLabels(input, issuesSetLabelsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70451,16 +69238,6 @@ export function createRouter(implementation: Implementation): KoaRouter { issue_number: z.coerce.number(), }) - const issuesRemoveAllLabelsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.delete( "issuesRemoveAllLabels", "/repos/:owner/:repo/issues/:issue_number/labels", @@ -70476,26 +69253,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesRemoveAllLabels(input, responder, ctx) + .issuesRemoveAllLabels(input, issuesRemoveAllLabelsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70516,16 +69275,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const issuesRemoveLabelResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.delete( "issuesRemoveLabel", "/repos/:owner/:repo/issues/:issue_number/labels/:name", @@ -70541,26 +69290,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with301() { - return new KoaRuntimeResponse(301) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesRemoveLabel(input, responder, ctx) + .issuesRemoveLabel(input, issuesRemoveLabelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70589,17 +69320,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const issuesLockResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "issuesLock", "/repos/:owner/:repo/issues/:issue_number/lock", @@ -70619,29 +69339,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesLock(input, responder, ctx) + .issuesLock(input, issuesLockResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70661,15 +69360,6 @@ export function createRouter(implementation: Implementation): KoaRouter { issue_number: z.coerce.number(), }) - const issuesUnlockResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "issuesUnlock", "/repos/:owner/:repo/issues/:issue_number/lock", @@ -70685,23 +69375,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesUnlock(input, responder, ctx) + .issuesUnlock(input, issuesUnlockResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70738,15 +69413,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForIssueResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "reactionsListForIssue", "/repos/:owner/:repo/issues/:issue_number/reactions", @@ -70766,23 +69432,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForIssue(input, responder, ctx) + .reactionsListForIssue(input, reactionsListForIssueResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70815,15 +69466,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const reactionsCreateForIssueResponseValidator = responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reactionsCreateForIssue", "/repos/:owner/:repo/issues/:issue_number/reactions", @@ -70843,23 +69485,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForIssue(input, responder, ctx) + .reactionsCreateForIssue(input, reactionsCreateForIssueResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70880,11 +69507,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reaction_id: z.coerce.number(), }) - const reactionsDeleteForIssueResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "reactionsDeleteForIssue", "/repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id", @@ -70900,17 +69522,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsDeleteForIssue(input, responder, ctx) + .reactionsDeleteForIssue(input, reactionsDeleteForIssueResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70934,15 +69547,6 @@ export function createRouter(implementation: Implementation): KoaRouter { sub_issue_id: z.coerce.number(), }) - const issuesRemoveSubIssueResponseValidator = responseValidationFactory( - [ - ["200", s_issue], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "issuesRemoveSubIssue", "/repos/:owner/:repo/issues/:issue_number/sub_issue", @@ -70962,23 +69566,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesRemoveSubIssue(input, responder, ctx) + .issuesRemoveSubIssue(input, issuesRemoveSubIssueResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71003,15 +69592,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListSubIssuesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "issuesListSubIssues", "/repos/:owner/:repo/issues/:issue_number/sub_issues", @@ -71031,23 +69611,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListSubIssues(input, responder, ctx) + .issuesListSubIssues(input, issuesListSubIssuesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71072,17 +69637,6 @@ export function createRouter(implementation: Implementation): KoaRouter { replace_parent: PermissiveBoolean.optional(), }) - const issuesAddSubIssueResponseValidator = responseValidationFactory( - [ - ["201", s_issue], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "issuesAddSubIssue", "/repos/:owner/:repo/issues/:issue_number/sub_issues", @@ -71102,29 +69656,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesAddSubIssue(input, responder, ctx) + .issuesAddSubIssue(input, issuesAddSubIssueResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71150,24 +69683,6 @@ export function createRouter(implementation: Implementation): KoaRouter { before_id: z.coerce.number().optional(), }) - const issuesReprioritizeSubIssueResponseValidator = responseValidationFactory( - [ - ["200", s_issue], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.patch( "issuesReprioritizeSubIssue", "/repos/:owner/:repo/issues/:issue_number/sub_issues/priority", @@ -71187,33 +69702,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesReprioritizeSubIssue(input, responder, ctx) + .issuesReprioritizeSubIssue( + input, + issuesReprioritizeSubIssueResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71238,16 +69732,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListEventsForTimelineResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_timeline_issue_events)], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, - ) - router.get( "issuesListEventsForTimeline", "/repos/:owner/:repo/issues/:issue_number/timeline", @@ -71267,23 +69751,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListEventsForTimeline(input, responder, ctx) + .issuesListEventsForTimeline( + input, + issuesListEventsForTimelineResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71307,11 +69780,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListDeployKeysResponseValidator = responseValidationFactory( - [["200", z.array(s_deploy_key)]], - undefined, - ) - router.get( "reposListDeployKeys", "/repos/:owner/:repo/keys", @@ -71331,17 +69799,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListDeployKeys(input, responder, ctx) + .reposListDeployKeys(input, reposListDeployKeysResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71366,14 +69825,6 @@ export function createRouter(implementation: Implementation): KoaRouter { read_only: PermissiveBoolean.optional(), }) - const reposCreateDeployKeyResponseValidator = responseValidationFactory( - [ - ["201", s_deploy_key], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateDeployKey", "/repos/:owner/:repo/keys", @@ -71393,20 +69844,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateDeployKey(input, responder, ctx) + .reposCreateDeployKey(input, reposCreateDeployKeyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71426,14 +69865,6 @@ export function createRouter(implementation: Implementation): KoaRouter { key_id: z.coerce.number(), }) - const reposGetDeployKeyResponseValidator = responseValidationFactory( - [ - ["200", s_deploy_key], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetDeployKey", "/repos/:owner/:repo/keys/:key_id", @@ -71449,20 +69880,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetDeployKey(input, responder, ctx) + .reposGetDeployKey(input, reposGetDeployKeyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71482,11 +69901,6 @@ export function createRouter(implementation: Implementation): KoaRouter { key_id: z.coerce.number(), }) - const reposDeleteDeployKeyResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "reposDeleteDeployKey", "/repos/:owner/:repo/keys/:key_id", @@ -71502,17 +69916,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteDeployKey(input, responder, ctx) + .reposDeleteDeployKey(input, reposDeleteDeployKeyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71536,14 +69941,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListLabelsForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesListLabelsForRepo", "/repos/:owner/:repo/labels", @@ -71563,20 +69960,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListLabelsForRepo(input, responder, ctx) + .issuesListLabelsForRepo(input, issuesListLabelsForRepoResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71601,15 +69986,6 @@ export function createRouter(implementation: Implementation): KoaRouter { description: z.string().optional(), }) - const issuesCreateLabelResponseValidator = responseValidationFactory( - [ - ["201", s_label], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "issuesCreateLabel", "/repos/:owner/:repo/labels", @@ -71629,23 +70005,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesCreateLabel(input, responder, ctx) + .issuesCreateLabel(input, issuesCreateLabelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71665,14 +70026,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const issuesGetLabelResponseValidator = responseValidationFactory( - [ - ["200", s_label], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesGetLabel", "/repos/:owner/:repo/labels/:name", @@ -71688,20 +70041,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesGetLabel(input, responder, ctx) + .issuesGetLabel(input, issuesGetLabelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71729,11 +70070,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const issuesUpdateLabelResponseValidator = responseValidationFactory( - [["200", s_label]], - undefined, - ) - router.patch( "issuesUpdateLabel", "/repos/:owner/:repo/labels/:name", @@ -71753,17 +70089,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesUpdateLabel(input, responder, ctx) + .issuesUpdateLabel(input, issuesUpdateLabelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71783,11 +70110,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string(), }) - const issuesDeleteLabelResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "issuesDeleteLabel", "/repos/:owner/:repo/labels/:name", @@ -71803,17 +70125,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesDeleteLabel(input, responder, ctx) + .issuesDeleteLabel(input, issuesDeleteLabelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71832,11 +70145,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposListLanguagesResponseValidator = responseValidationFactory( - [["200", s_language]], - undefined, - ) - router.get( "reposListLanguages", "/repos/:owner/:repo/languages", @@ -71852,17 +70160,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListLanguages(input, responder, ctx) + .reposListLanguages(input, reposListLanguagesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71885,14 +70184,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: s_code_scanning_ref.optional(), }) - const licensesGetForRepoResponseValidator = responseValidationFactory( - [ - ["200", s_license_content], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "licensesGetForRepo", "/repos/:owner/:repo/license", @@ -71912,20 +70203,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .licensesGetForRepo(input, responder, ctx) + .licensesGetForRepo(input, licensesGetForRepoResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71946,15 +70225,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposMergeUpstreamBodySchema = z.object({ branch: z.string() }) - const reposMergeUpstreamResponseValidator = responseValidationFactory( - [ - ["200", s_merged_upstream], - ["409", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.post( "reposMergeUpstream", "/repos/:owner/:repo/merge-upstream", @@ -71974,23 +70244,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposMergeUpstream(input, responder, ctx) + .reposMergeUpstream(input, reposMergeUpstreamResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72015,18 +70270,6 @@ export function createRouter(implementation: Implementation): KoaRouter { commit_message: z.string().optional(), }) - const reposMergeResponseValidator = responseValidationFactory( - [ - ["201", s_commit], - ["204", z.undefined()], - ["403", s_basic_error], - ["404", z.undefined()], - ["409", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.post("reposMerge", "/repos/:owner/:repo/merges", async (ctx, next) => { const input = { params: parseRequestInput( @@ -72043,32 +70286,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposMerge(input, responder, ctx) + .reposMerge(input, reposMergeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72094,14 +70313,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListMilestonesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_milestone)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesListMilestones", "/repos/:owner/:repo/milestones", @@ -72121,20 +70332,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListMilestones(input, responder, ctx) + .issuesListMilestones(input, issuesListMilestonesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72160,15 +70359,6 @@ export function createRouter(implementation: Implementation): KoaRouter { due_on: z.string().datetime({ offset: true }).optional(), }) - const issuesCreateMilestoneResponseValidator = responseValidationFactory( - [ - ["201", s_milestone], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "issuesCreateMilestone", "/repos/:owner/:repo/milestones", @@ -72188,23 +70378,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesCreateMilestone(input, responder, ctx) + .issuesCreateMilestone(input, issuesCreateMilestoneResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72224,14 +70399,6 @@ export function createRouter(implementation: Implementation): KoaRouter { milestone_number: z.coerce.number(), }) - const issuesGetMilestoneResponseValidator = responseValidationFactory( - [ - ["200", s_milestone], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesGetMilestone", "/repos/:owner/:repo/milestones/:milestone_number", @@ -72247,20 +70414,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesGetMilestone(input, responder, ctx) + .issuesGetMilestone(input, issuesGetMilestoneResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72289,11 +70444,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const issuesUpdateMilestoneResponseValidator = responseValidationFactory( - [["200", s_milestone]], - undefined, - ) - router.patch( "issuesUpdateMilestone", "/repos/:owner/:repo/milestones/:milestone_number", @@ -72313,17 +70463,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesUpdateMilestone(input, responder, ctx) + .issuesUpdateMilestone(input, issuesUpdateMilestoneResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72343,14 +70484,6 @@ export function createRouter(implementation: Implementation): KoaRouter { milestone_number: z.coerce.number(), }) - const issuesDeleteMilestoneResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "issuesDeleteMilestone", "/repos/:owner/:repo/milestones/:milestone_number", @@ -72366,20 +70499,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesDeleteMilestone(input, responder, ctx) + .issuesDeleteMilestone(input, issuesDeleteMilestoneResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72404,9 +70525,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListLabelsForMilestoneResponseValidator = - responseValidationFactory([["200", z.array(s_label)]], undefined) - router.get( "issuesListLabelsForMilestone", "/repos/:owner/:repo/milestones/:milestone_number/labels", @@ -72426,17 +70544,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListLabelsForMilestone(input, responder, ctx) + .issuesListLabelsForMilestone( + input, + issuesListLabelsForMilestoneResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72465,9 +70578,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const activityListRepoNotificationsForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", z.array(s_thread)]], undefined) - router.get( "activityListRepoNotificationsForAuthenticatedUser", "/repos/:owner/:repo/notifications", @@ -72487,19 +70597,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .activityListRepoNotificationsForAuthenticatedUser( input, - responder, + activityListRepoNotificationsForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -72528,21 +70629,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ last_read_at: z.string().datetime({ offset: true }).optional() }) .optional() - const activityMarkRepoNotificationsAsReadResponseValidator = - responseValidationFactory( - [ - [ - "202", - z.object({ - message: z.string().optional(), - url: z.string().optional(), - }), - ], - ["205", z.undefined()], - ], - undefined, - ) - router.put( "activityMarkRepoNotificationsAsRead", "/repos/:owner/:repo/notifications", @@ -72562,23 +70648,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - message?: string - url?: string - }>(202) - }, - with205() { - return new KoaRuntimeResponse(205) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityMarkRepoNotificationsAsRead(input, responder, ctx) + .activityMarkRepoNotificationsAsRead( + input, + activityMarkRepoNotificationsAsReadResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72600,14 +70675,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetPagesResponseValidator = responseValidationFactory( - [ - ["200", s_page], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetPages", "/repos/:owner/:repo/pages", @@ -72623,20 +70690,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetPages(input, responder, ctx) + .reposGetPages(input, reposGetPagesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72667,15 +70722,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .nullable() - const reposCreatePagesSiteResponseValidator = responseValidationFactory( - [ - ["201", s_page], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreatePagesSite", "/repos/:owner/:repo/pages", @@ -72695,23 +70741,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreatePagesSite(input, responder, ctx) + .reposCreatePagesSite(input, reposCreatePagesSiteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72742,17 +70773,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const reposUpdateInformationAboutPagesSiteResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "reposUpdateInformationAboutPagesSite", "/repos/:owner/:repo/pages", @@ -72772,26 +70792,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateInformationAboutPagesSite(input, responder, ctx) + .reposUpdateInformationAboutPagesSite( + input, + reposUpdateInformationAboutPagesSiteResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72813,16 +70819,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposDeletePagesSiteResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "reposDeletePagesSite", "/repos/:owner/:repo/pages", @@ -72838,26 +70834,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeletePagesSite(input, responder, ctx) + .reposDeletePagesSite(input, reposDeletePagesSiteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72881,11 +70859,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListPagesBuildsResponseValidator = responseValidationFactory( - [["200", z.array(s_page_build)]], - undefined, - ) - router.get( "reposListPagesBuilds", "/repos/:owner/:repo/pages/builds", @@ -72905,17 +70878,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListPagesBuilds(input, responder, ctx) + .reposListPagesBuilds(input, reposListPagesBuildsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72934,11 +70898,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposRequestPagesBuildResponseValidator = responseValidationFactory( - [["201", s_page_build_status]], - undefined, - ) - router.post( "reposRequestPagesBuild", "/repos/:owner/:repo/pages/builds", @@ -72954,17 +70913,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposRequestPagesBuild(input, responder, ctx) + .reposRequestPagesBuild(input, reposRequestPagesBuildResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72983,11 +70933,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetLatestPagesBuildResponseValidator = responseValidationFactory( - [["200", s_page_build]], - undefined, - ) - router.get( "reposGetLatestPagesBuild", "/repos/:owner/:repo/pages/builds/latest", @@ -73003,17 +70948,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetLatestPagesBuild(input, responder, ctx) + .reposGetLatestPagesBuild(input, reposGetLatestPagesBuildResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73033,11 +70969,6 @@ export function createRouter(implementation: Implementation): KoaRouter { build_id: z.coerce.number(), }) - const reposGetPagesBuildResponseValidator = responseValidationFactory( - [["200", s_page_build]], - undefined, - ) - router.get( "reposGetPagesBuild", "/repos/:owner/:repo/pages/builds/:build_id", @@ -73053,17 +70984,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetPagesBuild(input, responder, ctx) + .reposGetPagesBuild(input, reposGetPagesBuildResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73090,16 +71012,6 @@ export function createRouter(implementation: Implementation): KoaRouter { oidc_token: z.string(), }) - const reposCreatePagesDeploymentResponseValidator = responseValidationFactory( - [ - ["200", s_page_deployment], - ["400", s_scim_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreatePagesDeployment", "/repos/:owner/:repo/pages/deployments", @@ -73119,26 +71031,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreatePagesDeployment(input, responder, ctx) + .reposCreatePagesDeployment( + input, + reposCreatePagesDeploymentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73158,14 +71056,6 @@ export function createRouter(implementation: Implementation): KoaRouter { pages_deployment_id: z.union([z.coerce.number(), z.string()]), }) - const reposGetPagesDeploymentResponseValidator = responseValidationFactory( - [ - ["200", s_pages_deployment_status], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetPagesDeployment", "/repos/:owner/:repo/pages/deployments/:pages_deployment_id", @@ -73181,20 +71071,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetPagesDeployment(input, responder, ctx) + .reposGetPagesDeployment(input, reposGetPagesDeploymentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73214,14 +71092,6 @@ export function createRouter(implementation: Implementation): KoaRouter { pages_deployment_id: z.union([z.coerce.number(), z.string()]), }) - const reposCancelPagesDeploymentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "reposCancelPagesDeployment", "/repos/:owner/:repo/pages/deployments/:pages_deployment_id/cancel", @@ -73237,20 +71107,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCancelPagesDeployment(input, responder, ctx) + .reposCancelPagesDeployment( + input, + reposCancelPagesDeploymentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73269,17 +71131,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetPagesHealthCheckResponseValidator = responseValidationFactory( - [ - ["200", s_pages_health_check], - ["202", s_empty_object], - ["400", z.undefined()], - ["404", s_basic_error], - ["422", z.undefined()], - ], - undefined, - ) - router.get( "reposGetPagesHealthCheck", "/repos/:owner/:repo/pages/health", @@ -73295,29 +71146,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with202() { - return new KoaRuntimeResponse(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetPagesHealthCheck(input, responder, ctx) + .reposGetPagesHealthCheck(input, reposGetPagesHealthCheckResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73336,15 +71166,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposCheckPrivateVulnerabilityReportingResponseValidator = - responseValidationFactory( - [ - ["200", z.object({ enabled: PermissiveBoolean })], - ["422", s_scim_error], - ], - undefined, - ) - router.get( "reposCheckPrivateVulnerabilityReporting", "/repos/:owner/:repo/private-vulnerability-reporting", @@ -73360,22 +71181,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - enabled: boolean - }>(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCheckPrivateVulnerabilityReporting(input, responder, ctx) + .reposCheckPrivateVulnerabilityReporting( + input, + reposCheckPrivateVulnerabilityReportingResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73397,15 +71208,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposEnablePrivateVulnerabilityReportingResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_scim_error], - ], - undefined, - ) - router.put( "reposEnablePrivateVulnerabilityReporting", "/repos/:owner/:repo/private-vulnerability-reporting", @@ -73421,20 +71223,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposEnablePrivateVulnerabilityReporting(input, responder, ctx) + .reposEnablePrivateVulnerabilityReporting( + input, + reposEnablePrivateVulnerabilityReportingResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73456,15 +71250,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposDisablePrivateVulnerabilityReportingResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_scim_error], - ], - undefined, - ) - router.delete( "reposDisablePrivateVulnerabilityReporting", "/repos/:owner/:repo/private-vulnerability-reporting", @@ -73480,20 +71265,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDisablePrivateVulnerabilityReporting(input, responder, ctx) + .reposDisablePrivateVulnerabilityReporting( + input, + reposDisablePrivateVulnerabilityReportingResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73521,18 +71298,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const projectsListForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project)], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.get( "projectsListForRepo", "/repos/:owner/:repo/projects", @@ -73552,32 +71317,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsListForRepo(input, responder, ctx) + .projectsListForRepo(input, projectsListForRepoResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73601,18 +71342,6 @@ export function createRouter(implementation: Implementation): KoaRouter { body: z.string().optional(), }) - const projectsCreateForRepoResponseValidator = responseValidationFactory( - [ - ["201", s_project], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "projectsCreateForRepo", "/repos/:owner/:repo/projects", @@ -73632,32 +71361,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with410() { - return new KoaRuntimeResponse(410) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsCreateForRepo(input, responder, ctx) + .projectsCreateForRepo(input, projectsCreateForRepoResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73676,16 +71381,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetCustomPropertiesValuesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_custom_property_value)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetCustomPropertiesValues", "/repos/:owner/:repo/properties/values", @@ -73701,23 +71396,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCustomPropertiesValues(input, responder, ctx) + .reposGetCustomPropertiesValues( + input, + reposGetCustomPropertiesValuesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73740,17 +71424,6 @@ export function createRouter(implementation: Implementation): KoaRouter { properties: z.array(s_custom_property_value), }) - const reposCreateOrUpdateCustomPropertiesValuesResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "reposCreateOrUpdateCustomPropertiesValues", "/repos/:owner/:repo/properties/values", @@ -73770,26 +71443,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateOrUpdateCustomPropertiesValues(input, responder, ctx) + .reposCreateOrUpdateCustomPropertiesValues( + input, + reposCreateOrUpdateCustomPropertiesValuesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73821,15 +71480,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const pullsListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_pull_request_simple)], - ["304", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.get("pullsList", "/repos/:owner/:repo/pulls", async (ctx, next) => { const input = { params: parseRequestInput( @@ -73846,23 +71496,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsList(input, responder, ctx) + .pullsList(input, pullsListResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73891,15 +71526,6 @@ export function createRouter(implementation: Implementation): KoaRouter { issue: z.coerce.number().optional(), }) - const pullsCreateResponseValidator = responseValidationFactory( - [ - ["201", s_pull_request], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post("pullsCreate", "/repos/:owner/:repo/pulls", async (ctx, next) => { const input = { params: parseRequestInput( @@ -73916,23 +71542,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsCreate(input, responder, ctx) + .pullsCreate(input, pullsCreateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73958,12 +71569,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const pullsListReviewCommentsForRepoResponseValidator = - responseValidationFactory( - [["200", z.array(s_pull_request_review_comment)]], - undefined, - ) - router.get( "pullsListReviewCommentsForRepo", "/repos/:owner/:repo/pulls/comments", @@ -73983,17 +71588,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsListReviewCommentsForRepo(input, responder, ctx) + .pullsListReviewCommentsForRepo( + input, + pullsListReviewCommentsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74013,14 +71613,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_id: z.coerce.number(), }) - const pullsGetReviewCommentResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review_comment], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "pullsGetReviewComment", "/repos/:owner/:repo/pulls/comments/:comment_id", @@ -74036,20 +71628,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsGetReviewComment(input, responder, ctx) + .pullsGetReviewComment(input, pullsGetReviewCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74071,11 +71651,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const pullsUpdateReviewCommentBodySchema = z.object({ body: z.string() }) - const pullsUpdateReviewCommentResponseValidator = responseValidationFactory( - [["200", s_pull_request_review_comment]], - undefined, - ) - router.patch( "pullsUpdateReviewComment", "/repos/:owner/:repo/pulls/comments/:comment_id", @@ -74095,17 +71670,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsUpdateReviewComment(input, responder, ctx) + .pullsUpdateReviewComment(input, pullsUpdateReviewCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74125,14 +71691,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_id: z.coerce.number(), }) - const pullsDeleteReviewCommentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "pullsDeleteReviewComment", "/repos/:owner/:repo/pulls/comments/:comment_id", @@ -74148,20 +71706,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsDeleteReviewComment(input, responder, ctx) + .pullsDeleteReviewComment(input, pullsDeleteReviewCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74198,15 +71744,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForPullRequestReviewCommentResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reactionsListForPullRequestReviewComment", "/repos/:owner/:repo/pulls/comments/:comment_id/reactions", @@ -74226,20 +71763,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForPullRequestReviewComment(input, responder, ctx) + .reactionsListForPullRequestReviewComment( + input, + reactionsListForPullRequestReviewCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74275,16 +71804,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const reactionsCreateForPullRequestReviewCommentResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reactionsCreateForPullRequestReviewComment", "/repos/:owner/:repo/pulls/comments/:comment_id/reactions", @@ -74304,23 +71823,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForPullRequestReviewComment(input, responder, ctx) + .reactionsCreateForPullRequestReviewComment( + input, + reactionsCreateForPullRequestReviewCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74344,9 +71852,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reaction_id: z.coerce.number(), }) - const reactionsDeleteForPullRequestCommentResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reactionsDeleteForPullRequestComment", "/repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id", @@ -74362,17 +71867,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsDeleteForPullRequestComment(input, responder, ctx) + .reactionsDeleteForPullRequestComment( + input, + reactionsDeleteForPullRequestCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74395,25 +71895,6 @@ export function createRouter(implementation: Implementation): KoaRouter { pull_number: z.coerce.number(), }) - const pullsGetResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request], - ["304", z.undefined()], - ["404", s_basic_error], - ["406", s_basic_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "pullsGet", "/repos/:owner/:repo/pulls/:pull_number", @@ -74429,36 +71910,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with406() { - return new KoaRuntimeResponse(406) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsGet(input, responder, ctx) + .pullsGet(input, pullsGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74488,15 +71941,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const pullsUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "pullsUpdate", "/repos/:owner/:repo/pulls/:pull_number", @@ -74516,23 +71960,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsUpdate(input, responder, ctx) + .pullsUpdate(input, pullsUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74569,26 +71998,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .nullable() - const codespacesCreateWithPrForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_codespace], - ["202", s_codespace], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "codespacesCreateWithPrForAuthenticatedUser", "/repos/:owner/:repo/pulls/:pull_number/codespaces", @@ -74608,36 +72017,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with202() { - return new KoaRuntimeResponse(202) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesCreateWithPrForAuthenticatedUser(input, responder, ctx) + .codespacesCreateWithPrForAuthenticatedUser( + input, + codespacesCreateWithPrForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74668,11 +72053,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const pullsListReviewCommentsResponseValidator = responseValidationFactory( - [["200", z.array(s_pull_request_review_comment)]], - undefined, - ) - router.get( "pullsListReviewComments", "/repos/:owner/:repo/pulls/:pull_number/comments", @@ -74692,17 +72072,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsListReviewComments(input, responder, ctx) + .pullsListReviewComments(input, pullsListReviewCommentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74735,15 +72106,6 @@ export function createRouter(implementation: Implementation): KoaRouter { subject_type: z.enum(["line", "file"]).optional(), }) - const pullsCreateReviewCommentResponseValidator = responseValidationFactory( - [ - ["201", s_pull_request_review_comment], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "pullsCreateReviewComment", "/repos/:owner/:repo/pulls/:pull_number/comments", @@ -74763,23 +72125,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsCreateReviewComment(input, responder, ctx) + .pullsCreateReviewComment(input, pullsCreateReviewCommentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74804,15 +72151,6 @@ export function createRouter(implementation: Implementation): KoaRouter { body: z.string(), }) - const pullsCreateReplyForReviewCommentResponseValidator = - responseValidationFactory( - [ - ["201", s_pull_request_review_comment], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "pullsCreateReplyForReviewComment", "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies", @@ -74832,20 +72170,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsCreateReplyForReviewComment(input, responder, ctx) + .pullsCreateReplyForReviewComment( + input, + pullsCreateReplyForReviewCommentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74870,11 +72200,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const pullsListCommitsResponseValidator = responseValidationFactory( - [["200", z.array(s_commit)]], - undefined, - ) - router.get( "pullsListCommits", "/repos/:owner/:repo/pulls/:pull_number/commits", @@ -74894,17 +72219,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsListCommits(input, responder, ctx) + .pullsListCommits(input, pullsListCommitsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74929,23 +72245,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const pullsListFilesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_diff_entry)], - ["422", s_validation_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "pullsListFiles", "/repos/:owner/:repo/pulls/:pull_number/files", @@ -74965,30 +72264,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsListFiles(input, responder, ctx) + .pullsListFiles(input, pullsListFilesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75008,14 +72285,6 @@ export function createRouter(implementation: Implementation): KoaRouter { pull_number: z.coerce.number(), }) - const pullsCheckIfMergedResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "pullsCheckIfMerged", "/repos/:owner/:repo/pulls/:pull_number/merge", @@ -75031,20 +72300,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsCheckIfMerged(input, responder, ctx) + .pullsCheckIfMerged(input, pullsCheckIfMergedResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75074,30 +72331,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const pullsMergeResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_merge_result], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "405", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - [ - "409", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "pullsMerge", "/repos/:owner/:repo/pulls/:pull_number/merge", @@ -75117,38 +72350,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with405() { - return new KoaRuntimeResponse<{ - documentation_url?: string - message?: string - }>(405) - }, - with409() { - return new KoaRuntimeResponse<{ - documentation_url?: string - message?: string - }>(409) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsMerge(input, responder, ctx) + .pullsMerge(input, pullsMergeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75168,12 +72371,6 @@ export function createRouter(implementation: Implementation): KoaRouter { pull_number: z.coerce.number(), }) - const pullsListRequestedReviewersResponseValidator = - responseValidationFactory( - [["200", s_pull_request_review_request]], - undefined, - ) - router.get( "pullsListRequestedReviewers", "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers", @@ -75189,17 +72386,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsListRequestedReviewers(input, responder, ctx) + .pullsListRequestedReviewers( + input, + pullsListRequestedReviewersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75226,15 +72418,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const pullsRequestReviewersResponseValidator = responseValidationFactory( - [ - ["201", s_pull_request_simple], - ["403", s_basic_error], - ["422", z.undefined()], - ], - undefined, - ) - router.post( "pullsRequestReviewers", "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers", @@ -75254,23 +72437,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsRequestReviewers(input, responder, ctx) + .pullsRequestReviewers(input, pullsRequestReviewersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75295,15 +72463,6 @@ export function createRouter(implementation: Implementation): KoaRouter { team_reviewers: z.array(z.string()).optional(), }) - const pullsRemoveRequestedReviewersResponseValidator = - responseValidationFactory( - [ - ["200", s_pull_request_simple], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "pullsRemoveRequestedReviewers", "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers", @@ -75323,20 +72482,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsRemoveRequestedReviewers(input, responder, ctx) + .pullsRemoveRequestedReviewers( + input, + pullsRemoveRequestedReviewersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75361,11 +72512,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const pullsListReviewsResponseValidator = responseValidationFactory( - [["200", z.array(s_pull_request_review)]], - undefined, - ) - router.get( "pullsListReviews", "/repos/:owner/:repo/pulls/:pull_number/reviews", @@ -75385,17 +72531,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsListReviews(input, responder, ctx) + .pullsListReviews(input, pullsListReviewsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75436,15 +72573,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const pullsCreateReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["403", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "pullsCreateReview", "/repos/:owner/:repo/pulls/:pull_number/reviews", @@ -75464,23 +72592,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsCreateReview(input, responder, ctx) + .pullsCreateReview(input, pullsCreateReviewResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75501,14 +72614,6 @@ export function createRouter(implementation: Implementation): KoaRouter { review_id: z.coerce.number(), }) - const pullsGetReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "pullsGetReview", "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id", @@ -75524,20 +72629,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsGetReview(input, responder, ctx) + .pullsGetReview(input, pullsGetReviewResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75560,14 +72653,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const pullsUpdateReviewBodySchema = z.object({ body: z.string() }) - const pullsUpdateReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.put( "pullsUpdateReview", "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id", @@ -75587,20 +72672,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsUpdateReview(input, responder, ctx) + .pullsUpdateReview(input, pullsUpdateReviewResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75621,15 +72694,6 @@ export function createRouter(implementation: Implementation): KoaRouter { review_id: z.coerce.number(), }) - const pullsDeletePendingReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.delete( "pullsDeletePendingReview", "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id", @@ -75645,23 +72709,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsDeletePendingReview(input, responder, ctx) + .pullsDeletePendingReview(input, pullsDeletePendingReviewResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75687,14 +72736,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const pullsListCommentsForReviewResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_review_comment)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "pullsListCommentsForReview", "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments", @@ -75714,20 +72755,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsListCommentsForReview(input, responder, ctx) + .pullsListCommentsForReview( + input, + pullsListCommentsForReviewResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75753,15 +72786,6 @@ export function createRouter(implementation: Implementation): KoaRouter { event: z.enum(["DISMISS"]).optional(), }) - const pullsDismissReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.put( "pullsDismissReview", "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals", @@ -75781,23 +72805,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsDismissReview(input, responder, ctx) + .pullsDismissReview(input, pullsDismissReviewResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75823,16 +72832,6 @@ export function createRouter(implementation: Implementation): KoaRouter { event: z.enum(["APPROVE", "REQUEST_CHANGES", "COMMENT"]), }) - const pullsSubmitReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "pullsSubmitReview", "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events", @@ -75852,26 +72851,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsSubmitReview(input, responder, ctx) + .pullsSubmitReview(input, pullsSubmitReviewResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75896,21 +72877,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .nullable() .optional() - const pullsUpdateBranchResponseValidator = responseValidationFactory( - [ - [ - "202", - z.object({ - message: z.string().optional(), - url: z.string().optional(), - }), - ], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "pullsUpdateBranch", "/repos/:owner/:repo/pulls/:pull_number/update-branch", @@ -75930,26 +72896,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - message?: string - url?: string - }>(202) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pullsUpdateBranch(input, responder, ctx) + .pullsUpdateBranch(input, pullsUpdateBranchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75970,16 +72918,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposGetReadmeQuerySchema = z.object({ ref: z.string().optional() }) - const reposGetReadmeResponseValidator = responseValidationFactory( - [ - ["200", s_content_file], - ["304", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "reposGetReadme", "/repos/:owner/:repo/readme", @@ -75999,26 +72937,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetReadme(input, responder, ctx) + .reposGetReadme(input, reposGetReadmeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76042,15 +72962,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string().optional(), }) - const reposGetReadmeInDirectoryResponseValidator = responseValidationFactory( - [ - ["200", s_content_file], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "reposGetReadmeInDirectory", "/repos/:owner/:repo/readme/:dir", @@ -76070,23 +72981,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetReadmeInDirectory(input, responder, ctx) + .reposGetReadmeInDirectory( + input, + reposGetReadmeInDirectoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76110,14 +73010,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListReleasesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_release)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListReleases", "/repos/:owner/:repo/releases", @@ -76137,20 +73029,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListReleases(input, responder, ctx) + .reposListReleases(input, reposListReleasesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76181,15 +73061,6 @@ export function createRouter(implementation: Implementation): KoaRouter { make_latest: z.enum(["true", "false", "legacy"]).optional().default("true"), }) - const reposCreateReleaseResponseValidator = responseValidationFactory( - [ - ["201", s_release], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateRelease", "/repos/:owner/:repo/releases", @@ -76209,23 +73080,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateRelease(input, responder, ctx) + .reposCreateRelease(input, reposCreateReleaseResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76245,15 +73101,6 @@ export function createRouter(implementation: Implementation): KoaRouter { asset_id: z.coerce.number(), }) - const reposGetReleaseAssetResponseValidator = responseValidationFactory( - [ - ["200", s_release_asset], - ["302", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetReleaseAsset", "/repos/:owner/:repo/releases/assets/:asset_id", @@ -76269,23 +73116,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with302() { - return new KoaRuntimeResponse(302) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetReleaseAsset(input, responder, ctx) + .reposGetReleaseAsset(input, reposGetReleaseAssetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76313,11 +73145,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdateReleaseAssetResponseValidator = responseValidationFactory( - [["200", s_release_asset]], - undefined, - ) - router.patch( "reposUpdateReleaseAsset", "/repos/:owner/:repo/releases/assets/:asset_id", @@ -76337,17 +73164,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateReleaseAsset(input, responder, ctx) + .reposUpdateReleaseAsset(input, reposUpdateReleaseAssetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76367,11 +73185,6 @@ export function createRouter(implementation: Implementation): KoaRouter { asset_id: z.coerce.number(), }) - const reposDeleteReleaseAssetResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "reposDeleteReleaseAsset", "/repos/:owner/:repo/releases/assets/:asset_id", @@ -76387,17 +73200,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteReleaseAsset(input, responder, ctx) + .reposDeleteReleaseAsset(input, reposDeleteReleaseAssetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76423,14 +73227,6 @@ export function createRouter(implementation: Implementation): KoaRouter { configuration_file_path: z.string().optional(), }) - const reposGenerateReleaseNotesResponseValidator = responseValidationFactory( - [ - ["200", s_release_notes_content], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "reposGenerateReleaseNotes", "/repos/:owner/:repo/releases/generate-notes", @@ -76450,20 +73246,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGenerateReleaseNotes(input, responder, ctx) + .reposGenerateReleaseNotes( + input, + reposGenerateReleaseNotesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76482,11 +73270,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetLatestReleaseResponseValidator = responseValidationFactory( - [["200", s_release]], - undefined, - ) - router.get( "reposGetLatestRelease", "/repos/:owner/:repo/releases/latest", @@ -76502,17 +73285,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetLatestRelease(input, responder, ctx) + .reposGetLatestRelease(input, reposGetLatestReleaseResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76532,14 +73306,6 @@ export function createRouter(implementation: Implementation): KoaRouter { tag: z.string(), }) - const reposGetReleaseByTagResponseValidator = responseValidationFactory( - [ - ["200", s_release], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetReleaseByTag", "/repos/:owner/:repo/releases/tags/:tag", @@ -76555,20 +73321,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetReleaseByTag(input, responder, ctx) + .reposGetReleaseByTag(input, reposGetReleaseByTagResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76588,14 +73342,6 @@ export function createRouter(implementation: Implementation): KoaRouter { release_id: z.coerce.number(), }) - const reposGetReleaseResponseValidator = responseValidationFactory( - [ - ["200", s_release], - ["401", z.undefined()], - ], - undefined, - ) - router.get( "reposGetRelease", "/repos/:owner/:repo/releases/:release_id", @@ -76611,20 +73357,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetRelease(input, responder, ctx) + .reposGetRelease(input, reposGetReleaseResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76660,14 +73394,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdateReleaseResponseValidator = responseValidationFactory( - [ - ["200", s_release], - ["404", s_basic_error], - ], - undefined, - ) - router.patch( "reposUpdateRelease", "/repos/:owner/:repo/releases/:release_id", @@ -76687,20 +73413,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateRelease(input, responder, ctx) + .reposUpdateRelease(input, reposUpdateReleaseResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76720,11 +73434,6 @@ export function createRouter(implementation: Implementation): KoaRouter { release_id: z.coerce.number(), }) - const reposDeleteReleaseResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "reposDeleteRelease", "/repos/:owner/:repo/releases/:release_id", @@ -76740,17 +73449,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteRelease(input, responder, ctx) + .reposDeleteRelease(input, reposDeleteReleaseResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76775,11 +73475,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListReleaseAssetsResponseValidator = responseValidationFactory( - [["200", z.array(s_release_asset)]], - undefined, - ) - router.get( "reposListReleaseAssets", "/repos/:owner/:repo/releases/:release_id/assets", @@ -76799,17 +73494,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListReleaseAssets(input, responder, ctx) + .reposListReleaseAssets(input, reposListReleaseAssetsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76836,14 +73522,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposUploadReleaseAssetBodySchema = z.string().optional() - const reposUploadReleaseAssetResponseValidator = responseValidationFactory( - [ - ["201", s_release_asset], - ["422", z.undefined()], - ], - undefined, - ) - router.post( "reposUploadReleaseAsset", "/repos/:owner/:repo/releases/:release_id/assets", @@ -76867,20 +73545,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUploadReleaseAsset(input, responder, ctx) + .reposUploadReleaseAsset(input, reposUploadReleaseAssetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76908,14 +73574,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForReleaseResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reactionsListForRelease", "/repos/:owner/:repo/releases/:release_id/reactions", @@ -76935,20 +73593,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForRelease(input, responder, ctx) + .reactionsListForRelease(input, reactionsListForReleaseResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76972,15 +73618,6 @@ export function createRouter(implementation: Implementation): KoaRouter { content: z.enum(["+1", "laugh", "heart", "hooray", "rocket", "eyes"]), }) - const reactionsCreateForReleaseResponseValidator = responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reactionsCreateForRelease", "/repos/:owner/:repo/releases/:release_id/reactions", @@ -77000,23 +73637,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForRelease(input, responder, ctx) + .reactionsCreateForRelease( + input, + reactionsCreateForReleaseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77037,11 +73663,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reaction_id: z.coerce.number(), }) - const reactionsDeleteForReleaseResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "reactionsDeleteForRelease", "/repos/:owner/:repo/releases/:release_id/reactions/:reaction_id", @@ -77057,17 +73678,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsDeleteForRelease(input, responder, ctx) + .reactionsDeleteForRelease( + input, + reactionsDeleteForReleaseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77092,11 +73708,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposGetBranchRulesResponseValidator = responseValidationFactory( - [["200", z.array(s_repository_rule_detailed)]], - undefined, - ) - router.get( "reposGetBranchRules", "/repos/:owner/:repo/rules/branches/:branch", @@ -77116,17 +73727,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetBranchRules(input, responder, ctx) + .reposGetBranchRules(input, reposGetBranchRulesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77152,15 +73754,6 @@ export function createRouter(implementation: Implementation): KoaRouter { targets: z.string().optional(), }) - const reposGetRepoRulesetsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_repository_ruleset)], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetRepoRulesets", "/repos/:owner/:repo/rulesets", @@ -77180,23 +73773,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetRepoRulesets(input, responder, ctx) + .reposGetRepoRulesets(input, reposGetRepoRulesetsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77224,15 +73802,6 @@ export function createRouter(implementation: Implementation): KoaRouter { rules: z.array(s_repository_rule).optional(), }) - const reposCreateRepoRulesetResponseValidator = responseValidationFactory( - [ - ["201", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "reposCreateRepoRuleset", "/repos/:owner/:repo/rulesets", @@ -77252,23 +73821,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateRepoRuleset(input, responder, ctx) + .reposCreateRepoRuleset(input, reposCreateRepoRulesetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77302,15 +73856,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposGetRepoRuleSuitesResponseValidator = responseValidationFactory( - [ - ["200", s_rule_suites], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetRepoRuleSuites", "/repos/:owner/:repo/rulesets/rule-suites", @@ -77330,23 +73875,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetRepoRuleSuites(input, responder, ctx) + .reposGetRepoRuleSuites(input, reposGetRepoRuleSuitesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77366,15 +73896,6 @@ export function createRouter(implementation: Implementation): KoaRouter { rule_suite_id: z.coerce.number(), }) - const reposGetRepoRuleSuiteResponseValidator = responseValidationFactory( - [ - ["200", s_rule_suite], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetRepoRuleSuite", "/repos/:owner/:repo/rulesets/rule-suites/:rule_suite_id", @@ -77390,23 +73911,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetRepoRuleSuite(input, responder, ctx) + .reposGetRepoRuleSuite(input, reposGetRepoRuleSuiteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77430,15 +73936,6 @@ export function createRouter(implementation: Implementation): KoaRouter { includes_parents: PermissiveBoolean.optional().default(true), }) - const reposGetRepoRulesetResponseValidator = responseValidationFactory( - [ - ["200", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetRepoRuleset", "/repos/:owner/:repo/rulesets/:ruleset_id", @@ -77458,23 +73955,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetRepoRuleset(input, responder, ctx) + .reposGetRepoRuleset(input, reposGetRepoRulesetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77505,15 +73987,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const reposUpdateRepoRulesetResponseValidator = responseValidationFactory( - [ - ["200", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.put( "reposUpdateRepoRuleset", "/repos/:owner/:repo/rulesets/:ruleset_id", @@ -77533,23 +74006,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposUpdateRepoRuleset(input, responder, ctx) + .reposUpdateRepoRuleset(input, reposUpdateRepoRulesetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77569,15 +74027,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ruleset_id: z.coerce.number(), }) - const reposDeleteRepoRulesetResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteRepoRuleset", "/repos/:owner/:repo/rulesets/:ruleset_id", @@ -77593,23 +74042,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteRepoRuleset(input, responder, ctx) + .reposDeleteRepoRuleset(input, reposDeleteRepoRulesetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77634,15 +74068,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposGetRepoRulesetHistoryResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_ruleset_version)], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetRepoRulesetHistory", "/repos/:owner/:repo/rulesets/:ruleset_id/history", @@ -77662,23 +74087,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetRepoRulesetHistory(input, responder, ctx) + .reposGetRepoRulesetHistory( + input, + reposGetRepoRulesetHistoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77699,15 +74113,6 @@ export function createRouter(implementation: Implementation): KoaRouter { version_id: z.coerce.number(), }) - const reposGetRepoRulesetVersionResponseValidator = responseValidationFactory( - [ - ["200", s_ruleset_version_with_state], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "reposGetRepoRulesetVersion", "/repos/:owner/:repo/rulesets/:ruleset_id/history/:version_id", @@ -77723,23 +74128,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetRepoRulesetVersion(input, responder, ctx) + .reposGetRepoRulesetVersion( + input, + reposGetRepoRulesetVersionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77773,23 +74167,6 @@ export function createRouter(implementation: Implementation): KoaRouter { is_multi_repo: PermissiveBoolean.optional().default(false), }) - const secretScanningListAlertsForRepoResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_secret_scanning_alert)], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "secretScanningListAlertsForRepo", "/repos/:owner/:repo/secret-scanning/alerts", @@ -77809,27 +74186,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .secretScanningListAlertsForRepo(input, responder, ctx) + .secretScanningListAlertsForRepo( + input, + secretScanningListAlertsForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77849,23 +74211,6 @@ export function createRouter(implementation: Implementation): KoaRouter { alert_number: s_alert_number, }) - const secretScanningGetAlertResponseValidator = responseValidationFactory( - [ - ["200", s_secret_scanning_alert], - ["304", z.undefined()], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "secretScanningGetAlert", "/repos/:owner/:repo/secret-scanning/alerts/:alert_number", @@ -77881,30 +74226,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .secretScanningGetAlert(input, responder, ctx) + .secretScanningGetAlert(input, secretScanningGetAlertResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77930,24 +74253,6 @@ export function createRouter(implementation: Implementation): KoaRouter { resolution_comment: s_secret_scanning_alert_resolution_comment.optional(), }) - const secretScanningUpdateAlertResponseValidator = responseValidationFactory( - [ - ["200", s_secret_scanning_alert], - ["400", z.undefined()], - ["404", z.undefined()], - ["422", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.patch( "secretScanningUpdateAlert", "/repos/:owner/:repo/secret-scanning/alerts/:alert_number", @@ -77967,33 +74272,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .secretScanningUpdateAlert(input, responder, ctx) + .secretScanningUpdateAlert( + input, + secretScanningUpdateAlertResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78018,23 +74302,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const secretScanningListLocationsForAlertResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_secret_scanning_location)], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "secretScanningListLocationsForAlert", "/repos/:owner/:repo/secret-scanning/alerts/:alert_number/locations", @@ -78054,27 +74321,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .secretScanningListLocationsForAlert(input, responder, ctx) + .secretScanningListLocationsForAlert( + input, + secretScanningListLocationsForAlertResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78101,25 +74353,6 @@ export function createRouter(implementation: Implementation): KoaRouter { placeholder_id: s_secret_scanning_push_protection_bypass_placeholder_id, }) - const secretScanningCreatePushProtectionBypassResponseValidator = - responseValidationFactory( - [ - ["200", s_secret_scanning_push_protection_bypass], - ["403", z.undefined()], - ["404", z.undefined()], - ["422", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "secretScanningCreatePushProtectionBypass", "/repos/:owner/:repo/secret-scanning/push-protection-bypasses", @@ -78139,35 +74372,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .secretScanningCreatePushProtectionBypass(input, responder, ctx) + .secretScanningCreatePushProtectionBypass( + input, + secretScanningCreatePushProtectionBypassResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78189,23 +74399,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const secretScanningGetScanHistoryResponseValidator = - responseValidationFactory( - [ - ["200", s_secret_scanning_scan_history], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "secretScanningGetScanHistory", "/repos/:owner/:repo/secret-scanning/scan-history", @@ -78221,27 +74414,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .secretScanningGetScanHistory(input, responder, ctx) + .secretScanningGetScanHistory( + input, + secretScanningGetScanHistoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78272,16 +74450,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: z.enum(["triage", "draft", "published", "closed"]).optional(), }) - const securityAdvisoriesListRepositoryAdvisoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_repository_advisory)], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "securityAdvisoriesListRepositoryAdvisories", "/repos/:owner/:repo/security-advisories", @@ -78301,23 +74469,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .securityAdvisoriesListRepositoryAdvisories(input, responder, ctx) + .securityAdvisoriesListRepositoryAdvisories( + input, + securityAdvisoriesListRepositoryAdvisoriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78342,17 +74499,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const securityAdvisoriesCreateRepositoryAdvisoryBodySchema = s_repository_advisory_create - const securityAdvisoriesCreateRepositoryAdvisoryResponseValidator = - responseValidationFactory( - [ - ["201", s_repository_advisory], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "securityAdvisoriesCreateRepositoryAdvisory", "/repos/:owner/:repo/security-advisories", @@ -78372,26 +74518,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .securityAdvisoriesCreateRepositoryAdvisory(input, responder, ctx) + .securityAdvisoriesCreateRepositoryAdvisory( + input, + securityAdvisoriesCreateRepositoryAdvisoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78414,17 +74546,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const securityAdvisoriesCreatePrivateVulnerabilityReportBodySchema = s_private_vulnerability_report_create - const securityAdvisoriesCreatePrivateVulnerabilityReportResponseValidator = - responseValidationFactory( - [ - ["201", s_repository_advisory], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "securityAdvisoriesCreatePrivateVulnerabilityReport", "/repos/:owner/:repo/security-advisories/reports", @@ -78444,28 +74565,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .securityAdvisoriesCreatePrivateVulnerabilityReport( input, - responder, + securityAdvisoriesCreatePrivateVulnerabilityReportResponder, ctx, ) .catch((err) => { @@ -78491,16 +74594,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ghsa_id: z.string(), }) - const securityAdvisoriesGetRepositoryAdvisoryResponseValidator = - responseValidationFactory( - [ - ["200", s_repository_advisory], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "securityAdvisoriesGetRepositoryAdvisory", "/repos/:owner/:repo/security-advisories/:ghsa_id", @@ -78516,23 +74609,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .securityAdvisoriesGetRepositoryAdvisory(input, responder, ctx) + .securityAdvisoriesGetRepositoryAdvisory( + input, + securityAdvisoriesGetRepositoryAdvisoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78558,17 +74640,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const securityAdvisoriesUpdateRepositoryAdvisoryBodySchema = s_repository_advisory_update - const securityAdvisoriesUpdateRepositoryAdvisoryResponseValidator = - responseValidationFactory( - [ - ["200", s_repository_advisory], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "securityAdvisoriesUpdateRepositoryAdvisory", "/repos/:owner/:repo/security-advisories/:ghsa_id", @@ -78588,26 +74659,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .securityAdvisoriesUpdateRepositoryAdvisory(input, responder, ctx) + .securityAdvisoriesUpdateRepositoryAdvisory( + input, + securityAdvisoriesUpdateRepositoryAdvisoryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78627,18 +74684,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const securityAdvisoriesCreateRepositoryAdvisoryCveRequestParamSchema = z.object({ owner: z.string(), repo: z.string(), ghsa_id: z.string() }) - const securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "securityAdvisoriesCreateRepositoryAdvisoryCveRequest", "/repos/:owner/:repo/security-advisories/:ghsa_id/cve", @@ -78654,33 +74699,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .securityAdvisoriesCreateRepositoryAdvisoryCveRequest( input, - responder, + securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder, ctx, ) .catch((err) => { @@ -78706,18 +74728,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ghsa_id: z.string(), }) - const securityAdvisoriesCreateForkResponseValidator = - responseValidationFactory( - [ - ["202", s_full_repository], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "securityAdvisoriesCreateFork", "/repos/:owner/:repo/security-advisories/:ghsa_id/forks", @@ -78733,29 +74743,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .securityAdvisoriesCreateFork(input, responder, ctx) + .securityAdvisoriesCreateFork( + input, + securityAdvisoriesCreateForkResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78779,15 +74772,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListStargazersForRepoResponseValidator = - responseValidationFactory( - [ - ["200", z.union([z.array(s_simple_user), z.array(s_stargazer)])], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "activityListStargazersForRepo", "/repos/:owner/:repo/stargazers", @@ -78807,20 +74791,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListStargazersForRepo(input, responder, ctx) + .activityListStargazersForRepo( + input, + activityListStargazersForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78839,16 +74815,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetCodeFrequencyStatsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_code_frequency_stat)], - ["202", z.record(z.unknown())], - ["204", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.get( "reposGetCodeFrequencyStats", "/repos/:owner/:repo/stats/code_frequency", @@ -78864,28 +74830,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCodeFrequencyStats(input, responder, ctx) + .reposGetCodeFrequencyStats( + input, + reposGetCodeFrequencyStatsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78904,16 +74854,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetCommitActivityStatsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_commit_activity)], - ["202", z.record(z.unknown())], - ["204", z.undefined()], - ], - undefined, - ) - router.get( "reposGetCommitActivityStats", "/repos/:owner/:repo/stats/commit_activity", @@ -78929,25 +74869,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetCommitActivityStats(input, responder, ctx) + .reposGetCommitActivityStats( + input, + reposGetCommitActivityStatsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78966,15 +74893,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetContributorsStatsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_contributor_activity)], - ["202", z.record(z.unknown())], - ["204", z.undefined()], - ], - undefined, - ) - router.get( "reposGetContributorsStats", "/repos/:owner/:repo/stats/contributors", @@ -78990,25 +74908,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetContributorsStats(input, responder, ctx) + .reposGetContributorsStats( + input, + reposGetContributorsStatsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79027,14 +74932,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetParticipationStatsResponseValidator = responseValidationFactory( - [ - ["200", s_participation_stats], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetParticipationStats", "/repos/:owner/:repo/stats/participation", @@ -79050,20 +74947,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetParticipationStats(input, responder, ctx) + .reposGetParticipationStats( + input, + reposGetParticipationStatsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79082,14 +74971,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetPunchCardStatsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_code_frequency_stat)], - ["204", z.undefined()], - ], - undefined, - ) - router.get( "reposGetPunchCardStats", "/repos/:owner/:repo/stats/punch_card", @@ -79105,20 +74986,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetPunchCardStats(input, responder, ctx) + .reposGetPunchCardStats(input, reposGetPunchCardStatsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79145,11 +75014,6 @@ export function createRouter(implementation: Implementation): KoaRouter { context: z.string().optional().default("default"), }) - const reposCreateCommitStatusResponseValidator = responseValidationFactory( - [["201", s_status]], - undefined, - ) - router.post( "reposCreateCommitStatus", "/repos/:owner/:repo/statuses/:sha", @@ -79169,17 +75033,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateCommitStatus(input, responder, ctx) + .reposCreateCommitStatus(input, reposCreateCommitStatusResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79203,9 +75058,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListWatchersForRepoResponseValidator = - responseValidationFactory([["200", z.array(s_simple_user)]], undefined) - router.get( "activityListWatchersForRepo", "/repos/:owner/:repo/subscribers", @@ -79225,17 +75077,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListWatchersForRepo(input, responder, ctx) + .activityListWatchersForRepo( + input, + activityListWatchersForRepoResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79254,16 +75101,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const activityGetRepoSubscriptionResponseValidator = - responseValidationFactory( - [ - ["200", s_repository_subscription], - ["403", s_basic_error], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "activityGetRepoSubscription", "/repos/:owner/:repo/subscription", @@ -79279,23 +75116,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityGetRepoSubscription(input, responder, ctx) + .activityGetRepoSubscription( + input, + activityGetRepoSubscriptionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79321,9 +75147,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const activitySetRepoSubscriptionResponseValidator = - responseValidationFactory([["200", s_repository_subscription]], undefined) - router.put( "activitySetRepoSubscription", "/repos/:owner/:repo/subscription", @@ -79343,17 +75166,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activitySetRepoSubscription(input, responder, ctx) + .activitySetRepoSubscription( + input, + activitySetRepoSubscriptionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79372,9 +75190,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const activityDeleteRepoSubscriptionResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "activityDeleteRepoSubscription", "/repos/:owner/:repo/subscription", @@ -79390,17 +75205,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityDeleteRepoSubscription(input, responder, ctx) + .activityDeleteRepoSubscription( + input, + activityDeleteRepoSubscriptionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79424,11 +75234,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListTagsResponseValidator = responseValidationFactory( - [["200", z.array(s_tag)]], - undefined, - ) - router.get("reposListTags", "/repos/:owner/:repo/tags", async (ctx, next) => { const input = { params: parseRequestInput( @@ -79445,17 +75250,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListTags(input, responder, ctx) + .reposListTags(input, reposListTagsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79473,15 +75269,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposListTagProtectionResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_tag_protection)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListTagProtection", "/repos/:owner/:repo/tags/protection", @@ -79497,23 +75284,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListTagProtection(input, responder, ctx) + .reposListTagProtection(input, reposListTagProtectionResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79534,15 +75306,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const reposCreateTagProtectionBodySchema = z.object({ pattern: z.string() }) - const reposCreateTagProtectionResponseValidator = responseValidationFactory( - [ - ["201", s_tag_protection], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "reposCreateTagProtection", "/repos/:owner/:repo/tags/protection", @@ -79562,23 +75325,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateTagProtection(input, responder, ctx) + .reposCreateTagProtection(input, reposCreateTagProtectionResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79598,15 +75346,6 @@ export function createRouter(implementation: Implementation): KoaRouter { tag_protection_id: z.coerce.number(), }) - const reposDeleteTagProtectionResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeleteTagProtection", "/repos/:owner/:repo/tags/protection/:tag_protection_id", @@ -79622,23 +75361,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeleteTagProtection(input, responder, ctx) + .reposDeleteTagProtection(input, reposDeleteTagProtectionResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79658,9 +75382,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string(), }) - const reposDownloadTarballArchiveResponseValidator = - responseValidationFactory([["302", z.undefined()]], undefined) - router.get( "reposDownloadTarballArchive", "/repos/:owner/:repo/tarball/:ref", @@ -79676,17 +75397,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with302() { - return new KoaRuntimeResponse(302) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDownloadTarballArchive(input, responder, ctx) + .reposDownloadTarballArchive( + input, + reposDownloadTarballArchiveResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79710,14 +75426,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListTeamsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListTeams", "/repos/:owner/:repo/teams", @@ -79737,20 +75445,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListTeams(input, responder, ctx) + .reposListTeams(input, reposListTeamsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79774,14 +75470,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const reposGetAllTopicsResponseValidator = responseValidationFactory( - [ - ["200", s_topic], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposGetAllTopics", "/repos/:owner/:repo/topics", @@ -79801,20 +75489,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetAllTopics(input, responder, ctx) + .reposGetAllTopics(input, reposGetAllTopicsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79837,15 +75513,6 @@ export function createRouter(implementation: Implementation): KoaRouter { names: z.array(z.string()), }) - const reposReplaceAllTopicsResponseValidator = responseValidationFactory( - [ - ["200", s_topic], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.put( "reposReplaceAllTopics", "/repos/:owner/:repo/topics", @@ -79865,23 +75532,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposReplaceAllTopics(input, responder, ctx) + .reposReplaceAllTopics(input, reposReplaceAllTopicsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79904,14 +75556,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per: z.enum(["day", "week"]).optional().default("day"), }) - const reposGetClonesResponseValidator = responseValidationFactory( - [ - ["200", s_clone_traffic], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "reposGetClones", "/repos/:owner/:repo/traffic/clones", @@ -79931,20 +75575,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetClones(input, responder, ctx) + .reposGetClones(input, reposGetClonesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79963,14 +75595,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetTopPathsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_content_traffic)], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "reposGetTopPaths", "/repos/:owner/:repo/traffic/popular/paths", @@ -79986,20 +75610,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetTopPaths(input, responder, ctx) + .reposGetTopPaths(input, reposGetTopPathsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80018,14 +75630,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposGetTopReferrersResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_referrer_traffic)], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "reposGetTopReferrers", "/repos/:owner/:repo/traffic/popular/referrers", @@ -80041,20 +75645,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetTopReferrers(input, responder, ctx) + .reposGetTopReferrers(input, reposGetTopReferrersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80077,14 +75669,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per: z.enum(["day", "week"]).optional().default("day"), }) - const reposGetViewsResponseValidator = responseValidationFactory( - [ - ["200", s_view_traffic], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "reposGetViews", "/repos/:owner/:repo/traffic/views", @@ -80104,20 +75688,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposGetViews(input, responder, ctx) + .reposGetViews(input, reposGetViewsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80142,11 +75714,6 @@ export function createRouter(implementation: Implementation): KoaRouter { team_ids: z.array(z.coerce.number()).optional(), }) - const reposTransferResponseValidator = responseValidationFactory( - [["202", s_minimal_repository]], - undefined, - ) - router.post( "reposTransfer", "/repos/:owner/:repo/transfer", @@ -80166,17 +75733,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposTransfer(input, responder, ctx) + .reposTransfer(input, reposTransferResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80195,15 +75753,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposCheckVulnerabilityAlertsResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "reposCheckVulnerabilityAlerts", "/repos/:owner/:repo/vulnerability-alerts", @@ -80219,20 +75768,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCheckVulnerabilityAlerts(input, responder, ctx) + .reposCheckVulnerabilityAlerts( + input, + reposCheckVulnerabilityAlertsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80251,9 +75792,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposEnableVulnerabilityAlertsResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.put( "reposEnableVulnerabilityAlerts", "/repos/:owner/:repo/vulnerability-alerts", @@ -80269,17 +75807,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposEnableVulnerabilityAlerts(input, responder, ctx) + .reposEnableVulnerabilityAlerts( + input, + reposEnableVulnerabilityAlertsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80298,9 +75831,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const reposDisableVulnerabilityAlertsResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "reposDisableVulnerabilityAlerts", "/repos/:owner/:repo/vulnerability-alerts", @@ -80316,17 +75846,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDisableVulnerabilityAlerts(input, responder, ctx) + .reposDisableVulnerabilityAlerts( + input, + reposDisableVulnerabilityAlertsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80346,9 +75871,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ref: z.string(), }) - const reposDownloadZipballArchiveResponseValidator = - responseValidationFactory([["302", z.undefined()]], undefined) - router.get( "reposDownloadZipballArchive", "/repos/:owner/:repo/zipball/:ref", @@ -80364,17 +75886,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with302() { - return new KoaRuntimeResponse(302) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDownloadZipballArchive(input, responder, ctx) + .reposDownloadZipballArchive( + input, + reposDownloadZipballArchiveResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80401,11 +75918,6 @@ export function createRouter(implementation: Implementation): KoaRouter { private: PermissiveBoolean.optional().default(false), }) - const reposCreateUsingTemplateResponseValidator = responseValidationFactory( - [["201", s_full_repository]], - undefined, - ) - router.post( "reposCreateUsingTemplate", "/repos/:template_owner/:template_repo/generate", @@ -80425,17 +75937,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateUsingTemplate(input, responder, ctx) + .reposCreateUsingTemplate(input, reposCreateUsingTemplateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80453,15 +75956,6 @@ export function createRouter(implementation: Implementation): KoaRouter { since: z.coerce.number().optional(), }) - const reposListPublicResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["304", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - router.get("reposListPublic", "/repositories", async (ctx, next) => { const input = { params: undefined, @@ -80474,23 +75968,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListPublic(input, responder, ctx) + .reposListPublic(input, reposListPublicResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80511,31 +75990,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const searchCodeResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_code_search_result_item), - }), - ], - ["304", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get("searchCode", "/search/code", async (ctx, next) => { const input = { params: undefined, @@ -80548,37 +76002,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - incomplete_results: boolean - items: t_code_search_result_item[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .searchCode(input, responder, ctx) + .searchCode(input, searchCodeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80599,21 +76024,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const searchCommitsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_commit_search_result_item), - }), - ], - ["304", z.undefined()], - ], - undefined, - ) - router.get("searchCommits", "/search/commits", async (ctx, next) => { const input = { params: undefined, @@ -80626,24 +76036,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - incomplete_results: boolean - items: t_commit_search_result_item[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .searchCommits(input, responder, ctx) + .searchCommits(input, searchCommitsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80679,32 +76073,6 @@ export function createRouter(implementation: Implementation): KoaRouter { advanced_search: z.string().optional(), }) - const searchIssuesAndPullRequestsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_issue_search_result_item), - }), - ], - ["304", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get( "searchIssuesAndPullRequests", "/search/issues", @@ -80720,37 +76088,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - incomplete_results: boolean - items: t_issue_search_result_item[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .searchIssuesAndPullRequests(input, responder, ctx) + .searchIssuesAndPullRequests( + input, + searchIssuesAndPullRequestsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80773,24 +76116,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const searchLabelsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_label_search_result_item), - }), - ], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get("searchLabels", "/search/labels", async (ctx, next) => { const input = { params: undefined, @@ -80803,33 +76128,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - incomplete_results: boolean - items: t_label_search_result_item[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .searchLabels(input, responder, ctx) + .searchLabels(input, searchLabelsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80852,30 +76152,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const searchReposResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_repo_search_result_item), - }), - ], - ["304", z.undefined()], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get("searchRepos", "/search/repositories", async (ctx, next) => { const input = { params: undefined, @@ -80888,34 +76164,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - incomplete_results: boolean - items: t_repo_search_result_item[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .searchRepos(input, responder, ctx) + .searchRepos(input, searchReposResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80934,21 +76184,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const searchTopicsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_topic_search_result_item), - }), - ], - ["304", z.undefined()], - ], - undefined, - ) - router.get("searchTopics", "/search/topics", async (ctx, next) => { const input = { params: undefined, @@ -80961,24 +76196,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - incomplete_results: boolean - items: t_topic_search_result_item[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .searchTopics(input, responder, ctx) + .searchTopics(input, searchTopicsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -80999,30 +76218,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const searchUsersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_user_search_result_item), - }), - ], - ["304", z.undefined()], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.get("searchUsers", "/search/users", async (ctx, next) => { const input = { params: undefined, @@ -81035,34 +76230,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - incomplete_results: boolean - items: t_user_search_result_item[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .searchUsers(input, responder, ctx) + .searchUsers(input, searchUsersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81077,14 +76246,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const teamsGetLegacyParamSchema = z.object({ team_id: z.coerce.number() }) - const teamsGetLegacyResponseValidator = responseValidationFactory( - [ - ["200", s_team_full], - ["404", s_basic_error], - ], - undefined, - ) - router.get("teamsGetLegacy", "/teams/:team_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -81097,20 +76258,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetLegacy(input, responder, ctx) + .teamsGetLegacy(input, teamsGetLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81136,17 +76285,6 @@ export function createRouter(implementation: Implementation): KoaRouter { parent_team_id: z.coerce.number().nullable().optional(), }) - const teamsUpdateLegacyResponseValidator = responseValidationFactory( - [ - ["200", s_team_full], - ["201", s_team_full], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch("teamsUpdateLegacy", "/teams/:team_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -81163,29 +76301,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsUpdateLegacy(input, responder, ctx) + .teamsUpdateLegacy(input, teamsUpdateLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81200,15 +76317,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const teamsDeleteLegacyParamSchema = z.object({ team_id: z.coerce.number() }) - const teamsDeleteLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete("teamsDeleteLegacy", "/teams/:team_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -81221,23 +76329,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsDeleteLegacy(input, responder, ctx) + .teamsDeleteLegacy(input, teamsDeleteLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81260,11 +76353,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListDiscussionsLegacyResponseValidator = responseValidationFactory( - [["200", z.array(s_team_discussion)]], - undefined, - ) - router.get( "teamsListDiscussionsLegacy", "/teams/:team_id/discussions", @@ -81284,17 +76372,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListDiscussionsLegacy(input, responder, ctx) + .teamsListDiscussionsLegacy( + input, + teamsListDiscussionsLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81318,9 +76401,6 @@ export function createRouter(implementation: Implementation): KoaRouter { private: PermissiveBoolean.optional().default(false), }) - const teamsCreateDiscussionLegacyResponseValidator = - responseValidationFactory([["201", s_team_discussion]], undefined) - router.post( "teamsCreateDiscussionLegacy", "/teams/:team_id/discussions", @@ -81340,17 +76420,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCreateDiscussionLegacy(input, responder, ctx) + .teamsCreateDiscussionLegacy( + input, + teamsCreateDiscussionLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81369,11 +76444,6 @@ export function createRouter(implementation: Implementation): KoaRouter { discussion_number: z.coerce.number(), }) - const teamsGetDiscussionLegacyResponseValidator = responseValidationFactory( - [["200", s_team_discussion]], - undefined, - ) - router.get( "teamsGetDiscussionLegacy", "/teams/:team_id/discussions/:discussion_number", @@ -81389,17 +76459,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetDiscussionLegacy(input, responder, ctx) + .teamsGetDiscussionLegacy(input, teamsGetDiscussionLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81422,9 +76483,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ title: z.string().optional(), body: z.string().optional() }) .optional() - const teamsUpdateDiscussionLegacyResponseValidator = - responseValidationFactory([["200", s_team_discussion]], undefined) - router.patch( "teamsUpdateDiscussionLegacy", "/teams/:team_id/discussions/:discussion_number", @@ -81444,17 +76502,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsUpdateDiscussionLegacy(input, responder, ctx) + .teamsUpdateDiscussionLegacy( + input, + teamsUpdateDiscussionLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81473,9 +76526,6 @@ export function createRouter(implementation: Implementation): KoaRouter { discussion_number: z.coerce.number(), }) - const teamsDeleteDiscussionLegacyResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "teamsDeleteDiscussionLegacy", "/teams/:team_id/discussions/:discussion_number", @@ -81491,17 +76541,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsDeleteDiscussionLegacy(input, responder, ctx) + .teamsDeleteDiscussionLegacy( + input, + teamsDeleteDiscussionLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81526,12 +76571,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListDiscussionCommentsLegacyResponseValidator = - responseValidationFactory( - [["200", z.array(s_team_discussion_comment)]], - undefined, - ) - router.get( "teamsListDiscussionCommentsLegacy", "/teams/:team_id/discussions/:discussion_number/comments", @@ -81551,17 +76590,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListDiscussionCommentsLegacy(input, responder, ctx) + .teamsListDiscussionCommentsLegacy( + input, + teamsListDiscussionCommentsLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81587,9 +76621,6 @@ export function createRouter(implementation: Implementation): KoaRouter { body: z.string(), }) - const teamsCreateDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["201", s_team_discussion_comment]], undefined) - router.post( "teamsCreateDiscussionCommentLegacy", "/teams/:team_id/discussions/:discussion_number/comments", @@ -81609,17 +76640,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCreateDiscussionCommentLegacy(input, responder, ctx) + .teamsCreateDiscussionCommentLegacy( + input, + teamsCreateDiscussionCommentLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81642,9 +76668,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_number: z.coerce.number(), }) - const teamsGetDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["200", s_team_discussion_comment]], undefined) - router.get( "teamsGetDiscussionCommentLegacy", "/teams/:team_id/discussions/:discussion_number/comments/:comment_number", @@ -81660,17 +76683,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetDiscussionCommentLegacy(input, responder, ctx) + .teamsGetDiscussionCommentLegacy( + input, + teamsGetDiscussionCommentLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81694,9 +76712,6 @@ export function createRouter(implementation: Implementation): KoaRouter { body: z.string(), }) - const teamsUpdateDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["200", s_team_discussion_comment]], undefined) - router.patch( "teamsUpdateDiscussionCommentLegacy", "/teams/:team_id/discussions/:discussion_number/comments/:comment_number", @@ -81716,17 +76731,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsUpdateDiscussionCommentLegacy(input, responder, ctx) + .teamsUpdateDiscussionCommentLegacy( + input, + teamsUpdateDiscussionCommentLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81749,9 +76759,6 @@ export function createRouter(implementation: Implementation): KoaRouter { comment_number: z.coerce.number(), }) - const teamsDeleteDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "teamsDeleteDiscussionCommentLegacy", "/teams/:team_id/discussions/:discussion_number/comments/:comment_number", @@ -81767,17 +76774,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsDeleteDiscussionCommentLegacy(input, responder, ctx) + .teamsDeleteDiscussionCommentLegacy( + input, + teamsDeleteDiscussionCommentLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81817,9 +76819,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForTeamDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["200", z.array(s_reaction)]], undefined) - router.get( "reactionsListForTeamDiscussionCommentLegacy", "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions", @@ -81839,17 +76838,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForTeamDiscussionCommentLegacy(input, responder, ctx) + .reactionsListForTeamDiscussionCommentLegacy( + input, + reactionsListForTeamDiscussionCommentLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81885,9 +76879,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const reactionsCreateForTeamDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["201", s_reaction]], undefined) - router.post( "reactionsCreateForTeamDiscussionCommentLegacy", "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions", @@ -81907,17 +76898,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForTeamDiscussionCommentLegacy(input, responder, ctx) + .reactionsCreateForTeamDiscussionCommentLegacy( + input, + reactionsCreateForTeamDiscussionCommentLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81956,9 +76942,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reactionsListForTeamDiscussionLegacyResponseValidator = - responseValidationFactory([["200", z.array(s_reaction)]], undefined) - router.get( "reactionsListForTeamDiscussionLegacy", "/teams/:team_id/discussions/:discussion_number/reactions", @@ -81978,17 +76961,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsListForTeamDiscussionLegacy(input, responder, ctx) + .reactionsListForTeamDiscussionLegacy( + input, + reactionsListForTeamDiscussionLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82023,9 +77001,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const reactionsCreateForTeamDiscussionLegacyResponseValidator = - responseValidationFactory([["201", s_reaction]], undefined) - router.post( "reactionsCreateForTeamDiscussionLegacy", "/teams/:team_id/discussions/:discussion_number/reactions", @@ -82045,17 +77020,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reactionsCreateForTeamDiscussionLegacy(input, responder, ctx) + .reactionsCreateForTeamDiscussionLegacy( + input, + reactionsCreateForTeamDiscussionLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82081,12 +77051,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListPendingInvitationsLegacyResponseValidator = - responseValidationFactory( - [["200", z.array(s_organization_invitation)]], - undefined, - ) - router.get( "teamsListPendingInvitationsLegacy", "/teams/:team_id/invitations", @@ -82106,17 +77070,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListPendingInvitationsLegacy(input, responder, ctx) + .teamsListPendingInvitationsLegacy( + input, + teamsListPendingInvitationsLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82143,14 +77102,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListMembersLegacyResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "teamsListMembersLegacy", "/teams/:team_id/members", @@ -82170,20 +77121,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListMembersLegacy(input, responder, ctx) + .teamsListMembersLegacy(input, teamsListMembersLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82202,14 +77141,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const teamsGetMemberLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "teamsGetMemberLegacy", "/teams/:team_id/members/:username", @@ -82225,20 +77156,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetMemberLegacy(input, responder, ctx) + .teamsGetMemberLegacy(input, teamsGetMemberLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82257,16 +77176,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const teamsAddMemberLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - router.put( "teamsAddMemberLegacy", "/teams/:team_id/members/:username", @@ -82282,26 +77191,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsAddMemberLegacy(input, responder, ctx) + .teamsAddMemberLegacy(input, teamsAddMemberLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82320,14 +77211,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const teamsRemoveMemberLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.delete( "teamsRemoveMemberLegacy", "/teams/:team_id/members/:username", @@ -82343,20 +77226,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsRemoveMemberLegacy(input, responder, ctx) + .teamsRemoveMemberLegacy(input, teamsRemoveMemberLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82375,15 +77246,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const teamsGetMembershipForUserLegacyResponseValidator = - responseValidationFactory( - [ - ["200", s_team_membership], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "teamsGetMembershipForUserLegacy", "/teams/:team_id/memberships/:username", @@ -82399,20 +77261,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsGetMembershipForUserLegacy(input, responder, ctx) + .teamsGetMembershipForUserLegacy( + input, + teamsGetMembershipForUserLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82437,17 +77291,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const teamsAddOrUpdateMembershipForUserLegacyResponseValidator = - responseValidationFactory( - [ - ["200", s_team_membership], - ["403", z.undefined()], - ["404", s_basic_error], - ["422", z.undefined()], - ], - undefined, - ) - router.put( "teamsAddOrUpdateMembershipForUserLegacy", "/teams/:team_id/memberships/:username", @@ -82467,26 +77310,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsAddOrUpdateMembershipForUserLegacy(input, responder, ctx) + .teamsAddOrUpdateMembershipForUserLegacy( + input, + teamsAddOrUpdateMembershipForUserLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82508,15 +77337,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const teamsRemoveMembershipForUserLegacyResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", z.undefined()], - ], - undefined, - ) - router.delete( "teamsRemoveMembershipForUserLegacy", "/teams/:team_id/memberships/:username", @@ -82532,20 +77352,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsRemoveMembershipForUserLegacy(input, responder, ctx) + .teamsRemoveMembershipForUserLegacy( + input, + teamsRemoveMembershipForUserLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82571,14 +77383,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListProjectsLegacyResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team_project)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "teamsListProjectsLegacy", "/teams/:team_id/projects", @@ -82598,20 +77402,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListProjectsLegacy(input, responder, ctx) + .teamsListProjectsLegacy(input, teamsListProjectsLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82630,15 +77422,6 @@ export function createRouter(implementation: Implementation): KoaRouter { project_id: z.coerce.number(), }) - const teamsCheckPermissionsForProjectLegacyResponseValidator = - responseValidationFactory( - [ - ["200", s_team_project], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "teamsCheckPermissionsForProjectLegacy", "/teams/:team_id/projects/:project_id", @@ -82654,20 +77437,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCheckPermissionsForProjectLegacy(input, responder, ctx) + .teamsCheckPermissionsForProjectLegacy( + input, + teamsCheckPermissionsForProjectLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82693,23 +77468,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ permission: z.enum(["read", "write", "admin"]).optional() }) .optional() - const teamsAddOrUpdateProjectPermissionsLegacyResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "teamsAddOrUpdateProjectPermissionsLegacy", "/teams/:team_id/projects/:project_id", @@ -82729,29 +77487,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse<{ - documentation_url?: string - message?: string - }>(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsAddOrUpdateProjectPermissionsLegacy(input, responder, ctx) + .teamsAddOrUpdateProjectPermissionsLegacy( + input, + teamsAddOrUpdateProjectPermissionsLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82773,15 +77514,6 @@ export function createRouter(implementation: Implementation): KoaRouter { project_id: z.coerce.number(), }) - const teamsRemoveProjectLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "teamsRemoveProjectLegacy", "/teams/:team_id/projects/:project_id", @@ -82797,23 +77529,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsRemoveProjectLegacy(input, responder, ctx) + .teamsRemoveProjectLegacy(input, teamsRemoveProjectLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82836,14 +77553,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListReposLegacyResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "teamsListReposLegacy", "/teams/:team_id/repos", @@ -82863,20 +77572,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListReposLegacy(input, responder, ctx) + .teamsListReposLegacy(input, teamsListReposLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82896,16 +77593,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const teamsCheckPermissionsForRepoLegacyResponseValidator = - responseValidationFactory( - [ - ["200", s_team_repository], - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "teamsCheckPermissionsForRepoLegacy", "/teams/:team_id/repos/:owner/:repo", @@ -82921,23 +77608,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsCheckPermissionsForRepoLegacy(input, responder, ctx) + .teamsCheckPermissionsForRepoLegacy( + input, + teamsCheckPermissionsForRepoLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82964,16 +77640,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ permission: z.enum(["pull", "push", "admin"]).optional() }) .optional() - const teamsAddOrUpdateRepoPermissionsLegacyResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "teamsAddOrUpdateRepoPermissionsLegacy", "/teams/:team_id/repos/:owner/:repo", @@ -82993,23 +77659,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsAddOrUpdateRepoPermissionsLegacy(input, responder, ctx) + .teamsAddOrUpdateRepoPermissionsLegacy( + input, + teamsAddOrUpdateRepoPermissionsLegacyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83032,11 +77687,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const teamsRemoveRepoLegacyResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.delete( "teamsRemoveRepoLegacy", "/teams/:team_id/repos/:owner/:repo", @@ -83052,17 +77702,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsRemoveRepoLegacy(input, responder, ctx) + .teamsRemoveRepoLegacy(input, teamsRemoveRepoLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83085,16 +77726,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListChildLegacyResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "teamsListChildLegacy", "/teams/:team_id/teams", @@ -83114,26 +77745,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListChildLegacy(input, responder, ctx) + .teamsListChildLegacy(input, teamsListChildLegacyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83147,16 +77760,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const usersGetAuthenticatedResponseValidator = responseValidationFactory( - [ - ["200", z.union([s_private_user, s_public_user])], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get("usersGetAuthenticated", "/user", async (ctx, next) => { const input = { params: undefined, @@ -83165,26 +77768,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersGetAuthenticated(input, responder, ctx) + .usersGetAuthenticated(input, usersGetAuthenticatedResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83210,18 +77795,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const usersUpdateAuthenticatedResponseValidator = responseValidationFactory( - [ - ["200", s_private_user], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch("usersUpdateAuthenticated", "/user", async (ctx, next) => { const input = { params: undefined, @@ -83234,32 +77807,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersUpdateAuthenticated(input, responder, ctx) + .usersUpdateAuthenticated(input, usersUpdateAuthenticatedResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83277,18 +77826,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListBlockedByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersListBlockedByAuthenticatedUser", "/user/blocks", @@ -83304,29 +77841,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListBlockedByAuthenticatedUser(input, responder, ctx) + .usersListBlockedByAuthenticatedUser( + input, + usersListBlockedByAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83345,17 +77865,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const usersCheckBlockedParamSchema = z.object({ username: z.string() }) - const usersCheckBlockedResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersCheckBlocked", "/user/blocks/:username", @@ -83371,29 +77880,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersCheckBlocked(input, responder, ctx) + .usersCheckBlocked(input, usersCheckBlockedResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83409,18 +77897,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const usersBlockParamSchema = z.object({ username: z.string() }) - const usersBlockResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put("usersBlock", "/user/blocks/:username", async (ctx, next) => { const input = { params: parseRequestInput( @@ -83433,32 +77909,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersBlock(input, responder, ctx) + .usersBlock(input, usersBlockResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83473,17 +77925,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const usersUnblockParamSchema = z.object({ username: z.string() }) - const usersUnblockResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete("usersUnblock", "/user/blocks/:username", async (ctx, next) => { const input = { params: parseRequestInput( @@ -83496,29 +77937,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersUnblock(input, responder, ctx) + .usersUnblock(input, usersUnblockResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83537,25 +77957,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number().optional(), }) - const codespacesListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - codespaces: z.array(s_codespace), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesListForAuthenticatedUser", "/user/codespaces", @@ -83571,35 +77972,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - codespaces: t_codespace[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesListForAuthenticatedUser(input, responder, ctx) + .codespacesListForAuthenticatedUser( + input, + codespacesListForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83649,26 +78027,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }), ]) - const codespacesCreateForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_codespace], - ["202", s_codespace], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - router.post( "codespacesCreateForAuthenticatedUser", "/user/codespaces", @@ -83684,36 +78042,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with202() { - return new KoaRuntimeResponse(202) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with503() { - return new KoaRuntimeResponse<{ - code?: string - documentation_url?: string - message?: string - }>(503) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesCreateForAuthenticatedUser(input, responder, ctx) + .codespacesCreateForAuthenticatedUser( + input, + codespacesCreateForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83735,20 +78069,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const codespacesListSecretsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_codespaces_secret), - }), - ], - ], - undefined, - ) - router.get( "codespacesListSecretsForAuthenticatedUser", "/user/codespaces/secrets", @@ -83764,20 +78084,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - secrets: t_codespaces_secret[] - total_count: number - }>(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesListSecretsForAuthenticatedUser(input, responder, ctx) + .codespacesListSecretsForAuthenticatedUser( + input, + codespacesListSecretsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83794,12 +78106,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const codespacesGetPublicKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [["200", s_codespaces_user_public_key]], - undefined, - ) - router.get( "codespacesGetPublicKeyForAuthenticatedUser", "/user/codespaces/secrets/public-key", @@ -83811,17 +78117,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetPublicKeyForAuthenticatedUser(input, responder, ctx) + .codespacesGetPublicKeyForAuthenticatedUser( + input, + codespacesGetPublicKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83842,9 +78143,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const codespacesGetSecretForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", s_codespaces_secret]], undefined) - router.get( "codespacesGetSecretForAuthenticatedUser", "/user/codespaces/secrets/:secret_name", @@ -83860,17 +78158,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetSecretForAuthenticatedUser(input, responder, ctx) + .codespacesGetSecretForAuthenticatedUser( + input, + codespacesGetSecretForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83907,17 +78200,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const codespacesCreateOrUpdateSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "codespacesCreateOrUpdateSecretForAuthenticatedUser", "/user/codespaces/secrets/:secret_name", @@ -83937,28 +78219,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codespacesCreateOrUpdateSecretForAuthenticatedUser( input, - responder, + codespacesCreateOrUpdateSecretForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -83982,9 +78246,6 @@ export function createRouter(implementation: Implementation): KoaRouter { secret_name: z.string(), }) - const codespacesDeleteSecretForAuthenticatedUserResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "codespacesDeleteSecretForAuthenticatedUser", "/user/codespaces/secrets/:secret_name", @@ -84000,17 +78261,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesDeleteSecretForAuthenticatedUser(input, responder, ctx) + .codespacesDeleteSecretForAuthenticatedUser( + input, + codespacesDeleteSecretForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84030,24 +78286,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const codespacesListRepositoriesForSecretForAuthenticatedUserParamSchema = z.object({ secret_name: z.string() }) - const codespacesListRepositoriesForSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesListRepositoriesForSecretForAuthenticatedUser", "/user/codespaces/secrets/:secret_name/repositories", @@ -84063,34 +78301,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_minimal_repository[] - total_count: number - }>(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codespacesListRepositoriesForSecretForAuthenticatedUser( input, - responder, + codespacesListRepositoriesForSecretForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -84116,18 +78330,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const codespacesSetRepositoriesForSecretForAuthenticatedUserBodySchema = z.object({ selected_repository_ids: z.array(z.coerce.number()) }) - const codespacesSetRepositoriesForSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.put( "codespacesSetRepositoriesForSecretForAuthenticatedUser", "/user/codespaces/secrets/:secret_name/repositories", @@ -84147,31 +78349,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codespacesSetRepositoriesForSecretForAuthenticatedUser( input, - responder, + codespacesSetRepositoriesForSecretForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -84194,18 +78375,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const codespacesAddRepositoryForSecretForAuthenticatedUserParamSchema = z.object({ secret_name: z.string(), repository_id: z.coerce.number() }) - const codespacesAddRepositoryForSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.put( "codespacesAddRepositoryForSecretForAuthenticatedUser", "/user/codespaces/secrets/:secret_name/repositories/:repository_id", @@ -84221,31 +78390,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codespacesAddRepositoryForSecretForAuthenticatedUser( input, - responder, + codespacesAddRepositoryForSecretForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -84268,18 +78416,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const codespacesRemoveRepositoryForSecretForAuthenticatedUserParamSchema = z.object({ secret_name: z.string(), repository_id: z.coerce.number() }) - const codespacesRemoveRepositoryForSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "codespacesRemoveRepositoryForSecretForAuthenticatedUser", "/user/codespaces/secrets/:secret_name/repositories/:repository_id", @@ -84295,31 +78431,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .codespacesRemoveRepositoryForSecretForAuthenticatedUser( input, - responder, + codespacesRemoveRepositoryForSecretForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -84343,19 +78458,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codespace_name: z.string(), }) - const codespacesGetForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesGetForAuthenticatedUser", "/user/codespaces/:codespace_name", @@ -84371,32 +78473,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetForAuthenticatedUser(input, responder, ctx) + .codespacesGetForAuthenticatedUser( + input, + codespacesGetForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84425,17 +78507,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const codespacesUpdateForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.patch( "codespacesUpdateForAuthenticatedUser", "/user/codespaces/:codespace_name", @@ -84455,26 +78526,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesUpdateForAuthenticatedUser(input, responder, ctx) + .codespacesUpdateForAuthenticatedUser( + input, + codespacesUpdateForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84495,19 +78552,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codespace_name: z.string(), }) - const codespacesDeleteForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.delete( "codespacesDeleteForAuthenticatedUser", "/user/codespaces/:codespace_name", @@ -84523,34 +78567,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - [key: string]: unknown | undefined - }>(202) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesDeleteForAuthenticatedUser(input, responder, ctx) + .codespacesDeleteForAuthenticatedUser( + input, + codespacesDeleteForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84571,19 +78593,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codespace_name: z.string(), }) - const codespacesExportForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["202", s_codespace_export_details], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "codespacesExportForAuthenticatedUser", "/user/codespaces/:codespace_name/exports", @@ -84599,32 +78608,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesExportForAuthenticatedUser(input, responder, ctx) + .codespacesExportForAuthenticatedUser( + input, + codespacesExportForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84646,15 +78635,6 @@ export function createRouter(implementation: Implementation): KoaRouter { export_id: z.string(), }) - const codespacesGetExportDetailsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace_export_details], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "codespacesGetExportDetailsForAuthenticatedUser", "/user/codespaces/:codespace_name/exports/:export_id", @@ -84670,20 +78650,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesGetExportDetailsForAuthenticatedUser(input, responder, ctx) + .codespacesGetExportDetailsForAuthenticatedUser( + input, + codespacesGetExportDetailsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84705,25 +78677,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codespace_name: z.string(), }) - const codespacesCodespaceMachinesForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - machines: z.array(s_codespace_machine), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.get( "codespacesCodespaceMachinesForAuthenticatedUser", "/user/codespaces/:codespace_name/machines", @@ -84739,35 +78692,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - machines: t_codespace_machine[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesCodespaceMachinesForAuthenticatedUser(input, responder, ctx) + .codespacesCodespaceMachinesForAuthenticatedUser( + input, + codespacesCodespaceMachinesForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84794,18 +78724,6 @@ export function createRouter(implementation: Implementation): KoaRouter { private: PermissiveBoolean.optional().default(false), }) - const codespacesPublishForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_codespace_with_full_repository], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "codespacesPublishForAuthenticatedUser", "/user/codespaces/:codespace_name/publish", @@ -84825,29 +78743,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesPublishForAuthenticatedUser(input, responder, ctx) + .codespacesPublishForAuthenticatedUser( + input, + codespacesPublishForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84868,22 +78769,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codespace_name: z.string(), }) - const codespacesStartForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["304", z.undefined()], - ["400", s_scim_error], - ["401", s_basic_error], - ["402", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "codespacesStartForAuthenticatedUser", "/user/codespaces/:codespace_name/start", @@ -84899,41 +78784,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with402() { - return new KoaRuntimeResponse(402) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesStartForAuthenticatedUser(input, responder, ctx) + .codespacesStartForAuthenticatedUser( + input, + codespacesStartForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -84954,18 +78810,6 @@ export function createRouter(implementation: Implementation): KoaRouter { codespace_name: z.string(), }) - const codespacesStopForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - router.post( "codespacesStopForAuthenticatedUser", "/user/codespaces/:codespace_name/stop", @@ -84981,29 +78825,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .codespacesStopForAuthenticatedUser(input, responder, ctx) + .codespacesStopForAuthenticatedUser( + input, + codespacesStopForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85020,9 +78847,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", z.array(s_package)]], undefined) - router.get( "packagesListDockerMigrationConflictingPackagesForAuthenticatedUser", "/user/docker/conflicts", @@ -85034,19 +78858,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .packagesListDockerMigrationConflictingPackagesForAuthenticatedUser( input, - responder, + packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -85070,19 +78885,6 @@ export function createRouter(implementation: Implementation): KoaRouter { { visibility: z.enum(["public", "private"]) }, ) - const usersSetPrimaryEmailVisibilityForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_email)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "usersSetPrimaryEmailVisibilityForAuthenticatedUser", "/user/email/visibility", @@ -85098,34 +78900,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .usersSetPrimaryEmailVisibilityForAuthenticatedUser( input, - responder, + usersSetPrimaryEmailVisibilityForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -85150,18 +78928,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListEmailsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_email)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersListEmailsForAuthenticatedUser", "/user/emails", @@ -85177,29 +78943,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListEmailsForAuthenticatedUser(input, responder, ctx) + .usersListEmailsForAuthenticatedUser( + input, + usersListEmailsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85224,19 +78973,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]) .optional() - const usersAddEmailForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", z.array(s_email)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "usersAddEmailForAuthenticatedUser", "/user/emails", @@ -85252,32 +78988,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersAddEmailForAuthenticatedUser(input, responder, ctx) + .usersAddEmailForAuthenticatedUser( + input, + usersAddEmailForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85300,19 +79016,6 @@ export function createRouter(implementation: Implementation): KoaRouter { z.string(), ]) - const usersDeleteEmailForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "usersDeleteEmailForAuthenticatedUser", "/user/emails", @@ -85328,32 +79031,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersDeleteEmailForAuthenticatedUser(input, responder, ctx) + .usersDeleteEmailForAuthenticatedUser( + input, + usersDeleteEmailForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85375,17 +79058,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListFollowersForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "usersListFollowersForAuthenticatedUser", "/user/followers", @@ -85401,26 +79073,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListFollowersForAuthenticatedUser(input, responder, ctx) + .usersListFollowersForAuthenticatedUser( + input, + usersListFollowersForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85442,17 +79100,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListFollowedByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "usersListFollowedByAuthenticatedUser", "/user/following", @@ -85468,26 +79115,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListFollowedByAuthenticatedUser(input, responder, ctx) + .usersListFollowedByAuthenticatedUser( + input, + usersListFollowedByAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85508,18 +79141,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const usersCheckPersonIsFollowedByAuthenticatedResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersCheckPersonIsFollowedByAuthenticated", "/user/following/:username", @@ -85535,29 +79156,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersCheckPersonIsFollowedByAuthenticated(input, responder, ctx) + .usersCheckPersonIsFollowedByAuthenticated( + input, + usersCheckPersonIsFollowedByAuthenticatedResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85576,18 +79180,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const usersFollowParamSchema = z.object({ username: z.string() }) - const usersFollowResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.put("usersFollow", "/user/following/:username", async (ctx, next) => { const input = { params: parseRequestInput( @@ -85600,32 +79192,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersFollow(input, responder, ctx) + .usersFollow(input, usersFollowResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85640,17 +79208,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const usersUnfollowParamSchema = z.object({ username: z.string() }) - const usersUnfollowResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "usersUnfollow", "/user/following/:username", @@ -85666,29 +79223,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersUnfollow(input, responder, ctx) + .usersUnfollow(input, usersUnfollowResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85707,18 +79243,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListGpgKeysForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_gpg_key)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersListGpgKeysForAuthenticatedUser", "/user/gpg_keys", @@ -85734,29 +79258,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListGpgKeysForAuthenticatedUser(input, responder, ctx) + .usersListGpgKeysForAuthenticatedUser( + input, + usersListGpgKeysForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85778,19 +79285,6 @@ export function createRouter(implementation: Implementation): KoaRouter { armored_public_key: z.string(), }) - const usersCreateGpgKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_gpg_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "usersCreateGpgKeyForAuthenticatedUser", "/user/gpg_keys", @@ -85806,32 +79300,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersCreateGpgKeyForAuthenticatedUser(input, responder, ctx) + .usersCreateGpgKeyForAuthenticatedUser( + input, + usersCreateGpgKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85852,18 +79326,6 @@ export function createRouter(implementation: Implementation): KoaRouter { gpg_key_id: z.coerce.number(), }) - const usersGetGpgKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_gpg_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersGetGpgKeyForAuthenticatedUser", "/user/gpg_keys/:gpg_key_id", @@ -85879,29 +79341,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersGetGpgKeyForAuthenticatedUser(input, responder, ctx) + .usersGetGpgKeyForAuthenticatedUser( + input, + usersGetGpgKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85922,19 +79367,6 @@ export function createRouter(implementation: Implementation): KoaRouter { gpg_key_id: z.coerce.number(), }) - const usersDeleteGpgKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "usersDeleteGpgKeyForAuthenticatedUser", "/user/gpg_keys/:gpg_key_id", @@ -85950,32 +79382,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersDeleteGpgKeyForAuthenticatedUser(input, responder, ctx) + .usersDeleteGpgKeyForAuthenticatedUser( + input, + usersDeleteGpgKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -85997,23 +79409,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListInstallationsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - installations: z.array(s_installation), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "appsListInstallationsForAuthenticatedUser", "/user/installations", @@ -86029,29 +79424,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - installations: t_installation[] - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListInstallationsForAuthenticatedUser(input, responder, ctx) + .appsListInstallationsForAuthenticatedUser( + input, + appsListInstallationsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86077,24 +79455,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListInstallationReposForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repository_selection: z.string().optional(), - repositories: z.array(s_repository), - }), - ], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "appsListInstallationReposForAuthenticatedUser", "/user/installations/:installation_id/repositories", @@ -86114,30 +79474,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - repositories: t_repository[] - repository_selection?: string - total_count: number - }>(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListInstallationReposForAuthenticatedUser(input, responder, ctx) + .appsListInstallationReposForAuthenticatedUser( + input, + appsListInstallationReposForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86159,17 +79501,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const appsAddRepoToInstallationForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.put( "appsAddRepoToInstallationForAuthenticatedUser", "/user/installations/:installation_id/repositories/:repository_id", @@ -86185,26 +79516,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsAddRepoToInstallationForAuthenticatedUser(input, responder, ctx) + .appsAddRepoToInstallationForAuthenticatedUser( + input, + appsAddRepoToInstallationForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86227,18 +79544,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repository_id: z.coerce.number(), }) - const appsRemoveRepoFromInstallationForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ], - undefined, - ) - router.delete( "appsRemoveRepoFromInstallationForAuthenticatedUser", "/user/installations/:installation_id/repositories/:repository_id", @@ -86254,31 +79559,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .appsRemoveRepoFromInstallationForAuthenticatedUser( input, - responder, + appsRemoveRepoFromInstallationForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -86298,15 +79582,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const interactionsGetRestrictionsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.union([s_interaction_limit_response, z.object({})])], - ["204", z.undefined()], - ], - undefined, - ) - router.get( "interactionsGetRestrictionsForAuthenticatedUser", "/user/interaction-limits", @@ -86318,22 +79593,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_interaction_limit_response | EmptyObject - >(200) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .interactionsGetRestrictionsForAuthenticatedUser(input, responder, ctx) + .interactionsGetRestrictionsForAuthenticatedUser( + input, + interactionsGetRestrictionsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86354,15 +79619,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const interactionsSetRestrictionsForAuthenticatedUserBodySchema = s_interaction_limit - const interactionsSetRestrictionsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_interaction_limit_response], - ["422", s_validation_error], - ], - undefined, - ) - router.put( "interactionsSetRestrictionsForAuthenticatedUser", "/user/interaction-limits", @@ -86378,20 +79634,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .interactionsSetRestrictionsForAuthenticatedUser(input, responder, ctx) + .interactionsSetRestrictionsForAuthenticatedUser( + input, + interactionsSetRestrictionsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86409,9 +79657,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const interactionsRemoveRestrictionsForAuthenticatedUserResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - router.delete( "interactionsRemoveRestrictionsForAuthenticatedUser", "/user/interaction-limits", @@ -86423,19 +79668,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .interactionsRemoveRestrictionsForAuthenticatedUser( input, - responder, + interactionsRemoveRestrictionsForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -86472,16 +79708,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const issuesListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["304", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "issuesListForAuthenticatedUser", "/user/issues", @@ -86497,23 +79723,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .issuesListForAuthenticatedUser(input, responder, ctx) + .issuesListForAuthenticatedUser( + input, + issuesListForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86532,18 +79747,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListPublicSshKeysForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_key)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersListPublicSshKeysForAuthenticatedUser", "/user/keys", @@ -86559,29 +79762,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListPublicSshKeysForAuthenticatedUser(input, responder, ctx) + .usersListPublicSshKeysForAuthenticatedUser( + input, + usersListPublicSshKeysForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86607,19 +79793,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ), }) - const usersCreatePublicSshKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "usersCreatePublicSshKeyForAuthenticatedUser", "/user/keys", @@ -86635,32 +79808,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersCreatePublicSshKeyForAuthenticatedUser(input, responder, ctx) + .usersCreatePublicSshKeyForAuthenticatedUser( + input, + usersCreatePublicSshKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86681,18 +79834,6 @@ export function createRouter(implementation: Implementation): KoaRouter { key_id: z.coerce.number(), }) - const usersGetPublicSshKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersGetPublicSshKeyForAuthenticatedUser", "/user/keys/:key_id", @@ -86708,29 +79849,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersGetPublicSshKeyForAuthenticatedUser(input, responder, ctx) + .usersGetPublicSshKeyForAuthenticatedUser( + input, + usersGetPublicSshKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86751,18 +79875,6 @@ export function createRouter(implementation: Implementation): KoaRouter { key_id: z.coerce.number(), }) - const usersDeletePublicSshKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "usersDeletePublicSshKeyForAuthenticatedUser", "/user/keys/:key_id", @@ -86778,29 +79890,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersDeletePublicSshKeyForAuthenticatedUser(input, responder, ctx) + .usersDeletePublicSshKeyForAuthenticatedUser( + input, + usersDeletePublicSshKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86822,17 +79917,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListSubscriptionsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_user_marketplace_purchase)], - ["304", z.undefined()], - ["401", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "appsListSubscriptionsForAuthenticatedUser", "/user/marketplace_purchases", @@ -86848,26 +79932,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListSubscriptionsForAuthenticatedUser(input, responder, ctx) + .appsListSubscriptionsForAuthenticatedUser( + input, + appsListSubscriptionsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86889,16 +79959,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const appsListSubscriptionsForAuthenticatedUserStubbedResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_user_marketplace_purchase)], - ["304", z.undefined()], - ["401", s_basic_error], - ], - undefined, - ) - router.get( "appsListSubscriptionsForAuthenticatedUserStubbed", "/user/marketplace_purchases/stubbed", @@ -86914,23 +79974,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsListSubscriptionsForAuthenticatedUserStubbed(input, responder, ctx) + .appsListSubscriptionsForAuthenticatedUserStubbed( + input, + appsListSubscriptionsForAuthenticatedUserStubbedResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -86954,18 +80003,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListMembershipsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_org_membership)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "orgsListMembershipsForAuthenticatedUser", "/user/memberships/orgs", @@ -86981,29 +80018,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListMembershipsForAuthenticatedUser(input, responder, ctx) + .orgsListMembershipsForAuthenticatedUser( + input, + orgsListMembershipsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87024,16 +80044,6 @@ export function createRouter(implementation: Implementation): KoaRouter { org: z.string(), }) - const orgsGetMembershipForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_org_membership], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "orgsGetMembershipForAuthenticatedUser", "/user/memberships/orgs/:org", @@ -87049,23 +80059,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsGetMembershipForAuthenticatedUser(input, responder, ctx) + .orgsGetMembershipForAuthenticatedUser( + input, + orgsGetMembershipForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87090,17 +80089,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: z.enum(["active"]), }) - const orgsUpdateMembershipForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_org_membership], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.patch( "orgsUpdateMembershipForAuthenticatedUser", "/user/memberships/orgs/:org", @@ -87120,26 +80108,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsUpdateMembershipForAuthenticatedUser(input, responder, ctx) + .orgsUpdateMembershipForAuthenticatedUser( + input, + orgsUpdateMembershipForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87161,17 +80135,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const migrationsListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_migration)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "migrationsListForAuthenticatedUser", "/user/migrations", @@ -87187,26 +80150,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsListForAuthenticatedUser(input, responder, ctx) + .migrationsListForAuthenticatedUser( + input, + migrationsListForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87235,18 +80184,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repositories: z.array(z.string()), }) - const migrationsStartForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_migration], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "migrationsStartForAuthenticatedUser", "/user/migrations", @@ -87262,29 +80199,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsStartForAuthenticatedUser(input, responder, ctx) + .migrationsStartForAuthenticatedUser( + input, + migrationsStartForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87314,18 +80234,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const migrationsGetStatusForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_migration], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "migrationsGetStatusForAuthenticatedUser", "/user/migrations/:migration_id", @@ -87345,29 +80253,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsGetStatusForAuthenticatedUser(input, responder, ctx) + .migrationsGetStatusForAuthenticatedUser( + input, + migrationsGetStatusForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87388,17 +80279,6 @@ export function createRouter(implementation: Implementation): KoaRouter { migration_id: z.coerce.number(), }) - const migrationsGetArchiveForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["302", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "migrationsGetArchiveForAuthenticatedUser", "/user/migrations/:migration_id/archive", @@ -87414,26 +80294,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with302() { - return new KoaRuntimeResponse(302) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsGetArchiveForAuthenticatedUser(input, responder, ctx) + .migrationsGetArchiveForAuthenticatedUser( + input, + migrationsGetArchiveForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87454,18 +80320,6 @@ export function createRouter(implementation: Implementation): KoaRouter { migration_id: z.coerce.number(), }) - const migrationsDeleteArchiveForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "migrationsDeleteArchiveForAuthenticatedUser", "/user/migrations/:migration_id/archive", @@ -87481,29 +80335,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsDeleteArchiveForAuthenticatedUser(input, responder, ctx) + .migrationsDeleteArchiveForAuthenticatedUser( + input, + migrationsDeleteArchiveForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87525,18 +80362,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo_name: z.string(), }) - const migrationsUnlockRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "migrationsUnlockRepoForAuthenticatedUser", "/user/migrations/:migration_id/repos/:repo_name/lock", @@ -87552,29 +80377,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsUnlockRepoForAuthenticatedUser(input, responder, ctx) + .migrationsUnlockRepoForAuthenticatedUser( + input, + migrationsUnlockRepoForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87600,15 +80408,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const migrationsListReposForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "migrationsListReposForAuthenticatedUser", "/user/migrations/:migration_id/repositories", @@ -87628,20 +80427,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .migrationsListReposForAuthenticatedUser(input, responder, ctx) + .migrationsListReposForAuthenticatedUser( + input, + migrationsListReposForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87663,17 +80454,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_organization_simple)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "orgsListForAuthenticatedUser", "/user/orgs", @@ -87689,26 +80469,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListForAuthenticatedUser(input, responder, ctx) + .orgsListForAuthenticatedUser( + input, + orgsListForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87736,15 +80502,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const packagesListPackagesForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["400", z.undefined()], - ], - undefined, - ) - router.get( "packagesListPackagesForAuthenticatedUser", "/user/packages", @@ -87760,20 +80517,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesListPackagesForAuthenticatedUser(input, responder, ctx) + .packagesListPackagesForAuthenticatedUser( + input, + packagesListPackagesForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87802,9 +80551,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_name: z.string(), }) - const packagesGetPackageForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", s_package]], undefined) - router.get( "packagesGetPackageForAuthenticatedUser", "/user/packages/:package_type/:package_name", @@ -87820,17 +80566,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesGetPackageForAuthenticatedUser(input, responder, ctx) + .packagesGetPackageForAuthenticatedUser( + input, + packagesGetPackageForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87859,17 +80600,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_name: z.string(), }) - const packagesDeletePackageForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "packagesDeletePackageForAuthenticatedUser", "/user/packages/:package_type/:package_name", @@ -87885,26 +80615,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesDeletePackageForAuthenticatedUser(input, responder, ctx) + .packagesDeletePackageForAuthenticatedUser( + input, + packagesDeletePackageForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -87937,17 +80653,6 @@ export function createRouter(implementation: Implementation): KoaRouter { token: z.string().optional(), }) - const packagesRestorePackageForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "packagesRestorePackageForAuthenticatedUser", "/user/packages/:package_type/:package_name/restore", @@ -87967,26 +80672,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesRestorePackageForAuthenticatedUser(input, responder, ctx) + .packagesRestorePackageForAuthenticatedUser( + input, + packagesRestorePackageForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88023,17 +80714,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: z.enum(["active", "deleted"]).optional().default("active"), }) - const packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package_version)], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser", "/user/packages/:package_type/:package_name/versions", @@ -88053,28 +80733,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser( input, - responder, + packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -88107,9 +80769,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_version_id: z.coerce.number(), }) - const packagesGetPackageVersionForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", s_package_version]], undefined) - router.get( "packagesGetPackageVersionForAuthenticatedUser", "/user/packages/:package_type/:package_name/versions/:package_version_id", @@ -88125,17 +80784,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesGetPackageVersionForAuthenticatedUser(input, responder, ctx) + .packagesGetPackageVersionForAuthenticatedUser( + input, + packagesGetPackageVersionForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88165,17 +80819,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_version_id: z.coerce.number(), }) - const packagesDeletePackageVersionForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "packagesDeletePackageVersionForAuthenticatedUser", "/user/packages/:package_type/:package_name/versions/:package_version_id", @@ -88191,26 +80834,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesDeletePackageVersionForAuthenticatedUser(input, responder, ctx) + .packagesDeletePackageVersionForAuthenticatedUser( + input, + packagesDeletePackageVersionForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88243,17 +80872,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const packagesRestorePackageVersionForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "packagesRestorePackageVersionForAuthenticatedUser", "/user/packages/:package_type/:package_name/versions/:package_version_id/restore", @@ -88269,28 +80887,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .packagesRestorePackageVersionForAuthenticatedUser( input, - responder, + packagesRestorePackageVersionForAuthenticatedUserResponder, ctx, ) .catch((err) => { @@ -88315,18 +80915,6 @@ export function createRouter(implementation: Implementation): KoaRouter { body: z.string().nullable().optional(), }) - const projectsCreateForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_project], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - router.post( "projectsCreateForAuthenticatedUser", "/user/projects", @@ -88342,29 +80930,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsCreateForAuthenticatedUser(input, responder, ctx) + .projectsCreateForAuthenticatedUser( + input, + projectsCreateForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88386,18 +80957,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListPublicEmailsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_email)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersListPublicEmailsForAuthenticatedUser", "/user/public_emails", @@ -88413,29 +80972,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListPublicEmailsForAuthenticatedUser(input, responder, ctx) + .usersListPublicEmailsForAuthenticatedUser( + input, + usersListPublicEmailsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88473,18 +81015,6 @@ export function createRouter(implementation: Implementation): KoaRouter { before: z.string().datetime({ offset: true }).optional(), }) - const reposListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_repository)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "reposListForAuthenticatedUser", "/user/repos", @@ -88500,29 +81030,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListForAuthenticatedUser(input, responder, ctx) + .reposListForAuthenticatedUser( + input, + reposListForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88566,20 +81079,6 @@ export function createRouter(implementation: Implementation): KoaRouter { is_template: PermissiveBoolean.optional().default(false), }) - const reposCreateForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_full_repository], - ["304", z.undefined()], - ["400", s_scim_error], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "reposCreateForAuthenticatedUser", "/user/repos", @@ -88595,35 +81094,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposCreateForAuthenticatedUser(input, responder, ctx) + .reposCreateForAuthenticatedUser( + input, + reposCreateForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88642,18 +81118,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListInvitationsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_repository_invitation)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "reposListInvitationsForAuthenticatedUser", "/user/repository_invitations", @@ -88669,29 +81133,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListInvitationsForAuthenticatedUser(input, responder, ctx) + .reposListInvitationsForAuthenticatedUser( + input, + reposListInvitationsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88712,18 +81159,6 @@ export function createRouter(implementation: Implementation): KoaRouter { invitation_id: z.coerce.number(), }) - const reposAcceptInvitationForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.patch( "reposAcceptInvitationForAuthenticatedUser", "/user/repository_invitations/:invitation_id", @@ -88739,29 +81174,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposAcceptInvitationForAuthenticatedUser(input, responder, ctx) + .reposAcceptInvitationForAuthenticatedUser( + input, + reposAcceptInvitationForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88782,18 +81200,6 @@ export function createRouter(implementation: Implementation): KoaRouter { invitation_id: z.coerce.number(), }) - const reposDeclineInvitationForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - router.delete( "reposDeclineInvitationForAuthenticatedUser", "/user/repository_invitations/:invitation_id", @@ -88809,29 +81215,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposDeclineInvitationForAuthenticatedUser(input, responder, ctx) + .reposDeclineInvitationForAuthenticatedUser( + input, + reposDeclineInvitationForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88853,18 +81242,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListSocialAccountsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_social_account)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersListSocialAccountsForAuthenticatedUser", "/user/social_accounts", @@ -88880,29 +81257,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListSocialAccountsForAuthenticatedUser(input, responder, ctx) + .usersListSocialAccountsForAuthenticatedUser( + input, + usersListSocialAccountsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88923,19 +81283,6 @@ export function createRouter(implementation: Implementation): KoaRouter { account_urls: z.array(z.string()), }) - const usersAddSocialAccountForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", z.array(s_social_account)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "usersAddSocialAccountForAuthenticatedUser", "/user/social_accounts", @@ -88951,32 +81298,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersAddSocialAccountForAuthenticatedUser(input, responder, ctx) + .usersAddSocialAccountForAuthenticatedUser( + input, + usersAddSocialAccountForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -88997,19 +81324,6 @@ export function createRouter(implementation: Implementation): KoaRouter { account_urls: z.array(z.string()), }) - const usersDeleteSocialAccountForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.delete( "usersDeleteSocialAccountForAuthenticatedUser", "/user/social_accounts", @@ -89025,32 +81339,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersDeleteSocialAccountForAuthenticatedUser(input, responder, ctx) + .usersDeleteSocialAccountForAuthenticatedUser( + input, + usersDeleteSocialAccountForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89072,18 +81366,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListSshSigningKeysForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_ssh_signing_key)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersListSshSigningKeysForAuthenticatedUser", "/user/ssh_signing_keys", @@ -89099,29 +81381,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListSshSigningKeysForAuthenticatedUser(input, responder, ctx) + .usersListSshSigningKeysForAuthenticatedUser( + input, + usersListSshSigningKeysForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89149,19 +81414,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ), }) - const usersCreateSshSigningKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_ssh_signing_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.post( "usersCreateSshSigningKeyForAuthenticatedUser", "/user/ssh_signing_keys", @@ -89177,32 +81429,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersCreateSshSigningKeyForAuthenticatedUser(input, responder, ctx) + .usersCreateSshSigningKeyForAuthenticatedUser( + input, + usersCreateSshSigningKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89223,18 +81455,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ssh_signing_key_id: z.coerce.number(), }) - const usersGetSshSigningKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_ssh_signing_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersGetSshSigningKeyForAuthenticatedUser", "/user/ssh_signing_keys/:ssh_signing_key_id", @@ -89250,29 +81470,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersGetSshSigningKeyForAuthenticatedUser(input, responder, ctx) + .usersGetSshSigningKeyForAuthenticatedUser( + input, + usersGetSshSigningKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89293,18 +81496,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ssh_signing_key_id: z.coerce.number(), }) - const usersDeleteSshSigningKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "usersDeleteSshSigningKeyForAuthenticatedUser", "/user/ssh_signing_keys/:ssh_signing_key_id", @@ -89320,29 +81511,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersDeleteSshSigningKeyForAuthenticatedUser(input, responder, ctx) + .usersDeleteSshSigningKeyForAuthenticatedUser( + input, + usersDeleteSshSigningKeyForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89366,17 +81540,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListReposStarredByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_starred_repository)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "activityListReposStarredByAuthenticatedUser", "/user/starred", @@ -89392,26 +81555,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListReposStarredByAuthenticatedUser(input, responder, ctx) + .activityListReposStarredByAuthenticatedUser( + input, + activityListReposStarredByAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89433,18 +81582,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const activityCheckRepoIsStarredByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "activityCheckRepoIsStarredByAuthenticatedUser", "/user/starred/:owner/:repo", @@ -89460,29 +81597,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityCheckRepoIsStarredByAuthenticatedUser(input, responder, ctx) + .activityCheckRepoIsStarredByAuthenticatedUser( + input, + activityCheckRepoIsStarredByAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89504,18 +81624,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const activityStarRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.put( "activityStarRepoForAuthenticatedUser", "/user/starred/:owner/:repo", @@ -89531,29 +81639,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityStarRepoForAuthenticatedUser(input, responder, ctx) + .activityStarRepoForAuthenticatedUser( + input, + activityStarRepoForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89575,18 +81666,6 @@ export function createRouter(implementation: Implementation): KoaRouter { repo: z.string(), }) - const activityUnstarRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "activityUnstarRepoForAuthenticatedUser", "/user/starred/:owner/:repo", @@ -89602,29 +81681,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityUnstarRepoForAuthenticatedUser(input, responder, ctx) + .activityUnstarRepoForAuthenticatedUser( + input, + activityUnstarRepoForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89646,17 +81708,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListWatchedReposForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "activityListWatchedReposForAuthenticatedUser", "/user/subscriptions", @@ -89672,26 +81723,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListWatchedReposForAuthenticatedUser(input, responder, ctx) + .activityListWatchedReposForAuthenticatedUser( + input, + activityListWatchedReposForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89713,17 +81750,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const teamsListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team_full)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "teamsListForAuthenticatedUser", "/user/teams", @@ -89739,26 +81765,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .teamsListForAuthenticatedUser(input, responder, ctx) + .teamsListForAuthenticatedUser( + input, + teamsListForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89774,14 +81786,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const usersGetByIdParamSchema = z.object({ account_id: z.coerce.number() }) - const usersGetByIdResponseValidator = responseValidationFactory( - [ - ["200", z.union([s_private_user, s_public_user])], - ["404", s_basic_error], - ], - undefined, - ) - router.get("usersGetById", "/user/:account_id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -89794,20 +81798,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersGetById(input, responder, ctx) + .usersGetById(input, usersGetByIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89825,14 +81817,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const usersListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ], - undefined, - ) - router.get("usersList", "/users", async (ctx, next) => { const input = { params: undefined, @@ -89845,20 +81829,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with304() { - return new KoaRuntimeResponse(304) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersList(input, responder, ctx) + .usersList(input, usersListResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89873,14 +81845,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const usersGetByUsernameParamSchema = z.object({ username: z.string() }) - const usersGetByUsernameResponseValidator = responseValidationFactory( - [ - ["200", z.union([s_private_user, s_public_user])], - ["404", s_basic_error], - ], - undefined, - ) - router.get("usersGetByUsername", "/users/:username", async (ctx, next) => { const input = { params: parseRequestInput( @@ -89893,20 +81857,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersGetByUsername(input, responder, ctx) + .usersGetByUsername(input, usersGetByUsernameResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -89931,35 +81883,6 @@ export function createRouter(implementation: Implementation): KoaRouter { predicate_type: z.string().optional(), }) - const usersListAttestationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - attestations: z - .array( - z.object({ - bundle: z - .object({ - mediaType: z.string().optional(), - verificationMaterial: z.record(z.unknown()).optional(), - dsseEnvelope: z.record(z.unknown()).optional(), - }) - .optional(), - repository_id: z.coerce.number().optional(), - bundle_url: z.string().optional(), - }), - ) - .optional(), - }), - ], - ["201", s_empty_object], - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "usersListAttestations", "/users/:username/attestations/:subject_digest", @@ -89979,40 +81902,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - attestations?: { - bundle?: { - dsseEnvelope?: { - [key: string]: unknown | undefined - } - mediaType?: string - verificationMaterial?: { - [key: string]: unknown | undefined - } - } - bundle_url?: string - repository_id?: number - }[] - }>(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListAttestations(input, responder, ctx) + .usersListAttestations(input, usersListAttestationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90029,16 +81920,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const packagesListDockerMigrationConflictingPackagesForUserParamSchema = z.object({ username: z.string() }) - const packagesListDockerMigrationConflictingPackagesForUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "packagesListDockerMigrationConflictingPackagesForUser", "/users/:username/docker/conflicts", @@ -90054,25 +81935,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .packagesListDockerMigrationConflictingPackagesForUser( input, - responder, + packagesListDockerMigrationConflictingPackagesForUserResponder, ctx, ) .catch((err) => { @@ -90101,9 +81967,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListEventsForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) - router.get( "activityListEventsForAuthenticatedUser", "/users/:username/events", @@ -90123,17 +81986,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListEventsForAuthenticatedUser(input, responder, ctx) + .activityListEventsForAuthenticatedUser( + input, + activityListEventsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90160,9 +82018,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListOrgEventsForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) - router.get( "activityListOrgEventsForAuthenticatedUser", "/users/:username/events/orgs/:org", @@ -90182,17 +82037,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListOrgEventsForAuthenticatedUser(input, responder, ctx) + .activityListOrgEventsForAuthenticatedUser( + input, + activityListOrgEventsForAuthenticatedUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90218,9 +82068,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListPublicEventsForUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) - router.get( "activityListPublicEventsForUser", "/users/:username/events/public", @@ -90240,17 +82087,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListPublicEventsForUser(input, responder, ctx) + .activityListPublicEventsForUser( + input, + activityListPublicEventsForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90273,11 +82115,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListFollowersForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, - ) - router.get( "usersListFollowersForUser", "/users/:username/followers", @@ -90297,17 +82134,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListFollowersForUser(input, responder, ctx) + .usersListFollowersForUser( + input, + usersListFollowersForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90330,11 +82162,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListFollowingForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, - ) - router.get( "usersListFollowingForUser", "/users/:username/following", @@ -90354,17 +82181,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListFollowingForUser(input, responder, ctx) + .usersListFollowingForUser( + input, + usersListFollowingForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90383,14 +82205,6 @@ export function createRouter(implementation: Implementation): KoaRouter { target_user: z.string(), }) - const usersCheckFollowingForUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) - router.get( "usersCheckFollowingForUser", "/users/:username/following/:target_user", @@ -90406,20 +82220,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersCheckFollowingForUser(input, responder, ctx) + .usersCheckFollowingForUser( + input, + usersCheckFollowingForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90441,14 +82247,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const gistsListForUserResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_base_gist)], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "gistsListForUser", "/users/:username/gists", @@ -90468,20 +82266,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .gistsListForUser(input, responder, ctx) + .gistsListForUser(input, gistsListForUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90502,11 +82288,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListGpgKeysForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_gpg_key)]], - undefined, - ) - router.get( "usersListGpgKeysForUser", "/users/:username/gpg_keys", @@ -90526,17 +82307,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListGpgKeysForUser(input, responder, ctx) + .usersListGpgKeysForUser(input, usersListGpgKeysForUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90559,15 +82331,6 @@ export function createRouter(implementation: Implementation): KoaRouter { subject_id: z.string().optional(), }) - const usersGetContextForUserResponseValidator = responseValidationFactory( - [ - ["200", s_hovercard], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "usersGetContextForUser", "/users/:username/hovercard", @@ -90587,23 +82350,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersGetContextForUser(input, responder, ctx) + .usersGetContextForUser(input, usersGetContextForUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90619,11 +82367,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const appsGetUserInstallationParamSchema = z.object({ username: z.string() }) - const appsGetUserInstallationResponseValidator = responseValidationFactory( - [["200", s_installation]], - undefined, - ) - router.get( "appsGetUserInstallation", "/users/:username/installation", @@ -90639,17 +82382,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .appsGetUserInstallation(input, responder, ctx) + .appsGetUserInstallation(input, appsGetUserInstallationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90672,11 +82406,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListPublicKeysForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_key_simple)]], - undefined, - ) - router.get( "usersListPublicKeysForUser", "/users/:username/keys", @@ -90696,17 +82425,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListPublicKeysForUser(input, responder, ctx) + .usersListPublicKeysForUser( + input, + usersListPublicKeysForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90727,11 +82451,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const orgsListForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_organization_simple)]], - undefined, - ) - router.get("orgsListForUser", "/users/:username/orgs", async (ctx, next) => { const input = { params: parseRequestInput( @@ -90748,17 +82467,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .orgsListForUser(input, responder, ctx) + .orgsListForUser(input, orgsListForUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90789,17 +82499,6 @@ export function createRouter(implementation: Implementation): KoaRouter { per_page: z.coerce.number().optional().default(30), }) - const packagesListPackagesForUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["400", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - router.get( "packagesListPackagesForUser", "/users/:username/packages", @@ -90819,26 +82518,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesListPackagesForUser(input, responder, ctx) + .packagesListPackagesForUser( + input, + packagesListPackagesForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90865,11 +82550,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const packagesGetPackageForUserResponseValidator = responseValidationFactory( - [["200", s_package]], - undefined, - ) - router.get( "packagesGetPackageForUser", "/users/:username/packages/:package_type/:package_name", @@ -90885,17 +82565,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesGetPackageForUser(input, responder, ctx) + .packagesGetPackageForUser( + input, + packagesGetPackageForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90922,17 +82597,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const packagesDeletePackageForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "packagesDeletePackageForUser", "/users/:username/packages/:package_type/:package_name", @@ -90948,26 +82612,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesDeletePackageForUser(input, responder, ctx) + .packagesDeletePackageForUser( + input, + packagesDeletePackageForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -90998,17 +82648,6 @@ export function createRouter(implementation: Implementation): KoaRouter { token: z.string().optional(), }) - const packagesRestorePackageForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "packagesRestorePackageForUser", "/users/:username/packages/:package_type/:package_name/restore", @@ -91028,26 +82667,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesRestorePackageForUser(input, responder, ctx) + .packagesRestorePackageForUser( + input, + packagesRestorePackageForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91075,17 +82700,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const packagesGetAllPackageVersionsForPackageOwnedByUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package_version)], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.get( "packagesGetAllPackageVersionsForPackageOwnedByUser", "/users/:username/packages/:package_type/:package_name/versions", @@ -91101,28 +82715,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .packagesGetAllPackageVersionsForPackageOwnedByUser( input, - responder, + packagesGetAllPackageVersionsForPackageOwnedByUserResponder, ctx, ) .catch((err) => { @@ -91156,9 +82752,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const packagesGetPackageVersionForUserResponseValidator = - responseValidationFactory([["200", s_package_version]], undefined) - router.get( "packagesGetPackageVersionForUser", "/users/:username/packages/:package_type/:package_name/versions/:package_version_id", @@ -91174,17 +82767,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesGetPackageVersionForUser(input, responder, ctx) + .packagesGetPackageVersionForUser( + input, + packagesGetPackageVersionForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91212,17 +82800,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_version_id: z.coerce.number(), }) - const packagesDeletePackageVersionForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.delete( "packagesDeletePackageVersionForUser", "/users/:username/packages/:package_type/:package_name/versions/:package_version_id", @@ -91238,26 +82815,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesDeletePackageVersionForUser(input, responder, ctx) + .packagesDeletePackageVersionForUser( + input, + packagesDeletePackageVersionForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91288,17 +82851,6 @@ export function createRouter(implementation: Implementation): KoaRouter { package_version_id: z.coerce.number(), }) - const packagesRestorePackageVersionForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - router.post( "packagesRestorePackageVersionForUser", "/users/:username/packages/:package_type/:package_name/versions/:package_version_id/restore", @@ -91314,26 +82866,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .packagesRestorePackageVersionForUser(input, responder, ctx) + .packagesRestorePackageVersionForUser( + input, + packagesRestorePackageVersionForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91358,14 +82896,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const projectsListForUserResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project)], - ["422", s_validation_error], - ], - undefined, - ) - router.get( "projectsListForUser", "/users/:username/projects", @@ -91385,20 +82915,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with422() { - return new KoaRuntimeResponse(422) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .projectsListForUser(input, responder, ctx) + .projectsListForUser(input, projectsListForUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91421,9 +82939,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListReceivedEventsForUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) - router.get( "activityListReceivedEventsForUser", "/users/:username/received_events", @@ -91443,17 +82958,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListReceivedEventsForUser(input, responder, ctx) + .activityListReceivedEventsForUser( + input, + activityListReceivedEventsForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91479,9 +82989,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListReceivedPublicEventsForUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) - router.get( "activityListReceivedPublicEventsForUser", "/users/:username/received_events/public", @@ -91501,17 +83008,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListReceivedPublicEventsForUser(input, responder, ctx) + .activityListReceivedPublicEventsForUser( + input, + activityListReceivedPublicEventsForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91541,11 +83043,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const reposListForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_minimal_repository)]], - undefined, - ) - router.get( "reposListForUser", "/users/:username/repos", @@ -91565,17 +83062,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .reposListForUser(input, responder, ctx) + .reposListForUser(input, reposListForUserResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91593,9 +83081,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const billingGetGithubActionsBillingUserResponseValidator = - responseValidationFactory([["200", s_actions_billing_usage]], undefined) - router.get( "billingGetGithubActionsBillingUser", "/users/:username/settings/billing/actions", @@ -91611,17 +83096,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .billingGetGithubActionsBillingUser(input, responder, ctx) + .billingGetGithubActionsBillingUser( + input, + billingGetGithubActionsBillingUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91642,9 +83122,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const billingGetGithubPackagesBillingUserResponseValidator = - responseValidationFactory([["200", s_packages_billing_usage]], undefined) - router.get( "billingGetGithubPackagesBillingUser", "/users/:username/settings/billing/packages", @@ -91660,17 +83137,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .billingGetGithubPackagesBillingUser(input, responder, ctx) + .billingGetGithubPackagesBillingUser( + input, + billingGetGithubPackagesBillingUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91691,9 +83163,6 @@ export function createRouter(implementation: Implementation): KoaRouter { username: z.string(), }) - const billingGetSharedStorageBillingUserResponseValidator = - responseValidationFactory([["200", s_combined_billing_usage]], undefined) - router.get( "billingGetSharedStorageBillingUser", "/users/:username/settings/billing/shared-storage", @@ -91709,17 +83178,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .billingGetSharedStorageBillingUser(input, responder, ctx) + .billingGetSharedStorageBillingUser( + input, + billingGetSharedStorageBillingUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91745,9 +83209,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListSocialAccountsForUserResponseValidator = - responseValidationFactory([["200", z.array(s_social_account)]], undefined) - router.get( "usersListSocialAccountsForUser", "/users/:username/social_accounts", @@ -91767,17 +83228,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListSocialAccountsForUser(input, responder, ctx) + .usersListSocialAccountsForUser( + input, + usersListSocialAccountsForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91800,9 +83256,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const usersListSshSigningKeysForUserResponseValidator = - responseValidationFactory([["200", z.array(s_ssh_signing_key)]], undefined) - router.get( "usersListSshSigningKeysForUser", "/users/:username/ssh_signing_keys", @@ -91822,17 +83275,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .usersListSshSigningKeysForUser(input, responder, ctx) + .usersListSshSigningKeysForUser( + input, + usersListSshSigningKeysForUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91857,17 +83305,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListReposStarredByUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.array(s_starred_repository), z.array(s_repository)]), - ], - ], - undefined, - ) - router.get( "activityListReposStarredByUser", "/users/:username/starred", @@ -91887,19 +83324,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_starred_repository[] | t_repository[] - >(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListReposStarredByUser(input, responder, ctx) + .activityListReposStarredByUser( + input, + activityListReposStarredByUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91922,12 +83352,6 @@ export function createRouter(implementation: Implementation): KoaRouter { page: z.coerce.number().optional().default(1), }) - const activityListReposWatchedByUserResponseValidator = - responseValidationFactory( - [["200", z.array(s_minimal_repository)]], - undefined, - ) - router.get( "activityListReposWatchedByUser", "/users/:username/subscriptions", @@ -91947,17 +83371,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .activityListReposWatchedByUser(input, responder, ctx) + .activityListReposWatchedByUser( + input, + activityListReposWatchedByUserResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -91971,14 +83390,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const metaGetAllVersionsResponseValidator = responseValidationFactory( - [ - ["200", z.array(z.string())], - ["404", s_basic_error], - ], - undefined, - ) - router.get("metaGetAllVersions", "/versions", async (ctx, next) => { const input = { params: undefined, @@ -91987,20 +83398,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .metaGetAllVersions(input, responder, ctx) + .metaGetAllVersions(input, metaGetAllVersionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -92013,11 +83412,6 @@ export function createRouter(implementation: Implementation): KoaRouter { return next() }) - const metaGetZenResponseValidator = responseValidationFactory( - [["200", z.string()]], - undefined, - ) - router.get("metaGetZen", "/zen", async (ctx, next) => { const input = { params: undefined, @@ -92026,17 +83420,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .metaGetZen(input, responder, ctx) + .metaGetZen(input, metaGetZenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) diff --git a/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts b/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts index 2d17ea7c9..2733c0755 100644 --- a/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts +++ b/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts @@ -108,6 +108,7 @@ import { Response, ServerConfig, StatusCode, + r, startServer, } from "@nahkies/typescript-koa-runtime/server" import { @@ -116,14 +117,21 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type GetServiceStatusResponder = { - with200(): KoaRuntimeResponse<{ +const getServiceStatusResponder = { + with200: r.with200<{ statusString: string - }> - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetServiceStatusResponder = typeof getServiceStatusResponder & + KoaRuntimeResponder + +const getServiceStatusResponseValidator = responseValidationFactory( + [["200", z.object({ statusString: z.string() })]], + s_Azure_Core_Foundations_ErrorResponse, +) export type GetServiceStatus = ( params: Params< @@ -145,9 +153,9 @@ export type GetServiceStatus = ( | Response > -export type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder = +const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder = { - with200(): KoaRuntimeResponse< + with200: r.with200< | { error?: t_Azure_Core_Foundations_Error id: string @@ -159,11 +167,37 @@ export type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus id: string status: t_Azure_Core_Foundations_OperationState } - > - withDefault( - status: StatusCode, - ): KoaRuntimeResponse - } & KoaRuntimeResponder + >, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder = + typeof widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder & + KoaRuntimeResponder + +const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.union([ + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: s_Widget.optional(), + }), + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + }), + ]), + ], + ], + s_Azure_Core_Foundations_ErrorResponse, + ) export type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus = ( @@ -194,13 +228,23 @@ export type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus | Response > -export type WidgetsCreateOrUpdateWidgetResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetsCreateOrUpdateWidgetResponder = { + with200: r.with200, + with201: r.with201, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetsCreateOrUpdateWidgetResponder = + typeof widgetsCreateOrUpdateWidgetResponder & KoaRuntimeResponder + +const widgetsCreateOrUpdateWidgetResponseValidator = responseValidationFactory( + [ + ["200", s_Widget], + ["201", s_Widget], + ], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetsCreateOrUpdateWidget = ( params: Params< @@ -218,12 +262,19 @@ export type WidgetsCreateOrUpdateWidget = ( | Response > -export type WidgetsGetWidgetResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetsGetWidgetResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetsGetWidgetResponder = typeof widgetsGetWidgetResponder & + KoaRuntimeResponder + +const widgetsGetWidgetResponseValidator = responseValidationFactory( + [["200", s_Widget]], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetsGetWidget = ( params: Params< @@ -240,16 +291,32 @@ export type WidgetsGetWidget = ( | Response > -export type WidgetsDeleteWidgetResponder = { - with202(): KoaRuntimeResponse<{ +const widgetsDeleteWidgetResponder = { + with202: r.with202<{ error?: t_Azure_Core_Foundations_Error id: string status: t_Azure_Core_Foundations_OperationState - }> - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetsDeleteWidgetResponder = typeof widgetsDeleteWidgetResponder & + KoaRuntimeResponder + +const widgetsDeleteWidgetResponseValidator = responseValidationFactory( + [ + [ + "202", + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + }), + ], + ], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetsDeleteWidget = ( params: Params< @@ -273,12 +340,19 @@ export type WidgetsDeleteWidget = ( | Response > -export type WidgetsListWidgetsResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetsListWidgetsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetsListWidgetsResponder = typeof widgetsListWidgetsResponder & + KoaRuntimeResponder + +const widgetsListWidgetsResponseValidator = responseValidationFactory( + [["200", s_PagedWidget]], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetsListWidgets = ( params: Params< @@ -295,12 +369,19 @@ export type WidgetsListWidgets = ( | Response > -export type WidgetsGetAnalyticsResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetsGetAnalyticsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetsGetAnalyticsResponder = typeof widgetsGetAnalyticsResponder & + KoaRuntimeResponder + +const widgetsGetAnalyticsResponseValidator = responseValidationFactory( + [["200", s_WidgetAnalytics]], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetsGetAnalytics = ( params: Params< @@ -317,13 +398,23 @@ export type WidgetsGetAnalytics = ( | Response > -export type WidgetsUpdateAnalyticsResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetsUpdateAnalyticsResponder = { + with200: r.with200, + with201: r.with201, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetsUpdateAnalyticsResponder = typeof widgetsUpdateAnalyticsResponder & + KoaRuntimeResponder + +const widgetsUpdateAnalyticsResponseValidator = responseValidationFactory( + [ + ["200", s_WidgetAnalytics], + ["201", s_WidgetAnalytics], + ], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetsUpdateAnalytics = ( params: Params< @@ -341,17 +432,34 @@ export type WidgetsUpdateAnalytics = ( | Response > -export type WidgetsGetRepairStatusResponder = { - with200(): KoaRuntimeResponse<{ +const widgetsGetRepairStatusResponder = { + with200: r.with200<{ error?: t_Azure_Core_Foundations_Error id: string result?: t_WidgetRepairRequest status: t_Azure_Core_Foundations_OperationState - }> - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetsGetRepairStatusResponder = typeof widgetsGetRepairStatusResponder & + KoaRuntimeResponder + +const widgetsGetRepairStatusResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: s_WidgetRepairRequest.optional(), + }), + ], + ], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetsGetRepairStatus = ( params: Params< @@ -376,8 +484,8 @@ export type WidgetsGetRepairStatus = ( | Response > -export type WidgetsScheduleRepairsResponder = { - with202(): KoaRuntimeResponse<{ +const widgetsScheduleRepairsResponder = { + with202: r.with202<{ error?: t_Azure_Core_Foundations_Error id: string result?: { @@ -388,11 +496,36 @@ export type WidgetsScheduleRepairsResponder = { updatedDateTime: string } status: t_Azure_Core_Foundations_OperationState - }> - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetsScheduleRepairsResponder = typeof widgetsScheduleRepairsResponder & + KoaRuntimeResponder + +const widgetsScheduleRepairsResponseValidator = responseValidationFactory( + [ + [ + "202", + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: z + .object({ + requestState: s_WidgetRepairState, + scheduledDateTime: z.string().datetime({ offset: true }), + createdDateTime: z.string().datetime({ offset: true }), + updatedDateTime: z.string().datetime({ offset: true }), + completedDateTime: z.string().datetime({ offset: true }), + }) + .optional(), + }), + ], + ], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetsScheduleRepairs = ( params: Params< @@ -423,17 +556,35 @@ export type WidgetsScheduleRepairs = ( | Response > -export type WidgetPartsGetWidgetPartOperationStatusResponder = { - with200(): KoaRuntimeResponse<{ +const widgetPartsGetWidgetPartOperationStatusResponder = { + with200: r.with200<{ error?: t_Azure_Core_Foundations_Error id: string result?: t_WidgetPart status: t_Azure_Core_Foundations_OperationState - }> - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetPartsGetWidgetPartOperationStatusResponder = + typeof widgetPartsGetWidgetPartOperationStatusResponder & KoaRuntimeResponder + +const widgetPartsGetWidgetPartOperationStatusResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: s_WidgetPart.optional(), + }), + ], + ], + s_Azure_Core_Foundations_ErrorResponse, + ) export type WidgetPartsGetWidgetPartOperationStatus = ( params: Params< @@ -458,12 +609,19 @@ export type WidgetPartsGetWidgetPartOperationStatus = ( | Response > -export type WidgetPartsCreateWidgetPartResponder = { - with201(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetPartsCreateWidgetPartResponder = { + with201: r.with201, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetPartsCreateWidgetPartResponder = + typeof widgetPartsCreateWidgetPartResponder & KoaRuntimeResponder + +const widgetPartsCreateWidgetPartResponseValidator = responseValidationFactory( + [["201", z.undefined()]], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetPartsCreateWidgetPart = ( params: Params< @@ -480,12 +638,19 @@ export type WidgetPartsCreateWidgetPart = ( | Response > -export type WidgetPartsListWidgetPartsResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetPartsListWidgetPartsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetPartsListWidgetPartsResponder = + typeof widgetPartsListWidgetPartsResponder & KoaRuntimeResponder + +const widgetPartsListWidgetPartsResponseValidator = responseValidationFactory( + [["200", s_PagedWidgetPart]], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetPartsListWidgetParts = ( params: Params< @@ -502,12 +667,19 @@ export type WidgetPartsListWidgetParts = ( | Response > -export type WidgetPartsGetWidgetPartResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetPartsGetWidgetPartResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetPartsGetWidgetPartResponder = + typeof widgetPartsGetWidgetPartResponder & KoaRuntimeResponder + +const widgetPartsGetWidgetPartResponseValidator = responseValidationFactory( + [["200", s_WidgetPart]], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetPartsGetWidgetPart = ( params: Params< @@ -524,12 +696,19 @@ export type WidgetPartsGetWidgetPart = ( | Response > -export type WidgetPartsDeleteWidgetPartResponder = { - with204(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const widgetPartsDeleteWidgetPartResponder = { + with204: r.with204, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetPartsDeleteWidgetPartResponder = + typeof widgetPartsDeleteWidgetPartResponder & KoaRuntimeResponder + +const widgetPartsDeleteWidgetPartResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetPartsDeleteWidgetPart = ( params: Params< @@ -546,16 +725,32 @@ export type WidgetPartsDeleteWidgetPart = ( | Response > -export type WidgetPartsReorderPartsResponder = { - with202(): KoaRuntimeResponse<{ +const widgetPartsReorderPartsResponder = { + with202: r.with202<{ error?: t_Azure_Core_Foundations_Error id: string status: t_Azure_Core_Foundations_OperationState - }> - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type WidgetPartsReorderPartsResponder = + typeof widgetPartsReorderPartsResponder & KoaRuntimeResponder + +const widgetPartsReorderPartsResponseValidator = responseValidationFactory( + [ + [ + "202", + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + }), + ], + ], + s_Azure_Core_Foundations_ErrorResponse, +) export type WidgetPartsReorderParts = ( params: Params< @@ -579,17 +774,36 @@ export type WidgetPartsReorderParts = ( | Response > -export type ManufacturersGetManufacturerOperationStatusResponder = { - with200(): KoaRuntimeResponse<{ +const manufacturersGetManufacturerOperationStatusResponder = { + with200: r.with200<{ error?: t_Azure_Core_Foundations_Error id: string result?: t_Manufacturer status: t_Azure_Core_Foundations_OperationState - }> - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type ManufacturersGetManufacturerOperationStatusResponder = + typeof manufacturersGetManufacturerOperationStatusResponder & + KoaRuntimeResponder + +const manufacturersGetManufacturerOperationStatusResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: s_Manufacturer.optional(), + }), + ], + ], + s_Azure_Core_Foundations_ErrorResponse, + ) export type ManufacturersGetManufacturerOperationStatus = ( params: Params< @@ -614,13 +828,24 @@ export type ManufacturersGetManufacturerOperationStatus = ( | Response > -export type ManufacturersCreateOrReplaceManufacturerResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const manufacturersCreateOrReplaceManufacturerResponder = { + with200: r.with200, + with201: r.with201, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type ManufacturersCreateOrReplaceManufacturerResponder = + typeof manufacturersCreateOrReplaceManufacturerResponder & KoaRuntimeResponder + +const manufacturersCreateOrReplaceManufacturerResponseValidator = + responseValidationFactory( + [ + ["200", s_Manufacturer], + ["201", s_Manufacturer], + ], + s_Azure_Core_Foundations_ErrorResponse, + ) export type ManufacturersCreateOrReplaceManufacturer = ( params: Params< @@ -638,12 +863,19 @@ export type ManufacturersCreateOrReplaceManufacturer = ( | Response > -export type ManufacturersGetManufacturerResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const manufacturersGetManufacturerResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type ManufacturersGetManufacturerResponder = + typeof manufacturersGetManufacturerResponder & KoaRuntimeResponder + +const manufacturersGetManufacturerResponseValidator = responseValidationFactory( + [["200", s_Manufacturer]], + s_Azure_Core_Foundations_ErrorResponse, +) export type ManufacturersGetManufacturer = ( params: Params< @@ -660,16 +892,33 @@ export type ManufacturersGetManufacturer = ( | Response > -export type ManufacturersDeleteManufacturerResponder = { - with202(): KoaRuntimeResponse<{ +const manufacturersDeleteManufacturerResponder = { + with202: r.with202<{ error?: t_Azure_Core_Foundations_Error id: string status: t_Azure_Core_Foundations_OperationState - }> - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type ManufacturersDeleteManufacturerResponder = + typeof manufacturersDeleteManufacturerResponder & KoaRuntimeResponder + +const manufacturersDeleteManufacturerResponseValidator = + responseValidationFactory( + [ + [ + "202", + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + }), + ], + ], + s_Azure_Core_Foundations_ErrorResponse, + ) export type ManufacturersDeleteManufacturer = ( params: Params< @@ -693,12 +942,20 @@ export type ManufacturersDeleteManufacturer = ( | Response > -export type ManufacturersListManufacturersResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const manufacturersListManufacturersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type ManufacturersListManufacturersResponder = + typeof manufacturersListManufacturersResponder & KoaRuntimeResponder + +const manufacturersListManufacturersResponseValidator = + responseValidationFactory( + [["200", s_PagedManufacturer]], + s_Azure_Core_Foundations_ErrorResponse, + ) export type ManufacturersListManufacturers = ( params: Params< @@ -750,11 +1007,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const getServiceStatusResponseValidator = responseValidationFactory( - [["200", z.object({ statusString: z.string() })]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get("getServiceStatus", "/service-status", async (ctx, next) => { const input = { params: undefined, @@ -771,24 +1023,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - statusString: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getServiceStatus(input, responder, ctx) + .getServiceStatus(input, getServiceStatusResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -807,29 +1043,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusQuerySchema = z.object({ "api-version": z.string().min(1) }) - const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: s_Widget.optional(), - }), - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - }), - ]), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus", "/widgets/:widgetName/operations/:operationId", @@ -849,36 +1062,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - | { - error?: t_Azure_Core_Foundations_Error - id: string - result?: t_Widget - status: t_Azure_Core_Foundations_OperationState - } - | { - error?: t_Azure_Core_Foundations_Error - id: string - status: t_Azure_Core_Foundations_OperationState - } - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus( input, - responder, + widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder, ctx, ) .catch((err) => { @@ -918,15 +1105,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const widgetsCreateOrUpdateWidgetBodySchema = s_WidgetCreateOrUpdate - const widgetsCreateOrUpdateWidgetResponseValidator = - responseValidationFactory( - [ - ["200", s_Widget], - ["201", s_Widget], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.patch( "widgetsCreateOrUpdateWidget", "/widgets/:widgetName", @@ -954,25 +1132,12 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetsCreateOrUpdateWidget(input, responder, ctx) + .widgetsCreateOrUpdateWidget( + input, + widgetsCreateOrUpdateWidgetResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1000,11 +1165,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const widgetsGetWidgetResponseValidator = responseValidationFactory( - [["200", s_Widget]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get("widgetsGetWidget", "/widgets/:widgetName", async (ctx, next) => { const input = { params: parseRequestInput( @@ -1025,22 +1185,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetsGetWidget(input, responder, ctx) + .widgetsGetWidget(input, widgetsGetWidgetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1069,20 +1215,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const widgetsDeleteWidgetResponseValidator = responseValidationFactory( - [ - [ - "202", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.delete( "widgetsDeleteWidget", "/widgets/:widgetName", @@ -1106,26 +1238,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - error?: t_Azure_Core_Foundations_Error - id: string - status: t_Azure_Core_Foundations_OperationState - }>(202) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetsDeleteWidget(input, responder, ctx) + .widgetsDeleteWidget(input, widgetsDeleteWidgetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1156,11 +1270,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const widgetsListWidgetsResponseValidator = responseValidationFactory( - [["200", s_PagedWidget]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get("widgetsListWidgets", "/widgets", async (ctx, next) => { const input = { params: undefined, @@ -1177,22 +1286,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetsListWidgets(input, responder, ctx) + .widgetsListWidgets(input, widgetsListWidgetsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1219,11 +1314,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const widgetsGetAnalyticsResponseValidator = responseValidationFactory( - [["200", s_WidgetAnalytics]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "widgetsGetAnalytics", "/widgets/:widgetName/analytics/current", @@ -1247,22 +1337,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetsGetAnalytics(input, responder, ctx) + .widgetsGetAnalytics(input, widgetsGetAnalyticsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1294,14 +1370,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const widgetsUpdateAnalyticsBodySchema = s_WidgetAnalyticsCreateOrUpdate - const widgetsUpdateAnalyticsResponseValidator = responseValidationFactory( - [ - ["200", s_WidgetAnalytics], - ["201", s_WidgetAnalytics], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.patch( "widgetsUpdateAnalytics", "/widgets/:widgetName/analytics/current", @@ -1329,25 +1397,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetsUpdateAnalytics(input, responder, ctx) + .widgetsUpdateAnalytics(input, widgetsUpdateAnalyticsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1370,21 +1421,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "api-version": z.string().min(1), }) - const widgetsGetRepairStatusResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: s_WidgetRepairRequest.optional(), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "widgetsGetRepairStatus", "/widgets/:widgetId/repairs/:operationId", @@ -1404,27 +1440,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - error?: t_Azure_Core_Foundations_Error - id: string - result?: t_WidgetRepairRequest - status: t_Azure_Core_Foundations_OperationState - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetsGetRepairStatus(input, responder, ctx) + .widgetsGetRepairStatus(input, widgetsGetRepairStatusResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1452,29 +1469,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const widgetsScheduleRepairsBodySchema = s_WidgetRepairRequest - const widgetsScheduleRepairsResponseValidator = responseValidationFactory( - [ - [ - "202", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: z - .object({ - requestState: s_WidgetRepairState, - scheduledDateTime: z.string().datetime({ offset: true }), - createdDateTime: z.string().datetime({ offset: true }), - updatedDateTime: z.string().datetime({ offset: true }), - completedDateTime: z.string().datetime({ offset: true }), - }) - .optional(), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.post( "widgetsScheduleRepairs", "/widgets/:widgetName:scheduleRepairs", @@ -1502,33 +1496,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - error?: t_Azure_Core_Foundations_Error - id: string - result?: { - completedDateTime: string - createdDateTime: string - requestState: t_WidgetRepairState - scheduledDateTime: string - updatedDateTime: string - } - status: t_Azure_Core_Foundations_OperationState - }>(202) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetsScheduleRepairs(input, responder, ctx) + .widgetsScheduleRepairs(input, widgetsScheduleRepairsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1552,22 +1521,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "api-version": z.string().min(1), }) - const widgetPartsGetWidgetPartOperationStatusResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: s_WidgetPart.optional(), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "widgetPartsGetWidgetPartOperationStatus", "/widgets/:widgetName/parts/:widgetPartName/operations/:operationId", @@ -1587,27 +1540,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - error?: t_Azure_Core_Foundations_Error - id: string - result?: t_WidgetPart - status: t_Azure_Core_Foundations_OperationState - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetPartsGetWidgetPartOperationStatus(input, responder, ctx) + .widgetPartsGetWidgetPartOperationStatus( + input, + widgetPartsGetWidgetPartOperationStatusResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1644,12 +1582,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const widgetPartsCreateWidgetPartBodySchema = s_WidgetPart - const widgetPartsCreateWidgetPartResponseValidator = - responseValidationFactory( - [["201", z.undefined()]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.post( "widgetPartsCreateWidgetPart", "/widgets/:widgetName/parts", @@ -1677,22 +1609,12 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetPartsCreateWidgetPart(input, responder, ctx) + .widgetPartsCreateWidgetPart( + input, + widgetPartsCreateWidgetPartResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1718,11 +1640,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const widgetPartsListWidgetPartsResponseValidator = responseValidationFactory( - [["200", s_PagedWidgetPart]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "widgetPartsListWidgetParts", "/widgets/:widgetName/parts", @@ -1746,22 +1663,12 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetPartsListWidgetParts(input, responder, ctx) + .widgetPartsListWidgetParts( + input, + widgetPartsListWidgetPartsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1792,11 +1699,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const widgetPartsGetWidgetPartResponseValidator = responseValidationFactory( - [["200", s_WidgetPart]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "widgetPartsGetWidgetPart", "/widgets/:widgetName/parts/:widgetPartName", @@ -1820,22 +1722,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetPartsGetWidgetPart(input, responder, ctx) + .widgetPartsGetWidgetPart(input, widgetPartsGetWidgetPartResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1868,12 +1756,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const widgetPartsDeleteWidgetPartResponseValidator = - responseValidationFactory( - [["204", z.undefined()]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.delete( "widgetPartsDeleteWidgetPart", "/widgets/:widgetName/parts/:widgetPartName", @@ -1897,22 +1779,12 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetPartsDeleteWidgetPart(input, responder, ctx) + .widgetPartsDeleteWidgetPart( + input, + widgetPartsDeleteWidgetPartResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1942,20 +1814,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const widgetPartsReorderPartsBodySchema = s_WidgetPartReorderRequest - const widgetPartsReorderPartsResponseValidator = responseValidationFactory( - [ - [ - "202", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.post( "widgetPartsReorderParts", "/widgets/:widgetName/parts:reorderParts", @@ -1983,26 +1841,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - error?: t_Azure_Core_Foundations_Error - id: string - status: t_Azure_Core_Foundations_OperationState - }>(202) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .widgetPartsReorderParts(input, responder, ctx) + .widgetPartsReorderParts(input, widgetPartsReorderPartsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2025,22 +1865,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "api-version": z.string().min(1), }) - const manufacturersGetManufacturerOperationStatusResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: s_Manufacturer.optional(), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "manufacturersGetManufacturerOperationStatus", "/manufacturers/:manufacturerId/operations/:operationId", @@ -2060,27 +1884,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - error?: t_Azure_Core_Foundations_Error - id: string - result?: t_Manufacturer - status: t_Azure_Core_Foundations_OperationState - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .manufacturersGetManufacturerOperationStatus(input, responder, ctx) + .manufacturersGetManufacturerOperationStatus( + input, + manufacturersGetManufacturerOperationStatusResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2117,15 +1926,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const manufacturersCreateOrReplaceManufacturerBodySchema = s_Manufacturer - const manufacturersCreateOrReplaceManufacturerResponseValidator = - responseValidationFactory( - [ - ["200", s_Manufacturer], - ["201", s_Manufacturer], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.put( "manufacturersCreateOrReplaceManufacturer", "/manufacturers/:manufacturerId", @@ -2153,25 +1953,12 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .manufacturersCreateOrReplaceManufacturer(input, responder, ctx) + .manufacturersCreateOrReplaceManufacturer( + input, + manufacturersCreateOrReplaceManufacturerResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2204,12 +1991,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const manufacturersGetManufacturerResponseValidator = - responseValidationFactory( - [["200", s_Manufacturer]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "manufacturersGetManufacturer", "/manufacturers/:manufacturerId", @@ -2233,22 +2014,12 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .manufacturersGetManufacturer(input, responder, ctx) + .manufacturersGetManufacturer( + input, + manufacturersGetManufacturerResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2280,21 +2051,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const manufacturersDeleteManufacturerResponseValidator = - responseValidationFactory( - [ - [ - "202", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.delete( "manufacturersDeleteManufacturer", "/manufacturers/:manufacturerId", @@ -2318,26 +2074,12 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with202() { - return new KoaRuntimeResponse<{ - error?: t_Azure_Core_Foundations_Error - id: string - status: t_Azure_Core_Foundations_OperationState - }>(202) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .manufacturersDeleteManufacturer(input, responder, ctx) + .manufacturersDeleteManufacturer( + input, + manufacturersDeleteManufacturerResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2359,12 +2101,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "x-ms-client-request-id": s_Azure_Core_uuid.optional(), }) - const manufacturersListManufacturersResponseValidator = - responseValidationFactory( - [["200", s_PagedManufacturer]], - s_Azure_Core_Foundations_ErrorResponse, - ) - router.get( "manufacturersListManufacturers", "/manufacturers", @@ -2384,22 +2120,12 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .manufacturersListManufacturers(input, responder, ctx) + .manufacturersListManufacturers( + input, + manufacturersListManufacturersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) diff --git a/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts b/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts index 8c3a1a8f3..e80016a21 100644 --- a/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts +++ b/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts @@ -51,6 +51,7 @@ import { Response, ServerConfig, StatusCode, + r, startServer, } from "@nahkies/typescript-koa-runtime/server" import { @@ -59,12 +60,19 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type OperationsListResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const operationsListResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type OperationsListResponder = typeof operationsListResponder & + KoaRuntimeResponder + +const operationsListResponseValidator = responseValidationFactory( + [["200", s_OperationListResult]], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type OperationsList = ( params: Params, @@ -76,12 +84,18 @@ export type OperationsList = ( | Response > -export type EmployeesGetResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const employeesGetResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type EmployeesGetResponder = typeof employeesGetResponder & KoaRuntimeResponder + +const employeesGetResponseValidator = responseValidationFactory( + [["200", s_Employee]], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type EmployeesGet = ( params: Params< @@ -98,13 +112,23 @@ export type EmployeesGet = ( | Response > -export type EmployeesCreateOrUpdateResponder = { - with200(): KoaRuntimeResponse - with201(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const employeesCreateOrUpdateResponder = { + with200: r.with200, + with201: r.with201, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type EmployeesCreateOrUpdateResponder = + typeof employeesCreateOrUpdateResponder & KoaRuntimeResponder + +const employeesCreateOrUpdateResponseValidator = responseValidationFactory( + [ + ["200", s_Employee], + ["201", s_Employee], + ], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type EmployeesCreateOrUpdate = ( params: Params< @@ -122,12 +146,19 @@ export type EmployeesCreateOrUpdate = ( | Response > -export type EmployeesUpdateResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const employeesUpdateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type EmployeesUpdateResponder = typeof employeesUpdateResponder & + KoaRuntimeResponder + +const employeesUpdateResponseValidator = responseValidationFactory( + [["200", s_Employee]], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type EmployeesUpdate = ( params: Params< @@ -144,13 +175,23 @@ export type EmployeesUpdate = ( | Response > -export type EmployeesDeleteResponder = { - with202(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const employeesDeleteResponder = { + with202: r.with202, + with204: r.with204, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type EmployeesDeleteResponder = typeof employeesDeleteResponder & + KoaRuntimeResponder + +const employeesDeleteResponseValidator = responseValidationFactory( + [ + ["202", z.undefined()], + ["204", z.undefined()], + ], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type EmployeesDelete = ( params: Params< @@ -168,13 +209,23 @@ export type EmployeesDelete = ( | Response > -export type EmployeesCheckExistenceResponder = { - with204(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const employeesCheckExistenceResponder = { + with204: r.with204, + with404: r.with404, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type EmployeesCheckExistenceResponder = + typeof employeesCheckExistenceResponder & KoaRuntimeResponder + +const employeesCheckExistenceResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["404", z.undefined()], + ], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type EmployeesCheckExistence = ( params: Params< @@ -192,12 +243,19 @@ export type EmployeesCheckExistence = ( | Response > -export type EmployeesListByResourceGroupResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const employeesListByResourceGroupResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type EmployeesListByResourceGroupResponder = + typeof employeesListByResourceGroupResponder & KoaRuntimeResponder + +const employeesListByResourceGroupResponseValidator = responseValidationFactory( + [["200", s_EmployeeListResult]], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type EmployeesListByResourceGroup = ( params: Params< @@ -214,12 +272,19 @@ export type EmployeesListByResourceGroup = ( | Response > -export type EmployeesListBySubscriptionResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const employeesListBySubscriptionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type EmployeesListBySubscriptionResponder = + typeof employeesListBySubscriptionResponder & KoaRuntimeResponder + +const employeesListBySubscriptionResponseValidator = responseValidationFactory( + [["200", s_EmployeeListResult]], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type EmployeesListBySubscription = ( params: Params< @@ -236,12 +301,19 @@ export type EmployeesListBySubscription = ( | Response > -export type EmployeesMoveResponder = { - with200(): KoaRuntimeResponse - withDefault( - status: StatusCode, - ): KoaRuntimeResponse -} & KoaRuntimeResponder +const employeesMoveResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type EmployeesMoveResponder = typeof employeesMoveResponder & + KoaRuntimeResponder + +const employeesMoveResponseValidator = responseValidationFactory( + [["200", s_MoveResponse]], + s_Azure_ResourceManager_CommonTypes_ErrorResponse, +) export type EmployeesMove = ( params: Params< @@ -277,11 +349,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "api-version": z.string().min(1), }) - const operationsListResponseValidator = responseValidationFactory( - [["200", s_OperationListResult]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.get( "operationsList", "/providers/Microsoft.ContosoProviderHub/operations", @@ -297,22 +364,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .operationsList(input, responder, ctx) + .operationsList(input, operationsListResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -338,11 +391,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const employeesGetQuerySchema = z.object({ "api-version": z.string().min(1) }) - const employeesGetResponseValidator = responseValidationFactory( - [["200", s_Employee]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.get( "employeesGet", "/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.ContosoProviderHub/employees/:employeeName", @@ -362,22 +410,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .employeesGet(input, responder, ctx) + .employeesGet(input, employeesGetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -407,14 +441,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const employeesCreateOrUpdateBodySchema = s_Employee - const employeesCreateOrUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_Employee], - ["201", s_Employee], - ], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.put( "employeesCreateOrUpdate", "/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.ContosoProviderHub/employees/:employeeName", @@ -438,25 +464,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with201() { - return new KoaRuntimeResponse(201) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .employeesCreateOrUpdate(input, responder, ctx) + .employeesCreateOrUpdate(input, employeesCreateOrUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -486,11 +495,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const employeesUpdateBodySchema = s_EmployeeUpdate - const employeesUpdateResponseValidator = responseValidationFactory( - [["200", s_Employee]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.patch( "employeesUpdate", "/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.ContosoProviderHub/employees/:employeeName", @@ -514,22 +518,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .employeesUpdate(input, responder, ctx) + .employeesUpdate(input, employeesUpdateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -557,14 +547,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "api-version": z.string().min(1), }) - const employeesDeleteResponseValidator = responseValidationFactory( - [ - ["202", z.undefined()], - ["204", z.undefined()], - ], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.delete( "employeesDelete", "/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.ContosoProviderHub/employees/:employeeName", @@ -584,25 +566,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .employeesDelete(input, responder, ctx) + .employeesDelete(input, employeesDeleteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -630,14 +595,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "api-version": z.string().min(1), }) - const employeesCheckExistenceResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.head( "employeesCheckExistence", "/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.ContosoProviderHub/employees/:employeeName", @@ -657,25 +614,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .employeesCheckExistence(input, responder, ctx) + .employeesCheckExistence(input, employeesCheckExistenceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -702,12 +642,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "api-version": z.string().min(1), }) - const employeesListByResourceGroupResponseValidator = - responseValidationFactory( - [["200", s_EmployeeListResult]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.get( "employeesListByResourceGroup", "/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.ContosoProviderHub/employees", @@ -727,22 +661,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .employeesListByResourceGroup(input, responder, ctx) + .employeesListByResourceGroup( + input, + employeesListByResourceGroupResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -764,12 +688,6 @@ export function createRouter(implementation: Implementation): KoaRouter { "api-version": z.string().min(1), }) - const employeesListBySubscriptionResponseValidator = - responseValidationFactory( - [["200", s_EmployeeListResult]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.get( "employeesListBySubscription", "/subscriptions/:subscriptionId/providers/Microsoft.ContosoProviderHub/employees", @@ -789,22 +707,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .employeesListBySubscription(input, responder, ctx) + .employeesListBySubscription( + input, + employeesListBySubscriptionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -834,11 +742,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const employeesMoveBodySchema = s_MoveRequest - const employeesMoveResponseValidator = responseValidationFactory( - [["200", s_MoveResponse]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, - ) - router.post( "employeesMove", "/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.ContosoProviderHub/employees/:employeeName/move", @@ -862,22 +765,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse( - status, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .employeesMove(input, responder, ctx) + .employeesMove(input, employeesMoveResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) diff --git a/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts index fa346e2d3..fe22163c6 100644 --- a/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts @@ -78,7 +78,7 @@ import { Params, Response, ServerConfig, - StatusCode, + r, startServer, } from "@nahkies/typescript-koa-runtime/server" import { @@ -87,13 +87,29 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type CreateAppAuthenticatorEnrollmentResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const createAppAuthenticatorEnrollmentResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type CreateAppAuthenticatorEnrollmentResponder = + typeof createAppAuthenticatorEnrollmentResponder & KoaRuntimeResponder + +const createAppAuthenticatorEnrollmentResponseValidator = + responseValidationFactory( + [ + ["200", s_AppAuthenticatorEnrollment], + ["400", s_Error], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ], + undefined, + ) export type CreateAppAuthenticatorEnrollment = ( params: Params< @@ -113,11 +129,26 @@ export type CreateAppAuthenticatorEnrollment = ( | Response<404, t_Error> > -export type VerifyAppAuthenticatorPushNotificationChallengeResponder = { - with200(): KoaRuntimeResponse - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse -} & KoaRuntimeResponder +const verifyAppAuthenticatorPushNotificationChallengeResponder = { + with200: r.with200, + with204: r.with204, + with400: r.with400, + withStatus: r.withStatus, +} + +type VerifyAppAuthenticatorPushNotificationChallengeResponder = + typeof verifyAppAuthenticatorPushNotificationChallengeResponder & + KoaRuntimeResponder + +const verifyAppAuthenticatorPushNotificationChallengeResponseValidator = + responseValidationFactory( + [ + ["200", z.undefined()], + ["204", z.undefined()], + ["400", z.undefined()], + ], + undefined, + ) export type VerifyAppAuthenticatorPushNotificationChallenge = ( params: Params< @@ -135,12 +166,27 @@ export type VerifyAppAuthenticatorPushNotificationChallenge = ( | Response<400, void> > -export type UpdateAppAuthenticatorEnrollmentResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const updateAppAuthenticatorEnrollmentResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UpdateAppAuthenticatorEnrollmentResponder = + typeof updateAppAuthenticatorEnrollmentResponder & KoaRuntimeResponder + +const updateAppAuthenticatorEnrollmentResponseValidator = + responseValidationFactory( + [ + ["200", s_AppAuthenticatorEnrollment], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ], + undefined, + ) export type UpdateAppAuthenticatorEnrollment = ( params: Params< @@ -159,12 +205,27 @@ export type UpdateAppAuthenticatorEnrollment = ( | Response<404, t_Error> > -export type DeleteAppAuthenticatorEnrollmentResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteAppAuthenticatorEnrollmentResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type DeleteAppAuthenticatorEnrollmentResponder = + typeof deleteAppAuthenticatorEnrollmentResponder & KoaRuntimeResponder + +const deleteAppAuthenticatorEnrollmentResponseValidator = + responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ], + undefined, + ) export type DeleteAppAuthenticatorEnrollment = ( params: Params< @@ -183,10 +244,24 @@ export type DeleteAppAuthenticatorEnrollment = ( | Response<404, t_Error> > -export type ListAppAuthenticatorPendingPushNotificationChallengesResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const listAppAuthenticatorPendingPushNotificationChallengesResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type ListAppAuthenticatorPendingPushNotificationChallengesResponder = + typeof listAppAuthenticatorPendingPushNotificationChallengesResponder & + KoaRuntimeResponder + +const listAppAuthenticatorPendingPushNotificationChallengesResponseValidator = + responseValidationFactory( + [ + ["200", z.array(s_PushNotificationChallenge)], + ["401", s_Error], + ], + undefined, + ) export type ListAppAuthenticatorPendingPushNotificationChallenges = ( params: Params< @@ -203,11 +278,24 @@ export type ListAppAuthenticatorPendingPushNotificationChallenges = ( | Response<401, t_Error> > -export type ListAuthenticatorsResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const listAuthenticatorsResponder = { + with200: r.with200, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type ListAuthenticatorsResponder = typeof listAuthenticatorsResponder & + KoaRuntimeResponder + +const listAuthenticatorsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_Authenticator)], + ["403", s_Error], + ["429", s_Error], + ], + undefined, +) export type ListAuthenticators = ( params: Params, @@ -220,12 +308,26 @@ export type ListAuthenticators = ( | Response<429, t_Error> > -export type GetAuthenticatorResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAuthenticatorResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with429: r.with429, + withStatus: r.withStatus, +} + +type GetAuthenticatorResponder = typeof getAuthenticatorResponder & + KoaRuntimeResponder + +const getAuthenticatorResponseValidator = responseValidationFactory( + [ + ["200", s_Authenticator], + ["403", s_Error], + ["404", s_Error], + ["429", s_Error], + ], + undefined, +) export type GetAuthenticator = ( params: Params< @@ -244,12 +346,26 @@ export type GetAuthenticator = ( | Response<429, t_Error> > -export type ListEnrollmentsResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const listEnrollmentsResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with429: r.with429, + withStatus: r.withStatus, +} + +type ListEnrollmentsResponder = typeof listEnrollmentsResponder & + KoaRuntimeResponder + +const listEnrollmentsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_AuthenticatorEnrollment)], + ["403", s_Error], + ["404", s_Error], + ["429", s_Error], + ], + undefined, +) export type ListEnrollments = ( params: Params, @@ -263,12 +379,26 @@ export type ListEnrollments = ( | Response<429, t_Error> > -export type GetEnrollmentResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getEnrollmentResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with429: r.with429, + withStatus: r.withStatus, +} + +type GetEnrollmentResponder = typeof getEnrollmentResponder & + KoaRuntimeResponder + +const getEnrollmentResponseValidator = responseValidationFactory( + [ + ["200", s_AuthenticatorEnrollment], + ["403", s_Error], + ["404", s_Error], + ["429", s_Error], + ], + undefined, +) export type GetEnrollment = ( params: Params, @@ -282,12 +412,26 @@ export type GetEnrollment = ( | Response<429, t_Error> > -export type UpdateEnrollmentResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const updateEnrollmentResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type UpdateEnrollmentResponder = typeof updateEnrollmentResponder & + KoaRuntimeResponder + +const updateEnrollmentResponseValidator = responseValidationFactory( + [ + ["200", s_AuthenticatorEnrollment], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ], + undefined, +) export type UpdateEnrollment = ( params: Params< @@ -306,10 +450,21 @@ export type UpdateEnrollment = ( | Response<404, t_Error> > -export type ListEmailsResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const listEmailsResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type ListEmailsResponder = typeof listEmailsResponder & KoaRuntimeResponder + +const listEmailsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_Email)], + ["401", s_Error], + ], + undefined, +) export type ListEmails = ( params: Params, @@ -321,13 +476,27 @@ export type ListEmails = ( | Response<401, t_Error> > -export type CreateEmailResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const createEmailResponder = { + with201: r.with201, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with409: r.with409, + withStatus: r.withStatus, +} + +type CreateEmailResponder = typeof createEmailResponder & KoaRuntimeResponder + +const createEmailResponseValidator = responseValidationFactory( + [ + ["201", s_Email], + ["400", s_Error], + ["401", s_Error], + ["403", s_Error], + ["409", s_Error], + ], + undefined, +) export type CreateEmail = ( params: Params, @@ -342,10 +511,21 @@ export type CreateEmail = ( | Response<409, t_Error> > -export type GetEmailResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getEmailResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type GetEmailResponder = typeof getEmailResponder & KoaRuntimeResponder + +const getEmailResponseValidator = responseValidationFactory( + [ + ["200", s_Email], + ["401", s_Error], + ], + undefined, +) export type GetEmail = ( params: Params, @@ -355,12 +535,25 @@ export type GetEmail = ( KoaRuntimeResponse | Response<200, t_Email> | Response<401, t_Error> > -export type DeleteEmailResponder = { - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteEmailResponder = { + with204: r.with204, + with400: r.with400, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type DeleteEmailResponder = typeof deleteEmailResponder & KoaRuntimeResponder + +const deleteEmailResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["400", s_Error], + ["401", s_Error], + ["404", s_Error], + ], + undefined, +) export type DeleteEmail = ( params: Params, @@ -374,8 +567,8 @@ export type DeleteEmail = ( | Response<404, t_Error> > -export type SendEmailChallengeResponder = { - with201(): KoaRuntimeResponse<{ +const sendEmailChallengeResponder = { + with201: r.with201<{ _links: { poll: { hints: { @@ -396,11 +589,43 @@ export type SendEmailChallengeResponder = { email: string } status: "VERIFIED" | "UNVERIFIED" - }> - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type SendEmailChallengeResponder = typeof sendEmailChallengeResponder & + KoaRuntimeResponder + +const sendEmailChallengeResponseValidator = responseValidationFactory( + [ + [ + "201", + z.object({ + id: z.string().min(1), + status: z.enum(["VERIFIED", "UNVERIFIED"]), + expiresAt: z.string().min(1), + profile: z.object({ email: z.string().min(1) }), + _links: z.object({ + verify: z.object({ + href: z.string().min(1), + hints: z.object({ allow: z.array(z.enum(["POST"])) }), + }), + poll: z.object({ + href: z.string().min(1), + hints: z.object({ allow: z.array(z.enum(["GET"])) }), + }), + }), + }), + ], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ], + undefined, +) export type SendEmailChallenge = ( params: Params< @@ -443,8 +668,8 @@ export type SendEmailChallenge = ( | Response<404, t_Error> > -export type PollChallengeForEmailMagicLinkResponder = { - with200(): KoaRuntimeResponse<{ +const pollChallengeForEmailMagicLinkResponder = { + with200: r.with200<{ _links: { poll: { hints: { @@ -465,10 +690,46 @@ export type PollChallengeForEmailMagicLinkResponder = { email: string } status: "VERIFIED" | "UNVERIFIED" - }> - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type PollChallengeForEmailMagicLinkResponder = + typeof pollChallengeForEmailMagicLinkResponder & KoaRuntimeResponder + +const pollChallengeForEmailMagicLinkResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + id: z.string().min(1), + status: z.enum(["VERIFIED", "UNVERIFIED"]), + expiresAt: z.string().min(1), + profile: z.object({ email: z.string().min(1) }), + _links: z.object({ + verify: z.object({ + href: z.string().min(1), + hints: z.object({ + allow: z.array(z.enum(["DELETE", "GET", "POST", "PUT"])), + }), + }), + poll: z.object({ + href: z.string().min(1), + hints: z.object({ + allow: z.array(z.enum(["DELETE", "GET", "POST", "PUT"])), + }), + }), + }), + }), + ], + ["401", s_Error], + ["404", s_Error], + ], + undefined, + ) export type PollChallengeForEmailMagicLink = ( params: Params, @@ -505,12 +766,26 @@ export type PollChallengeForEmailMagicLink = ( | Response<404, t_Error> > -export type VerifyEmailOtpResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const verifyEmailOtpResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type VerifyEmailOtpResponder = typeof verifyEmailOtpResponder & + KoaRuntimeResponder + +const verifyEmailOtpResponseValidator = responseValidationFactory( + [ + ["200", z.undefined()], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ], + undefined, +) export type VerifyEmailOtp = ( params: Params< @@ -529,10 +804,22 @@ export type VerifyEmailOtp = ( | Response<404, t_Error> > -export type ListOktaApplicationsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse -} & KoaRuntimeResponder +const listOktaApplicationsResponder = { + with200: r.with200, + with400: r.with400, + withStatus: r.withStatus, +} + +type ListOktaApplicationsResponder = typeof listOktaApplicationsResponder & + KoaRuntimeResponder + +const listOktaApplicationsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_OktaApplication)], + ["400", s_Error], + ], + undefined, +) export type ListOktaApplications = ( params: Params, @@ -544,10 +831,22 @@ export type ListOktaApplications = ( | Response<400, t_Error> > -export type GetOrganizationResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getOrganizationResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type GetOrganizationResponder = typeof getOrganizationResponder & + KoaRuntimeResponder + +const getOrganizationResponseValidator = responseValidationFactory( + [ + ["200", s_Organization], + ["401", s_Error], + ], + undefined, +) export type GetOrganization = ( params: Params, @@ -559,10 +858,21 @@ export type GetOrganization = ( | Response<401, t_Error> > -export type GetPasswordResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPasswordResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type GetPasswordResponder = typeof getPasswordResponder & KoaRuntimeResponder + +const getPasswordResponseValidator = responseValidationFactory( + [ + ["200", s_PasswordResponse], + ["401", s_Error], + ], + undefined, +) export type GetPassword = ( params: Params, @@ -574,12 +884,26 @@ export type GetPassword = ( | Response<401, t_Error> > -export type CreatePasswordResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const createPasswordResponder = { + with201: r.with201, + with400: r.with400, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type CreatePasswordResponder = typeof createPasswordResponder & + KoaRuntimeResponder + +const createPasswordResponseValidator = responseValidationFactory( + [ + ["201", s_PasswordResponse], + ["400", s_Error], + ["401", s_Error], + ["403", s_Error], + ], + undefined, +) export type CreatePassword = ( params: Params, @@ -593,12 +917,26 @@ export type CreatePassword = ( | Response<403, t_Error> > -export type ReplacePasswordResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse -} & KoaRuntimeResponder +const replacePasswordResponder = { + with201: r.with201, + with400: r.with400, + with401: r.with401, + with403: r.with403, + withStatus: r.withStatus, +} + +type ReplacePasswordResponder = typeof replacePasswordResponder & + KoaRuntimeResponder + +const replacePasswordResponseValidator = responseValidationFactory( + [ + ["201", s_PasswordResponse], + ["400", s_Error], + ["401", s_Error], + ["403", s_Error], + ], + undefined, +) export type ReplacePassword = ( params: Params, @@ -612,11 +950,24 @@ export type ReplacePassword = ( | Response<403, t_Error> > -export type DeletePasswordResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const deletePasswordResponder = { + with204: r.with204, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type DeletePasswordResponder = typeof deletePasswordResponder & + KoaRuntimeResponder + +const deletePasswordResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_Error], + ["404", s_Error], + ], + undefined, +) export type DeletePassword = ( params: Params, @@ -629,10 +980,21 @@ export type DeletePassword = ( | Response<404, t_Error> > -export type ListPhonesResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const listPhonesResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type ListPhonesResponder = typeof listPhonesResponder & KoaRuntimeResponder + +const listPhonesResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_Phone)], + ["401", s_Error], + ], + undefined, +) export type ListPhones = ( params: Params, @@ -644,14 +1006,29 @@ export type ListPhones = ( | Response<401, t_Error> > -export type CreatePhoneResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with409(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder +const createPhoneResponder = { + with201: r.with201, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with409: r.with409, + with500: r.with500, + withStatus: r.withStatus, +} + +type CreatePhoneResponder = typeof createPhoneResponder & KoaRuntimeResponder + +const createPhoneResponseValidator = responseValidationFactory( + [ + ["201", s_Phone], + ["400", s_Error], + ["401", s_Error], + ["403", s_Error], + ["409", s_Error], + ["500", s_Error], + ], + undefined, +) export type CreatePhone = ( params: Params, @@ -667,11 +1044,23 @@ export type CreatePhone = ( | Response<500, t_Error> > -export type GetPhoneResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPhoneResponder = { + with200: r.with200, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type GetPhoneResponder = typeof getPhoneResponder & KoaRuntimeResponder + +const getPhoneResponseValidator = responseValidationFactory( + [ + ["200", s_Phone], + ["401", s_Error], + ["404", s_Error], + ], + undefined, +) export type GetPhone = ( params: Params, @@ -684,12 +1073,25 @@ export type GetPhone = ( | Response<404, t_Error> > -export type DeletePhoneResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const deletePhoneResponder = { + with204: r.with204, + with401: r.with401, + with403: r.with403, + with404: r.with404, + withStatus: r.withStatus, +} + +type DeletePhoneResponder = typeof deletePhoneResponder & KoaRuntimeResponder + +const deletePhoneResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ], + undefined, +) export type DeletePhone = ( params: Params, @@ -703,8 +1105,8 @@ export type DeletePhone = ( | Response<404, t_Error> > -export type SendPhoneChallengeResponder = { - with200(): KoaRuntimeResponse<{ +const sendPhoneChallengeResponder = { + with200: r.with200<{ _links?: { verify?: { hints: { @@ -713,13 +1115,43 @@ export type SendPhoneChallengeResponder = { href: string } } - }> - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with500(): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with500: r.with500, + withStatus: r.withStatus, +} + +type SendPhoneChallengeResponder = typeof sendPhoneChallengeResponder & + KoaRuntimeResponder + +const sendPhoneChallengeResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + _links: z + .object({ + verify: z + .object({ + href: z.string().min(1), + hints: z.object({ allow: z.array(z.enum(["GET"])) }), + }) + .optional(), + }) + .optional(), + }), + ], + ["400", s_Error], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ["500", s_Error], + ], + undefined, +) export type SendPhoneChallenge = ( params: Params< @@ -752,14 +1184,30 @@ export type SendPhoneChallenge = ( | Response<500, t_Error> > -export type VerifyPhoneChallengeResponder = { - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with409(): KoaRuntimeResponse -} & KoaRuntimeResponder +const verifyPhoneChallengeResponder = { + with204: r.with204, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with404: r.with404, + with409: r.with409, + withStatus: r.withStatus, +} + +type VerifyPhoneChallengeResponder = typeof verifyPhoneChallengeResponder & + KoaRuntimeResponder + +const verifyPhoneChallengeResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["400", s_Error], + ["401", s_Error], + ["403", s_Error], + ["404", s_Error], + ["409", s_Error], + ], + undefined, +) export type VerifyPhoneChallenge = ( params: Params< @@ -780,10 +1228,21 @@ export type VerifyPhoneChallenge = ( | Response<409, t_Error> > -export type GetProfileResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getProfileResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type GetProfileResponder = typeof getProfileResponder & KoaRuntimeResponder + +const getProfileResponseValidator = responseValidationFactory( + [ + ["200", s_Profile], + ["401", s_Error], + ], + undefined, +) export type GetProfile = ( params: Params, @@ -795,11 +1254,24 @@ export type GetProfile = ( | Response<401, t_Error> > -export type ReplaceProfileResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const replaceProfileResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + withStatus: r.withStatus, +} + +type ReplaceProfileResponder = typeof replaceProfileResponder & + KoaRuntimeResponder + +const replaceProfileResponseValidator = responseValidationFactory( + [ + ["200", s_Profile], + ["400", s_Error], + ["401", s_Error], + ], + undefined, +) export type ReplaceProfile = ( params: Params, @@ -812,10 +1284,22 @@ export type ReplaceProfile = ( | Response<401, t_Error> > -export type GetProfileSchemaResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getProfileSchemaResponder = { + with200: r.with200, + with401: r.with401, + withStatus: r.withStatus, +} + +type GetProfileSchemaResponder = typeof getProfileSchemaResponder & + KoaRuntimeResponder + +const getProfileSchemaResponseValidator = responseValidationFactory( + [ + ["200", s_Schema], + ["401", s_Error], + ], + undefined, +) export type GetProfileSchema = ( params: Params, @@ -825,11 +1309,24 @@ export type GetProfileSchema = ( KoaRuntimeResponse | Response<200, t_Schema> | Response<401, t_Error> > -export type DeleteSessionsResponder = { - with204(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteSessionsResponder = { + with204: r.with204, + with401: r.with401, + with404: r.with404, + withStatus: r.withStatus, +} + +type DeleteSessionsResponder = typeof deleteSessionsResponder & + KoaRuntimeResponder + +const deleteSessionsResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["401", s_Error], + ["404", s_Error], + ], + undefined, +) export type DeleteSessions = ( params: Params, @@ -884,18 +1381,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const createAppAuthenticatorEnrollmentBodySchema = s_AppAuthenticatorEnrollmentRequest - const createAppAuthenticatorEnrollmentResponseValidator = - responseValidationFactory( - [ - ["200", s_AppAuthenticatorEnrollment], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.post( "createAppAuthenticatorEnrollment", "/idp/myaccount/app-authenticators", @@ -911,29 +1396,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .createAppAuthenticatorEnrollment(input, responder, ctx) + .createAppAuthenticatorEnrollment( + input, + createAppAuthenticatorEnrollmentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -954,16 +1422,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const verifyAppAuthenticatorPushNotificationChallengeBodySchema = s_PushNotificationVerification - const verifyAppAuthenticatorPushNotificationChallengeResponseValidator = - responseValidationFactory( - [ - ["200", z.undefined()], - ["204", z.undefined()], - ["400", z.undefined()], - ], - undefined, - ) - router.post( "verifyAppAuthenticatorPushNotificationChallenge", "/idp/myaccount/app-authenticators/challenge/:challengeId/verify", @@ -983,23 +1441,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .verifyAppAuthenticatorPushNotificationChallenge(input, responder, ctx) + .verifyAppAuthenticatorPushNotificationChallenge( + input, + verifyAppAuthenticatorPushNotificationChallengeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1024,17 +1471,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const updateAppAuthenticatorEnrollmentBodySchema = s_UpdateAppAuthenticatorEnrollmentRequest - const updateAppAuthenticatorEnrollmentResponseValidator = - responseValidationFactory( - [ - ["200", s_AppAuthenticatorEnrollment], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.patch( "updateAppAuthenticatorEnrollment", "/idp/myaccount/app-authenticators/:enrollmentId", @@ -1054,26 +1490,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .updateAppAuthenticatorEnrollment(input, responder, ctx) + .updateAppAuthenticatorEnrollment( + input, + updateAppAuthenticatorEnrollmentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1091,17 +1513,6 @@ export function createRouter(implementation: Implementation): KoaRouter { enrollmentId: z.string(), }) - const deleteAppAuthenticatorEnrollmentResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.delete( "deleteAppAuthenticatorEnrollment", "/idp/myaccount/app-authenticators/:enrollmentId", @@ -1117,26 +1528,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteAppAuthenticatorEnrollment(input, responder, ctx) + .deleteAppAuthenticatorEnrollment( + input, + deleteAppAuthenticatorEnrollmentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1153,15 +1550,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const listAppAuthenticatorPendingPushNotificationChallengesParamSchema = z.object({ enrollmentId: z.string() }) - const listAppAuthenticatorPendingPushNotificationChallengesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_PushNotificationChallenge)], - ["401", s_Error], - ], - undefined, - ) - router.get( "listAppAuthenticatorPendingPushNotificationChallenges", "/idp/myaccount/app-authenticators/:enrollmentId/push/notifications", @@ -1177,22 +1565,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .listAppAuthenticatorPendingPushNotificationChallenges( input, - responder, + listAppAuthenticatorPendingPushNotificationChallengesResponder, ctx, ) .catch((err) => { @@ -1216,15 +1592,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.string().optional(), }) - const listAuthenticatorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_Authenticator)], - ["403", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.get( "listAuthenticators", "/idp/myaccount/authenticators", @@ -1240,23 +1607,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .listAuthenticators(input, responder, ctx) + .listAuthenticators(input, listAuthenticatorsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1276,16 +1628,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.string().optional(), }) - const getAuthenticatorResponseValidator = responseValidationFactory( - [ - ["200", s_Authenticator], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.get( "getAuthenticator", "/idp/myaccount/authenticators/:authenticatorId", @@ -1305,26 +1647,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAuthenticator(input, responder, ctx) + .getAuthenticator(input, getAuthenticatorResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1340,16 +1664,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const listEnrollmentsParamSchema = z.object({ authenticatorId: z.string() }) - const listEnrollmentsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_AuthenticatorEnrollment)], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.get( "listEnrollments", "/idp/myaccount/authenticators/:authenticatorId/enrollments", @@ -1365,26 +1679,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .listEnrollments(input, responder, ctx) + .listEnrollments(input, listEnrollmentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1403,16 +1699,6 @@ export function createRouter(implementation: Implementation): KoaRouter { enrollmentId: z.string(), }) - const getEnrollmentResponseValidator = responseValidationFactory( - [ - ["200", s_AuthenticatorEnrollment], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.get( "getEnrollment", "/idp/myaccount/authenticators/:authenticatorId/enrollments/:enrollmentId", @@ -1428,26 +1714,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getEnrollment(input, responder, ctx) + .getEnrollment(input, getEnrollmentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1468,16 +1736,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const updateEnrollmentBodySchema = s_UpdateAuthenticatorEnrollmentRequest - const updateEnrollmentResponseValidator = responseValidationFactory( - [ - ["200", s_AuthenticatorEnrollment], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.patch( "updateEnrollment", "/idp/myaccount/authenticators/:authenticatorId/enrollments/:enrollmentId", @@ -1497,26 +1755,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .updateEnrollment(input, responder, ctx) + .updateEnrollment(input, updateEnrollmentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1530,14 +1770,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const listEmailsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_Email)], - ["401", s_Error], - ], - undefined, - ) - router.get("listEmails", "/idp/myaccount/emails", async (ctx, next) => { const input = { params: undefined, @@ -1546,20 +1778,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .listEmails(input, responder, ctx) + .listEmails(input, listEmailsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1579,17 +1799,6 @@ export function createRouter(implementation: Implementation): KoaRouter { role: z.enum(["PRIMARY", "SECONDARY"]).optional(), }) - const createEmailResponseValidator = responseValidationFactory( - [ - ["201", s_Email], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["409", s_Error], - ], - undefined, - ) - router.post("createEmail", "/idp/myaccount/emails", async (ctx, next) => { const input = { params: undefined, @@ -1602,29 +1811,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .createEmail(input, responder, ctx) + .createEmail(input, createEmailResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1639,14 +1827,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getEmailParamSchema = z.object({ id: z.string() }) - const getEmailResponseValidator = responseValidationFactory( - [ - ["200", s_Email], - ["401", s_Error], - ], - undefined, - ) - router.get("getEmail", "/idp/myaccount/emails/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -1659,20 +1839,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getEmail(input, responder, ctx) + .getEmail(input, getEmailResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1687,16 +1855,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteEmailParamSchema = z.object({ id: z.string() }) - const deleteEmailResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_Error], - ["401", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.delete( "deleteEmail", "/idp/myaccount/emails/:id", @@ -1712,26 +1870,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteEmail(input, responder, ctx) + .deleteEmail(input, deleteEmailResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1749,34 +1889,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const sendEmailChallengeBodySchema = z.object({ state: z.string() }) - const sendEmailChallengeResponseValidator = responseValidationFactory( - [ - [ - "201", - z.object({ - id: z.string().min(1), - status: z.enum(["VERIFIED", "UNVERIFIED"]), - expiresAt: z.string().min(1), - profile: z.object({ email: z.string().min(1) }), - _links: z.object({ - verify: z.object({ - href: z.string().min(1), - hints: z.object({ allow: z.array(z.enum(["POST"])) }), - }), - poll: z.object({ - href: z.string().min(1), - hints: z.object({ allow: z.array(z.enum(["GET"])) }), - }), - }), - }), - ], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.post( "sendEmailChallenge", "/idp/myaccount/emails/:id/challenge", @@ -1796,47 +1908,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse<{ - _links: { - poll: { - hints: { - allow: "GET"[] - } - href: string - } - verify: { - hints: { - allow: "POST"[] - } - href: string - } - } - expiresAt: string - id: string - profile: { - email: string - } - status: "VERIFIED" | "UNVERIFIED" - }>(201) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .sendEmailChallenge(input, responder, ctx) + .sendEmailChallenge(input, sendEmailChallengeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1855,38 +1928,6 @@ export function createRouter(implementation: Implementation): KoaRouter { challengeId: z.string(), }) - const pollChallengeForEmailMagicLinkResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string().min(1), - status: z.enum(["VERIFIED", "UNVERIFIED"]), - expiresAt: z.string().min(1), - profile: z.object({ email: z.string().min(1) }), - _links: z.object({ - verify: z.object({ - href: z.string().min(1), - hints: z.object({ - allow: z.array(z.enum(["DELETE", "GET", "POST", "PUT"])), - }), - }), - poll: z.object({ - href: z.string().min(1), - hints: z.object({ - allow: z.array(z.enum(["DELETE", "GET", "POST", "PUT"])), - }), - }), - }), - }), - ], - ["401", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.get( "pollChallengeForEmailMagicLink", "/idp/myaccount/emails/:id/challenge/:challengeId", @@ -1902,44 +1943,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - _links: { - poll: { - hints: { - allow: ("DELETE" | "GET" | "POST" | "PUT")[] - } - href: string - } - verify: { - hints: { - allow: ("DELETE" | "GET" | "POST" | "PUT")[] - } - href: string - } - } - expiresAt: string - id: string - profile: { - email: string - } - status: "VERIFIED" | "UNVERIFIED" - }>(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .pollChallengeForEmailMagicLink(input, responder, ctx) + .pollChallengeForEmailMagicLink( + input, + pollChallengeForEmailMagicLinkResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1960,16 +1969,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const verifyEmailOtpBodySchema = z.object({ verificationCode: z.string() }) - const verifyEmailOtpResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.post( "verifyEmailOtp", "/idp/myaccount/emails/:id/challenge/:challengeId/verify", @@ -1989,26 +1988,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .verifyEmailOtp(input, responder, ctx) + .verifyEmailOtp(input, verifyEmailOtpResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2022,14 +2003,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const listOktaApplicationsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_OktaApplication)], - ["400", s_Error], - ], - undefined, - ) - router.get( "listOktaApplications", "/idp/myaccount/okta-applications", @@ -2041,20 +2014,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .listOktaApplications(input, responder, ctx) + .listOktaApplications(input, listOktaApplicationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2068,14 +2029,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const getOrganizationResponseValidator = responseValidationFactory( - [ - ["200", s_Organization], - ["401", s_Error], - ], - undefined, - ) - router.get( "getOrganization", "/idp/myaccount/organization", @@ -2087,20 +2040,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getOrganization(input, responder, ctx) + .getOrganization(input, getOrganizationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2114,14 +2055,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const getPasswordResponseValidator = responseValidationFactory( - [ - ["200", s_PasswordResponse], - ["401", s_Error], - ], - undefined, - ) - router.get("getPassword", "/idp/myaccount/password", async (ctx, next) => { const input = { params: undefined, @@ -2130,20 +2063,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPassword(input, responder, ctx) + .getPassword(input, getPasswordResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2160,16 +2081,6 @@ export function createRouter(implementation: Implementation): KoaRouter { profile: z.object({ password: z.string() }), }) - const createPasswordResponseValidator = responseValidationFactory( - [ - ["201", s_PasswordResponse], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ], - undefined, - ) - router.post( "createPassword", "/idp/myaccount/password", @@ -2185,26 +2096,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .createPassword(input, responder, ctx) + .createPassword(input, createPasswordResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2222,16 +2115,6 @@ export function createRouter(implementation: Implementation): KoaRouter { profile: z.object({ password: z.string() }), }) - const replacePasswordResponseValidator = responseValidationFactory( - [ - ["201", s_PasswordResponse], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ], - undefined, - ) - router.put( "replacePassword", "/idp/myaccount/password", @@ -2247,26 +2130,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .replacePassword(input, responder, ctx) + .replacePassword(input, replacePasswordResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2280,15 +2145,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const deletePasswordResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.delete( "deletePassword", "/idp/myaccount/password", @@ -2300,23 +2156,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deletePassword(input, responder, ctx) + .deletePassword(input, deletePasswordResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2330,14 +2171,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const listPhonesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_Phone)], - ["401", s_Error], - ], - undefined, - ) - router.get("listPhones", "/idp/myaccount/phones", async (ctx, next) => { const input = { params: undefined, @@ -2346,20 +2179,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .listPhones(input, responder, ctx) + .listPhones(input, listPhonesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2378,18 +2199,6 @@ export function createRouter(implementation: Implementation): KoaRouter { method: z.enum(["SMS", "CALL"]).optional(), }) - const createPhoneResponseValidator = responseValidationFactory( - [ - ["201", s_Phone], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["409", s_Error], - ["500", s_Error], - ], - undefined, - ) - router.post("createPhone", "/idp/myaccount/phones", async (ctx, next) => { const input = { params: undefined, @@ -2402,32 +2211,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .createPhone(input, responder, ctx) + .createPhone(input, createPhoneResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2442,15 +2227,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPhoneParamSchema = z.object({ id: z.string() }) - const getPhoneResponseValidator = responseValidationFactory( - [ - ["200", s_Phone], - ["401", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.get("getPhone", "/idp/myaccount/phones/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -2463,23 +2239,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPhone(input, responder, ctx) + .getPhone(input, getPhoneResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2494,16 +2255,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deletePhoneParamSchema = z.object({ id: z.string() }) - const deletePhoneResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.delete( "deletePhone", "/idp/myaccount/phones/:id", @@ -2519,26 +2270,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deletePhone(input, responder, ctx) + .deletePhone(input, deletePhoneResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2559,32 +2292,6 @@ export function createRouter(implementation: Implementation): KoaRouter { retry: PermissiveBoolean.optional().default(false), }) - const sendPhoneChallengeResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - _links: z - .object({ - verify: z - .object({ - href: z.string().min(1), - hints: z.object({ allow: z.array(z.enum(["GET"])) }), - }) - .optional(), - }) - .optional(), - }), - ], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ["500", s_Error], - ], - undefined, - ) - router.post( "sendPhoneChallenge", "/idp/myaccount/phones/:id/challenge", @@ -2604,41 +2311,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - _links?: { - verify?: { - hints: { - allow: "GET"[] - } - href: string - } - } - }>(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with500() { - return new KoaRuntimeResponse(500) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .sendPhoneChallenge(input, responder, ctx) + .sendPhoneChallenge(input, sendPhoneChallengeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2658,18 +2332,6 @@ export function createRouter(implementation: Implementation): KoaRouter { verificationCode: z.string(), }) - const verifyPhoneChallengeResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ["409", s_Error], - ], - undefined, - ) - router.post( "verifyPhoneChallenge", "/idp/myaccount/phones/:id/verify", @@ -2689,32 +2351,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with409() { - return new KoaRuntimeResponse(409) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .verifyPhoneChallenge(input, responder, ctx) + .verifyPhoneChallenge(input, verifyPhoneChallengeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2728,14 +2366,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const getProfileResponseValidator = responseValidationFactory( - [ - ["200", s_Profile], - ["401", s_Error], - ], - undefined, - ) - router.get("getProfile", "/idp/myaccount/profile", async (ctx, next) => { const input = { params: undefined, @@ -2744,20 +2374,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getProfile(input, responder, ctx) + .getProfile(input, getProfileResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2774,15 +2392,6 @@ export function createRouter(implementation: Implementation): KoaRouter { profile: z.object({}).optional(), }) - const replaceProfileResponseValidator = responseValidationFactory( - [ - ["200", s_Profile], - ["400", s_Error], - ["401", s_Error], - ], - undefined, - ) - router.put("replaceProfile", "/idp/myaccount/profile", async (ctx, next) => { const input = { params: undefined, @@ -2795,23 +2404,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .replaceProfile(input, responder, ctx) + .replaceProfile(input, replaceProfileResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2824,14 +2418,6 @@ export function createRouter(implementation: Implementation): KoaRouter { return next() }) - const getProfileSchemaResponseValidator = responseValidationFactory( - [ - ["200", s_Schema], - ["401", s_Error], - ], - undefined, - ) - router.get( "getProfileSchema", "/idp/myaccount/profile/schema", @@ -2843,20 +2429,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getProfileSchema(input, responder, ctx) + .getProfileSchema(input, getProfileSchemaResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2870,15 +2444,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const deleteSessionsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.delete( "deleteSessions", "/idp/myaccount/sessions", @@ -2890,23 +2455,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteSessions(input, responder, ctx) + .deleteSessions(input, deleteSessionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) diff --git a/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts index fb6fea5b2..7a4df2610 100644 --- a/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts @@ -120,7 +120,7 @@ import { Params, Response, ServerConfig, - StatusCode, + r, startServer, } from "@nahkies/typescript-koa-runtime/server" import { @@ -129,10 +129,23 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type GetWellKnownOpenIdConfigurationResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getWellKnownOpenIdConfigurationResponder = { + with200: r.with200, + with400: r.with400, + withStatus: r.withStatus, +} + +type GetWellKnownOpenIdConfigurationResponder = + typeof getWellKnownOpenIdConfigurationResponder & KoaRuntimeResponder + +const getWellKnownOpenIdConfigurationResponseValidator = + responseValidationFactory( + [ + ["200", s_OidcMetadata], + ["400", s_Error], + ], + undefined, + ) export type GetWellKnownOpenIdConfiguration = ( params: Params< @@ -149,9 +162,17 @@ export type GetWellKnownOpenIdConfiguration = ( | Response<400, t_Error> > -export type AuthorizeResponder = { - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const authorizeResponder = { + with429: r.with429, + withStatus: r.withStatus, +} + +type AuthorizeResponder = typeof authorizeResponder & KoaRuntimeResponder + +const authorizeResponseValidator = responseValidationFactory( + [["429", s_Error]], + undefined, +) export type Authorize = ( params: Params, @@ -159,9 +180,18 @@ export type Authorize = ( ctx: RouterContext, ) => Promise | Response<429, t_Error>> -export type AuthorizeWithPostResponder = { - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const authorizeWithPostResponder = { + with429: r.with429, + withStatus: r.withStatus, +} + +type AuthorizeWithPostResponder = typeof authorizeWithPostResponder & + KoaRuntimeResponder + +const authorizeWithPostResponseValidator = responseValidationFactory( + [["429", s_Error]], + undefined, +) export type AuthorizeWithPost = ( params: Params, @@ -169,12 +199,25 @@ export type AuthorizeWithPost = ( ctx: RouterContext, ) => Promise | Response<429, t_Error>> -export type BcAuthorizeResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const bcAuthorizeResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type BcAuthorizeResponder = typeof bcAuthorizeResponder & KoaRuntimeResponder + +const bcAuthorizeResponseValidator = responseValidationFactory( + [ + ["200", s_BackchannelAuthorizeResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type BcAuthorize = ( params: Params, @@ -188,13 +231,27 @@ export type BcAuthorize = ( | Response<429, t_Error> > -export type ChallengeResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const challengeResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type ChallengeResponder = typeof challengeResponder & KoaRuntimeResponder + +const challengeResponseValidator = responseValidationFactory( + [ + ["200", s_ChallengeResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["403", s_OAuthError], + ["429", s_OAuthError], + ], + undefined, +) export type Challenge = ( params: Params, @@ -209,11 +266,23 @@ export type Challenge = ( | Response<429, t_OAuthError> > -export type ListClientsResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const listClientsResponder = { + with200: r.with200, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type ListClientsResponder = typeof listClientsResponder & KoaRuntimeResponder + +const listClientsResponseValidator = responseValidationFactory( + [ + ["200", z.array(s_Client)], + ["403", s_Error], + ["429", s_Error], + ], + undefined, +) export type ListClients = ( params: Params, @@ -226,12 +295,25 @@ export type ListClients = ( | Response<429, t_Error> > -export type CreateClientResponder = { - with201(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const createClientResponder = { + with201: r.with201, + with400: r.with400, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type CreateClientResponder = typeof createClientResponder & KoaRuntimeResponder + +const createClientResponseValidator = responseValidationFactory( + [ + ["201", s_Client], + ["400", s_Error], + ["403", s_Error], + ["429", s_Error], + ], + undefined, +) export type CreateClient = ( params: Params, @@ -245,12 +327,25 @@ export type CreateClient = ( | Response<429, t_Error> > -export type GetClientResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getClientResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with429: r.with429, + withStatus: r.withStatus, +} + +type GetClientResponder = typeof getClientResponder & KoaRuntimeResponder + +const getClientResponseValidator = responseValidationFactory( + [ + ["200", s_Client], + ["403", s_Error], + ["404", s_Error], + ["429", s_Error], + ], + undefined, +) export type GetClient = ( params: Params, @@ -264,13 +359,28 @@ export type GetClient = ( | Response<429, t_Error> > -export type ReplaceClientResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const replaceClientResponder = { + with200: r.with200, + with400: r.with400, + with403: r.with403, + with404: r.with404, + with429: r.with429, + withStatus: r.withStatus, +} + +type ReplaceClientResponder = typeof replaceClientResponder & + KoaRuntimeResponder + +const replaceClientResponseValidator = responseValidationFactory( + [ + ["200", s_Client], + ["400", s_Error], + ["403", s_Error], + ["404", s_Error], + ["429", s_Error], + ], + undefined, +) export type ReplaceClient = ( params: Params< @@ -290,12 +400,25 @@ export type ReplaceClient = ( | Response<429, t_Error> > -export type DeleteClientResponder = { - with204(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteClientResponder = { + with204: r.with204, + with403: r.with403, + with404: r.with404, + with429: r.with429, + withStatus: r.withStatus, +} + +type DeleteClientResponder = typeof deleteClientResponder & KoaRuntimeResponder + +const deleteClientResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["403", s_Error], + ["404", s_Error], + ["429", s_Error], + ], + undefined, +) export type DeleteClient = ( params: Params, @@ -309,12 +432,26 @@ export type DeleteClient = ( | Response<429, t_Error> > -export type GenerateNewClientSecretResponder = { - with200(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with404(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const generateNewClientSecretResponder = { + with200: r.with200, + with403: r.with403, + with404: r.with404, + with429: r.with429, + withStatus: r.withStatus, +} + +type GenerateNewClientSecretResponder = + typeof generateNewClientSecretResponder & KoaRuntimeResponder + +const generateNewClientSecretResponseValidator = responseValidationFactory( + [ + ["200", s_Client], + ["403", s_Error], + ["404", s_Error], + ["429", s_Error], + ], + undefined, +) export type GenerateNewClientSecret = ( params: Params, @@ -328,12 +465,26 @@ export type GenerateNewClientSecret = ( | Response<429, t_Error> > -export type DeviceAuthorizeResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const deviceAuthorizeResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type DeviceAuthorizeResponder = typeof deviceAuthorizeResponder & + KoaRuntimeResponder + +const deviceAuthorizeResponseValidator = responseValidationFactory( + [ + ["200", s_DeviceAuthorizeResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type DeviceAuthorize = ( params: Params, @@ -347,12 +498,26 @@ export type DeviceAuthorize = ( | Response<429, t_Error> > -export type GlobalTokenRevocationResponder = { - with204(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const globalTokenRevocationResponder = { + with204: r.with204, + with400: r.with400, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type GlobalTokenRevocationResponder = typeof globalTokenRevocationResponder & + KoaRuntimeResponder + +const globalTokenRevocationResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["400", z.undefined()], + ["403", s_Error], + ["429", s_Error], + ], + undefined, +) export type GlobalTokenRevocation = ( params: Params, @@ -366,12 +531,25 @@ export type GlobalTokenRevocation = ( | Response<429, t_Error> > -export type IntrospectResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const introspectResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type IntrospectResponder = typeof introspectResponder & KoaRuntimeResponder + +const introspectResponseValidator = responseValidationFactory( + [ + ["200", s_IntrospectionResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type Introspect = ( params: Params, @@ -385,10 +563,21 @@ export type Introspect = ( | Response<429, t_Error> > -export type OauthKeysResponder = { - with200(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const oauthKeysResponder = { + with200: r.with200, + with429: r.with429, + withStatus: r.withStatus, +} + +type OauthKeysResponder = typeof oauthKeysResponder & KoaRuntimeResponder + +const oauthKeysResponseValidator = responseValidationFactory( + [ + ["200", s_OAuthKeys], + ["429", s_Error], + ], + undefined, +) export type OauthKeys = ( params: Params, @@ -400,10 +589,21 @@ export type OauthKeys = ( | Response<429, t_Error> > -export type LogoutResponder = { - with200(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const logoutResponder = { + with200: r.with200, + with429: r.with429, + withStatus: r.withStatus, +} + +type LogoutResponder = typeof logoutResponder & KoaRuntimeResponder + +const logoutResponseValidator = responseValidationFactory( + [ + ["200", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type Logout = ( params: Params, @@ -413,10 +613,22 @@ export type Logout = ( KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> > -export type LogoutWithPostResponder = { - with200(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const logoutWithPostResponder = { + with200: r.with200, + with429: r.with429, + withStatus: r.withStatus, +} + +type LogoutWithPostResponder = typeof logoutWithPostResponder & + KoaRuntimeResponder + +const logoutWithPostResponseValidator = responseValidationFactory( + [ + ["200", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type LogoutWithPost = ( params: Params, @@ -426,13 +638,28 @@ export type LogoutWithPost = ( KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> > -export type OobAuthenticateResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const oobAuthenticateResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type OobAuthenticateResponder = typeof oobAuthenticateResponder & + KoaRuntimeResponder + +const oobAuthenticateResponseValidator = responseValidationFactory( + [ + ["200", s_OobAuthenticateResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["403", s_OAuthError], + ["429", s_OAuthError], + ], + undefined, +) export type OobAuthenticate = ( params: Params, @@ -447,10 +674,21 @@ export type OobAuthenticate = ( | Response<429, t_OAuthError> > -export type ParOptionsResponder = { - with204(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const parOptionsResponder = { + with204: r.with204, + with429: r.with429, + withStatus: r.withStatus, +} + +type ParOptionsResponder = typeof parOptionsResponder & KoaRuntimeResponder + +const parOptionsResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type ParOptions = ( params: Params, @@ -460,13 +698,27 @@ export type ParOptions = ( KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> > -export type ParResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const parResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type ParResponder = typeof parResponder & KoaRuntimeResponder + +const parResponseValidator = responseValidationFactory( + [ + ["200", s_ParResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["403", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type Par = ( params: Params, @@ -481,12 +733,25 @@ export type Par = ( | Response<429, t_Error> > -export type RevokeResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const revokeResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type RevokeResponder = typeof revokeResponder & KoaRuntimeResponder + +const revokeResponseValidator = responseValidationFactory( + [ + ["200", z.undefined()], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type Revoke = ( params: Params, @@ -500,10 +765,21 @@ export type Revoke = ( | Response<429, t_Error> > -export type TokenOptionsResponder = { - with204(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const tokenOptionsResponder = { + with204: r.with204, + with429: r.with429, + withStatus: r.withStatus, +} + +type TokenOptionsResponder = typeof tokenOptionsResponder & KoaRuntimeResponder + +const tokenOptionsResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type TokenOptions = ( params: Params, @@ -513,12 +789,25 @@ export type TokenOptions = ( KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> > -export type TokenResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const tokenResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type TokenResponder = typeof tokenResponder & KoaRuntimeResponder + +const tokenResponseValidator = responseValidationFactory( + [ + ["200", s_TokenResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type Token = ( params: Params, @@ -532,12 +821,25 @@ export type Token = ( | Response<429, t_Error> > -export type UserinfoResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const userinfoResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type UserinfoResponder = typeof userinfoResponder & KoaRuntimeResponder + +const userinfoResponseValidator = responseValidationFactory( + [ + ["200", s_UserInfo], + ["401", z.undefined()], + ["403", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type Userinfo = ( params: Params, @@ -551,11 +853,25 @@ export type Userinfo = ( | Response<429, t_Error> > -export type GetWellKnownOAuthConfigurationCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getWellKnownOAuthConfigurationCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + withStatus: r.withStatus, +} + +type GetWellKnownOAuthConfigurationCustomAsResponder = + typeof getWellKnownOAuthConfigurationCustomAsResponder & KoaRuntimeResponder + +const getWellKnownOAuthConfigurationCustomAsResponseValidator = + responseValidationFactory( + [ + ["200", s_OAuthMetadata], + ["400", s_Error], + ["404", s_Error], + ], + undefined, + ) export type GetWellKnownOAuthConfigurationCustomAs = ( params: Params< @@ -573,11 +889,25 @@ export type GetWellKnownOAuthConfigurationCustomAs = ( | Response<404, t_Error> > -export type GetWellKnownOpenIdConfigurationCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with404(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getWellKnownOpenIdConfigurationCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with404: r.with404, + withStatus: r.withStatus, +} + +type GetWellKnownOpenIdConfigurationCustomAsResponder = + typeof getWellKnownOpenIdConfigurationCustomAsResponder & KoaRuntimeResponder + +const getWellKnownOpenIdConfigurationCustomAsResponseValidator = + responseValidationFactory( + [ + ["200", s_OidcMetadata], + ["400", s_Error], + ["404", s_Error], + ], + undefined, + ) export type GetWellKnownOpenIdConfigurationCustomAs = ( params: Params< @@ -595,9 +925,18 @@ export type GetWellKnownOpenIdConfigurationCustomAs = ( | Response<404, t_Error> > -export type AuthorizeCustomAsResponder = { - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const authorizeCustomAsResponder = { + with429: r.with429, + withStatus: r.withStatus, +} + +type AuthorizeCustomAsResponder = typeof authorizeCustomAsResponder & + KoaRuntimeResponder + +const authorizeCustomAsResponseValidator = responseValidationFactory( + [["429", s_Error]], + undefined, +) export type AuthorizeCustomAs = ( params: Params< @@ -610,9 +949,18 @@ export type AuthorizeCustomAs = ( ctx: RouterContext, ) => Promise | Response<429, t_Error>> -export type AuthorizeCustomAsWithPostResponder = { - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const authorizeCustomAsWithPostResponder = { + with429: r.with429, + withStatus: r.withStatus, +} + +type AuthorizeCustomAsWithPostResponder = + typeof authorizeCustomAsWithPostResponder & KoaRuntimeResponder + +const authorizeCustomAsWithPostResponseValidator = responseValidationFactory( + [["429", s_Error]], + undefined, +) export type AuthorizeCustomAsWithPost = ( params: Params< @@ -625,12 +973,26 @@ export type AuthorizeCustomAsWithPost = ( ctx: RouterContext, ) => Promise | Response<429, t_Error>> -export type BcAuthorizeCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const bcAuthorizeCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type BcAuthorizeCustomAsResponder = typeof bcAuthorizeCustomAsResponder & + KoaRuntimeResponder + +const bcAuthorizeCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_BackchannelAuthorizeResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type BcAuthorizeCustomAs = ( params: Params< @@ -649,13 +1011,28 @@ export type BcAuthorizeCustomAs = ( | Response<429, t_Error> > -export type ChallengeCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const challengeCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type ChallengeCustomAsResponder = typeof challengeCustomAsResponder & + KoaRuntimeResponder + +const challengeCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_ChallengeResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["403", s_OAuthError], + ["429", s_OAuthError], + ], + undefined, +) export type ChallengeCustomAs = ( params: Params< @@ -675,12 +1052,26 @@ export type ChallengeCustomAs = ( | Response<429, t_OAuthError> > -export type DeviceAuthorizeCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const deviceAuthorizeCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type DeviceAuthorizeCustomAsResponder = + typeof deviceAuthorizeCustomAsResponder & KoaRuntimeResponder + +const deviceAuthorizeCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_DeviceAuthorizeResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type DeviceAuthorizeCustomAs = ( params: Params< @@ -699,12 +1090,26 @@ export type DeviceAuthorizeCustomAs = ( | Response<429, t_Error> > -export type IntrospectCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const introspectCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type IntrospectCustomAsResponder = typeof introspectCustomAsResponder & + KoaRuntimeResponder + +const introspectCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_IntrospectionResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type IntrospectCustomAs = ( params: Params< @@ -723,10 +1128,22 @@ export type IntrospectCustomAs = ( | Response<429, t_Error> > -export type OauthKeysCustomAsResponder = { - with200(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const oauthKeysCustomAsResponder = { + with200: r.with200, + with429: r.with429, + withStatus: r.withStatus, +} + +type OauthKeysCustomAsResponder = typeof oauthKeysCustomAsResponder & + KoaRuntimeResponder + +const oauthKeysCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_OAuthKeys], + ["429", s_Error], + ], + undefined, +) export type OauthKeysCustomAs = ( params: Params, @@ -738,10 +1155,22 @@ export type OauthKeysCustomAs = ( | Response<429, t_Error> > -export type LogoutCustomAsResponder = { - with200(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const logoutCustomAsResponder = { + with200: r.with200, + with429: r.with429, + withStatus: r.withStatus, +} + +type LogoutCustomAsResponder = typeof logoutCustomAsResponder & + KoaRuntimeResponder + +const logoutCustomAsResponseValidator = responseValidationFactory( + [ + ["200", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type LogoutCustomAs = ( params: Params< @@ -756,10 +1185,22 @@ export type LogoutCustomAs = ( KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> > -export type LogoutCustomAsWithPostResponder = { - with200(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const logoutCustomAsWithPostResponder = { + with200: r.with200, + with429: r.with429, + withStatus: r.withStatus, +} + +type LogoutCustomAsWithPostResponder = typeof logoutCustomAsWithPostResponder & + KoaRuntimeResponder + +const logoutCustomAsWithPostResponseValidator = responseValidationFactory( + [ + ["200", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type LogoutCustomAsWithPost = ( params: Params< @@ -774,13 +1215,28 @@ export type LogoutCustomAsWithPost = ( KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> > -export type OobAuthenticateCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const oobAuthenticateCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type OobAuthenticateCustomAsResponder = + typeof oobAuthenticateCustomAsResponder & KoaRuntimeResponder + +const oobAuthenticateCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_OobAuthenticateResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["403", s_OAuthError], + ["429", s_OAuthError], + ], + undefined, +) export type OobAuthenticateCustomAs = ( params: Params< @@ -800,10 +1256,22 @@ export type OobAuthenticateCustomAs = ( | Response<429, t_OAuthError> > -export type ParOptionsCustomAsResponder = { - with204(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const parOptionsCustomAsResponder = { + with204: r.with204, + with429: r.with429, + withStatus: r.withStatus, +} + +type ParOptionsCustomAsResponder = typeof parOptionsCustomAsResponder & + KoaRuntimeResponder + +const parOptionsCustomAsResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type ParOptionsCustomAs = ( params: Params< @@ -818,13 +1286,27 @@ export type ParOptionsCustomAs = ( KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> > -export type ParCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const parCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type ParCustomAsResponder = typeof parCustomAsResponder & KoaRuntimeResponder + +const parCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_ParResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["403", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type ParCustomAs = ( params: Params, @@ -839,12 +1321,26 @@ export type ParCustomAs = ( | Response<429, t_Error> > -export type RevokeCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const revokeCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type RevokeCustomAsResponder = typeof revokeCustomAsResponder & + KoaRuntimeResponder + +const revokeCustomAsResponseValidator = responseValidationFactory( + [ + ["200", z.undefined()], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type RevokeCustomAs = ( params: Params< @@ -863,10 +1359,22 @@ export type RevokeCustomAs = ( | Response<429, t_Error> > -export type TokenOptionsCustomAsResponder = { - with204(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const tokenOptionsCustomAsResponder = { + with204: r.with204, + with429: r.with429, + withStatus: r.withStatus, +} + +type TokenOptionsCustomAsResponder = typeof tokenOptionsCustomAsResponder & + KoaRuntimeResponder + +const tokenOptionsCustomAsResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type TokenOptionsCustomAs = ( params: Params< @@ -881,12 +1389,26 @@ export type TokenOptionsCustomAs = ( KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> > -export type TokenCustomAsResponder = { - with200(): KoaRuntimeResponse - with400(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const tokenCustomAsResponder = { + with200: r.with200, + with400: r.with400, + with401: r.with401, + with429: r.with429, + withStatus: r.withStatus, +} + +type TokenCustomAsResponder = typeof tokenCustomAsResponder & + KoaRuntimeResponder + +const tokenCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_TokenResponse], + ["400", s_OAuthError], + ["401", s_OAuthError], + ["429", s_Error], + ], + undefined, +) export type TokenCustomAs = ( params: Params< @@ -905,12 +1427,26 @@ export type TokenCustomAs = ( | Response<429, t_Error> > -export type UserinfoCustomAsResponder = { - with200(): KoaRuntimeResponse - with401(): KoaRuntimeResponse - with403(): KoaRuntimeResponse - with429(): KoaRuntimeResponse -} & KoaRuntimeResponder +const userinfoCustomAsResponder = { + with200: r.with200, + with401: r.with401, + with403: r.with403, + with429: r.with429, + withStatus: r.withStatus, +} + +type UserinfoCustomAsResponder = typeof userinfoCustomAsResponder & + KoaRuntimeResponder + +const userinfoCustomAsResponseValidator = responseValidationFactory( + [ + ["200", s_UserInfo], + ["401", z.undefined()], + ["403", z.undefined()], + ["429", s_Error], + ], + undefined, +) export type UserinfoCustomAs = ( params: Params, @@ -976,15 +1512,6 @@ export function createRouter(implementation: Implementation): KoaRouter { client_id: z.string().optional(), }) - const getWellKnownOpenIdConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", s_OidcMetadata], - ["400", s_Error], - ], - undefined, - ) - router.get( "getWellKnownOpenIdConfiguration", "/.well-known/openid-configuration", @@ -1000,20 +1527,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getWellKnownOpenIdConfiguration(input, responder, ctx) + .getWellKnownOpenIdConfiguration( + input, + getWellKnownOpenIdConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1050,11 +1569,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: z.string(), }) - const authorizeResponseValidator = responseValidationFactory( - [["429", s_Error]], - undefined, - ) - router.get("authorize", "/oauth2/v1/authorize", async (ctx, next) => { const input = { params: undefined, @@ -1067,17 +1581,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .authorize(input, responder, ctx) + .authorize(input, authorizeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1092,11 +1597,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const authorizeWithPostBodySchema = s_AuthorizeWithPost - const authorizeWithPostResponseValidator = responseValidationFactory( - [["429", s_Error]], - undefined, - ) - router.post( "authorizeWithPost", "/oauth2/v1/authorize", @@ -1112,17 +1612,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .authorizeWithPost(input, responder, ctx) + .authorizeWithPost(input, authorizeWithPostResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1138,16 +1629,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const bcAuthorizeBodySchema = s_BackchannelAuthorizeRequest - const bcAuthorizeResponseValidator = responseValidationFactory( - [ - ["200", s_BackchannelAuthorizeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post("bcAuthorize", "/oauth2/v1/bc/authorize", async (ctx, next) => { const input = { params: undefined, @@ -1160,26 +1641,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .bcAuthorize(input, responder, ctx) + .bcAuthorize(input, bcAuthorizeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1194,17 +1657,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const challengeBodySchema = s_ChallengeRequest - const challengeResponseValidator = responseValidationFactory( - [ - ["200", s_ChallengeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_OAuthError], - ], - undefined, - ) - router.post("challenge", "/oauth2/v1/challenge", async (ctx, next) => { const input = { params: undefined, @@ -1217,29 +1669,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .challenge(input, responder, ctx) + .challenge(input, challengeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1258,15 +1689,6 @@ export function createRouter(implementation: Implementation): KoaRouter { q: z.string().optional(), }) - const listClientsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_Client)], - ["403", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.get("listClients", "/oauth2/v1/clients", async (ctx, next) => { const input = { params: undefined, @@ -1279,23 +1701,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .listClients(input, responder, ctx) + .listClients(input, listClientsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1310,16 +1717,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const createClientBodySchema = s_Client - const createClientResponseValidator = responseValidationFactory( - [ - ["201", s_Client], - ["400", s_Error], - ["403", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.post("createClient", "/oauth2/v1/clients", async (ctx, next) => { const input = { params: undefined, @@ -1332,26 +1729,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with201() { - return new KoaRuntimeResponse(201) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .createClient(input, responder, ctx) + .createClient(input, createClientResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1366,16 +1745,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getClientParamSchema = z.object({ clientId: z.string() }) - const getClientResponseValidator = responseValidationFactory( - [ - ["200", s_Client], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.get("getClient", "/oauth2/v1/clients/:clientId", async (ctx, next) => { const input = { params: parseRequestInput( @@ -1388,26 +1757,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getClient(input, responder, ctx) + .getClient(input, getClientResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1424,17 +1775,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const replaceClientBodySchema = s_Client - const replaceClientResponseValidator = responseValidationFactory( - [ - ["200", s_Client], - ["400", s_Error], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.put( "replaceClient", "/oauth2/v1/clients/:clientId", @@ -1454,29 +1794,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .replaceClient(input, responder, ctx) + .replaceClient(input, replaceClientResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1492,16 +1811,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteClientParamSchema = z.object({ clientId: z.string() }) - const deleteClientResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.delete( "deleteClient", "/oauth2/v1/clients/:clientId", @@ -1517,26 +1826,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteClient(input, responder, ctx) + .deleteClient(input, deleteClientResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1552,16 +1843,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const generateNewClientSecretParamSchema = z.object({ clientId: z.string() }) - const generateNewClientSecretResponseValidator = responseValidationFactory( - [ - ["200", s_Client], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.post( "generateNewClientSecret", "/oauth2/v1/clients/:clientId/lifecycle/newSecret", @@ -1577,26 +1858,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .generateNewClientSecret(input, responder, ctx) + .generateNewClientSecret(input, generateNewClientSecretResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1612,16 +1875,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deviceAuthorizeBodySchema = s_DeviceAuthorizeRequest - const deviceAuthorizeResponseValidator = responseValidationFactory( - [ - ["200", s_DeviceAuthorizeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post( "deviceAuthorize", "/oauth2/v1/device/authorize", @@ -1637,26 +1890,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deviceAuthorize(input, responder, ctx) + .deviceAuthorize(input, deviceAuthorizeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1672,16 +1907,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const globalTokenRevocationBodySchema = s_GlobalTokenRevocationRequest - const globalTokenRevocationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["400", z.undefined()], - ["403", s_Error], - ["429", s_Error], - ], - undefined, - ) - router.post( "globalTokenRevocation", "/oauth2/v1/global-token-revocation", @@ -1697,26 +1922,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .globalTokenRevocation(input, responder, ctx) + .globalTokenRevocation(input, globalTokenRevocationResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1732,16 +1939,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const introspectBodySchema = s_IntrospectionRequest - const introspectResponseValidator = responseValidationFactory( - [ - ["200", s_IntrospectionResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post("introspect", "/oauth2/v1/introspect", async (ctx, next) => { const input = { params: undefined, @@ -1754,26 +1951,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .introspect(input, responder, ctx) + .introspect(input, introspectResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1788,14 +1967,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const oauthKeysQuerySchema = z.object({ client_id: z.string().optional() }) - const oauthKeysResponseValidator = responseValidationFactory( - [ - ["200", s_OAuthKeys], - ["429", s_Error], - ], - undefined, - ) - router.get("oauthKeys", "/oauth2/v1/keys", async (ctx, next) => { const input = { params: undefined, @@ -1808,20 +1979,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .oauthKeys(input, responder, ctx) + .oauthKeys(input, oauthKeysResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1840,14 +1999,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: z.string().optional(), }) - const logoutResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.get("logout", "/oauth2/v1/logout", async (ctx, next) => { const input = { params: undefined, @@ -1860,20 +2011,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .logout(input, responder, ctx) + .logout(input, logoutResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1888,14 +2027,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const logoutWithPostBodySchema = s_LogoutWithPost - const logoutWithPostResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.post("logoutWithPost", "/oauth2/v1/logout", async (ctx, next) => { const input = { params: undefined, @@ -1908,20 +2039,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .logoutWithPost(input, responder, ctx) + .logoutWithPost(input, logoutWithPostResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1936,17 +2055,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const oobAuthenticateBodySchema = s_OobAuthenticateRequest - const oobAuthenticateResponseValidator = responseValidationFactory( - [ - ["200", s_OobAuthenticateResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_OAuthError], - ], - undefined, - ) - router.post( "oobAuthenticate", "/oauth2/v1/oob-authenticate", @@ -1962,29 +2070,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .oobAuthenticate(input, responder, ctx) + .oobAuthenticate(input, oobAuthenticateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2000,14 +2087,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const parOptionsHeaderSchema = z.object({ origin: z.string().optional() }) - const parOptionsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.options("parOptions", "/oauth2/v1/par", async (ctx, next) => { const input = { params: undefined, @@ -2020,20 +2099,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .parOptions(input, responder, ctx) + .parOptions(input, parOptionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2048,17 +2115,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const parBodySchema = s_ParRequest - const parResponseValidator = responseValidationFactory( - [ - ["200", s_ParResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post("par", "/oauth2/v1/par", async (ctx, next) => { const input = { params: undefined, @@ -2071,29 +2127,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .par(input, responder, ctx) + .par(input, parResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2108,16 +2143,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const revokeBodySchema = s_RevokeRequest - const revokeResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post("revoke", "/oauth2/v1/revoke", async (ctx, next) => { const input = { params: undefined, @@ -2130,26 +2155,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .revoke(input, responder, ctx) + .revoke(input, revokeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2164,14 +2171,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const tokenOptionsHeaderSchema = z.object({ origin: z.string().optional() }) - const tokenOptionsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.options("tokenOptions", "/oauth2/v1/token", async (ctx, next) => { const input = { params: undefined, @@ -2184,20 +2183,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .tokenOptions(input, responder, ctx) + .tokenOptions(input, tokenOptionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2212,16 +2199,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const tokenBodySchema = s_TokenRequest - const tokenResponseValidator = responseValidationFactory( - [ - ["200", s_TokenResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post("token", "/oauth2/v1/token", async (ctx, next) => { const input = { params: undefined, @@ -2234,26 +2211,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .token(input, responder, ctx) + .token(input, tokenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2266,16 +2225,6 @@ export function createRouter(implementation: Implementation): KoaRouter { return next() }) - const userinfoResponseValidator = responseValidationFactory( - [ - ["200", s_UserInfo], - ["401", z.undefined()], - ["403", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.get("userinfo", "/oauth2/v1/userinfo", async (ctx, next) => { const input = { params: undefined, @@ -2284,26 +2233,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .userinfo(input, responder, ctx) + .userinfo(input, userinfoResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2324,16 +2255,6 @@ export function createRouter(implementation: Implementation): KoaRouter { client_id: z.string().optional(), }) - const getWellKnownOAuthConfigurationCustomAsResponseValidator = - responseValidationFactory( - [ - ["200", s_OAuthMetadata], - ["400", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.get( "getWellKnownOAuthConfigurationCustomAs", "/oauth2/:authorizationServerId/.well-known/oauth-authorization-server", @@ -2353,23 +2274,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getWellKnownOAuthConfigurationCustomAs(input, responder, ctx) + .getWellKnownOAuthConfigurationCustomAs( + input, + getWellKnownOAuthConfigurationCustomAsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2394,16 +2304,6 @@ export function createRouter(implementation: Implementation): KoaRouter { client_id: z.string().optional(), }) - const getWellKnownOpenIdConfigurationCustomAsResponseValidator = - responseValidationFactory( - [ - ["200", s_OidcMetadata], - ["400", s_Error], - ["404", s_Error], - ], - undefined, - ) - router.get( "getWellKnownOpenIdConfigurationCustomAs", "/oauth2/:authorizationServerId/.well-known/openid-configuration", @@ -2423,23 +2323,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with404() { - return new KoaRuntimeResponse(404) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getWellKnownOpenIdConfigurationCustomAs(input, responder, ctx) + .getWellKnownOpenIdConfigurationCustomAs( + input, + getWellKnownOpenIdConfigurationCustomAsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2483,11 +2372,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: z.string(), }) - const authorizeCustomAsResponseValidator = responseValidationFactory( - [["429", s_Error]], - undefined, - ) - router.get( "authorizeCustomAs", "/oauth2/:authorizationServerId/v1/authorize", @@ -2507,17 +2391,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .authorizeCustomAs(input, responder, ctx) + .authorizeCustomAs(input, authorizeCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2537,11 +2412,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const authorizeCustomAsWithPostBodySchema = s_AuthorizeWithPost - const authorizeCustomAsWithPostResponseValidator = responseValidationFactory( - [["429", s_Error]], - undefined, - ) - router.post( "authorizeCustomAsWithPost", "/oauth2/:authorizationServerId/v1/authorize", @@ -2561,17 +2431,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .authorizeCustomAsWithPost(input, responder, ctx) + .authorizeCustomAsWithPost( + input, + authorizeCustomAsWithPostResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2591,16 +2456,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const bcAuthorizeCustomAsBodySchema = s_BackchannelAuthorizeRequest - const bcAuthorizeCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_BackchannelAuthorizeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post( "bcAuthorizeCustomAs", "/oauth2/:authorizationServerId/v1/bc/authorize", @@ -2620,26 +2475,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .bcAuthorizeCustomAs(input, responder, ctx) + .bcAuthorizeCustomAs(input, bcAuthorizeCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2659,17 +2496,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const challengeCustomAsBodySchema = s_ChallengeRequest - const challengeCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_ChallengeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_OAuthError], - ], - undefined, - ) - router.post( "challengeCustomAs", "/oauth2/:authorizationServerId/v1/challenge", @@ -2689,29 +2515,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .challengeCustomAs(input, responder, ctx) + .challengeCustomAs(input, challengeCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2731,16 +2536,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deviceAuthorizeCustomAsBodySchema = s_DeviceAuthorizeRequest - const deviceAuthorizeCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_DeviceAuthorizeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post( "deviceAuthorizeCustomAs", "/oauth2/:authorizationServerId/v1/device/authorize", @@ -2760,26 +2555,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deviceAuthorizeCustomAs(input, responder, ctx) + .deviceAuthorizeCustomAs(input, deviceAuthorizeCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2799,16 +2576,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const introspectCustomAsBodySchema = s_IntrospectionRequest - const introspectCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_IntrospectionResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post( "introspectCustomAs", "/oauth2/:authorizationServerId/v1/introspect", @@ -2828,26 +2595,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .introspectCustomAs(input, responder, ctx) + .introspectCustomAs(input, introspectCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2865,14 +2614,6 @@ export function createRouter(implementation: Implementation): KoaRouter { authorizationServerId: z.string(), }) - const oauthKeysCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_OAuthKeys], - ["429", s_Error], - ], - undefined, - ) - router.get( "oauthKeysCustomAs", "/oauth2/:authorizationServerId/v1/keys", @@ -2888,20 +2629,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .oauthKeysCustomAs(input, responder, ctx) + .oauthKeysCustomAs(input, oauthKeysCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2925,14 +2654,6 @@ export function createRouter(implementation: Implementation): KoaRouter { state: z.string().optional(), }) - const logoutCustomAsResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.get( "logoutCustomAs", "/oauth2/:authorizationServerId/v1/logout", @@ -2952,20 +2673,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .logoutCustomAs(input, responder, ctx) + .logoutCustomAs(input, logoutCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2985,14 +2694,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const logoutCustomAsWithPostBodySchema = s_LogoutWithPost - const logoutCustomAsWithPostResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.post( "logoutCustomAsWithPost", "/oauth2/:authorizationServerId/v1/logout", @@ -3012,20 +2713,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .logoutCustomAsWithPost(input, responder, ctx) + .logoutCustomAsWithPost(input, logoutCustomAsWithPostResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -3045,17 +2734,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const oobAuthenticateCustomAsBodySchema = s_OobAuthenticateRequest - const oobAuthenticateCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_OobAuthenticateResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_OAuthError], - ], - undefined, - ) - router.post( "oobAuthenticateCustomAs", "/oauth2/:authorizationServerId/v1/oob-authenticate", @@ -3075,29 +2753,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .oobAuthenticateCustomAs(input, responder, ctx) + .oobAuthenticateCustomAs(input, oobAuthenticateCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -3119,14 +2776,6 @@ export function createRouter(implementation: Implementation): KoaRouter { origin: z.string().optional(), }) - const parOptionsCustomAsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.options( "parOptionsCustomAs", "/oauth2/:authorizationServerId/v1/par", @@ -3146,20 +2795,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .parOptionsCustomAs(input, responder, ctx) + .parOptionsCustomAs(input, parOptionsCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -3177,17 +2814,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const parCustomAsBodySchema = s_ParRequest - const parCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_ParResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post( "parCustomAs", "/oauth2/:authorizationServerId/v1/par", @@ -3207,29 +2833,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .parCustomAs(input, responder, ctx) + .parCustomAs(input, parCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -3249,16 +2854,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const revokeCustomAsBodySchema = s_RevokeRequest - const revokeCustomAsResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post( "revokeCustomAs", "/oauth2/:authorizationServerId/v1/revoke", @@ -3278,26 +2873,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .revokeCustomAs(input, responder, ctx) + .revokeCustomAs(input, revokeCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -3319,14 +2896,6 @@ export function createRouter(implementation: Implementation): KoaRouter { origin: z.string().optional(), }) - const tokenOptionsCustomAsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.options( "tokenOptionsCustomAs", "/oauth2/:authorizationServerId/v1/token", @@ -3346,20 +2915,8 @@ export function createRouter(implementation: Implementation): KoaRouter { ), } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .tokenOptionsCustomAs(input, responder, ctx) + .tokenOptionsCustomAs(input, tokenOptionsCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -3379,16 +2936,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const tokenCustomAsBodySchema = s_TokenRequest - const tokenCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_TokenResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, - ) - router.post( "tokenCustomAs", "/oauth2/:authorizationServerId/v1/token", @@ -3408,26 +2955,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with400() { - return new KoaRuntimeResponse(400) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .tokenCustomAs(input, responder, ctx) + .tokenCustomAs(input, tokenCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -3445,16 +2974,6 @@ export function createRouter(implementation: Implementation): KoaRouter { authorizationServerId: z.string(), }) - const userinfoCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_UserInfo], - ["401", z.undefined()], - ["403", z.undefined()], - ["429", s_Error], - ], - undefined, - ) - router.get( "userinfoCustomAs", "/oauth2/:authorizationServerId/v1/userinfo", @@ -3470,26 +2989,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - with401() { - return new KoaRuntimeResponse(401) - }, - with403() { - return new KoaRuntimeResponse(403) - }, - with429() { - return new KoaRuntimeResponse(429) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .userinfoCustomAs(input, responder, ctx) + .userinfoCustomAs(input, userinfoCustomAsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) diff --git a/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts index d3a069b80..11b0c28e6 100644 --- a/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts @@ -23,6 +23,7 @@ import { Response, ServerConfig, StatusCode, + r, startServer, } from "@nahkies/typescript-koa-runtime/server" import { @@ -31,10 +32,18 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type FindPetsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const findPetsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type FindPetsResponder = typeof findPetsResponder & KoaRuntimeResponder + +const findPetsResponseValidator = responseValidationFactory( + [["200", z.array(s_Pet)]], + s_Error, +) export type FindPets = ( params: Params, @@ -46,10 +55,18 @@ export type FindPets = ( | Response > -export type AddPetResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const addPetResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type AddPetResponder = typeof addPetResponder & KoaRuntimeResponder + +const addPetResponseValidator = responseValidationFactory( + [["200", s_Pet]], + s_Error, +) export type AddPet = ( params: Params, @@ -61,10 +78,18 @@ export type AddPet = ( | Response > -export type FindPetByIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const findPetByIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type FindPetByIdResponder = typeof findPetByIdResponder & KoaRuntimeResponder + +const findPetByIdResponseValidator = responseValidationFactory( + [["200", s_Pet]], + s_Error, +) export type FindPetById = ( params: Params, @@ -76,10 +101,18 @@ export type FindPetById = ( | Response > -export type DeletePetResponder = { - with204(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deletePetResponder = { + with204: r.with204, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeletePetResponder = typeof deletePetResponder & KoaRuntimeResponder + +const deletePetResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + s_Error, +) export type DeletePet = ( params: Params, @@ -111,11 +144,6 @@ export function createRouter(implementation: Implementation): KoaRouter { limit: z.coerce.number().optional(), }) - const findPetsResponseValidator = responseValidationFactory( - [["200", z.array(s_Pet)]], - s_Error, - ) - router.get("findPets", "/pets", async (ctx, next) => { const input = { params: undefined, @@ -128,20 +156,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .findPets(input, responder, ctx) + .findPets(input, findPetsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -156,11 +172,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const addPetBodySchema = s_NewPet - const addPetResponseValidator = responseValidationFactory( - [["200", s_Pet]], - s_Error, - ) - router.post("addPet", "/pets", async (ctx, next) => { const input = { params: undefined, @@ -173,20 +184,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .addPet(input, responder, ctx) + .addPet(input, addPetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -201,11 +200,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const findPetByIdParamSchema = z.object({ id: z.coerce.number() }) - const findPetByIdResponseValidator = responseValidationFactory( - [["200", s_Pet]], - s_Error, - ) - router.get("findPetById", "/pets/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -218,20 +212,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .findPetById(input, responder, ctx) + .findPetById(input, findPetByIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -246,11 +228,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deletePetParamSchema = z.object({ id: z.coerce.number() }) - const deletePetResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - s_Error, - ) - router.delete("deletePet", "/pets/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -263,20 +240,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deletePet(input, responder, ctx) + .deletePet(input, deletePetResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) diff --git a/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts index c9758f0a1..4a6b13485 100644 --- a/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts @@ -1525,6 +1525,7 @@ import { Response, ServerConfig, StatusCode, + r, startServer, } from "@nahkies/typescript-koa-runtime/server" import { @@ -1533,10 +1534,18 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type GetAccountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAccountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountResponder = typeof getAccountResponder & KoaRuntimeResponder + +const getAccountResponseValidator = responseValidationFactory( + [["200", s_account]], + s_error, +) export type GetAccount = ( params: Params< @@ -1553,10 +1562,19 @@ export type GetAccount = ( | Response > -export type PostAccountLinksResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountLinksResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountLinksResponder = typeof postAccountLinksResponder & + KoaRuntimeResponder + +const postAccountLinksResponseValidator = responseValidationFactory( + [["200", s_account_link]], + s_error, +) export type PostAccountLinks = ( params: Params, @@ -1568,10 +1586,19 @@ export type PostAccountLinks = ( | Response > -export type PostAccountSessionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountSessionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountSessionsResponder = typeof postAccountSessionsResponder & + KoaRuntimeResponder + +const postAccountSessionsResponseValidator = responseValidationFactory( + [["200", s_account_session]], + s_error, +) export type PostAccountSessions = ( params: Params, @@ -1583,15 +1610,33 @@ export type PostAccountSessions = ( | Response > -export type GetAccountsResponder = { - with200(): KoaRuntimeResponse<{ +const getAccountsResponder = { + with200: r.with200<{ data: t_account[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsResponder = typeof getAccountsResponder & KoaRuntimeResponder + +const getAccountsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_account)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/accounts")), + }), + ], + ], + s_error, +) export type GetAccounts = ( params: Params< @@ -1616,10 +1661,18 @@ export type GetAccounts = ( | Response > -export type PostAccountsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsResponder = typeof postAccountsResponder & KoaRuntimeResponder + +const postAccountsResponseValidator = responseValidationFactory( + [["200", s_account]], + s_error, +) export type PostAccounts = ( params: Params, @@ -1631,10 +1684,19 @@ export type PostAccounts = ( | Response > -export type DeleteAccountsAccountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteAccountsAccountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteAccountsAccountResponder = typeof deleteAccountsAccountResponder & + KoaRuntimeResponder + +const deleteAccountsAccountResponseValidator = responseValidationFactory( + [["200", s_deleted_account]], + s_error, +) export type DeleteAccountsAccount = ( params: Params< @@ -1651,10 +1713,19 @@ export type DeleteAccountsAccount = ( | Response > -export type GetAccountsAccountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAccountsAccountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountResponder = typeof getAccountsAccountResponder & + KoaRuntimeResponder + +const getAccountsAccountResponseValidator = responseValidationFactory( + [["200", s_account]], + s_error, +) export type GetAccountsAccount = ( params: Params< @@ -1671,10 +1742,19 @@ export type GetAccountsAccount = ( | Response > -export type PostAccountsAccountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountResponder = typeof postAccountsAccountResponder & + KoaRuntimeResponder + +const postAccountsAccountResponseValidator = responseValidationFactory( + [["200", s_account]], + s_error, +) export type PostAccountsAccount = ( params: Params< @@ -1691,10 +1771,17 @@ export type PostAccountsAccount = ( | Response > -export type PostAccountsAccountBankAccountsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountBankAccountsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountBankAccountsResponder = + typeof postAccountsAccountBankAccountsResponder & KoaRuntimeResponder + +const postAccountsAccountBankAccountsResponseValidator = + responseValidationFactory([["200", s_external_account]], s_error) export type PostAccountsAccountBankAccounts = ( params: Params< @@ -1711,10 +1798,17 @@ export type PostAccountsAccountBankAccounts = ( | Response > -export type DeleteAccountsAccountBankAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteAccountsAccountBankAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteAccountsAccountBankAccountsIdResponder = + typeof deleteAccountsAccountBankAccountsIdResponder & KoaRuntimeResponder + +const deleteAccountsAccountBankAccountsIdResponseValidator = + responseValidationFactory([["200", s_deleted_external_account]], s_error) export type DeleteAccountsAccountBankAccountsId = ( params: Params< @@ -1731,10 +1825,17 @@ export type DeleteAccountsAccountBankAccountsId = ( | Response > -export type GetAccountsAccountBankAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAccountsAccountBankAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountBankAccountsIdResponder = + typeof getAccountsAccountBankAccountsIdResponder & KoaRuntimeResponder + +const getAccountsAccountBankAccountsIdResponseValidator = + responseValidationFactory([["200", s_external_account]], s_error) export type GetAccountsAccountBankAccountsId = ( params: Params< @@ -1751,10 +1852,17 @@ export type GetAccountsAccountBankAccountsId = ( | Response > -export type PostAccountsAccountBankAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountBankAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountBankAccountsIdResponder = + typeof postAccountsAccountBankAccountsIdResponder & KoaRuntimeResponder + +const postAccountsAccountBankAccountsIdResponseValidator = + responseValidationFactory([["200", s_external_account]], s_error) export type PostAccountsAccountBankAccountsId = ( params: Params< @@ -1771,15 +1879,35 @@ export type PostAccountsAccountBankAccountsId = ( | Response > -export type GetAccountsAccountCapabilitiesResponder = { - with200(): KoaRuntimeResponse<{ +const getAccountsAccountCapabilitiesResponder = { + with200: r.with200<{ data: t_capability[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountCapabilitiesResponder = + typeof getAccountsAccountCapabilitiesResponder & KoaRuntimeResponder + +const getAccountsAccountCapabilitiesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_capability)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetAccountsAccountCapabilities = ( params: Params< @@ -1804,10 +1932,17 @@ export type GetAccountsAccountCapabilities = ( | Response > -export type GetAccountsAccountCapabilitiesCapabilityResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAccountsAccountCapabilitiesCapabilityResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountCapabilitiesCapabilityResponder = + typeof getAccountsAccountCapabilitiesCapabilityResponder & KoaRuntimeResponder + +const getAccountsAccountCapabilitiesCapabilityResponseValidator = + responseValidationFactory([["200", s_capability]], s_error) export type GetAccountsAccountCapabilitiesCapability = ( params: Params< @@ -1824,10 +1959,18 @@ export type GetAccountsAccountCapabilitiesCapability = ( | Response > -export type PostAccountsAccountCapabilitiesCapabilityResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountCapabilitiesCapabilityResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountCapabilitiesCapabilityResponder = + typeof postAccountsAccountCapabilitiesCapabilityResponder & + KoaRuntimeResponder + +const postAccountsAccountCapabilitiesCapabilityResponseValidator = + responseValidationFactory([["200", s_capability]], s_error) export type PostAccountsAccountCapabilitiesCapability = ( params: Params< @@ -1844,15 +1987,37 @@ export type PostAccountsAccountCapabilitiesCapability = ( | Response > -export type GetAccountsAccountExternalAccountsResponder = { - with200(): KoaRuntimeResponse<{ +const getAccountsAccountExternalAccountsResponder = { + with200: r.with200<{ data: (t_bank_account | t_card)[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountExternalAccountsResponder = + typeof getAccountsAccountExternalAccountsResponder & KoaRuntimeResponder + +const getAccountsAccountExternalAccountsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array( + z.union([z.lazy(() => s_bank_account), z.lazy(() => s_card)]), + ), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetAccountsAccountExternalAccounts = ( params: Params< @@ -1877,10 +2042,17 @@ export type GetAccountsAccountExternalAccounts = ( | Response > -export type PostAccountsAccountExternalAccountsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountExternalAccountsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountExternalAccountsResponder = + typeof postAccountsAccountExternalAccountsResponder & KoaRuntimeResponder + +const postAccountsAccountExternalAccountsResponseValidator = + responseValidationFactory([["200", s_external_account]], s_error) export type PostAccountsAccountExternalAccounts = ( params: Params< @@ -1897,10 +2069,17 @@ export type PostAccountsAccountExternalAccounts = ( | Response > -export type DeleteAccountsAccountExternalAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteAccountsAccountExternalAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteAccountsAccountExternalAccountsIdResponder = + typeof deleteAccountsAccountExternalAccountsIdResponder & KoaRuntimeResponder + +const deleteAccountsAccountExternalAccountsIdResponseValidator = + responseValidationFactory([["200", s_deleted_external_account]], s_error) export type DeleteAccountsAccountExternalAccountsId = ( params: Params< @@ -1917,10 +2096,17 @@ export type DeleteAccountsAccountExternalAccountsId = ( | Response > -export type GetAccountsAccountExternalAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAccountsAccountExternalAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountExternalAccountsIdResponder = + typeof getAccountsAccountExternalAccountsIdResponder & KoaRuntimeResponder + +const getAccountsAccountExternalAccountsIdResponseValidator = + responseValidationFactory([["200", s_external_account]], s_error) export type GetAccountsAccountExternalAccountsId = ( params: Params< @@ -1937,10 +2123,17 @@ export type GetAccountsAccountExternalAccountsId = ( | Response > -export type PostAccountsAccountExternalAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountExternalAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountExternalAccountsIdResponder = + typeof postAccountsAccountExternalAccountsIdResponder & KoaRuntimeResponder + +const postAccountsAccountExternalAccountsIdResponseValidator = + responseValidationFactory([["200", s_external_account]], s_error) export type PostAccountsAccountExternalAccountsId = ( params: Params< @@ -1957,10 +2150,17 @@ export type PostAccountsAccountExternalAccountsId = ( | Response > -export type PostAccountsAccountLoginLinksResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountLoginLinksResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountLoginLinksResponder = + typeof postAccountsAccountLoginLinksResponder & KoaRuntimeResponder + +const postAccountsAccountLoginLinksResponseValidator = + responseValidationFactory([["200", s_login_link]], s_error) export type PostAccountsAccountLoginLinks = ( params: Params< @@ -1977,15 +2177,34 @@ export type PostAccountsAccountLoginLinks = ( | Response > -export type GetAccountsAccountPeopleResponder = { - with200(): KoaRuntimeResponse<{ +const getAccountsAccountPeopleResponder = { + with200: r.with200<{ data: t_person[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountPeopleResponder = + typeof getAccountsAccountPeopleResponder & KoaRuntimeResponder + +const getAccountsAccountPeopleResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_person)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetAccountsAccountPeople = ( params: Params< @@ -2010,10 +2229,19 @@ export type GetAccountsAccountPeople = ( | Response > -export type PostAccountsAccountPeopleResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountPeopleResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountPeopleResponder = + typeof postAccountsAccountPeopleResponder & KoaRuntimeResponder + +const postAccountsAccountPeopleResponseValidator = responseValidationFactory( + [["200", s_person]], + s_error, +) export type PostAccountsAccountPeople = ( params: Params< @@ -2030,10 +2258,17 @@ export type PostAccountsAccountPeople = ( | Response > -export type DeleteAccountsAccountPeoplePersonResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteAccountsAccountPeoplePersonResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteAccountsAccountPeoplePersonResponder = + typeof deleteAccountsAccountPeoplePersonResponder & KoaRuntimeResponder + +const deleteAccountsAccountPeoplePersonResponseValidator = + responseValidationFactory([["200", s_deleted_person]], s_error) export type DeleteAccountsAccountPeoplePerson = ( params: Params< @@ -2050,10 +2285,17 @@ export type DeleteAccountsAccountPeoplePerson = ( | Response > -export type GetAccountsAccountPeoplePersonResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAccountsAccountPeoplePersonResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountPeoplePersonResponder = + typeof getAccountsAccountPeoplePersonResponder & KoaRuntimeResponder + +const getAccountsAccountPeoplePersonResponseValidator = + responseValidationFactory([["200", s_person]], s_error) export type GetAccountsAccountPeoplePerson = ( params: Params< @@ -2070,10 +2312,17 @@ export type GetAccountsAccountPeoplePerson = ( | Response > -export type PostAccountsAccountPeoplePersonResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountPeoplePersonResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountPeoplePersonResponder = + typeof postAccountsAccountPeoplePersonResponder & KoaRuntimeResponder + +const postAccountsAccountPeoplePersonResponseValidator = + responseValidationFactory([["200", s_person]], s_error) export type PostAccountsAccountPeoplePerson = ( params: Params< @@ -2090,15 +2339,34 @@ export type PostAccountsAccountPeoplePerson = ( | Response > -export type GetAccountsAccountPersonsResponder = { - with200(): KoaRuntimeResponse<{ +const getAccountsAccountPersonsResponder = { + with200: r.with200<{ data: t_person[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountPersonsResponder = + typeof getAccountsAccountPersonsResponder & KoaRuntimeResponder + +const getAccountsAccountPersonsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_person)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetAccountsAccountPersons = ( params: Params< @@ -2123,10 +2391,19 @@ export type GetAccountsAccountPersons = ( | Response > -export type PostAccountsAccountPersonsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountPersonsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountPersonsResponder = + typeof postAccountsAccountPersonsResponder & KoaRuntimeResponder + +const postAccountsAccountPersonsResponseValidator = responseValidationFactory( + [["200", s_person]], + s_error, +) export type PostAccountsAccountPersons = ( params: Params< @@ -2143,10 +2420,17 @@ export type PostAccountsAccountPersons = ( | Response > -export type DeleteAccountsAccountPersonsPersonResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteAccountsAccountPersonsPersonResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteAccountsAccountPersonsPersonResponder = + typeof deleteAccountsAccountPersonsPersonResponder & KoaRuntimeResponder + +const deleteAccountsAccountPersonsPersonResponseValidator = + responseValidationFactory([["200", s_deleted_person]], s_error) export type DeleteAccountsAccountPersonsPerson = ( params: Params< @@ -2163,10 +2447,17 @@ export type DeleteAccountsAccountPersonsPerson = ( | Response > -export type GetAccountsAccountPersonsPersonResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAccountsAccountPersonsPersonResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAccountsAccountPersonsPersonResponder = + typeof getAccountsAccountPersonsPersonResponder & KoaRuntimeResponder + +const getAccountsAccountPersonsPersonResponseValidator = + responseValidationFactory([["200", s_person]], s_error) export type GetAccountsAccountPersonsPerson = ( params: Params< @@ -2183,10 +2474,17 @@ export type GetAccountsAccountPersonsPerson = ( | Response > -export type PostAccountsAccountPersonsPersonResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountPersonsPersonResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountPersonsPersonResponder = + typeof postAccountsAccountPersonsPersonResponder & KoaRuntimeResponder + +const postAccountsAccountPersonsPersonResponseValidator = + responseValidationFactory([["200", s_person]], s_error) export type PostAccountsAccountPersonsPerson = ( params: Params< @@ -2203,10 +2501,19 @@ export type PostAccountsAccountPersonsPerson = ( | Response > -export type PostAccountsAccountRejectResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAccountsAccountRejectResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAccountsAccountRejectResponder = + typeof postAccountsAccountRejectResponder & KoaRuntimeResponder + +const postAccountsAccountRejectResponseValidator = responseValidationFactory( + [["200", s_account]], + s_error, +) export type PostAccountsAccountReject = ( params: Params< @@ -2223,15 +2530,34 @@ export type PostAccountsAccountReject = ( | Response > -export type GetApplePayDomainsResponder = { - with200(): KoaRuntimeResponse<{ +const getApplePayDomainsResponder = { + with200: r.with200<{ data: t_apple_pay_domain[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetApplePayDomainsResponder = typeof getApplePayDomainsResponder & + KoaRuntimeResponder + +const getApplePayDomainsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_apple_pay_domain), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/apple_pay/domains")), + }), + ], + ], + s_error, +) export type GetApplePayDomains = ( params: Params< @@ -2256,10 +2582,19 @@ export type GetApplePayDomains = ( | Response > -export type PostApplePayDomainsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postApplePayDomainsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostApplePayDomainsResponder = typeof postApplePayDomainsResponder & + KoaRuntimeResponder + +const postApplePayDomainsResponseValidator = responseValidationFactory( + [["200", s_apple_pay_domain]], + s_error, +) export type PostApplePayDomains = ( params: Params, @@ -2271,10 +2606,19 @@ export type PostApplePayDomains = ( | Response > -export type DeleteApplePayDomainsDomainResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteApplePayDomainsDomainResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteApplePayDomainsDomainResponder = + typeof deleteApplePayDomainsDomainResponder & KoaRuntimeResponder + +const deleteApplePayDomainsDomainResponseValidator = responseValidationFactory( + [["200", s_deleted_apple_pay_domain]], + s_error, +) export type DeleteApplePayDomainsDomain = ( params: Params< @@ -2291,10 +2635,19 @@ export type DeleteApplePayDomainsDomain = ( | Response > -export type GetApplePayDomainsDomainResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getApplePayDomainsDomainResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetApplePayDomainsDomainResponder = + typeof getApplePayDomainsDomainResponder & KoaRuntimeResponder + +const getApplePayDomainsDomainResponseValidator = responseValidationFactory( + [["200", s_apple_pay_domain]], + s_error, +) export type GetApplePayDomainsDomain = ( params: Params< @@ -2311,15 +2664,34 @@ export type GetApplePayDomainsDomain = ( | Response > -export type GetApplicationFeesResponder = { - with200(): KoaRuntimeResponse<{ +const getApplicationFeesResponder = { + with200: r.with200<{ data: t_application_fee[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetApplicationFeesResponder = typeof getApplicationFeesResponder & + KoaRuntimeResponder + +const getApplicationFeesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_application_fee)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/application_fees")), + }), + ], + ], + s_error, +) export type GetApplicationFees = ( params: Params< @@ -2344,10 +2716,17 @@ export type GetApplicationFees = ( | Response > -export type GetApplicationFeesFeeRefundsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getApplicationFeesFeeRefundsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetApplicationFeesFeeRefundsIdResponder = + typeof getApplicationFeesFeeRefundsIdResponder & KoaRuntimeResponder + +const getApplicationFeesFeeRefundsIdResponseValidator = + responseValidationFactory([["200", s_fee_refund]], s_error) export type GetApplicationFeesFeeRefundsId = ( params: Params< @@ -2364,10 +2743,17 @@ export type GetApplicationFeesFeeRefundsId = ( | Response > -export type PostApplicationFeesFeeRefundsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postApplicationFeesFeeRefundsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostApplicationFeesFeeRefundsIdResponder = + typeof postApplicationFeesFeeRefundsIdResponder & KoaRuntimeResponder + +const postApplicationFeesFeeRefundsIdResponseValidator = + responseValidationFactory([["200", s_fee_refund]], s_error) export type PostApplicationFeesFeeRefundsId = ( params: Params< @@ -2384,10 +2770,19 @@ export type PostApplicationFeesFeeRefundsId = ( | Response > -export type GetApplicationFeesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getApplicationFeesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetApplicationFeesIdResponder = typeof getApplicationFeesIdResponder & + KoaRuntimeResponder + +const getApplicationFeesIdResponseValidator = responseValidationFactory( + [["200", s_application_fee]], + s_error, +) export type GetApplicationFeesId = ( params: Params< @@ -2404,10 +2799,19 @@ export type GetApplicationFeesId = ( | Response > -export type PostApplicationFeesIdRefundResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postApplicationFeesIdRefundResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostApplicationFeesIdRefundResponder = + typeof postApplicationFeesIdRefundResponder & KoaRuntimeResponder + +const postApplicationFeesIdRefundResponseValidator = responseValidationFactory( + [["200", s_application_fee]], + s_error, +) export type PostApplicationFeesIdRefund = ( params: Params< @@ -2424,15 +2828,34 @@ export type PostApplicationFeesIdRefund = ( | Response > -export type GetApplicationFeesIdRefundsResponder = { - with200(): KoaRuntimeResponse<{ +const getApplicationFeesIdRefundsResponder = { + with200: r.with200<{ data: t_fee_refund[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetApplicationFeesIdRefundsResponder = + typeof getApplicationFeesIdRefundsResponder & KoaRuntimeResponder + +const getApplicationFeesIdRefundsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_fee_refund)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetApplicationFeesIdRefunds = ( params: Params< @@ -2457,10 +2880,19 @@ export type GetApplicationFeesIdRefunds = ( | Response > -export type PostApplicationFeesIdRefundsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postApplicationFeesIdRefundsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostApplicationFeesIdRefundsResponder = + typeof postApplicationFeesIdRefundsResponder & KoaRuntimeResponder + +const postApplicationFeesIdRefundsResponseValidator = responseValidationFactory( + [["200", s_fee_refund]], + s_error, +) export type PostApplicationFeesIdRefunds = ( params: Params< @@ -2477,15 +2909,34 @@ export type PostApplicationFeesIdRefunds = ( | Response > -export type GetAppsSecretsResponder = { - with200(): KoaRuntimeResponse<{ +const getAppsSecretsResponder = { + with200: r.with200<{ data: t_apps_secret[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAppsSecretsResponder = typeof getAppsSecretsResponder & + KoaRuntimeResponder + +const getAppsSecretsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_apps_secret), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/apps/secrets")), + }), + ], + ], + s_error, +) export type GetAppsSecrets = ( params: Params< @@ -2510,10 +2961,19 @@ export type GetAppsSecrets = ( | Response > -export type PostAppsSecretsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAppsSecretsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAppsSecretsResponder = typeof postAppsSecretsResponder & + KoaRuntimeResponder + +const postAppsSecretsResponseValidator = responseValidationFactory( + [["200", s_apps_secret]], + s_error, +) export type PostAppsSecrets = ( params: Params, @@ -2525,10 +2985,19 @@ export type PostAppsSecrets = ( | Response > -export type PostAppsSecretsDeleteResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postAppsSecretsDeleteResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostAppsSecretsDeleteResponder = typeof postAppsSecretsDeleteResponder & + KoaRuntimeResponder + +const postAppsSecretsDeleteResponseValidator = responseValidationFactory( + [["200", s_apps_secret]], + s_error, +) export type PostAppsSecretsDelete = ( params: Params, @@ -2540,10 +3009,19 @@ export type PostAppsSecretsDelete = ( | Response > -export type GetAppsSecretsFindResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getAppsSecretsFindResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetAppsSecretsFindResponder = typeof getAppsSecretsFindResponder & + KoaRuntimeResponder + +const getAppsSecretsFindResponseValidator = responseValidationFactory( + [["200", s_apps_secret]], + s_error, +) export type GetAppsSecretsFind = ( params: Params< @@ -2560,10 +3038,18 @@ export type GetAppsSecretsFind = ( | Response > -export type GetBalanceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBalanceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBalanceResponder = typeof getBalanceResponder & KoaRuntimeResponder + +const getBalanceResponseValidator = responseValidationFactory( + [["200", s_balance]], + s_error, +) export type GetBalance = ( params: Params< @@ -2580,15 +3066,37 @@ export type GetBalance = ( | Response > -export type GetBalanceHistoryResponder = { - with200(): KoaRuntimeResponse<{ +const getBalanceHistoryResponder = { + with200: r.with200<{ data: t_balance_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBalanceHistoryResponder = typeof getBalanceHistoryResponder & + KoaRuntimeResponder + +const getBalanceHistoryResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/balance_transactions")), + }), + ], + ], + s_error, +) export type GetBalanceHistory = ( params: Params< @@ -2613,10 +3121,19 @@ export type GetBalanceHistory = ( | Response > -export type GetBalanceHistoryIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBalanceHistoryIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBalanceHistoryIdResponder = typeof getBalanceHistoryIdResponder & + KoaRuntimeResponder + +const getBalanceHistoryIdResponseValidator = responseValidationFactory( + [["200", s_balance_transaction]], + s_error, +) export type GetBalanceHistoryId = ( params: Params< @@ -2633,15 +3150,37 @@ export type GetBalanceHistoryId = ( | Response > -export type GetBalanceTransactionsResponder = { - with200(): KoaRuntimeResponse<{ +const getBalanceTransactionsResponder = { + with200: r.with200<{ data: t_balance_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBalanceTransactionsResponder = typeof getBalanceTransactionsResponder & + KoaRuntimeResponder + +const getBalanceTransactionsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/balance_transactions")), + }), + ], + ], + s_error, +) export type GetBalanceTransactions = ( params: Params< @@ -2666,10 +3205,19 @@ export type GetBalanceTransactions = ( | Response > -export type GetBalanceTransactionsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBalanceTransactionsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBalanceTransactionsIdResponder = + typeof getBalanceTransactionsIdResponder & KoaRuntimeResponder + +const getBalanceTransactionsIdResponseValidator = responseValidationFactory( + [["200", s_balance_transaction]], + s_error, +) export type GetBalanceTransactionsId = ( params: Params< @@ -2686,15 +3234,34 @@ export type GetBalanceTransactionsId = ( | Response > -export type GetBillingAlertsResponder = { - with200(): KoaRuntimeResponse<{ +const getBillingAlertsResponder = { + with200: r.with200<{ data: t_billing_alert[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingAlertsResponder = typeof getBillingAlertsResponder & + KoaRuntimeResponder + +const getBillingAlertsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_billing_alert)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/billing/alerts")), + }), + ], + ], + s_error, +) export type GetBillingAlerts = ( params: Params< @@ -2719,10 +3286,19 @@ export type GetBillingAlerts = ( | Response > -export type PostBillingAlertsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingAlertsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingAlertsResponder = typeof postBillingAlertsResponder & + KoaRuntimeResponder + +const postBillingAlertsResponseValidator = responseValidationFactory( + [["200", s_billing_alert]], + s_error, +) export type PostBillingAlerts = ( params: Params, @@ -2734,10 +3310,19 @@ export type PostBillingAlerts = ( | Response > -export type GetBillingAlertsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBillingAlertsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingAlertsIdResponder = typeof getBillingAlertsIdResponder & + KoaRuntimeResponder + +const getBillingAlertsIdResponseValidator = responseValidationFactory( + [["200", s_billing_alert]], + s_error, +) export type GetBillingAlertsId = ( params: Params< @@ -2754,10 +3339,19 @@ export type GetBillingAlertsId = ( | Response > -export type PostBillingAlertsIdActivateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingAlertsIdActivateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingAlertsIdActivateResponder = + typeof postBillingAlertsIdActivateResponder & KoaRuntimeResponder + +const postBillingAlertsIdActivateResponseValidator = responseValidationFactory( + [["200", s_billing_alert]], + s_error, +) export type PostBillingAlertsIdActivate = ( params: Params< @@ -2774,10 +3368,19 @@ export type PostBillingAlertsIdActivate = ( | Response > -export type PostBillingAlertsIdArchiveResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingAlertsIdArchiveResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingAlertsIdArchiveResponder = + typeof postBillingAlertsIdArchiveResponder & KoaRuntimeResponder + +const postBillingAlertsIdArchiveResponseValidator = responseValidationFactory( + [["200", s_billing_alert]], + s_error, +) export type PostBillingAlertsIdArchive = ( params: Params< @@ -2794,10 +3397,17 @@ export type PostBillingAlertsIdArchive = ( | Response > -export type PostBillingAlertsIdDeactivateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingAlertsIdDeactivateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingAlertsIdDeactivateResponder = + typeof postBillingAlertsIdDeactivateResponder & KoaRuntimeResponder + +const postBillingAlertsIdDeactivateResponseValidator = + responseValidationFactory([["200", s_billing_alert]], s_error) export type PostBillingAlertsIdDeactivate = ( params: Params< @@ -2814,10 +3424,20 @@ export type PostBillingAlertsIdDeactivate = ( | Response > -export type GetBillingCreditBalanceSummaryResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBillingCreditBalanceSummaryResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingCreditBalanceSummaryResponder = + typeof getBillingCreditBalanceSummaryResponder & KoaRuntimeResponder + +const getBillingCreditBalanceSummaryResponseValidator = + responseValidationFactory( + [["200", s_billing_credit_balance_summary]], + s_error, + ) export type GetBillingCreditBalanceSummary = ( params: Params< @@ -2834,15 +3454,38 @@ export type GetBillingCreditBalanceSummary = ( | Response > -export type GetBillingCreditBalanceTransactionsResponder = { - with200(): KoaRuntimeResponse<{ +const getBillingCreditBalanceTransactionsResponder = { + with200: r.with200<{ data: t_billing_credit_balance_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingCreditBalanceTransactionsResponder = + typeof getBillingCreditBalanceTransactionsResponder & KoaRuntimeResponder + +const getBillingCreditBalanceTransactionsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_billing_credit_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/billing/credit_grants")), + }), + ], + ], + s_error, + ) export type GetBillingCreditBalanceTransactions = ( params: Params< @@ -2867,10 +3510,20 @@ export type GetBillingCreditBalanceTransactions = ( | Response > -export type GetBillingCreditBalanceTransactionsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBillingCreditBalanceTransactionsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingCreditBalanceTransactionsIdResponder = + typeof getBillingCreditBalanceTransactionsIdResponder & KoaRuntimeResponder + +const getBillingCreditBalanceTransactionsIdResponseValidator = + responseValidationFactory( + [["200", s_billing_credit_balance_transaction]], + s_error, + ) export type GetBillingCreditBalanceTransactionsId = ( params: Params< @@ -2887,15 +3540,37 @@ export type GetBillingCreditBalanceTransactionsId = ( | Response > -export type GetBillingCreditGrantsResponder = { - with200(): KoaRuntimeResponse<{ +const getBillingCreditGrantsResponder = { + with200: r.with200<{ data: t_billing_credit_grant[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingCreditGrantsResponder = typeof getBillingCreditGrantsResponder & + KoaRuntimeResponder + +const getBillingCreditGrantsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_billing_credit_grant)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/billing/credit_grants")), + }), + ], + ], + s_error, +) export type GetBillingCreditGrants = ( params: Params< @@ -2920,10 +3595,19 @@ export type GetBillingCreditGrants = ( | Response > -export type PostBillingCreditGrantsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingCreditGrantsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingCreditGrantsResponder = + typeof postBillingCreditGrantsResponder & KoaRuntimeResponder + +const postBillingCreditGrantsResponseValidator = responseValidationFactory( + [["200", s_billing_credit_grant]], + s_error, +) export type PostBillingCreditGrants = ( params: Params, @@ -2935,10 +3619,19 @@ export type PostBillingCreditGrants = ( | Response > -export type GetBillingCreditGrantsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBillingCreditGrantsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingCreditGrantsIdResponder = + typeof getBillingCreditGrantsIdResponder & KoaRuntimeResponder + +const getBillingCreditGrantsIdResponseValidator = responseValidationFactory( + [["200", s_billing_credit_grant]], + s_error, +) export type GetBillingCreditGrantsId = ( params: Params< @@ -2955,10 +3648,19 @@ export type GetBillingCreditGrantsId = ( | Response > -export type PostBillingCreditGrantsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingCreditGrantsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingCreditGrantsIdResponder = + typeof postBillingCreditGrantsIdResponder & KoaRuntimeResponder + +const postBillingCreditGrantsIdResponseValidator = responseValidationFactory( + [["200", s_billing_credit_grant]], + s_error, +) export type PostBillingCreditGrantsId = ( params: Params< @@ -2975,10 +3677,17 @@ export type PostBillingCreditGrantsId = ( | Response > -export type PostBillingCreditGrantsIdExpireResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingCreditGrantsIdExpireResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingCreditGrantsIdExpireResponder = + typeof postBillingCreditGrantsIdExpireResponder & KoaRuntimeResponder + +const postBillingCreditGrantsIdExpireResponseValidator = + responseValidationFactory([["200", s_billing_credit_grant]], s_error) export type PostBillingCreditGrantsIdExpire = ( params: Params< @@ -2995,10 +3704,17 @@ export type PostBillingCreditGrantsIdExpire = ( | Response > -export type PostBillingCreditGrantsIdVoidResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingCreditGrantsIdVoidResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingCreditGrantsIdVoidResponder = + typeof postBillingCreditGrantsIdVoidResponder & KoaRuntimeResponder + +const postBillingCreditGrantsIdVoidResponseValidator = + responseValidationFactory([["200", s_billing_credit_grant]], s_error) export type PostBillingCreditGrantsIdVoid = ( params: Params< @@ -3015,10 +3731,20 @@ export type PostBillingCreditGrantsIdVoid = ( | Response > -export type PostBillingMeterEventAdjustmentsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingMeterEventAdjustmentsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingMeterEventAdjustmentsResponder = + typeof postBillingMeterEventAdjustmentsResponder & KoaRuntimeResponder + +const postBillingMeterEventAdjustmentsResponseValidator = + responseValidationFactory( + [["200", s_billing_meter_event_adjustment]], + s_error, + ) export type PostBillingMeterEventAdjustments = ( params: Params< @@ -3035,10 +3761,19 @@ export type PostBillingMeterEventAdjustments = ( | Response > -export type PostBillingMeterEventsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingMeterEventsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingMeterEventsResponder = typeof postBillingMeterEventsResponder & + KoaRuntimeResponder + +const postBillingMeterEventsResponseValidator = responseValidationFactory( + [["200", s_billing_meter_event]], + s_error, +) export type PostBillingMeterEvents = ( params: Params, @@ -3050,15 +3785,34 @@ export type PostBillingMeterEvents = ( | Response > -export type GetBillingMetersResponder = { - with200(): KoaRuntimeResponse<{ +const getBillingMetersResponder = { + with200: r.with200<{ data: t_billing_meter[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingMetersResponder = typeof getBillingMetersResponder & + KoaRuntimeResponder + +const getBillingMetersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_billing_meter), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/billing/meters")), + }), + ], + ], + s_error, +) export type GetBillingMeters = ( params: Params< @@ -3083,10 +3837,19 @@ export type GetBillingMeters = ( | Response > -export type PostBillingMetersResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingMetersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingMetersResponder = typeof postBillingMetersResponder & + KoaRuntimeResponder + +const postBillingMetersResponseValidator = responseValidationFactory( + [["200", s_billing_meter]], + s_error, +) export type PostBillingMeters = ( params: Params, @@ -3098,10 +3861,19 @@ export type PostBillingMeters = ( | Response > -export type GetBillingMetersIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBillingMetersIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingMetersIdResponder = typeof getBillingMetersIdResponder & + KoaRuntimeResponder + +const getBillingMetersIdResponseValidator = responseValidationFactory( + [["200", s_billing_meter]], + s_error, +) export type GetBillingMetersId = ( params: Params< @@ -3118,10 +3890,19 @@ export type GetBillingMetersId = ( | Response > -export type PostBillingMetersIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingMetersIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingMetersIdResponder = typeof postBillingMetersIdResponder & + KoaRuntimeResponder + +const postBillingMetersIdResponseValidator = responseValidationFactory( + [["200", s_billing_meter]], + s_error, +) export type PostBillingMetersId = ( params: Params< @@ -3138,10 +3919,17 @@ export type PostBillingMetersId = ( | Response > -export type PostBillingMetersIdDeactivateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingMetersIdDeactivateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingMetersIdDeactivateResponder = + typeof postBillingMetersIdDeactivateResponder & KoaRuntimeResponder + +const postBillingMetersIdDeactivateResponseValidator = + responseValidationFactory([["200", s_billing_meter]], s_error) export type PostBillingMetersIdDeactivate = ( params: Params< @@ -3158,15 +3946,38 @@ export type PostBillingMetersIdDeactivate = ( | Response > -export type GetBillingMetersIdEventSummariesResponder = { - with200(): KoaRuntimeResponse<{ +const getBillingMetersIdEventSummariesResponder = { + with200: r.with200<{ data: t_billing_meter_event_summary[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingMetersIdEventSummariesResponder = + typeof getBillingMetersIdEventSummariesResponder & KoaRuntimeResponder + +const getBillingMetersIdEventSummariesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_billing_meter_event_summary), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/billing/meters/[^/]+/event_summaries")), + }), + ], + ], + s_error, + ) export type GetBillingMetersIdEventSummaries = ( params: Params< @@ -3191,10 +4002,17 @@ export type GetBillingMetersIdEventSummaries = ( | Response > -export type PostBillingMetersIdReactivateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingMetersIdReactivateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingMetersIdReactivateResponder = + typeof postBillingMetersIdReactivateResponder & KoaRuntimeResponder + +const postBillingMetersIdReactivateResponseValidator = + responseValidationFactory([["200", s_billing_meter]], s_error) export type PostBillingMetersIdReactivate = ( params: Params< @@ -3211,15 +4029,38 @@ export type PostBillingMetersIdReactivate = ( | Response > -export type GetBillingPortalConfigurationsResponder = { - with200(): KoaRuntimeResponse<{ +const getBillingPortalConfigurationsResponder = { + with200: r.with200<{ data: t_billing_portal_configuration[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingPortalConfigurationsResponder = + typeof getBillingPortalConfigurationsResponder & KoaRuntimeResponder + +const getBillingPortalConfigurationsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_billing_portal_configuration), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/billing_portal/configurations")), + }), + ], + ], + s_error, + ) export type GetBillingPortalConfigurations = ( params: Params< @@ -3244,10 +4085,17 @@ export type GetBillingPortalConfigurations = ( | Response > -export type PostBillingPortalConfigurationsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingPortalConfigurationsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingPortalConfigurationsResponder = + typeof postBillingPortalConfigurationsResponder & KoaRuntimeResponder + +const postBillingPortalConfigurationsResponseValidator = + responseValidationFactory([["200", s_billing_portal_configuration]], s_error) export type PostBillingPortalConfigurations = ( params: Params, @@ -3259,10 +4107,18 @@ export type PostBillingPortalConfigurations = ( | Response > -export type GetBillingPortalConfigurationsConfigurationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getBillingPortalConfigurationsConfigurationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetBillingPortalConfigurationsConfigurationResponder = + typeof getBillingPortalConfigurationsConfigurationResponder & + KoaRuntimeResponder + +const getBillingPortalConfigurationsConfigurationResponseValidator = + responseValidationFactory([["200", s_billing_portal_configuration]], s_error) export type GetBillingPortalConfigurationsConfiguration = ( params: Params< @@ -3279,10 +4135,18 @@ export type GetBillingPortalConfigurationsConfiguration = ( | Response > -export type PostBillingPortalConfigurationsConfigurationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingPortalConfigurationsConfigurationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingPortalConfigurationsConfigurationResponder = + typeof postBillingPortalConfigurationsConfigurationResponder & + KoaRuntimeResponder + +const postBillingPortalConfigurationsConfigurationResponseValidator = + responseValidationFactory([["200", s_billing_portal_configuration]], s_error) export type PostBillingPortalConfigurationsConfiguration = ( params: Params< @@ -3299,10 +4163,19 @@ export type PostBillingPortalConfigurationsConfiguration = ( | Response > -export type PostBillingPortalSessionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postBillingPortalSessionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostBillingPortalSessionsResponder = + typeof postBillingPortalSessionsResponder & KoaRuntimeResponder + +const postBillingPortalSessionsResponseValidator = responseValidationFactory( + [["200", s_billing_portal_session]], + s_error, +) export type PostBillingPortalSessions = ( params: Params, @@ -3314,15 +4187,33 @@ export type PostBillingPortalSessions = ( | Response > -export type GetChargesResponder = { - with200(): KoaRuntimeResponse<{ +const getChargesResponder = { + with200: r.with200<{ data: t_charge[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetChargesResponder = typeof getChargesResponder & KoaRuntimeResponder + +const getChargesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_charge)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/charges")), + }), + ], + ], + s_error, +) export type GetCharges = ( params: Params< @@ -3347,10 +4238,18 @@ export type GetCharges = ( | Response > -export type PostChargesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postChargesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostChargesResponder = typeof postChargesResponder & KoaRuntimeResponder + +const postChargesResponseValidator = responseValidationFactory( + [["200", s_charge]], + s_error, +) export type PostCharges = ( params: Params, @@ -3362,17 +4261,38 @@ export type PostCharges = ( | Response > -export type GetChargesSearchResponder = { - with200(): KoaRuntimeResponse<{ +const getChargesSearchResponder = { + with200: r.with200<{ data: t_charge[] has_more: boolean next_page?: string | null object: "search_result" total_count?: number url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetChargesSearchResponder = typeof getChargesSearchResponder & + KoaRuntimeResponder + +const getChargesSearchResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_charge)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetChargesSearch = ( params: Params< @@ -3399,10 +4319,19 @@ export type GetChargesSearch = ( | Response > -export type GetChargesChargeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getChargesChargeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetChargesChargeResponder = typeof getChargesChargeResponder & + KoaRuntimeResponder + +const getChargesChargeResponseValidator = responseValidationFactory( + [["200", s_charge]], + s_error, +) export type GetChargesCharge = ( params: Params< @@ -3419,10 +4348,19 @@ export type GetChargesCharge = ( | Response > -export type PostChargesChargeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postChargesChargeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostChargesChargeResponder = typeof postChargesChargeResponder & + KoaRuntimeResponder + +const postChargesChargeResponseValidator = responseValidationFactory( + [["200", s_charge]], + s_error, +) export type PostChargesCharge = ( params: Params< @@ -3439,10 +4377,19 @@ export type PostChargesCharge = ( | Response > -export type PostChargesChargeCaptureResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postChargesChargeCaptureResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostChargesChargeCaptureResponder = + typeof postChargesChargeCaptureResponder & KoaRuntimeResponder + +const postChargesChargeCaptureResponseValidator = responseValidationFactory( + [["200", s_charge]], + s_error, +) export type PostChargesChargeCapture = ( params: Params< @@ -3459,10 +4406,19 @@ export type PostChargesChargeCapture = ( | Response > -export type GetChargesChargeDisputeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getChargesChargeDisputeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetChargesChargeDisputeResponder = + typeof getChargesChargeDisputeResponder & KoaRuntimeResponder + +const getChargesChargeDisputeResponseValidator = responseValidationFactory( + [["200", s_dispute]], + s_error, +) export type GetChargesChargeDispute = ( params: Params< @@ -3479,10 +4435,19 @@ export type GetChargesChargeDispute = ( | Response > -export type PostChargesChargeDisputeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postChargesChargeDisputeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostChargesChargeDisputeResponder = + typeof postChargesChargeDisputeResponder & KoaRuntimeResponder + +const postChargesChargeDisputeResponseValidator = responseValidationFactory( + [["200", s_dispute]], + s_error, +) export type PostChargesChargeDispute = ( params: Params< @@ -3499,10 +4464,17 @@ export type PostChargesChargeDispute = ( | Response > -export type PostChargesChargeDisputeCloseResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postChargesChargeDisputeCloseResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostChargesChargeDisputeCloseResponder = + typeof postChargesChargeDisputeCloseResponder & KoaRuntimeResponder + +const postChargesChargeDisputeCloseResponseValidator = + responseValidationFactory([["200", s_dispute]], s_error) export type PostChargesChargeDisputeClose = ( params: Params< @@ -3519,10 +4491,19 @@ export type PostChargesChargeDisputeClose = ( | Response > -export type PostChargesChargeRefundResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postChargesChargeRefundResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostChargesChargeRefundResponder = + typeof postChargesChargeRefundResponder & KoaRuntimeResponder + +const postChargesChargeRefundResponseValidator = responseValidationFactory( + [["200", s_charge]], + s_error, +) export type PostChargesChargeRefund = ( params: Params< @@ -3539,15 +4520,34 @@ export type PostChargesChargeRefund = ( | Response > -export type GetChargesChargeRefundsResponder = { - with200(): KoaRuntimeResponse<{ +const getChargesChargeRefundsResponder = { + with200: r.with200<{ data: t_refund[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetChargesChargeRefundsResponder = + typeof getChargesChargeRefundsResponder & KoaRuntimeResponder + +const getChargesChargeRefundsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_refund)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetChargesChargeRefunds = ( params: Params< @@ -3572,10 +4572,19 @@ export type GetChargesChargeRefunds = ( | Response > -export type PostChargesChargeRefundsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postChargesChargeRefundsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostChargesChargeRefundsResponder = + typeof postChargesChargeRefundsResponder & KoaRuntimeResponder + +const postChargesChargeRefundsResponseValidator = responseValidationFactory( + [["200", s_refund]], + s_error, +) export type PostChargesChargeRefunds = ( params: Params< @@ -3592,10 +4601,17 @@ export type PostChargesChargeRefunds = ( | Response > -export type GetChargesChargeRefundsRefundResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getChargesChargeRefundsRefundResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetChargesChargeRefundsRefundResponder = + typeof getChargesChargeRefundsRefundResponder & KoaRuntimeResponder + +const getChargesChargeRefundsRefundResponseValidator = + responseValidationFactory([["200", s_refund]], s_error) export type GetChargesChargeRefundsRefund = ( params: Params< @@ -3612,10 +4628,17 @@ export type GetChargesChargeRefundsRefund = ( | Response > -export type PostChargesChargeRefundsRefundResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postChargesChargeRefundsRefundResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostChargesChargeRefundsRefundResponder = + typeof postChargesChargeRefundsRefundResponder & KoaRuntimeResponder + +const postChargesChargeRefundsRefundResponseValidator = + responseValidationFactory([["200", s_refund]], s_error) export type PostChargesChargeRefundsRefund = ( params: Params< @@ -3632,15 +4655,34 @@ export type PostChargesChargeRefundsRefund = ( | Response > -export type GetCheckoutSessionsResponder = { - with200(): KoaRuntimeResponse<{ +const getCheckoutSessionsResponder = { + with200: r.with200<{ data: t_checkout_session[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCheckoutSessionsResponder = typeof getCheckoutSessionsResponder & + KoaRuntimeResponder + +const getCheckoutSessionsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_checkout_session)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetCheckoutSessions = ( params: Params< @@ -3665,10 +4707,19 @@ export type GetCheckoutSessions = ( | Response > -export type PostCheckoutSessionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCheckoutSessionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCheckoutSessionsResponder = typeof postCheckoutSessionsResponder & + KoaRuntimeResponder + +const postCheckoutSessionsResponseValidator = responseValidationFactory( + [["200", s_checkout_session]], + s_error, +) export type PostCheckoutSessions = ( params: Params< @@ -3685,10 +4736,19 @@ export type PostCheckoutSessions = ( | Response > -export type GetCheckoutSessionsSessionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCheckoutSessionsSessionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCheckoutSessionsSessionResponder = + typeof getCheckoutSessionsSessionResponder & KoaRuntimeResponder + +const getCheckoutSessionsSessionResponseValidator = responseValidationFactory( + [["200", s_checkout_session]], + s_error, +) export type GetCheckoutSessionsSession = ( params: Params< @@ -3705,10 +4765,19 @@ export type GetCheckoutSessionsSession = ( | Response > -export type PostCheckoutSessionsSessionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCheckoutSessionsSessionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCheckoutSessionsSessionResponder = + typeof postCheckoutSessionsSessionResponder & KoaRuntimeResponder + +const postCheckoutSessionsSessionResponseValidator = responseValidationFactory( + [["200", s_checkout_session]], + s_error, +) export type PostCheckoutSessionsSession = ( params: Params< @@ -3725,10 +4794,17 @@ export type PostCheckoutSessionsSession = ( | Response > -export type PostCheckoutSessionsSessionExpireResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCheckoutSessionsSessionExpireResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCheckoutSessionsSessionExpireResponder = + typeof postCheckoutSessionsSessionExpireResponder & KoaRuntimeResponder + +const postCheckoutSessionsSessionExpireResponseValidator = + responseValidationFactory([["200", s_checkout_session]], s_error) export type PostCheckoutSessionsSessionExpire = ( params: Params< @@ -3745,15 +4821,35 @@ export type PostCheckoutSessionsSessionExpire = ( | Response > -export type GetCheckoutSessionsSessionLineItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getCheckoutSessionsSessionLineItemsResponder = { + with200: r.with200<{ data: t_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCheckoutSessionsSessionLineItemsResponder = + typeof getCheckoutSessionsSessionLineItemsResponder & KoaRuntimeResponder + +const getCheckoutSessionsSessionLineItemsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetCheckoutSessionsSessionLineItems = ( params: Params< @@ -3778,15 +4874,34 @@ export type GetCheckoutSessionsSessionLineItems = ( | Response > -export type GetClimateOrdersResponder = { - with200(): KoaRuntimeResponse<{ +const getClimateOrdersResponder = { + with200: r.with200<{ data: t_climate_order[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetClimateOrdersResponder = typeof getClimateOrdersResponder & + KoaRuntimeResponder + +const getClimateOrdersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_climate_order), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/climate/orders")), + }), + ], + ], + s_error, +) export type GetClimateOrders = ( params: Params< @@ -3811,10 +4926,19 @@ export type GetClimateOrders = ( | Response > -export type PostClimateOrdersResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postClimateOrdersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostClimateOrdersResponder = typeof postClimateOrdersResponder & + KoaRuntimeResponder + +const postClimateOrdersResponseValidator = responseValidationFactory( + [["200", s_climate_order]], + s_error, +) export type PostClimateOrders = ( params: Params, @@ -3826,10 +4950,19 @@ export type PostClimateOrders = ( | Response > -export type GetClimateOrdersOrderResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getClimateOrdersOrderResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetClimateOrdersOrderResponder = typeof getClimateOrdersOrderResponder & + KoaRuntimeResponder + +const getClimateOrdersOrderResponseValidator = responseValidationFactory( + [["200", s_climate_order]], + s_error, +) export type GetClimateOrdersOrder = ( params: Params< @@ -3846,10 +4979,19 @@ export type GetClimateOrdersOrder = ( | Response > -export type PostClimateOrdersOrderResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postClimateOrdersOrderResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostClimateOrdersOrderResponder = typeof postClimateOrdersOrderResponder & + KoaRuntimeResponder + +const postClimateOrdersOrderResponseValidator = responseValidationFactory( + [["200", s_climate_order]], + s_error, +) export type PostClimateOrdersOrder = ( params: Params< @@ -3866,10 +5008,19 @@ export type PostClimateOrdersOrder = ( | Response > -export type PostClimateOrdersOrderCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postClimateOrdersOrderCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostClimateOrdersOrderCancelResponder = + typeof postClimateOrdersOrderCancelResponder & KoaRuntimeResponder + +const postClimateOrdersOrderCancelResponseValidator = responseValidationFactory( + [["200", s_climate_order]], + s_error, +) export type PostClimateOrdersOrderCancel = ( params: Params< @@ -3886,15 +5037,34 @@ export type PostClimateOrdersOrderCancel = ( | Response > -export type GetClimateProductsResponder = { - with200(): KoaRuntimeResponse<{ +const getClimateProductsResponder = { + with200: r.with200<{ data: t_climate_product[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetClimateProductsResponder = typeof getClimateProductsResponder & + KoaRuntimeResponder + +const getClimateProductsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_climate_product), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/climate/products")), + }), + ], + ], + s_error, +) export type GetClimateProducts = ( params: Params< @@ -3919,10 +5089,19 @@ export type GetClimateProducts = ( | Response > -export type GetClimateProductsProductResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getClimateProductsProductResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetClimateProductsProductResponder = + typeof getClimateProductsProductResponder & KoaRuntimeResponder + +const getClimateProductsProductResponseValidator = responseValidationFactory( + [["200", s_climate_product]], + s_error, +) export type GetClimateProductsProduct = ( params: Params< @@ -3939,15 +5118,34 @@ export type GetClimateProductsProduct = ( | Response > -export type GetClimateSuppliersResponder = { - with200(): KoaRuntimeResponse<{ +const getClimateSuppliersResponder = { + with200: r.with200<{ data: t_climate_supplier[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetClimateSuppliersResponder = typeof getClimateSuppliersResponder & + KoaRuntimeResponder + +const getClimateSuppliersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_climate_supplier), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/climate/suppliers")), + }), + ], + ], + s_error, +) export type GetClimateSuppliers = ( params: Params< @@ -3972,10 +5170,19 @@ export type GetClimateSuppliers = ( | Response > -export type GetClimateSuppliersSupplierResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getClimateSuppliersSupplierResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetClimateSuppliersSupplierResponder = + typeof getClimateSuppliersSupplierResponder & KoaRuntimeResponder + +const getClimateSuppliersSupplierResponseValidator = responseValidationFactory( + [["200", s_climate_supplier]], + s_error, +) export type GetClimateSuppliersSupplier = ( params: Params< @@ -3992,10 +5199,17 @@ export type GetClimateSuppliersSupplier = ( | Response > -export type GetConfirmationTokensConfirmationTokenResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getConfirmationTokensConfirmationTokenResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetConfirmationTokensConfirmationTokenResponder = + typeof getConfirmationTokensConfirmationTokenResponder & KoaRuntimeResponder + +const getConfirmationTokensConfirmationTokenResponseValidator = + responseValidationFactory([["200", s_confirmation_token]], s_error) export type GetConfirmationTokensConfirmationToken = ( params: Params< @@ -4012,15 +5226,34 @@ export type GetConfirmationTokensConfirmationToken = ( | Response > -export type GetCountrySpecsResponder = { - with200(): KoaRuntimeResponse<{ +const getCountrySpecsResponder = { + with200: r.with200<{ data: t_country_spec[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCountrySpecsResponder = typeof getCountrySpecsResponder & + KoaRuntimeResponder + +const getCountrySpecsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_country_spec), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/country_specs")), + }), + ], + ], + s_error, +) export type GetCountrySpecs = ( params: Params< @@ -4045,10 +5278,19 @@ export type GetCountrySpecs = ( | Response > -export type GetCountrySpecsCountryResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCountrySpecsCountryResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCountrySpecsCountryResponder = typeof getCountrySpecsCountryResponder & + KoaRuntimeResponder + +const getCountrySpecsCountryResponseValidator = responseValidationFactory( + [["200", s_country_spec]], + s_error, +) export type GetCountrySpecsCountry = ( params: Params< @@ -4065,15 +5307,33 @@ export type GetCountrySpecsCountry = ( | Response > -export type GetCouponsResponder = { - with200(): KoaRuntimeResponse<{ +const getCouponsResponder = { + with200: r.with200<{ data: t_coupon[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCouponsResponder = typeof getCouponsResponder & KoaRuntimeResponder + +const getCouponsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_coupon), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/coupons")), + }), + ], + ], + s_error, +) export type GetCoupons = ( params: Params< @@ -4098,10 +5358,18 @@ export type GetCoupons = ( | Response > -export type PostCouponsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCouponsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCouponsResponder = typeof postCouponsResponder & KoaRuntimeResponder + +const postCouponsResponseValidator = responseValidationFactory( + [["200", s_coupon]], + s_error, +) export type PostCoupons = ( params: Params, @@ -4113,10 +5381,19 @@ export type PostCoupons = ( | Response > -export type DeleteCouponsCouponResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteCouponsCouponResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteCouponsCouponResponder = typeof deleteCouponsCouponResponder & + KoaRuntimeResponder + +const deleteCouponsCouponResponseValidator = responseValidationFactory( + [["200", s_deleted_coupon]], + s_error, +) export type DeleteCouponsCoupon = ( params: Params< @@ -4133,10 +5410,19 @@ export type DeleteCouponsCoupon = ( | Response > -export type GetCouponsCouponResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCouponsCouponResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCouponsCouponResponder = typeof getCouponsCouponResponder & + KoaRuntimeResponder + +const getCouponsCouponResponseValidator = responseValidationFactory( + [["200", s_coupon]], + s_error, +) export type GetCouponsCoupon = ( params: Params< @@ -4153,10 +5439,19 @@ export type GetCouponsCoupon = ( | Response > -export type PostCouponsCouponResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCouponsCouponResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCouponsCouponResponder = typeof postCouponsCouponResponder & + KoaRuntimeResponder + +const postCouponsCouponResponseValidator = responseValidationFactory( + [["200", s_coupon]], + s_error, +) export type PostCouponsCoupon = ( params: Params< @@ -4173,15 +5468,34 @@ export type PostCouponsCoupon = ( | Response > -export type GetCreditNotesResponder = { - with200(): KoaRuntimeResponse<{ +const getCreditNotesResponder = { + with200: r.with200<{ data: t_credit_note[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCreditNotesResponder = typeof getCreditNotesResponder & + KoaRuntimeResponder + +const getCreditNotesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_credit_note)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetCreditNotes = ( params: Params< @@ -4206,10 +5520,19 @@ export type GetCreditNotes = ( | Response > -export type PostCreditNotesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCreditNotesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCreditNotesResponder = typeof postCreditNotesResponder & + KoaRuntimeResponder + +const postCreditNotesResponseValidator = responseValidationFactory( + [["200", s_credit_note]], + s_error, +) export type PostCreditNotes = ( params: Params, @@ -4221,10 +5544,19 @@ export type PostCreditNotes = ( | Response > -export type GetCreditNotesPreviewResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCreditNotesPreviewResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCreditNotesPreviewResponder = typeof getCreditNotesPreviewResponder & + KoaRuntimeResponder + +const getCreditNotesPreviewResponseValidator = responseValidationFactory( + [["200", s_credit_note]], + s_error, +) export type GetCreditNotesPreview = ( params: Params< @@ -4241,15 +5573,34 @@ export type GetCreditNotesPreview = ( | Response > -export type GetCreditNotesPreviewLinesResponder = { - with200(): KoaRuntimeResponse<{ +const getCreditNotesPreviewLinesResponder = { + with200: r.with200<{ data: t_credit_note_line_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCreditNotesPreviewLinesResponder = + typeof getCreditNotesPreviewLinesResponder & KoaRuntimeResponder + +const getCreditNotesPreviewLinesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_credit_note_line_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetCreditNotesPreviewLines = ( params: Params< @@ -4274,15 +5625,35 @@ export type GetCreditNotesPreviewLines = ( | Response > -export type GetCreditNotesCreditNoteLinesResponder = { - with200(): KoaRuntimeResponse<{ +const getCreditNotesCreditNoteLinesResponder = { + with200: r.with200<{ data: t_credit_note_line_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCreditNotesCreditNoteLinesResponder = + typeof getCreditNotesCreditNoteLinesResponder & KoaRuntimeResponder + +const getCreditNotesCreditNoteLinesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_credit_note_line_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetCreditNotesCreditNoteLines = ( params: Params< @@ -4307,10 +5678,19 @@ export type GetCreditNotesCreditNoteLines = ( | Response > -export type GetCreditNotesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCreditNotesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCreditNotesIdResponder = typeof getCreditNotesIdResponder & + KoaRuntimeResponder + +const getCreditNotesIdResponseValidator = responseValidationFactory( + [["200", s_credit_note]], + s_error, +) export type GetCreditNotesId = ( params: Params< @@ -4327,10 +5707,19 @@ export type GetCreditNotesId = ( | Response > -export type PostCreditNotesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCreditNotesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCreditNotesIdResponder = typeof postCreditNotesIdResponder & + KoaRuntimeResponder + +const postCreditNotesIdResponseValidator = responseValidationFactory( + [["200", s_credit_note]], + s_error, +) export type PostCreditNotesId = ( params: Params< @@ -4347,10 +5736,19 @@ export type PostCreditNotesId = ( | Response > -export type PostCreditNotesIdVoidResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCreditNotesIdVoidResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCreditNotesIdVoidResponder = typeof postCreditNotesIdVoidResponder & + KoaRuntimeResponder + +const postCreditNotesIdVoidResponseValidator = responseValidationFactory( + [["200", s_credit_note]], + s_error, +) export type PostCreditNotesIdVoid = ( params: Params< @@ -4367,10 +5765,19 @@ export type PostCreditNotesIdVoid = ( | Response > -export type PostCustomerSessionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomerSessionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomerSessionsResponder = typeof postCustomerSessionsResponder & + KoaRuntimeResponder + +const postCustomerSessionsResponseValidator = responseValidationFactory( + [["200", s_customer_session]], + s_error, +) export type PostCustomerSessions = ( params: Params, @@ -4382,15 +5789,33 @@ export type PostCustomerSessions = ( | Response > -export type GetCustomersResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersResponder = { + with200: r.with200<{ data: t_customer[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersResponder = typeof getCustomersResponder & KoaRuntimeResponder + +const getCustomersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_customer)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/customers")), + }), + ], + ], + s_error, +) export type GetCustomers = ( params: Params< @@ -4415,10 +5840,19 @@ export type GetCustomers = ( | Response > -export type PostCustomersResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersResponder = typeof postCustomersResponder & + KoaRuntimeResponder + +const postCustomersResponseValidator = responseValidationFactory( + [["200", s_customer]], + s_error, +) export type PostCustomers = ( params: Params, @@ -4430,17 +5864,38 @@ export type PostCustomers = ( | Response > -export type GetCustomersSearchResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersSearchResponder = { + with200: r.with200<{ data: t_customer[] has_more: boolean next_page?: string | null object: "search_result" total_count?: number url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersSearchResponder = typeof getCustomersSearchResponder & + KoaRuntimeResponder + +const getCustomersSearchResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_customer)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetCustomersSearch = ( params: Params< @@ -4467,10 +5922,19 @@ export type GetCustomersSearch = ( | Response > -export type DeleteCustomersCustomerResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteCustomersCustomerResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteCustomersCustomerResponder = + typeof deleteCustomersCustomerResponder & KoaRuntimeResponder + +const deleteCustomersCustomerResponseValidator = responseValidationFactory( + [["200", s_deleted_customer]], + s_error, +) export type DeleteCustomersCustomer = ( params: Params< @@ -4487,10 +5951,19 @@ export type DeleteCustomersCustomer = ( | Response > -export type GetCustomersCustomerResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerResponder = typeof getCustomersCustomerResponder & + KoaRuntimeResponder + +const getCustomersCustomerResponseValidator = responseValidationFactory( + [["200", z.union([z.lazy(() => s_customer), s_deleted_customer])]], + s_error, +) export type GetCustomersCustomer = ( params: Params< @@ -4507,10 +5980,19 @@ export type GetCustomersCustomer = ( | Response > -export type PostCustomersCustomerResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerResponder = typeof postCustomersCustomerResponder & + KoaRuntimeResponder + +const postCustomersCustomerResponseValidator = responseValidationFactory( + [["200", s_customer]], + s_error, +) export type PostCustomersCustomer = ( params: Params< @@ -4527,15 +6009,35 @@ export type PostCustomersCustomer = ( | Response > -export type GetCustomersCustomerBalanceTransactionsResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersCustomerBalanceTransactionsResponder = { + with200: r.with200<{ data: t_customer_balance_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerBalanceTransactionsResponder = + typeof getCustomersCustomerBalanceTransactionsResponder & KoaRuntimeResponder + +const getCustomersCustomerBalanceTransactionsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_customer_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetCustomersCustomerBalanceTransactions = ( params: Params< @@ -4560,10 +6062,17 @@ export type GetCustomersCustomerBalanceTransactions = ( | Response > -export type PostCustomersCustomerBalanceTransactionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerBalanceTransactionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerBalanceTransactionsResponder = + typeof postCustomersCustomerBalanceTransactionsResponder & KoaRuntimeResponder + +const postCustomersCustomerBalanceTransactionsResponseValidator = + responseValidationFactory([["200", s_customer_balance_transaction]], s_error) export type PostCustomersCustomerBalanceTransactions = ( params: Params< @@ -4580,10 +6089,18 @@ export type PostCustomersCustomerBalanceTransactions = ( | Response > -export type GetCustomersCustomerBalanceTransactionsTransactionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerBalanceTransactionsTransactionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerBalanceTransactionsTransactionResponder = + typeof getCustomersCustomerBalanceTransactionsTransactionResponder & + KoaRuntimeResponder + +const getCustomersCustomerBalanceTransactionsTransactionResponseValidator = + responseValidationFactory([["200", s_customer_balance_transaction]], s_error) export type GetCustomersCustomerBalanceTransactionsTransaction = ( params: Params< @@ -4600,10 +6117,18 @@ export type GetCustomersCustomerBalanceTransactionsTransaction = ( | Response > -export type PostCustomersCustomerBalanceTransactionsTransactionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerBalanceTransactionsTransactionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerBalanceTransactionsTransactionResponder = + typeof postCustomersCustomerBalanceTransactionsTransactionResponder & + KoaRuntimeResponder + +const postCustomersCustomerBalanceTransactionsTransactionResponseValidator = + responseValidationFactory([["200", s_customer_balance_transaction]], s_error) export type PostCustomersCustomerBalanceTransactionsTransaction = ( params: Params< @@ -4620,15 +6145,35 @@ export type PostCustomersCustomerBalanceTransactionsTransaction = ( | Response > -export type GetCustomersCustomerBankAccountsResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersCustomerBankAccountsResponder = { + with200: r.with200<{ data: t_bank_account[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerBankAccountsResponder = + typeof getCustomersCustomerBankAccountsResponder & KoaRuntimeResponder + +const getCustomersCustomerBankAccountsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_bank_account)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetCustomersCustomerBankAccounts = ( params: Params< @@ -4653,10 +6198,17 @@ export type GetCustomersCustomerBankAccounts = ( | Response > -export type PostCustomersCustomerBankAccountsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerBankAccountsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerBankAccountsResponder = + typeof postCustomersCustomerBankAccountsResponder & KoaRuntimeResponder + +const postCustomersCustomerBankAccountsResponseValidator = + responseValidationFactory([["200", s_payment_source]], s_error) export type PostCustomersCustomerBankAccounts = ( params: Params< @@ -4673,10 +6225,25 @@ export type PostCustomersCustomerBankAccounts = ( | Response > -export type DeleteCustomersCustomerBankAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteCustomersCustomerBankAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteCustomersCustomerBankAccountsIdResponder = + typeof deleteCustomersCustomerBankAccountsIdResponder & KoaRuntimeResponder + +const deleteCustomersCustomerBankAccountsIdResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), + ], + ], + s_error, + ) export type DeleteCustomersCustomerBankAccountsId = ( params: Params< @@ -4693,10 +6260,17 @@ export type DeleteCustomersCustomerBankAccountsId = ( | Response > -export type GetCustomersCustomerBankAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerBankAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerBankAccountsIdResponder = + typeof getCustomersCustomerBankAccountsIdResponder & KoaRuntimeResponder + +const getCustomersCustomerBankAccountsIdResponseValidator = + responseValidationFactory([["200", s_bank_account]], s_error) export type GetCustomersCustomerBankAccountsId = ( params: Params< @@ -4713,10 +6287,25 @@ export type GetCustomersCustomerBankAccountsId = ( | Response > -export type PostCustomersCustomerBankAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerBankAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerBankAccountsIdResponder = + typeof postCustomersCustomerBankAccountsIdResponder & KoaRuntimeResponder + +const postCustomersCustomerBankAccountsIdResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), + ], + ], + s_error, + ) export type PostCustomersCustomerBankAccountsId = ( params: Params< @@ -4733,10 +6322,18 @@ export type PostCustomersCustomerBankAccountsId = ( | Response > -export type PostCustomersCustomerBankAccountsIdVerifyResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerBankAccountsIdVerifyResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerBankAccountsIdVerifyResponder = + typeof postCustomersCustomerBankAccountsIdVerifyResponder & + KoaRuntimeResponder + +const postCustomersCustomerBankAccountsIdVerifyResponseValidator = + responseValidationFactory([["200", s_bank_account]], s_error) export type PostCustomersCustomerBankAccountsIdVerify = ( params: Params< @@ -4753,15 +6350,34 @@ export type PostCustomersCustomerBankAccountsIdVerify = ( | Response > -export type GetCustomersCustomerCardsResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersCustomerCardsResponder = { + with200: r.with200<{ data: t_card[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerCardsResponder = + typeof getCustomersCustomerCardsResponder & KoaRuntimeResponder + +const getCustomersCustomerCardsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_card)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetCustomersCustomerCards = ( params: Params< @@ -4786,10 +6402,19 @@ export type GetCustomersCustomerCards = ( | Response > -export type PostCustomersCustomerCardsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerCardsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerCardsResponder = + typeof postCustomersCustomerCardsResponder & KoaRuntimeResponder + +const postCustomersCustomerCardsResponseValidator = responseValidationFactory( + [["200", s_payment_source]], + s_error, +) export type PostCustomersCustomerCards = ( params: Params< @@ -4806,10 +6431,25 @@ export type PostCustomersCustomerCards = ( | Response > -export type DeleteCustomersCustomerCardsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteCustomersCustomerCardsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteCustomersCustomerCardsIdResponder = + typeof deleteCustomersCustomerCardsIdResponder & KoaRuntimeResponder + +const deleteCustomersCustomerCardsIdResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), + ], + ], + s_error, + ) export type DeleteCustomersCustomerCardsId = ( params: Params< @@ -4826,10 +6466,19 @@ export type DeleteCustomersCustomerCardsId = ( | Response > -export type GetCustomersCustomerCardsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerCardsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerCardsIdResponder = + typeof getCustomersCustomerCardsIdResponder & KoaRuntimeResponder + +const getCustomersCustomerCardsIdResponseValidator = responseValidationFactory( + [["200", s_card]], + s_error, +) export type GetCustomersCustomerCardsId = ( params: Params< @@ -4846,10 +6495,24 @@ export type GetCustomersCustomerCardsId = ( | Response > -export type PostCustomersCustomerCardsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerCardsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerCardsIdResponder = + typeof postCustomersCustomerCardsIdResponder & KoaRuntimeResponder + +const postCustomersCustomerCardsIdResponseValidator = responseValidationFactory( + [ + [ + "200", + z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), + ], + ], + s_error, +) export type PostCustomersCustomerCardsId = ( params: Params< @@ -4866,10 +6529,17 @@ export type PostCustomersCustomerCardsId = ( | Response > -export type GetCustomersCustomerCashBalanceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerCashBalanceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerCashBalanceResponder = + typeof getCustomersCustomerCashBalanceResponder & KoaRuntimeResponder + +const getCustomersCustomerCashBalanceResponseValidator = + responseValidationFactory([["200", s_cash_balance]], s_error) export type GetCustomersCustomerCashBalance = ( params: Params< @@ -4886,10 +6556,17 @@ export type GetCustomersCustomerCashBalance = ( | Response > -export type PostCustomersCustomerCashBalanceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerCashBalanceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerCashBalanceResponder = + typeof postCustomersCustomerCashBalanceResponder & KoaRuntimeResponder + +const postCustomersCustomerCashBalanceResponseValidator = + responseValidationFactory([["200", s_cash_balance]], s_error) export type PostCustomersCustomerCashBalance = ( params: Params< @@ -4906,15 +6583,36 @@ export type PostCustomersCustomerCashBalance = ( | Response > -export type GetCustomersCustomerCashBalanceTransactionsResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersCustomerCashBalanceTransactionsResponder = { + with200: r.with200<{ data: t_customer_cash_balance_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerCashBalanceTransactionsResponder = + typeof getCustomersCustomerCashBalanceTransactionsResponder & + KoaRuntimeResponder + +const getCustomersCustomerCashBalanceTransactionsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_customer_cash_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetCustomersCustomerCashBalanceTransactions = ( params: Params< @@ -4939,10 +6637,21 @@ export type GetCustomersCustomerCashBalanceTransactions = ( | Response > -export type GetCustomersCustomerCashBalanceTransactionsTransactionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerCashBalanceTransactionsTransactionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerCashBalanceTransactionsTransactionResponder = + typeof getCustomersCustomerCashBalanceTransactionsTransactionResponder & + KoaRuntimeResponder + +const getCustomersCustomerCashBalanceTransactionsTransactionResponseValidator = + responseValidationFactory( + [["200", s_customer_cash_balance_transaction]], + s_error, + ) export type GetCustomersCustomerCashBalanceTransactionsTransaction = ( params: Params< @@ -4960,10 +6669,17 @@ export type GetCustomersCustomerCashBalanceTransactionsTransaction = ( | Response > -export type DeleteCustomersCustomerDiscountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteCustomersCustomerDiscountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteCustomersCustomerDiscountResponder = + typeof deleteCustomersCustomerDiscountResponder & KoaRuntimeResponder + +const deleteCustomersCustomerDiscountResponseValidator = + responseValidationFactory([["200", s_deleted_discount]], s_error) export type DeleteCustomersCustomerDiscount = ( params: Params< @@ -4980,10 +6696,19 @@ export type DeleteCustomersCustomerDiscount = ( | Response > -export type GetCustomersCustomerDiscountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerDiscountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerDiscountResponder = + typeof getCustomersCustomerDiscountResponder & KoaRuntimeResponder + +const getCustomersCustomerDiscountResponseValidator = responseValidationFactory( + [["200", s_discount]], + s_error, +) export type GetCustomersCustomerDiscount = ( params: Params< @@ -5000,10 +6725,17 @@ export type GetCustomersCustomerDiscount = ( | Response > -export type PostCustomersCustomerFundingInstructionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerFundingInstructionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerFundingInstructionsResponder = + typeof postCustomersCustomerFundingInstructionsResponder & KoaRuntimeResponder + +const postCustomersCustomerFundingInstructionsResponseValidator = + responseValidationFactory([["200", s_funding_instructions]], s_error) export type PostCustomersCustomerFundingInstructions = ( params: Params< @@ -5020,15 +6752,35 @@ export type PostCustomersCustomerFundingInstructions = ( | Response > -export type GetCustomersCustomerPaymentMethodsResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersCustomerPaymentMethodsResponder = { + with200: r.with200<{ data: t_payment_method[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerPaymentMethodsResponder = + typeof getCustomersCustomerPaymentMethodsResponder & KoaRuntimeResponder + +const getCustomersCustomerPaymentMethodsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_payment_method)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetCustomersCustomerPaymentMethods = ( params: Params< @@ -5053,10 +6805,18 @@ export type GetCustomersCustomerPaymentMethods = ( | Response > -export type GetCustomersCustomerPaymentMethodsPaymentMethodResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerPaymentMethodsPaymentMethodResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerPaymentMethodsPaymentMethodResponder = + typeof getCustomersCustomerPaymentMethodsPaymentMethodResponder & + KoaRuntimeResponder + +const getCustomersCustomerPaymentMethodsPaymentMethodResponseValidator = + responseValidationFactory([["200", s_payment_method]], s_error) export type GetCustomersCustomerPaymentMethodsPaymentMethod = ( params: Params< @@ -5073,15 +6833,40 @@ export type GetCustomersCustomerPaymentMethodsPaymentMethod = ( | Response > -export type GetCustomersCustomerSourcesResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersCustomerSourcesResponder = { + with200: r.with200<{ data: (t_bank_account | t_card | t_source)[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerSourcesResponder = + typeof getCustomersCustomerSourcesResponder & KoaRuntimeResponder + +const getCustomersCustomerSourcesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array( + z.union([ + z.lazy(() => s_bank_account), + z.lazy(() => s_card), + s_source, + ]), + ), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetCustomersCustomerSources = ( params: Params< @@ -5106,10 +6891,19 @@ export type GetCustomersCustomerSources = ( | Response > -export type PostCustomersCustomerSourcesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerSourcesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerSourcesResponder = + typeof postCustomersCustomerSourcesResponder & KoaRuntimeResponder + +const postCustomersCustomerSourcesResponseValidator = responseValidationFactory( + [["200", s_payment_source]], + s_error, +) export type PostCustomersCustomerSources = ( params: Params< @@ -5126,10 +6920,25 @@ export type PostCustomersCustomerSources = ( | Response > -export type DeleteCustomersCustomerSourcesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteCustomersCustomerSourcesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteCustomersCustomerSourcesIdResponder = + typeof deleteCustomersCustomerSourcesIdResponder & KoaRuntimeResponder + +const deleteCustomersCustomerSourcesIdResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), + ], + ], + s_error, + ) export type DeleteCustomersCustomerSourcesId = ( params: Params< @@ -5146,10 +6955,17 @@ export type DeleteCustomersCustomerSourcesId = ( | Response > -export type GetCustomersCustomerSourcesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerSourcesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerSourcesIdResponder = + typeof getCustomersCustomerSourcesIdResponder & KoaRuntimeResponder + +const getCustomersCustomerSourcesIdResponseValidator = + responseValidationFactory([["200", s_payment_source]], s_error) export type GetCustomersCustomerSourcesId = ( params: Params< @@ -5166,10 +6982,25 @@ export type GetCustomersCustomerSourcesId = ( | Response > -export type PostCustomersCustomerSourcesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerSourcesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerSourcesIdResponder = + typeof postCustomersCustomerSourcesIdResponder & KoaRuntimeResponder + +const postCustomersCustomerSourcesIdResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), + ], + ], + s_error, + ) export type PostCustomersCustomerSourcesId = ( params: Params< @@ -5186,10 +7017,17 @@ export type PostCustomersCustomerSourcesId = ( | Response > -export type PostCustomersCustomerSourcesIdVerifyResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerSourcesIdVerifyResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerSourcesIdVerifyResponder = + typeof postCustomersCustomerSourcesIdVerifyResponder & KoaRuntimeResponder + +const postCustomersCustomerSourcesIdVerifyResponseValidator = + responseValidationFactory([["200", s_bank_account]], s_error) export type PostCustomersCustomerSourcesIdVerify = ( params: Params< @@ -5206,15 +7044,35 @@ export type PostCustomersCustomerSourcesIdVerify = ( | Response > -export type GetCustomersCustomerSubscriptionsResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersCustomerSubscriptionsResponder = { + with200: r.with200<{ data: t_subscription[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerSubscriptionsResponder = + typeof getCustomersCustomerSubscriptionsResponder & KoaRuntimeResponder + +const getCustomersCustomerSubscriptionsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_subscription)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetCustomersCustomerSubscriptions = ( params: Params< @@ -5239,10 +7097,17 @@ export type GetCustomersCustomerSubscriptions = ( | Response > -export type PostCustomersCustomerSubscriptionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerSubscriptionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerSubscriptionsResponder = + typeof postCustomersCustomerSubscriptionsResponder & KoaRuntimeResponder + +const postCustomersCustomerSubscriptionsResponseValidator = + responseValidationFactory([["200", s_subscription]], s_error) export type PostCustomersCustomerSubscriptions = ( params: Params< @@ -5259,11 +7124,18 @@ export type PostCustomersCustomerSubscriptions = ( | Response > -export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = - { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder +const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = + typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder & + KoaRuntimeResponder + +const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = + responseValidationFactory([["200", s_subscription]], s_error) export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< @@ -5281,10 +7153,18 @@ export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedId = ( | Response > -export type GetCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = + typeof getCustomersCustomerSubscriptionsSubscriptionExposedIdResponder & + KoaRuntimeResponder + +const getCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = + responseValidationFactory([["200", s_subscription]], s_error) export type GetCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< @@ -5302,10 +7182,18 @@ export type GetCustomersCustomerSubscriptionsSubscriptionExposedId = ( | Response > -export type PostCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = + typeof postCustomersCustomerSubscriptionsSubscriptionExposedIdResponder & + KoaRuntimeResponder + +const postCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = + responseValidationFactory([["200", s_subscription]], s_error) export type PostCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< @@ -5323,11 +7211,19 @@ export type PostCustomersCustomerSubscriptionsSubscriptionExposedId = ( | Response > -export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = +const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = + typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder & + KoaRuntimeResponder + +const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponseValidator = + responseValidationFactory([["200", s_deleted_discount]], s_error) export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( @@ -5346,11 +7242,19 @@ export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = | Response > -export type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = +const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = + typeof getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder & + KoaRuntimeResponder + +const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponseValidator = + responseValidationFactory([["200", s_discount]], s_error) export type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( params: Params< @@ -5368,15 +7272,34 @@ export type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( | Response > -export type GetCustomersCustomerTaxIdsResponder = { - with200(): KoaRuntimeResponse<{ +const getCustomersCustomerTaxIdsResponder = { + with200: r.with200<{ data: t_tax_id[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerTaxIdsResponder = + typeof getCustomersCustomerTaxIdsResponder & KoaRuntimeResponder + +const getCustomersCustomerTaxIdsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_tax_id)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetCustomersCustomerTaxIds = ( params: Params< @@ -5401,10 +7324,19 @@ export type GetCustomersCustomerTaxIds = ( | Response > -export type PostCustomersCustomerTaxIdsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postCustomersCustomerTaxIdsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostCustomersCustomerTaxIdsResponder = + typeof postCustomersCustomerTaxIdsResponder & KoaRuntimeResponder + +const postCustomersCustomerTaxIdsResponseValidator = responseValidationFactory( + [["200", s_tax_id]], + s_error, +) export type PostCustomersCustomerTaxIds = ( params: Params< @@ -5421,10 +7353,17 @@ export type PostCustomersCustomerTaxIds = ( | Response > -export type DeleteCustomersCustomerTaxIdsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteCustomersCustomerTaxIdsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteCustomersCustomerTaxIdsIdResponder = + typeof deleteCustomersCustomerTaxIdsIdResponder & KoaRuntimeResponder + +const deleteCustomersCustomerTaxIdsIdResponseValidator = + responseValidationFactory([["200", s_deleted_tax_id]], s_error) export type DeleteCustomersCustomerTaxIdsId = ( params: Params< @@ -5441,10 +7380,19 @@ export type DeleteCustomersCustomerTaxIdsId = ( | Response > -export type GetCustomersCustomerTaxIdsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getCustomersCustomerTaxIdsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetCustomersCustomerTaxIdsIdResponder = + typeof getCustomersCustomerTaxIdsIdResponder & KoaRuntimeResponder + +const getCustomersCustomerTaxIdsIdResponseValidator = responseValidationFactory( + [["200", s_tax_id]], + s_error, +) export type GetCustomersCustomerTaxIdsId = ( params: Params< @@ -5461,15 +7409,33 @@ export type GetCustomersCustomerTaxIdsId = ( | Response > -export type GetDisputesResponder = { - with200(): KoaRuntimeResponse<{ +const getDisputesResponder = { + with200: r.with200<{ data: t_dispute[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetDisputesResponder = typeof getDisputesResponder & KoaRuntimeResponder + +const getDisputesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_dispute)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/disputes")), + }), + ], + ], + s_error, +) export type GetDisputes = ( params: Params< @@ -5494,10 +7460,19 @@ export type GetDisputes = ( | Response > -export type GetDisputesDisputeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getDisputesDisputeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetDisputesDisputeResponder = typeof getDisputesDisputeResponder & + KoaRuntimeResponder + +const getDisputesDisputeResponseValidator = responseValidationFactory( + [["200", s_dispute]], + s_error, +) export type GetDisputesDispute = ( params: Params< @@ -5514,10 +7489,19 @@ export type GetDisputesDispute = ( | Response > -export type PostDisputesDisputeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postDisputesDisputeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostDisputesDisputeResponder = typeof postDisputesDisputeResponder & + KoaRuntimeResponder + +const postDisputesDisputeResponseValidator = responseValidationFactory( + [["200", s_dispute]], + s_error, +) export type PostDisputesDispute = ( params: Params< @@ -5534,10 +7518,19 @@ export type PostDisputesDispute = ( | Response > -export type PostDisputesDisputeCloseResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postDisputesDisputeCloseResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostDisputesDisputeCloseResponder = + typeof postDisputesDisputeCloseResponder & KoaRuntimeResponder + +const postDisputesDisputeCloseResponseValidator = responseValidationFactory( + [["200", s_dispute]], + s_error, +) export type PostDisputesDisputeClose = ( params: Params< @@ -5554,15 +7547,35 @@ export type PostDisputesDisputeClose = ( | Response > -export type GetEntitlementsActiveEntitlementsResponder = { - with200(): KoaRuntimeResponse<{ +const getEntitlementsActiveEntitlementsResponder = { + with200: r.with200<{ data: t_entitlements_active_entitlement[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetEntitlementsActiveEntitlementsResponder = + typeof getEntitlementsActiveEntitlementsResponder & KoaRuntimeResponder + +const getEntitlementsActiveEntitlementsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_entitlements_active_entitlement), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetEntitlementsActiveEntitlements = ( params: Params< @@ -5587,10 +7600,20 @@ export type GetEntitlementsActiveEntitlements = ( | Response > -export type GetEntitlementsActiveEntitlementsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getEntitlementsActiveEntitlementsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetEntitlementsActiveEntitlementsIdResponder = + typeof getEntitlementsActiveEntitlementsIdResponder & KoaRuntimeResponder + +const getEntitlementsActiveEntitlementsIdResponseValidator = + responseValidationFactory( + [["200", s_entitlements_active_entitlement]], + s_error, + ) export type GetEntitlementsActiveEntitlementsId = ( params: Params< @@ -5607,15 +7630,37 @@ export type GetEntitlementsActiveEntitlementsId = ( | Response > -export type GetEntitlementsFeaturesResponder = { - with200(): KoaRuntimeResponse<{ +const getEntitlementsFeaturesResponder = { + with200: r.with200<{ data: t_entitlements_feature[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetEntitlementsFeaturesResponder = + typeof getEntitlementsFeaturesResponder & KoaRuntimeResponder + +const getEntitlementsFeaturesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_entitlements_feature), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/entitlements/features")), + }), + ], + ], + s_error, +) export type GetEntitlementsFeatures = ( params: Params< @@ -5640,10 +7685,19 @@ export type GetEntitlementsFeatures = ( | Response > -export type PostEntitlementsFeaturesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postEntitlementsFeaturesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostEntitlementsFeaturesResponder = + typeof postEntitlementsFeaturesResponder & KoaRuntimeResponder + +const postEntitlementsFeaturesResponseValidator = responseValidationFactory( + [["200", s_entitlements_feature]], + s_error, +) export type PostEntitlementsFeatures = ( params: Params, @@ -5655,10 +7709,19 @@ export type PostEntitlementsFeatures = ( | Response > -export type GetEntitlementsFeaturesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getEntitlementsFeaturesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetEntitlementsFeaturesIdResponder = + typeof getEntitlementsFeaturesIdResponder & KoaRuntimeResponder + +const getEntitlementsFeaturesIdResponseValidator = responseValidationFactory( + [["200", s_entitlements_feature]], + s_error, +) export type GetEntitlementsFeaturesId = ( params: Params< @@ -5675,10 +7738,19 @@ export type GetEntitlementsFeaturesId = ( | Response > -export type PostEntitlementsFeaturesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postEntitlementsFeaturesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostEntitlementsFeaturesIdResponder = + typeof postEntitlementsFeaturesIdResponder & KoaRuntimeResponder + +const postEntitlementsFeaturesIdResponseValidator = responseValidationFactory( + [["200", s_entitlements_feature]], + s_error, +) export type PostEntitlementsFeaturesId = ( params: Params< @@ -5695,10 +7767,19 @@ export type PostEntitlementsFeaturesId = ( | Response > -export type PostEphemeralKeysResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postEphemeralKeysResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostEphemeralKeysResponder = typeof postEphemeralKeysResponder & + KoaRuntimeResponder + +const postEphemeralKeysResponseValidator = responseValidationFactory( + [["200", s_ephemeral_key]], + s_error, +) export type PostEphemeralKeys = ( params: Params, @@ -5710,10 +7791,19 @@ export type PostEphemeralKeys = ( | Response > -export type DeleteEphemeralKeysKeyResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteEphemeralKeysKeyResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteEphemeralKeysKeyResponder = typeof deleteEphemeralKeysKeyResponder & + KoaRuntimeResponder + +const deleteEphemeralKeysKeyResponseValidator = responseValidationFactory( + [["200", s_ephemeral_key]], + s_error, +) export type DeleteEphemeralKeysKey = ( params: Params< @@ -5730,15 +7820,33 @@ export type DeleteEphemeralKeysKey = ( | Response > -export type GetEventsResponder = { - with200(): KoaRuntimeResponse<{ +const getEventsResponder = { + with200: r.with200<{ data: t_event[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetEventsResponder = typeof getEventsResponder & KoaRuntimeResponder + +const getEventsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_event), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/events")), + }), + ], + ], + s_error, +) export type GetEvents = ( params: Params< @@ -5763,10 +7871,18 @@ export type GetEvents = ( | Response > -export type GetEventsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getEventsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetEventsIdResponder = typeof getEventsIdResponder & KoaRuntimeResponder + +const getEventsIdResponseValidator = responseValidationFactory( + [["200", s_event]], + s_error, +) export type GetEventsId = ( params: Params< @@ -5783,15 +7899,34 @@ export type GetEventsId = ( | Response > -export type GetExchangeRatesResponder = { - with200(): KoaRuntimeResponse<{ +const getExchangeRatesResponder = { + with200: r.with200<{ data: t_exchange_rate[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetExchangeRatesResponder = typeof getExchangeRatesResponder & + KoaRuntimeResponder + +const getExchangeRatesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_exchange_rate), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/exchange_rates")), + }), + ], + ], + s_error, +) export type GetExchangeRates = ( params: Params< @@ -5816,10 +7951,19 @@ export type GetExchangeRates = ( | Response > -export type GetExchangeRatesRateIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getExchangeRatesRateIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetExchangeRatesRateIdResponder = typeof getExchangeRatesRateIdResponder & + KoaRuntimeResponder + +const getExchangeRatesRateIdResponseValidator = responseValidationFactory( + [["200", s_exchange_rate]], + s_error, +) export type GetExchangeRatesRateId = ( params: Params< @@ -5836,10 +7980,19 @@ export type GetExchangeRatesRateId = ( | Response > -export type PostExternalAccountsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postExternalAccountsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostExternalAccountsIdResponder = typeof postExternalAccountsIdResponder & + KoaRuntimeResponder + +const postExternalAccountsIdResponseValidator = responseValidationFactory( + [["200", s_external_account]], + s_error, +) export type PostExternalAccountsId = ( params: Params< @@ -5856,15 +8009,33 @@ export type PostExternalAccountsId = ( | Response > -export type GetFileLinksResponder = { - with200(): KoaRuntimeResponse<{ +const getFileLinksResponder = { + with200: r.with200<{ data: t_file_link[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFileLinksResponder = typeof getFileLinksResponder & KoaRuntimeResponder + +const getFileLinksResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_file_link)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/file_links")), + }), + ], + ], + s_error, +) export type GetFileLinks = ( params: Params< @@ -5889,10 +8060,19 @@ export type GetFileLinks = ( | Response > -export type PostFileLinksResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postFileLinksResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostFileLinksResponder = typeof postFileLinksResponder & + KoaRuntimeResponder + +const postFileLinksResponseValidator = responseValidationFactory( + [["200", s_file_link]], + s_error, +) export type PostFileLinks = ( params: Params, @@ -5904,10 +8084,19 @@ export type PostFileLinks = ( | Response > -export type GetFileLinksLinkResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getFileLinksLinkResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFileLinksLinkResponder = typeof getFileLinksLinkResponder & + KoaRuntimeResponder + +const getFileLinksLinkResponseValidator = responseValidationFactory( + [["200", s_file_link]], + s_error, +) export type GetFileLinksLink = ( params: Params< @@ -5924,10 +8113,19 @@ export type GetFileLinksLink = ( | Response > -export type PostFileLinksLinkResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postFileLinksLinkResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostFileLinksLinkResponder = typeof postFileLinksLinkResponder & + KoaRuntimeResponder + +const postFileLinksLinkResponseValidator = responseValidationFactory( + [["200", s_file_link]], + s_error, +) export type PostFileLinksLink = ( params: Params< @@ -5944,15 +8142,33 @@ export type PostFileLinksLink = ( | Response > -export type GetFilesResponder = { - with200(): KoaRuntimeResponse<{ +const getFilesResponder = { + with200: r.with200<{ data: t_file[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFilesResponder = typeof getFilesResponder & KoaRuntimeResponder + +const getFilesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_file)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/files")), + }), + ], + ], + s_error, +) export type GetFiles = ( params: Params< @@ -5977,10 +8193,18 @@ export type GetFiles = ( | Response > -export type PostFilesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postFilesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostFilesResponder = typeof postFilesResponder & KoaRuntimeResponder + +const postFilesResponseValidator = responseValidationFactory( + [["200", s_file]], + s_error, +) export type PostFiles = ( params: Params, @@ -5992,10 +8216,18 @@ export type PostFiles = ( | Response > -export type GetFilesFileResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getFilesFileResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFilesFileResponder = typeof getFilesFileResponder & KoaRuntimeResponder + +const getFilesFileResponseValidator = responseValidationFactory( + [["200", s_file]], + s_error, +) export type GetFilesFile = ( params: Params< @@ -6012,15 +8244,38 @@ export type GetFilesFile = ( | Response > -export type GetFinancialConnectionsAccountsResponder = { - with200(): KoaRuntimeResponse<{ +const getFinancialConnectionsAccountsResponder = { + with200: r.with200<{ data: t_financial_connections_account[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFinancialConnectionsAccountsResponder = + typeof getFinancialConnectionsAccountsResponder & KoaRuntimeResponder + +const getFinancialConnectionsAccountsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_financial_connections_account)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/financial_connections/accounts")), + }), + ], + ], + s_error, + ) export type GetFinancialConnectionsAccounts = ( params: Params< @@ -6045,10 +8300,17 @@ export type GetFinancialConnectionsAccounts = ( | Response > -export type GetFinancialConnectionsAccountsAccountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getFinancialConnectionsAccountsAccountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFinancialConnectionsAccountsAccountResponder = + typeof getFinancialConnectionsAccountsAccountResponder & KoaRuntimeResponder + +const getFinancialConnectionsAccountsAccountResponseValidator = + responseValidationFactory([["200", s_financial_connections_account]], s_error) export type GetFinancialConnectionsAccountsAccount = ( params: Params< @@ -6065,10 +8327,18 @@ export type GetFinancialConnectionsAccountsAccount = ( | Response > -export type PostFinancialConnectionsAccountsAccountDisconnectResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postFinancialConnectionsAccountsAccountDisconnectResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostFinancialConnectionsAccountsAccountDisconnectResponder = + typeof postFinancialConnectionsAccountsAccountDisconnectResponder & + KoaRuntimeResponder + +const postFinancialConnectionsAccountsAccountDisconnectResponseValidator = + responseValidationFactory([["200", s_financial_connections_account]], s_error) export type PostFinancialConnectionsAccountsAccountDisconnect = ( params: Params< @@ -6085,15 +8355,36 @@ export type PostFinancialConnectionsAccountsAccountDisconnect = ( | Response > -export type GetFinancialConnectionsAccountsAccountOwnersResponder = { - with200(): KoaRuntimeResponse<{ +const getFinancialConnectionsAccountsAccountOwnersResponder = { + with200: r.with200<{ data: t_financial_connections_account_owner[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFinancialConnectionsAccountsAccountOwnersResponder = + typeof getFinancialConnectionsAccountsAccountOwnersResponder & + KoaRuntimeResponder + +const getFinancialConnectionsAccountsAccountOwnersResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_financial_connections_account_owner), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetFinancialConnectionsAccountsAccountOwners = ( params: Params< @@ -6118,10 +8409,18 @@ export type GetFinancialConnectionsAccountsAccountOwners = ( | Response > -export type PostFinancialConnectionsAccountsAccountRefreshResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postFinancialConnectionsAccountsAccountRefreshResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostFinancialConnectionsAccountsAccountRefreshResponder = + typeof postFinancialConnectionsAccountsAccountRefreshResponder & + KoaRuntimeResponder + +const postFinancialConnectionsAccountsAccountRefreshResponseValidator = + responseValidationFactory([["200", s_financial_connections_account]], s_error) export type PostFinancialConnectionsAccountsAccountRefresh = ( params: Params< @@ -6138,10 +8437,18 @@ export type PostFinancialConnectionsAccountsAccountRefresh = ( | Response > -export type PostFinancialConnectionsAccountsAccountSubscribeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postFinancialConnectionsAccountsAccountSubscribeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostFinancialConnectionsAccountsAccountSubscribeResponder = + typeof postFinancialConnectionsAccountsAccountSubscribeResponder & + KoaRuntimeResponder + +const postFinancialConnectionsAccountsAccountSubscribeResponseValidator = + responseValidationFactory([["200", s_financial_connections_account]], s_error) export type PostFinancialConnectionsAccountsAccountSubscribe = ( params: Params< @@ -6158,10 +8465,18 @@ export type PostFinancialConnectionsAccountsAccountSubscribe = ( | Response > -export type PostFinancialConnectionsAccountsAccountUnsubscribeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postFinancialConnectionsAccountsAccountUnsubscribeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostFinancialConnectionsAccountsAccountUnsubscribeResponder = + typeof postFinancialConnectionsAccountsAccountUnsubscribeResponder & + KoaRuntimeResponder + +const postFinancialConnectionsAccountsAccountUnsubscribeResponseValidator = + responseValidationFactory([["200", s_financial_connections_account]], s_error) export type PostFinancialConnectionsAccountsAccountUnsubscribe = ( params: Params< @@ -6178,10 +8493,17 @@ export type PostFinancialConnectionsAccountsAccountUnsubscribe = ( | Response > -export type PostFinancialConnectionsSessionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postFinancialConnectionsSessionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostFinancialConnectionsSessionsResponder = + typeof postFinancialConnectionsSessionsResponder & KoaRuntimeResponder + +const postFinancialConnectionsSessionsResponseValidator = + responseValidationFactory([["200", s_financial_connections_session]], s_error) export type PostFinancialConnectionsSessions = ( params: Params< @@ -6198,10 +8520,17 @@ export type PostFinancialConnectionsSessions = ( | Response > -export type GetFinancialConnectionsSessionsSessionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getFinancialConnectionsSessionsSessionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFinancialConnectionsSessionsSessionResponder = + typeof getFinancialConnectionsSessionsSessionResponder & KoaRuntimeResponder + +const getFinancialConnectionsSessionsSessionResponseValidator = + responseValidationFactory([["200", s_financial_connections_session]], s_error) export type GetFinancialConnectionsSessionsSession = ( params: Params< @@ -6218,15 +8547,38 @@ export type GetFinancialConnectionsSessionsSession = ( | Response > -export type GetFinancialConnectionsTransactionsResponder = { - with200(): KoaRuntimeResponse<{ +const getFinancialConnectionsTransactionsResponder = { + with200: r.with200<{ data: t_financial_connections_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFinancialConnectionsTransactionsResponder = + typeof getFinancialConnectionsTransactionsResponder & KoaRuntimeResponder + +const getFinancialConnectionsTransactionsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_financial_connections_transaction), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/financial_connections/transactions")), + }), + ], + ], + s_error, + ) export type GetFinancialConnectionsTransactions = ( params: Params< @@ -6251,10 +8603,21 @@ export type GetFinancialConnectionsTransactions = ( | Response > -export type GetFinancialConnectionsTransactionsTransactionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getFinancialConnectionsTransactionsTransactionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetFinancialConnectionsTransactionsTransactionResponder = + typeof getFinancialConnectionsTransactionsTransactionResponder & + KoaRuntimeResponder + +const getFinancialConnectionsTransactionsTransactionResponseValidator = + responseValidationFactory( + [["200", s_financial_connections_transaction]], + s_error, + ) export type GetFinancialConnectionsTransactionsTransaction = ( params: Params< @@ -6271,15 +8634,34 @@ export type GetFinancialConnectionsTransactionsTransaction = ( | Response > -export type GetForwardingRequestsResponder = { - with200(): KoaRuntimeResponse<{ +const getForwardingRequestsResponder = { + with200: r.with200<{ data: t_forwarding_request[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetForwardingRequestsResponder = typeof getForwardingRequestsResponder & + KoaRuntimeResponder + +const getForwardingRequestsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_forwarding_request), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetForwardingRequests = ( params: Params< @@ -6304,10 +8686,19 @@ export type GetForwardingRequests = ( | Response > -export type PostForwardingRequestsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postForwardingRequestsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostForwardingRequestsResponder = typeof postForwardingRequestsResponder & + KoaRuntimeResponder + +const postForwardingRequestsResponseValidator = responseValidationFactory( + [["200", s_forwarding_request]], + s_error, +) export type PostForwardingRequests = ( params: Params, @@ -6319,10 +8710,19 @@ export type PostForwardingRequests = ( | Response > -export type GetForwardingRequestsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getForwardingRequestsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetForwardingRequestsIdResponder = + typeof getForwardingRequestsIdResponder & KoaRuntimeResponder + +const getForwardingRequestsIdResponseValidator = responseValidationFactory( + [["200", s_forwarding_request]], + s_error, +) export type GetForwardingRequestsId = ( params: Params< @@ -6339,15 +8739,38 @@ export type GetForwardingRequestsId = ( | Response > -export type GetIdentityVerificationReportsResponder = { - with200(): KoaRuntimeResponse<{ +const getIdentityVerificationReportsResponder = { + with200: r.with200<{ data: t_identity_verification_report[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIdentityVerificationReportsResponder = + typeof getIdentityVerificationReportsResponder & KoaRuntimeResponder + +const getIdentityVerificationReportsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_identity_verification_report), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/identity/verification_reports")), + }), + ], + ], + s_error, + ) export type GetIdentityVerificationReports = ( params: Params< @@ -6372,10 +8795,17 @@ export type GetIdentityVerificationReports = ( | Response > -export type GetIdentityVerificationReportsReportResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIdentityVerificationReportsReportResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIdentityVerificationReportsReportResponder = + typeof getIdentityVerificationReportsReportResponder & KoaRuntimeResponder + +const getIdentityVerificationReportsReportResponseValidator = + responseValidationFactory([["200", s_identity_verification_report]], s_error) export type GetIdentityVerificationReportsReport = ( params: Params< @@ -6392,15 +8822,38 @@ export type GetIdentityVerificationReportsReport = ( | Response > -export type GetIdentityVerificationSessionsResponder = { - with200(): KoaRuntimeResponse<{ +const getIdentityVerificationSessionsResponder = { + with200: r.with200<{ data: t_identity_verification_session[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIdentityVerificationSessionsResponder = + typeof getIdentityVerificationSessionsResponder & KoaRuntimeResponder + +const getIdentityVerificationSessionsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_identity_verification_session), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/identity/verification_sessions")), + }), + ], + ], + s_error, + ) export type GetIdentityVerificationSessions = ( params: Params< @@ -6425,10 +8878,17 @@ export type GetIdentityVerificationSessions = ( | Response > -export type PostIdentityVerificationSessionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIdentityVerificationSessionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIdentityVerificationSessionsResponder = + typeof postIdentityVerificationSessionsResponder & KoaRuntimeResponder + +const postIdentityVerificationSessionsResponseValidator = + responseValidationFactory([["200", s_identity_verification_session]], s_error) export type PostIdentityVerificationSessions = ( params: Params< @@ -6445,10 +8905,17 @@ export type PostIdentityVerificationSessions = ( | Response > -export type GetIdentityVerificationSessionsSessionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIdentityVerificationSessionsSessionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIdentityVerificationSessionsSessionResponder = + typeof getIdentityVerificationSessionsSessionResponder & KoaRuntimeResponder + +const getIdentityVerificationSessionsSessionResponseValidator = + responseValidationFactory([["200", s_identity_verification_session]], s_error) export type GetIdentityVerificationSessionsSession = ( params: Params< @@ -6465,10 +8932,17 @@ export type GetIdentityVerificationSessionsSession = ( | Response > -export type PostIdentityVerificationSessionsSessionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIdentityVerificationSessionsSessionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIdentityVerificationSessionsSessionResponder = + typeof postIdentityVerificationSessionsSessionResponder & KoaRuntimeResponder + +const postIdentityVerificationSessionsSessionResponseValidator = + responseValidationFactory([["200", s_identity_verification_session]], s_error) export type PostIdentityVerificationSessionsSession = ( params: Params< @@ -6485,10 +8959,18 @@ export type PostIdentityVerificationSessionsSession = ( | Response > -export type PostIdentityVerificationSessionsSessionCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIdentityVerificationSessionsSessionCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIdentityVerificationSessionsSessionCancelResponder = + typeof postIdentityVerificationSessionsSessionCancelResponder & + KoaRuntimeResponder + +const postIdentityVerificationSessionsSessionCancelResponseValidator = + responseValidationFactory([["200", s_identity_verification_session]], s_error) export type PostIdentityVerificationSessionsSessionCancel = ( params: Params< @@ -6505,10 +8987,18 @@ export type PostIdentityVerificationSessionsSessionCancel = ( | Response > -export type PostIdentityVerificationSessionsSessionRedactResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIdentityVerificationSessionsSessionRedactResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIdentityVerificationSessionsSessionRedactResponder = + typeof postIdentityVerificationSessionsSessionRedactResponder & + KoaRuntimeResponder + +const postIdentityVerificationSessionsSessionRedactResponseValidator = + responseValidationFactory([["200", s_identity_verification_session]], s_error) export type PostIdentityVerificationSessionsSessionRedact = ( params: Params< @@ -6525,15 +9015,34 @@ export type PostIdentityVerificationSessionsSessionRedact = ( | Response > -export type GetInvoicePaymentsResponder = { - with200(): KoaRuntimeResponse<{ +const getInvoicePaymentsResponder = { + with200: r.with200<{ data: t_invoice_payment[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoicePaymentsResponder = typeof getInvoicePaymentsResponder & + KoaRuntimeResponder + +const getInvoicePaymentsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_invoice_payment)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetInvoicePayments = ( params: Params< @@ -6558,10 +9067,17 @@ export type GetInvoicePayments = ( | Response > -export type GetInvoicePaymentsInvoicePaymentResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getInvoicePaymentsInvoicePaymentResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoicePaymentsInvoicePaymentResponder = + typeof getInvoicePaymentsInvoicePaymentResponder & KoaRuntimeResponder + +const getInvoicePaymentsInvoicePaymentResponseValidator = + responseValidationFactory([["200", s_invoice_payment]], s_error) export type GetInvoicePaymentsInvoicePayment = ( params: Params< @@ -6578,15 +9094,34 @@ export type GetInvoicePaymentsInvoicePayment = ( | Response > -export type GetInvoiceRenderingTemplatesResponder = { - with200(): KoaRuntimeResponse<{ +const getInvoiceRenderingTemplatesResponder = { + with200: r.with200<{ data: t_invoice_rendering_template[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoiceRenderingTemplatesResponder = + typeof getInvoiceRenderingTemplatesResponder & KoaRuntimeResponder + +const getInvoiceRenderingTemplatesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_invoice_rendering_template), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetInvoiceRenderingTemplates = ( params: Params< @@ -6611,10 +9146,17 @@ export type GetInvoiceRenderingTemplates = ( | Response > -export type GetInvoiceRenderingTemplatesTemplateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getInvoiceRenderingTemplatesTemplateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoiceRenderingTemplatesTemplateResponder = + typeof getInvoiceRenderingTemplatesTemplateResponder & KoaRuntimeResponder + +const getInvoiceRenderingTemplatesTemplateResponseValidator = + responseValidationFactory([["200", s_invoice_rendering_template]], s_error) export type GetInvoiceRenderingTemplatesTemplate = ( params: Params< @@ -6631,10 +9173,18 @@ export type GetInvoiceRenderingTemplatesTemplate = ( | Response > -export type PostInvoiceRenderingTemplatesTemplateArchiveResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoiceRenderingTemplatesTemplateArchiveResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoiceRenderingTemplatesTemplateArchiveResponder = + typeof postInvoiceRenderingTemplatesTemplateArchiveResponder & + KoaRuntimeResponder + +const postInvoiceRenderingTemplatesTemplateArchiveResponseValidator = + responseValidationFactory([["200", s_invoice_rendering_template]], s_error) export type PostInvoiceRenderingTemplatesTemplateArchive = ( params: Params< @@ -6651,10 +9201,18 @@ export type PostInvoiceRenderingTemplatesTemplateArchive = ( | Response > -export type PostInvoiceRenderingTemplatesTemplateUnarchiveResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoiceRenderingTemplatesTemplateUnarchiveResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoiceRenderingTemplatesTemplateUnarchiveResponder = + typeof postInvoiceRenderingTemplatesTemplateUnarchiveResponder & + KoaRuntimeResponder + +const postInvoiceRenderingTemplatesTemplateUnarchiveResponseValidator = + responseValidationFactory([["200", s_invoice_rendering_template]], s_error) export type PostInvoiceRenderingTemplatesTemplateUnarchive = ( params: Params< @@ -6671,15 +9229,34 @@ export type PostInvoiceRenderingTemplatesTemplateUnarchive = ( | Response > -export type GetInvoiceitemsResponder = { - with200(): KoaRuntimeResponse<{ +const getInvoiceitemsResponder = { + with200: r.with200<{ data: t_invoiceitem[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoiceitemsResponder = typeof getInvoiceitemsResponder & + KoaRuntimeResponder + +const getInvoiceitemsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_invoiceitem)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/invoiceitems")), + }), + ], + ], + s_error, +) export type GetInvoiceitems = ( params: Params< @@ -6704,10 +9281,19 @@ export type GetInvoiceitems = ( | Response > -export type PostInvoiceitemsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoiceitemsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoiceitemsResponder = typeof postInvoiceitemsResponder & + KoaRuntimeResponder + +const postInvoiceitemsResponseValidator = responseValidationFactory( + [["200", s_invoiceitem]], + s_error, +) export type PostInvoiceitems = ( params: Params, @@ -6719,10 +9305,17 @@ export type PostInvoiceitems = ( | Response > -export type DeleteInvoiceitemsInvoiceitemResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteInvoiceitemsInvoiceitemResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteInvoiceitemsInvoiceitemResponder = + typeof deleteInvoiceitemsInvoiceitemResponder & KoaRuntimeResponder + +const deleteInvoiceitemsInvoiceitemResponseValidator = + responseValidationFactory([["200", s_deleted_invoiceitem]], s_error) export type DeleteInvoiceitemsInvoiceitem = ( params: Params< @@ -6739,10 +9332,19 @@ export type DeleteInvoiceitemsInvoiceitem = ( | Response > -export type GetInvoiceitemsInvoiceitemResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getInvoiceitemsInvoiceitemResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoiceitemsInvoiceitemResponder = + typeof getInvoiceitemsInvoiceitemResponder & KoaRuntimeResponder + +const getInvoiceitemsInvoiceitemResponseValidator = responseValidationFactory( + [["200", s_invoiceitem]], + s_error, +) export type GetInvoiceitemsInvoiceitem = ( params: Params< @@ -6759,10 +9361,19 @@ export type GetInvoiceitemsInvoiceitem = ( | Response > -export type PostInvoiceitemsInvoiceitemResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoiceitemsInvoiceitemResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoiceitemsInvoiceitemResponder = + typeof postInvoiceitemsInvoiceitemResponder & KoaRuntimeResponder + +const postInvoiceitemsInvoiceitemResponseValidator = responseValidationFactory( + [["200", s_invoiceitem]], + s_error, +) export type PostInvoiceitemsInvoiceitem = ( params: Params< @@ -6779,15 +9390,33 @@ export type PostInvoiceitemsInvoiceitem = ( | Response > -export type GetInvoicesResponder = { - with200(): KoaRuntimeResponse<{ +const getInvoicesResponder = { + with200: r.with200<{ data: t_invoice[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoicesResponder = typeof getInvoicesResponder & KoaRuntimeResponder + +const getInvoicesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_invoice)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/invoices")), + }), + ], + ], + s_error, +) export type GetInvoices = ( params: Params< @@ -6812,10 +9441,18 @@ export type GetInvoices = ( | Response > -export type PostInvoicesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesResponder = typeof postInvoicesResponder & KoaRuntimeResponder + +const postInvoicesResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type PostInvoices = ( params: Params, @@ -6827,10 +9464,19 @@ export type PostInvoices = ( | Response > -export type PostInvoicesCreatePreviewResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesCreatePreviewResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesCreatePreviewResponder = + typeof postInvoicesCreatePreviewResponder & KoaRuntimeResponder + +const postInvoicesCreatePreviewResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type PostInvoicesCreatePreview = ( params: Params< @@ -6847,17 +9493,38 @@ export type PostInvoicesCreatePreview = ( | Response > -export type GetInvoicesSearchResponder = { - with200(): KoaRuntimeResponse<{ +const getInvoicesSearchResponder = { + with200: r.with200<{ data: t_invoice[] has_more: boolean next_page?: string | null object: "search_result" total_count?: number url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoicesSearchResponder = typeof getInvoicesSearchResponder & + KoaRuntimeResponder + +const getInvoicesSearchResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_invoice)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetInvoicesSearch = ( params: Params< @@ -6884,10 +9551,19 @@ export type GetInvoicesSearch = ( | Response > -export type DeleteInvoicesInvoiceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteInvoicesInvoiceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteInvoicesInvoiceResponder = typeof deleteInvoicesInvoiceResponder & + KoaRuntimeResponder + +const deleteInvoicesInvoiceResponseValidator = responseValidationFactory( + [["200", s_deleted_invoice]], + s_error, +) export type DeleteInvoicesInvoice = ( params: Params< @@ -6904,10 +9580,19 @@ export type DeleteInvoicesInvoice = ( | Response > -export type GetInvoicesInvoiceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getInvoicesInvoiceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoicesInvoiceResponder = typeof getInvoicesInvoiceResponder & + KoaRuntimeResponder + +const getInvoicesInvoiceResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type GetInvoicesInvoice = ( params: Params< @@ -6924,10 +9609,19 @@ export type GetInvoicesInvoice = ( | Response > -export type PostInvoicesInvoiceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceResponder = typeof postInvoicesInvoiceResponder & + KoaRuntimeResponder + +const postInvoicesInvoiceResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type PostInvoicesInvoice = ( params: Params< @@ -6944,10 +9638,19 @@ export type PostInvoicesInvoice = ( | Response > -export type PostInvoicesInvoiceAddLinesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceAddLinesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceAddLinesResponder = + typeof postInvoicesInvoiceAddLinesResponder & KoaRuntimeResponder + +const postInvoicesInvoiceAddLinesResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type PostInvoicesInvoiceAddLines = ( params: Params< @@ -6964,10 +9667,19 @@ export type PostInvoicesInvoiceAddLines = ( | Response > -export type PostInvoicesInvoiceFinalizeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceFinalizeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceFinalizeResponder = + typeof postInvoicesInvoiceFinalizeResponder & KoaRuntimeResponder + +const postInvoicesInvoiceFinalizeResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type PostInvoicesInvoiceFinalize = ( params: Params< @@ -6984,15 +9696,34 @@ export type PostInvoicesInvoiceFinalize = ( | Response > -export type GetInvoicesInvoiceLinesResponder = { - with200(): KoaRuntimeResponse<{ +const getInvoicesInvoiceLinesResponder = { + with200: r.with200<{ data: t_line_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetInvoicesInvoiceLinesResponder = + typeof getInvoicesInvoiceLinesResponder & KoaRuntimeResponder + +const getInvoicesInvoiceLinesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_line_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetInvoicesInvoiceLines = ( params: Params< @@ -7017,10 +9748,17 @@ export type GetInvoicesInvoiceLines = ( | Response > -export type PostInvoicesInvoiceLinesLineItemIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceLinesLineItemIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceLinesLineItemIdResponder = + typeof postInvoicesInvoiceLinesLineItemIdResponder & KoaRuntimeResponder + +const postInvoicesInvoiceLinesLineItemIdResponseValidator = + responseValidationFactory([["200", s_line_item]], s_error) export type PostInvoicesInvoiceLinesLineItemId = ( params: Params< @@ -7037,10 +9775,17 @@ export type PostInvoicesInvoiceLinesLineItemId = ( | Response > -export type PostInvoicesInvoiceMarkUncollectibleResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceMarkUncollectibleResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceMarkUncollectibleResponder = + typeof postInvoicesInvoiceMarkUncollectibleResponder & KoaRuntimeResponder + +const postInvoicesInvoiceMarkUncollectibleResponseValidator = + responseValidationFactory([["200", s_invoice]], s_error) export type PostInvoicesInvoiceMarkUncollectible = ( params: Params< @@ -7057,10 +9802,19 @@ export type PostInvoicesInvoiceMarkUncollectible = ( | Response > -export type PostInvoicesInvoicePayResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoicePayResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoicePayResponder = typeof postInvoicesInvoicePayResponder & + KoaRuntimeResponder + +const postInvoicesInvoicePayResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type PostInvoicesInvoicePay = ( params: Params< @@ -7077,10 +9831,17 @@ export type PostInvoicesInvoicePay = ( | Response > -export type PostInvoicesInvoiceRemoveLinesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceRemoveLinesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceRemoveLinesResponder = + typeof postInvoicesInvoiceRemoveLinesResponder & KoaRuntimeResponder + +const postInvoicesInvoiceRemoveLinesResponseValidator = + responseValidationFactory([["200", s_invoice]], s_error) export type PostInvoicesInvoiceRemoveLines = ( params: Params< @@ -7097,10 +9858,19 @@ export type PostInvoicesInvoiceRemoveLines = ( | Response > -export type PostInvoicesInvoiceSendResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceSendResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceSendResponder = + typeof postInvoicesInvoiceSendResponder & KoaRuntimeResponder + +const postInvoicesInvoiceSendResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type PostInvoicesInvoiceSend = ( params: Params< @@ -7117,10 +9887,17 @@ export type PostInvoicesInvoiceSend = ( | Response > -export type PostInvoicesInvoiceUpdateLinesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceUpdateLinesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceUpdateLinesResponder = + typeof postInvoicesInvoiceUpdateLinesResponder & KoaRuntimeResponder + +const postInvoicesInvoiceUpdateLinesResponseValidator = + responseValidationFactory([["200", s_invoice]], s_error) export type PostInvoicesInvoiceUpdateLines = ( params: Params< @@ -7137,10 +9914,19 @@ export type PostInvoicesInvoiceUpdateLines = ( | Response > -export type PostInvoicesInvoiceVoidResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postInvoicesInvoiceVoidResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostInvoicesInvoiceVoidResponder = + typeof postInvoicesInvoiceVoidResponder & KoaRuntimeResponder + +const postInvoicesInvoiceVoidResponseValidator = responseValidationFactory( + [["200", s_invoice]], + s_error, +) export type PostInvoicesInvoiceVoid = ( params: Params< @@ -7157,15 +9943,37 @@ export type PostInvoicesInvoiceVoid = ( | Response > -export type GetIssuingAuthorizationsResponder = { - with200(): KoaRuntimeResponse<{ +const getIssuingAuthorizationsResponder = { + with200: r.with200<{ data: t_issuing_authorization[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingAuthorizationsResponder = + typeof getIssuingAuthorizationsResponder & KoaRuntimeResponder + +const getIssuingAuthorizationsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_issuing_authorization)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/issuing/authorizations")), + }), + ], + ], + s_error, +) export type GetIssuingAuthorizations = ( params: Params< @@ -7190,10 +9998,17 @@ export type GetIssuingAuthorizations = ( | Response > -export type GetIssuingAuthorizationsAuthorizationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingAuthorizationsAuthorizationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingAuthorizationsAuthorizationResponder = + typeof getIssuingAuthorizationsAuthorizationResponder & KoaRuntimeResponder + +const getIssuingAuthorizationsAuthorizationResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type GetIssuingAuthorizationsAuthorization = ( params: Params< @@ -7210,10 +10025,17 @@ export type GetIssuingAuthorizationsAuthorization = ( | Response > -export type PostIssuingAuthorizationsAuthorizationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingAuthorizationsAuthorizationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingAuthorizationsAuthorizationResponder = + typeof postIssuingAuthorizationsAuthorizationResponder & KoaRuntimeResponder + +const postIssuingAuthorizationsAuthorizationResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostIssuingAuthorizationsAuthorization = ( params: Params< @@ -7230,10 +10052,18 @@ export type PostIssuingAuthorizationsAuthorization = ( | Response > -export type PostIssuingAuthorizationsAuthorizationApproveResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingAuthorizationsAuthorizationApproveResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingAuthorizationsAuthorizationApproveResponder = + typeof postIssuingAuthorizationsAuthorizationApproveResponder & + KoaRuntimeResponder + +const postIssuingAuthorizationsAuthorizationApproveResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostIssuingAuthorizationsAuthorizationApprove = ( params: Params< @@ -7250,10 +10080,18 @@ export type PostIssuingAuthorizationsAuthorizationApprove = ( | Response > -export type PostIssuingAuthorizationsAuthorizationDeclineResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingAuthorizationsAuthorizationDeclineResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingAuthorizationsAuthorizationDeclineResponder = + typeof postIssuingAuthorizationsAuthorizationDeclineResponder & + KoaRuntimeResponder + +const postIssuingAuthorizationsAuthorizationDeclineResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostIssuingAuthorizationsAuthorizationDecline = ( params: Params< @@ -7270,15 +10108,34 @@ export type PostIssuingAuthorizationsAuthorizationDecline = ( | Response > -export type GetIssuingCardholdersResponder = { - with200(): KoaRuntimeResponse<{ +const getIssuingCardholdersResponder = { + with200: r.with200<{ data: t_issuing_cardholder[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingCardholdersResponder = typeof getIssuingCardholdersResponder & + KoaRuntimeResponder + +const getIssuingCardholdersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_issuing_cardholder)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/issuing/cardholders")), + }), + ], + ], + s_error, +) export type GetIssuingCardholders = ( params: Params< @@ -7303,10 +10160,19 @@ export type GetIssuingCardholders = ( | Response > -export type PostIssuingCardholdersResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingCardholdersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingCardholdersResponder = typeof postIssuingCardholdersResponder & + KoaRuntimeResponder + +const postIssuingCardholdersResponseValidator = responseValidationFactory( + [["200", s_issuing_cardholder]], + s_error, +) export type PostIssuingCardholders = ( params: Params, @@ -7318,10 +10184,17 @@ export type PostIssuingCardholders = ( | Response > -export type GetIssuingCardholdersCardholderResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingCardholdersCardholderResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingCardholdersCardholderResponder = + typeof getIssuingCardholdersCardholderResponder & KoaRuntimeResponder + +const getIssuingCardholdersCardholderResponseValidator = + responseValidationFactory([["200", s_issuing_cardholder]], s_error) export type GetIssuingCardholdersCardholder = ( params: Params< @@ -7338,10 +10211,17 @@ export type GetIssuingCardholdersCardholder = ( | Response > -export type PostIssuingCardholdersCardholderResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingCardholdersCardholderResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingCardholdersCardholderResponder = + typeof postIssuingCardholdersCardholderResponder & KoaRuntimeResponder + +const postIssuingCardholdersCardholderResponseValidator = + responseValidationFactory([["200", s_issuing_cardholder]], s_error) export type PostIssuingCardholdersCardholder = ( params: Params< @@ -7358,15 +10238,34 @@ export type PostIssuingCardholdersCardholder = ( | Response > -export type GetIssuingCardsResponder = { - with200(): KoaRuntimeResponse<{ +const getIssuingCardsResponder = { + with200: r.with200<{ data: t_issuing_card[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingCardsResponder = typeof getIssuingCardsResponder & + KoaRuntimeResponder + +const getIssuingCardsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_issuing_card)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/issuing/cards")), + }), + ], + ], + s_error, +) export type GetIssuingCards = ( params: Params< @@ -7391,10 +10290,19 @@ export type GetIssuingCards = ( | Response > -export type PostIssuingCardsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingCardsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingCardsResponder = typeof postIssuingCardsResponder & + KoaRuntimeResponder + +const postIssuingCardsResponseValidator = responseValidationFactory( + [["200", s_issuing_card]], + s_error, +) export type PostIssuingCards = ( params: Params, @@ -7406,10 +10314,19 @@ export type PostIssuingCards = ( | Response > -export type GetIssuingCardsCardResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingCardsCardResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingCardsCardResponder = typeof getIssuingCardsCardResponder & + KoaRuntimeResponder + +const getIssuingCardsCardResponseValidator = responseValidationFactory( + [["200", s_issuing_card]], + s_error, +) export type GetIssuingCardsCard = ( params: Params< @@ -7426,10 +10343,19 @@ export type GetIssuingCardsCard = ( | Response > -export type PostIssuingCardsCardResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingCardsCardResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingCardsCardResponder = typeof postIssuingCardsCardResponder & + KoaRuntimeResponder + +const postIssuingCardsCardResponseValidator = responseValidationFactory( + [["200", s_issuing_card]], + s_error, +) export type PostIssuingCardsCard = ( params: Params< @@ -7446,15 +10372,34 @@ export type PostIssuingCardsCard = ( | Response > -export type GetIssuingDisputesResponder = { - with200(): KoaRuntimeResponse<{ +const getIssuingDisputesResponder = { + with200: r.with200<{ data: t_issuing_dispute[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingDisputesResponder = typeof getIssuingDisputesResponder & + KoaRuntimeResponder + +const getIssuingDisputesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_issuing_dispute)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/issuing/disputes")), + }), + ], + ], + s_error, +) export type GetIssuingDisputes = ( params: Params< @@ -7479,10 +10424,19 @@ export type GetIssuingDisputes = ( | Response > -export type PostIssuingDisputesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingDisputesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingDisputesResponder = typeof postIssuingDisputesResponder & + KoaRuntimeResponder + +const postIssuingDisputesResponseValidator = responseValidationFactory( + [["200", s_issuing_dispute]], + s_error, +) export type PostIssuingDisputes = ( params: Params, @@ -7494,10 +10448,19 @@ export type PostIssuingDisputes = ( | Response > -export type GetIssuingDisputesDisputeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingDisputesDisputeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingDisputesDisputeResponder = + typeof getIssuingDisputesDisputeResponder & KoaRuntimeResponder + +const getIssuingDisputesDisputeResponseValidator = responseValidationFactory( + [["200", s_issuing_dispute]], + s_error, +) export type GetIssuingDisputesDispute = ( params: Params< @@ -7514,10 +10477,19 @@ export type GetIssuingDisputesDispute = ( | Response > -export type PostIssuingDisputesDisputeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingDisputesDisputeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingDisputesDisputeResponder = + typeof postIssuingDisputesDisputeResponder & KoaRuntimeResponder + +const postIssuingDisputesDisputeResponseValidator = responseValidationFactory( + [["200", s_issuing_dispute]], + s_error, +) export type PostIssuingDisputesDispute = ( params: Params< @@ -7534,10 +10506,17 @@ export type PostIssuingDisputesDispute = ( | Response > -export type PostIssuingDisputesDisputeSubmitResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingDisputesDisputeSubmitResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingDisputesDisputeSubmitResponder = + typeof postIssuingDisputesDisputeSubmitResponder & KoaRuntimeResponder + +const postIssuingDisputesDisputeSubmitResponseValidator = + responseValidationFactory([["200", s_issuing_dispute]], s_error) export type PostIssuingDisputesDisputeSubmit = ( params: Params< @@ -7554,15 +10533,38 @@ export type PostIssuingDisputesDisputeSubmit = ( | Response > -export type GetIssuingPersonalizationDesignsResponder = { - with200(): KoaRuntimeResponse<{ +const getIssuingPersonalizationDesignsResponder = { + with200: r.with200<{ data: t_issuing_personalization_design[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingPersonalizationDesignsResponder = + typeof getIssuingPersonalizationDesignsResponder & KoaRuntimeResponder + +const getIssuingPersonalizationDesignsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_issuing_personalization_design)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/issuing/personalization_designs")), + }), + ], + ], + s_error, + ) export type GetIssuingPersonalizationDesigns = ( params: Params< @@ -7587,10 +10589,20 @@ export type GetIssuingPersonalizationDesigns = ( | Response > -export type PostIssuingPersonalizationDesignsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingPersonalizationDesignsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingPersonalizationDesignsResponder = + typeof postIssuingPersonalizationDesignsResponder & KoaRuntimeResponder + +const postIssuingPersonalizationDesignsResponseValidator = + responseValidationFactory( + [["200", s_issuing_personalization_design]], + s_error, + ) export type PostIssuingPersonalizationDesigns = ( params: Params< @@ -7607,10 +10619,21 @@ export type PostIssuingPersonalizationDesigns = ( | Response > -export type GetIssuingPersonalizationDesignsPersonalizationDesignResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingPersonalizationDesignsPersonalizationDesignResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingPersonalizationDesignsPersonalizationDesignResponder = + typeof getIssuingPersonalizationDesignsPersonalizationDesignResponder & + KoaRuntimeResponder + +const getIssuingPersonalizationDesignsPersonalizationDesignResponseValidator = + responseValidationFactory( + [["200", s_issuing_personalization_design]], + s_error, + ) export type GetIssuingPersonalizationDesignsPersonalizationDesign = ( params: Params< @@ -7628,10 +10651,21 @@ export type GetIssuingPersonalizationDesignsPersonalizationDesign = ( | Response > -export type PostIssuingPersonalizationDesignsPersonalizationDesignResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingPersonalizationDesignsPersonalizationDesignResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingPersonalizationDesignsPersonalizationDesignResponder = + typeof postIssuingPersonalizationDesignsPersonalizationDesignResponder & + KoaRuntimeResponder + +const postIssuingPersonalizationDesignsPersonalizationDesignResponseValidator = + responseValidationFactory( + [["200", s_issuing_personalization_design]], + s_error, + ) export type PostIssuingPersonalizationDesignsPersonalizationDesign = ( params: Params< @@ -7649,15 +10683,37 @@ export type PostIssuingPersonalizationDesignsPersonalizationDesign = ( | Response > -export type GetIssuingPhysicalBundlesResponder = { - with200(): KoaRuntimeResponse<{ +const getIssuingPhysicalBundlesResponder = { + with200: r.with200<{ data: t_issuing_physical_bundle[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingPhysicalBundlesResponder = + typeof getIssuingPhysicalBundlesResponder & KoaRuntimeResponder + +const getIssuingPhysicalBundlesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_issuing_physical_bundle), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/issuing/physical_bundles")), + }), + ], + ], + s_error, +) export type GetIssuingPhysicalBundles = ( params: Params< @@ -7682,10 +10738,17 @@ export type GetIssuingPhysicalBundles = ( | Response > -export type GetIssuingPhysicalBundlesPhysicalBundleResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingPhysicalBundlesPhysicalBundleResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingPhysicalBundlesPhysicalBundleResponder = + typeof getIssuingPhysicalBundlesPhysicalBundleResponder & KoaRuntimeResponder + +const getIssuingPhysicalBundlesPhysicalBundleResponseValidator = + responseValidationFactory([["200", s_issuing_physical_bundle]], s_error) export type GetIssuingPhysicalBundlesPhysicalBundle = ( params: Params< @@ -7702,10 +10765,17 @@ export type GetIssuingPhysicalBundlesPhysicalBundle = ( | Response > -export type GetIssuingSettlementsSettlementResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingSettlementsSettlementResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingSettlementsSettlementResponder = + typeof getIssuingSettlementsSettlementResponder & KoaRuntimeResponder + +const getIssuingSettlementsSettlementResponseValidator = + responseValidationFactory([["200", s_issuing_settlement]], s_error) export type GetIssuingSettlementsSettlement = ( params: Params< @@ -7722,10 +10792,17 @@ export type GetIssuingSettlementsSettlement = ( | Response > -export type PostIssuingSettlementsSettlementResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingSettlementsSettlementResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingSettlementsSettlementResponder = + typeof postIssuingSettlementsSettlementResponder & KoaRuntimeResponder + +const postIssuingSettlementsSettlementResponseValidator = + responseValidationFactory([["200", s_issuing_settlement]], s_error) export type PostIssuingSettlementsSettlement = ( params: Params< @@ -7742,15 +10819,34 @@ export type PostIssuingSettlementsSettlement = ( | Response > -export type GetIssuingTokensResponder = { - with200(): KoaRuntimeResponse<{ +const getIssuingTokensResponder = { + with200: r.with200<{ data: t_issuing_token[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingTokensResponder = typeof getIssuingTokensResponder & + KoaRuntimeResponder + +const getIssuingTokensResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_issuing_token)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetIssuingTokens = ( params: Params< @@ -7775,10 +10871,19 @@ export type GetIssuingTokens = ( | Response > -export type GetIssuingTokensTokenResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingTokensTokenResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingTokensTokenResponder = typeof getIssuingTokensTokenResponder & + KoaRuntimeResponder + +const getIssuingTokensTokenResponseValidator = responseValidationFactory( + [["200", s_issuing_token]], + s_error, +) export type GetIssuingTokensToken = ( params: Params< @@ -7795,10 +10900,19 @@ export type GetIssuingTokensToken = ( | Response > -export type PostIssuingTokensTokenResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingTokensTokenResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingTokensTokenResponder = typeof postIssuingTokensTokenResponder & + KoaRuntimeResponder + +const postIssuingTokensTokenResponseValidator = responseValidationFactory( + [["200", s_issuing_token]], + s_error, +) export type PostIssuingTokensToken = ( params: Params< @@ -7815,15 +10929,37 @@ export type PostIssuingTokensToken = ( | Response > -export type GetIssuingTransactionsResponder = { - with200(): KoaRuntimeResponse<{ +const getIssuingTransactionsResponder = { + with200: r.with200<{ data: t_issuing_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingTransactionsResponder = typeof getIssuingTransactionsResponder & + KoaRuntimeResponder + +const getIssuingTransactionsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_issuing_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/issuing/transactions")), + }), + ], + ], + s_error, +) export type GetIssuingTransactions = ( params: Params< @@ -7848,10 +10984,17 @@ export type GetIssuingTransactions = ( | Response > -export type GetIssuingTransactionsTransactionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getIssuingTransactionsTransactionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetIssuingTransactionsTransactionResponder = + typeof getIssuingTransactionsTransactionResponder & KoaRuntimeResponder + +const getIssuingTransactionsTransactionResponseValidator = + responseValidationFactory([["200", s_issuing_transaction]], s_error) export type GetIssuingTransactionsTransaction = ( params: Params< @@ -7868,10 +11011,17 @@ export type GetIssuingTransactionsTransaction = ( | Response > -export type PostIssuingTransactionsTransactionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postIssuingTransactionsTransactionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostIssuingTransactionsTransactionResponder = + typeof postIssuingTransactionsTransactionResponder & KoaRuntimeResponder + +const postIssuingTransactionsTransactionResponseValidator = + responseValidationFactory([["200", s_issuing_transaction]], s_error) export type PostIssuingTransactionsTransaction = ( params: Params< @@ -7888,10 +11038,19 @@ export type PostIssuingTransactionsTransaction = ( | Response > -export type PostLinkAccountSessionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postLinkAccountSessionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostLinkAccountSessionsResponder = + typeof postLinkAccountSessionsResponder & KoaRuntimeResponder + +const postLinkAccountSessionsResponseValidator = responseValidationFactory( + [["200", s_financial_connections_session]], + s_error, +) export type PostLinkAccountSessions = ( params: Params, @@ -7903,10 +11062,17 @@ export type PostLinkAccountSessions = ( | Response > -export type GetLinkAccountSessionsSessionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getLinkAccountSessionsSessionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetLinkAccountSessionsSessionResponder = + typeof getLinkAccountSessionsSessionResponder & KoaRuntimeResponder + +const getLinkAccountSessionsSessionResponseValidator = + responseValidationFactory([["200", s_financial_connections_session]], s_error) export type GetLinkAccountSessionsSession = ( params: Params< @@ -7923,15 +11089,37 @@ export type GetLinkAccountSessionsSession = ( | Response > -export type GetLinkedAccountsResponder = { - with200(): KoaRuntimeResponse<{ +const getLinkedAccountsResponder = { + with200: r.with200<{ data: t_financial_connections_account[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetLinkedAccountsResponder = typeof getLinkedAccountsResponder & + KoaRuntimeResponder + +const getLinkedAccountsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_financial_connections_account)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/financial_connections/accounts")), + }), + ], + ], + s_error, +) export type GetLinkedAccounts = ( params: Params< @@ -7956,10 +11144,19 @@ export type GetLinkedAccounts = ( | Response > -export type GetLinkedAccountsAccountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getLinkedAccountsAccountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetLinkedAccountsAccountResponder = + typeof getLinkedAccountsAccountResponder & KoaRuntimeResponder + +const getLinkedAccountsAccountResponseValidator = responseValidationFactory( + [["200", s_financial_connections_account]], + s_error, +) export type GetLinkedAccountsAccount = ( params: Params< @@ -7976,10 +11173,17 @@ export type GetLinkedAccountsAccount = ( | Response > -export type PostLinkedAccountsAccountDisconnectResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postLinkedAccountsAccountDisconnectResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostLinkedAccountsAccountDisconnectResponder = + typeof postLinkedAccountsAccountDisconnectResponder & KoaRuntimeResponder + +const postLinkedAccountsAccountDisconnectResponseValidator = + responseValidationFactory([["200", s_financial_connections_account]], s_error) export type PostLinkedAccountsAccountDisconnect = ( params: Params< @@ -7996,15 +11200,35 @@ export type PostLinkedAccountsAccountDisconnect = ( | Response > -export type GetLinkedAccountsAccountOwnersResponder = { - with200(): KoaRuntimeResponse<{ +const getLinkedAccountsAccountOwnersResponder = { + with200: r.with200<{ data: t_financial_connections_account_owner[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetLinkedAccountsAccountOwnersResponder = + typeof getLinkedAccountsAccountOwnersResponder & KoaRuntimeResponder + +const getLinkedAccountsAccountOwnersResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_financial_connections_account_owner), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetLinkedAccountsAccountOwners = ( params: Params< @@ -8029,10 +11253,17 @@ export type GetLinkedAccountsAccountOwners = ( | Response > -export type PostLinkedAccountsAccountRefreshResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postLinkedAccountsAccountRefreshResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostLinkedAccountsAccountRefreshResponder = + typeof postLinkedAccountsAccountRefreshResponder & KoaRuntimeResponder + +const postLinkedAccountsAccountRefreshResponseValidator = + responseValidationFactory([["200", s_financial_connections_account]], s_error) export type PostLinkedAccountsAccountRefresh = ( params: Params< @@ -8049,10 +11280,19 @@ export type PostLinkedAccountsAccountRefresh = ( | Response > -export type GetMandatesMandateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getMandatesMandateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetMandatesMandateResponder = typeof getMandatesMandateResponder & + KoaRuntimeResponder + +const getMandatesMandateResponseValidator = responseValidationFactory( + [["200", s_mandate]], + s_error, +) export type GetMandatesMandate = ( params: Params< @@ -8069,15 +11309,34 @@ export type GetMandatesMandate = ( | Response > -export type GetPaymentIntentsResponder = { - with200(): KoaRuntimeResponse<{ +const getPaymentIntentsResponder = { + with200: r.with200<{ data: t_payment_intent[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentIntentsResponder = typeof getPaymentIntentsResponder & + KoaRuntimeResponder + +const getPaymentIntentsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_payment_intent)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/payment_intents")), + }), + ], + ], + s_error, +) export type GetPaymentIntents = ( params: Params< @@ -8102,10 +11361,19 @@ export type GetPaymentIntents = ( | Response > -export type PostPaymentIntentsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentIntentsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentIntentsResponder = typeof postPaymentIntentsResponder & + KoaRuntimeResponder + +const postPaymentIntentsResponseValidator = responseValidationFactory( + [["200", s_payment_intent]], + s_error, +) export type PostPaymentIntents = ( params: Params, @@ -8117,17 +11385,38 @@ export type PostPaymentIntents = ( | Response > -export type GetPaymentIntentsSearchResponder = { - with200(): KoaRuntimeResponse<{ +const getPaymentIntentsSearchResponder = { + with200: r.with200<{ data: t_payment_intent[] has_more: boolean next_page?: string | null object: "search_result" total_count?: number url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentIntentsSearchResponder = + typeof getPaymentIntentsSearchResponder & KoaRuntimeResponder + +const getPaymentIntentsSearchResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_payment_intent)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetPaymentIntentsSearch = ( params: Params< @@ -8154,10 +11443,19 @@ export type GetPaymentIntentsSearch = ( | Response > -export type GetPaymentIntentsIntentResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPaymentIntentsIntentResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentIntentsIntentResponder = + typeof getPaymentIntentsIntentResponder & KoaRuntimeResponder + +const getPaymentIntentsIntentResponseValidator = responseValidationFactory( + [["200", s_payment_intent]], + s_error, +) export type GetPaymentIntentsIntent = ( params: Params< @@ -8174,10 +11472,19 @@ export type GetPaymentIntentsIntent = ( | Response > -export type PostPaymentIntentsIntentResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentIntentsIntentResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentIntentsIntentResponder = + typeof postPaymentIntentsIntentResponder & KoaRuntimeResponder + +const postPaymentIntentsIntentResponseValidator = responseValidationFactory( + [["200", s_payment_intent]], + s_error, +) export type PostPaymentIntentsIntent = ( params: Params< @@ -8194,10 +11501,18 @@ export type PostPaymentIntentsIntent = ( | Response > -export type PostPaymentIntentsIntentApplyCustomerBalanceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentIntentsIntentApplyCustomerBalanceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentIntentsIntentApplyCustomerBalanceResponder = + typeof postPaymentIntentsIntentApplyCustomerBalanceResponder & + KoaRuntimeResponder + +const postPaymentIntentsIntentApplyCustomerBalanceResponseValidator = + responseValidationFactory([["200", s_payment_intent]], s_error) export type PostPaymentIntentsIntentApplyCustomerBalance = ( params: Params< @@ -8214,10 +11529,17 @@ export type PostPaymentIntentsIntentApplyCustomerBalance = ( | Response > -export type PostPaymentIntentsIntentCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentIntentsIntentCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentIntentsIntentCancelResponder = + typeof postPaymentIntentsIntentCancelResponder & KoaRuntimeResponder + +const postPaymentIntentsIntentCancelResponseValidator = + responseValidationFactory([["200", s_payment_intent]], s_error) export type PostPaymentIntentsIntentCancel = ( params: Params< @@ -8234,10 +11556,17 @@ export type PostPaymentIntentsIntentCancel = ( | Response > -export type PostPaymentIntentsIntentCaptureResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentIntentsIntentCaptureResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentIntentsIntentCaptureResponder = + typeof postPaymentIntentsIntentCaptureResponder & KoaRuntimeResponder + +const postPaymentIntentsIntentCaptureResponseValidator = + responseValidationFactory([["200", s_payment_intent]], s_error) export type PostPaymentIntentsIntentCapture = ( params: Params< @@ -8254,10 +11583,17 @@ export type PostPaymentIntentsIntentCapture = ( | Response > -export type PostPaymentIntentsIntentConfirmResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentIntentsIntentConfirmResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentIntentsIntentConfirmResponder = + typeof postPaymentIntentsIntentConfirmResponder & KoaRuntimeResponder + +const postPaymentIntentsIntentConfirmResponseValidator = + responseValidationFactory([["200", s_payment_intent]], s_error) export type PostPaymentIntentsIntentConfirm = ( params: Params< @@ -8274,10 +11610,18 @@ export type PostPaymentIntentsIntentConfirm = ( | Response > -export type PostPaymentIntentsIntentIncrementAuthorizationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentIntentsIntentIncrementAuthorizationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentIntentsIntentIncrementAuthorizationResponder = + typeof postPaymentIntentsIntentIncrementAuthorizationResponder & + KoaRuntimeResponder + +const postPaymentIntentsIntentIncrementAuthorizationResponseValidator = + responseValidationFactory([["200", s_payment_intent]], s_error) export type PostPaymentIntentsIntentIncrementAuthorization = ( params: Params< @@ -8294,10 +11638,18 @@ export type PostPaymentIntentsIntentIncrementAuthorization = ( | Response > -export type PostPaymentIntentsIntentVerifyMicrodepositsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentIntentsIntentVerifyMicrodepositsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentIntentsIntentVerifyMicrodepositsResponder = + typeof postPaymentIntentsIntentVerifyMicrodepositsResponder & + KoaRuntimeResponder + +const postPaymentIntentsIntentVerifyMicrodepositsResponseValidator = + responseValidationFactory([["200", s_payment_intent]], s_error) export type PostPaymentIntentsIntentVerifyMicrodeposits = ( params: Params< @@ -8314,15 +11666,34 @@ export type PostPaymentIntentsIntentVerifyMicrodeposits = ( | Response > -export type GetPaymentLinksResponder = { - with200(): KoaRuntimeResponse<{ +const getPaymentLinksResponder = { + with200: r.with200<{ data: t_payment_link[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentLinksResponder = typeof getPaymentLinksResponder & + KoaRuntimeResponder + +const getPaymentLinksResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_payment_link)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/payment_links")), + }), + ], + ], + s_error, +) export type GetPaymentLinks = ( params: Params< @@ -8347,10 +11718,19 @@ export type GetPaymentLinks = ( | Response > -export type PostPaymentLinksResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentLinksResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentLinksResponder = typeof postPaymentLinksResponder & + KoaRuntimeResponder + +const postPaymentLinksResponseValidator = responseValidationFactory( + [["200", s_payment_link]], + s_error, +) export type PostPaymentLinks = ( params: Params, @@ -8362,10 +11742,19 @@ export type PostPaymentLinks = ( | Response > -export type GetPaymentLinksPaymentLinkResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPaymentLinksPaymentLinkResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentLinksPaymentLinkResponder = + typeof getPaymentLinksPaymentLinkResponder & KoaRuntimeResponder + +const getPaymentLinksPaymentLinkResponseValidator = responseValidationFactory( + [["200", s_payment_link]], + s_error, +) export type GetPaymentLinksPaymentLink = ( params: Params< @@ -8382,10 +11771,19 @@ export type GetPaymentLinksPaymentLink = ( | Response > -export type PostPaymentLinksPaymentLinkResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentLinksPaymentLinkResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentLinksPaymentLinkResponder = + typeof postPaymentLinksPaymentLinkResponder & KoaRuntimeResponder + +const postPaymentLinksPaymentLinkResponseValidator = responseValidationFactory( + [["200", s_payment_link]], + s_error, +) export type PostPaymentLinksPaymentLink = ( params: Params< @@ -8402,15 +11800,35 @@ export type PostPaymentLinksPaymentLink = ( | Response > -export type GetPaymentLinksPaymentLinkLineItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getPaymentLinksPaymentLinkLineItemsResponder = { + with200: r.with200<{ data: t_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentLinksPaymentLinkLineItemsResponder = + typeof getPaymentLinksPaymentLinkLineItemsResponder & KoaRuntimeResponder + +const getPaymentLinksPaymentLinkLineItemsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetPaymentLinksPaymentLinkLineItems = ( params: Params< @@ -8435,15 +11853,38 @@ export type GetPaymentLinksPaymentLinkLineItems = ( | Response > -export type GetPaymentMethodConfigurationsResponder = { - with200(): KoaRuntimeResponse<{ +const getPaymentMethodConfigurationsResponder = { + with200: r.with200<{ data: t_payment_method_configuration[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentMethodConfigurationsResponder = + typeof getPaymentMethodConfigurationsResponder & KoaRuntimeResponder + +const getPaymentMethodConfigurationsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_payment_method_configuration), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/payment_method_configurations")), + }), + ], + ], + s_error, + ) export type GetPaymentMethodConfigurations = ( params: Params< @@ -8468,10 +11909,17 @@ export type GetPaymentMethodConfigurations = ( | Response > -export type PostPaymentMethodConfigurationsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodConfigurationsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodConfigurationsResponder = + typeof postPaymentMethodConfigurationsResponder & KoaRuntimeResponder + +const postPaymentMethodConfigurationsResponseValidator = + responseValidationFactory([["200", s_payment_method_configuration]], s_error) export type PostPaymentMethodConfigurations = ( params: Params< @@ -8488,10 +11936,18 @@ export type PostPaymentMethodConfigurations = ( | Response > -export type GetPaymentMethodConfigurationsConfigurationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPaymentMethodConfigurationsConfigurationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentMethodConfigurationsConfigurationResponder = + typeof getPaymentMethodConfigurationsConfigurationResponder & + KoaRuntimeResponder + +const getPaymentMethodConfigurationsConfigurationResponseValidator = + responseValidationFactory([["200", s_payment_method_configuration]], s_error) export type GetPaymentMethodConfigurationsConfiguration = ( params: Params< @@ -8508,10 +11964,18 @@ export type GetPaymentMethodConfigurationsConfiguration = ( | Response > -export type PostPaymentMethodConfigurationsConfigurationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodConfigurationsConfigurationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodConfigurationsConfigurationResponder = + typeof postPaymentMethodConfigurationsConfigurationResponder & + KoaRuntimeResponder + +const postPaymentMethodConfigurationsConfigurationResponseValidator = + responseValidationFactory([["200", s_payment_method_configuration]], s_error) export type PostPaymentMethodConfigurationsConfiguration = ( params: Params< @@ -8528,15 +11992,37 @@ export type PostPaymentMethodConfigurationsConfiguration = ( | Response > -export type GetPaymentMethodDomainsResponder = { - with200(): KoaRuntimeResponse<{ +const getPaymentMethodDomainsResponder = { + with200: r.with200<{ data: t_payment_method_domain[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentMethodDomainsResponder = + typeof getPaymentMethodDomainsResponder & KoaRuntimeResponder + +const getPaymentMethodDomainsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_payment_method_domain), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/payment_method_domains")), + }), + ], + ], + s_error, +) export type GetPaymentMethodDomains = ( params: Params< @@ -8561,10 +12047,19 @@ export type GetPaymentMethodDomains = ( | Response > -export type PostPaymentMethodDomainsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodDomainsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodDomainsResponder = + typeof postPaymentMethodDomainsResponder & KoaRuntimeResponder + +const postPaymentMethodDomainsResponseValidator = responseValidationFactory( + [["200", s_payment_method_domain]], + s_error, +) export type PostPaymentMethodDomains = ( params: Params, @@ -8576,10 +12071,18 @@ export type PostPaymentMethodDomains = ( | Response > -export type GetPaymentMethodDomainsPaymentMethodDomainResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPaymentMethodDomainsPaymentMethodDomainResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentMethodDomainsPaymentMethodDomainResponder = + typeof getPaymentMethodDomainsPaymentMethodDomainResponder & + KoaRuntimeResponder + +const getPaymentMethodDomainsPaymentMethodDomainResponseValidator = + responseValidationFactory([["200", s_payment_method_domain]], s_error) export type GetPaymentMethodDomainsPaymentMethodDomain = ( params: Params< @@ -8596,10 +12099,18 @@ export type GetPaymentMethodDomainsPaymentMethodDomain = ( | Response > -export type PostPaymentMethodDomainsPaymentMethodDomainResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodDomainsPaymentMethodDomainResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodDomainsPaymentMethodDomainResponder = + typeof postPaymentMethodDomainsPaymentMethodDomainResponder & + KoaRuntimeResponder + +const postPaymentMethodDomainsPaymentMethodDomainResponseValidator = + responseValidationFactory([["200", s_payment_method_domain]], s_error) export type PostPaymentMethodDomainsPaymentMethodDomain = ( params: Params< @@ -8616,10 +12127,18 @@ export type PostPaymentMethodDomainsPaymentMethodDomain = ( | Response > -export type PostPaymentMethodDomainsPaymentMethodDomainValidateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodDomainsPaymentMethodDomainValidateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodDomainsPaymentMethodDomainValidateResponder = + typeof postPaymentMethodDomainsPaymentMethodDomainValidateResponder & + KoaRuntimeResponder + +const postPaymentMethodDomainsPaymentMethodDomainValidateResponseValidator = + responseValidationFactory([["200", s_payment_method_domain]], s_error) export type PostPaymentMethodDomainsPaymentMethodDomainValidate = ( params: Params< @@ -8636,15 +12155,34 @@ export type PostPaymentMethodDomainsPaymentMethodDomainValidate = ( | Response > -export type GetPaymentMethodsResponder = { - with200(): KoaRuntimeResponse<{ +const getPaymentMethodsResponder = { + with200: r.with200<{ data: t_payment_method[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentMethodsResponder = typeof getPaymentMethodsResponder & + KoaRuntimeResponder + +const getPaymentMethodsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_payment_method)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/payment_methods")), + }), + ], + ], + s_error, +) export type GetPaymentMethods = ( params: Params< @@ -8669,10 +12207,19 @@ export type GetPaymentMethods = ( | Response > -export type PostPaymentMethodsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodsResponder = typeof postPaymentMethodsResponder & + KoaRuntimeResponder + +const postPaymentMethodsResponseValidator = responseValidationFactory( + [["200", s_payment_method]], + s_error, +) export type PostPaymentMethods = ( params: Params, @@ -8684,10 +12231,17 @@ export type PostPaymentMethods = ( | Response > -export type GetPaymentMethodsPaymentMethodResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPaymentMethodsPaymentMethodResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPaymentMethodsPaymentMethodResponder = + typeof getPaymentMethodsPaymentMethodResponder & KoaRuntimeResponder + +const getPaymentMethodsPaymentMethodResponseValidator = + responseValidationFactory([["200", s_payment_method]], s_error) export type GetPaymentMethodsPaymentMethod = ( params: Params< @@ -8704,10 +12258,17 @@ export type GetPaymentMethodsPaymentMethod = ( | Response > -export type PostPaymentMethodsPaymentMethodResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodsPaymentMethodResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodsPaymentMethodResponder = + typeof postPaymentMethodsPaymentMethodResponder & KoaRuntimeResponder + +const postPaymentMethodsPaymentMethodResponseValidator = + responseValidationFactory([["200", s_payment_method]], s_error) export type PostPaymentMethodsPaymentMethod = ( params: Params< @@ -8724,10 +12285,17 @@ export type PostPaymentMethodsPaymentMethod = ( | Response > -export type PostPaymentMethodsPaymentMethodAttachResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodsPaymentMethodAttachResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodsPaymentMethodAttachResponder = + typeof postPaymentMethodsPaymentMethodAttachResponder & KoaRuntimeResponder + +const postPaymentMethodsPaymentMethodAttachResponseValidator = + responseValidationFactory([["200", s_payment_method]], s_error) export type PostPaymentMethodsPaymentMethodAttach = ( params: Params< @@ -8744,10 +12312,17 @@ export type PostPaymentMethodsPaymentMethodAttach = ( | Response > -export type PostPaymentMethodsPaymentMethodDetachResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPaymentMethodsPaymentMethodDetachResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPaymentMethodsPaymentMethodDetachResponder = + typeof postPaymentMethodsPaymentMethodDetachResponder & KoaRuntimeResponder + +const postPaymentMethodsPaymentMethodDetachResponseValidator = + responseValidationFactory([["200", s_payment_method]], s_error) export type PostPaymentMethodsPaymentMethodDetach = ( params: Params< @@ -8764,15 +12339,33 @@ export type PostPaymentMethodsPaymentMethodDetach = ( | Response > -export type GetPayoutsResponder = { - with200(): KoaRuntimeResponse<{ +const getPayoutsResponder = { + with200: r.with200<{ data: t_payout[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPayoutsResponder = typeof getPayoutsResponder & KoaRuntimeResponder + +const getPayoutsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_payout)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/payouts")), + }), + ], + ], + s_error, +) export type GetPayouts = ( params: Params< @@ -8797,10 +12390,18 @@ export type GetPayouts = ( | Response > -export type PostPayoutsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPayoutsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPayoutsResponder = typeof postPayoutsResponder & KoaRuntimeResponder + +const postPayoutsResponseValidator = responseValidationFactory( + [["200", s_payout]], + s_error, +) export type PostPayouts = ( params: Params, @@ -8812,10 +12413,19 @@ export type PostPayouts = ( | Response > -export type GetPayoutsPayoutResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPayoutsPayoutResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPayoutsPayoutResponder = typeof getPayoutsPayoutResponder & + KoaRuntimeResponder + +const getPayoutsPayoutResponseValidator = responseValidationFactory( + [["200", s_payout]], + s_error, +) export type GetPayoutsPayout = ( params: Params< @@ -8832,10 +12442,19 @@ export type GetPayoutsPayout = ( | Response > -export type PostPayoutsPayoutResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPayoutsPayoutResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPayoutsPayoutResponder = typeof postPayoutsPayoutResponder & + KoaRuntimeResponder + +const postPayoutsPayoutResponseValidator = responseValidationFactory( + [["200", s_payout]], + s_error, +) export type PostPayoutsPayout = ( params: Params< @@ -8852,10 +12471,19 @@ export type PostPayoutsPayout = ( | Response > -export type PostPayoutsPayoutCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPayoutsPayoutCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPayoutsPayoutCancelResponder = + typeof postPayoutsPayoutCancelResponder & KoaRuntimeResponder + +const postPayoutsPayoutCancelResponseValidator = responseValidationFactory( + [["200", s_payout]], + s_error, +) export type PostPayoutsPayoutCancel = ( params: Params< @@ -8872,10 +12500,19 @@ export type PostPayoutsPayoutCancel = ( | Response > -export type PostPayoutsPayoutReverseResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPayoutsPayoutReverseResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPayoutsPayoutReverseResponder = + typeof postPayoutsPayoutReverseResponder & KoaRuntimeResponder + +const postPayoutsPayoutReverseResponseValidator = responseValidationFactory( + [["200", s_payout]], + s_error, +) export type PostPayoutsPayoutReverse = ( params: Params< @@ -8892,15 +12529,33 @@ export type PostPayoutsPayoutReverse = ( | Response > -export type GetPlansResponder = { - with200(): KoaRuntimeResponse<{ +const getPlansResponder = { + with200: r.with200<{ data: t_plan[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPlansResponder = typeof getPlansResponder & KoaRuntimeResponder + +const getPlansResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_plan)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/plans")), + }), + ], + ], + s_error, +) export type GetPlans = ( params: Params< @@ -8925,10 +12580,18 @@ export type GetPlans = ( | Response > -export type PostPlansResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPlansResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPlansResponder = typeof postPlansResponder & KoaRuntimeResponder + +const postPlansResponseValidator = responseValidationFactory( + [["200", s_plan]], + s_error, +) export type PostPlans = ( params: Params, @@ -8940,10 +12603,19 @@ export type PostPlans = ( | Response > -export type DeletePlansPlanResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deletePlansPlanResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeletePlansPlanResponder = typeof deletePlansPlanResponder & + KoaRuntimeResponder + +const deletePlansPlanResponseValidator = responseValidationFactory( + [["200", s_deleted_plan]], + s_error, +) export type DeletePlansPlan = ( params: Params< @@ -8960,10 +12632,18 @@ export type DeletePlansPlan = ( | Response > -export type GetPlansPlanResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPlansPlanResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPlansPlanResponder = typeof getPlansPlanResponder & KoaRuntimeResponder + +const getPlansPlanResponseValidator = responseValidationFactory( + [["200", s_plan]], + s_error, +) export type GetPlansPlan = ( params: Params< @@ -8980,10 +12660,19 @@ export type GetPlansPlan = ( | Response > -export type PostPlansPlanResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPlansPlanResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPlansPlanResponder = typeof postPlansPlanResponder & + KoaRuntimeResponder + +const postPlansPlanResponseValidator = responseValidationFactory( + [["200", s_plan]], + s_error, +) export type PostPlansPlan = ( params: Params< @@ -9000,15 +12689,33 @@ export type PostPlansPlan = ( | Response > -export type GetPricesResponder = { - with200(): KoaRuntimeResponse<{ +const getPricesResponder = { + with200: r.with200<{ data: t_price[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPricesResponder = typeof getPricesResponder & KoaRuntimeResponder + +const getPricesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_price)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/prices")), + }), + ], + ], + s_error, +) export type GetPrices = ( params: Params< @@ -9033,10 +12740,18 @@ export type GetPrices = ( | Response > -export type PostPricesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPricesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPricesResponder = typeof postPricesResponder & KoaRuntimeResponder + +const postPricesResponseValidator = responseValidationFactory( + [["200", s_price]], + s_error, +) export type PostPrices = ( params: Params, @@ -9048,17 +12763,38 @@ export type PostPrices = ( | Response > -export type GetPricesSearchResponder = { - with200(): KoaRuntimeResponse<{ +const getPricesSearchResponder = { + with200: r.with200<{ data: t_price[] has_more: boolean next_page?: string | null object: "search_result" total_count?: number url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPricesSearchResponder = typeof getPricesSearchResponder & + KoaRuntimeResponder + +const getPricesSearchResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_price)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetPricesSearch = ( params: Params< @@ -9085,10 +12821,19 @@ export type GetPricesSearch = ( | Response > -export type GetPricesPriceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPricesPriceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPricesPriceResponder = typeof getPricesPriceResponder & + KoaRuntimeResponder + +const getPricesPriceResponseValidator = responseValidationFactory( + [["200", s_price]], + s_error, +) export type GetPricesPrice = ( params: Params< @@ -9105,10 +12850,19 @@ export type GetPricesPrice = ( | Response > -export type PostPricesPriceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPricesPriceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPricesPriceResponder = typeof postPricesPriceResponder & + KoaRuntimeResponder + +const postPricesPriceResponseValidator = responseValidationFactory( + [["200", s_price]], + s_error, +) export type PostPricesPrice = ( params: Params< @@ -9125,15 +12879,33 @@ export type PostPricesPrice = ( | Response > -export type GetProductsResponder = { - with200(): KoaRuntimeResponse<{ +const getProductsResponder = { + with200: r.with200<{ data: t_product[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetProductsResponder = typeof getProductsResponder & KoaRuntimeResponder + +const getProductsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_product)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/products")), + }), + ], + ], + s_error, +) export type GetProducts = ( params: Params< @@ -9158,10 +12930,18 @@ export type GetProducts = ( | Response > -export type PostProductsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postProductsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostProductsResponder = typeof postProductsResponder & KoaRuntimeResponder + +const postProductsResponseValidator = responseValidationFactory( + [["200", s_product]], + s_error, +) export type PostProducts = ( params: Params, @@ -9173,17 +12953,38 @@ export type PostProducts = ( | Response > -export type GetProductsSearchResponder = { - with200(): KoaRuntimeResponse<{ +const getProductsSearchResponder = { + with200: r.with200<{ data: t_product[] has_more: boolean next_page?: string | null object: "search_result" total_count?: number url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetProductsSearchResponder = typeof getProductsSearchResponder & + KoaRuntimeResponder + +const getProductsSearchResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_product)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetProductsSearch = ( params: Params< @@ -9210,10 +13011,19 @@ export type GetProductsSearch = ( | Response > -export type DeleteProductsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteProductsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteProductsIdResponder = typeof deleteProductsIdResponder & + KoaRuntimeResponder + +const deleteProductsIdResponseValidator = responseValidationFactory( + [["200", s_deleted_product]], + s_error, +) export type DeleteProductsId = ( params: Params< @@ -9230,10 +13040,19 @@ export type DeleteProductsId = ( | Response > -export type GetProductsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getProductsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetProductsIdResponder = typeof getProductsIdResponder & + KoaRuntimeResponder + +const getProductsIdResponseValidator = responseValidationFactory( + [["200", s_product]], + s_error, +) export type GetProductsId = ( params: Params< @@ -9250,10 +13069,19 @@ export type GetProductsId = ( | Response > -export type PostProductsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postProductsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostProductsIdResponder = typeof postProductsIdResponder & + KoaRuntimeResponder + +const postProductsIdResponseValidator = responseValidationFactory( + [["200", s_product]], + s_error, +) export type PostProductsId = ( params: Params< @@ -9270,15 +13098,34 @@ export type PostProductsId = ( | Response > -export type GetProductsProductFeaturesResponder = { - with200(): KoaRuntimeResponse<{ +const getProductsProductFeaturesResponder = { + with200: r.with200<{ data: t_product_feature[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetProductsProductFeaturesResponder = + typeof getProductsProductFeaturesResponder & KoaRuntimeResponder + +const getProductsProductFeaturesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_product_feature), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetProductsProductFeatures = ( params: Params< @@ -9303,10 +13150,19 @@ export type GetProductsProductFeatures = ( | Response > -export type PostProductsProductFeaturesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postProductsProductFeaturesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostProductsProductFeaturesResponder = + typeof postProductsProductFeaturesResponder & KoaRuntimeResponder + +const postProductsProductFeaturesResponseValidator = responseValidationFactory( + [["200", s_product_feature]], + s_error, +) export type PostProductsProductFeatures = ( params: Params< @@ -9323,10 +13179,17 @@ export type PostProductsProductFeatures = ( | Response > -export type DeleteProductsProductFeaturesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteProductsProductFeaturesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteProductsProductFeaturesIdResponder = + typeof deleteProductsProductFeaturesIdResponder & KoaRuntimeResponder + +const deleteProductsProductFeaturesIdResponseValidator = + responseValidationFactory([["200", s_deleted_product_feature]], s_error) export type DeleteProductsProductFeaturesId = ( params: Params< @@ -9343,10 +13206,19 @@ export type DeleteProductsProductFeaturesId = ( | Response > -export type GetProductsProductFeaturesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getProductsProductFeaturesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetProductsProductFeaturesIdResponder = + typeof getProductsProductFeaturesIdResponder & KoaRuntimeResponder + +const getProductsProductFeaturesIdResponseValidator = responseValidationFactory( + [["200", s_product_feature]], + s_error, +) export type GetProductsProductFeaturesId = ( params: Params< @@ -9363,15 +13235,34 @@ export type GetProductsProductFeaturesId = ( | Response > -export type GetPromotionCodesResponder = { - with200(): KoaRuntimeResponse<{ +const getPromotionCodesResponder = { + with200: r.with200<{ data: t_promotion_code[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPromotionCodesResponder = typeof getPromotionCodesResponder & + KoaRuntimeResponder + +const getPromotionCodesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_promotion_code)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/promotion_codes")), + }), + ], + ], + s_error, +) export type GetPromotionCodes = ( params: Params< @@ -9396,10 +13287,19 @@ export type GetPromotionCodes = ( | Response > -export type PostPromotionCodesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPromotionCodesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPromotionCodesResponder = typeof postPromotionCodesResponder & + KoaRuntimeResponder + +const postPromotionCodesResponseValidator = responseValidationFactory( + [["200", s_promotion_code]], + s_error, +) export type PostPromotionCodes = ( params: Params, @@ -9411,10 +13311,17 @@ export type PostPromotionCodes = ( | Response > -export type GetPromotionCodesPromotionCodeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getPromotionCodesPromotionCodeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetPromotionCodesPromotionCodeResponder = + typeof getPromotionCodesPromotionCodeResponder & KoaRuntimeResponder + +const getPromotionCodesPromotionCodeResponseValidator = + responseValidationFactory([["200", s_promotion_code]], s_error) export type GetPromotionCodesPromotionCode = ( params: Params< @@ -9431,10 +13338,17 @@ export type GetPromotionCodesPromotionCode = ( | Response > -export type PostPromotionCodesPromotionCodeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postPromotionCodesPromotionCodeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostPromotionCodesPromotionCodeResponder = + typeof postPromotionCodesPromotionCodeResponder & KoaRuntimeResponder + +const postPromotionCodesPromotionCodeResponseValidator = + responseValidationFactory([["200", s_promotion_code]], s_error) export type PostPromotionCodesPromotionCode = ( params: Params< @@ -9451,15 +13365,33 @@ export type PostPromotionCodesPromotionCode = ( | Response > -export type GetQuotesResponder = { - with200(): KoaRuntimeResponse<{ +const getQuotesResponder = { + with200: r.with200<{ data: t_quote[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetQuotesResponder = typeof getQuotesResponder & KoaRuntimeResponder + +const getQuotesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_quote)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/quotes")), + }), + ], + ], + s_error, +) export type GetQuotes = ( params: Params< @@ -9484,10 +13416,18 @@ export type GetQuotes = ( | Response > -export type PostQuotesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postQuotesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostQuotesResponder = typeof postQuotesResponder & KoaRuntimeResponder + +const postQuotesResponseValidator = responseValidationFactory( + [["200", s_quote]], + s_error, +) export type PostQuotes = ( params: Params, @@ -9499,10 +13439,19 @@ export type PostQuotes = ( | Response > -export type GetQuotesQuoteResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getQuotesQuoteResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetQuotesQuoteResponder = typeof getQuotesQuoteResponder & + KoaRuntimeResponder + +const getQuotesQuoteResponseValidator = responseValidationFactory( + [["200", s_quote]], + s_error, +) export type GetQuotesQuote = ( params: Params< @@ -9519,10 +13468,19 @@ export type GetQuotesQuote = ( | Response > -export type PostQuotesQuoteResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postQuotesQuoteResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostQuotesQuoteResponder = typeof postQuotesQuoteResponder & + KoaRuntimeResponder + +const postQuotesQuoteResponseValidator = responseValidationFactory( + [["200", s_quote]], + s_error, +) export type PostQuotesQuote = ( params: Params< @@ -9539,10 +13497,19 @@ export type PostQuotesQuote = ( | Response > -export type PostQuotesQuoteAcceptResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postQuotesQuoteAcceptResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostQuotesQuoteAcceptResponder = typeof postQuotesQuoteAcceptResponder & + KoaRuntimeResponder + +const postQuotesQuoteAcceptResponseValidator = responseValidationFactory( + [["200", s_quote]], + s_error, +) export type PostQuotesQuoteAccept = ( params: Params< @@ -9559,10 +13526,19 @@ export type PostQuotesQuoteAccept = ( | Response > -export type PostQuotesQuoteCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postQuotesQuoteCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostQuotesQuoteCancelResponder = typeof postQuotesQuoteCancelResponder & + KoaRuntimeResponder + +const postQuotesQuoteCancelResponseValidator = responseValidationFactory( + [["200", s_quote]], + s_error, +) export type PostQuotesQuoteCancel = ( params: Params< @@ -9579,15 +13555,35 @@ export type PostQuotesQuoteCancel = ( | Response > -export type GetQuotesQuoteComputedUpfrontLineItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getQuotesQuoteComputedUpfrontLineItemsResponder = { + with200: r.with200<{ data: t_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetQuotesQuoteComputedUpfrontLineItemsResponder = + typeof getQuotesQuoteComputedUpfrontLineItemsResponder & KoaRuntimeResponder + +const getQuotesQuoteComputedUpfrontLineItemsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetQuotesQuoteComputedUpfrontLineItems = ( params: Params< @@ -9612,10 +13608,19 @@ export type GetQuotesQuoteComputedUpfrontLineItems = ( | Response > -export type PostQuotesQuoteFinalizeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postQuotesQuoteFinalizeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostQuotesQuoteFinalizeResponder = + typeof postQuotesQuoteFinalizeResponder & KoaRuntimeResponder + +const postQuotesQuoteFinalizeResponseValidator = responseValidationFactory( + [["200", s_quote]], + s_error, +) export type PostQuotesQuoteFinalize = ( params: Params< @@ -9632,15 +13637,34 @@ export type PostQuotesQuoteFinalize = ( | Response > -export type GetQuotesQuoteLineItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getQuotesQuoteLineItemsResponder = { + with200: r.with200<{ data: t_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetQuotesQuoteLineItemsResponder = + typeof getQuotesQuoteLineItemsResponder & KoaRuntimeResponder + +const getQuotesQuoteLineItemsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetQuotesQuoteLineItems = ( params: Params< @@ -9665,10 +13689,19 @@ export type GetQuotesQuoteLineItems = ( | Response > -export type GetQuotesQuotePdfResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getQuotesQuotePdfResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetQuotesQuotePdfResponder = typeof getQuotesQuotePdfResponder & + KoaRuntimeResponder + +const getQuotesQuotePdfResponseValidator = responseValidationFactory( + [["200", z.string()]], + s_error, +) export type GetQuotesQuotePdf = ( params: Params< @@ -9685,15 +13718,37 @@ export type GetQuotesQuotePdf = ( | Response > -export type GetRadarEarlyFraudWarningsResponder = { - with200(): KoaRuntimeResponse<{ +const getRadarEarlyFraudWarningsResponder = { + with200: r.with200<{ data: t_radar_early_fraud_warning[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetRadarEarlyFraudWarningsResponder = + typeof getRadarEarlyFraudWarningsResponder & KoaRuntimeResponder + +const getRadarEarlyFraudWarningsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_radar_early_fraud_warning)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/radar/early_fraud_warnings")), + }), + ], + ], + s_error, +) export type GetRadarEarlyFraudWarnings = ( params: Params< @@ -9718,10 +13773,18 @@ export type GetRadarEarlyFraudWarnings = ( | Response > -export type GetRadarEarlyFraudWarningsEarlyFraudWarningResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getRadarEarlyFraudWarningsEarlyFraudWarningResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetRadarEarlyFraudWarningsEarlyFraudWarningResponder = + typeof getRadarEarlyFraudWarningsEarlyFraudWarningResponder & + KoaRuntimeResponder + +const getRadarEarlyFraudWarningsEarlyFraudWarningResponseValidator = + responseValidationFactory([["200", s_radar_early_fraud_warning]], s_error) export type GetRadarEarlyFraudWarningsEarlyFraudWarning = ( params: Params< @@ -9738,15 +13801,37 @@ export type GetRadarEarlyFraudWarningsEarlyFraudWarning = ( | Response > -export type GetRadarValueListItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getRadarValueListItemsResponder = { + with200: r.with200<{ data: t_radar_value_list_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetRadarValueListItemsResponder = typeof getRadarValueListItemsResponder & + KoaRuntimeResponder + +const getRadarValueListItemsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_radar_value_list_item), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/radar/value_list_items")), + }), + ], + ], + s_error, +) export type GetRadarValueListItems = ( params: Params< @@ -9771,10 +13856,19 @@ export type GetRadarValueListItems = ( | Response > -export type PostRadarValueListItemsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postRadarValueListItemsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostRadarValueListItemsResponder = + typeof postRadarValueListItemsResponder & KoaRuntimeResponder + +const postRadarValueListItemsResponseValidator = responseValidationFactory( + [["200", s_radar_value_list_item]], + s_error, +) export type PostRadarValueListItems = ( params: Params, @@ -9786,10 +13880,17 @@ export type PostRadarValueListItems = ( | Response > -export type DeleteRadarValueListItemsItemResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteRadarValueListItemsItemResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteRadarValueListItemsItemResponder = + typeof deleteRadarValueListItemsItemResponder & KoaRuntimeResponder + +const deleteRadarValueListItemsItemResponseValidator = + responseValidationFactory([["200", s_deleted_radar_value_list_item]], s_error) export type DeleteRadarValueListItemsItem = ( params: Params< @@ -9806,10 +13907,19 @@ export type DeleteRadarValueListItemsItem = ( | Response > -export type GetRadarValueListItemsItemResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getRadarValueListItemsItemResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetRadarValueListItemsItemResponder = + typeof getRadarValueListItemsItemResponder & KoaRuntimeResponder + +const getRadarValueListItemsItemResponseValidator = responseValidationFactory( + [["200", s_radar_value_list_item]], + s_error, +) export type GetRadarValueListItemsItem = ( params: Params< @@ -9826,15 +13936,34 @@ export type GetRadarValueListItemsItem = ( | Response > -export type GetRadarValueListsResponder = { - with200(): KoaRuntimeResponse<{ +const getRadarValueListsResponder = { + with200: r.with200<{ data: t_radar_value_list[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetRadarValueListsResponder = typeof getRadarValueListsResponder & + KoaRuntimeResponder + +const getRadarValueListsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_radar_value_list), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/radar/value_lists")), + }), + ], + ], + s_error, +) export type GetRadarValueLists = ( params: Params< @@ -9859,10 +13988,19 @@ export type GetRadarValueLists = ( | Response > -export type PostRadarValueListsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postRadarValueListsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostRadarValueListsResponder = typeof postRadarValueListsResponder & + KoaRuntimeResponder + +const postRadarValueListsResponseValidator = responseValidationFactory( + [["200", s_radar_value_list]], + s_error, +) export type PostRadarValueLists = ( params: Params, @@ -9874,10 +14012,17 @@ export type PostRadarValueLists = ( | Response > -export type DeleteRadarValueListsValueListResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteRadarValueListsValueListResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteRadarValueListsValueListResponder = + typeof deleteRadarValueListsValueListResponder & KoaRuntimeResponder + +const deleteRadarValueListsValueListResponseValidator = + responseValidationFactory([["200", s_deleted_radar_value_list]], s_error) export type DeleteRadarValueListsValueList = ( params: Params< @@ -9894,10 +14039,19 @@ export type DeleteRadarValueListsValueList = ( | Response > -export type GetRadarValueListsValueListResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getRadarValueListsValueListResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetRadarValueListsValueListResponder = + typeof getRadarValueListsValueListResponder & KoaRuntimeResponder + +const getRadarValueListsValueListResponseValidator = responseValidationFactory( + [["200", s_radar_value_list]], + s_error, +) export type GetRadarValueListsValueList = ( params: Params< @@ -9914,10 +14068,19 @@ export type GetRadarValueListsValueList = ( | Response > -export type PostRadarValueListsValueListResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postRadarValueListsValueListResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostRadarValueListsValueListResponder = + typeof postRadarValueListsValueListResponder & KoaRuntimeResponder + +const postRadarValueListsValueListResponseValidator = responseValidationFactory( + [["200", s_radar_value_list]], + s_error, +) export type PostRadarValueListsValueList = ( params: Params< @@ -9934,15 +14097,33 @@ export type PostRadarValueListsValueList = ( | Response > -export type GetRefundsResponder = { - with200(): KoaRuntimeResponse<{ +const getRefundsResponder = { + with200: r.with200<{ data: t_refund[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetRefundsResponder = typeof getRefundsResponder & KoaRuntimeResponder + +const getRefundsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_refund)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/refunds")), + }), + ], + ], + s_error, +) export type GetRefunds = ( params: Params< @@ -9967,10 +14148,18 @@ export type GetRefunds = ( | Response > -export type PostRefundsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postRefundsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostRefundsResponder = typeof postRefundsResponder & KoaRuntimeResponder + +const postRefundsResponseValidator = responseValidationFactory( + [["200", s_refund]], + s_error, +) export type PostRefunds = ( params: Params, @@ -9982,10 +14171,19 @@ export type PostRefunds = ( | Response > -export type GetRefundsRefundResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getRefundsRefundResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetRefundsRefundResponder = typeof getRefundsRefundResponder & + KoaRuntimeResponder + +const getRefundsRefundResponseValidator = responseValidationFactory( + [["200", s_refund]], + s_error, +) export type GetRefundsRefund = ( params: Params< @@ -10002,10 +14200,19 @@ export type GetRefundsRefund = ( | Response > -export type PostRefundsRefundResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postRefundsRefundResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostRefundsRefundResponder = typeof postRefundsRefundResponder & + KoaRuntimeResponder + +const postRefundsRefundResponseValidator = responseValidationFactory( + [["200", s_refund]], + s_error, +) export type PostRefundsRefund = ( params: Params< @@ -10022,10 +14229,19 @@ export type PostRefundsRefund = ( | Response > -export type PostRefundsRefundCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postRefundsRefundCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostRefundsRefundCancelResponder = + typeof postRefundsRefundCancelResponder & KoaRuntimeResponder + +const postRefundsRefundCancelResponseValidator = responseValidationFactory( + [["200", s_refund]], + s_error, +) export type PostRefundsRefundCancel = ( params: Params< @@ -10042,15 +14258,37 @@ export type PostRefundsRefundCancel = ( | Response > -export type GetReportingReportRunsResponder = { - with200(): KoaRuntimeResponse<{ +const getReportingReportRunsResponder = { + with200: r.with200<{ data: t_reporting_report_run[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetReportingReportRunsResponder = typeof getReportingReportRunsResponder & + KoaRuntimeResponder + +const getReportingReportRunsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_reporting_report_run)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/reporting/report_runs")), + }), + ], + ], + s_error, +) export type GetReportingReportRuns = ( params: Params< @@ -10075,10 +14313,19 @@ export type GetReportingReportRuns = ( | Response > -export type PostReportingReportRunsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postReportingReportRunsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostReportingReportRunsResponder = + typeof postReportingReportRunsResponder & KoaRuntimeResponder + +const postReportingReportRunsResponseValidator = responseValidationFactory( + [["200", s_reporting_report_run]], + s_error, +) export type PostReportingReportRuns = ( params: Params, @@ -10090,10 +14337,17 @@ export type PostReportingReportRuns = ( | Response > -export type GetReportingReportRunsReportRunResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getReportingReportRunsReportRunResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetReportingReportRunsReportRunResponder = + typeof getReportingReportRunsReportRunResponder & KoaRuntimeResponder + +const getReportingReportRunsReportRunResponseValidator = + responseValidationFactory([["200", s_reporting_report_run]], s_error) export type GetReportingReportRunsReportRun = ( params: Params< @@ -10110,15 +14364,34 @@ export type GetReportingReportRunsReportRun = ( | Response > -export type GetReportingReportTypesResponder = { - with200(): KoaRuntimeResponse<{ +const getReportingReportTypesResponder = { + with200: r.with200<{ data: t_reporting_report_type[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetReportingReportTypesResponder = + typeof getReportingReportTypesResponder & KoaRuntimeResponder + +const getReportingReportTypesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_reporting_report_type), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetReportingReportTypes = ( params: Params< @@ -10143,10 +14416,17 @@ export type GetReportingReportTypes = ( | Response > -export type GetReportingReportTypesReportTypeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getReportingReportTypesReportTypeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetReportingReportTypesReportTypeResponder = + typeof getReportingReportTypesReportTypeResponder & KoaRuntimeResponder + +const getReportingReportTypesReportTypeResponseValidator = + responseValidationFactory([["200", s_reporting_report_type]], s_error) export type GetReportingReportTypesReportType = ( params: Params< @@ -10163,15 +14443,33 @@ export type GetReportingReportTypesReportType = ( | Response > -export type GetReviewsResponder = { - with200(): KoaRuntimeResponse<{ +const getReviewsResponder = { + with200: r.with200<{ data: t_review[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetReviewsResponder = typeof getReviewsResponder & KoaRuntimeResponder + +const getReviewsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_review)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetReviews = ( params: Params< @@ -10196,10 +14494,19 @@ export type GetReviews = ( | Response > -export type GetReviewsReviewResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getReviewsReviewResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetReviewsReviewResponder = typeof getReviewsReviewResponder & + KoaRuntimeResponder + +const getReviewsReviewResponseValidator = responseValidationFactory( + [["200", s_review]], + s_error, +) export type GetReviewsReview = ( params: Params< @@ -10216,10 +14523,19 @@ export type GetReviewsReview = ( | Response > -export type PostReviewsReviewApproveResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postReviewsReviewApproveResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostReviewsReviewApproveResponder = + typeof postReviewsReviewApproveResponder & KoaRuntimeResponder + +const postReviewsReviewApproveResponseValidator = responseValidationFactory( + [["200", s_review]], + s_error, +) export type PostReviewsReviewApprove = ( params: Params< @@ -10236,15 +14552,34 @@ export type PostReviewsReviewApprove = ( | Response > -export type GetSetupAttemptsResponder = { - with200(): KoaRuntimeResponse<{ +const getSetupAttemptsResponder = { + with200: r.with200<{ data: t_setup_attempt[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSetupAttemptsResponder = typeof getSetupAttemptsResponder & + KoaRuntimeResponder + +const getSetupAttemptsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_setup_attempt)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/setup_attempts")), + }), + ], + ], + s_error, +) export type GetSetupAttempts = ( params: Params< @@ -10269,15 +14604,34 @@ export type GetSetupAttempts = ( | Response > -export type GetSetupIntentsResponder = { - with200(): KoaRuntimeResponse<{ +const getSetupIntentsResponder = { + with200: r.with200<{ data: t_setup_intent[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSetupIntentsResponder = typeof getSetupIntentsResponder & + KoaRuntimeResponder + +const getSetupIntentsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_setup_intent)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/setup_intents")), + }), + ], + ], + s_error, +) export type GetSetupIntents = ( params: Params< @@ -10302,10 +14656,19 @@ export type GetSetupIntents = ( | Response > -export type PostSetupIntentsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSetupIntentsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSetupIntentsResponder = typeof postSetupIntentsResponder & + KoaRuntimeResponder + +const postSetupIntentsResponseValidator = responseValidationFactory( + [["200", s_setup_intent]], + s_error, +) export type PostSetupIntents = ( params: Params, @@ -10317,10 +14680,19 @@ export type PostSetupIntents = ( | Response > -export type GetSetupIntentsIntentResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getSetupIntentsIntentResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSetupIntentsIntentResponder = typeof getSetupIntentsIntentResponder & + KoaRuntimeResponder + +const getSetupIntentsIntentResponseValidator = responseValidationFactory( + [["200", s_setup_intent]], + s_error, +) export type GetSetupIntentsIntent = ( params: Params< @@ -10337,10 +14709,19 @@ export type GetSetupIntentsIntent = ( | Response > -export type PostSetupIntentsIntentResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSetupIntentsIntentResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSetupIntentsIntentResponder = typeof postSetupIntentsIntentResponder & + KoaRuntimeResponder + +const postSetupIntentsIntentResponseValidator = responseValidationFactory( + [["200", s_setup_intent]], + s_error, +) export type PostSetupIntentsIntent = ( params: Params< @@ -10357,10 +14738,19 @@ export type PostSetupIntentsIntent = ( | Response > -export type PostSetupIntentsIntentCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSetupIntentsIntentCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSetupIntentsIntentCancelResponder = + typeof postSetupIntentsIntentCancelResponder & KoaRuntimeResponder + +const postSetupIntentsIntentCancelResponseValidator = responseValidationFactory( + [["200", s_setup_intent]], + s_error, +) export type PostSetupIntentsIntentCancel = ( params: Params< @@ -10377,10 +14767,17 @@ export type PostSetupIntentsIntentCancel = ( | Response > -export type PostSetupIntentsIntentConfirmResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSetupIntentsIntentConfirmResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSetupIntentsIntentConfirmResponder = + typeof postSetupIntentsIntentConfirmResponder & KoaRuntimeResponder + +const postSetupIntentsIntentConfirmResponseValidator = + responseValidationFactory([["200", s_setup_intent]], s_error) export type PostSetupIntentsIntentConfirm = ( params: Params< @@ -10397,10 +14794,18 @@ export type PostSetupIntentsIntentConfirm = ( | Response > -export type PostSetupIntentsIntentVerifyMicrodepositsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSetupIntentsIntentVerifyMicrodepositsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSetupIntentsIntentVerifyMicrodepositsResponder = + typeof postSetupIntentsIntentVerifyMicrodepositsResponder & + KoaRuntimeResponder + +const postSetupIntentsIntentVerifyMicrodepositsResponseValidator = + responseValidationFactory([["200", s_setup_intent]], s_error) export type PostSetupIntentsIntentVerifyMicrodeposits = ( params: Params< @@ -10417,15 +14822,34 @@ export type PostSetupIntentsIntentVerifyMicrodeposits = ( | Response > -export type GetShippingRatesResponder = { - with200(): KoaRuntimeResponse<{ +const getShippingRatesResponder = { + with200: r.with200<{ data: t_shipping_rate[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetShippingRatesResponder = typeof getShippingRatesResponder & + KoaRuntimeResponder + +const getShippingRatesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_shipping_rate), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/shipping_rates")), + }), + ], + ], + s_error, +) export type GetShippingRates = ( params: Params< @@ -10450,10 +14874,19 @@ export type GetShippingRates = ( | Response > -export type PostShippingRatesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postShippingRatesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostShippingRatesResponder = typeof postShippingRatesResponder & + KoaRuntimeResponder + +const postShippingRatesResponseValidator = responseValidationFactory( + [["200", s_shipping_rate]], + s_error, +) export type PostShippingRates = ( params: Params, @@ -10465,10 +14898,17 @@ export type PostShippingRates = ( | Response > -export type GetShippingRatesShippingRateTokenResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getShippingRatesShippingRateTokenResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetShippingRatesShippingRateTokenResponder = + typeof getShippingRatesShippingRateTokenResponder & KoaRuntimeResponder + +const getShippingRatesShippingRateTokenResponseValidator = + responseValidationFactory([["200", s_shipping_rate]], s_error) export type GetShippingRatesShippingRateToken = ( params: Params< @@ -10485,10 +14925,17 @@ export type GetShippingRatesShippingRateToken = ( | Response > -export type PostShippingRatesShippingRateTokenResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postShippingRatesShippingRateTokenResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostShippingRatesShippingRateTokenResponder = + typeof postShippingRatesShippingRateTokenResponder & KoaRuntimeResponder + +const postShippingRatesShippingRateTokenResponseValidator = + responseValidationFactory([["200", s_shipping_rate]], s_error) export type PostShippingRatesShippingRateToken = ( params: Params< @@ -10505,10 +14952,19 @@ export type PostShippingRatesShippingRateToken = ( | Response > -export type PostSigmaSavedQueriesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSigmaSavedQueriesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSigmaSavedQueriesIdResponder = + typeof postSigmaSavedQueriesIdResponder & KoaRuntimeResponder + +const postSigmaSavedQueriesIdResponseValidator = responseValidationFactory( + [["200", s_sigma_sigma_api_query]], + s_error, +) export type PostSigmaSavedQueriesId = ( params: Params< @@ -10525,15 +14981,37 @@ export type PostSigmaSavedQueriesId = ( | Response > -export type GetSigmaScheduledQueryRunsResponder = { - with200(): KoaRuntimeResponse<{ +const getSigmaScheduledQueryRunsResponder = { + with200: r.with200<{ data: t_scheduled_query_run[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSigmaScheduledQueryRunsResponder = + typeof getSigmaScheduledQueryRunsResponder & KoaRuntimeResponder + +const getSigmaScheduledQueryRunsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_scheduled_query_run)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/sigma/scheduled_query_runs")), + }), + ], + ], + s_error, +) export type GetSigmaScheduledQueryRuns = ( params: Params< @@ -10558,10 +15036,18 @@ export type GetSigmaScheduledQueryRuns = ( | Response > -export type GetSigmaScheduledQueryRunsScheduledQueryRunResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getSigmaScheduledQueryRunsScheduledQueryRunResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSigmaScheduledQueryRunsScheduledQueryRunResponder = + typeof getSigmaScheduledQueryRunsScheduledQueryRunResponder & + KoaRuntimeResponder + +const getSigmaScheduledQueryRunsScheduledQueryRunResponseValidator = + responseValidationFactory([["200", s_scheduled_query_run]], s_error) export type GetSigmaScheduledQueryRunsScheduledQueryRun = ( params: Params< @@ -10578,10 +15064,18 @@ export type GetSigmaScheduledQueryRunsScheduledQueryRun = ( | Response > -export type PostSourcesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSourcesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSourcesResponder = typeof postSourcesResponder & KoaRuntimeResponder + +const postSourcesResponseValidator = responseValidationFactory( + [["200", s_source]], + s_error, +) export type PostSources = ( params: Params, @@ -10593,10 +15087,19 @@ export type PostSources = ( | Response > -export type GetSourcesSourceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getSourcesSourceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSourcesSourceResponder = typeof getSourcesSourceResponder & + KoaRuntimeResponder + +const getSourcesSourceResponseValidator = responseValidationFactory( + [["200", s_source]], + s_error, +) export type GetSourcesSource = ( params: Params< @@ -10613,10 +15116,19 @@ export type GetSourcesSource = ( | Response > -export type PostSourcesSourceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSourcesSourceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSourcesSourceResponder = typeof postSourcesSourceResponder & + KoaRuntimeResponder + +const postSourcesSourceResponseValidator = responseValidationFactory( + [["200", s_source]], + s_error, +) export type PostSourcesSource = ( params: Params< @@ -10633,10 +15145,18 @@ export type PostSourcesSource = ( | Response > -export type GetSourcesSourceMandateNotificationsMandateNotificationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getSourcesSourceMandateNotificationsMandateNotificationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSourcesSourceMandateNotificationsMandateNotificationResponder = + typeof getSourcesSourceMandateNotificationsMandateNotificationResponder & + KoaRuntimeResponder + +const getSourcesSourceMandateNotificationsMandateNotificationResponseValidator = + responseValidationFactory([["200", s_source_mandate_notification]], s_error) export type GetSourcesSourceMandateNotificationsMandateNotification = ( params: Params< @@ -10654,15 +15174,35 @@ export type GetSourcesSourceMandateNotificationsMandateNotification = ( | Response > -export type GetSourcesSourceSourceTransactionsResponder = { - with200(): KoaRuntimeResponse<{ +const getSourcesSourceSourceTransactionsResponder = { + with200: r.with200<{ data: t_source_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSourcesSourceSourceTransactionsResponder = + typeof getSourcesSourceSourceTransactionsResponder & KoaRuntimeResponder + +const getSourcesSourceSourceTransactionsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_source_transaction), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, + ) export type GetSourcesSourceSourceTransactions = ( params: Params< @@ -10687,10 +15227,18 @@ export type GetSourcesSourceSourceTransactions = ( | Response > -export type GetSourcesSourceSourceTransactionsSourceTransactionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getSourcesSourceSourceTransactionsSourceTransactionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSourcesSourceSourceTransactionsSourceTransactionResponder = + typeof getSourcesSourceSourceTransactionsSourceTransactionResponder & + KoaRuntimeResponder + +const getSourcesSourceSourceTransactionsSourceTransactionResponseValidator = + responseValidationFactory([["200", s_source_transaction]], s_error) export type GetSourcesSourceSourceTransactionsSourceTransaction = ( params: Params< @@ -10707,10 +15255,19 @@ export type GetSourcesSourceSourceTransactionsSourceTransaction = ( | Response > -export type PostSourcesSourceVerifyResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSourcesSourceVerifyResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSourcesSourceVerifyResponder = + typeof postSourcesSourceVerifyResponder & KoaRuntimeResponder + +const postSourcesSourceVerifyResponseValidator = responseValidationFactory( + [["200", s_source]], + s_error, +) export type PostSourcesSourceVerify = ( params: Params< @@ -10727,15 +15284,34 @@ export type PostSourcesSourceVerify = ( | Response > -export type GetSubscriptionItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getSubscriptionItemsResponder = { + with200: r.with200<{ data: t_subscription_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSubscriptionItemsResponder = typeof getSubscriptionItemsResponder & + KoaRuntimeResponder + +const getSubscriptionItemsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_subscription_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/subscription_items")), + }), + ], + ], + s_error, +) export type GetSubscriptionItems = ( params: Params< @@ -10760,10 +15336,19 @@ export type GetSubscriptionItems = ( | Response > -export type PostSubscriptionItemsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionItemsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionItemsResponder = typeof postSubscriptionItemsResponder & + KoaRuntimeResponder + +const postSubscriptionItemsResponseValidator = responseValidationFactory( + [["200", s_subscription_item]], + s_error, +) export type PostSubscriptionItems = ( params: Params, @@ -10775,10 +15360,19 @@ export type PostSubscriptionItems = ( | Response > -export type DeleteSubscriptionItemsItemResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteSubscriptionItemsItemResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteSubscriptionItemsItemResponder = + typeof deleteSubscriptionItemsItemResponder & KoaRuntimeResponder + +const deleteSubscriptionItemsItemResponseValidator = responseValidationFactory( + [["200", s_deleted_subscription_item]], + s_error, +) export type DeleteSubscriptionItemsItem = ( params: Params< @@ -10795,10 +15389,19 @@ export type DeleteSubscriptionItemsItem = ( | Response > -export type GetSubscriptionItemsItemResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getSubscriptionItemsItemResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSubscriptionItemsItemResponder = + typeof getSubscriptionItemsItemResponder & KoaRuntimeResponder + +const getSubscriptionItemsItemResponseValidator = responseValidationFactory( + [["200", s_subscription_item]], + s_error, +) export type GetSubscriptionItemsItem = ( params: Params< @@ -10815,10 +15418,19 @@ export type GetSubscriptionItemsItem = ( | Response > -export type PostSubscriptionItemsItemResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionItemsItemResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionItemsItemResponder = + typeof postSubscriptionItemsItemResponder & KoaRuntimeResponder + +const postSubscriptionItemsItemResponseValidator = responseValidationFactory( + [["200", s_subscription_item]], + s_error, +) export type PostSubscriptionItemsItem = ( params: Params< @@ -10835,15 +15447,37 @@ export type PostSubscriptionItemsItem = ( | Response > -export type GetSubscriptionSchedulesResponder = { - with200(): KoaRuntimeResponse<{ +const getSubscriptionSchedulesResponder = { + with200: r.with200<{ data: t_subscription_schedule[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSubscriptionSchedulesResponder = + typeof getSubscriptionSchedulesResponder & KoaRuntimeResponder + +const getSubscriptionSchedulesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_subscription_schedule)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/subscription_schedules")), + }), + ], + ], + s_error, +) export type GetSubscriptionSchedules = ( params: Params< @@ -10868,10 +15502,19 @@ export type GetSubscriptionSchedules = ( | Response > -export type PostSubscriptionSchedulesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionSchedulesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionSchedulesResponder = + typeof postSubscriptionSchedulesResponder & KoaRuntimeResponder + +const postSubscriptionSchedulesResponseValidator = responseValidationFactory( + [["200", s_subscription_schedule]], + s_error, +) export type PostSubscriptionSchedules = ( params: Params< @@ -10888,10 +15531,17 @@ export type PostSubscriptionSchedules = ( | Response > -export type GetSubscriptionSchedulesScheduleResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getSubscriptionSchedulesScheduleResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSubscriptionSchedulesScheduleResponder = + typeof getSubscriptionSchedulesScheduleResponder & KoaRuntimeResponder + +const getSubscriptionSchedulesScheduleResponseValidator = + responseValidationFactory([["200", s_subscription_schedule]], s_error) export type GetSubscriptionSchedulesSchedule = ( params: Params< @@ -10908,10 +15558,17 @@ export type GetSubscriptionSchedulesSchedule = ( | Response > -export type PostSubscriptionSchedulesScheduleResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionSchedulesScheduleResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionSchedulesScheduleResponder = + typeof postSubscriptionSchedulesScheduleResponder & KoaRuntimeResponder + +const postSubscriptionSchedulesScheduleResponseValidator = + responseValidationFactory([["200", s_subscription_schedule]], s_error) export type PostSubscriptionSchedulesSchedule = ( params: Params< @@ -10928,10 +15585,17 @@ export type PostSubscriptionSchedulesSchedule = ( | Response > -export type PostSubscriptionSchedulesScheduleCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionSchedulesScheduleCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionSchedulesScheduleCancelResponder = + typeof postSubscriptionSchedulesScheduleCancelResponder & KoaRuntimeResponder + +const postSubscriptionSchedulesScheduleCancelResponseValidator = + responseValidationFactory([["200", s_subscription_schedule]], s_error) export type PostSubscriptionSchedulesScheduleCancel = ( params: Params< @@ -10948,10 +15612,17 @@ export type PostSubscriptionSchedulesScheduleCancel = ( | Response > -export type PostSubscriptionSchedulesScheduleReleaseResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionSchedulesScheduleReleaseResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionSchedulesScheduleReleaseResponder = + typeof postSubscriptionSchedulesScheduleReleaseResponder & KoaRuntimeResponder + +const postSubscriptionSchedulesScheduleReleaseResponseValidator = + responseValidationFactory([["200", s_subscription_schedule]], s_error) export type PostSubscriptionSchedulesScheduleRelease = ( params: Params< @@ -10968,15 +15639,34 @@ export type PostSubscriptionSchedulesScheduleRelease = ( | Response > -export type GetSubscriptionsResponder = { - with200(): KoaRuntimeResponse<{ +const getSubscriptionsResponder = { + with200: r.with200<{ data: t_subscription[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSubscriptionsResponder = typeof getSubscriptionsResponder & + KoaRuntimeResponder + +const getSubscriptionsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_subscription)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/subscriptions")), + }), + ], + ], + s_error, +) export type GetSubscriptions = ( params: Params< @@ -11001,10 +15691,19 @@ export type GetSubscriptions = ( | Response > -export type PostSubscriptionsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionsResponder = typeof postSubscriptionsResponder & + KoaRuntimeResponder + +const postSubscriptionsResponseValidator = responseValidationFactory( + [["200", s_subscription]], + s_error, +) export type PostSubscriptions = ( params: Params, @@ -11016,17 +15715,38 @@ export type PostSubscriptions = ( | Response > -export type GetSubscriptionsSearchResponder = { - with200(): KoaRuntimeResponse<{ +const getSubscriptionsSearchResponder = { + with200: r.with200<{ data: t_subscription[] has_more: boolean next_page?: string | null object: "search_result" total_count?: number url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSubscriptionsSearchResponder = typeof getSubscriptionsSearchResponder & + KoaRuntimeResponder + +const getSubscriptionsSearchResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_subscription)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetSubscriptionsSearch = ( params: Params< @@ -11053,10 +15773,17 @@ export type GetSubscriptionsSearch = ( | Response > -export type DeleteSubscriptionsSubscriptionExposedIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteSubscriptionsSubscriptionExposedIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteSubscriptionsSubscriptionExposedIdResponder = + typeof deleteSubscriptionsSubscriptionExposedIdResponder & KoaRuntimeResponder + +const deleteSubscriptionsSubscriptionExposedIdResponseValidator = + responseValidationFactory([["200", s_subscription]], s_error) export type DeleteSubscriptionsSubscriptionExposedId = ( params: Params< @@ -11073,10 +15800,17 @@ export type DeleteSubscriptionsSubscriptionExposedId = ( | Response > -export type GetSubscriptionsSubscriptionExposedIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getSubscriptionsSubscriptionExposedIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetSubscriptionsSubscriptionExposedIdResponder = + typeof getSubscriptionsSubscriptionExposedIdResponder & KoaRuntimeResponder + +const getSubscriptionsSubscriptionExposedIdResponseValidator = + responseValidationFactory([["200", s_subscription]], s_error) export type GetSubscriptionsSubscriptionExposedId = ( params: Params< @@ -11093,10 +15827,17 @@ export type GetSubscriptionsSubscriptionExposedId = ( | Response > -export type PostSubscriptionsSubscriptionExposedIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionsSubscriptionExposedIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionsSubscriptionExposedIdResponder = + typeof postSubscriptionsSubscriptionExposedIdResponder & KoaRuntimeResponder + +const postSubscriptionsSubscriptionExposedIdResponseValidator = + responseValidationFactory([["200", s_subscription]], s_error) export type PostSubscriptionsSubscriptionExposedId = ( params: Params< @@ -11113,10 +15854,18 @@ export type PostSubscriptionsSubscriptionExposedId = ( | Response > -export type DeleteSubscriptionsSubscriptionExposedIdDiscountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteSubscriptionsSubscriptionExposedIdDiscountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteSubscriptionsSubscriptionExposedIdDiscountResponder = + typeof deleteSubscriptionsSubscriptionExposedIdDiscountResponder & + KoaRuntimeResponder + +const deleteSubscriptionsSubscriptionExposedIdDiscountResponseValidator = + responseValidationFactory([["200", s_deleted_discount]], s_error) export type DeleteSubscriptionsSubscriptionExposedIdDiscount = ( params: Params< @@ -11133,10 +15882,17 @@ export type DeleteSubscriptionsSubscriptionExposedIdDiscount = ( | Response > -export type PostSubscriptionsSubscriptionResumeResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postSubscriptionsSubscriptionResumeResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostSubscriptionsSubscriptionResumeResponder = + typeof postSubscriptionsSubscriptionResumeResponder & KoaRuntimeResponder + +const postSubscriptionsSubscriptionResumeResponseValidator = + responseValidationFactory([["200", s_subscription]], s_error) export type PostSubscriptionsSubscriptionResume = ( params: Params< @@ -11153,10 +15909,19 @@ export type PostSubscriptionsSubscriptionResume = ( | Response > -export type PostTaxCalculationsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxCalculationsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxCalculationsResponder = typeof postTaxCalculationsResponder & + KoaRuntimeResponder + +const postTaxCalculationsResponseValidator = responseValidationFactory( + [["200", s_tax_calculation]], + s_error, +) export type PostTaxCalculations = ( params: Params, @@ -11168,10 +15933,17 @@ export type PostTaxCalculations = ( | Response > -export type GetTaxCalculationsCalculationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTaxCalculationsCalculationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxCalculationsCalculationResponder = + typeof getTaxCalculationsCalculationResponder & KoaRuntimeResponder + +const getTaxCalculationsCalculationResponseValidator = + responseValidationFactory([["200", s_tax_calculation]], s_error) export type GetTaxCalculationsCalculation = ( params: Params< @@ -11188,15 +15960,38 @@ export type GetTaxCalculationsCalculation = ( | Response > -export type GetTaxCalculationsCalculationLineItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getTaxCalculationsCalculationLineItemsResponder = { + with200: r.with200<{ data: t_tax_calculation_line_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxCalculationsCalculationLineItemsResponder = + typeof getTaxCalculationsCalculationLineItemsResponder & KoaRuntimeResponder + +const getTaxCalculationsCalculationLineItemsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_tax_calculation_line_item), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/tax/calculations/[^/]+/line_items")), + }), + ], + ], + s_error, + ) export type GetTaxCalculationsCalculationLineItems = ( params: Params< @@ -11221,15 +16016,34 @@ export type GetTaxCalculationsCalculationLineItems = ( | Response > -export type GetTaxRegistrationsResponder = { - with200(): KoaRuntimeResponse<{ +const getTaxRegistrationsResponder = { + with200: r.with200<{ data: t_tax_registration[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxRegistrationsResponder = typeof getTaxRegistrationsResponder & + KoaRuntimeResponder + +const getTaxRegistrationsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_tax_registration), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/tax/registrations")), + }), + ], + ], + s_error, +) export type GetTaxRegistrations = ( params: Params< @@ -11254,10 +16068,19 @@ export type GetTaxRegistrations = ( | Response > -export type PostTaxRegistrationsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxRegistrationsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxRegistrationsResponder = typeof postTaxRegistrationsResponder & + KoaRuntimeResponder + +const postTaxRegistrationsResponseValidator = responseValidationFactory( + [["200", s_tax_registration]], + s_error, +) export type PostTaxRegistrations = ( params: Params, @@ -11269,10 +16092,19 @@ export type PostTaxRegistrations = ( | Response > -export type GetTaxRegistrationsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTaxRegistrationsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxRegistrationsIdResponder = typeof getTaxRegistrationsIdResponder & + KoaRuntimeResponder + +const getTaxRegistrationsIdResponseValidator = responseValidationFactory( + [["200", s_tax_registration]], + s_error, +) export type GetTaxRegistrationsId = ( params: Params< @@ -11289,10 +16121,19 @@ export type GetTaxRegistrationsId = ( | Response > -export type PostTaxRegistrationsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxRegistrationsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxRegistrationsIdResponder = typeof postTaxRegistrationsIdResponder & + KoaRuntimeResponder + +const postTaxRegistrationsIdResponseValidator = responseValidationFactory( + [["200", s_tax_registration]], + s_error, +) export type PostTaxRegistrationsId = ( params: Params< @@ -11309,10 +16150,19 @@ export type PostTaxRegistrationsId = ( | Response > -export type GetTaxSettingsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTaxSettingsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxSettingsResponder = typeof getTaxSettingsResponder & + KoaRuntimeResponder + +const getTaxSettingsResponseValidator = responseValidationFactory( + [["200", s_tax_settings]], + s_error, +) export type GetTaxSettings = ( params: Params< @@ -11329,10 +16179,19 @@ export type GetTaxSettings = ( | Response > -export type PostTaxSettingsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxSettingsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxSettingsResponder = typeof postTaxSettingsResponder & + KoaRuntimeResponder + +const postTaxSettingsResponseValidator = responseValidationFactory( + [["200", s_tax_settings]], + s_error, +) export type PostTaxSettings = ( params: Params, @@ -11344,10 +16203,17 @@ export type PostTaxSettings = ( | Response > -export type PostTaxTransactionsCreateFromCalculationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxTransactionsCreateFromCalculationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxTransactionsCreateFromCalculationResponder = + typeof postTaxTransactionsCreateFromCalculationResponder & KoaRuntimeResponder + +const postTaxTransactionsCreateFromCalculationResponseValidator = + responseValidationFactory([["200", s_tax_transaction]], s_error) export type PostTaxTransactionsCreateFromCalculation = ( params: Params< @@ -11364,10 +16230,17 @@ export type PostTaxTransactionsCreateFromCalculation = ( | Response > -export type PostTaxTransactionsCreateReversalResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxTransactionsCreateReversalResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxTransactionsCreateReversalResponder = + typeof postTaxTransactionsCreateReversalResponder & KoaRuntimeResponder + +const postTaxTransactionsCreateReversalResponseValidator = + responseValidationFactory([["200", s_tax_transaction]], s_error) export type PostTaxTransactionsCreateReversal = ( params: Params< @@ -11384,10 +16257,17 @@ export type PostTaxTransactionsCreateReversal = ( | Response > -export type GetTaxTransactionsTransactionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTaxTransactionsTransactionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxTransactionsTransactionResponder = + typeof getTaxTransactionsTransactionResponder & KoaRuntimeResponder + +const getTaxTransactionsTransactionResponseValidator = + responseValidationFactory([["200", s_tax_transaction]], s_error) export type GetTaxTransactionsTransaction = ( params: Params< @@ -11404,15 +16284,38 @@ export type GetTaxTransactionsTransaction = ( | Response > -export type GetTaxTransactionsTransactionLineItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getTaxTransactionsTransactionLineItemsResponder = { + with200: r.with200<{ data: t_tax_transaction_line_item[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxTransactionsTransactionLineItemsResponder = + typeof getTaxTransactionsTransactionLineItemsResponder & KoaRuntimeResponder + +const getTaxTransactionsTransactionLineItemsResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_tax_transaction_line_item), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/tax/transactions/[^/]+/line_items")), + }), + ], + ], + s_error, + ) export type GetTaxTransactionsTransactionLineItems = ( params: Params< @@ -11437,15 +16340,33 @@ export type GetTaxTransactionsTransactionLineItems = ( | Response > -export type GetTaxCodesResponder = { - with200(): KoaRuntimeResponse<{ +const getTaxCodesResponder = { + with200: r.with200<{ data: t_tax_code[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxCodesResponder = typeof getTaxCodesResponder & KoaRuntimeResponder + +const getTaxCodesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_tax_code), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTaxCodes = ( params: Params< @@ -11470,10 +16391,19 @@ export type GetTaxCodes = ( | Response > -export type GetTaxCodesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTaxCodesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxCodesIdResponder = typeof getTaxCodesIdResponder & + KoaRuntimeResponder + +const getTaxCodesIdResponseValidator = responseValidationFactory( + [["200", s_tax_code]], + s_error, +) export type GetTaxCodesId = ( params: Params< @@ -11490,15 +16420,33 @@ export type GetTaxCodesId = ( | Response > -export type GetTaxIdsResponder = { - with200(): KoaRuntimeResponse<{ +const getTaxIdsResponder = { + with200: r.with200<{ data: t_tax_id[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxIdsResponder = typeof getTaxIdsResponder & KoaRuntimeResponder + +const getTaxIdsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_tax_id)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTaxIds = ( params: Params< @@ -11523,10 +16471,18 @@ export type GetTaxIds = ( | Response > -export type PostTaxIdsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxIdsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxIdsResponder = typeof postTaxIdsResponder & KoaRuntimeResponder + +const postTaxIdsResponseValidator = responseValidationFactory( + [["200", s_tax_id]], + s_error, +) export type PostTaxIds = ( params: Params, @@ -11538,10 +16494,19 @@ export type PostTaxIds = ( | Response > -export type DeleteTaxIdsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteTaxIdsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteTaxIdsIdResponder = typeof deleteTaxIdsIdResponder & + KoaRuntimeResponder + +const deleteTaxIdsIdResponseValidator = responseValidationFactory( + [["200", s_deleted_tax_id]], + s_error, +) export type DeleteTaxIdsId = ( params: Params< @@ -11558,10 +16523,18 @@ export type DeleteTaxIdsId = ( | Response > -export type GetTaxIdsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTaxIdsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxIdsIdResponder = typeof getTaxIdsIdResponder & KoaRuntimeResponder + +const getTaxIdsIdResponseValidator = responseValidationFactory( + [["200", s_tax_id]], + s_error, +) export type GetTaxIdsId = ( params: Params< @@ -11578,15 +16551,33 @@ export type GetTaxIdsId = ( | Response > -export type GetTaxRatesResponder = { - with200(): KoaRuntimeResponse<{ +const getTaxRatesResponder = { + with200: r.with200<{ data: t_tax_rate[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxRatesResponder = typeof getTaxRatesResponder & KoaRuntimeResponder + +const getTaxRatesResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_tax_rate), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/tax_rates")), + }), + ], + ], + s_error, +) export type GetTaxRates = ( params: Params< @@ -11611,10 +16602,18 @@ export type GetTaxRates = ( | Response > -export type PostTaxRatesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxRatesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxRatesResponder = typeof postTaxRatesResponder & KoaRuntimeResponder + +const postTaxRatesResponseValidator = responseValidationFactory( + [["200", s_tax_rate]], + s_error, +) export type PostTaxRates = ( params: Params, @@ -11626,10 +16625,19 @@ export type PostTaxRates = ( | Response > -export type GetTaxRatesTaxRateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTaxRatesTaxRateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTaxRatesTaxRateResponder = typeof getTaxRatesTaxRateResponder & + KoaRuntimeResponder + +const getTaxRatesTaxRateResponseValidator = responseValidationFactory( + [["200", s_tax_rate]], + s_error, +) export type GetTaxRatesTaxRate = ( params: Params< @@ -11646,10 +16654,19 @@ export type GetTaxRatesTaxRate = ( | Response > -export type PostTaxRatesTaxRateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTaxRatesTaxRateResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTaxRatesTaxRateResponder = typeof postTaxRatesTaxRateResponder & + KoaRuntimeResponder + +const postTaxRatesTaxRateResponseValidator = responseValidationFactory( + [["200", s_tax_rate]], + s_error, +) export type PostTaxRatesTaxRate = ( params: Params< @@ -11666,15 +16683,37 @@ export type PostTaxRatesTaxRate = ( | Response > -export type GetTerminalConfigurationsResponder = { - with200(): KoaRuntimeResponse<{ +const getTerminalConfigurationsResponder = { + with200: r.with200<{ data: t_terminal_configuration[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTerminalConfigurationsResponder = + typeof getTerminalConfigurationsResponder & KoaRuntimeResponder + +const getTerminalConfigurationsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_terminal_configuration)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/terminal/configurations")), + }), + ], + ], + s_error, +) export type GetTerminalConfigurations = ( params: Params< @@ -11699,10 +16738,19 @@ export type GetTerminalConfigurations = ( | Response > -export type PostTerminalConfigurationsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalConfigurationsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalConfigurationsResponder = + typeof postTerminalConfigurationsResponder & KoaRuntimeResponder + +const postTerminalConfigurationsResponseValidator = responseValidationFactory( + [["200", s_terminal_configuration]], + s_error, +) export type PostTerminalConfigurations = ( params: Params< @@ -11719,10 +16767,21 @@ export type PostTerminalConfigurations = ( | Response > -export type DeleteTerminalConfigurationsConfigurationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteTerminalConfigurationsConfigurationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteTerminalConfigurationsConfigurationResponder = + typeof deleteTerminalConfigurationsConfigurationResponder & + KoaRuntimeResponder + +const deleteTerminalConfigurationsConfigurationResponseValidator = + responseValidationFactory( + [["200", s_deleted_terminal_configuration]], + s_error, + ) export type DeleteTerminalConfigurationsConfiguration = ( params: Params< @@ -11739,12 +16798,30 @@ export type DeleteTerminalConfigurationsConfiguration = ( | Response > -export type GetTerminalConfigurationsConfigurationResponder = { - with200(): KoaRuntimeResponse< +const getTerminalConfigurationsConfigurationResponder = { + with200: r.with200< t_terminal_configuration | t_deleted_terminal_configuration - > - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + >, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTerminalConfigurationsConfigurationResponder = + typeof getTerminalConfigurationsConfigurationResponder & KoaRuntimeResponder + +const getTerminalConfigurationsConfigurationResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.union([ + z.lazy(() => s_terminal_configuration), + s_deleted_terminal_configuration, + ]), + ], + ], + s_error, + ) export type GetTerminalConfigurationsConfiguration = ( params: Params< @@ -11761,12 +16838,30 @@ export type GetTerminalConfigurationsConfiguration = ( | Response > -export type PostTerminalConfigurationsConfigurationResponder = { - with200(): KoaRuntimeResponse< +const postTerminalConfigurationsConfigurationResponder = { + with200: r.with200< t_terminal_configuration | t_deleted_terminal_configuration - > - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + >, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalConfigurationsConfigurationResponder = + typeof postTerminalConfigurationsConfigurationResponder & KoaRuntimeResponder + +const postTerminalConfigurationsConfigurationResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.union([ + z.lazy(() => s_terminal_configuration), + s_deleted_terminal_configuration, + ]), + ], + ], + s_error, + ) export type PostTerminalConfigurationsConfiguration = ( params: Params< @@ -11783,10 +16878,19 @@ export type PostTerminalConfigurationsConfiguration = ( | Response > -export type PostTerminalConnectionTokensResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalConnectionTokensResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalConnectionTokensResponder = + typeof postTerminalConnectionTokensResponder & KoaRuntimeResponder + +const postTerminalConnectionTokensResponseValidator = responseValidationFactory( + [["200", s_terminal_connection_token]], + s_error, +) export type PostTerminalConnectionTokens = ( params: Params< @@ -11803,15 +16907,34 @@ export type PostTerminalConnectionTokens = ( | Response > -export type GetTerminalLocationsResponder = { - with200(): KoaRuntimeResponse<{ +const getTerminalLocationsResponder = { + with200: r.with200<{ data: t_terminal_location[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTerminalLocationsResponder = typeof getTerminalLocationsResponder & + KoaRuntimeResponder + +const getTerminalLocationsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_terminal_location), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/terminal/locations")), + }), + ], + ], + s_error, +) export type GetTerminalLocations = ( params: Params< @@ -11836,10 +16959,19 @@ export type GetTerminalLocations = ( | Response > -export type PostTerminalLocationsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalLocationsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalLocationsResponder = typeof postTerminalLocationsResponder & + KoaRuntimeResponder + +const postTerminalLocationsResponseValidator = responseValidationFactory( + [["200", s_terminal_location]], + s_error, +) export type PostTerminalLocations = ( params: Params, @@ -11851,10 +16983,17 @@ export type PostTerminalLocations = ( | Response > -export type DeleteTerminalLocationsLocationResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteTerminalLocationsLocationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteTerminalLocationsLocationResponder = + typeof deleteTerminalLocationsLocationResponder & KoaRuntimeResponder + +const deleteTerminalLocationsLocationResponseValidator = + responseValidationFactory([["200", s_deleted_terminal_location]], s_error) export type DeleteTerminalLocationsLocation = ( params: Params< @@ -11871,12 +17010,19 @@ export type DeleteTerminalLocationsLocation = ( | Response > -export type GetTerminalLocationsLocationResponder = { - with200(): KoaRuntimeResponse< - t_terminal_location | t_deleted_terminal_location - > - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTerminalLocationsLocationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTerminalLocationsLocationResponder = + typeof getTerminalLocationsLocationResponder & KoaRuntimeResponder + +const getTerminalLocationsLocationResponseValidator = responseValidationFactory( + [["200", z.union([s_terminal_location, s_deleted_terminal_location])]], + s_error, +) export type GetTerminalLocationsLocation = ( params: Params< @@ -11893,12 +17039,20 @@ export type GetTerminalLocationsLocation = ( | Response > -export type PostTerminalLocationsLocationResponder = { - with200(): KoaRuntimeResponse< - t_terminal_location | t_deleted_terminal_location - > - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalLocationsLocationResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalLocationsLocationResponder = + typeof postTerminalLocationsLocationResponder & KoaRuntimeResponder + +const postTerminalLocationsLocationResponseValidator = + responseValidationFactory( + [["200", z.union([s_terminal_location, s_deleted_terminal_location])]], + s_error, + ) export type PostTerminalLocationsLocation = ( params: Params< @@ -11915,15 +17069,34 @@ export type PostTerminalLocationsLocation = ( | Response > -export type GetTerminalReadersResponder = { - with200(): KoaRuntimeResponse<{ +const getTerminalReadersResponder = { + with200: r.with200<{ data: t_terminal_reader[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTerminalReadersResponder = typeof getTerminalReadersResponder & + KoaRuntimeResponder + +const getTerminalReadersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_terminal_reader)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTerminalReaders = ( params: Params< @@ -11948,10 +17121,19 @@ export type GetTerminalReaders = ( | Response > -export type PostTerminalReadersResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalReadersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalReadersResponder = typeof postTerminalReadersResponder & + KoaRuntimeResponder + +const postTerminalReadersResponseValidator = responseValidationFactory( + [["200", s_terminal_reader]], + s_error, +) export type PostTerminalReaders = ( params: Params, @@ -11963,10 +17145,19 @@ export type PostTerminalReaders = ( | Response > -export type DeleteTerminalReadersReaderResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteTerminalReadersReaderResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteTerminalReadersReaderResponder = + typeof deleteTerminalReadersReaderResponder & KoaRuntimeResponder + +const deleteTerminalReadersReaderResponseValidator = responseValidationFactory( + [["200", s_deleted_terminal_reader]], + s_error, +) export type DeleteTerminalReadersReader = ( params: Params< @@ -11983,10 +17174,24 @@ export type DeleteTerminalReadersReader = ( | Response > -export type GetTerminalReadersReaderResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTerminalReadersReaderResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTerminalReadersReaderResponder = + typeof getTerminalReadersReaderResponder & KoaRuntimeResponder + +const getTerminalReadersReaderResponseValidator = responseValidationFactory( + [ + [ + "200", + z.union([z.lazy(() => s_terminal_reader), s_deleted_terminal_reader]), + ], + ], + s_error, +) export type GetTerminalReadersReader = ( params: Params< @@ -12003,10 +17208,24 @@ export type GetTerminalReadersReader = ( | Response > -export type PostTerminalReadersReaderResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalReadersReaderResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalReadersReaderResponder = + typeof postTerminalReadersReaderResponder & KoaRuntimeResponder + +const postTerminalReadersReaderResponseValidator = responseValidationFactory( + [ + [ + "200", + z.union([z.lazy(() => s_terminal_reader), s_deleted_terminal_reader]), + ], + ], + s_error, +) export type PostTerminalReadersReader = ( params: Params< @@ -12023,10 +17242,17 @@ export type PostTerminalReadersReader = ( | Response > -export type PostTerminalReadersReaderCancelActionResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalReadersReaderCancelActionResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalReadersReaderCancelActionResponder = + typeof postTerminalReadersReaderCancelActionResponder & KoaRuntimeResponder + +const postTerminalReadersReaderCancelActionResponseValidator = + responseValidationFactory([["200", s_terminal_reader]], s_error) export type PostTerminalReadersReaderCancelAction = ( params: Params< @@ -12043,10 +17269,18 @@ export type PostTerminalReadersReaderCancelAction = ( | Response > -export type PostTerminalReadersReaderProcessPaymentIntentResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalReadersReaderProcessPaymentIntentResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalReadersReaderProcessPaymentIntentResponder = + typeof postTerminalReadersReaderProcessPaymentIntentResponder & + KoaRuntimeResponder + +const postTerminalReadersReaderProcessPaymentIntentResponseValidator = + responseValidationFactory([["200", s_terminal_reader]], s_error) export type PostTerminalReadersReaderProcessPaymentIntent = ( params: Params< @@ -12063,10 +17297,18 @@ export type PostTerminalReadersReaderProcessPaymentIntent = ( | Response > -export type PostTerminalReadersReaderProcessSetupIntentResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalReadersReaderProcessSetupIntentResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalReadersReaderProcessSetupIntentResponder = + typeof postTerminalReadersReaderProcessSetupIntentResponder & + KoaRuntimeResponder + +const postTerminalReadersReaderProcessSetupIntentResponseValidator = + responseValidationFactory([["200", s_terminal_reader]], s_error) export type PostTerminalReadersReaderProcessSetupIntent = ( params: Params< @@ -12083,10 +17325,17 @@ export type PostTerminalReadersReaderProcessSetupIntent = ( | Response > -export type PostTerminalReadersReaderRefundPaymentResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalReadersReaderRefundPaymentResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalReadersReaderRefundPaymentResponder = + typeof postTerminalReadersReaderRefundPaymentResponder & KoaRuntimeResponder + +const postTerminalReadersReaderRefundPaymentResponseValidator = + responseValidationFactory([["200", s_terminal_reader]], s_error) export type PostTerminalReadersReaderRefundPayment = ( params: Params< @@ -12103,10 +17352,18 @@ export type PostTerminalReadersReaderRefundPayment = ( | Response > -export type PostTerminalReadersReaderSetReaderDisplayResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTerminalReadersReaderSetReaderDisplayResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTerminalReadersReaderSetReaderDisplayResponder = + typeof postTerminalReadersReaderSetReaderDisplayResponder & + KoaRuntimeResponder + +const postTerminalReadersReaderSetReaderDisplayResponseValidator = + responseValidationFactory([["200", s_terminal_reader]], s_error) export type PostTerminalReadersReaderSetReaderDisplay = ( params: Params< @@ -12123,10 +17380,17 @@ export type PostTerminalReadersReaderSetReaderDisplay = ( | Response > -export type PostTestHelpersConfirmationTokensResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersConfirmationTokensResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersConfirmationTokensResponder = + typeof postTestHelpersConfirmationTokensResponder & KoaRuntimeResponder + +const postTestHelpersConfirmationTokensResponseValidator = + responseValidationFactory([["200", s_confirmation_token]], s_error) export type PostTestHelpersConfirmationTokens = ( params: Params< @@ -12143,10 +17407,21 @@ export type PostTestHelpersConfirmationTokens = ( | Response > -export type PostTestHelpersCustomersCustomerFundCashBalanceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersCustomersCustomerFundCashBalanceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersCustomersCustomerFundCashBalanceResponder = + typeof postTestHelpersCustomersCustomerFundCashBalanceResponder & + KoaRuntimeResponder + +const postTestHelpersCustomersCustomerFundCashBalanceResponseValidator = + responseValidationFactory( + [["200", s_customer_cash_balance_transaction]], + s_error, + ) export type PostTestHelpersCustomersCustomerFundCashBalance = ( params: Params< @@ -12163,10 +17438,17 @@ export type PostTestHelpersCustomersCustomerFundCashBalance = ( | Response > -export type PostTestHelpersIssuingAuthorizationsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingAuthorizationsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingAuthorizationsResponder = + typeof postTestHelpersIssuingAuthorizationsResponder & KoaRuntimeResponder + +const postTestHelpersIssuingAuthorizationsResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostTestHelpersIssuingAuthorizations = ( params: Params< @@ -12183,11 +17465,18 @@ export type PostTestHelpersIssuingAuthorizations = ( | Response > -export type PostTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder = - { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder +const postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder = + typeof postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostTestHelpersIssuingAuthorizationsAuthorizationCapture = ( params: Params< @@ -12205,10 +17494,18 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationCapture = ( | Response > -export type PostTestHelpersIssuingAuthorizationsAuthorizationExpireResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingAuthorizationsAuthorizationExpireResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingAuthorizationsAuthorizationExpireResponder = + typeof postTestHelpersIssuingAuthorizationsAuthorizationExpireResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingAuthorizationsAuthorizationExpireResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostTestHelpersIssuingAuthorizationsAuthorizationExpire = ( params: Params< @@ -12226,11 +17523,19 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationExpire = ( | Response > -export type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder = +const postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder = + typeof postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount = ( params: Params< @@ -12247,11 +17552,19 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount = ( | Response > -export type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder = +const postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder = + typeof postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond = ( @@ -12269,11 +17582,18 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesResp | Response > -export type PostTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder = - { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder +const postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder = + typeof postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostTestHelpersIssuingAuthorizationsAuthorizationIncrement = ( params: Params< @@ -12290,11 +17610,18 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationIncrement = ( | Response > -export type PostTestHelpersIssuingAuthorizationsAuthorizationReverseResponder = - { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder +const postTestHelpersIssuingAuthorizationsAuthorizationReverseResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingAuthorizationsAuthorizationReverseResponder = + typeof postTestHelpersIssuingAuthorizationsAuthorizationReverseResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingAuthorizationsAuthorizationReverseResponseValidator = + responseValidationFactory([["200", s_issuing_authorization]], s_error) export type PostTestHelpersIssuingAuthorizationsAuthorizationReverse = ( params: Params< @@ -12312,10 +17639,18 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationReverse = ( | Response > -export type PostTestHelpersIssuingCardsCardShippingDeliverResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingCardsCardShippingDeliverResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingCardsCardShippingDeliverResponder = + typeof postTestHelpersIssuingCardsCardShippingDeliverResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingCardsCardShippingDeliverResponseValidator = + responseValidationFactory([["200", s_issuing_card]], s_error) export type PostTestHelpersIssuingCardsCardShippingDeliver = ( params: Params< @@ -12332,10 +17667,18 @@ export type PostTestHelpersIssuingCardsCardShippingDeliver = ( | Response > -export type PostTestHelpersIssuingCardsCardShippingFailResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingCardsCardShippingFailResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingCardsCardShippingFailResponder = + typeof postTestHelpersIssuingCardsCardShippingFailResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingCardsCardShippingFailResponseValidator = + responseValidationFactory([["200", s_issuing_card]], s_error) export type PostTestHelpersIssuingCardsCardShippingFail = ( params: Params< @@ -12352,10 +17695,18 @@ export type PostTestHelpersIssuingCardsCardShippingFail = ( | Response > -export type PostTestHelpersIssuingCardsCardShippingReturnResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingCardsCardShippingReturnResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingCardsCardShippingReturnResponder = + typeof postTestHelpersIssuingCardsCardShippingReturnResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingCardsCardShippingReturnResponseValidator = + responseValidationFactory([["200", s_issuing_card]], s_error) export type PostTestHelpersIssuingCardsCardShippingReturn = ( params: Params< @@ -12372,10 +17723,18 @@ export type PostTestHelpersIssuingCardsCardShippingReturn = ( | Response > -export type PostTestHelpersIssuingCardsCardShippingShipResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingCardsCardShippingShipResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingCardsCardShippingShipResponder = + typeof postTestHelpersIssuingCardsCardShippingShipResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingCardsCardShippingShipResponseValidator = + responseValidationFactory([["200", s_issuing_card]], s_error) export type PostTestHelpersIssuingCardsCardShippingShip = ( params: Params< @@ -12392,10 +17751,18 @@ export type PostTestHelpersIssuingCardsCardShippingShip = ( | Response > -export type PostTestHelpersIssuingCardsCardShippingSubmitResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingCardsCardShippingSubmitResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingCardsCardShippingSubmitResponder = + typeof postTestHelpersIssuingCardsCardShippingSubmitResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingCardsCardShippingSubmitResponseValidator = + responseValidationFactory([["200", s_issuing_card]], s_error) export type PostTestHelpersIssuingCardsCardShippingSubmit = ( params: Params< @@ -12412,11 +17779,22 @@ export type PostTestHelpersIssuingCardsCardShippingSubmit = ( | Response > -export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder = +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder = + typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponseValidator = + responseValidationFactory( + [["200", s_issuing_personalization_design]], + s_error, + ) export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate = ( @@ -12435,11 +17813,22 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignAct | Response > -export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder = +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder = + typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponseValidator = + responseValidationFactory( + [["200", s_issuing_personalization_design]], + s_error, + ) export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate = ( @@ -12458,11 +17847,22 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDea | Response > -export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder = +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder = + typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponseValidator = + responseValidationFactory( + [["200", s_issuing_personalization_design]], + s_error, + ) export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject = ( @@ -12480,10 +17880,17 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRej | Response > -export type PostTestHelpersIssuingSettlementsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingSettlementsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingSettlementsResponder = + typeof postTestHelpersIssuingSettlementsResponder & KoaRuntimeResponder + +const postTestHelpersIssuingSettlementsResponseValidator = + responseValidationFactory([["200", s_issuing_settlement]], s_error) export type PostTestHelpersIssuingSettlements = ( params: Params< @@ -12500,10 +17907,18 @@ export type PostTestHelpersIssuingSettlements = ( | Response > -export type PostTestHelpersIssuingSettlementsSettlementCompleteResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingSettlementsSettlementCompleteResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingSettlementsSettlementCompleteResponder = + typeof postTestHelpersIssuingSettlementsSettlementCompleteResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingSettlementsSettlementCompleteResponseValidator = + responseValidationFactory([["200", s_issuing_settlement]], s_error) export type PostTestHelpersIssuingSettlementsSettlementComplete = ( params: Params< @@ -12520,10 +17935,18 @@ export type PostTestHelpersIssuingSettlementsSettlementComplete = ( | Response > -export type PostTestHelpersIssuingTransactionsCreateForceCaptureResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingTransactionsCreateForceCaptureResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingTransactionsCreateForceCaptureResponder = + typeof postTestHelpersIssuingTransactionsCreateForceCaptureResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingTransactionsCreateForceCaptureResponseValidator = + responseValidationFactory([["200", s_issuing_transaction]], s_error) export type PostTestHelpersIssuingTransactionsCreateForceCapture = ( params: Params< @@ -12540,10 +17963,18 @@ export type PostTestHelpersIssuingTransactionsCreateForceCapture = ( | Response > -export type PostTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder = + typeof postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponseValidator = + responseValidationFactory([["200", s_issuing_transaction]], s_error) export type PostTestHelpersIssuingTransactionsCreateUnlinkedRefund = ( params: Params< @@ -12560,10 +17991,18 @@ export type PostTestHelpersIssuingTransactionsCreateUnlinkedRefund = ( | Response > -export type PostTestHelpersIssuingTransactionsTransactionRefundResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersIssuingTransactionsTransactionRefundResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersIssuingTransactionsTransactionRefundResponder = + typeof postTestHelpersIssuingTransactionsTransactionRefundResponder & + KoaRuntimeResponder + +const postTestHelpersIssuingTransactionsTransactionRefundResponseValidator = + responseValidationFactory([["200", s_issuing_transaction]], s_error) export type PostTestHelpersIssuingTransactionsTransactionRefund = ( params: Params< @@ -12580,10 +18019,17 @@ export type PostTestHelpersIssuingTransactionsTransactionRefund = ( | Response > -export type PostTestHelpersRefundsRefundExpireResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersRefundsRefundExpireResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersRefundsRefundExpireResponder = + typeof postTestHelpersRefundsRefundExpireResponder & KoaRuntimeResponder + +const postTestHelpersRefundsRefundExpireResponseValidator = + responseValidationFactory([["200", s_refund]], s_error) export type PostTestHelpersRefundsRefundExpire = ( params: Params< @@ -12600,11 +18046,18 @@ export type PostTestHelpersRefundsRefundExpire = ( | Response > -export type PostTestHelpersTerminalReadersReaderPresentPaymentMethodResponder = - { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder +const postTestHelpersTerminalReadersReaderPresentPaymentMethodResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTerminalReadersReaderPresentPaymentMethodResponder = + typeof postTestHelpersTerminalReadersReaderPresentPaymentMethodResponder & + KoaRuntimeResponder + +const postTestHelpersTerminalReadersReaderPresentPaymentMethodResponseValidator = + responseValidationFactory([["200", s_terminal_reader]], s_error) export type PostTestHelpersTerminalReadersReaderPresentPaymentMethod = ( params: Params< @@ -12622,15 +18075,37 @@ export type PostTestHelpersTerminalReadersReaderPresentPaymentMethod = ( | Response > -export type GetTestHelpersTestClocksResponder = { - with200(): KoaRuntimeResponse<{ +const getTestHelpersTestClocksResponder = { + with200: r.with200<{ data: t_test_helpers_test_clock[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTestHelpersTestClocksResponder = + typeof getTestHelpersTestClocksResponder & KoaRuntimeResponder + +const getTestHelpersTestClocksResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_test_helpers_test_clock), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/test_helpers/test_clocks")), + }), + ], + ], + s_error, +) export type GetTestHelpersTestClocks = ( params: Params< @@ -12655,10 +18130,19 @@ export type GetTestHelpersTestClocks = ( | Response > -export type PostTestHelpersTestClocksResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTestClocksResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTestClocksResponder = + typeof postTestHelpersTestClocksResponder & KoaRuntimeResponder + +const postTestHelpersTestClocksResponseValidator = responseValidationFactory( + [["200", s_test_helpers_test_clock]], + s_error, +) export type PostTestHelpersTestClocks = ( params: Params, @@ -12670,10 +18154,20 @@ export type PostTestHelpersTestClocks = ( | Response > -export type DeleteTestHelpersTestClocksTestClockResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteTestHelpersTestClocksTestClockResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteTestHelpersTestClocksTestClockResponder = + typeof deleteTestHelpersTestClocksTestClockResponder & KoaRuntimeResponder + +const deleteTestHelpersTestClocksTestClockResponseValidator = + responseValidationFactory( + [["200", s_deleted_test_helpers_test_clock]], + s_error, + ) export type DeleteTestHelpersTestClocksTestClock = ( params: Params< @@ -12690,10 +18184,17 @@ export type DeleteTestHelpersTestClocksTestClock = ( | Response > -export type GetTestHelpersTestClocksTestClockResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTestHelpersTestClocksTestClockResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTestHelpersTestClocksTestClockResponder = + typeof getTestHelpersTestClocksTestClockResponder & KoaRuntimeResponder + +const getTestHelpersTestClocksTestClockResponseValidator = + responseValidationFactory([["200", s_test_helpers_test_clock]], s_error) export type GetTestHelpersTestClocksTestClock = ( params: Params< @@ -12710,10 +18211,18 @@ export type GetTestHelpersTestClocksTestClock = ( | Response > -export type PostTestHelpersTestClocksTestClockAdvanceResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTestClocksTestClockAdvanceResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTestClocksTestClockAdvanceResponder = + typeof postTestHelpersTestClocksTestClockAdvanceResponder & + KoaRuntimeResponder + +const postTestHelpersTestClocksTestClockAdvanceResponseValidator = + responseValidationFactory([["200", s_test_helpers_test_clock]], s_error) export type PostTestHelpersTestClocksTestClockAdvance = ( params: Params< @@ -12730,10 +18239,18 @@ export type PostTestHelpersTestClocksTestClockAdvance = ( | Response > -export type PostTestHelpersTreasuryInboundTransfersIdFailResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryInboundTransfersIdFailResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryInboundTransfersIdFailResponder = + typeof postTestHelpersTreasuryInboundTransfersIdFailResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryInboundTransfersIdFailResponseValidator = + responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) export type PostTestHelpersTreasuryInboundTransfersIdFail = ( params: Params< @@ -12750,10 +18267,18 @@ export type PostTestHelpersTreasuryInboundTransfersIdFail = ( | Response > -export type PostTestHelpersTreasuryInboundTransfersIdReturnResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryInboundTransfersIdReturnResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryInboundTransfersIdReturnResponder = + typeof postTestHelpersTreasuryInboundTransfersIdReturnResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryInboundTransfersIdReturnResponseValidator = + responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) export type PostTestHelpersTreasuryInboundTransfersIdReturn = ( params: Params< @@ -12770,10 +18295,18 @@ export type PostTestHelpersTreasuryInboundTransfersIdReturn = ( | Response > -export type PostTestHelpersTreasuryInboundTransfersIdSucceedResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryInboundTransfersIdSucceedResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryInboundTransfersIdSucceedResponder = + typeof postTestHelpersTreasuryInboundTransfersIdSucceedResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryInboundTransfersIdSucceedResponseValidator = + responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) export type PostTestHelpersTreasuryInboundTransfersIdSucceed = ( params: Params< @@ -12790,10 +18323,18 @@ export type PostTestHelpersTreasuryInboundTransfersIdSucceed = ( | Response > -export type PostTestHelpersTreasuryOutboundPaymentsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryOutboundPaymentsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryOutboundPaymentsIdResponder = + typeof postTestHelpersTreasuryOutboundPaymentsIdResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryOutboundPaymentsIdResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) export type PostTestHelpersTreasuryOutboundPaymentsId = ( params: Params< @@ -12810,10 +18351,18 @@ export type PostTestHelpersTreasuryOutboundPaymentsId = ( | Response > -export type PostTestHelpersTreasuryOutboundPaymentsIdFailResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryOutboundPaymentsIdFailResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryOutboundPaymentsIdFailResponder = + typeof postTestHelpersTreasuryOutboundPaymentsIdFailResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryOutboundPaymentsIdFailResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) export type PostTestHelpersTreasuryOutboundPaymentsIdFail = ( params: Params< @@ -12830,10 +18379,18 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdFail = ( | Response > -export type PostTestHelpersTreasuryOutboundPaymentsIdPostResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryOutboundPaymentsIdPostResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryOutboundPaymentsIdPostResponder = + typeof postTestHelpersTreasuryOutboundPaymentsIdPostResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryOutboundPaymentsIdPostResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) export type PostTestHelpersTreasuryOutboundPaymentsIdPost = ( params: Params< @@ -12850,10 +18407,18 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdPost = ( | Response > -export type PostTestHelpersTreasuryOutboundPaymentsIdReturnResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryOutboundPaymentsIdReturnResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryOutboundPaymentsIdReturnResponder = + typeof postTestHelpersTreasuryOutboundPaymentsIdReturnResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryOutboundPaymentsIdReturnResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) export type PostTestHelpersTreasuryOutboundPaymentsIdReturn = ( params: Params< @@ -12870,11 +18435,18 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdReturn = ( | Response > -export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferResponder = - { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder +const postTestHelpersTreasuryOutboundTransfersOutboundTransferResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryOutboundTransfersOutboundTransferResponder = + typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryOutboundTransfersOutboundTransferResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) export type PostTestHelpersTreasuryOutboundTransfersOutboundTransfer = ( params: Params< @@ -12891,11 +18463,18 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransfer = ( | Response > -export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder = - { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder +const postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder = + typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail = ( params: Params< @@ -12913,11 +18492,18 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail = ( | Response > -export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder = - { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder +const postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder = + typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost = ( params: Params< @@ -12935,11 +18521,19 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost = ( | Response > -export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder = +const postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse - } & KoaRuntimeResponder + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, + } + +type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder = + typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder & + KoaRuntimeResponder + +const postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = ( params: Params< @@ -12957,10 +18551,17 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = ( | Response > -export type PostTestHelpersTreasuryReceivedCreditsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryReceivedCreditsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryReceivedCreditsResponder = + typeof postTestHelpersTreasuryReceivedCreditsResponder & KoaRuntimeResponder + +const postTestHelpersTreasuryReceivedCreditsResponseValidator = + responseValidationFactory([["200", s_treasury_received_credit]], s_error) export type PostTestHelpersTreasuryReceivedCredits = ( params: Params< @@ -12977,10 +18578,17 @@ export type PostTestHelpersTreasuryReceivedCredits = ( | Response > -export type PostTestHelpersTreasuryReceivedDebitsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTestHelpersTreasuryReceivedDebitsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTestHelpersTreasuryReceivedDebitsResponder = + typeof postTestHelpersTreasuryReceivedDebitsResponder & KoaRuntimeResponder + +const postTestHelpersTreasuryReceivedDebitsResponseValidator = + responseValidationFactory([["200", s_treasury_received_debit]], s_error) export type PostTestHelpersTreasuryReceivedDebits = ( params: Params< @@ -12997,10 +18605,18 @@ export type PostTestHelpersTreasuryReceivedDebits = ( | Response > -export type PostTokensResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTokensResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTokensResponder = typeof postTokensResponder & KoaRuntimeResponder + +const postTokensResponseValidator = responseValidationFactory( + [["200", s_token]], + s_error, +) export type PostTokens = ( params: Params, @@ -13012,10 +18628,19 @@ export type PostTokens = ( | Response > -export type GetTokensTokenResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTokensTokenResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTokensTokenResponder = typeof getTokensTokenResponder & + KoaRuntimeResponder + +const getTokensTokenResponseValidator = responseValidationFactory( + [["200", s_token]], + s_error, +) export type GetTokensToken = ( params: Params< @@ -13032,15 +18657,33 @@ export type GetTokensToken = ( | Response > -export type GetTopupsResponder = { - with200(): KoaRuntimeResponse<{ +const getTopupsResponder = { + with200: r.with200<{ data: t_topup[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTopupsResponder = typeof getTopupsResponder & KoaRuntimeResponder + +const getTopupsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_topup)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/topups")), + }), + ], + ], + s_error, +) export type GetTopups = ( params: Params< @@ -13065,10 +18708,18 @@ export type GetTopups = ( | Response > -export type PostTopupsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTopupsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTopupsResponder = typeof postTopupsResponder & KoaRuntimeResponder + +const postTopupsResponseValidator = responseValidationFactory( + [["200", s_topup]], + s_error, +) export type PostTopups = ( params: Params, @@ -13080,10 +18731,19 @@ export type PostTopups = ( | Response > -export type GetTopupsTopupResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTopupsTopupResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTopupsTopupResponder = typeof getTopupsTopupResponder & + KoaRuntimeResponder + +const getTopupsTopupResponseValidator = responseValidationFactory( + [["200", s_topup]], + s_error, +) export type GetTopupsTopup = ( params: Params< @@ -13100,10 +18760,19 @@ export type GetTopupsTopup = ( | Response > -export type PostTopupsTopupResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTopupsTopupResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTopupsTopupResponder = typeof postTopupsTopupResponder & + KoaRuntimeResponder + +const postTopupsTopupResponseValidator = responseValidationFactory( + [["200", s_topup]], + s_error, +) export type PostTopupsTopup = ( params: Params< @@ -13120,10 +18789,19 @@ export type PostTopupsTopup = ( | Response > -export type PostTopupsTopupCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTopupsTopupCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTopupsTopupCancelResponder = typeof postTopupsTopupCancelResponder & + KoaRuntimeResponder + +const postTopupsTopupCancelResponseValidator = responseValidationFactory( + [["200", s_topup]], + s_error, +) export type PostTopupsTopupCancel = ( params: Params< @@ -13140,15 +18818,33 @@ export type PostTopupsTopupCancel = ( | Response > -export type GetTransfersResponder = { - with200(): KoaRuntimeResponse<{ +const getTransfersResponder = { + with200: r.with200<{ data: t_transfer[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTransfersResponder = typeof getTransfersResponder & KoaRuntimeResponder + +const getTransfersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_transfer)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/transfers")), + }), + ], + ], + s_error, +) export type GetTransfers = ( params: Params< @@ -13173,10 +18869,19 @@ export type GetTransfers = ( | Response > -export type PostTransfersResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTransfersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTransfersResponder = typeof postTransfersResponder & + KoaRuntimeResponder + +const postTransfersResponseValidator = responseValidationFactory( + [["200", s_transfer]], + s_error, +) export type PostTransfers = ( params: Params, @@ -13188,15 +18893,34 @@ export type PostTransfers = ( | Response > -export type GetTransfersIdReversalsResponder = { - with200(): KoaRuntimeResponse<{ +const getTransfersIdReversalsResponder = { + with200: r.with200<{ data: t_transfer_reversal[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTransfersIdReversalsResponder = + typeof getTransfersIdReversalsResponder & KoaRuntimeResponder + +const getTransfersIdReversalsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_transfer_reversal)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTransfersIdReversals = ( params: Params< @@ -13221,10 +18945,19 @@ export type GetTransfersIdReversals = ( | Response > -export type PostTransfersIdReversalsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTransfersIdReversalsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTransfersIdReversalsResponder = + typeof postTransfersIdReversalsResponder & KoaRuntimeResponder + +const postTransfersIdReversalsResponseValidator = responseValidationFactory( + [["200", s_transfer_reversal]], + s_error, +) export type PostTransfersIdReversals = ( params: Params< @@ -13241,10 +18974,19 @@ export type PostTransfersIdReversals = ( | Response > -export type GetTransfersTransferResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTransfersTransferResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTransfersTransferResponder = typeof getTransfersTransferResponder & + KoaRuntimeResponder + +const getTransfersTransferResponseValidator = responseValidationFactory( + [["200", s_transfer]], + s_error, +) export type GetTransfersTransfer = ( params: Params< @@ -13261,10 +19003,19 @@ export type GetTransfersTransfer = ( | Response > -export type PostTransfersTransferResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTransfersTransferResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTransfersTransferResponder = typeof postTransfersTransferResponder & + KoaRuntimeResponder + +const postTransfersTransferResponseValidator = responseValidationFactory( + [["200", s_transfer]], + s_error, +) export type PostTransfersTransfer = ( params: Params< @@ -13281,10 +19032,17 @@ export type PostTransfersTransfer = ( | Response > -export type GetTransfersTransferReversalsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTransfersTransferReversalsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTransfersTransferReversalsIdResponder = + typeof getTransfersTransferReversalsIdResponder & KoaRuntimeResponder + +const getTransfersTransferReversalsIdResponseValidator = + responseValidationFactory([["200", s_transfer_reversal]], s_error) export type GetTransfersTransferReversalsId = ( params: Params< @@ -13301,10 +19059,17 @@ export type GetTransfersTransferReversalsId = ( | Response > -export type PostTransfersTransferReversalsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTransfersTransferReversalsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTransfersTransferReversalsIdResponder = + typeof postTransfersTransferReversalsIdResponder & KoaRuntimeResponder + +const postTransfersTransferReversalsIdResponseValidator = + responseValidationFactory([["200", s_transfer_reversal]], s_error) export type PostTransfersTransferReversalsId = ( params: Params< @@ -13321,15 +19086,34 @@ export type PostTransfersTransferReversalsId = ( | Response > -export type GetTreasuryCreditReversalsResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryCreditReversalsResponder = { + with200: r.with200<{ data: t_treasury_credit_reversal[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryCreditReversalsResponder = + typeof getTreasuryCreditReversalsResponder & KoaRuntimeResponder + +const getTreasuryCreditReversalsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_credit_reversal)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTreasuryCreditReversals = ( params: Params< @@ -13354,10 +19138,19 @@ export type GetTreasuryCreditReversals = ( | Response > -export type PostTreasuryCreditReversalsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryCreditReversalsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryCreditReversalsResponder = + typeof postTreasuryCreditReversalsResponder & KoaRuntimeResponder + +const postTreasuryCreditReversalsResponseValidator = responseValidationFactory( + [["200", s_treasury_credit_reversal]], + s_error, +) export type PostTreasuryCreditReversals = ( params: Params, @@ -13369,10 +19162,17 @@ export type PostTreasuryCreditReversals = ( | Response > -export type GetTreasuryCreditReversalsCreditReversalResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryCreditReversalsCreditReversalResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryCreditReversalsCreditReversalResponder = + typeof getTreasuryCreditReversalsCreditReversalResponder & KoaRuntimeResponder + +const getTreasuryCreditReversalsCreditReversalResponseValidator = + responseValidationFactory([["200", s_treasury_credit_reversal]], s_error) export type GetTreasuryCreditReversalsCreditReversal = ( params: Params< @@ -13389,15 +19189,34 @@ export type GetTreasuryCreditReversalsCreditReversal = ( | Response > -export type GetTreasuryDebitReversalsResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryDebitReversalsResponder = { + with200: r.with200<{ data: t_treasury_debit_reversal[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryDebitReversalsResponder = + typeof getTreasuryDebitReversalsResponder & KoaRuntimeResponder + +const getTreasuryDebitReversalsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_debit_reversal)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTreasuryDebitReversals = ( params: Params< @@ -13422,10 +19241,19 @@ export type GetTreasuryDebitReversals = ( | Response > -export type PostTreasuryDebitReversalsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryDebitReversalsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryDebitReversalsResponder = + typeof postTreasuryDebitReversalsResponder & KoaRuntimeResponder + +const postTreasuryDebitReversalsResponseValidator = responseValidationFactory( + [["200", s_treasury_debit_reversal]], + s_error, +) export type PostTreasuryDebitReversals = ( params: Params, @@ -13437,10 +19265,17 @@ export type PostTreasuryDebitReversals = ( | Response > -export type GetTreasuryDebitReversalsDebitReversalResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryDebitReversalsDebitReversalResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryDebitReversalsDebitReversalResponder = + typeof getTreasuryDebitReversalsDebitReversalResponder & KoaRuntimeResponder + +const getTreasuryDebitReversalsDebitReversalResponseValidator = + responseValidationFactory([["200", s_treasury_debit_reversal]], s_error) export type GetTreasuryDebitReversalsDebitReversal = ( params: Params< @@ -13457,15 +19292,37 @@ export type GetTreasuryDebitReversalsDebitReversal = ( | Response > -export type GetTreasuryFinancialAccountsResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryFinancialAccountsResponder = { + with200: r.with200<{ data: t_treasury_financial_account[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryFinancialAccountsResponder = + typeof getTreasuryFinancialAccountsResponder & KoaRuntimeResponder + +const getTreasuryFinancialAccountsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_treasury_financial_account), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/treasury/financial_accounts")), + }), + ], + ], + s_error, +) export type GetTreasuryFinancialAccounts = ( params: Params< @@ -13490,10 +19347,17 @@ export type GetTreasuryFinancialAccounts = ( | Response > -export type PostTreasuryFinancialAccountsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryFinancialAccountsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryFinancialAccountsResponder = + typeof postTreasuryFinancialAccountsResponder & KoaRuntimeResponder + +const postTreasuryFinancialAccountsResponseValidator = + responseValidationFactory([["200", s_treasury_financial_account]], s_error) export type PostTreasuryFinancialAccounts = ( params: Params, @@ -13505,10 +19369,18 @@ export type PostTreasuryFinancialAccounts = ( | Response > -export type GetTreasuryFinancialAccountsFinancialAccountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryFinancialAccountsFinancialAccountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryFinancialAccountsFinancialAccountResponder = + typeof getTreasuryFinancialAccountsFinancialAccountResponder & + KoaRuntimeResponder + +const getTreasuryFinancialAccountsFinancialAccountResponseValidator = + responseValidationFactory([["200", s_treasury_financial_account]], s_error) export type GetTreasuryFinancialAccountsFinancialAccount = ( params: Params< @@ -13525,10 +19397,18 @@ export type GetTreasuryFinancialAccountsFinancialAccount = ( | Response > -export type PostTreasuryFinancialAccountsFinancialAccountResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryFinancialAccountsFinancialAccountResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryFinancialAccountsFinancialAccountResponder = + typeof postTreasuryFinancialAccountsFinancialAccountResponder & + KoaRuntimeResponder + +const postTreasuryFinancialAccountsFinancialAccountResponseValidator = + responseValidationFactory([["200", s_treasury_financial_account]], s_error) export type PostTreasuryFinancialAccountsFinancialAccount = ( params: Params< @@ -13545,10 +19425,18 @@ export type PostTreasuryFinancialAccountsFinancialAccount = ( | Response > -export type PostTreasuryFinancialAccountsFinancialAccountCloseResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryFinancialAccountsFinancialAccountCloseResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryFinancialAccountsFinancialAccountCloseResponder = + typeof postTreasuryFinancialAccountsFinancialAccountCloseResponder & + KoaRuntimeResponder + +const postTreasuryFinancialAccountsFinancialAccountCloseResponseValidator = + responseValidationFactory([["200", s_treasury_financial_account]], s_error) export type PostTreasuryFinancialAccountsFinancialAccountClose = ( params: Params< @@ -13565,10 +19453,21 @@ export type PostTreasuryFinancialAccountsFinancialAccountClose = ( | Response > -export type GetTreasuryFinancialAccountsFinancialAccountFeaturesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryFinancialAccountsFinancialAccountFeaturesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryFinancialAccountsFinancialAccountFeaturesResponder = + typeof getTreasuryFinancialAccountsFinancialAccountFeaturesResponder & + KoaRuntimeResponder + +const getTreasuryFinancialAccountsFinancialAccountFeaturesResponseValidator = + responseValidationFactory( + [["200", s_treasury_financial_account_features]], + s_error, + ) export type GetTreasuryFinancialAccountsFinancialAccountFeatures = ( params: Params< @@ -13586,10 +19485,21 @@ export type GetTreasuryFinancialAccountsFinancialAccountFeatures = ( | Response > -export type PostTreasuryFinancialAccountsFinancialAccountFeaturesResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryFinancialAccountsFinancialAccountFeaturesResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryFinancialAccountsFinancialAccountFeaturesResponder = + typeof postTreasuryFinancialAccountsFinancialAccountFeaturesResponder & + KoaRuntimeResponder + +const postTreasuryFinancialAccountsFinancialAccountFeaturesResponseValidator = + responseValidationFactory( + [["200", s_treasury_financial_account_features]], + s_error, + ) export type PostTreasuryFinancialAccountsFinancialAccountFeatures = ( params: Params< @@ -13607,15 +19517,34 @@ export type PostTreasuryFinancialAccountsFinancialAccountFeatures = ( | Response > -export type GetTreasuryInboundTransfersResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryInboundTransfersResponder = { + with200: r.with200<{ data: t_treasury_inbound_transfer[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryInboundTransfersResponder = + typeof getTreasuryInboundTransfersResponder & KoaRuntimeResponder + +const getTreasuryInboundTransfersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_inbound_transfer)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTreasuryInboundTransfers = ( params: Params< @@ -13640,10 +19569,19 @@ export type GetTreasuryInboundTransfers = ( | Response > -export type PostTreasuryInboundTransfersResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryInboundTransfersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryInboundTransfersResponder = + typeof postTreasuryInboundTransfersResponder & KoaRuntimeResponder + +const postTreasuryInboundTransfersResponseValidator = responseValidationFactory( + [["200", s_treasury_inbound_transfer]], + s_error, +) export type PostTreasuryInboundTransfers = ( params: Params, @@ -13655,10 +19593,17 @@ export type PostTreasuryInboundTransfers = ( | Response > -export type GetTreasuryInboundTransfersIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryInboundTransfersIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryInboundTransfersIdResponder = + typeof getTreasuryInboundTransfersIdResponder & KoaRuntimeResponder + +const getTreasuryInboundTransfersIdResponseValidator = + responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) export type GetTreasuryInboundTransfersId = ( params: Params< @@ -13675,10 +19620,18 @@ export type GetTreasuryInboundTransfersId = ( | Response > -export type PostTreasuryInboundTransfersInboundTransferCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryInboundTransfersInboundTransferCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryInboundTransfersInboundTransferCancelResponder = + typeof postTreasuryInboundTransfersInboundTransferCancelResponder & + KoaRuntimeResponder + +const postTreasuryInboundTransfersInboundTransferCancelResponseValidator = + responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) export type PostTreasuryInboundTransfersInboundTransferCancel = ( params: Params< @@ -13695,15 +19648,37 @@ export type PostTreasuryInboundTransfersInboundTransferCancel = ( | Response > -export type GetTreasuryOutboundPaymentsResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryOutboundPaymentsResponder = { + with200: r.with200<{ data: t_treasury_outbound_payment[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryOutboundPaymentsResponder = + typeof getTreasuryOutboundPaymentsResponder & KoaRuntimeResponder + +const getTreasuryOutboundPaymentsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_outbound_payment)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/treasury/outbound_payments")), + }), + ], + ], + s_error, +) export type GetTreasuryOutboundPayments = ( params: Params< @@ -13728,10 +19703,19 @@ export type GetTreasuryOutboundPayments = ( | Response > -export type PostTreasuryOutboundPaymentsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryOutboundPaymentsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryOutboundPaymentsResponder = + typeof postTreasuryOutboundPaymentsResponder & KoaRuntimeResponder + +const postTreasuryOutboundPaymentsResponseValidator = responseValidationFactory( + [["200", s_treasury_outbound_payment]], + s_error, +) export type PostTreasuryOutboundPayments = ( params: Params, @@ -13743,10 +19727,17 @@ export type PostTreasuryOutboundPayments = ( | Response > -export type GetTreasuryOutboundPaymentsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryOutboundPaymentsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryOutboundPaymentsIdResponder = + typeof getTreasuryOutboundPaymentsIdResponder & KoaRuntimeResponder + +const getTreasuryOutboundPaymentsIdResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) export type GetTreasuryOutboundPaymentsId = ( params: Params< @@ -13763,10 +19754,17 @@ export type GetTreasuryOutboundPaymentsId = ( | Response > -export type PostTreasuryOutboundPaymentsIdCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryOutboundPaymentsIdCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryOutboundPaymentsIdCancelResponder = + typeof postTreasuryOutboundPaymentsIdCancelResponder & KoaRuntimeResponder + +const postTreasuryOutboundPaymentsIdCancelResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) export type PostTreasuryOutboundPaymentsIdCancel = ( params: Params< @@ -13783,15 +19781,34 @@ export type PostTreasuryOutboundPaymentsIdCancel = ( | Response > -export type GetTreasuryOutboundTransfersResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryOutboundTransfersResponder = { + with200: r.with200<{ data: t_treasury_outbound_transfer[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryOutboundTransfersResponder = + typeof getTreasuryOutboundTransfersResponder & KoaRuntimeResponder + +const getTreasuryOutboundTransfersResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_outbound_transfer)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTreasuryOutboundTransfers = ( params: Params< @@ -13816,10 +19833,17 @@ export type GetTreasuryOutboundTransfers = ( | Response > -export type PostTreasuryOutboundTransfersResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryOutboundTransfersResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryOutboundTransfersResponder = + typeof postTreasuryOutboundTransfersResponder & KoaRuntimeResponder + +const postTreasuryOutboundTransfersResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) export type PostTreasuryOutboundTransfers = ( params: Params, @@ -13831,10 +19855,18 @@ export type PostTreasuryOutboundTransfers = ( | Response > -export type GetTreasuryOutboundTransfersOutboundTransferResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryOutboundTransfersOutboundTransferResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryOutboundTransfersOutboundTransferResponder = + typeof getTreasuryOutboundTransfersOutboundTransferResponder & + KoaRuntimeResponder + +const getTreasuryOutboundTransfersOutboundTransferResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) export type GetTreasuryOutboundTransfersOutboundTransfer = ( params: Params< @@ -13851,10 +19883,18 @@ export type GetTreasuryOutboundTransfersOutboundTransfer = ( | Response > -export type PostTreasuryOutboundTransfersOutboundTransferCancelResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postTreasuryOutboundTransfersOutboundTransferCancelResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostTreasuryOutboundTransfersOutboundTransferCancelResponder = + typeof postTreasuryOutboundTransfersOutboundTransferCancelResponder & + KoaRuntimeResponder + +const postTreasuryOutboundTransfersOutboundTransferCancelResponseValidator = + responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) export type PostTreasuryOutboundTransfersOutboundTransferCancel = ( params: Params< @@ -13871,15 +19911,34 @@ export type PostTreasuryOutboundTransfersOutboundTransferCancel = ( | Response > -export type GetTreasuryReceivedCreditsResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryReceivedCreditsResponder = { + with200: r.with200<{ data: t_treasury_received_credit[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryReceivedCreditsResponder = + typeof getTreasuryReceivedCreditsResponder & KoaRuntimeResponder + +const getTreasuryReceivedCreditsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_received_credit)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTreasuryReceivedCredits = ( params: Params< @@ -13904,10 +19963,19 @@ export type GetTreasuryReceivedCredits = ( | Response > -export type GetTreasuryReceivedCreditsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryReceivedCreditsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryReceivedCreditsIdResponder = + typeof getTreasuryReceivedCreditsIdResponder & KoaRuntimeResponder + +const getTreasuryReceivedCreditsIdResponseValidator = responseValidationFactory( + [["200", s_treasury_received_credit]], + s_error, +) export type GetTreasuryReceivedCreditsId = ( params: Params< @@ -13924,15 +19992,34 @@ export type GetTreasuryReceivedCreditsId = ( | Response > -export type GetTreasuryReceivedDebitsResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryReceivedDebitsResponder = { + with200: r.with200<{ data: t_treasury_received_debit[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryReceivedDebitsResponder = + typeof getTreasuryReceivedDebitsResponder & KoaRuntimeResponder + +const getTreasuryReceivedDebitsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_received_debit)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTreasuryReceivedDebits = ( params: Params< @@ -13957,10 +20044,19 @@ export type GetTreasuryReceivedDebits = ( | Response > -export type GetTreasuryReceivedDebitsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryReceivedDebitsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryReceivedDebitsIdResponder = + typeof getTreasuryReceivedDebitsIdResponder & KoaRuntimeResponder + +const getTreasuryReceivedDebitsIdResponseValidator = responseValidationFactory( + [["200", s_treasury_received_debit]], + s_error, +) export type GetTreasuryReceivedDebitsId = ( params: Params< @@ -13977,15 +20073,38 @@ export type GetTreasuryReceivedDebitsId = ( | Response > -export type GetTreasuryTransactionEntriesResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryTransactionEntriesResponder = { + with200: r.with200<{ data: t_treasury_transaction_entry[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryTransactionEntriesResponder = + typeof getTreasuryTransactionEntriesResponder & KoaRuntimeResponder + +const getTreasuryTransactionEntriesResponseValidator = + responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_transaction_entry)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/treasury/transaction_entries")), + }), + ], + ], + s_error, + ) export type GetTreasuryTransactionEntries = ( params: Params< @@ -14010,10 +20129,17 @@ export type GetTreasuryTransactionEntries = ( | Response > -export type GetTreasuryTransactionEntriesIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryTransactionEntriesIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryTransactionEntriesIdResponder = + typeof getTreasuryTransactionEntriesIdResponder & KoaRuntimeResponder + +const getTreasuryTransactionEntriesIdResponseValidator = + responseValidationFactory([["200", s_treasury_transaction_entry]], s_error) export type GetTreasuryTransactionEntriesId = ( params: Params< @@ -14030,15 +20156,34 @@ export type GetTreasuryTransactionEntriesId = ( | Response > -export type GetTreasuryTransactionsResponder = { - with200(): KoaRuntimeResponse<{ +const getTreasuryTransactionsResponder = { + with200: r.with200<{ data: t_treasury_transaction[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryTransactionsResponder = + typeof getTreasuryTransactionsResponder & KoaRuntimeResponder + +const getTreasuryTransactionsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(z.lazy(() => s_treasury_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ], + ], + s_error, +) export type GetTreasuryTransactions = ( params: Params< @@ -14063,10 +20208,19 @@ export type GetTreasuryTransactions = ( | Response > -export type GetTreasuryTransactionsIdResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTreasuryTransactionsIdResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTreasuryTransactionsIdResponder = + typeof getTreasuryTransactionsIdResponder & KoaRuntimeResponder + +const getTreasuryTransactionsIdResponseValidator = responseValidationFactory( + [["200", s_treasury_transaction]], + s_error, +) export type GetTreasuryTransactionsId = ( params: Params< @@ -14083,15 +20237,34 @@ export type GetTreasuryTransactionsId = ( | Response > -export type GetWebhookEndpointsResponder = { - with200(): KoaRuntimeResponse<{ +const getWebhookEndpointsResponder = { + with200: r.with200<{ data: t_webhook_endpoint[] has_more: boolean object: "list" url: string - }> - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder + }>, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetWebhookEndpointsResponder = typeof getWebhookEndpointsResponder & + KoaRuntimeResponder + +const getWebhookEndpointsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + data: z.array(s_webhook_endpoint), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/webhook_endpoints")), + }), + ], + ], + s_error, +) export type GetWebhookEndpoints = ( params: Params< @@ -14116,10 +20289,19 @@ export type GetWebhookEndpoints = ( | Response > -export type PostWebhookEndpointsResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postWebhookEndpointsResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostWebhookEndpointsResponder = typeof postWebhookEndpointsResponder & + KoaRuntimeResponder + +const postWebhookEndpointsResponseValidator = responseValidationFactory( + [["200", s_webhook_endpoint]], + s_error, +) export type PostWebhookEndpoints = ( params: Params, @@ -14131,10 +20313,17 @@ export type PostWebhookEndpoints = ( | Response > -export type DeleteWebhookEndpointsWebhookEndpointResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteWebhookEndpointsWebhookEndpointResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteWebhookEndpointsWebhookEndpointResponder = + typeof deleteWebhookEndpointsWebhookEndpointResponder & KoaRuntimeResponder + +const deleteWebhookEndpointsWebhookEndpointResponseValidator = + responseValidationFactory([["200", s_deleted_webhook_endpoint]], s_error) export type DeleteWebhookEndpointsWebhookEndpoint = ( params: Params< @@ -14151,10 +20340,17 @@ export type DeleteWebhookEndpointsWebhookEndpoint = ( | Response > -export type GetWebhookEndpointsWebhookEndpointResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getWebhookEndpointsWebhookEndpointResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetWebhookEndpointsWebhookEndpointResponder = + typeof getWebhookEndpointsWebhookEndpointResponder & KoaRuntimeResponder + +const getWebhookEndpointsWebhookEndpointResponseValidator = + responseValidationFactory([["200", s_webhook_endpoint]], s_error) export type GetWebhookEndpointsWebhookEndpoint = ( params: Params< @@ -14171,10 +20367,17 @@ export type GetWebhookEndpointsWebhookEndpoint = ( | Response > -export type PostWebhookEndpointsWebhookEndpointResponder = { - with200(): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const postWebhookEndpointsWebhookEndpointResponder = { + with200: r.with200, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type PostWebhookEndpointsWebhookEndpointResponder = + typeof postWebhookEndpointsWebhookEndpointResponder & KoaRuntimeResponder + +const postWebhookEndpointsWebhookEndpointResponseValidator = + responseValidationFactory([["200", s_webhook_endpoint]], s_error) export type PostWebhookEndpointsWebhookEndpoint = ( params: Params< @@ -14771,11 +20974,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountBodySchema = z.object({}).optional() - const getAccountResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, - ) - router.get("getAccount", "/v1/account", async (ctx, next) => { const input = { params: undefined, @@ -14792,20 +20990,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccount(input, responder, ctx) + .getAccount(input, getAccountResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -14833,11 +21019,6 @@ export function createRouter(implementation: Implementation): KoaRouter { type: z.enum(["account_onboarding", "account_update"]), }) - const postAccountLinksResponseValidator = responseValidationFactory( - [["200", s_account_link]], - s_error, - ) - router.post("postAccountLinks", "/v1/account_links", async (ctx, next) => { const input = { params: undefined, @@ -14850,20 +21031,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountLinks(input, responder, ctx) + .postAccountLinks(input, postAccountLinksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -15046,11 +21215,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.array(z.string().max(5000)).optional(), }) - const postAccountSessionsResponseValidator = responseValidationFactory( - [["200", s_account_session]], - s_error, - ) - router.post( "postAccountSessions", "/v1/account_sessions", @@ -15066,20 +21230,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountSessions(input, responder, ctx) + .postAccountSessions(input, postAccountSessionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -15118,21 +21270,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsBodySchema = z.object({}).optional() - const getAccountsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_account)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/accounts")), - }), - ], - ], - s_error, - ) - router.get("getAccounts", "/v1/accounts", async (ctx, next) => { const input = { params: undefined, @@ -15149,25 +21286,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_account[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccounts(input, responder, ctx) + .getAccounts(input, getAccountsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -15793,11 +21913,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, - ) - router.post("postAccounts", "/v1/accounts", async (ctx, next) => { const input = { params: undefined, @@ -15810,20 +21925,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccounts(input, responder, ctx) + .postAccounts(input, postAccountsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -15842,11 +21945,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteAccountsAccountBodySchema = z.object({}).optional() - const deleteAccountsAccountResponseValidator = responseValidationFactory( - [["200", s_deleted_account]], - s_error, - ) - router.delete( "deleteAccountsAccount", "/v1/accounts/:account", @@ -15866,20 +21964,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteAccountsAccount(input, responder, ctx) + .deleteAccountsAccount(input, deleteAccountsAccountResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -15908,11 +21994,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountBodySchema = z.object({}).optional() - const getAccountsAccountResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, - ) - router.get( "getAccountsAccount", "/v1/accounts/:account", @@ -15936,20 +22017,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccount(input, responder, ctx) + .getAccountsAccount(input, getAccountsAccountResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -16543,11 +22612,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, - ) - router.post( "postAccountsAccount", "/v1/accounts/:account", @@ -16567,20 +22631,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccount(input, responder, ctx) + .postAccountsAccount(input, postAccountsAccountResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -16631,9 +22683,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountBankAccountsResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) - router.post( "postAccountsAccountBankAccounts", "/v1/accounts/:account/bank_accounts", @@ -16653,20 +22702,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountBankAccounts(input, responder, ctx) + .postAccountsAccountBankAccounts( + input, + postAccountsAccountBankAccountsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -16687,9 +22728,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteAccountsAccountBankAccountsIdBodySchema = z.object({}).optional() - const deleteAccountsAccountBankAccountsIdResponseValidator = - responseValidationFactory([["200", s_deleted_external_account]], s_error) - router.delete( "deleteAccountsAccountBankAccountsId", "/v1/accounts/:account/bank_accounts/:id", @@ -16709,20 +22747,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteAccountsAccountBankAccountsId(input, responder, ctx) + .deleteAccountsAccountBankAccountsId( + input, + deleteAccountsAccountBankAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -16755,9 +22785,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountBankAccountsIdBodySchema = z.object({}).optional() - const getAccountsAccountBankAccountsIdResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) - router.get( "getAccountsAccountBankAccountsId", "/v1/accounts/:account/bank_accounts/:id", @@ -16781,20 +22808,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountBankAccountsId(input, responder, ctx) + .getAccountsAccountBankAccountsId( + input, + getAccountsAccountBankAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -16840,9 +22859,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountBankAccountsIdResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) - router.post( "postAccountsAccountBankAccountsId", "/v1/accounts/:account/bank_accounts/:id", @@ -16862,20 +22878,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountBankAccountsId(input, responder, ctx) + .postAccountsAccountBankAccountsId( + input, + postAccountsAccountBankAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -16907,22 +22915,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountCapabilitiesBodySchema = z.object({}).optional() - const getAccountsAccountCapabilitiesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_capability)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getAccountsAccountCapabilities", "/v1/accounts/:account/capabilities", @@ -16946,25 +22938,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_capability[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountCapabilities(input, responder, ctx) + .getAccountsAccountCapabilities( + input, + getAccountsAccountCapabilitiesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -16996,9 +22975,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getAccountsAccountCapabilitiesCapabilityResponseValidator = - responseValidationFactory([["200", s_capability]], s_error) - router.get( "getAccountsAccountCapabilitiesCapability", "/v1/accounts/:account/capabilities/:capability", @@ -17022,20 +22998,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountCapabilitiesCapability(input, responder, ctx) + .getAccountsAccountCapabilitiesCapability( + input, + getAccountsAccountCapabilitiesCapabilityResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17064,9 +23032,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountCapabilitiesCapabilityResponseValidator = - responseValidationFactory([["200", s_capability]], s_error) - router.post( "postAccountsAccountCapabilitiesCapability", "/v1/accounts/:account/capabilities/:capability", @@ -17086,20 +23051,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountCapabilitiesCapability(input, responder, ctx) + .postAccountsAccountCapabilitiesCapability( + input, + postAccountsAccountCapabilitiesCapabilityResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17135,24 +23092,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountExternalAccountsBodySchema = z.object({}).optional() - const getAccountsAccountExternalAccountsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array( - z.union([z.lazy(() => s_bank_account), z.lazy(() => s_card)]), - ), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getAccountsAccountExternalAccounts", "/v1/accounts/:account/external_accounts", @@ -17176,25 +23115,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: (t_bank_account | t_card)[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountExternalAccounts(input, responder, ctx) + .getAccountsAccountExternalAccounts( + input, + getAccountsAccountExternalAccountsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17248,9 +23174,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountExternalAccountsResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) - router.post( "postAccountsAccountExternalAccounts", "/v1/accounts/:account/external_accounts", @@ -17270,20 +23193,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountExternalAccounts(input, responder, ctx) + .postAccountsAccountExternalAccounts( + input, + postAccountsAccountExternalAccountsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17309,9 +23224,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const deleteAccountsAccountExternalAccountsIdResponseValidator = - responseValidationFactory([["200", s_deleted_external_account]], s_error) - router.delete( "deleteAccountsAccountExternalAccountsId", "/v1/accounts/:account/external_accounts/:id", @@ -17331,20 +23243,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteAccountsAccountExternalAccountsId(input, responder, ctx) + .deleteAccountsAccountExternalAccountsId( + input, + deleteAccountsAccountExternalAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17377,9 +23281,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountExternalAccountsIdBodySchema = z.object({}).optional() - const getAccountsAccountExternalAccountsIdResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) - router.get( "getAccountsAccountExternalAccountsId", "/v1/accounts/:account/external_accounts/:id", @@ -17403,20 +23304,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountExternalAccountsId(input, responder, ctx) + .getAccountsAccountExternalAccountsId( + input, + getAccountsAccountExternalAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17465,9 +23358,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountExternalAccountsIdResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) - router.post( "postAccountsAccountExternalAccountsId", "/v1/accounts/:account/external_accounts/:id", @@ -17487,20 +23377,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountExternalAccountsId(input, responder, ctx) + .postAccountsAccountExternalAccountsId( + input, + postAccountsAccountExternalAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17525,9 +23407,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postAccountsAccountLoginLinksResponseValidator = - responseValidationFactory([["200", s_login_link]], s_error) - router.post( "postAccountsAccountLoginLinks", "/v1/accounts/:account/login_links", @@ -17547,20 +23426,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountLoginLinks(input, responder, ctx) + .postAccountsAccountLoginLinks( + input, + postAccountsAccountLoginLinksResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17602,21 +23473,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountPeopleBodySchema = z.object({}).optional() - const getAccountsAccountPeopleResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_person)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getAccountsAccountPeople", "/v1/accounts/:account/people", @@ -17640,25 +23496,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_person[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountPeople(input, responder, ctx) + .getAccountsAccountPeople(input, getAccountsAccountPeopleResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17822,11 +23661,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountPeopleResponseValidator = responseValidationFactory( - [["200", s_person]], - s_error, - ) - router.post( "postAccountsAccountPeople", "/v1/accounts/:account/people", @@ -17846,20 +23680,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountPeople(input, responder, ctx) + .postAccountsAccountPeople( + input, + postAccountsAccountPeopleResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17880,9 +23706,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteAccountsAccountPeoplePersonBodySchema = z.object({}).optional() - const deleteAccountsAccountPeoplePersonResponseValidator = - responseValidationFactory([["200", s_deleted_person]], s_error) - router.delete( "deleteAccountsAccountPeoplePerson", "/v1/accounts/:account/people/:person", @@ -17902,20 +23725,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteAccountsAccountPeoplePerson(input, responder, ctx) + .deleteAccountsAccountPeoplePerson( + input, + deleteAccountsAccountPeoplePersonResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -17948,9 +23763,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountPeoplePersonBodySchema = z.object({}).optional() - const getAccountsAccountPeoplePersonResponseValidator = - responseValidationFactory([["200", s_person]], s_error) - router.get( "getAccountsAccountPeoplePerson", "/v1/accounts/:account/people/:person", @@ -17974,20 +23786,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountPeoplePerson(input, responder, ctx) + .getAccountsAccountPeoplePerson( + input, + getAccountsAccountPeoplePersonResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18152,9 +23956,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountPeoplePersonResponseValidator = - responseValidationFactory([["200", s_person]], s_error) - router.post( "postAccountsAccountPeoplePerson", "/v1/accounts/:account/people/:person", @@ -18174,20 +23975,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountPeoplePerson(input, responder, ctx) + .postAccountsAccountPeoplePerson( + input, + postAccountsAccountPeoplePersonResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18229,21 +24022,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountPersonsBodySchema = z.object({}).optional() - const getAccountsAccountPersonsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_person)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getAccountsAccountPersons", "/v1/accounts/:account/persons", @@ -18267,25 +24045,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_person[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountPersons(input, responder, ctx) + .getAccountsAccountPersons( + input, + getAccountsAccountPersonsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18449,11 +24214,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountPersonsResponseValidator = responseValidationFactory( - [["200", s_person]], - s_error, - ) - router.post( "postAccountsAccountPersons", "/v1/accounts/:account/persons", @@ -18473,20 +24233,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountPersons(input, responder, ctx) + .postAccountsAccountPersons( + input, + postAccountsAccountPersonsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18507,9 +24259,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteAccountsAccountPersonsPersonBodySchema = z.object({}).optional() - const deleteAccountsAccountPersonsPersonResponseValidator = - responseValidationFactory([["200", s_deleted_person]], s_error) - router.delete( "deleteAccountsAccountPersonsPerson", "/v1/accounts/:account/persons/:person", @@ -18529,20 +24278,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteAccountsAccountPersonsPerson(input, responder, ctx) + .deleteAccountsAccountPersonsPerson( + input, + deleteAccountsAccountPersonsPersonResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18575,9 +24316,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAccountsAccountPersonsPersonBodySchema = z.object({}).optional() - const getAccountsAccountPersonsPersonResponseValidator = - responseValidationFactory([["200", s_person]], s_error) - router.get( "getAccountsAccountPersonsPerson", "/v1/accounts/:account/persons/:person", @@ -18601,20 +24339,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAccountsAccountPersonsPerson(input, responder, ctx) + .getAccountsAccountPersonsPerson( + input, + getAccountsAccountPersonsPersonResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18779,9 +24509,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postAccountsAccountPersonsPersonResponseValidator = - responseValidationFactory([["200", s_person]], s_error) - router.post( "postAccountsAccountPersonsPerson", "/v1/accounts/:account/persons/:person", @@ -18801,20 +24528,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountPersonsPerson(input, responder, ctx) + .postAccountsAccountPersonsPerson( + input, + postAccountsAccountPersonsPersonResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18837,11 +24556,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reason: z.string().max(5000), }) - const postAccountsAccountRejectResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, - ) - router.post( "postAccountsAccountReject", "/v1/accounts/:account/reject", @@ -18861,20 +24575,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAccountsAccountReject(input, responder, ctx) + .postAccountsAccountReject( + input, + postAccountsAccountRejectResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18903,21 +24609,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getApplePayDomainsBodySchema = z.object({}).optional() - const getApplePayDomainsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_apple_pay_domain), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/apple_pay/domains")), - }), - ], - ], - s_error, - ) - router.get( "getApplePayDomains", "/v1/apple_pay/domains", @@ -18937,25 +24628,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_apple_pay_domain[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getApplePayDomains(input, responder, ctx) + .getApplePayDomains(input, getApplePayDomainsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -18974,11 +24648,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.array(z.string().max(5000)).optional(), }) - const postApplePayDomainsResponseValidator = responseValidationFactory( - [["200", s_apple_pay_domain]], - s_error, - ) - router.post( "postApplePayDomains", "/v1/apple_pay/domains", @@ -18994,20 +24663,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postApplePayDomains(input, responder, ctx) + .postApplePayDomains(input, postApplePayDomainsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19027,9 +24684,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteApplePayDomainsDomainBodySchema = z.object({}).optional() - const deleteApplePayDomainsDomainResponseValidator = - responseValidationFactory([["200", s_deleted_apple_pay_domain]], s_error) - router.delete( "deleteApplePayDomainsDomain", "/v1/apple_pay/domains/:domain", @@ -19049,20 +24703,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteApplePayDomainsDomain(input, responder, ctx) + .deleteApplePayDomainsDomain( + input, + deleteApplePayDomainsDomainResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19091,11 +24737,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getApplePayDomainsDomainBodySchema = z.object({}).optional() - const getApplePayDomainsDomainResponseValidator = responseValidationFactory( - [["200", s_apple_pay_domain]], - s_error, - ) - router.get( "getApplePayDomainsDomain", "/v1/apple_pay/domains/:domain", @@ -19119,20 +24760,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getApplePayDomainsDomain(input, responder, ctx) + .getApplePayDomainsDomain(input, getApplePayDomainsDomainResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19172,21 +24801,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getApplicationFeesBodySchema = z.object({}).optional() - const getApplicationFeesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_application_fee)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/application_fees")), - }), - ], - ], - s_error, - ) - router.get( "getApplicationFees", "/v1/application_fees", @@ -19206,25 +24820,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_application_fee[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getApplicationFees(input, responder, ctx) + .getApplicationFees(input, getApplicationFeesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19254,9 +24851,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getApplicationFeesFeeRefundsIdBodySchema = z.object({}).optional() - const getApplicationFeesFeeRefundsIdResponseValidator = - responseValidationFactory([["200", s_fee_refund]], s_error) - router.get( "getApplicationFeesFeeRefundsId", "/v1/application_fees/:fee/refunds/:id", @@ -19280,20 +24874,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getApplicationFeesFeeRefundsId(input, responder, ctx) + .getApplicationFeesFeeRefundsId( + input, + getApplicationFeesFeeRefundsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19319,9 +24905,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postApplicationFeesFeeRefundsIdResponseValidator = - responseValidationFactory([["200", s_fee_refund]], s_error) - router.post( "postApplicationFeesFeeRefundsId", "/v1/application_fees/:fee/refunds/:id", @@ -19341,20 +24924,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postApplicationFeesFeeRefundsId(input, responder, ctx) + .postApplicationFeesFeeRefundsId( + input, + postApplicationFeesFeeRefundsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19381,11 +24956,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getApplicationFeesIdBodySchema = z.object({}).optional() - const getApplicationFeesIdResponseValidator = responseValidationFactory( - [["200", s_application_fee]], - s_error, - ) - router.get( "getApplicationFeesId", "/v1/application_fees/:id", @@ -19409,20 +24979,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getApplicationFeesId(input, responder, ctx) + .getApplicationFeesId(input, getApplicationFeesIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19448,9 +25006,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postApplicationFeesIdRefundResponseValidator = - responseValidationFactory([["200", s_application_fee]], s_error) - router.post( "postApplicationFeesIdRefund", "/v1/application_fees/:id/refund", @@ -19470,20 +25025,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postApplicationFeesIdRefund(input, responder, ctx) + .postApplicationFeesIdRefund( + input, + postApplicationFeesIdRefundResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19515,22 +25062,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getApplicationFeesIdRefundsBodySchema = z.object({}).optional() - const getApplicationFeesIdRefundsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_fee_refund)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getApplicationFeesIdRefunds", "/v1/application_fees/:id/refunds", @@ -19554,25 +25085,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_fee_refund[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getApplicationFeesIdRefunds(input, responder, ctx) + .getApplicationFeesIdRefunds( + input, + getApplicationFeesIdRefundsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19598,9 +25116,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postApplicationFeesIdRefundsResponseValidator = - responseValidationFactory([["200", s_fee_refund]], s_error) - router.post( "postApplicationFeesIdRefunds", "/v1/application_fees/:id/refunds", @@ -19620,20 +25135,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postApplicationFeesIdRefunds(input, responder, ctx) + .postApplicationFeesIdRefunds( + input, + postApplicationFeesIdRefundsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19665,21 +25172,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAppsSecretsBodySchema = z.object({}).optional() - const getAppsSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_apps_secret), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/apps/secrets")), - }), - ], - ], - s_error, - ) - router.get("getAppsSecrets", "/v1/apps/secrets", async (ctx, next) => { const input = { params: undefined, @@ -19696,25 +25188,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_apps_secret[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAppsSecrets(input, responder, ctx) + .getAppsSecrets(input, getAppsSecretsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19738,11 +25213,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }), }) - const postAppsSecretsResponseValidator = responseValidationFactory( - [["200", s_apps_secret]], - s_error, - ) - router.post("postAppsSecrets", "/v1/apps/secrets", async (ctx, next) => { const input = { params: undefined, @@ -19755,20 +25225,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAppsSecrets(input, responder, ctx) + .postAppsSecrets(input, postAppsSecretsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19790,11 +25248,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }), }) - const postAppsSecretsDeleteResponseValidator = responseValidationFactory( - [["200", s_apps_secret]], - s_error, - ) - router.post( "postAppsSecretsDelete", "/v1/apps/secrets/delete", @@ -19810,20 +25263,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postAppsSecretsDelete(input, responder, ctx) + .postAppsSecretsDelete(input, postAppsSecretsDeleteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19853,11 +25294,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getAppsSecretsFindBodySchema = z.object({}).optional() - const getAppsSecretsFindResponseValidator = responseValidationFactory( - [["200", s_apps_secret]], - s_error, - ) - router.get( "getAppsSecretsFind", "/v1/apps/secrets/find", @@ -19877,20 +25313,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getAppsSecretsFind(input, responder, ctx) + .getAppsSecretsFind(input, getAppsSecretsFindResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19915,11 +25339,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBalanceBodySchema = z.object({}).optional() - const getBalanceResponseValidator = responseValidationFactory( - [["200", s_balance]], - s_error, - ) - router.get("getBalance", "/v1/balance", async (ctx, next) => { const input = { params: undefined, @@ -19936,20 +25355,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBalance(input, responder, ctx) + .getBalance(input, getBalanceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -19991,24 +25398,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBalanceHistoryBodySchema = z.object({}).optional() - const getBalanceHistoryResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/balance_transactions")), - }), - ], - ], - s_error, - ) - router.get("getBalanceHistory", "/v1/balance/history", async (ctx, next) => { const input = { params: undefined, @@ -20025,25 +25414,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_balance_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBalanceHistory(input, responder, ctx) + .getBalanceHistory(input, getBalanceHistoryResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20069,11 +25441,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBalanceHistoryIdBodySchema = z.object({}).optional() - const getBalanceHistoryIdResponseValidator = responseValidationFactory( - [["200", s_balance_transaction]], - s_error, - ) - router.get( "getBalanceHistoryId", "/v1/balance/history/:id", @@ -20097,20 +25464,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBalanceHistoryId(input, responder, ctx) + .getBalanceHistoryId(input, getBalanceHistoryIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20153,24 +25508,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBalanceTransactionsBodySchema = z.object({}).optional() - const getBalanceTransactionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/balance_transactions")), - }), - ], - ], - s_error, - ) - router.get( "getBalanceTransactions", "/v1/balance_transactions", @@ -20190,25 +25527,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_balance_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBalanceTransactions(input, responder, ctx) + .getBalanceTransactions(input, getBalanceTransactionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20237,11 +25557,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBalanceTransactionsIdBodySchema = z.object({}).optional() - const getBalanceTransactionsIdResponseValidator = responseValidationFactory( - [["200", s_balance_transaction]], - s_error, - ) - router.get( "getBalanceTransactionsId", "/v1/balance_transactions/:id", @@ -20265,20 +25580,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBalanceTransactionsId(input, responder, ctx) + .getBalanceTransactionsId(input, getBalanceTransactionsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20308,21 +25611,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingAlertsBodySchema = z.object({}).optional() - const getBillingAlertsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_billing_alert)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/billing/alerts")), - }), - ], - ], - s_error, - ) - router.get("getBillingAlerts", "/v1/billing/alerts", async (ctx, next) => { const input = { params: undefined, @@ -20339,25 +25627,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_billing_alert[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingAlerts(input, responder, ctx) + .getBillingAlerts(input, getBillingAlertsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20391,11 +25662,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postBillingAlertsResponseValidator = responseValidationFactory( - [["200", s_billing_alert]], - s_error, - ) - router.post("postBillingAlerts", "/v1/billing/alerts", async (ctx, next) => { const input = { params: undefined, @@ -20408,20 +25674,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingAlerts(input, responder, ctx) + .postBillingAlerts(input, postBillingAlertsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20447,11 +25701,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingAlertsIdBodySchema = z.object({}).optional() - const getBillingAlertsIdResponseValidator = responseValidationFactory( - [["200", s_billing_alert]], - s_error, - ) - router.get( "getBillingAlertsId", "/v1/billing/alerts/:id", @@ -20475,20 +25724,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingAlertsId(input, responder, ctx) + .getBillingAlertsId(input, getBillingAlertsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20510,9 +25747,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postBillingAlertsIdActivateResponseValidator = - responseValidationFactory([["200", s_billing_alert]], s_error) - router.post( "postBillingAlertsIdActivate", "/v1/billing/alerts/:id/activate", @@ -20532,20 +25766,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingAlertsIdActivate(input, responder, ctx) + .postBillingAlertsIdActivate( + input, + postBillingAlertsIdActivateResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20567,11 +25793,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postBillingAlertsIdArchiveResponseValidator = responseValidationFactory( - [["200", s_billing_alert]], - s_error, - ) - router.post( "postBillingAlertsIdArchive", "/v1/billing/alerts/:id/archive", @@ -20591,20 +25812,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingAlertsIdArchive(input, responder, ctx) + .postBillingAlertsIdArchive( + input, + postBillingAlertsIdArchiveResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20626,9 +25839,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postBillingAlertsIdDeactivateResponseValidator = - responseValidationFactory([["200", s_billing_alert]], s_error) - router.post( "postBillingAlertsIdDeactivate", "/v1/billing/alerts/:id/deactivate", @@ -20648,20 +25858,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingAlertsIdDeactivate(input, responder, ctx) + .postBillingAlertsIdDeactivate( + input, + postBillingAlertsIdDeactivateResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20697,12 +25899,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingCreditBalanceSummaryBodySchema = z.object({}).optional() - const getBillingCreditBalanceSummaryResponseValidator = - responseValidationFactory( - [["200", s_billing_credit_balance_summary]], - s_error, - ) - router.get( "getBillingCreditBalanceSummary", "/v1/billing/credit_balance_summary", @@ -20722,20 +25918,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingCreditBalanceSummary(input, responder, ctx) + .getBillingCreditBalanceSummary( + input, + getBillingCreditBalanceSummaryResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20765,25 +25953,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingCreditBalanceTransactionsBodySchema = z.object({}).optional() - const getBillingCreditBalanceTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_billing_credit_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/billing/credit_grants")), - }), - ], - ], - s_error, - ) - router.get( "getBillingCreditBalanceTransactions", "/v1/billing/credit_balance_transactions", @@ -20803,25 +25972,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_billing_credit_balance_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingCreditBalanceTransactions(input, responder, ctx) + .getBillingCreditBalanceTransactions( + input, + getBillingCreditBalanceTransactionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20855,12 +26011,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getBillingCreditBalanceTransactionsIdResponseValidator = - responseValidationFactory( - [["200", s_billing_credit_balance_transaction]], - s_error, - ) - router.get( "getBillingCreditBalanceTransactionsId", "/v1/billing/credit_balance_transactions/:id", @@ -20884,22 +26034,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingCreditBalanceTransactionsId(input, responder, ctx) + .getBillingCreditBalanceTransactionsId( + input, + getBillingCreditBalanceTransactionsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20931,24 +26071,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingCreditGrantsBodySchema = z.object({}).optional() - const getBillingCreditGrantsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_billing_credit_grant)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/billing/credit_grants")), - }), - ], - ], - s_error, - ) - router.get( "getBillingCreditGrants", "/v1/billing/credit_grants", @@ -20968,25 +26090,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_billing_credit_grant[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingCreditGrants(input, responder, ctx) + .getBillingCreditGrants(input, getBillingCreditGrantsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21023,11 +26128,6 @@ export function createRouter(implementation: Implementation): KoaRouter { priority: z.coerce.number().optional(), }) - const postBillingCreditGrantsResponseValidator = responseValidationFactory( - [["200", s_billing_credit_grant]], - s_error, - ) - router.post( "postBillingCreditGrants", "/v1/billing/credit_grants", @@ -21043,20 +26143,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingCreditGrants(input, responder, ctx) + .postBillingCreditGrants(input, postBillingCreditGrantsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21085,11 +26173,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingCreditGrantsIdBodySchema = z.object({}).optional() - const getBillingCreditGrantsIdResponseValidator = responseValidationFactory( - [["200", s_billing_credit_grant]], - s_error, - ) - router.get( "getBillingCreditGrantsId", "/v1/billing/credit_grants/:id", @@ -21113,20 +26196,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingCreditGrantsId(input, responder, ctx) + .getBillingCreditGrantsId(input, getBillingCreditGrantsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21152,11 +26223,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postBillingCreditGrantsIdResponseValidator = responseValidationFactory( - [["200", s_billing_credit_grant]], - s_error, - ) - router.post( "postBillingCreditGrantsId", "/v1/billing/credit_grants/:id", @@ -21176,20 +26242,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingCreditGrantsId(input, responder, ctx) + .postBillingCreditGrantsId( + input, + postBillingCreditGrantsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21211,9 +26269,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postBillingCreditGrantsIdExpireResponseValidator = - responseValidationFactory([["200", s_billing_credit_grant]], s_error) - router.post( "postBillingCreditGrantsIdExpire", "/v1/billing/credit_grants/:id/expire", @@ -21233,20 +26288,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingCreditGrantsIdExpire(input, responder, ctx) + .postBillingCreditGrantsIdExpire( + input, + postBillingCreditGrantsIdExpireResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21268,9 +26315,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postBillingCreditGrantsIdVoidResponseValidator = - responseValidationFactory([["200", s_billing_credit_grant]], s_error) - router.post( "postBillingCreditGrantsIdVoid", "/v1/billing/credit_grants/:id/void", @@ -21290,20 +26334,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingCreditGrantsIdVoid(input, responder, ctx) + .postBillingCreditGrantsIdVoid( + input, + postBillingCreditGrantsIdVoidResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21324,12 +26360,6 @@ export function createRouter(implementation: Implementation): KoaRouter { type: z.enum(["cancel"]), }) - const postBillingMeterEventAdjustmentsResponseValidator = - responseValidationFactory( - [["200", s_billing_meter_event_adjustment]], - s_error, - ) - router.post( "postBillingMeterEventAdjustments", "/v1/billing/meter_event_adjustments", @@ -21345,20 +26375,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingMeterEventAdjustments(input, responder, ctx) + .postBillingMeterEventAdjustments( + input, + postBillingMeterEventAdjustmentsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21380,11 +26402,6 @@ export function createRouter(implementation: Implementation): KoaRouter { timestamp: z.coerce.number().optional(), }) - const postBillingMeterEventsResponseValidator = responseValidationFactory( - [["200", s_billing_meter_event]], - s_error, - ) - router.post( "postBillingMeterEvents", "/v1/billing/meter_events", @@ -21400,20 +26417,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingMeterEvents(input, responder, ctx) + .postBillingMeterEvents(input, postBillingMeterEventsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21442,21 +26447,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingMetersBodySchema = z.object({}).optional() - const getBillingMetersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_billing_meter), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/billing/meters")), - }), - ], - ], - s_error, - ) - router.get("getBillingMeters", "/v1/billing/meters", async (ctx, next) => { const input = { params: undefined, @@ -21473,25 +26463,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_billing_meter[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingMeters(input, responder, ctx) + .getBillingMeters(input, getBillingMetersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21523,11 +26496,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postBillingMetersResponseValidator = responseValidationFactory( - [["200", s_billing_meter]], - s_error, - ) - router.post("postBillingMeters", "/v1/billing/meters", async (ctx, next) => { const input = { params: undefined, @@ -21540,20 +26508,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingMeters(input, responder, ctx) + .postBillingMeters(input, postBillingMetersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21579,11 +26535,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingMetersIdBodySchema = z.object({}).optional() - const getBillingMetersIdResponseValidator = responseValidationFactory( - [["200", s_billing_meter]], - s_error, - ) - router.get( "getBillingMetersId", "/v1/billing/meters/:id", @@ -21607,20 +26558,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingMetersId(input, responder, ctx) + .getBillingMetersId(input, getBillingMetersIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21643,11 +26582,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postBillingMetersIdResponseValidator = responseValidationFactory( - [["200", s_billing_meter]], - s_error, - ) - router.post( "postBillingMetersId", "/v1/billing/meters/:id", @@ -21667,20 +26601,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingMetersId(input, responder, ctx) + .postBillingMetersId(input, postBillingMetersIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21702,9 +26624,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postBillingMetersIdDeactivateResponseValidator = - responseValidationFactory([["200", s_billing_meter]], s_error) - router.post( "postBillingMetersIdDeactivate", "/v1/billing/meters/:id/deactivate", @@ -21724,20 +26643,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingMetersIdDeactivate(input, responder, ctx) + .postBillingMetersIdDeactivate( + input, + postBillingMetersIdDeactivateResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21773,25 +26684,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingMetersIdEventSummariesBodySchema = z.object({}).optional() - const getBillingMetersIdEventSummariesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_billing_meter_event_summary), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/billing/meters/[^/]+/event_summaries")), - }), - ], - ], - s_error, - ) - router.get( "getBillingMetersIdEventSummaries", "/v1/billing/meters/:id/event_summaries", @@ -21815,25 +26707,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_billing_meter_event_summary[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingMetersIdEventSummaries(input, responder, ctx) + .getBillingMetersIdEventSummaries( + input, + getBillingMetersIdEventSummariesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21855,9 +26734,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postBillingMetersIdReactivateResponseValidator = - responseValidationFactory([["200", s_billing_meter]], s_error) - router.post( "postBillingMetersIdReactivate", "/v1/billing/meters/:id/reactivate", @@ -21877,20 +26753,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingMetersIdReactivate(input, responder, ctx) + .postBillingMetersIdReactivate( + input, + postBillingMetersIdReactivateResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21920,25 +26788,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getBillingPortalConfigurationsBodySchema = z.object({}).optional() - const getBillingPortalConfigurationsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_billing_portal_configuration), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/billing_portal/configurations")), - }), - ], - ], - s_error, - ) - router.get( "getBillingPortalConfigurations", "/v1/billing_portal/configurations", @@ -21958,25 +26807,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_billing_portal_configuration[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingPortalConfigurations(input, responder, ctx) + .getBillingPortalConfigurations( + input, + getBillingPortalConfigurationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22098,12 +26934,6 @@ export function createRouter(implementation: Implementation): KoaRouter { metadata: z.record(z.string()).optional(), }) - const postBillingPortalConfigurationsResponseValidator = - responseValidationFactory( - [["200", s_billing_portal_configuration]], - s_error, - ) - router.post( "postBillingPortalConfigurations", "/v1/billing_portal/configurations", @@ -22119,20 +26949,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingPortalConfigurations(input, responder, ctx) + .postBillingPortalConfigurations( + input, + postBillingPortalConfigurationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22163,12 +26985,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getBillingPortalConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [["200", s_billing_portal_configuration]], - s_error, - ) - router.get( "getBillingPortalConfigurationsConfiguration", "/v1/billing_portal/configurations/:configuration", @@ -22192,20 +27008,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getBillingPortalConfigurationsConfiguration(input, responder, ctx) + .getBillingPortalConfigurationsConfiguration( + input, + getBillingPortalConfigurationsConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22344,12 +27152,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postBillingPortalConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [["200", s_billing_portal_configuration]], - s_error, - ) - router.post( "postBillingPortalConfigurationsConfiguration", "/v1/billing_portal/configurations/:configuration", @@ -22369,20 +27171,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingPortalConfigurationsConfiguration(input, responder, ctx) + .postBillingPortalConfigurationsConfiguration( + input, + postBillingPortalConfigurationsConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22515,11 +27309,6 @@ export function createRouter(implementation: Implementation): KoaRouter { return_url: z.string().optional(), }) - const postBillingPortalSessionsResponseValidator = responseValidationFactory( - [["200", s_billing_portal_session]], - s_error, - ) - router.post( "postBillingPortalSessions", "/v1/billing_portal/sessions", @@ -22535,20 +27324,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postBillingPortalSessions(input, responder, ctx) + .postBillingPortalSessions( + input, + postBillingPortalSessionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22590,21 +27371,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getChargesBodySchema = z.object({}).optional() - const getChargesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_charge)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/charges")), - }), - ], - ], - s_error, - ) - router.get("getCharges", "/v1/charges", async (ctx, next) => { const input = { params: undefined, @@ -22621,25 +27387,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_charge[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCharges(input, responder, ctx) + .getCharges(input, getChargesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22726,11 +27475,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postChargesResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, - ) - router.post("postCharges", "/v1/charges", async (ctx, next) => { const input = { params: undefined, @@ -22743,20 +27487,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCharges(input, responder, ctx) + .postCharges(input, postChargesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22783,23 +27515,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getChargesSearchBodySchema = z.object({}).optional() - const getChargesSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_charge)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getChargesSearch", "/v1/charges/search", async (ctx, next) => { const input = { params: undefined, @@ -22816,27 +27531,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_charge[] - has_more: boolean - next_page?: string | null - object: "search_result" - total_count?: number - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getChargesSearch(input, responder, ctx) + .getChargesSearch(input, getChargesSearchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22862,11 +27558,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getChargesChargeBodySchema = z.object({}).optional() - const getChargesChargeResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, - ) - router.get("getChargesCharge", "/v1/charges/:charge", async (ctx, next) => { const input = { params: parseRequestInput( @@ -22887,20 +27578,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getChargesCharge(input, responder, ctx) + .getChargesCharge(input, getChargesChargeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22947,11 +27626,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postChargesChargeResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, - ) - router.post("postChargesCharge", "/v1/charges/:charge", async (ctx, next) => { const input = { params: parseRequestInput( @@ -22968,20 +27642,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postChargesCharge(input, responder, ctx) + .postChargesCharge(input, postChargesChargeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23014,11 +27676,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postChargesChargeCaptureResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, - ) - router.post( "postChargesChargeCapture", "/v1/charges/:charge/capture", @@ -23038,20 +27695,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postChargesChargeCapture(input, responder, ctx) + .postChargesChargeCapture(input, postChargesChargeCaptureResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23080,11 +27725,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getChargesChargeDisputeBodySchema = z.object({}).optional() - const getChargesChargeDisputeResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, - ) - router.get( "getChargesChargeDispute", "/v1/charges/:charge/dispute", @@ -23108,20 +27748,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getChargesChargeDispute(input, responder, ctx) + .getChargesChargeDispute(input, getChargesChargeDisputeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23286,11 +27914,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postChargesChargeDisputeResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, - ) - router.post( "postChargesChargeDispute", "/v1/charges/:charge/dispute", @@ -23310,20 +27933,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postChargesChargeDispute(input, responder, ctx) + .postChargesChargeDispute(input, postChargesChargeDisputeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23345,9 +27956,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postChargesChargeDisputeCloseResponseValidator = - responseValidationFactory([["200", s_dispute]], s_error) - router.post( "postChargesChargeDisputeClose", "/v1/charges/:charge/dispute/close", @@ -23367,20 +27975,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postChargesChargeDisputeClose(input, responder, ctx) + .postChargesChargeDisputeClose( + input, + postChargesChargeDisputeCloseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23413,11 +28013,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postChargesChargeRefundResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, - ) - router.post( "postChargesChargeRefund", "/v1/charges/:charge/refund", @@ -23437,20 +28032,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postChargesChargeRefund(input, responder, ctx) + .postChargesChargeRefund(input, postChargesChargeRefundResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23480,21 +28063,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getChargesChargeRefundsBodySchema = z.object({}).optional() - const getChargesChargeRefundsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_refund)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getChargesChargeRefunds", "/v1/charges/:charge/refunds", @@ -23518,25 +28086,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_refund[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getChargesChargeRefunds(input, responder, ctx) + .getChargesChargeRefunds(input, getChargesChargeRefundsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23572,11 +28123,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postChargesChargeRefundsResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, - ) - router.post( "postChargesChargeRefunds", "/v1/charges/:charge/refunds", @@ -23596,20 +28142,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postChargesChargeRefunds(input, responder, ctx) + .postChargesChargeRefunds(input, postChargesChargeRefundsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23639,9 +28173,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getChargesChargeRefundsRefundBodySchema = z.object({}).optional() - const getChargesChargeRefundsRefundResponseValidator = - responseValidationFactory([["200", s_refund]], s_error) - router.get( "getChargesChargeRefundsRefund", "/v1/charges/:charge/refunds/:refund", @@ -23665,20 +28196,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getChargesChargeRefundsRefund(input, responder, ctx) + .getChargesChargeRefundsRefund( + input, + getChargesChargeRefundsRefundResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23704,9 +28227,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postChargesChargeRefundsRefundResponseValidator = - responseValidationFactory([["200", s_refund]], s_error) - router.post( "postChargesChargeRefundsRefund", "/v1/charges/:charge/refunds/:refund", @@ -23726,20 +28246,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postChargesChargeRefundsRefund(input, responder, ctx) + .postChargesChargeRefundsRefund( + input, + postChargesChargeRefundsRefundResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23784,21 +28296,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCheckoutSessionsBodySchema = z.object({}).optional() - const getCheckoutSessionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_checkout_session)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCheckoutSessions", "/v1/checkout/sessions", @@ -23818,25 +28315,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_checkout_session[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCheckoutSessions(input, responder, ctx) + .getCheckoutSessions(input, getCheckoutSessionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24929,11 +29409,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCheckoutSessionsResponseValidator = responseValidationFactory( - [["200", s_checkout_session]], - s_error, - ) - router.post( "postCheckoutSessions", "/v1/checkout/sessions", @@ -24949,20 +29424,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCheckoutSessions(input, responder, ctx) + .postCheckoutSessions(input, postCheckoutSessionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24991,11 +29454,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCheckoutSessionsSessionBodySchema = z.object({}).optional() - const getCheckoutSessionsSessionResponseValidator = responseValidationFactory( - [["200", s_checkout_session]], - s_error, - ) - router.get( "getCheckoutSessionsSession", "/v1/checkout/sessions/:session", @@ -25019,20 +29477,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCheckoutSessionsSession(input, responder, ctx) + .getCheckoutSessionsSession( + input, + getCheckoutSessionsSessionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25139,9 +29589,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCheckoutSessionsSessionResponseValidator = - responseValidationFactory([["200", s_checkout_session]], s_error) - router.post( "postCheckoutSessionsSession", "/v1/checkout/sessions/:session", @@ -25161,20 +29608,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCheckoutSessionsSession(input, responder, ctx) + .postCheckoutSessionsSession( + input, + postCheckoutSessionsSessionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25196,9 +29635,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postCheckoutSessionsSessionExpireResponseValidator = - responseValidationFactory([["200", s_checkout_session]], s_error) - router.post( "postCheckoutSessionsSessionExpire", "/v1/checkout/sessions/:session/expire", @@ -25218,20 +29654,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCheckoutSessionsSessionExpire(input, responder, ctx) + .postCheckoutSessionsSessionExpire( + input, + postCheckoutSessionsSessionExpireResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25266,22 +29694,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCheckoutSessionsSessionLineItemsBodySchema = z.object({}).optional() - const getCheckoutSessionsSessionLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCheckoutSessionsSessionLineItems", "/v1/checkout/sessions/:session/line_items", @@ -25305,25 +29717,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCheckoutSessionsSessionLineItems(input, responder, ctx) + .getCheckoutSessionsSessionLineItems( + input, + getCheckoutSessionsSessionLineItemsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25354,21 +29753,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getClimateOrdersBodySchema = z.object({}).optional() - const getClimateOrdersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_climate_order), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/climate/orders")), - }), - ], - ], - s_error, - ) - router.get("getClimateOrders", "/v1/climate/orders", async (ctx, next) => { const input = { params: undefined, @@ -25385,25 +29769,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_climate_order[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getClimateOrders(input, responder, ctx) + .getClimateOrders(input, getClimateOrdersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25426,11 +29793,6 @@ export function createRouter(implementation: Implementation): KoaRouter { product: z.string().max(5000), }) - const postClimateOrdersResponseValidator = responseValidationFactory( - [["200", s_climate_order]], - s_error, - ) - router.post("postClimateOrders", "/v1/climate/orders", async (ctx, next) => { const input = { params: undefined, @@ -25443,20 +29805,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postClimateOrders(input, responder, ctx) + .postClimateOrders(input, postClimateOrdersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25484,11 +29834,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getClimateOrdersOrderBodySchema = z.object({}).optional() - const getClimateOrdersOrderResponseValidator = responseValidationFactory( - [["200", s_climate_order]], - s_error, - ) - router.get( "getClimateOrdersOrder", "/v1/climate/orders/:order", @@ -25512,20 +29857,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getClimateOrdersOrder(input, responder, ctx) + .getClimateOrdersOrder(input, getClimateOrdersOrderResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25558,11 +29891,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postClimateOrdersOrderResponseValidator = responseValidationFactory( - [["200", s_climate_order]], - s_error, - ) - router.post( "postClimateOrdersOrder", "/v1/climate/orders/:order", @@ -25582,20 +29910,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postClimateOrdersOrder(input, responder, ctx) + .postClimateOrdersOrder(input, postClimateOrdersOrderResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25617,9 +29933,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postClimateOrdersOrderCancelResponseValidator = - responseValidationFactory([["200", s_climate_order]], s_error) - router.post( "postClimateOrdersOrderCancel", "/v1/climate/orders/:order/cancel", @@ -25639,20 +29952,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postClimateOrdersOrderCancel(input, responder, ctx) + .postClimateOrdersOrderCancel( + input, + postClimateOrdersOrderCancelResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25680,21 +29985,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getClimateProductsBodySchema = z.object({}).optional() - const getClimateProductsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_climate_product), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/climate/products")), - }), - ], - ], - s_error, - ) - router.get( "getClimateProducts", "/v1/climate/products", @@ -25714,25 +30004,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_climate_product[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getClimateProducts(input, responder, ctx) + .getClimateProducts(input, getClimateProductsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25761,11 +30034,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getClimateProductsProductBodySchema = z.object({}).optional() - const getClimateProductsProductResponseValidator = responseValidationFactory( - [["200", s_climate_product]], - s_error, - ) - router.get( "getClimateProductsProduct", "/v1/climate/products/:product", @@ -25789,20 +30057,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getClimateProductsProduct(input, responder, ctx) + .getClimateProductsProduct( + input, + getClimateProductsProductResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25830,21 +30090,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getClimateSuppliersBodySchema = z.object({}).optional() - const getClimateSuppliersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_climate_supplier), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/climate/suppliers")), - }), - ], - ], - s_error, - ) - router.get( "getClimateSuppliers", "/v1/climate/suppliers", @@ -25864,25 +30109,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_climate_supplier[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getClimateSuppliers(input, responder, ctx) + .getClimateSuppliers(input, getClimateSuppliersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25911,9 +30139,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getClimateSuppliersSupplierBodySchema = z.object({}).optional() - const getClimateSuppliersSupplierResponseValidator = - responseValidationFactory([["200", s_climate_supplier]], s_error) - router.get( "getClimateSuppliersSupplier", "/v1/climate/suppliers/:supplier", @@ -25937,20 +30162,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getClimateSuppliersSupplier(input, responder, ctx) + .getClimateSuppliersSupplier( + input, + getClimateSuppliersSupplierResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25981,9 +30198,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getConfirmationTokensConfirmationTokenResponseValidator = - responseValidationFactory([["200", s_confirmation_token]], s_error) - router.get( "getConfirmationTokensConfirmationToken", "/v1/confirmation_tokens/:confirmation_token", @@ -26007,20 +30221,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getConfirmationTokensConfirmationToken(input, responder, ctx) + .getConfirmationTokensConfirmationToken( + input, + getConfirmationTokensConfirmationTokenResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26051,21 +30257,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCountrySpecsBodySchema = z.object({}).optional() - const getCountrySpecsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_country_spec), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/country_specs")), - }), - ], - ], - s_error, - ) - router.get("getCountrySpecs", "/v1/country_specs", async (ctx, next) => { const input = { params: undefined, @@ -26082,25 +30273,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_country_spec[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCountrySpecs(input, responder, ctx) + .getCountrySpecs(input, getCountrySpecsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26128,11 +30302,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCountrySpecsCountryBodySchema = z.object({}).optional() - const getCountrySpecsCountryResponseValidator = responseValidationFactory( - [["200", s_country_spec]], - s_error, - ) - router.get( "getCountrySpecsCountry", "/v1/country_specs/:country", @@ -26156,20 +30325,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCountrySpecsCountry(input, responder, ctx) + .getCountrySpecsCountry(input, getCountrySpecsCountryResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26208,21 +30365,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCouponsBodySchema = z.object({}).optional() - const getCouponsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_coupon), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/coupons")), - }), - ], - ], - s_error, - ) - router.get("getCoupons", "/v1/coupons", async (ctx, next) => { const input = { params: undefined, @@ -26239,25 +30381,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_coupon[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCoupons(input, responder, ctx) + .getCoupons(input, getCouponsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26292,11 +30417,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCouponsResponseValidator = responseValidationFactory( - [["200", s_coupon]], - s_error, - ) - router.post("postCoupons", "/v1/coupons", async (ctx, next) => { const input = { params: undefined, @@ -26309,20 +30429,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCoupons(input, responder, ctx) + .postCoupons(input, postCouponsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26341,11 +30449,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteCouponsCouponBodySchema = z.object({}).optional() - const deleteCouponsCouponResponseValidator = responseValidationFactory( - [["200", s_deleted_coupon]], - s_error, - ) - router.delete( "deleteCouponsCoupon", "/v1/coupons/:coupon", @@ -26365,20 +30468,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteCouponsCoupon(input, responder, ctx) + .deleteCouponsCoupon(input, deleteCouponsCouponResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26405,11 +30496,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCouponsCouponBodySchema = z.object({}).optional() - const getCouponsCouponResponseValidator = responseValidationFactory( - [["200", s_coupon]], - s_error, - ) - router.get("getCouponsCoupon", "/v1/coupons/:coupon", async (ctx, next) => { const input = { params: parseRequestInput( @@ -26430,20 +30516,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCouponsCoupon(input, responder, ctx) + .getCouponsCoupon(input, getCouponsCouponResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26471,11 +30545,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCouponsCouponResponseValidator = responseValidationFactory( - [["200", s_coupon]], - s_error, - ) - router.post("postCouponsCoupon", "/v1/coupons/:coupon", async (ctx, next) => { const input = { params: parseRequestInput( @@ -26492,20 +30561,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCouponsCoupon(input, responder, ctx) + .postCouponsCoupon(input, postCouponsCouponResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26545,21 +30602,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCreditNotesBodySchema = z.object({}).optional() - const getCreditNotesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_credit_note)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getCreditNotes", "/v1/credit_notes", async (ctx, next) => { const input = { params: undefined, @@ -26576,25 +30618,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_credit_note[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCreditNotes(input, responder, ctx) + .getCreditNotes(input, getCreditNotesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26667,11 +30692,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postCreditNotesResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, - ) - router.post("postCreditNotes", "/v1/credit_notes", async (ctx, next) => { const input = { params: undefined, @@ -26684,20 +30704,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCreditNotes(input, responder, ctx) + .postCreditNotes(input, postCreditNotesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26783,11 +30791,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCreditNotesPreviewBodySchema = z.object({}).optional() - const getCreditNotesPreviewResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, - ) - router.get( "getCreditNotesPreview", "/v1/credit_notes/preview", @@ -26807,20 +30810,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCreditNotesPreview(input, responder, ctx) + .getCreditNotesPreview(input, getCreditNotesPreviewResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26910,21 +30901,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCreditNotesPreviewLinesBodySchema = z.object({}).optional() - const getCreditNotesPreviewLinesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_credit_note_line_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCreditNotesPreviewLines", "/v1/credit_notes/preview/lines", @@ -26944,25 +30920,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_credit_note_line_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCreditNotesPreviewLines(input, responder, ctx) + .getCreditNotesPreviewLines( + input, + getCreditNotesPreviewLinesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26994,22 +30957,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCreditNotesCreditNoteLinesBodySchema = z.object({}).optional() - const getCreditNotesCreditNoteLinesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_credit_note_line_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCreditNotesCreditNoteLines", "/v1/credit_notes/:credit_note/lines", @@ -27033,25 +30980,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_credit_note_line_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCreditNotesCreditNoteLines(input, responder, ctx) + .getCreditNotesCreditNoteLines( + input, + getCreditNotesCreditNoteLinesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27078,11 +31012,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCreditNotesIdBodySchema = z.object({}).optional() - const getCreditNotesIdResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, - ) - router.get("getCreditNotesId", "/v1/credit_notes/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -27103,20 +31032,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCreditNotesId(input, responder, ctx) + .getCreditNotesId(input, getCreditNotesIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27139,11 +31056,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCreditNotesIdResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, - ) - router.post( "postCreditNotesId", "/v1/credit_notes/:id", @@ -27163,20 +31075,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCreditNotesId(input, responder, ctx) + .postCreditNotesId(input, postCreditNotesIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27198,11 +31098,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postCreditNotesIdVoidResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, - ) - router.post( "postCreditNotesIdVoid", "/v1/credit_notes/:id/void", @@ -27222,20 +31117,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCreditNotesIdVoid(input, responder, ctx) + .postCreditNotesIdVoid(input, postCreditNotesIdVoidResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27279,11 +31162,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.array(z.string().max(5000)).optional(), }) - const postCustomerSessionsResponseValidator = responseValidationFactory( - [["200", s_customer_session]], - s_error, - ) - router.post( "postCustomerSessions", "/v1/customer_sessions", @@ -27299,20 +31177,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomerSessions(input, responder, ctx) + .postCustomerSessions(input, postCustomerSessionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27353,21 +31219,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersBodySchema = z.object({}).optional() - const getCustomersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_customer)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/customers")), - }), - ], - ], - s_error, - ) - router.get("getCustomers", "/v1/customers", async (ctx, next) => { const input = { params: undefined, @@ -27384,25 +31235,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_customer[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomers(input, responder, ctx) + .getCustomers(input, getCustomersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27618,11 +31452,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersResponseValidator = responseValidationFactory( - [["200", s_customer]], - s_error, - ) - router.post("postCustomers", "/v1/customers", async (ctx, next) => { const input = { params: undefined, @@ -27635,20 +31464,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomers(input, responder, ctx) + .postCustomers(input, postCustomersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27675,23 +31492,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersSearchBodySchema = z.object({}).optional() - const getCustomersSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_customer)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersSearch", "/v1/customers/search", @@ -27711,27 +31511,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_customer[] - has_more: boolean - next_page?: string | null - object: "search_result" - total_count?: number - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersSearch(input, responder, ctx) + .getCustomersSearch(input, getCustomersSearchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27751,11 +31532,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteCustomersCustomerBodySchema = z.object({}).optional() - const deleteCustomersCustomerResponseValidator = responseValidationFactory( - [["200", s_deleted_customer]], - s_error, - ) - router.delete( "deleteCustomersCustomer", "/v1/customers/:customer", @@ -27775,20 +31551,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteCustomersCustomer(input, responder, ctx) + .deleteCustomersCustomer(input, deleteCustomersCustomerResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27817,11 +31581,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerBodySchema = z.object({}).optional() - const getCustomersCustomerResponseValidator = responseValidationFactory( - [["200", z.union([z.lazy(() => s_customer), s_deleted_customer])]], - s_error, - ) - router.get( "getCustomersCustomer", "/v1/customers/:customer", @@ -27845,20 +31604,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomer(input, responder, ctx) + .getCustomersCustomer(input, getCustomersCustomerResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28008,11 +31755,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerResponseValidator = responseValidationFactory( - [["200", s_customer]], - s_error, - ) - router.post( "postCustomersCustomer", "/v1/customers/:customer", @@ -28032,20 +31774,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomer(input, responder, ctx) + .postCustomersCustomer(input, postCustomersCustomerResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28079,22 +31809,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getCustomersCustomerBalanceTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_customer_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersCustomerBalanceTransactions", "/v1/customers/:customer/balance_transactions", @@ -28118,25 +31832,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_customer_balance_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerBalanceTransactions(input, responder, ctx) + .getCustomersCustomerBalanceTransactions( + input, + getCustomersCustomerBalanceTransactionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28165,12 +31866,6 @@ export function createRouter(implementation: Implementation): KoaRouter { metadata: z.union([z.record(z.string()), z.enum([""])]).optional(), }) - const postCustomersCustomerBalanceTransactionsResponseValidator = - responseValidationFactory( - [["200", s_customer_balance_transaction]], - s_error, - ) - router.post( "postCustomersCustomerBalanceTransactions", "/v1/customers/:customer/balance_transactions", @@ -28190,20 +31885,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerBalanceTransactions(input, responder, ctx) + .postCustomersCustomerBalanceTransactions( + input, + postCustomersCustomerBalanceTransactionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28237,12 +31924,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getCustomersCustomerBalanceTransactionsTransactionResponseValidator = - responseValidationFactory( - [["200", s_customer_balance_transaction]], - s_error, - ) - router.get( "getCustomersCustomerBalanceTransactionsTransaction", "/v1/customers/:customer/balance_transactions/:transaction", @@ -28266,22 +31947,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .getCustomersCustomerBalanceTransactionsTransaction( input, - responder, + getCustomersCustomerBalanceTransactionsTransactionResponder, ctx, ) .catch((err) => { @@ -28315,12 +31984,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerBalanceTransactionsTransactionResponseValidator = - responseValidationFactory( - [["200", s_customer_balance_transaction]], - s_error, - ) - router.post( "postCustomersCustomerBalanceTransactionsTransaction", "/v1/customers/:customer/balance_transactions/:transaction", @@ -28340,22 +32003,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postCustomersCustomerBalanceTransactionsTransaction( input, - responder, + postCustomersCustomerBalanceTransactionsTransactionResponder, ctx, ) .catch((err) => { @@ -28393,22 +32044,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerBankAccountsBodySchema = z.object({}).optional() - const getCustomersCustomerBankAccountsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_bank_account)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersCustomerBankAccounts", "/v1/customers/:customer/bank_accounts", @@ -28432,25 +32067,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_bank_account[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerBankAccounts(input, responder, ctx) + .getCustomersCustomerBankAccounts( + input, + getCustomersCustomerBankAccountsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28511,9 +32133,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerBankAccountsResponseValidator = - responseValidationFactory([["200", s_payment_source]], s_error) - router.post( "postCustomersCustomerBankAccounts", "/v1/customers/:customer/bank_accounts", @@ -28533,20 +32152,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerBankAccounts(input, responder, ctx) + .postCustomersCustomerBankAccounts( + input, + postCustomersCustomerBankAccountsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28572,17 +32183,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const deleteCustomersCustomerBankAccountsIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), - ], - ], - s_error, - ) - router.delete( "deleteCustomersCustomerBankAccountsId", "/v1/customers/:customer/bank_accounts/:id", @@ -28602,22 +32202,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_payment_source | t_deleted_payment_source - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteCustomersCustomerBankAccountsId(input, responder, ctx) + .deleteCustomersCustomerBankAccountsId( + input, + deleteCustomersCustomerBankAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28650,9 +32240,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerBankAccountsIdBodySchema = z.object({}).optional() - const getCustomersCustomerBankAccountsIdResponseValidator = - responseValidationFactory([["200", s_bank_account]], s_error) - router.get( "getCustomersCustomerBankAccountsId", "/v1/customers/:customer/bank_accounts/:id", @@ -28676,20 +32263,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerBankAccountsId(input, responder, ctx) + .getCustomersCustomerBankAccountsId( + input, + getCustomersCustomerBankAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28746,21 +32325,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerBankAccountsIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.lazy(() => s_card), - z.lazy(() => s_bank_account), - s_source, - ]), - ], - ], - s_error, - ) - router.post( "postCustomersCustomerBankAccountsId", "/v1/customers/:customer/bank_accounts/:id", @@ -28780,20 +32344,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerBankAccountsId(input, responder, ctx) + .postCustomersCustomerBankAccountsId( + input, + postCustomersCustomerBankAccountsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28822,9 +32378,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerBankAccountsIdVerifyResponseValidator = - responseValidationFactory([["200", s_bank_account]], s_error) - router.post( "postCustomersCustomerBankAccountsIdVerify", "/v1/customers/:customer/bank_accounts/:id/verify", @@ -28844,20 +32397,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerBankAccountsIdVerify(input, responder, ctx) + .postCustomersCustomerBankAccountsIdVerify( + input, + postCustomersCustomerBankAccountsIdVerifyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28892,21 +32437,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerCardsBodySchema = z.object({}).optional() - const getCustomersCustomerCardsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_card)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersCustomerCards", "/v1/customers/:customer/cards", @@ -28930,25 +32460,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_card[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerCards(input, responder, ctx) + .getCustomersCustomerCards( + input, + getCustomersCustomerCardsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29009,11 +32526,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerCardsResponseValidator = responseValidationFactory( - [["200", s_payment_source]], - s_error, - ) - router.post( "postCustomersCustomerCards", "/v1/customers/:customer/cards", @@ -29033,20 +32545,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerCards(input, responder, ctx) + .postCustomersCustomerCards( + input, + postCustomersCustomerCardsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29069,17 +32573,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const deleteCustomersCustomerCardsIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), - ], - ], - s_error, - ) - router.delete( "deleteCustomersCustomerCardsId", "/v1/customers/:customer/cards/:id", @@ -29099,22 +32592,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_payment_source | t_deleted_payment_source - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteCustomersCustomerCardsId(input, responder, ctx) + .deleteCustomersCustomerCardsId( + input, + deleteCustomersCustomerCardsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29144,9 +32627,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerCardsIdBodySchema = z.object({}).optional() - const getCustomersCustomerCardsIdResponseValidator = - responseValidationFactory([["200", s_card]], s_error) - router.get( "getCustomersCustomerCardsId", "/v1/customers/:customer/cards/:id", @@ -29170,20 +32650,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerCardsId(input, responder, ctx) + .getCustomersCustomerCardsId( + input, + getCustomersCustomerCardsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29237,21 +32709,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerCardsIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.lazy(() => s_card), - z.lazy(() => s_bank_account), - s_source, - ]), - ], - ], - s_error, - ) - router.post( "postCustomersCustomerCardsId", "/v1/customers/:customer/cards/:id", @@ -29271,20 +32728,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerCardsId(input, responder, ctx) + .postCustomersCustomerCardsId( + input, + postCustomersCustomerCardsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29313,9 +32762,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerCashBalanceBodySchema = z.object({}).optional() - const getCustomersCustomerCashBalanceResponseValidator = - responseValidationFactory([["200", s_cash_balance]], s_error) - router.get( "getCustomersCustomerCashBalance", "/v1/customers/:customer/cash_balance", @@ -29339,20 +32785,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerCashBalance(input, responder, ctx) + .getCustomersCustomerCashBalance( + input, + getCustomersCustomerCashBalanceResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29383,9 +32821,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerCashBalanceResponseValidator = - responseValidationFactory([["200", s_cash_balance]], s_error) - router.post( "postCustomersCustomerCashBalance", "/v1/customers/:customer/cash_balance", @@ -29405,20 +32840,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerCashBalance(input, responder, ctx) + .postCustomersCustomerCashBalance( + input, + postCustomersCustomerCashBalanceResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29452,22 +32879,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getCustomersCustomerCashBalanceTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_customer_cash_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersCustomerCashBalanceTransactions", "/v1/customers/:customer/cash_balance_transactions", @@ -29491,25 +32902,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_customer_cash_balance_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerCashBalanceTransactions(input, responder, ctx) + .getCustomersCustomerCashBalanceTransactions( + input, + getCustomersCustomerCashBalanceTransactionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29543,12 +32941,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getCustomersCustomerCashBalanceTransactionsTransactionResponseValidator = - responseValidationFactory( - [["200", s_customer_cash_balance_transaction]], - s_error, - ) - router.get( "getCustomersCustomerCashBalanceTransactionsTransaction", "/v1/customers/:customer/cash_balance_transactions/:transaction", @@ -29572,24 +32964,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .getCustomersCustomerCashBalanceTransactionsTransaction( input, - responder, + getCustomersCustomerCashBalanceTransactionsTransactionResponder, ctx, ) .catch((err) => { @@ -29615,9 +32993,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteCustomersCustomerDiscountBodySchema = z.object({}).optional() - const deleteCustomersCustomerDiscountResponseValidator = - responseValidationFactory([["200", s_deleted_discount]], s_error) - router.delete( "deleteCustomersCustomerDiscount", "/v1/customers/:customer/discount", @@ -29637,20 +33012,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteCustomersCustomerDiscount(input, responder, ctx) + .deleteCustomersCustomerDiscount( + input, + deleteCustomersCustomerDiscountResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29679,9 +33046,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerDiscountBodySchema = z.object({}).optional() - const getCustomersCustomerDiscountResponseValidator = - responseValidationFactory([["200", s_discount]], s_error) - router.get( "getCustomersCustomerDiscount", "/v1/customers/:customer/discount", @@ -29705,20 +33069,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerDiscount(input, responder, ctx) + .getCustomersCustomerDiscount( + input, + getCustomersCustomerDiscountResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29755,9 +33111,6 @@ export function createRouter(implementation: Implementation): KoaRouter { funding_type: z.enum(["bank_transfer"]), }) - const postCustomersCustomerFundingInstructionsResponseValidator = - responseValidationFactory([["200", s_funding_instructions]], s_error) - router.post( "postCustomersCustomerFundingInstructions", "/v1/customers/:customer/funding_instructions", @@ -29777,20 +33130,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerFundingInstructions(input, responder, ctx) + .postCustomersCustomerFundingInstructions( + input, + postCustomersCustomerFundingInstructionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29877,22 +33222,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerPaymentMethodsBodySchema = z.object({}).optional() - const getCustomersCustomerPaymentMethodsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_method)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersCustomerPaymentMethods", "/v1/customers/:customer/payment_methods", @@ -29916,25 +33245,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_payment_method[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerPaymentMethods(input, responder, ctx) + .getCustomersCustomerPaymentMethods( + input, + getCustomersCustomerPaymentMethodsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29969,9 +33285,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getCustomersCustomerPaymentMethodsPaymentMethodResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) - router.get( "getCustomersCustomerPaymentMethodsPaymentMethod", "/v1/customers/:customer/payment_methods/:payment_method", @@ -29995,20 +33308,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerPaymentMethodsPaymentMethod(input, responder, ctx) + .getCustomersCustomerPaymentMethodsPaymentMethod( + input, + getCustomersCustomerPaymentMethodsPaymentMethodResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30045,28 +33350,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerSourcesBodySchema = z.object({}).optional() - const getCustomersCustomerSourcesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array( - z.union([ - z.lazy(() => s_bank_account), - z.lazy(() => s_card), - s_source, - ]), - ), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersCustomerSources", "/v1/customers/:customer/sources", @@ -30090,25 +33373,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: (t_bank_account | t_card | t_source)[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerSources(input, responder, ctx) + .getCustomersCustomerSources( + input, + getCustomersCustomerSourcesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30169,9 +33439,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerSourcesResponseValidator = - responseValidationFactory([["200", s_payment_source]], s_error) - router.post( "postCustomersCustomerSources", "/v1/customers/:customer/sources", @@ -30191,20 +33458,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerSources(input, responder, ctx) + .postCustomersCustomerSources( + input, + postCustomersCustomerSourcesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30227,17 +33486,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const deleteCustomersCustomerSourcesIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), - ], - ], - s_error, - ) - router.delete( "deleteCustomersCustomerSourcesId", "/v1/customers/:customer/sources/:id", @@ -30257,22 +33505,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_payment_source | t_deleted_payment_source - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteCustomersCustomerSourcesId(input, responder, ctx) + .deleteCustomersCustomerSourcesId( + input, + deleteCustomersCustomerSourcesIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30302,9 +33540,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerSourcesIdBodySchema = z.object({}).optional() - const getCustomersCustomerSourcesIdResponseValidator = - responseValidationFactory([["200", s_payment_source]], s_error) - router.get( "getCustomersCustomerSourcesId", "/v1/customers/:customer/sources/:id", @@ -30328,20 +33563,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerSourcesId(input, responder, ctx) + .getCustomersCustomerSourcesId( + input, + getCustomersCustomerSourcesIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30395,21 +33622,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerSourcesIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.lazy(() => s_card), - z.lazy(() => s_bank_account), - s_source, - ]), - ], - ], - s_error, - ) - router.post( "postCustomersCustomerSourcesId", "/v1/customers/:customer/sources/:id", @@ -30429,20 +33641,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerSourcesId(input, responder, ctx) + .postCustomersCustomerSourcesId( + input, + postCustomersCustomerSourcesIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30468,9 +33672,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerSourcesIdVerifyResponseValidator = - responseValidationFactory([["200", s_bank_account]], s_error) - router.post( "postCustomersCustomerSourcesIdVerify", "/v1/customers/:customer/sources/:id/verify", @@ -30490,20 +33691,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerSourcesIdVerify(input, responder, ctx) + .postCustomersCustomerSourcesIdVerify( + input, + postCustomersCustomerSourcesIdVerifyResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30538,22 +33731,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerSubscriptionsBodySchema = z.object({}).optional() - const getCustomersCustomerSubscriptionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersCustomerSubscriptions", "/v1/customers/:customer/subscriptions", @@ -30577,25 +33754,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_subscription[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerSubscriptions(input, responder, ctx) + .getCustomersCustomerSubscriptions( + input, + getCustomersCustomerSubscriptionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30959,9 +34123,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerSubscriptionsResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - router.post( "postCustomersCustomerSubscriptions", "/v1/customers/:customer/subscriptions", @@ -30981,20 +34142,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerSubscriptions(input, responder, ctx) + .postCustomersCustomerSubscriptions( + input, + postCustomersCustomerSubscriptionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31025,9 +34178,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - router.delete( "deleteCustomersCustomerSubscriptionsSubscriptionExposedId", "/v1/customers/:customer/subscriptions/:subscription_exposed_id", @@ -31047,22 +34197,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .deleteCustomersCustomerSubscriptionsSubscriptionExposedId( input, - responder, + deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, ctx, ) .catch((err) => { @@ -31102,9 +34240,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - router.get( "getCustomersCustomerSubscriptionsSubscriptionExposedId", "/v1/customers/:customer/subscriptions/:subscription_exposed_id", @@ -31128,22 +34263,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .getCustomersCustomerSubscriptionsSubscriptionExposedId( input, - responder, + getCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, ctx, ) .catch((err) => { @@ -31543,9 +34666,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - router.post( "postCustomersCustomerSubscriptionsSubscriptionExposedId", "/v1/customers/:customer/subscriptions/:subscription_exposed_id", @@ -31565,22 +34685,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postCustomersCustomerSubscriptionsSubscriptionExposedId( input, - responder, + postCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, ctx, ) .catch((err) => { @@ -31609,9 +34717,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountBodySchema = z.object({}).optional() - const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponseValidator = - responseValidationFactory([["200", s_deleted_discount]], s_error) - router.delete( "deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount", "/v1/customers/:customer/subscriptions/:subscription_exposed_id/discount", @@ -31631,22 +34736,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount( input, - responder, + deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder, ctx, ) .catch((err) => { @@ -31685,9 +34778,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountBodySchema = z.object({}).optional() - const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponseValidator = - responseValidationFactory([["200", s_discount]], s_error) - router.get( "getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount", "/v1/customers/:customer/subscriptions/:subscription_exposed_id/discount", @@ -31711,22 +34801,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount( input, - responder, + getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder, ctx, ) .catch((err) => { @@ -31764,21 +34842,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerTaxIdsBodySchema = z.object({}).optional() - const getCustomersCustomerTaxIdsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_tax_id)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getCustomersCustomerTaxIds", "/v1/customers/:customer/tax_ids", @@ -31802,25 +34865,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_tax_id[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerTaxIds(input, responder, ctx) + .getCustomersCustomerTaxIds( + input, + getCustomersCustomerTaxIdsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31945,9 +34995,6 @@ export function createRouter(implementation: Implementation): KoaRouter { value: z.string(), }) - const postCustomersCustomerTaxIdsResponseValidator = - responseValidationFactory([["200", s_tax_id]], s_error) - router.post( "postCustomersCustomerTaxIds", "/v1/customers/:customer/tax_ids", @@ -31967,20 +35014,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postCustomersCustomerTaxIds(input, responder, ctx) + .postCustomersCustomerTaxIds( + input, + postCustomersCustomerTaxIdsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32001,9 +35040,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteCustomersCustomerTaxIdsIdBodySchema = z.object({}).optional() - const deleteCustomersCustomerTaxIdsIdResponseValidator = - responseValidationFactory([["200", s_deleted_tax_id]], s_error) - router.delete( "deleteCustomersCustomerTaxIdsId", "/v1/customers/:customer/tax_ids/:id", @@ -32023,20 +35059,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteCustomersCustomerTaxIdsId(input, responder, ctx) + .deleteCustomersCustomerTaxIdsId( + input, + deleteCustomersCustomerTaxIdsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32066,9 +35094,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getCustomersCustomerTaxIdsIdBodySchema = z.object({}).optional() - const getCustomersCustomerTaxIdsIdResponseValidator = - responseValidationFactory([["200", s_tax_id]], s_error) - router.get( "getCustomersCustomerTaxIdsId", "/v1/customers/:customer/tax_ids/:id", @@ -32092,20 +35117,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getCustomersCustomerTaxIdsId(input, responder, ctx) + .getCustomersCustomerTaxIdsId( + input, + getCustomersCustomerTaxIdsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32146,21 +35163,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getDisputesBodySchema = z.object({}).optional() - const getDisputesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_dispute)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/disputes")), - }), - ], - ], - s_error, - ) - router.get("getDisputes", "/v1/disputes", async (ctx, next) => { const input = { params: undefined, @@ -32177,25 +35179,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_dispute[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getDisputes(input, responder, ctx) + .getDisputes(input, getDisputesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32223,11 +35208,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getDisputesDisputeBodySchema = z.object({}).optional() - const getDisputesDisputeResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, - ) - router.get( "getDisputesDispute", "/v1/disputes/:dispute", @@ -32251,20 +35231,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getDisputesDispute(input, responder, ctx) + .getDisputesDispute(input, getDisputesDisputeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32429,11 +35397,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postDisputesDisputeResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, - ) - router.post( "postDisputesDispute", "/v1/disputes/:dispute", @@ -32453,20 +35416,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postDisputesDispute(input, responder, ctx) + .postDisputesDispute(input, postDisputesDisputeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32488,11 +35439,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postDisputesDisputeCloseResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, - ) - router.post( "postDisputesDisputeClose", "/v1/disputes/:dispute/close", @@ -32512,20 +35458,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postDisputesDisputeClose(input, responder, ctx) + .postDisputesDisputeClose(input, postDisputesDisputeCloseResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32554,22 +35488,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getEntitlementsActiveEntitlementsBodySchema = z.object({}).optional() - const getEntitlementsActiveEntitlementsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_entitlements_active_entitlement), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getEntitlementsActiveEntitlements", "/v1/entitlements/active_entitlements", @@ -32589,25 +35507,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_entitlements_active_entitlement[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getEntitlementsActiveEntitlements(input, responder, ctx) + .getEntitlementsActiveEntitlements( + input, + getEntitlementsActiveEntitlementsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32639,12 +35544,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getEntitlementsActiveEntitlementsIdBodySchema = z.object({}).optional() - const getEntitlementsActiveEntitlementsIdResponseValidator = - responseValidationFactory( - [["200", s_entitlements_active_entitlement]], - s_error, - ) - router.get( "getEntitlementsActiveEntitlementsId", "/v1/entitlements/active_entitlements/:id", @@ -32668,20 +35567,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getEntitlementsActiveEntitlementsId(input, responder, ctx) + .getEntitlementsActiveEntitlementsId( + input, + getEntitlementsActiveEntitlementsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32714,24 +35605,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getEntitlementsFeaturesBodySchema = z.object({}).optional() - const getEntitlementsFeaturesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_entitlements_feature), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/entitlements/features")), - }), - ], - ], - s_error, - ) - router.get( "getEntitlementsFeatures", "/v1/entitlements/features", @@ -32751,25 +35624,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_entitlements_feature[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getEntitlementsFeatures(input, responder, ctx) + .getEntitlementsFeatures(input, getEntitlementsFeaturesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32790,11 +35646,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string().max(80), }) - const postEntitlementsFeaturesResponseValidator = responseValidationFactory( - [["200", s_entitlements_feature]], - s_error, - ) - router.post( "postEntitlementsFeatures", "/v1/entitlements/features", @@ -32810,20 +35661,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postEntitlementsFeatures(input, responder, ctx) + .postEntitlementsFeatures(input, postEntitlementsFeaturesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32852,11 +35691,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getEntitlementsFeaturesIdBodySchema = z.object({}).optional() - const getEntitlementsFeaturesIdResponseValidator = responseValidationFactory( - [["200", s_entitlements_feature]], - s_error, - ) - router.get( "getEntitlementsFeaturesId", "/v1/entitlements/features/:id", @@ -32880,20 +35714,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getEntitlementsFeaturesId(input, responder, ctx) + .getEntitlementsFeaturesId( + input, + getEntitlementsFeaturesIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32920,11 +35746,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postEntitlementsFeaturesIdResponseValidator = responseValidationFactory( - [["200", s_entitlements_feature]], - s_error, - ) - router.post( "postEntitlementsFeaturesId", "/v1/entitlements/features/:id", @@ -32944,20 +35765,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postEntitlementsFeaturesId(input, responder, ctx) + .postEntitlementsFeaturesId( + input, + postEntitlementsFeaturesIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -32981,11 +35794,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postEphemeralKeysResponseValidator = responseValidationFactory( - [["200", s_ephemeral_key]], - s_error, - ) - router.post("postEphemeralKeys", "/v1/ephemeral_keys", async (ctx, next) => { const input = { params: undefined, @@ -32998,20 +35806,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postEphemeralKeys(input, responder, ctx) + .postEphemeralKeys(input, postEphemeralKeysResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33032,11 +35828,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const deleteEphemeralKeysKeyResponseValidator = responseValidationFactory( - [["200", s_ephemeral_key]], - s_error, - ) - router.delete( "deleteEphemeralKeysKey", "/v1/ephemeral_keys/:key", @@ -33056,20 +35847,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteEphemeralKeysKey(input, responder, ctx) + .deleteEphemeralKeysKey(input, deleteEphemeralKeysKeyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33116,21 +35895,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getEventsBodySchema = z.object({}).optional() - const getEventsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_event), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/events")), - }), - ], - ], - s_error, - ) - router.get("getEvents", "/v1/events", async (ctx, next) => { const input = { params: undefined, @@ -33147,25 +35911,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_event[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getEvents(input, responder, ctx) + .getEvents(input, getEventsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33191,11 +35938,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getEventsIdBodySchema = z.object({}).optional() - const getEventsIdResponseValidator = responseValidationFactory( - [["200", s_event]], - s_error, - ) - router.get("getEventsId", "/v1/events/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -33216,20 +35958,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getEventsId(input, responder, ctx) + .getEventsId(input, getEventsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33256,21 +35986,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getExchangeRatesBodySchema = z.object({}).optional() - const getExchangeRatesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_exchange_rate), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/exchange_rates")), - }), - ], - ], - s_error, - ) - router.get("getExchangeRates", "/v1/exchange_rates", async (ctx, next) => { const input = { params: undefined, @@ -33287,25 +36002,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_exchange_rate[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getExchangeRates(input, responder, ctx) + .getExchangeRates(input, getExchangeRatesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33333,11 +36031,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getExchangeRatesRateIdBodySchema = z.object({}).optional() - const getExchangeRatesRateIdResponseValidator = responseValidationFactory( - [["200", s_exchange_rate]], - s_error, - ) - router.get( "getExchangeRatesRateId", "/v1/exchange_rates/:rate_id", @@ -33361,20 +36054,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getExchangeRatesRateId(input, responder, ctx) + .getExchangeRatesRateId(input, getExchangeRatesRateIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33417,11 +36098,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postExternalAccountsIdResponseValidator = responseValidationFactory( - [["200", s_external_account]], - s_error, - ) - router.post( "postExternalAccountsId", "/v1/external_accounts/:id", @@ -33441,20 +36117,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postExternalAccountsId(input, responder, ctx) + .postExternalAccountsId(input, postExternalAccountsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33495,21 +36159,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getFileLinksBodySchema = z.object({}).optional() - const getFileLinksResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_file_link)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/file_links")), - }), - ], - ], - s_error, - ) - router.get("getFileLinks", "/v1/file_links", async (ctx, next) => { const input = { params: undefined, @@ -33526,25 +36175,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_file_link[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFileLinks(input, responder, ctx) + .getFileLinks(input, getFileLinksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33564,11 +36196,6 @@ export function createRouter(implementation: Implementation): KoaRouter { metadata: z.union([z.record(z.string()), z.enum([""])]).optional(), }) - const postFileLinksResponseValidator = responseValidationFactory( - [["200", s_file_link]], - s_error, - ) - router.post("postFileLinks", "/v1/file_links", async (ctx, next) => { const input = { params: undefined, @@ -33581,20 +36208,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postFileLinks(input, responder, ctx) + .postFileLinks(input, postFileLinksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33620,11 +36235,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getFileLinksLinkBodySchema = z.object({}).optional() - const getFileLinksLinkResponseValidator = responseValidationFactory( - [["200", s_file_link]], - s_error, - ) - router.get("getFileLinksLink", "/v1/file_links/:link", async (ctx, next) => { const input = { params: parseRequestInput( @@ -33645,20 +36255,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFileLinksLink(input, responder, ctx) + .getFileLinksLink(input, getFileLinksLinkResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33683,11 +36281,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postFileLinksLinkResponseValidator = responseValidationFactory( - [["200", s_file_link]], - s_error, - ) - router.post( "postFileLinksLink", "/v1/file_links/:link", @@ -33707,20 +36300,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postFileLinksLink(input, responder, ctx) + .postFileLinksLink(input, postFileLinksLinkResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33780,21 +36361,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getFilesBodySchema = z.object({}).optional() - const getFilesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_file)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/files")), - }), - ], - ], - s_error, - ) - router.get("getFiles", "/v1/files", async (ctx, next) => { const input = { params: undefined, @@ -33811,25 +36377,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_file[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFiles(input, responder, ctx) + .getFiles(input, getFilesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33867,11 +36416,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ]), }) - const postFilesResponseValidator = responseValidationFactory( - [["200", s_file]], - s_error, - ) - router.post("postFiles", "/v1/files", async (ctx, next) => { const input = { params: undefined, @@ -33884,20 +36428,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postFiles(input, responder, ctx) + .postFiles(input, postFilesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33923,11 +36455,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getFilesFileBodySchema = z.object({}).optional() - const getFilesFileResponseValidator = responseValidationFactory( - [["200", s_file]], - s_error, - ) - router.get("getFilesFile", "/v1/files/:file", async (ctx, next) => { const input = { params: parseRequestInput( @@ -33948,20 +36475,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFilesFile(input, responder, ctx) + .getFilesFile(input, getFilesFileResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -33995,25 +36510,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getFinancialConnectionsAccountsBodySchema = z.object({}).optional() - const getFinancialConnectionsAccountsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_financial_connections_account)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/financial_connections/accounts")), - }), - ], - ], - s_error, - ) - router.get( "getFinancialConnectionsAccounts", "/v1/financial_connections/accounts", @@ -34033,25 +36529,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_financial_connections_account[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFinancialConnectionsAccounts(input, responder, ctx) + .getFinancialConnectionsAccounts( + input, + getFinancialConnectionsAccountsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34082,12 +36565,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getFinancialConnectionsAccountsAccountResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, - ) - router.get( "getFinancialConnectionsAccountsAccount", "/v1/financial_connections/accounts/:account", @@ -34111,20 +36588,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFinancialConnectionsAccountsAccount(input, responder, ctx) + .getFinancialConnectionsAccountsAccount( + input, + getFinancialConnectionsAccountsAccountResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34149,12 +36618,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postFinancialConnectionsAccountsAccountDisconnectResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, - ) - router.post( "postFinancialConnectionsAccountsAccountDisconnect", "/v1/financial_connections/accounts/:account/disconnect", @@ -34174,22 +36637,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postFinancialConnectionsAccountsAccountDisconnect( input, - responder, + postFinancialConnectionsAccountsAccountDisconnectResponder, ctx, ) .catch((err) => { @@ -34230,22 +36681,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getFinancialConnectionsAccountsAccountOwnersResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_financial_connections_account_owner), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getFinancialConnectionsAccountsAccountOwners", "/v1/financial_connections/accounts/:account/owners", @@ -34269,25 +36704,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_financial_connections_account_owner[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFinancialConnectionsAccountsAccountOwners(input, responder, ctx) + .getFinancialConnectionsAccountsAccountOwners( + input, + getFinancialConnectionsAccountsAccountOwnersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34313,12 +36735,6 @@ export function createRouter(implementation: Implementation): KoaRouter { features: z.array(z.enum(["balance", "ownership", "transactions"])), }) - const postFinancialConnectionsAccountsAccountRefreshResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, - ) - router.post( "postFinancialConnectionsAccountsAccountRefresh", "/v1/financial_connections/accounts/:account/refresh", @@ -34338,20 +36754,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postFinancialConnectionsAccountsAccountRefresh(input, responder, ctx) + .postFinancialConnectionsAccountsAccountRefresh( + input, + postFinancialConnectionsAccountsAccountRefreshResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34378,12 +36786,6 @@ export function createRouter(implementation: Implementation): KoaRouter { features: z.array(z.enum(["transactions"])), }) - const postFinancialConnectionsAccountsAccountSubscribeResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, - ) - router.post( "postFinancialConnectionsAccountsAccountSubscribe", "/v1/financial_connections/accounts/:account/subscribe", @@ -34403,20 +36805,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postFinancialConnectionsAccountsAccountSubscribe(input, responder, ctx) + .postFinancialConnectionsAccountsAccountSubscribe( + input, + postFinancialConnectionsAccountsAccountSubscribeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34444,12 +36838,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const postFinancialConnectionsAccountsAccountUnsubscribeResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, - ) - router.post( "postFinancialConnectionsAccountsAccountUnsubscribe", "/v1/financial_connections/accounts/:account/unsubscribe", @@ -34469,22 +36857,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postFinancialConnectionsAccountsAccountUnsubscribe( input, - responder, + postFinancialConnectionsAccountsAccountUnsubscribeResponder, ctx, ) .catch((err) => { @@ -34536,12 +36912,6 @@ export function createRouter(implementation: Implementation): KoaRouter { return_url: z.string().max(5000).optional(), }) - const postFinancialConnectionsSessionsResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_session]], - s_error, - ) - router.post( "postFinancialConnectionsSessions", "/v1/financial_connections/sessions", @@ -34557,20 +36927,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postFinancialConnectionsSessions(input, responder, ctx) + .postFinancialConnectionsSessions( + input, + postFinancialConnectionsSessionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34601,12 +36963,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getFinancialConnectionsSessionsSessionResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_session]], - s_error, - ) - router.get( "getFinancialConnectionsSessionsSession", "/v1/financial_connections/sessions/:session", @@ -34630,20 +36986,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFinancialConnectionsSessionsSession(input, responder, ctx) + .getFinancialConnectionsSessionsSession( + input, + getFinancialConnectionsSessionsSessionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34687,25 +37035,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getFinancialConnectionsTransactionsBodySchema = z.object({}).optional() - const getFinancialConnectionsTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_financial_connections_transaction), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/financial_connections/transactions")), - }), - ], - ], - s_error, - ) - router.get( "getFinancialConnectionsTransactions", "/v1/financial_connections/transactions", @@ -34725,25 +37054,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_financial_connections_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFinancialConnectionsTransactions(input, responder, ctx) + .getFinancialConnectionsTransactions( + input, + getFinancialConnectionsTransactionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34777,12 +37093,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getFinancialConnectionsTransactionsTransactionResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_transaction]], - s_error, - ) - router.get( "getFinancialConnectionsTransactionsTransaction", "/v1/financial_connections/transactions/:transaction", @@ -34806,22 +37116,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getFinancialConnectionsTransactionsTransaction(input, responder, ctx) + .getFinancialConnectionsTransactionsTransaction( + input, + getFinancialConnectionsTransactionsTransactionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34861,21 +37161,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getForwardingRequestsBodySchema = z.object({}).optional() - const getForwardingRequestsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_forwarding_request), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getForwardingRequests", "/v1/forwarding/requests", @@ -34895,25 +37180,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_forwarding_request[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getForwardingRequests(input, responder, ctx) + .getForwardingRequests(input, getForwardingRequestsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -34956,11 +37224,6 @@ export function createRouter(implementation: Implementation): KoaRouter { url: z.string().max(5000), }) - const postForwardingRequestsResponseValidator = responseValidationFactory( - [["200", s_forwarding_request]], - s_error, - ) - router.post( "postForwardingRequests", "/v1/forwarding/requests", @@ -34976,20 +37239,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postForwardingRequests(input, responder, ctx) + .postForwardingRequests(input, postForwardingRequestsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35018,11 +37269,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getForwardingRequestsIdBodySchema = z.object({}).optional() - const getForwardingRequestsIdResponseValidator = responseValidationFactory( - [["200", s_forwarding_request]], - s_error, - ) - router.get( "getForwardingRequestsId", "/v1/forwarding/requests/:id", @@ -35046,20 +37292,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getForwardingRequestsId(input, responder, ctx) + .getForwardingRequestsId(input, getForwardingRequestsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35101,25 +37335,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIdentityVerificationReportsBodySchema = z.object({}).optional() - const getIdentityVerificationReportsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_identity_verification_report), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/identity/verification_reports")), - }), - ], - ], - s_error, - ) - router.get( "getIdentityVerificationReports", "/v1/identity/verification_reports", @@ -35139,25 +37354,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_identity_verification_report[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIdentityVerificationReports(input, responder, ctx) + .getIdentityVerificationReports( + input, + getIdentityVerificationReportsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35186,12 +37388,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIdentityVerificationReportsReportBodySchema = z.object({}).optional() - const getIdentityVerificationReportsReportResponseValidator = - responseValidationFactory( - [["200", s_identity_verification_report]], - s_error, - ) - router.get( "getIdentityVerificationReportsReport", "/v1/identity/verification_reports/:report", @@ -35215,20 +37411,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIdentityVerificationReportsReport(input, responder, ctx) + .getIdentityVerificationReportsReport( + input, + getIdentityVerificationReportsReportResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35275,25 +37463,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIdentityVerificationSessionsBodySchema = z.object({}).optional() - const getIdentityVerificationSessionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_identity_verification_session), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/identity/verification_sessions")), - }), - ], - ], - s_error, - ) - router.get( "getIdentityVerificationSessions", "/v1/identity/verification_sessions", @@ -35313,25 +37482,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_identity_verification_session[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIdentityVerificationSessions(input, responder, ctx) + .getIdentityVerificationSessions( + input, + getIdentityVerificationSessionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35377,12 +37533,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIdentityVerificationSessionsResponseValidator = - responseValidationFactory( - [["200", s_identity_verification_session]], - s_error, - ) - router.post( "postIdentityVerificationSessions", "/v1/identity/verification_sessions", @@ -35398,20 +37548,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIdentityVerificationSessions(input, responder, ctx) + .postIdentityVerificationSessions( + input, + postIdentityVerificationSessionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35442,12 +37584,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getIdentityVerificationSessionsSessionResponseValidator = - responseValidationFactory( - [["200", s_identity_verification_session]], - s_error, - ) - router.get( "getIdentityVerificationSessionsSession", "/v1/identity/verification_sessions/:session", @@ -35471,20 +37607,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIdentityVerificationSessionsSession(input, responder, ctx) + .getIdentityVerificationSessionsSession( + input, + getIdentityVerificationSessionsSessionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35533,12 +37661,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIdentityVerificationSessionsSessionResponseValidator = - responseValidationFactory( - [["200", s_identity_verification_session]], - s_error, - ) - router.post( "postIdentityVerificationSessionsSession", "/v1/identity/verification_sessions/:session", @@ -35558,20 +37680,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIdentityVerificationSessionsSession(input, responder, ctx) + .postIdentityVerificationSessionsSession( + input, + postIdentityVerificationSessionsSessionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35596,12 +37710,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postIdentityVerificationSessionsSessionCancelResponseValidator = - responseValidationFactory( - [["200", s_identity_verification_session]], - s_error, - ) - router.post( "postIdentityVerificationSessionsSessionCancel", "/v1/identity/verification_sessions/:session/cancel", @@ -35621,20 +37729,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIdentityVerificationSessionsSessionCancel(input, responder, ctx) + .postIdentityVerificationSessionsSessionCancel( + input, + postIdentityVerificationSessionsSessionCancelResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35659,12 +37759,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postIdentityVerificationSessionsSessionRedactResponseValidator = - responseValidationFactory( - [["200", s_identity_verification_session]], - s_error, - ) - router.post( "postIdentityVerificationSessionsSessionRedact", "/v1/identity/verification_sessions/:session/redact", @@ -35684,20 +37778,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIdentityVerificationSessionsSessionRedact(input, responder, ctx) + .postIdentityVerificationSessionsSessionRedact( + input, + postIdentityVerificationSessionsSessionRedactResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35736,21 +37822,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoicePaymentsBodySchema = z.object({}).optional() - const getInvoicePaymentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_invoice_payment)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getInvoicePayments", "/v1/invoice_payments", @@ -35770,25 +37841,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_invoice_payment[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoicePayments(input, responder, ctx) + .getInvoicePayments(input, getInvoicePaymentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35817,9 +37871,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoicePaymentsInvoicePaymentBodySchema = z.object({}).optional() - const getInvoicePaymentsInvoicePaymentResponseValidator = - responseValidationFactory([["200", s_invoice_payment]], s_error) - router.get( "getInvoicePaymentsInvoicePayment", "/v1/invoice_payments/:invoice_payment", @@ -35843,20 +37894,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoicePaymentsInvoicePayment(input, responder, ctx) + .getInvoicePaymentsInvoicePayment( + input, + getInvoicePaymentsInvoicePaymentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35885,22 +37928,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoiceRenderingTemplatesBodySchema = z.object({}).optional() - const getInvoiceRenderingTemplatesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_invoice_rendering_template), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getInvoiceRenderingTemplates", "/v1/invoice_rendering_templates", @@ -35920,25 +37947,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_invoice_rendering_template[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoiceRenderingTemplates(input, responder, ctx) + .getInvoiceRenderingTemplates( + input, + getInvoiceRenderingTemplatesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35968,9 +37982,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoiceRenderingTemplatesTemplateBodySchema = z.object({}).optional() - const getInvoiceRenderingTemplatesTemplateResponseValidator = - responseValidationFactory([["200", s_invoice_rendering_template]], s_error) - router.get( "getInvoiceRenderingTemplatesTemplate", "/v1/invoice_rendering_templates/:template", @@ -35994,20 +38005,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoiceRenderingTemplatesTemplate(input, responder, ctx) + .getInvoiceRenderingTemplatesTemplate( + input, + getInvoiceRenderingTemplatesTemplateResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36032,9 +38035,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postInvoiceRenderingTemplatesTemplateArchiveResponseValidator = - responseValidationFactory([["200", s_invoice_rendering_template]], s_error) - router.post( "postInvoiceRenderingTemplatesTemplateArchive", "/v1/invoice_rendering_templates/:template/archive", @@ -36054,20 +38054,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoiceRenderingTemplatesTemplateArchive(input, responder, ctx) + .postInvoiceRenderingTemplatesTemplateArchive( + input, + postInvoiceRenderingTemplatesTemplateArchiveResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36092,9 +38084,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postInvoiceRenderingTemplatesTemplateUnarchiveResponseValidator = - responseValidationFactory([["200", s_invoice_rendering_template]], s_error) - router.post( "postInvoiceRenderingTemplatesTemplateUnarchive", "/v1/invoice_rendering_templates/:template/unarchive", @@ -36114,20 +38103,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoiceRenderingTemplatesTemplateUnarchive(input, responder, ctx) + .postInvoiceRenderingTemplatesTemplateUnarchive( + input, + postInvoiceRenderingTemplatesTemplateUnarchiveResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36173,21 +38154,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoiceitemsBodySchema = z.object({}).optional() - const getInvoiceitemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_invoiceitem)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/invoiceitems")), - }), - ], - ], - s_error, - ) - router.get("getInvoiceitems", "/v1/invoiceitems", async (ctx, next) => { const input = { params: undefined, @@ -36204,25 +38170,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_invoiceitem[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoiceitems(input, responder, ctx) + .getInvoiceitems(input, getInvoiceitemsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36279,11 +38228,6 @@ export function createRouter(implementation: Implementation): KoaRouter { unit_amount_decimal: z.string().optional(), }) - const postInvoiceitemsResponseValidator = responseValidationFactory( - [["200", s_invoiceitem]], - s_error, - ) - router.post("postInvoiceitems", "/v1/invoiceitems", async (ctx, next) => { const input = { params: undefined, @@ -36296,20 +38240,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoiceitems(input, responder, ctx) + .postInvoiceitems(input, postInvoiceitemsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36328,9 +38260,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteInvoiceitemsInvoiceitemBodySchema = z.object({}).optional() - const deleteInvoiceitemsInvoiceitemResponseValidator = - responseValidationFactory([["200", s_deleted_invoiceitem]], s_error) - router.delete( "deleteInvoiceitemsInvoiceitem", "/v1/invoiceitems/:invoiceitem", @@ -36350,20 +38279,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteInvoiceitemsInvoiceitem(input, responder, ctx) + .deleteInvoiceitemsInvoiceitem( + input, + deleteInvoiceitemsInvoiceitemResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36392,11 +38313,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoiceitemsInvoiceitemBodySchema = z.object({}).optional() - const getInvoiceitemsInvoiceitemResponseValidator = responseValidationFactory( - [["200", s_invoiceitem]], - s_error, - ) - router.get( "getInvoiceitemsInvoiceitem", "/v1/invoiceitems/:invoiceitem", @@ -36420,20 +38336,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoiceitemsInvoiceitem(input, responder, ctx) + .getInvoiceitemsInvoiceitem( + input, + getInvoiceitemsInvoiceitemResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36497,9 +38405,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postInvoiceitemsInvoiceitemResponseValidator = - responseValidationFactory([["200", s_invoiceitem]], s_error) - router.post( "postInvoiceitemsInvoiceitem", "/v1/invoiceitems/:invoiceitem", @@ -36519,20 +38424,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoiceitemsInvoiceitem(input, responder, ctx) + .postInvoiceitemsInvoiceitem( + input, + postInvoiceitemsInvoiceitemResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36590,21 +38487,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoicesBodySchema = z.object({}).optional() - const getInvoicesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_invoice)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/invoices")), - }), - ], - ], - s_error, - ) - router.get("getInvoices", "/v1/invoices", async (ctx, next) => { const input = { params: undefined, @@ -36621,25 +38503,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_invoice[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoices(input, responder, ctx) + .getInvoices(input, getInvoicesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36980,11 +38845,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postInvoicesResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, - ) - router.post("postInvoices", "/v1/invoices", async (ctx, next) => { const input = { params: undefined, @@ -36997,20 +38857,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoices(input, responder, ctx) + .postInvoices(input, postInvoicesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37481,11 +39329,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postInvoicesCreatePreviewResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, - ) - router.post( "postInvoicesCreatePreview", "/v1/invoices/create_preview", @@ -37501,20 +39344,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesCreatePreview(input, responder, ctx) + .postInvoicesCreatePreview( + input, + postInvoicesCreatePreviewResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37542,23 +39377,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoicesSearchBodySchema = z.object({}).optional() - const getInvoicesSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_invoice)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getInvoicesSearch", "/v1/invoices/search", async (ctx, next) => { const input = { params: undefined, @@ -37575,27 +39393,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_invoice[] - has_more: boolean - next_page?: string | null - object: "search_result" - total_count?: number - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoicesSearch(input, responder, ctx) + .getInvoicesSearch(input, getInvoicesSearchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37614,11 +39413,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteInvoicesInvoiceBodySchema = z.object({}).optional() - const deleteInvoicesInvoiceResponseValidator = responseValidationFactory( - [["200", s_deleted_invoice]], - s_error, - ) - router.delete( "deleteInvoicesInvoice", "/v1/invoices/:invoice", @@ -37638,20 +39432,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteInvoicesInvoice(input, responder, ctx) + .deleteInvoicesInvoice(input, deleteInvoicesInvoiceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37680,11 +39462,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoicesInvoiceBodySchema = z.object({}).optional() - const getInvoicesInvoiceResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, - ) - router.get( "getInvoicesInvoice", "/v1/invoices/:invoice", @@ -37708,20 +39485,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoicesInvoice(input, responder, ctx) + .getInvoicesInvoice(input, getInvoicesInvoiceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38071,11 +39836,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postInvoicesInvoiceResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, - ) - router.post( "postInvoicesInvoice", "/v1/invoices/:invoice", @@ -38095,20 +39855,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoice(input, responder, ctx) + .postInvoicesInvoice(input, postInvoicesInvoiceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38249,9 +39997,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ), }) - const postInvoicesInvoiceAddLinesResponseValidator = - responseValidationFactory([["200", s_invoice]], s_error) - router.post( "postInvoicesInvoiceAddLines", "/v1/invoices/:invoice/add_lines", @@ -38271,20 +40016,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoiceAddLines(input, responder, ctx) + .postInvoicesInvoiceAddLines( + input, + postInvoicesInvoiceAddLinesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38309,9 +40046,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postInvoicesInvoiceFinalizeResponseValidator = - responseValidationFactory([["200", s_invoice]], s_error) - router.post( "postInvoicesInvoiceFinalize", "/v1/invoices/:invoice/finalize", @@ -38331,20 +40065,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoiceFinalize(input, responder, ctx) + .postInvoicesInvoiceFinalize( + input, + postInvoicesInvoiceFinalizeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38376,21 +40102,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getInvoicesInvoiceLinesBodySchema = z.object({}).optional() - const getInvoicesInvoiceLinesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_line_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getInvoicesInvoiceLines", "/v1/invoices/:invoice/lines", @@ -38414,25 +40125,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_line_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getInvoicesInvoiceLines(input, responder, ctx) + .getInvoicesInvoiceLines(input, getInvoicesInvoiceLinesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38568,9 +40262,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postInvoicesInvoiceLinesLineItemIdResponseValidator = - responseValidationFactory([["200", s_line_item]], s_error) - router.post( "postInvoicesInvoiceLinesLineItemId", "/v1/invoices/:invoice/lines/:line_item_id", @@ -38590,20 +40281,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoiceLinesLineItemId(input, responder, ctx) + .postInvoicesInvoiceLinesLineItemId( + input, + postInvoicesInvoiceLinesLineItemIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38628,9 +40311,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postInvoicesInvoiceMarkUncollectibleResponseValidator = - responseValidationFactory([["200", s_invoice]], s_error) - router.post( "postInvoicesInvoiceMarkUncollectible", "/v1/invoices/:invoice/mark_uncollectible", @@ -38650,20 +40330,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoiceMarkUncollectible(input, responder, ctx) + .postInvoicesInvoiceMarkUncollectible( + input, + postInvoicesInvoiceMarkUncollectibleResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38696,11 +40368,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postInvoicesInvoicePayResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, - ) - router.post( "postInvoicesInvoicePay", "/v1/invoices/:invoice/pay", @@ -38720,20 +40387,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoicePay(input, responder, ctx) + .postInvoicesInvoicePay(input, postInvoicesInvoicePayResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38762,9 +40417,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ), }) - const postInvoicesInvoiceRemoveLinesResponseValidator = - responseValidationFactory([["200", s_invoice]], s_error) - router.post( "postInvoicesInvoiceRemoveLines", "/v1/invoices/:invoice/remove_lines", @@ -38784,20 +40436,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoiceRemoveLines(input, responder, ctx) + .postInvoicesInvoiceRemoveLines( + input, + postInvoicesInvoiceRemoveLinesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38819,11 +40463,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postInvoicesInvoiceSendResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, - ) - router.post( "postInvoicesInvoiceSend", "/v1/invoices/:invoice/send", @@ -38843,20 +40482,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoiceSend(input, responder, ctx) + .postInvoicesInvoiceSend(input, postInvoicesInvoiceSendResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38997,9 +40624,6 @@ export function createRouter(implementation: Implementation): KoaRouter { ), }) - const postInvoicesInvoiceUpdateLinesResponseValidator = - responseValidationFactory([["200", s_invoice]], s_error) - router.post( "postInvoicesInvoiceUpdateLines", "/v1/invoices/:invoice/update_lines", @@ -39019,20 +40643,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoiceUpdateLines(input, responder, ctx) + .postInvoicesInvoiceUpdateLines( + input, + postInvoicesInvoiceUpdateLinesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39054,11 +40670,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postInvoicesInvoiceVoidResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, - ) - router.post( "postInvoicesInvoiceVoid", "/v1/invoices/:invoice/void", @@ -39078,20 +40689,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postInvoicesInvoiceVoid(input, responder, ctx) + .postInvoicesInvoiceVoid(input, postInvoicesInvoiceVoidResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39133,24 +40732,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingAuthorizationsBodySchema = z.object({}).optional() - const getIssuingAuthorizationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_authorization)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/authorizations")), - }), - ], - ], - s_error, - ) - router.get( "getIssuingAuthorizations", "/v1/issuing/authorizations", @@ -39170,25 +40751,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_issuing_authorization[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingAuthorizations(input, responder, ctx) + .getIssuingAuthorizations(input, getIssuingAuthorizationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39219,9 +40783,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getIssuingAuthorizationsAuthorizationResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.get( "getIssuingAuthorizationsAuthorization", "/v1/issuing/authorizations/:authorization", @@ -39245,20 +40806,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingAuthorizationsAuthorization(input, responder, ctx) + .getIssuingAuthorizationsAuthorization( + input, + getIssuingAuthorizationsAuthorizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39286,9 +40839,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingAuthorizationsAuthorizationResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postIssuingAuthorizationsAuthorization", "/v1/issuing/authorizations/:authorization", @@ -39308,20 +40858,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingAuthorizationsAuthorization(input, responder, ctx) + .postIssuingAuthorizationsAuthorization( + input, + postIssuingAuthorizationsAuthorizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39350,9 +40892,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingAuthorizationsAuthorizationApproveResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postIssuingAuthorizationsAuthorizationApprove", "/v1/issuing/authorizations/:authorization/approve", @@ -39372,20 +40911,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingAuthorizationsAuthorizationApprove(input, responder, ctx) + .postIssuingAuthorizationsAuthorizationApprove( + input, + postIssuingAuthorizationsAuthorizationApproveResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39413,9 +40944,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingAuthorizationsAuthorizationDeclineResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postIssuingAuthorizationsAuthorizationDecline", "/v1/issuing/authorizations/:authorization/decline", @@ -39435,20 +40963,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingAuthorizationsAuthorizationDecline(input, responder, ctx) + .postIssuingAuthorizationsAuthorizationDecline( + input, + postIssuingAuthorizationsAuthorizationDeclineResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39494,24 +41014,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingCardholdersBodySchema = z.object({}).optional() - const getIssuingCardholdersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_cardholder)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/cardholders")), - }), - ], - ], - s_error, - ) - router.get( "getIssuingCardholders", "/v1/issuing/cardholders", @@ -39531,25 +41033,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_issuing_cardholder[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingCardholders(input, responder, ctx) + .getIssuingCardholders(input, getIssuingCardholdersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40548,11 +42033,6 @@ export function createRouter(implementation: Implementation): KoaRouter { type: z.enum(["company", "individual"]).optional(), }) - const postIssuingCardholdersResponseValidator = responseValidationFactory( - [["200", s_issuing_cardholder]], - s_error, - ) - router.post( "postIssuingCardholders", "/v1/issuing/cardholders", @@ -40568,20 +42048,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingCardholders(input, responder, ctx) + .postIssuingCardholders(input, postIssuingCardholdersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40610,9 +42078,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingCardholdersCardholderBodySchema = z.object({}).optional() - const getIssuingCardholdersCardholderResponseValidator = - responseValidationFactory([["200", s_issuing_cardholder]], s_error) - router.get( "getIssuingCardholdersCardholder", "/v1/issuing/cardholders/:cardholder", @@ -40636,20 +42101,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingCardholdersCardholder(input, responder, ctx) + .getIssuingCardholdersCardholder( + input, + getIssuingCardholdersCardholderResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41654,9 +43111,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingCardholdersCardholderResponseValidator = - responseValidationFactory([["200", s_issuing_cardholder]], s_error) - router.post( "postIssuingCardholdersCardholder", "/v1/issuing/cardholders/:cardholder", @@ -41676,20 +43130,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingCardholdersCardholder(input, responder, ctx) + .postIssuingCardholdersCardholder( + input, + postIssuingCardholdersCardholderResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41735,21 +43181,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingCardsBodySchema = z.object({}).optional() - const getIssuingCardsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_card)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/issuing/cards")), - }), - ], - ], - s_error, - ) - router.get("getIssuingCards", "/v1/issuing/cards", async (ctx, next) => { const input = { params: undefined, @@ -41766,25 +43197,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_issuing_card[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingCards(input, responder, ctx) + .getIssuingCards(input, getIssuingCardsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42769,11 +44183,6 @@ export function createRouter(implementation: Implementation): KoaRouter { type: z.enum(["physical", "virtual"]), }) - const postIssuingCardsResponseValidator = responseValidationFactory( - [["200", s_issuing_card]], - s_error, - ) - router.post("postIssuingCards", "/v1/issuing/cards", async (ctx, next) => { const input = { params: undefined, @@ -42786,20 +44195,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingCards(input, responder, ctx) + .postIssuingCards(input, postIssuingCardsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42827,11 +44224,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingCardsCardBodySchema = z.object({}).optional() - const getIssuingCardsCardResponseValidator = responseValidationFactory( - [["200", s_issuing_card]], - s_error, - ) - router.get( "getIssuingCardsCard", "/v1/issuing/cards/:card", @@ -42855,20 +44247,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingCardsCard(input, responder, ctx) + .getIssuingCardsCard(input, getIssuingCardsCardResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43852,11 +45232,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingCardsCardResponseValidator = responseValidationFactory( - [["200", s_issuing_card]], - s_error, - ) - router.post( "postIssuingCardsCard", "/v1/issuing/cards/:card", @@ -43876,20 +45251,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingCardsCard(input, responder, ctx) + .postIssuingCardsCard(input, postIssuingCardsCardResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43932,21 +45295,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingDisputesBodySchema = z.object({}).optional() - const getIssuingDisputesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_dispute)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/issuing/disputes")), - }), - ], - ], - s_error, - ) - router.get( "getIssuingDisputes", "/v1/issuing/disputes", @@ -43966,25 +45314,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_issuing_dispute[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingDisputes(input, responder, ctx) + .getIssuingDisputes(input, getIssuingDisputesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44186,11 +45517,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingDisputesResponseValidator = responseValidationFactory( - [["200", s_issuing_dispute]], - s_error, - ) - router.post( "postIssuingDisputes", "/v1/issuing/disputes", @@ -44206,20 +45532,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingDisputes(input, responder, ctx) + .postIssuingDisputes(input, postIssuingDisputesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44248,11 +45562,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingDisputesDisputeBodySchema = z.object({}).optional() - const getIssuingDisputesDisputeResponseValidator = responseValidationFactory( - [["200", s_issuing_dispute]], - s_error, - ) - router.get( "getIssuingDisputesDispute", "/v1/issuing/disputes/:dispute", @@ -44276,20 +45585,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingDisputesDispute(input, responder, ctx) + .getIssuingDisputesDispute( + input, + getIssuingDisputesDisputeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44493,11 +45794,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingDisputesDisputeResponseValidator = responseValidationFactory( - [["200", s_issuing_dispute]], - s_error, - ) - router.post( "postIssuingDisputesDispute", "/v1/issuing/disputes/:dispute", @@ -44517,20 +45813,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingDisputesDispute(input, responder, ctx) + .postIssuingDisputesDispute( + input, + postIssuingDisputesDisputeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44555,9 +45843,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingDisputesDisputeSubmitResponseValidator = - responseValidationFactory([["200", s_issuing_dispute]], s_error) - router.post( "postIssuingDisputesDisputeSubmit", "/v1/issuing/disputes/:dispute/submit", @@ -44577,20 +45862,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingDisputesDisputeSubmit(input, responder, ctx) + .postIssuingDisputesDisputeSubmit( + input, + postIssuingDisputesDisputeSubmitResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44631,25 +45908,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingPersonalizationDesignsBodySchema = z.object({}).optional() - const getIssuingPersonalizationDesignsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_personalization_design)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/personalization_designs")), - }), - ], - ], - s_error, - ) - router.get( "getIssuingPersonalizationDesigns", "/v1/issuing/personalization_designs", @@ -44669,25 +45927,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_issuing_personalization_design[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingPersonalizationDesigns(input, responder, ctx) + .getIssuingPersonalizationDesigns( + input, + getIssuingPersonalizationDesignsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44720,12 +45965,6 @@ export function createRouter(implementation: Implementation): KoaRouter { transfer_lookup_key: PermissiveBoolean.optional(), }) - const postIssuingPersonalizationDesignsResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - router.post( "postIssuingPersonalizationDesigns", "/v1/issuing/personalization_designs", @@ -44741,20 +45980,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingPersonalizationDesigns(input, responder, ctx) + .postIssuingPersonalizationDesigns( + input, + postIssuingPersonalizationDesignsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44788,12 +46019,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getIssuingPersonalizationDesignsPersonalizationDesignResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - router.get( "getIssuingPersonalizationDesignsPersonalizationDesign", "/v1/issuing/personalization_designs/:personalization_design", @@ -44817,22 +46042,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .getIssuingPersonalizationDesignsPersonalizationDesign( input, - responder, + getIssuingPersonalizationDesignsPersonalizationDesignResponder, ctx, ) .catch((err) => { @@ -44887,12 +46100,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingPersonalizationDesignsPersonalizationDesignResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - router.post( "postIssuingPersonalizationDesignsPersonalizationDesign", "/v1/issuing/personalization_designs/:personalization_design", @@ -44912,22 +46119,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postIssuingPersonalizationDesignsPersonalizationDesign( input, - responder, + postIssuingPersonalizationDesignsPersonalizationDesignResponder, ctx, ) .catch((err) => { @@ -44963,24 +46158,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingPhysicalBundlesBodySchema = z.object({}).optional() - const getIssuingPhysicalBundlesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_issuing_physical_bundle), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/physical_bundles")), - }), - ], - ], - s_error, - ) - router.get( "getIssuingPhysicalBundles", "/v1/issuing/physical_bundles", @@ -45000,25 +46177,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_issuing_physical_bundle[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingPhysicalBundles(input, responder, ctx) + .getIssuingPhysicalBundles( + input, + getIssuingPhysicalBundlesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45049,9 +46213,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getIssuingPhysicalBundlesPhysicalBundleResponseValidator = - responseValidationFactory([["200", s_issuing_physical_bundle]], s_error) - router.get( "getIssuingPhysicalBundlesPhysicalBundle", "/v1/issuing/physical_bundles/:physical_bundle", @@ -45075,20 +46236,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingPhysicalBundlesPhysicalBundle(input, responder, ctx) + .getIssuingPhysicalBundlesPhysicalBundle( + input, + getIssuingPhysicalBundlesPhysicalBundleResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45120,9 +46273,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingSettlementsSettlementBodySchema = z.object({}).optional() - const getIssuingSettlementsSettlementResponseValidator = - responseValidationFactory([["200", s_issuing_settlement]], s_error) - router.get( "getIssuingSettlementsSettlement", "/v1/issuing/settlements/:settlement", @@ -45146,20 +46296,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingSettlementsSettlement(input, responder, ctx) + .getIssuingSettlementsSettlement( + input, + getIssuingSettlementsSettlementResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45184,9 +46326,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingSettlementsSettlementResponseValidator = - responseValidationFactory([["200", s_issuing_settlement]], s_error) - router.post( "postIssuingSettlementsSettlement", "/v1/issuing/settlements/:settlement", @@ -45206,20 +46345,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingSettlementsSettlement(input, responder, ctx) + .postIssuingSettlementsSettlement( + input, + postIssuingSettlementsSettlementResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45260,21 +46391,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingTokensBodySchema = z.object({}).optional() - const getIssuingTokensResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_token)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getIssuingTokens", "/v1/issuing/tokens", async (ctx, next) => { const input = { params: undefined, @@ -45291,25 +46407,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_issuing_token[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingTokens(input, responder, ctx) + .getIssuingTokens(input, getIssuingTokensResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45337,11 +46436,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingTokensTokenBodySchema = z.object({}).optional() - const getIssuingTokensTokenResponseValidator = responseValidationFactory( - [["200", s_issuing_token]], - s_error, - ) - router.get( "getIssuingTokensToken", "/v1/issuing/tokens/:token", @@ -45365,20 +46459,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingTokensToken(input, responder, ctx) + .getIssuingTokensToken(input, getIssuingTokensTokenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45401,11 +46483,6 @@ export function createRouter(implementation: Implementation): KoaRouter { status: z.enum(["active", "deleted", "suspended"]), }) - const postIssuingTokensTokenResponseValidator = responseValidationFactory( - [["200", s_issuing_token]], - s_error, - ) - router.post( "postIssuingTokensToken", "/v1/issuing/tokens/:token", @@ -45425,20 +46502,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingTokensToken(input, responder, ctx) + .postIssuingTokensToken(input, postIssuingTokensTokenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45480,24 +46545,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingTransactionsBodySchema = z.object({}).optional() - const getIssuingTransactionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/transactions")), - }), - ], - ], - s_error, - ) - router.get( "getIssuingTransactions", "/v1/issuing/transactions", @@ -45517,25 +46564,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_issuing_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingTransactions(input, responder, ctx) + .getIssuingTransactions(input, getIssuingTransactionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45564,9 +46594,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getIssuingTransactionsTransactionBodySchema = z.object({}).optional() - const getIssuingTransactionsTransactionResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) - router.get( "getIssuingTransactionsTransaction", "/v1/issuing/transactions/:transaction", @@ -45590,20 +46617,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getIssuingTransactionsTransaction(input, responder, ctx) + .getIssuingTransactionsTransaction( + input, + getIssuingTransactionsTransactionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45631,9 +46650,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postIssuingTransactionsTransactionResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) - router.post( "postIssuingTransactionsTransaction", "/v1/issuing/transactions/:transaction", @@ -45653,20 +46669,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postIssuingTransactionsTransaction(input, responder, ctx) + .postIssuingTransactionsTransaction( + input, + postIssuingTransactionsTransactionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45715,11 +46723,6 @@ export function createRouter(implementation: Implementation): KoaRouter { return_url: z.string().max(5000).optional(), }) - const postLinkAccountSessionsResponseValidator = responseValidationFactory( - [["200", s_financial_connections_session]], - s_error, - ) - router.post( "postLinkAccountSessions", "/v1/link_account_sessions", @@ -45735,20 +46738,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postLinkAccountSessions(input, responder, ctx) + .postLinkAccountSessions(input, postLinkAccountSessionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45777,12 +46768,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getLinkAccountSessionsSessionBodySchema = z.object({}).optional() - const getLinkAccountSessionsSessionResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_session]], - s_error, - ) - router.get( "getLinkAccountSessionsSession", "/v1/link_account_sessions/:session", @@ -45806,20 +46791,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getLinkAccountSessionsSession(input, responder, ctx) + .getLinkAccountSessionsSession( + input, + getLinkAccountSessionsSessionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45854,24 +46831,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getLinkedAccountsBodySchema = z.object({}).optional() - const getLinkedAccountsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_financial_connections_account)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/financial_connections/accounts")), - }), - ], - ], - s_error, - ) - router.get("getLinkedAccounts", "/v1/linked_accounts", async (ctx, next) => { const input = { params: undefined, @@ -45888,25 +46847,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_financial_connections_account[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getLinkedAccounts(input, responder, ctx) + .getLinkedAccounts(input, getLinkedAccountsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45934,11 +46876,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getLinkedAccountsAccountBodySchema = z.object({}).optional() - const getLinkedAccountsAccountResponseValidator = responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, - ) - router.get( "getLinkedAccountsAccount", "/v1/linked_accounts/:account", @@ -45962,20 +46899,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getLinkedAccountsAccount(input, responder, ctx) + .getLinkedAccountsAccount(input, getLinkedAccountsAccountResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45997,12 +46922,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postLinkedAccountsAccountDisconnectResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, - ) - router.post( "postLinkedAccountsAccountDisconnect", "/v1/linked_accounts/:account/disconnect", @@ -46022,20 +46941,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postLinkedAccountsAccountDisconnect(input, responder, ctx) + .postLinkedAccountsAccountDisconnect( + input, + postLinkedAccountsAccountDisconnectResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46071,22 +46982,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getLinkedAccountsAccountOwnersBodySchema = z.object({}).optional() - const getLinkedAccountsAccountOwnersResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_financial_connections_account_owner), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getLinkedAccountsAccountOwners", "/v1/linked_accounts/:account/owners", @@ -46110,25 +47005,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_financial_connections_account_owner[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getLinkedAccountsAccountOwners(input, responder, ctx) + .getLinkedAccountsAccountOwners( + input, + getLinkedAccountsAccountOwnersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46151,12 +47033,6 @@ export function createRouter(implementation: Implementation): KoaRouter { features: z.array(z.enum(["balance", "ownership", "transactions"])), }) - const postLinkedAccountsAccountRefreshResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, - ) - router.post( "postLinkedAccountsAccountRefresh", "/v1/linked_accounts/:account/refresh", @@ -46176,20 +47052,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postLinkedAccountsAccountRefresh(input, responder, ctx) + .postLinkedAccountsAccountRefresh( + input, + postLinkedAccountsAccountRefreshResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46216,11 +47084,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getMandatesMandateBodySchema = z.object({}).optional() - const getMandatesMandateResponseValidator = responseValidationFactory( - [["200", s_mandate]], - s_error, - ) - router.get( "getMandatesMandate", "/v1/mandates/:mandate", @@ -46244,20 +47107,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getMandatesMandate(input, responder, ctx) + .getMandatesMandate(input, getMandatesMandateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46297,21 +47148,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentIntentsBodySchema = z.object({}).optional() - const getPaymentIntentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_intent)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/payment_intents")), - }), - ], - ], - s_error, - ) - router.get("getPaymentIntents", "/v1/payment_intents", async (ctx, next) => { const input = { params: undefined, @@ -46328,25 +47164,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_payment_intent[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentIntents(input, responder, ctx) + .getPaymentIntents(input, getPaymentIntentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47438,11 +48257,6 @@ export function createRouter(implementation: Implementation): KoaRouter { use_stripe_sdk: PermissiveBoolean.optional(), }) - const postPaymentIntentsResponseValidator = responseValidationFactory( - [["200", s_payment_intent]], - s_error, - ) - router.post( "postPaymentIntents", "/v1/payment_intents", @@ -47458,20 +48272,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentIntents(input, responder, ctx) + .postPaymentIntents(input, postPaymentIntentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47499,23 +48301,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentIntentsSearchBodySchema = z.object({}).optional() - const getPaymentIntentsSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_intent)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getPaymentIntentsSearch", "/v1/payment_intents/search", @@ -47535,27 +48320,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_payment_intent[] - has_more: boolean - next_page?: string | null - object: "search_result" - total_count?: number - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentIntentsSearch(input, responder, ctx) + .getPaymentIntentsSearch(input, getPaymentIntentsSearchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47585,11 +48351,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentIntentsIntentBodySchema = z.object({}).optional() - const getPaymentIntentsIntentResponseValidator = responseValidationFactory( - [["200", s_payment_intent]], - s_error, - ) - router.get( "getPaymentIntentsIntent", "/v1/payment_intents/:intent", @@ -47613,20 +48374,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentIntentsIntent(input, responder, ctx) + .getPaymentIntentsIntent(input, getPaymentIntentsIntentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48702,11 +49451,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentIntentsIntentResponseValidator = responseValidationFactory( - [["200", s_payment_intent]], - s_error, - ) - router.post( "postPaymentIntentsIntent", "/v1/payment_intents/:intent", @@ -48726,20 +49470,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentIntentsIntent(input, responder, ctx) + .postPaymentIntentsIntent(input, postPaymentIntentsIntentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48765,9 +49497,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentIntentsIntentApplyCustomerBalanceResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - router.post( "postPaymentIntentsIntentApplyCustomerBalance", "/v1/payment_intents/:intent/apply_customer_balance", @@ -48787,20 +49516,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentIntentsIntentApplyCustomerBalance(input, responder, ctx) + .postPaymentIntentsIntentApplyCustomerBalance( + input, + postPaymentIntentsIntentApplyCustomerBalanceResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48830,9 +49551,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentIntentsIntentCancelResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - router.post( "postPaymentIntentsIntentCancel", "/v1/payment_intents/:intent/cancel", @@ -48852,20 +49570,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentIntentsIntentCancel(input, responder, ctx) + .postPaymentIntentsIntentCancel( + input, + postPaymentIntentsIntentCancelResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48898,9 +49608,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentIntentsIntentCaptureResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - router.post( "postPaymentIntentsIntentCapture", "/v1/payment_intents/:intent/capture", @@ -48920,20 +49627,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentIntentsIntentCapture(input, responder, ctx) + .postPaymentIntentsIntentCapture( + input, + postPaymentIntentsIntentCaptureResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50033,9 +50732,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentIntentsIntentConfirmResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - router.post( "postPaymentIntentsIntentConfirm", "/v1/payment_intents/:intent/confirm", @@ -50055,20 +50751,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentIntentsIntentConfirm(input, responder, ctx) + .postPaymentIntentsIntentConfirm( + input, + postPaymentIntentsIntentConfirmResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50098,9 +50786,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postPaymentIntentsIntentIncrementAuthorizationResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - router.post( "postPaymentIntentsIntentIncrementAuthorization", "/v1/payment_intents/:intent/increment_authorization", @@ -50120,20 +50805,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentIntentsIntentIncrementAuthorization(input, responder, ctx) + .postPaymentIntentsIntentIncrementAuthorization( + input, + postPaymentIntentsIntentIncrementAuthorizationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50164,9 +50841,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentIntentsIntentVerifyMicrodepositsResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - router.post( "postPaymentIntentsIntentVerifyMicrodeposits", "/v1/payment_intents/:intent/verify_microdeposits", @@ -50186,20 +50860,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentIntentsIntentVerifyMicrodeposits(input, responder, ctx) + .postPaymentIntentsIntentVerifyMicrodeposits( + input, + postPaymentIntentsIntentVerifyMicrodepositsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50231,21 +50897,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentLinksBodySchema = z.object({}).optional() - const getPaymentLinksResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_link)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/payment_links")), - }), - ], - ], - s_error, - ) - router.get("getPaymentLinks", "/v1/payment_links", async (ctx, next) => { const input = { params: undefined, @@ -50262,25 +50913,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_payment_link[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentLinks(input, responder, ctx) + .getPaymentLinks(input, getPaymentLinksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50811,11 +51445,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postPaymentLinksResponseValidator = responseValidationFactory( - [["200", s_payment_link]], - s_error, - ) - router.post("postPaymentLinks", "/v1/payment_links", async (ctx, next) => { const input = { params: undefined, @@ -50828,20 +51457,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentLinks(input, responder, ctx) + .postPaymentLinks(input, postPaymentLinksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50869,11 +51486,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentLinksPaymentLinkBodySchema = z.object({}).optional() - const getPaymentLinksPaymentLinkResponseValidator = responseValidationFactory( - [["200", s_payment_link]], - s_error, - ) - router.get( "getPaymentLinksPaymentLink", "/v1/payment_links/:payment_link", @@ -50897,20 +51509,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentLinksPaymentLink(input, responder, ctx) + .getPaymentLinksPaymentLink( + input, + getPaymentLinksPaymentLinkResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51439,9 +52043,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentLinksPaymentLinkResponseValidator = - responseValidationFactory([["200", s_payment_link]], s_error) - router.post( "postPaymentLinksPaymentLink", "/v1/payment_links/:payment_link", @@ -51461,20 +52062,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentLinksPaymentLink(input, responder, ctx) + .postPaymentLinksPaymentLink( + input, + postPaymentLinksPaymentLinkResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51506,22 +52099,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentLinksPaymentLinkLineItemsBodySchema = z.object({}).optional() - const getPaymentLinksPaymentLinkLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getPaymentLinksPaymentLinkLineItems", "/v1/payment_links/:payment_link/line_items", @@ -51545,25 +52122,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentLinksPaymentLinkLineItems(input, responder, ctx) + .getPaymentLinksPaymentLinkLineItems( + input, + getPaymentLinksPaymentLinkLineItemsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51595,25 +52159,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentMethodConfigurationsBodySchema = z.object({}).optional() - const getPaymentMethodConfigurationsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_payment_method_configuration), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/payment_method_configurations")), - }), - ], - ], - s_error, - ) - router.get( "getPaymentMethodConfigurations", "/v1/payment_method_configurations", @@ -51633,25 +52178,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_payment_method_configuration[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentMethodConfigurations(input, responder, ctx) + .getPaymentMethodConfigurations( + input, + getPaymentMethodConfigurationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51995,12 +52527,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentMethodConfigurationsResponseValidator = - responseValidationFactory( - [["200", s_payment_method_configuration]], - s_error, - ) - router.post( "postPaymentMethodConfigurations", "/v1/payment_method_configurations", @@ -52016,20 +52542,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentMethodConfigurations(input, responder, ctx) + .postPaymentMethodConfigurations( + input, + postPaymentMethodConfigurationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52060,12 +52578,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getPaymentMethodConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [["200", s_payment_method_configuration]], - s_error, - ) - router.get( "getPaymentMethodConfigurationsConfiguration", "/v1/payment_method_configurations/:configuration", @@ -52089,20 +52601,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentMethodConfigurationsConfiguration(input, responder, ctx) + .getPaymentMethodConfigurationsConfiguration( + input, + getPaymentMethodConfigurationsConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52453,12 +52957,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentMethodConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [["200", s_payment_method_configuration]], - s_error, - ) - router.post( "postPaymentMethodConfigurationsConfiguration", "/v1/payment_method_configurations/:configuration", @@ -52478,20 +52976,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentMethodConfigurationsConfiguration(input, responder, ctx) + .postPaymentMethodConfigurationsConfiguration( + input, + postPaymentMethodConfigurationsConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52524,24 +53014,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentMethodDomainsBodySchema = z.object({}).optional() - const getPaymentMethodDomainsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_payment_method_domain), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/payment_method_domains")), - }), - ], - ], - s_error, - ) - router.get( "getPaymentMethodDomains", "/v1/payment_method_domains", @@ -52561,25 +53033,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_payment_method_domain[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentMethodDomains(input, responder, ctx) + .getPaymentMethodDomains(input, getPaymentMethodDomainsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52599,11 +53054,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.array(z.string().max(5000)).optional(), }) - const postPaymentMethodDomainsResponseValidator = responseValidationFactory( - [["200", s_payment_method_domain]], - s_error, - ) - router.post( "postPaymentMethodDomains", "/v1/payment_method_domains", @@ -52619,20 +53069,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentMethodDomains(input, responder, ctx) + .postPaymentMethodDomains(input, postPaymentMethodDomainsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52663,9 +53101,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getPaymentMethodDomainsPaymentMethodDomainResponseValidator = - responseValidationFactory([["200", s_payment_method_domain]], s_error) - router.get( "getPaymentMethodDomainsPaymentMethodDomain", "/v1/payment_method_domains/:payment_method_domain", @@ -52689,20 +53124,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentMethodDomainsPaymentMethodDomain(input, responder, ctx) + .getPaymentMethodDomainsPaymentMethodDomain( + input, + getPaymentMethodDomainsPaymentMethodDomainResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52730,9 +53157,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentMethodDomainsPaymentMethodDomainResponseValidator = - responseValidationFactory([["200", s_payment_method_domain]], s_error) - router.post( "postPaymentMethodDomainsPaymentMethodDomain", "/v1/payment_method_domains/:payment_method_domain", @@ -52752,20 +53176,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentMethodDomainsPaymentMethodDomain(input, responder, ctx) + .postPaymentMethodDomainsPaymentMethodDomain( + input, + postPaymentMethodDomainsPaymentMethodDomainResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52789,9 +53205,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postPaymentMethodDomainsPaymentMethodDomainValidateResponseValidator = - responseValidationFactory([["200", s_payment_method_domain]], s_error) - router.post( "postPaymentMethodDomainsPaymentMethodDomainValidate", "/v1/payment_method_domains/:payment_method_domain/validate", @@ -52811,22 +53224,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postPaymentMethodDomainsPaymentMethodDomainValidate( input, - responder, + postPaymentMethodDomainsPaymentMethodDomainValidateResponder, ctx, ) .catch((err) => { @@ -52912,21 +53313,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentMethodsBodySchema = z.object({}).optional() - const getPaymentMethodsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_method)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/payment_methods")), - }), - ], - ], - s_error, - ) - router.get("getPaymentMethods", "/v1/payment_methods", async (ctx, next) => { const input = { params: undefined, @@ -52943,25 +53329,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_payment_method[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentMethods(input, responder, ctx) + .getPaymentMethods(input, getPaymentMethodsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53288,11 +53657,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentMethodsResponseValidator = responseValidationFactory( - [["200", s_payment_method]], - s_error, - ) - router.post( "postPaymentMethods", "/v1/payment_methods", @@ -53308,20 +53672,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentMethods(input, responder, ctx) + .postPaymentMethods(input, postPaymentMethodsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53350,9 +53702,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPaymentMethodsPaymentMethodBodySchema = z.object({}).optional() - const getPaymentMethodsPaymentMethodResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) - router.get( "getPaymentMethodsPaymentMethod", "/v1/payment_methods/:payment_method", @@ -53376,20 +53725,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPaymentMethodsPaymentMethod(input, responder, ctx) + .getPaymentMethodsPaymentMethod( + input, + getPaymentMethodsPaymentMethodResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53456,9 +53797,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPaymentMethodsPaymentMethodResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) - router.post( "postPaymentMethodsPaymentMethod", "/v1/payment_methods/:payment_method", @@ -53478,20 +53816,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentMethodsPaymentMethod(input, responder, ctx) + .postPaymentMethodsPaymentMethod( + input, + postPaymentMethodsPaymentMethodResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53514,9 +53844,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.array(z.string().max(5000)).optional(), }) - const postPaymentMethodsPaymentMethodAttachResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) - router.post( "postPaymentMethodsPaymentMethodAttach", "/v1/payment_methods/:payment_method/attach", @@ -53536,20 +53863,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentMethodsPaymentMethodAttach(input, responder, ctx) + .postPaymentMethodsPaymentMethodAttach( + input, + postPaymentMethodsPaymentMethodAttachResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53574,9 +53893,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postPaymentMethodsPaymentMethodDetachResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) - router.post( "postPaymentMethodsPaymentMethodDetach", "/v1/payment_methods/:payment_method/detach", @@ -53596,20 +53912,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPaymentMethodsPaymentMethodDetach(input, responder, ctx) + .postPaymentMethodsPaymentMethodDetach( + input, + postPaymentMethodsPaymentMethodDetachResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53664,21 +53972,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPayoutsBodySchema = z.object({}).optional() - const getPayoutsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payout)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/payouts")), - }), - ], - ], - s_error, - ) - router.get("getPayouts", "/v1/payouts", async (ctx, next) => { const input = { params: undefined, @@ -53695,25 +53988,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_payout[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPayouts(input, responder, ctx) + .getPayouts(input, getPayoutsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53738,11 +54014,6 @@ export function createRouter(implementation: Implementation): KoaRouter { statement_descriptor: z.string().max(22).optional(), }) - const postPayoutsResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, - ) - router.post("postPayouts", "/v1/payouts", async (ctx, next) => { const input = { params: undefined, @@ -53755,20 +54026,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPayouts(input, responder, ctx) + .postPayouts(input, postPayoutsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53794,11 +54053,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPayoutsPayoutBodySchema = z.object({}).optional() - const getPayoutsPayoutResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, - ) - router.get("getPayoutsPayout", "/v1/payouts/:payout", async (ctx, next) => { const input = { params: parseRequestInput( @@ -53819,20 +54073,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPayoutsPayout(input, responder, ctx) + .getPayoutsPayout(input, getPayoutsPayoutResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53856,11 +54098,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPayoutsPayoutResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, - ) - router.post("postPayoutsPayout", "/v1/payouts/:payout", async (ctx, next) => { const input = { params: parseRequestInput( @@ -53877,20 +54114,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPayoutsPayout(input, responder, ctx) + .postPayoutsPayout(input, postPayoutsPayoutResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53911,11 +54136,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postPayoutsPayoutCancelResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, - ) - router.post( "postPayoutsPayoutCancel", "/v1/payouts/:payout/cancel", @@ -53935,20 +54155,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPayoutsPayoutCancel(input, responder, ctx) + .postPayoutsPayoutCancel(input, postPayoutsPayoutCancelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53973,11 +54181,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPayoutsPayoutReverseResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, - ) - router.post( "postPayoutsPayoutReverse", "/v1/payouts/:payout/reverse", @@ -53997,20 +54200,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPayoutsPayoutReverse(input, responder, ctx) + .postPayoutsPayoutReverse(input, postPayoutsPayoutReverseResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54051,21 +54242,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPlansBodySchema = z.object({}).optional() - const getPlansResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_plan)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/plans")), - }), - ], - ], - s_error, - ) - router.get("getPlans", "/v1/plans", async (ctx, next) => { const input = { params: undefined, @@ -54082,25 +54258,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_plan[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPlans(input, responder, ctx) + .getPlans(input, getPlansResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54159,11 +54318,6 @@ export function createRouter(implementation: Implementation): KoaRouter { usage_type: z.enum(["licensed", "metered"]).optional(), }) - const postPlansResponseValidator = responseValidationFactory( - [["200", s_plan]], - s_error, - ) - router.post("postPlans", "/v1/plans", async (ctx, next) => { const input = { params: undefined, @@ -54176,20 +54330,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPlans(input, responder, ctx) + .postPlans(input, postPlansResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54206,11 +54348,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deletePlansPlanBodySchema = z.object({}).optional() - const deletePlansPlanResponseValidator = responseValidationFactory( - [["200", s_deleted_plan]], - s_error, - ) - router.delete("deletePlansPlan", "/v1/plans/:plan", async (ctx, next) => { const input = { params: parseRequestInput( @@ -54227,20 +54364,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deletePlansPlan(input, responder, ctx) + .deletePlansPlan(input, deletePlansPlanResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54266,11 +54391,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPlansPlanBodySchema = z.object({}).optional() - const getPlansPlanResponseValidator = responseValidationFactory( - [["200", s_plan]], - s_error, - ) - router.get("getPlansPlan", "/v1/plans/:plan", async (ctx, next) => { const input = { params: parseRequestInput( @@ -54291,20 +54411,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPlansPlan(input, responder, ctx) + .getPlansPlan(input, getPlansPlanResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54330,11 +54438,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPlansPlanResponseValidator = responseValidationFactory( - [["200", s_plan]], - s_error, - ) - router.post("postPlansPlan", "/v1/plans/:plan", async (ctx, next) => { const input = { params: parseRequestInput( @@ -54351,20 +54454,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPlansPlan(input, responder, ctx) + .postPlansPlan(input, postPlansPlanResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54419,21 +54510,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPricesBodySchema = z.object({}).optional() - const getPricesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_price)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/prices")), - }), - ], - ], - s_error, - ) - router.get("getPrices", "/v1/prices", async (ctx, next) => { const input = { params: undefined, @@ -54450,25 +54526,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_price[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPrices(input, responder, ctx) + .getPrices(input, getPricesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54568,11 +54627,6 @@ export function createRouter(implementation: Implementation): KoaRouter { unit_amount_decimal: z.string().optional(), }) - const postPricesResponseValidator = responseValidationFactory( - [["200", s_price]], - s_error, - ) - router.post("postPrices", "/v1/prices", async (ctx, next) => { const input = { params: undefined, @@ -54585,20 +54639,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPrices(input, responder, ctx) + .postPrices(input, postPricesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54625,23 +54667,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPricesSearchBodySchema = z.object({}).optional() - const getPricesSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_price)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getPricesSearch", "/v1/prices/search", async (ctx, next) => { const input = { params: undefined, @@ -54658,27 +54683,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_price[] - has_more: boolean - next_page?: string | null - object: "search_result" - total_count?: number - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPricesSearch(input, responder, ctx) + .getPricesSearch(input, getPricesSearchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54704,11 +54710,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPricesPriceBodySchema = z.object({}).optional() - const getPricesPriceResponseValidator = responseValidationFactory( - [["200", s_price]], - s_error, - ) - router.get("getPricesPrice", "/v1/prices/:price", async (ctx, next) => { const input = { params: parseRequestInput( @@ -54729,20 +54730,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPricesPrice(input, responder, ctx) + .getPricesPrice(input, getPricesPriceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54804,11 +54793,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPricesPriceResponseValidator = responseValidationFactory( - [["200", s_price]], - s_error, - ) - router.post("postPricesPrice", "/v1/prices/:price", async (ctx, next) => { const input = { params: parseRequestInput( @@ -54825,20 +54809,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPricesPrice(input, responder, ctx) + .postPricesPrice(input, postPricesPriceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54885,21 +54857,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getProductsBodySchema = z.object({}).optional() - const getProductsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_product)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/products")), - }), - ], - ], - s_error, - ) - router.get("getProducts", "/v1/products", async (ctx, next) => { const input = { params: undefined, @@ -54916,25 +54873,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_product[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getProducts(input, responder, ctx) + .getProducts(input, getProductsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55028,11 +54968,6 @@ export function createRouter(implementation: Implementation): KoaRouter { url: z.string().max(5000).optional(), }) - const postProductsResponseValidator = responseValidationFactory( - [["200", s_product]], - s_error, - ) - router.post("postProducts", "/v1/products", async (ctx, next) => { const input = { params: undefined, @@ -55045,20 +54980,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postProducts(input, responder, ctx) + .postProducts(input, postProductsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55085,23 +55008,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getProductsSearchBodySchema = z.object({}).optional() - const getProductsSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_product)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getProductsSearch", "/v1/products/search", async (ctx, next) => { const input = { params: undefined, @@ -55118,27 +55024,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_product[] - has_more: boolean - next_page?: string | null - object: "search_result" - total_count?: number - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getProductsSearch(input, responder, ctx) + .getProductsSearch(input, getProductsSearchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55155,11 +55042,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteProductsIdBodySchema = z.object({}).optional() - const deleteProductsIdResponseValidator = responseValidationFactory( - [["200", s_deleted_product]], - s_error, - ) - router.delete("deleteProductsId", "/v1/products/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -55176,20 +55058,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteProductsId(input, responder, ctx) + .deleteProductsId(input, deleteProductsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55215,11 +55085,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getProductsIdBodySchema = z.object({}).optional() - const getProductsIdResponseValidator = responseValidationFactory( - [["200", s_product]], - s_error, - ) - router.get("getProductsId", "/v1/products/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -55240,20 +55105,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getProductsId(input, responder, ctx) + .getProductsId(input, getProductsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55302,11 +55155,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postProductsIdResponseValidator = responseValidationFactory( - [["200", s_product]], - s_error, - ) - router.post("postProductsId", "/v1/products/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -55323,20 +55171,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postProductsId(input, responder, ctx) + .postProductsId(input, postProductsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55367,21 +55203,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getProductsProductFeaturesBodySchema = z.object({}).optional() - const getProductsProductFeaturesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_product_feature), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getProductsProductFeatures", "/v1/products/:product/features", @@ -55405,25 +55226,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_product_feature[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getProductsProductFeatures(input, responder, ctx) + .getProductsProductFeatures( + input, + getProductsProductFeaturesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55446,9 +55254,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.array(z.string().max(5000)).optional(), }) - const postProductsProductFeaturesResponseValidator = - responseValidationFactory([["200", s_product_feature]], s_error) - router.post( "postProductsProductFeatures", "/v1/products/:product/features", @@ -55468,20 +55273,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postProductsProductFeatures(input, responder, ctx) + .postProductsProductFeatures( + input, + postProductsProductFeaturesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55502,9 +55299,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteProductsProductFeaturesIdBodySchema = z.object({}).optional() - const deleteProductsProductFeaturesIdResponseValidator = - responseValidationFactory([["200", s_deleted_product_feature]], s_error) - router.delete( "deleteProductsProductFeaturesId", "/v1/products/:product/features/:id", @@ -55524,20 +55318,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteProductsProductFeaturesId(input, responder, ctx) + .deleteProductsProductFeaturesId( + input, + deleteProductsProductFeaturesIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55567,9 +55353,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getProductsProductFeaturesIdBodySchema = z.object({}).optional() - const getProductsProductFeaturesIdResponseValidator = - responseValidationFactory([["200", s_product_feature]], s_error) - router.get( "getProductsProductFeaturesId", "/v1/products/:product/features/:id", @@ -55593,20 +55376,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getProductsProductFeaturesId(input, responder, ctx) + .getProductsProductFeaturesId( + input, + getProductsProductFeaturesIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55649,21 +55424,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPromotionCodesBodySchema = z.object({}).optional() - const getPromotionCodesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_promotion_code)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/promotion_codes")), - }), - ], - ], - s_error, - ) - router.get("getPromotionCodes", "/v1/promotion_codes", async (ctx, next) => { const input = { params: undefined, @@ -55680,25 +55440,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_promotion_code[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPromotionCodes(input, responder, ctx) + .getPromotionCodes(input, getPromotionCodesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55732,11 +55475,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postPromotionCodesResponseValidator = responseValidationFactory( - [["200", s_promotion_code]], - s_error, - ) - router.post( "postPromotionCodes", "/v1/promotion_codes", @@ -55752,20 +55490,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPromotionCodes(input, responder, ctx) + .postPromotionCodes(input, postPromotionCodesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55794,9 +55520,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getPromotionCodesPromotionCodeBodySchema = z.object({}).optional() - const getPromotionCodesPromotionCodeResponseValidator = - responseValidationFactory([["200", s_promotion_code]], s_error) - router.get( "getPromotionCodesPromotionCode", "/v1/promotion_codes/:promotion_code", @@ -55820,20 +55543,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getPromotionCodesPromotionCode(input, responder, ctx) + .getPromotionCodesPromotionCode( + input, + getPromotionCodesPromotionCodeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55866,9 +55581,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postPromotionCodesPromotionCodeResponseValidator = - responseValidationFactory([["200", s_promotion_code]], s_error) - router.post( "postPromotionCodesPromotionCode", "/v1/promotion_codes/:promotion_code", @@ -55888,20 +55600,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postPromotionCodesPromotionCode(input, responder, ctx) + .postPromotionCodesPromotionCode( + input, + postPromotionCodesPromotionCodeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55932,21 +55636,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getQuotesBodySchema = z.object({}).optional() - const getQuotesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_quote)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/quotes")), - }), - ], - ], - s_error, - ) - router.get("getQuotes", "/v1/quotes", async (ctx, next) => { const input = { params: undefined, @@ -55963,25 +55652,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_quote[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getQuotes(input, responder, ctx) + .getQuotes(input, getQuotesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56126,11 +55798,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postQuotesResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, - ) - router.post("postQuotes", "/v1/quotes", async (ctx, next) => { const input = { params: undefined, @@ -56143,20 +55810,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postQuotes(input, responder, ctx) + .postQuotes(input, postQuotesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56182,11 +55837,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getQuotesQuoteBodySchema = z.object({}).optional() - const getQuotesQuoteResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, - ) - router.get("getQuotesQuote", "/v1/quotes/:quote", async (ctx, next) => { const input = { params: parseRequestInput( @@ -56207,20 +55857,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getQuotesQuote(input, responder, ctx) + .getQuotesQuote(input, getQuotesQuoteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56361,11 +55999,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postQuotesQuoteResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, - ) - router.post("postQuotesQuote", "/v1/quotes/:quote", async (ctx, next) => { const input = { params: parseRequestInput( @@ -56382,20 +56015,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postQuotesQuote(input, responder, ctx) + .postQuotesQuote(input, postQuotesQuoteResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56416,11 +56037,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postQuotesQuoteAcceptResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, - ) - router.post( "postQuotesQuoteAccept", "/v1/quotes/:quote/accept", @@ -56440,20 +56056,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postQuotesQuoteAccept(input, responder, ctx) + .postQuotesQuoteAccept(input, postQuotesQuoteAcceptResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56475,11 +56079,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postQuotesQuoteCancelResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, - ) - router.post( "postQuotesQuoteCancel", "/v1/quotes/:quote/cancel", @@ -56499,20 +56098,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postQuotesQuoteCancel(input, responder, ctx) + .postQuotesQuoteCancel(input, postQuotesQuoteCancelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56546,22 +56133,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getQuotesQuoteComputedUpfrontLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getQuotesQuoteComputedUpfrontLineItems", "/v1/quotes/:quote/computed_upfront_line_items", @@ -56585,25 +56156,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getQuotesQuoteComputedUpfrontLineItems(input, responder, ctx) + .getQuotesQuoteComputedUpfrontLineItems( + input, + getQuotesQuoteComputedUpfrontLineItemsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56631,11 +56189,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postQuotesQuoteFinalizeResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, - ) - router.post( "postQuotesQuoteFinalize", "/v1/quotes/:quote/finalize", @@ -56655,20 +56208,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postQuotesQuoteFinalize(input, responder, ctx) + .postQuotesQuoteFinalize(input, postQuotesQuoteFinalizeResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56700,21 +56241,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getQuotesQuoteLineItemsBodySchema = z.object({}).optional() - const getQuotesQuoteLineItemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getQuotesQuoteLineItems", "/v1/quotes/:quote/line_items", @@ -56738,25 +56264,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getQuotesQuoteLineItems(input, responder, ctx) + .getQuotesQuoteLineItems(input, getQuotesQuoteLineItemsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56783,11 +56292,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getQuotesQuotePdfBodySchema = z.object({}).optional() - const getQuotesQuotePdfResponseValidator = responseValidationFactory( - [["200", z.string()]], - s_error, - ) - router.get( "getQuotesQuotePdf", "/v1/quotes/:quote/pdf", @@ -56811,20 +56315,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getQuotesQuotePdf(input, responder, ctx) + .getQuotesQuotePdf(input, getQuotesQuotePdfResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56865,24 +56357,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getRadarEarlyFraudWarningsBodySchema = z.object({}).optional() - const getRadarEarlyFraudWarningsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_radar_early_fraud_warning)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/radar/early_fraud_warnings")), - }), - ], - ], - s_error, - ) - router.get( "getRadarEarlyFraudWarnings", "/v1/radar/early_fraud_warnings", @@ -56902,25 +56376,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_radar_early_fraud_warning[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getRadarEarlyFraudWarnings(input, responder, ctx) + .getRadarEarlyFraudWarnings( + input, + getRadarEarlyFraudWarningsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56951,9 +56412,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getRadarEarlyFraudWarningsEarlyFraudWarningResponseValidator = - responseValidationFactory([["200", s_radar_early_fraud_warning]], s_error) - router.get( "getRadarEarlyFraudWarningsEarlyFraudWarning", "/v1/radar/early_fraud_warnings/:early_fraud_warning", @@ -56977,20 +56435,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getRadarEarlyFraudWarningsEarlyFraudWarning(input, responder, ctx) + .getRadarEarlyFraudWarningsEarlyFraudWarning( + input, + getRadarEarlyFraudWarningsEarlyFraudWarningResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57034,24 +56484,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getRadarValueListItemsBodySchema = z.object({}).optional() - const getRadarValueListItemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_radar_value_list_item), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/radar/value_list_items")), - }), - ], - ], - s_error, - ) - router.get( "getRadarValueListItems", "/v1/radar/value_list_items", @@ -57071,25 +56503,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_radar_value_list_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getRadarValueListItems(input, responder, ctx) + .getRadarValueListItems(input, getRadarValueListItemsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57109,11 +56524,6 @@ export function createRouter(implementation: Implementation): KoaRouter { value_list: z.string().max(5000), }) - const postRadarValueListItemsResponseValidator = responseValidationFactory( - [["200", s_radar_value_list_item]], - s_error, - ) - router.post( "postRadarValueListItems", "/v1/radar/value_list_items", @@ -57129,20 +56539,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postRadarValueListItems(input, responder, ctx) + .postRadarValueListItems(input, postRadarValueListItemsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57162,12 +56560,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteRadarValueListItemsItemBodySchema = z.object({}).optional() - const deleteRadarValueListItemsItemResponseValidator = - responseValidationFactory( - [["200", s_deleted_radar_value_list_item]], - s_error, - ) - router.delete( "deleteRadarValueListItemsItem", "/v1/radar/value_list_items/:item", @@ -57187,20 +56579,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteRadarValueListItemsItem(input, responder, ctx) + .deleteRadarValueListItemsItem( + input, + deleteRadarValueListItemsItemResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57229,11 +56613,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getRadarValueListItemsItemBodySchema = z.object({}).optional() - const getRadarValueListItemsItemResponseValidator = responseValidationFactory( - [["200", s_radar_value_list_item]], - s_error, - ) - router.get( "getRadarValueListItemsItem", "/v1/radar/value_list_items/:item", @@ -57257,20 +56636,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getRadarValueListItemsItem(input, responder, ctx) + .getRadarValueListItemsItem( + input, + getRadarValueListItemsItemResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57311,21 +56682,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getRadarValueListsBodySchema = z.object({}).optional() - const getRadarValueListsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_radar_value_list), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/radar/value_lists")), - }), - ], - ], - s_error, - ) - router.get( "getRadarValueLists", "/v1/radar/value_lists", @@ -57345,25 +56701,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_radar_value_list[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getRadarValueLists(input, responder, ctx) + .getRadarValueLists(input, getRadarValueListsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57398,11 +56737,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string().max(100), }) - const postRadarValueListsResponseValidator = responseValidationFactory( - [["200", s_radar_value_list]], - s_error, - ) - router.post( "postRadarValueLists", "/v1/radar/value_lists", @@ -57418,20 +56752,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postRadarValueLists(input, responder, ctx) + .postRadarValueLists(input, postRadarValueListsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57451,9 +56773,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteRadarValueListsValueListBodySchema = z.object({}).optional() - const deleteRadarValueListsValueListResponseValidator = - responseValidationFactory([["200", s_deleted_radar_value_list]], s_error) - router.delete( "deleteRadarValueListsValueList", "/v1/radar/value_lists/:value_list", @@ -57473,20 +56792,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteRadarValueListsValueList(input, responder, ctx) + .deleteRadarValueListsValueList( + input, + deleteRadarValueListsValueListResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57515,9 +56826,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getRadarValueListsValueListBodySchema = z.object({}).optional() - const getRadarValueListsValueListResponseValidator = - responseValidationFactory([["200", s_radar_value_list]], s_error) - router.get( "getRadarValueListsValueList", "/v1/radar/value_lists/:value_list", @@ -57541,20 +56849,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getRadarValueListsValueList(input, responder, ctx) + .getRadarValueListsValueList( + input, + getRadarValueListsValueListResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57581,9 +56881,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postRadarValueListsValueListResponseValidator = - responseValidationFactory([["200", s_radar_value_list]], s_error) - router.post( "postRadarValueListsValueList", "/v1/radar/value_lists/:value_list", @@ -57603,20 +56900,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postRadarValueListsValueList(input, responder, ctx) + .postRadarValueListsValueList( + input, + postRadarValueListsValueListResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57657,21 +56946,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getRefundsBodySchema = z.object({}).optional() - const getRefundsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_refund)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/refunds")), - }), - ], - ], - s_error, - ) - router.get("getRefunds", "/v1/refunds", async (ctx, next) => { const input = { params: undefined, @@ -57688,25 +56962,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_refund[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getRefunds(input, responder, ctx) + .getRefunds(input, getRefundsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57738,11 +56995,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postRefundsResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, - ) - router.post("postRefunds", "/v1/refunds", async (ctx, next) => { const input = { params: undefined, @@ -57755,20 +57007,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postRefunds(input, responder, ctx) + .postRefunds(input, postRefundsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57794,11 +57034,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getRefundsRefundBodySchema = z.object({}).optional() - const getRefundsRefundResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, - ) - router.get("getRefundsRefund", "/v1/refunds/:refund", async (ctx, next) => { const input = { params: parseRequestInput( @@ -57819,20 +57054,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getRefundsRefund(input, responder, ctx) + .getRefundsRefund(input, getRefundsRefundResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57854,11 +57077,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postRefundsRefundResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, - ) - router.post("postRefundsRefund", "/v1/refunds/:refund", async (ctx, next) => { const input = { params: parseRequestInput( @@ -57875,20 +57093,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postRefundsRefund(input, responder, ctx) + .postRefundsRefund(input, postRefundsRefundResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57907,11 +57113,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postRefundsRefundCancelResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, - ) - router.post( "postRefundsRefundCancel", "/v1/refunds/:refund/cancel", @@ -57931,20 +57132,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postRefundsRefundCancel(input, responder, ctx) + .postRefundsRefundCancel(input, postRefundsRefundCancelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57983,24 +57172,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getReportingReportRunsBodySchema = z.object({}).optional() - const getReportingReportRunsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_reporting_report_run)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/reporting/report_runs")), - }), - ], - ], - s_error, - ) - router.get( "getReportingReportRuns", "/v1/reporting/report_runs", @@ -58020,25 +57191,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_reporting_report_run[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getReportingReportRuns(input, responder, ctx) + .getReportingReportRuns(input, getReportingReportRunsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58710,11 +57864,6 @@ export function createRouter(implementation: Implementation): KoaRouter { report_type: z.string(), }) - const postReportingReportRunsResponseValidator = responseValidationFactory( - [["200", s_reporting_report_run]], - s_error, - ) - router.post( "postReportingReportRuns", "/v1/reporting/report_runs", @@ -58730,20 +57879,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postReportingReportRuns(input, responder, ctx) + .postReportingReportRuns(input, postReportingReportRunsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58772,9 +57909,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getReportingReportRunsReportRunBodySchema = z.object({}).optional() - const getReportingReportRunsReportRunResponseValidator = - responseValidationFactory([["200", s_reporting_report_run]], s_error) - router.get( "getReportingReportRunsReportRun", "/v1/reporting/report_runs/:report_run", @@ -58798,20 +57932,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getReportingReportRunsReportRun(input, responder, ctx) + .getReportingReportRunsReportRun( + input, + getReportingReportRunsReportRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58836,21 +57962,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getReportingReportTypesBodySchema = z.object({}).optional() - const getReportingReportTypesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_reporting_report_type), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getReportingReportTypes", "/v1/reporting/report_types", @@ -58870,25 +57981,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_reporting_report_type[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getReportingReportTypes(input, responder, ctx) + .getReportingReportTypes(input, getReportingReportTypesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58917,9 +58011,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getReportingReportTypesReportTypeBodySchema = z.object({}).optional() - const getReportingReportTypesReportTypeResponseValidator = - responseValidationFactory([["200", s_reporting_report_type]], s_error) - router.get( "getReportingReportTypesReportType", "/v1/reporting/report_types/:report_type", @@ -58943,20 +58034,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getReportingReportTypesReportType(input, responder, ctx) + .getReportingReportTypesReportType( + input, + getReportingReportTypesReportTypeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58998,21 +58081,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getReviewsBodySchema = z.object({}).optional() - const getReviewsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_review)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getReviews", "/v1/reviews", async (ctx, next) => { const input = { params: undefined, @@ -59029,25 +58097,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_review[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getReviews(input, responder, ctx) + .getReviews(input, getReviewsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59073,11 +58124,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getReviewsReviewBodySchema = z.object({}).optional() - const getReviewsReviewResponseValidator = responseValidationFactory( - [["200", s_review]], - s_error, - ) - router.get("getReviewsReview", "/v1/reviews/:review", async (ctx, next) => { const input = { params: parseRequestInput( @@ -59098,20 +58144,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getReviewsReview(input, responder, ctx) + .getReviewsReview(input, getReviewsReviewResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59132,11 +58166,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postReviewsReviewApproveResponseValidator = responseValidationFactory( - [["200", s_review]], - s_error, - ) - router.post( "postReviewsReviewApprove", "/v1/reviews/:review/approve", @@ -59156,20 +58185,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postReviewsReviewApprove(input, responder, ctx) + .postReviewsReviewApprove(input, postReviewsReviewApproveResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59209,21 +58226,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSetupAttemptsBodySchema = z.object({}).optional() - const getSetupAttemptsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_setup_attempt)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/setup_attempts")), - }), - ], - ], - s_error, - ) - router.get("getSetupAttempts", "/v1/setup_attempts", async (ctx, next) => { const input = { params: undefined, @@ -59240,25 +58242,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_setup_attempt[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSetupAttempts(input, responder, ctx) + .getSetupAttempts(input, getSetupAttemptsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59299,21 +58284,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSetupIntentsBodySchema = z.object({}).optional() - const getSetupIntentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_setup_intent)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/setup_intents")), - }), - ], - ], - s_error, - ) - router.get("getSetupIntents", "/v1/setup_intents", async (ctx, next) => { const input = { params: undefined, @@ -59330,25 +58300,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_setup_intent[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSetupIntents(input, responder, ctx) + .getSetupIntents(input, getSetupIntentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59865,11 +58818,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSetupIntentsResponseValidator = responseValidationFactory( - [["200", s_setup_intent]], - s_error, - ) - router.post("postSetupIntents", "/v1/setup_intents", async (ctx, next) => { const input = { params: undefined, @@ -59882,20 +58830,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSetupIntents(input, responder, ctx) + .postSetupIntents(input, postSetupIntentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59924,11 +58860,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSetupIntentsIntentBodySchema = z.object({}).optional() - const getSetupIntentsIntentResponseValidator = responseValidationFactory( - [["200", s_setup_intent]], - s_error, - ) - router.get( "getSetupIntentsIntent", "/v1/setup_intents/:intent", @@ -59952,20 +58883,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSetupIntentsIntent(input, responder, ctx) + .getSetupIntentsIntent(input, getSetupIntentsIntentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60454,11 +59373,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSetupIntentsIntentResponseValidator = responseValidationFactory( - [["200", s_setup_intent]], - s_error, - ) - router.post( "postSetupIntentsIntent", "/v1/setup_intents/:intent", @@ -60478,20 +59392,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSetupIntentsIntent(input, responder, ctx) + .postSetupIntentsIntent(input, postSetupIntentsIntentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60518,9 +59420,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSetupIntentsIntentCancelResponseValidator = - responseValidationFactory([["200", s_setup_intent]], s_error) - router.post( "postSetupIntentsIntentCancel", "/v1/setup_intents/:intent/cancel", @@ -60540,20 +59439,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSetupIntentsIntentCancel(input, responder, ctx) + .postSetupIntentsIntentCancel( + input, + postSetupIntentsIntentCancelResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61066,9 +59957,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSetupIntentsIntentConfirmResponseValidator = - responseValidationFactory([["200", s_setup_intent]], s_error) - router.post( "postSetupIntentsIntentConfirm", "/v1/setup_intents/:intent/confirm", @@ -61088,20 +59976,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSetupIntentsIntentConfirm(input, responder, ctx) + .postSetupIntentsIntentConfirm( + input, + postSetupIntentsIntentConfirmResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61128,9 +60008,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSetupIntentsIntentVerifyMicrodepositsResponseValidator = - responseValidationFactory([["200", s_setup_intent]], s_error) - router.post( "postSetupIntentsIntentVerifyMicrodeposits", "/v1/setup_intents/:intent/verify_microdeposits", @@ -61150,20 +60027,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSetupIntentsIntentVerifyMicrodeposits(input, responder, ctx) + .postSetupIntentsIntentVerifyMicrodeposits( + input, + postSetupIntentsIntentVerifyMicrodepositsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61207,21 +60076,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getShippingRatesBodySchema = z.object({}).optional() - const getShippingRatesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_shipping_rate), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/shipping_rates")), - }), - ], - ], - s_error, - ) - router.get("getShippingRates", "/v1/shipping_rates", async (ctx, next) => { const input = { params: undefined, @@ -61238,25 +60092,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_shipping_rate[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getShippingRates(input, responder, ctx) + .getShippingRates(input, getShippingRatesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61310,11 +60147,6 @@ export function createRouter(implementation: Implementation): KoaRouter { type: z.enum(["fixed_amount"]).optional(), }) - const postShippingRatesResponseValidator = responseValidationFactory( - [["200", s_shipping_rate]], - s_error, - ) - router.post("postShippingRates", "/v1/shipping_rates", async (ctx, next) => { const input = { params: undefined, @@ -61327,20 +60159,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postShippingRates(input, responder, ctx) + .postShippingRates(input, postShippingRatesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61368,9 +60188,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getShippingRatesShippingRateTokenBodySchema = z.object({}).optional() - const getShippingRatesShippingRateTokenResponseValidator = - responseValidationFactory([["200", s_shipping_rate]], s_error) - router.get( "getShippingRatesShippingRateToken", "/v1/shipping_rates/:shipping_rate_token", @@ -61394,20 +60211,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getShippingRatesShippingRateToken(input, responder, ctx) + .getShippingRatesShippingRateToken( + input, + getShippingRatesShippingRateTokenResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61453,9 +60262,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postShippingRatesShippingRateTokenResponseValidator = - responseValidationFactory([["200", s_shipping_rate]], s_error) - router.post( "postShippingRatesShippingRateToken", "/v1/shipping_rates/:shipping_rate_token", @@ -61475,20 +60281,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postShippingRatesShippingRateToken(input, responder, ctx) + .postShippingRatesShippingRateToken( + input, + postShippingRatesShippingRateTokenResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61517,11 +60315,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSigmaSavedQueriesIdResponseValidator = responseValidationFactory( - [["200", s_sigma_sigma_api_query]], - s_error, - ) - router.post( "postSigmaSavedQueriesId", "/v1/sigma/saved_queries/:id", @@ -61541,20 +60334,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSigmaSavedQueriesId(input, responder, ctx) + .postSigmaSavedQueriesId(input, postSigmaSavedQueriesIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61582,24 +60363,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSigmaScheduledQueryRunsBodySchema = z.object({}).optional() - const getSigmaScheduledQueryRunsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_scheduled_query_run)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/sigma/scheduled_query_runs")), - }), - ], - ], - s_error, - ) - router.get( "getSigmaScheduledQueryRuns", "/v1/sigma/scheduled_query_runs", @@ -61619,25 +60382,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_scheduled_query_run[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSigmaScheduledQueryRuns(input, responder, ctx) + .getSigmaScheduledQueryRuns( + input, + getSigmaScheduledQueryRunsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61668,9 +60418,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getSigmaScheduledQueryRunsScheduledQueryRunResponseValidator = - responseValidationFactory([["200", s_scheduled_query_run]], s_error) - router.get( "getSigmaScheduledQueryRunsScheduledQueryRun", "/v1/sigma/scheduled_query_runs/:scheduled_query_run", @@ -61694,20 +60441,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSigmaScheduledQueryRunsScheduledQueryRun(input, responder, ctx) + .getSigmaScheduledQueryRunsScheduledQueryRun( + input, + getSigmaScheduledQueryRunsScheduledQueryRunResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61832,11 +60571,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSourcesResponseValidator = responseValidationFactory( - [["200", s_source]], - s_error, - ) - router.post("postSources", "/v1/sources", async (ctx, next) => { const input = { params: undefined, @@ -61849,20 +60583,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSources(input, responder, ctx) + .postSources(input, postSourcesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61889,11 +60611,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSourcesSourceBodySchema = z.object({}).optional() - const getSourcesSourceResponseValidator = responseValidationFactory( - [["200", s_source]], - s_error, - ) - router.get("getSourcesSource", "/v1/sources/:source", async (ctx, next) => { const input = { params: parseRequestInput( @@ -61914,20 +60631,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSourcesSource(input, responder, ctx) + .getSourcesSource(input, getSourcesSourceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62034,11 +60739,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSourcesSourceResponseValidator = responseValidationFactory( - [["200", s_source]], - s_error, - ) - router.post("postSourcesSource", "/v1/sources/:source", async (ctx, next) => { const input = { params: parseRequestInput( @@ -62055,20 +60755,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSourcesSource(input, responder, ctx) + .postSourcesSource(input, postSourcesSourceResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62101,9 +60789,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getSourcesSourceMandateNotificationsMandateNotificationResponseValidator = - responseValidationFactory([["200", s_source_mandate_notification]], s_error) - router.get( "getSourcesSourceMandateNotificationsMandateNotification", "/v1/sources/:source/mandate_notifications/:mandate_notification", @@ -62127,22 +60812,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .getSourcesSourceMandateNotificationsMandateNotification( input, - responder, + getSourcesSourceMandateNotificationsMandateNotificationResponder, ctx, ) .catch((err) => { @@ -62180,22 +60853,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSourcesSourceSourceTransactionsBodySchema = z.object({}).optional() - const getSourcesSourceSourceTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_source_transaction), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getSourcesSourceSourceTransactions", "/v1/sources/:source/source_transactions", @@ -62219,25 +60876,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_source_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSourcesSourceSourceTransactions(input, responder, ctx) + .getSourcesSourceSourceTransactions( + input, + getSourcesSourceSourceTransactionsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62274,9 +60918,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getSourcesSourceSourceTransactionsSourceTransactionResponseValidator = - responseValidationFactory([["200", s_source_transaction]], s_error) - router.get( "getSourcesSourceSourceTransactionsSourceTransaction", "/v1/sources/:source/source_transactions/:source_transaction", @@ -62300,22 +60941,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .getSourcesSourceSourceTransactionsSourceTransaction( input, - responder, + getSourcesSourceSourceTransactionsSourceTransactionResponder, ctx, ) .catch((err) => { @@ -62344,11 +60973,6 @@ export function createRouter(implementation: Implementation): KoaRouter { values: z.array(z.string().max(5000)), }) - const postSourcesSourceVerifyResponseValidator = responseValidationFactory( - [["200", s_source]], - s_error, - ) - router.post( "postSourcesSourceVerify", "/v1/sources/:source/verify", @@ -62368,20 +60992,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSourcesSourceVerify(input, responder, ctx) + .postSourcesSourceVerify(input, postSourcesSourceVerifyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62410,24 +61022,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSubscriptionItemsBodySchema = z.object({}).optional() - const getSubscriptionItemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/subscription_items")), - }), - ], - ], - s_error, - ) - router.get( "getSubscriptionItems", "/v1/subscription_items", @@ -62447,25 +61041,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_subscription_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSubscriptionItems(input, responder, ctx) + .getSubscriptionItems(input, getSubscriptionItemsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62529,11 +61106,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postSubscriptionItemsResponseValidator = responseValidationFactory( - [["200", s_subscription_item]], - s_error, - ) - router.post( "postSubscriptionItems", "/v1/subscription_items", @@ -62549,20 +61121,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptionItems(input, responder, ctx) + .postSubscriptionItems(input, postSubscriptionItemsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62590,9 +61150,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const deleteSubscriptionItemsItemResponseValidator = - responseValidationFactory([["200", s_deleted_subscription_item]], s_error) - router.delete( "deleteSubscriptionItemsItem", "/v1/subscription_items/:item", @@ -62612,20 +61169,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteSubscriptionItemsItem(input, responder, ctx) + .deleteSubscriptionItemsItem( + input, + deleteSubscriptionItemsItemResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62654,11 +61203,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSubscriptionItemsItemBodySchema = z.object({}).optional() - const getSubscriptionItemsItemResponseValidator = responseValidationFactory( - [["200", s_subscription_item]], - s_error, - ) - router.get( "getSubscriptionItemsItem", "/v1/subscription_items/:item", @@ -62682,20 +61226,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSubscriptionItemsItem(input, responder, ctx) + .getSubscriptionItemsItem(input, getSubscriptionItemsItemResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62765,11 +61297,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSubscriptionItemsItemResponseValidator = responseValidationFactory( - [["200", s_subscription_item]], - s_error, - ) - router.post( "postSubscriptionItemsItem", "/v1/subscription_items/:item", @@ -62789,20 +61316,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptionItemsItem(input, responder, ctx) + .postSubscriptionItemsItem( + input, + postSubscriptionItemsItemResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62876,24 +61395,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSubscriptionSchedulesBodySchema = z.object({}).optional() - const getSubscriptionSchedulesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription_schedule)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/subscription_schedules")), - }), - ], - ], - s_error, - ) - router.get( "getSubscriptionSchedules", "/v1/subscription_schedules", @@ -62913,25 +61414,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_subscription_schedule[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSubscriptionSchedules(input, responder, ctx) + .getSubscriptionSchedules(input, getSubscriptionSchedulesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63143,11 +61627,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSubscriptionSchedulesResponseValidator = responseValidationFactory( - [["200", s_subscription_schedule]], - s_error, - ) - router.post( "postSubscriptionSchedules", "/v1/subscription_schedules", @@ -63163,20 +61642,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptionSchedules(input, responder, ctx) + .postSubscriptionSchedules( + input, + postSubscriptionSchedulesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63205,9 +61676,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSubscriptionSchedulesScheduleBodySchema = z.object({}).optional() - const getSubscriptionSchedulesScheduleResponseValidator = - responseValidationFactory([["200", s_subscription_schedule]], s_error) - router.get( "getSubscriptionSchedulesSchedule", "/v1/subscription_schedules/:schedule", @@ -63231,20 +61699,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSubscriptionSchedulesSchedule(input, responder, ctx) + .getSubscriptionSchedulesSchedule( + input, + getSubscriptionSchedulesScheduleResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63462,9 +61922,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSubscriptionSchedulesScheduleResponseValidator = - responseValidationFactory([["200", s_subscription_schedule]], s_error) - router.post( "postSubscriptionSchedulesSchedule", "/v1/subscription_schedules/:schedule", @@ -63484,20 +61941,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptionSchedulesSchedule(input, responder, ctx) + .postSubscriptionSchedulesSchedule( + input, + postSubscriptionSchedulesScheduleResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63526,9 +61975,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSubscriptionSchedulesScheduleCancelResponseValidator = - responseValidationFactory([["200", s_subscription_schedule]], s_error) - router.post( "postSubscriptionSchedulesScheduleCancel", "/v1/subscription_schedules/:schedule/cancel", @@ -63548,20 +61994,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptionSchedulesScheduleCancel(input, responder, ctx) + .postSubscriptionSchedulesScheduleCancel( + input, + postSubscriptionSchedulesScheduleCancelResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63589,9 +62027,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSubscriptionSchedulesScheduleReleaseResponseValidator = - responseValidationFactory([["200", s_subscription_schedule]], s_error) - router.post( "postSubscriptionSchedulesScheduleRelease", "/v1/subscription_schedules/:schedule/release", @@ -63611,20 +62046,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptionSchedulesScheduleRelease(input, responder, ctx) + .postSubscriptionSchedulesScheduleRelease( + input, + postSubscriptionSchedulesScheduleReleaseResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63709,21 +62136,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSubscriptionsBodySchema = z.object({}).optional() - const getSubscriptionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/subscriptions")), - }), - ], - ], - s_error, - ) - router.get("getSubscriptions", "/v1/subscriptions", async (ctx, next) => { const input = { params: undefined, @@ -63740,25 +62152,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_subscription[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSubscriptions(input, responder, ctx) + .getSubscriptions(input, getSubscriptionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64120,11 +62515,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postSubscriptionsResponseValidator = responseValidationFactory( - [["200", s_subscription]], - s_error, - ) - router.post("postSubscriptions", "/v1/subscriptions", async (ctx, next) => { const input = { params: undefined, @@ -64137,20 +62527,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptions(input, responder, ctx) + .postSubscriptions(input, postSubscriptionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64177,23 +62555,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getSubscriptionsSearchBodySchema = z.object({}).optional() - const getSubscriptionsSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getSubscriptionsSearch", "/v1/subscriptions/search", @@ -64213,27 +62574,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_subscription[] - has_more: boolean - next_page?: string | null - object: "search_result" - total_count?: number - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSubscriptionsSearch(input, responder, ctx) + .getSubscriptionsSearch(input, getSubscriptionsSearchResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64277,9 +62619,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const deleteSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - router.delete( "deleteSubscriptionsSubscriptionExposedId", "/v1/subscriptions/:subscription_exposed_id", @@ -64299,20 +62638,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteSubscriptionsSubscriptionExposedId(input, responder, ctx) + .deleteSubscriptionsSubscriptionExposedId( + input, + deleteSubscriptionsSubscriptionExposedIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64346,9 +62677,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - router.get( "getSubscriptionsSubscriptionExposedId", "/v1/subscriptions/:subscription_exposed_id", @@ -64372,20 +62700,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getSubscriptionsSubscriptionExposedId(input, responder, ctx) + .getSubscriptionsSubscriptionExposedId( + input, + getSubscriptionsSubscriptionExposedIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64782,9 +63102,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - router.post( "postSubscriptionsSubscriptionExposedId", "/v1/subscriptions/:subscription_exposed_id", @@ -64804,20 +63121,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptionsSubscriptionExposedId(input, responder, ctx) + .postSubscriptionsSubscriptionExposedId( + input, + postSubscriptionsSubscriptionExposedIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64842,9 +63151,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const deleteSubscriptionsSubscriptionExposedIdDiscountResponseValidator = - responseValidationFactory([["200", s_deleted_discount]], s_error) - router.delete( "deleteSubscriptionsSubscriptionExposedIdDiscount", "/v1/subscriptions/:subscription_exposed_id/discount", @@ -64864,20 +63170,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteSubscriptionsSubscriptionExposedIdDiscount(input, responder, ctx) + .deleteSubscriptionsSubscriptionExposedIdDiscount( + input, + deleteSubscriptionsSubscriptionExposedIdDiscountResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64910,9 +63208,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postSubscriptionsSubscriptionResumeResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - router.post( "postSubscriptionsSubscriptionResume", "/v1/subscriptions/:subscription/resume", @@ -64932,20 +63227,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postSubscriptionsSubscriptionResume(input, responder, ctx) + .postSubscriptionsSubscriptionResume( + input, + postSubscriptionsSubscriptionResumeResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65129,11 +63416,6 @@ export function createRouter(implementation: Implementation): KoaRouter { tax_date: z.coerce.number().optional(), }) - const postTaxCalculationsResponseValidator = responseValidationFactory( - [["200", s_tax_calculation]], - s_error, - ) - router.post( "postTaxCalculations", "/v1/tax/calculations", @@ -65149,20 +63431,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxCalculations(input, responder, ctx) + .postTaxCalculations(input, postTaxCalculationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65191,9 +63461,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxCalculationsCalculationBodySchema = z.object({}).optional() - const getTaxCalculationsCalculationResponseValidator = - responseValidationFactory([["200", s_tax_calculation]], s_error) - router.get( "getTaxCalculationsCalculation", "/v1/tax/calculations/:calculation", @@ -65217,20 +63484,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxCalculationsCalculation(input, responder, ctx) + .getTaxCalculationsCalculation( + input, + getTaxCalculationsCalculationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65264,25 +63523,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getTaxCalculationsCalculationLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_calculation_line_item), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/tax/calculations/[^/]+/line_items")), - }), - ], - ], - s_error, - ) - router.get( "getTaxCalculationsCalculationLineItems", "/v1/tax/calculations/:calculation/line_items", @@ -65306,25 +63546,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_tax_calculation_line_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxCalculationsCalculationLineItems(input, responder, ctx) + .getTaxCalculationsCalculationLineItems( + input, + getTaxCalculationsCalculationLineItemsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65356,21 +63583,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxRegistrationsBodySchema = z.object({}).optional() - const getTaxRegistrationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_registration), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/tax/registrations")), - }), - ], - ], - s_error, - ) - router.get( "getTaxRegistrations", "/v1/tax/registrations", @@ -65390,25 +63602,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_tax_registration[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxRegistrations(input, responder, ctx) + .getTaxRegistrations(input, getTaxRegistrationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65798,11 +63993,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expires_at: z.coerce.number().optional(), }) - const postTaxRegistrationsResponseValidator = responseValidationFactory( - [["200", s_tax_registration]], - s_error, - ) - router.post( "postTaxRegistrations", "/v1/tax/registrations", @@ -65818,20 +64008,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxRegistrations(input, responder, ctx) + .postTaxRegistrations(input, postTaxRegistrationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65860,11 +64038,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxRegistrationsIdBodySchema = z.object({}).optional() - const getTaxRegistrationsIdResponseValidator = responseValidationFactory( - [["200", s_tax_registration]], - s_error, - ) - router.get( "getTaxRegistrationsId", "/v1/tax/registrations/:id", @@ -65888,20 +64061,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxRegistrationsId(input, responder, ctx) + .getTaxRegistrationsId(input, getTaxRegistrationsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65929,11 +64090,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTaxRegistrationsIdResponseValidator = responseValidationFactory( - [["200", s_tax_registration]], - s_error, - ) - router.post( "postTaxRegistrationsId", "/v1/tax/registrations/:id", @@ -65953,20 +64109,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxRegistrationsId(input, responder, ctx) + .postTaxRegistrationsId(input, postTaxRegistrationsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65991,11 +64135,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxSettingsBodySchema = z.object({}).optional() - const getTaxSettingsResponseValidator = responseValidationFactory( - [["200", s_tax_settings]], - s_error, - ) - router.get("getTaxSettings", "/v1/tax/settings", async (ctx, next) => { const input = { params: undefined, @@ -66012,20 +64151,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxSettings(input, responder, ctx) + .getTaxSettings(input, getTaxSettingsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66064,11 +64191,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTaxSettingsResponseValidator = responseValidationFactory( - [["200", s_tax_settings]], - s_error, - ) - router.post("postTaxSettings", "/v1/tax/settings", async (ctx, next) => { const input = { params: undefined, @@ -66081,20 +64203,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxSettings(input, responder, ctx) + .postTaxSettings(input, postTaxSettingsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66115,9 +64225,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reference: z.string().max(500), }) - const postTaxTransactionsCreateFromCalculationResponseValidator = - responseValidationFactory([["200", s_tax_transaction]], s_error) - router.post( "postTaxTransactionsCreateFromCalculation", "/v1/tax/transactions/create_from_calculation", @@ -66133,20 +64240,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxTransactionsCreateFromCalculation(input, responder, ctx) + .postTaxTransactionsCreateFromCalculation( + input, + postTaxTransactionsCreateFromCalculationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66187,9 +64286,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postTaxTransactionsCreateReversalResponseValidator = - responseValidationFactory([["200", s_tax_transaction]], s_error) - router.post( "postTaxTransactionsCreateReversal", "/v1/tax/transactions/create_reversal", @@ -66205,20 +64301,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxTransactionsCreateReversal(input, responder, ctx) + .postTaxTransactionsCreateReversal( + input, + postTaxTransactionsCreateReversalResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66250,9 +64338,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxTransactionsTransactionBodySchema = z.object({}).optional() - const getTaxTransactionsTransactionResponseValidator = - responseValidationFactory([["200", s_tax_transaction]], s_error) - router.get( "getTaxTransactionsTransaction", "/v1/tax/transactions/:transaction", @@ -66276,20 +64361,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxTransactionsTransaction(input, responder, ctx) + .getTaxTransactionsTransaction( + input, + getTaxTransactionsTransactionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66323,25 +64400,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getTaxTransactionsTransactionLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_transaction_line_item), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/tax/transactions/[^/]+/line_items")), - }), - ], - ], - s_error, - ) - router.get( "getTaxTransactionsTransactionLineItems", "/v1/tax/transactions/:transaction/line_items", @@ -66365,25 +64423,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_tax_transaction_line_item[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxTransactionsTransactionLineItems(input, responder, ctx) + .getTaxTransactionsTransactionLineItems( + input, + getTaxTransactionsTransactionLineItemsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66414,21 +64459,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxCodesBodySchema = z.object({}).optional() - const getTaxCodesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_code), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getTaxCodes", "/v1/tax_codes", async (ctx, next) => { const input = { params: undefined, @@ -66445,25 +64475,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_tax_code[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxCodes(input, responder, ctx) + .getTaxCodes(input, getTaxCodesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66489,11 +64502,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxCodesIdBodySchema = z.object({}).optional() - const getTaxCodesIdResponseValidator = responseValidationFactory( - [["200", s_tax_code]], - s_error, - ) - router.get("getTaxCodesId", "/v1/tax_codes/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -66514,20 +64522,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxCodesId(input, responder, ctx) + .getTaxCodesId(input, getTaxCodesIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66561,21 +64557,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxIdsBodySchema = z.object({}).optional() - const getTaxIdsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_tax_id)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get("getTaxIds", "/v1/tax_ids", async (ctx, next) => { const input = { params: undefined, @@ -66592,25 +64573,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_tax_id[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxIds(input, responder, ctx) + .getTaxIds(input, getTaxIdsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66737,11 +64701,6 @@ export function createRouter(implementation: Implementation): KoaRouter { value: z.string(), }) - const postTaxIdsResponseValidator = responseValidationFactory( - [["200", s_tax_id]], - s_error, - ) - router.post("postTaxIds", "/v1/tax_ids", async (ctx, next) => { const input = { params: undefined, @@ -66754,20 +64713,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxIds(input, responder, ctx) + .postTaxIds(input, postTaxIdsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66784,11 +64731,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteTaxIdsIdBodySchema = z.object({}).optional() - const deleteTaxIdsIdResponseValidator = responseValidationFactory( - [["200", s_deleted_tax_id]], - s_error, - ) - router.delete("deleteTaxIdsId", "/v1/tax_ids/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -66805,20 +64747,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteTaxIdsId(input, responder, ctx) + .deleteTaxIdsId(input, deleteTaxIdsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66844,11 +64774,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxIdsIdBodySchema = z.object({}).optional() - const getTaxIdsIdResponseValidator = responseValidationFactory( - [["200", s_tax_id]], - s_error, - ) - router.get("getTaxIdsId", "/v1/tax_ids/:id", async (ctx, next) => { const input = { params: parseRequestInput( @@ -66869,20 +64794,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxIdsId(input, responder, ctx) + .getTaxIdsId(input, getTaxIdsIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66922,21 +64835,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxRatesBodySchema = z.object({}).optional() - const getTaxRatesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_rate), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/tax_rates")), - }), - ], - ], - s_error, - ) - router.get("getTaxRates", "/v1/tax_rates", async (ctx, next) => { const input = { params: undefined, @@ -66953,25 +64851,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_tax_rate[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxRates(input, responder, ctx) + .getTaxRates(input, getTaxRatesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67015,11 +64896,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postTaxRatesResponseValidator = responseValidationFactory( - [["200", s_tax_rate]], - s_error, - ) - router.post("postTaxRates", "/v1/tax_rates", async (ctx, next) => { const input = { params: undefined, @@ -67032,20 +64908,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxRates(input, responder, ctx) + .postTaxRates(input, postTaxRatesResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67073,11 +64937,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTaxRatesTaxRateBodySchema = z.object({}).optional() - const getTaxRatesTaxRateResponseValidator = responseValidationFactory( - [["200", s_tax_rate]], - s_error, - ) - router.get( "getTaxRatesTaxRate", "/v1/tax_rates/:tax_rate", @@ -67101,20 +64960,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTaxRatesTaxRate(input, responder, ctx) + .getTaxRatesTaxRate(input, getTaxRatesTaxRateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67163,11 +65010,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTaxRatesTaxRateResponseValidator = responseValidationFactory( - [["200", s_tax_rate]], - s_error, - ) - router.post( "postTaxRatesTaxRate", "/v1/tax_rates/:tax_rate", @@ -67187,20 +65029,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTaxRatesTaxRate(input, responder, ctx) + .postTaxRatesTaxRate(input, postTaxRatesTaxRateResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67229,24 +65059,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTerminalConfigurationsBodySchema = z.object({}).optional() - const getTerminalConfigurationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_terminal_configuration)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/terminal/configurations")), - }), - ], - ], - s_error, - ) - router.get( "getTerminalConfigurations", "/v1/terminal/configurations", @@ -67266,25 +65078,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_terminal_configuration[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTerminalConfigurations(input, responder, ctx) + .getTerminalConfigurations( + input, + getTerminalConfigurationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67480,11 +65279,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTerminalConfigurationsResponseValidator = responseValidationFactory( - [["200", s_terminal_configuration]], - s_error, - ) - router.post( "postTerminalConfigurations", "/v1/terminal/configurations", @@ -67500,20 +65294,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalConfigurations(input, responder, ctx) + .postTerminalConfigurations( + input, + postTerminalConfigurationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67535,12 +65321,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const deleteTerminalConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [["200", s_deleted_terminal_configuration]], - s_error, - ) - router.delete( "deleteTerminalConfigurationsConfiguration", "/v1/terminal/configurations/:configuration", @@ -67560,20 +65340,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteTerminalConfigurationsConfiguration(input, responder, ctx) + .deleteTerminalConfigurationsConfiguration( + input, + deleteTerminalConfigurationsConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67607,20 +65379,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getTerminalConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.lazy(() => s_terminal_configuration), - s_deleted_terminal_configuration, - ]), - ], - ], - s_error, - ) - router.get( "getTerminalConfigurationsConfiguration", "/v1/terminal/configurations/:configuration", @@ -67644,22 +65402,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_terminal_configuration | t_deleted_terminal_configuration - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTerminalConfigurationsConfiguration(input, responder, ctx) + .getTerminalConfigurationsConfiguration( + input, + getTerminalConfigurationsConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67877,20 +65625,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTerminalConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.lazy(() => s_terminal_configuration), - s_deleted_terminal_configuration, - ]), - ], - ], - s_error, - ) - router.post( "postTerminalConfigurationsConfiguration", "/v1/terminal/configurations/:configuration", @@ -67910,22 +65644,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_terminal_configuration | t_deleted_terminal_configuration - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalConfigurationsConfiguration(input, responder, ctx) + .postTerminalConfigurationsConfiguration( + input, + postTerminalConfigurationsConfigurationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67949,9 +65673,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTerminalConnectionTokensResponseValidator = - responseValidationFactory([["200", s_terminal_connection_token]], s_error) - router.post( "postTerminalConnectionTokens", "/v1/terminal/connection_tokens", @@ -67967,20 +65688,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalConnectionTokens(input, responder, ctx) + .postTerminalConnectionTokens( + input, + postTerminalConnectionTokensResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68008,24 +65721,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTerminalLocationsBodySchema = z.object({}).optional() - const getTerminalLocationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_terminal_location), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/terminal/locations")), - }), - ], - ], - s_error, - ) - router.get( "getTerminalLocations", "/v1/terminal/locations", @@ -68045,25 +65740,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_terminal_location[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTerminalLocations(input, responder, ctx) + .getTerminalLocations(input, getTerminalLocationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68092,11 +65770,6 @@ export function createRouter(implementation: Implementation): KoaRouter { metadata: z.union([z.record(z.string()), z.enum([""])]).optional(), }) - const postTerminalLocationsResponseValidator = responseValidationFactory( - [["200", s_terminal_location]], - s_error, - ) - router.post( "postTerminalLocations", "/v1/terminal/locations", @@ -68112,20 +65785,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalLocations(input, responder, ctx) + .postTerminalLocations(input, postTerminalLocationsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68145,9 +65806,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteTerminalLocationsLocationBodySchema = z.object({}).optional() - const deleteTerminalLocationsLocationResponseValidator = - responseValidationFactory([["200", s_deleted_terminal_location]], s_error) - router.delete( "deleteTerminalLocationsLocation", "/v1/terminal/locations/:location", @@ -68167,20 +65825,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteTerminalLocationsLocation(input, responder, ctx) + .deleteTerminalLocationsLocation( + input, + deleteTerminalLocationsLocationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68209,12 +65859,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTerminalLocationsLocationBodySchema = z.object({}).optional() - const getTerminalLocationsLocationResponseValidator = - responseValidationFactory( - [["200", z.union([s_terminal_location, s_deleted_terminal_location])]], - s_error, - ) - router.get( "getTerminalLocationsLocation", "/v1/terminal/locations/:location", @@ -68238,22 +65882,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_terminal_location | t_deleted_terminal_location - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTerminalLocationsLocation(input, responder, ctx) + .getTerminalLocationsLocation( + input, + getTerminalLocationsLocationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68292,12 +65926,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTerminalLocationsLocationResponseValidator = - responseValidationFactory( - [["200", z.union([s_terminal_location, s_deleted_terminal_location])]], - s_error, - ) - router.post( "postTerminalLocationsLocation", "/v1/terminal/locations/:location", @@ -68317,22 +65945,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_terminal_location | t_deleted_terminal_location - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalLocationsLocation(input, responder, ctx) + .postTerminalLocationsLocation( + input, + postTerminalLocationsLocationResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68375,21 +65993,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTerminalReadersBodySchema = z.object({}).optional() - const getTerminalReadersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_terminal_reader)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTerminalReaders", "/v1/terminal/readers", @@ -68409,25 +66012,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_terminal_reader[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTerminalReaders(input, responder, ctx) + .getTerminalReaders(input, getTerminalReadersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68449,11 +66035,6 @@ export function createRouter(implementation: Implementation): KoaRouter { registration_code: z.string().max(5000), }) - const postTerminalReadersResponseValidator = responseValidationFactory( - [["200", s_terminal_reader]], - s_error, - ) - router.post( "postTerminalReaders", "/v1/terminal/readers", @@ -68469,20 +66050,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalReaders(input, responder, ctx) + .postTerminalReaders(input, postTerminalReadersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68502,9 +66071,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteTerminalReadersReaderBodySchema = z.object({}).optional() - const deleteTerminalReadersReaderResponseValidator = - responseValidationFactory([["200", s_deleted_terminal_reader]], s_error) - router.delete( "deleteTerminalReadersReader", "/v1/terminal/readers/:reader", @@ -68524,20 +66090,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteTerminalReadersReader(input, responder, ctx) + .deleteTerminalReadersReader( + input, + deleteTerminalReadersReaderResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68566,16 +66124,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTerminalReadersReaderBodySchema = z.object({}).optional() - const getTerminalReadersReaderResponseValidator = responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_terminal_reader), s_deleted_terminal_reader]), - ], - ], - s_error, - ) - router.get( "getTerminalReadersReader", "/v1/terminal/readers/:reader", @@ -68599,22 +66147,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_terminal_reader | t_deleted_terminal_reader - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTerminalReadersReader(input, responder, ctx) + .getTerminalReadersReader(input, getTerminalReadersReaderResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68640,16 +66174,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTerminalReadersReaderResponseValidator = responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_terminal_reader), s_deleted_terminal_reader]), - ], - ], - s_error, - ) - router.post( "postTerminalReadersReader", "/v1/terminal/readers/:reader", @@ -68669,22 +66193,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse< - t_terminal_reader | t_deleted_terminal_reader - >(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalReadersReader(input, responder, ctx) + .postTerminalReadersReader( + input, + postTerminalReadersReaderResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68706,9 +66220,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTerminalReadersReaderCancelActionResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - router.post( "postTerminalReadersReaderCancelAction", "/v1/terminal/readers/:reader/cancel_action", @@ -68728,20 +66239,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalReadersReaderCancelAction(input, responder, ctx) + .postTerminalReadersReaderCancelAction( + input, + postTerminalReadersReaderCancelActionResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68779,9 +66282,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postTerminalReadersReaderProcessPaymentIntentResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - router.post( "postTerminalReadersReaderProcessPaymentIntent", "/v1/terminal/readers/:reader/process_payment_intent", @@ -68801,20 +66301,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalReadersReaderProcessPaymentIntent(input, responder, ctx) + .postTerminalReadersReaderProcessPaymentIntent( + input, + postTerminalReadersReaderProcessPaymentIntentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68844,9 +66336,6 @@ export function createRouter(implementation: Implementation): KoaRouter { setup_intent: z.string().max(5000), }) - const postTerminalReadersReaderProcessSetupIntentResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - router.post( "postTerminalReadersReaderProcessSetupIntent", "/v1/terminal/readers/:reader/process_setup_intent", @@ -68866,20 +66355,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalReadersReaderProcessSetupIntent(input, responder, ctx) + .postTerminalReadersReaderProcessSetupIntent( + input, + postTerminalReadersReaderProcessSetupIntentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68915,9 +66396,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTerminalReadersReaderRefundPaymentResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - router.post( "postTerminalReadersReaderRefundPayment", "/v1/terminal/readers/:reader/refund_payment", @@ -68937,20 +66415,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalReadersReaderRefundPayment(input, responder, ctx) + .postTerminalReadersReaderRefundPayment( + input, + postTerminalReadersReaderRefundPaymentResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68990,9 +66460,6 @@ export function createRouter(implementation: Implementation): KoaRouter { type: z.enum(["cart"]), }) - const postTerminalReadersReaderSetReaderDisplayResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - router.post( "postTerminalReadersReaderSetReaderDisplay", "/v1/terminal/readers/:reader/set_reader_display", @@ -69012,20 +66479,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTerminalReadersReaderSetReaderDisplay(input, responder, ctx) + .postTerminalReadersReaderSetReaderDisplay( + input, + postTerminalReadersReaderSetReaderDisplayResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69356,9 +66815,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTestHelpersConfirmationTokensResponseValidator = - responseValidationFactory([["200", s_confirmation_token]], s_error) - router.post( "postTestHelpersConfirmationTokens", "/v1/test_helpers/confirmation_tokens", @@ -69374,20 +66830,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersConfirmationTokens(input, responder, ctx) + .postTestHelpersConfirmationTokens( + input, + postTestHelpersConfirmationTokensResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69415,12 +66863,6 @@ export function createRouter(implementation: Implementation): KoaRouter { reference: z.string().max(5000).optional(), }) - const postTestHelpersCustomersCustomerFundCashBalanceResponseValidator = - responseValidationFactory( - [["200", s_customer_cash_balance_transaction]], - s_error, - ) - router.post( "postTestHelpersCustomersCustomerFundCashBalance", "/v1/test_helpers/customers/:customer/fund_cash_balance", @@ -69440,22 +66882,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersCustomersCustomerFundCashBalance(input, responder, ctx) + .postTestHelpersCustomersCustomerFundCashBalance( + input, + postTestHelpersCustomersCustomerFundCashBalanceResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69905,9 +67337,6 @@ export function createRouter(implementation: Implementation): KoaRouter { wallet: z.enum(["apple_pay", "google_pay", "samsung_pay"]).optional(), }) - const postTestHelpersIssuingAuthorizationsResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postTestHelpersIssuingAuthorizations", "/v1/test_helpers/issuing/authorizations", @@ -69923,20 +67352,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersIssuingAuthorizations(input, responder, ctx) + .postTestHelpersIssuingAuthorizations( + input, + postTestHelpersIssuingAuthorizationsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70072,9 +67493,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postTestHelpersIssuingAuthorizationsAuthorizationCapture", "/v1/test_helpers/issuing/authorizations/:authorization/capture", @@ -70094,22 +67512,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationCapture( input, - responder, + postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder, ctx, ) .catch((err) => { @@ -70136,9 +67542,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersIssuingAuthorizationsAuthorizationExpireResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postTestHelpersIssuingAuthorizationsAuthorizationExpire", "/v1/test_helpers/issuing/authorizations/:authorization/expire", @@ -70158,22 +67561,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationExpire( input, - responder, + postTestHelpersIssuingAuthorizationsAuthorizationExpireResponder, ctx, ) .catch((err) => { @@ -70269,9 +67660,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount", "/v1/test_helpers/issuing/authorizations/:authorization/finalize_amount", @@ -70291,22 +67679,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount( input, - responder, + postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder, ctx, ) .catch((err) => { @@ -70335,9 +67711,6 @@ export function createRouter(implementation: Implementation): KoaRouter { expand: z.array(z.string().max(5000)).optional(), }) - const postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond", "/v1/test_helpers/issuing/authorizations/:authorization/fraud_challenges/respond", @@ -70357,22 +67730,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond( input, - responder, + postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder, ctx, ) .catch((err) => { @@ -70402,9 +67763,6 @@ export function createRouter(implementation: Implementation): KoaRouter { is_amount_controllable: PermissiveBoolean.optional(), }) - const postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postTestHelpersIssuingAuthorizationsAuthorizationIncrement", "/v1/test_helpers/issuing/authorizations/:authorization/increment", @@ -70424,22 +67782,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationIncrement( input, - responder, + postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder, ctx, ) .catch((err) => { @@ -70469,9 +67815,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTestHelpersIssuingAuthorizationsAuthorizationReverseResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - router.post( "postTestHelpersIssuingAuthorizationsAuthorizationReverse", "/v1/test_helpers/issuing/authorizations/:authorization/reverse", @@ -70491,22 +67834,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationReverse( input, - responder, + postTestHelpersIssuingAuthorizationsAuthorizationReverseResponder, ctx, ) .catch((err) => { @@ -70534,9 +67865,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersIssuingCardsCardShippingDeliverResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - router.post( "postTestHelpersIssuingCardsCardShippingDeliver", "/v1/test_helpers/issuing/cards/:card/shipping/deliver", @@ -70556,20 +67884,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersIssuingCardsCardShippingDeliver(input, responder, ctx) + .postTestHelpersIssuingCardsCardShippingDeliver( + input, + postTestHelpersIssuingCardsCardShippingDeliverResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70595,9 +67915,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersIssuingCardsCardShippingFailResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - router.post( "postTestHelpersIssuingCardsCardShippingFail", "/v1/test_helpers/issuing/cards/:card/shipping/fail", @@ -70617,20 +67934,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersIssuingCardsCardShippingFail(input, responder, ctx) + .postTestHelpersIssuingCardsCardShippingFail( + input, + postTestHelpersIssuingCardsCardShippingFailResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70655,9 +67964,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersIssuingCardsCardShippingReturnResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - router.post( "postTestHelpersIssuingCardsCardShippingReturn", "/v1/test_helpers/issuing/cards/:card/shipping/return", @@ -70677,20 +67983,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersIssuingCardsCardShippingReturn(input, responder, ctx) + .postTestHelpersIssuingCardsCardShippingReturn( + input, + postTestHelpersIssuingCardsCardShippingReturnResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70715,9 +68013,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersIssuingCardsCardShippingShipResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - router.post( "postTestHelpersIssuingCardsCardShippingShip", "/v1/test_helpers/issuing/cards/:card/shipping/ship", @@ -70737,20 +68032,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersIssuingCardsCardShippingShip(input, responder, ctx) + .postTestHelpersIssuingCardsCardShippingShip( + input, + postTestHelpersIssuingCardsCardShippingShipResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70775,9 +68062,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersIssuingCardsCardShippingSubmitResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - router.post( "postTestHelpersIssuingCardsCardShippingSubmit", "/v1/test_helpers/issuing/cards/:card/shipping/submit", @@ -70797,20 +68081,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersIssuingCardsCardShippingSubmit(input, responder, ctx) + .postTestHelpersIssuingCardsCardShippingSubmit( + input, + postTestHelpersIssuingCardsCardShippingSubmitResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70833,12 +68109,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateBodySchema = z.object({ expand: z.array(z.string().max(5000)).optional() }).optional() - const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - router.post( "postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate", "/v1/test_helpers/issuing/personalization_designs/:personalization_design/activate", @@ -70858,22 +68128,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate( input, - responder, + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder, ctx, ) .catch((err) => { @@ -70899,12 +68157,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateBodySchema = z.object({ expand: z.array(z.string().max(5000)).optional() }).optional() - const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - router.post( "postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate", "/v1/test_helpers/issuing/personalization_designs/:personalization_design/deactivate", @@ -70924,22 +68176,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate( input, - responder, + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder, ctx, ) .catch((err) => { @@ -70996,12 +68236,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }), }) - const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - router.post( "postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject", "/v1/test_helpers/issuing/personalization_designs/:personalization_design/reject", @@ -71021,22 +68255,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject( input, - responder, + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder, ctx, ) .catch((err) => { @@ -71069,9 +68291,6 @@ export function createRouter(implementation: Implementation): KoaRouter { transaction_count: z.coerce.number().optional(), }) - const postTestHelpersIssuingSettlementsResponseValidator = - responseValidationFactory([["200", s_issuing_settlement]], s_error) - router.post( "postTestHelpersIssuingSettlements", "/v1/test_helpers/issuing/settlements", @@ -71087,20 +68306,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersIssuingSettlements(input, responder, ctx) + .postTestHelpersIssuingSettlements( + input, + postTestHelpersIssuingSettlementsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71124,9 +68335,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersIssuingSettlementsSettlementCompleteResponseValidator = - responseValidationFactory([["200", s_issuing_settlement]], s_error) - router.post( "postTestHelpersIssuingSettlementsSettlementComplete", "/v1/test_helpers/issuing/settlements/:settlement/complete", @@ -71146,22 +68354,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingSettlementsSettlementComplete( input, - responder, + postTestHelpersIssuingSettlementsSettlementCompleteResponder, ctx, ) .catch((err) => { @@ -71607,9 +68803,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postTestHelpersIssuingTransactionsCreateForceCaptureResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) - router.post( "postTestHelpersIssuingTransactionsCreateForceCapture", "/v1/test_helpers/issuing/transactions/create_force_capture", @@ -71625,22 +68818,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingTransactionsCreateForceCapture( input, - responder, + postTestHelpersIssuingTransactionsCreateForceCaptureResponder, ctx, ) .catch((err) => { @@ -72086,9 +69267,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) - router.post( "postTestHelpersIssuingTransactionsCreateUnlinkedRefund", "/v1/test_helpers/issuing/transactions/create_unlinked_refund", @@ -72104,22 +69282,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingTransactionsCreateUnlinkedRefund( input, - responder, + postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder, ctx, ) .catch((err) => { @@ -72149,9 +69315,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTestHelpersIssuingTransactionsTransactionRefundResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) - router.post( "postTestHelpersIssuingTransactionsTransactionRefund", "/v1/test_helpers/issuing/transactions/:transaction/refund", @@ -72171,22 +69334,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersIssuingTransactionsTransactionRefund( input, - responder, + postTestHelpersIssuingTransactionsTransactionRefundResponder, ctx, ) .catch((err) => { @@ -72214,9 +69365,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersRefundsRefundExpireResponseValidator = - responseValidationFactory([["200", s_refund]], s_error) - router.post( "postTestHelpersRefundsRefundExpire", "/v1/test_helpers/refunds/:refund/expire", @@ -72236,20 +69384,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersRefundsRefundExpire(input, responder, ctx) + .postTestHelpersRefundsRefundExpire( + input, + postTestHelpersRefundsRefundExpireResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72283,9 +69423,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTestHelpersTerminalReadersReaderPresentPaymentMethodResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - router.post( "postTestHelpersTerminalReadersReaderPresentPaymentMethod", "/v1/test_helpers/terminal/readers/:reader/present_payment_method", @@ -72305,22 +69442,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersTerminalReadersReaderPresentPaymentMethod( input, - responder, + postTestHelpersTerminalReadersReaderPresentPaymentMethodResponder, ctx, ) .catch((err) => { @@ -72354,24 +69479,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTestHelpersTestClocksBodySchema = z.object({}).optional() - const getTestHelpersTestClocksResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_test_helpers_test_clock), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/test_helpers/test_clocks")), - }), - ], - ], - s_error, - ) - router.get( "getTestHelpersTestClocks", "/v1/test_helpers/test_clocks", @@ -72391,25 +69498,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_test_helpers_test_clock[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTestHelpersTestClocks(input, responder, ctx) + .getTestHelpersTestClocks(input, getTestHelpersTestClocksResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72429,11 +69519,6 @@ export function createRouter(implementation: Implementation): KoaRouter { name: z.string().max(300).optional(), }) - const postTestHelpersTestClocksResponseValidator = responseValidationFactory( - [["200", s_test_helpers_test_clock]], - s_error, - ) - router.post( "postTestHelpersTestClocks", "/v1/test_helpers/test_clocks", @@ -72449,20 +69534,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTestClocks(input, responder, ctx) + .postTestHelpersTestClocks( + input, + postTestHelpersTestClocksResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72482,12 +69559,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteTestHelpersTestClocksTestClockBodySchema = z.object({}).optional() - const deleteTestHelpersTestClocksTestClockResponseValidator = - responseValidationFactory( - [["200", s_deleted_test_helpers_test_clock]], - s_error, - ) - router.delete( "deleteTestHelpersTestClocksTestClock", "/v1/test_helpers/test_clocks/:test_clock", @@ -72507,20 +69578,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteTestHelpersTestClocksTestClock(input, responder, ctx) + .deleteTestHelpersTestClocksTestClock( + input, + deleteTestHelpersTestClocksTestClockResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72552,9 +69615,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTestHelpersTestClocksTestClockBodySchema = z.object({}).optional() - const getTestHelpersTestClocksTestClockResponseValidator = - responseValidationFactory([["200", s_test_helpers_test_clock]], s_error) - router.get( "getTestHelpersTestClocksTestClock", "/v1/test_helpers/test_clocks/:test_clock", @@ -72578,20 +69638,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTestHelpersTestClocksTestClock(input, responder, ctx) + .getTestHelpersTestClocksTestClock( + input, + getTestHelpersTestClocksTestClockResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72617,9 +69669,6 @@ export function createRouter(implementation: Implementation): KoaRouter { frozen_time: z.coerce.number(), }) - const postTestHelpersTestClocksTestClockAdvanceResponseValidator = - responseValidationFactory([["200", s_test_helpers_test_clock]], s_error) - router.post( "postTestHelpersTestClocksTestClockAdvance", "/v1/test_helpers/test_clocks/:test_clock/advance", @@ -72639,20 +69688,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTestClocksTestClockAdvance(input, responder, ctx) + .postTestHelpersTestClocksTestClockAdvance( + input, + postTestHelpersTestClocksTestClockAdvanceResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72700,9 +69741,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTestHelpersTreasuryInboundTransfersIdFailResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - router.post( "postTestHelpersTreasuryInboundTransfersIdFail", "/v1/test_helpers/treasury/inbound_transfers/:id/fail", @@ -72722,20 +69760,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryInboundTransfersIdFail(input, responder, ctx) + .postTestHelpersTreasuryInboundTransfersIdFail( + input, + postTestHelpersTreasuryInboundTransfersIdFailResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72760,9 +69790,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersTreasuryInboundTransfersIdReturnResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - router.post( "postTestHelpersTreasuryInboundTransfersIdReturn", "/v1/test_helpers/treasury/inbound_transfers/:id/return", @@ -72782,20 +69809,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryInboundTransfersIdReturn(input, responder, ctx) + .postTestHelpersTreasuryInboundTransfersIdReturn( + input, + postTestHelpersTreasuryInboundTransfersIdReturnResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72821,9 +69840,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersTreasuryInboundTransfersIdSucceedResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - router.post( "postTestHelpersTreasuryInboundTransfersIdSucceed", "/v1/test_helpers/treasury/inbound_transfers/:id/succeed", @@ -72843,20 +69859,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryInboundTransfersIdSucceed(input, responder, ctx) + .postTestHelpersTreasuryInboundTransfersIdSucceed( + input, + postTestHelpersTreasuryInboundTransfersIdSucceedResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72893,9 +69901,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }), }) - const postTestHelpersTreasuryOutboundPaymentsIdResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - router.post( "postTestHelpersTreasuryOutboundPaymentsId", "/v1/test_helpers/treasury/outbound_payments/:id", @@ -72915,20 +69920,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryOutboundPaymentsId(input, responder, ctx) + .postTestHelpersTreasuryOutboundPaymentsId( + input, + postTestHelpersTreasuryOutboundPaymentsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72953,9 +69950,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersTreasuryOutboundPaymentsIdFailResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - router.post( "postTestHelpersTreasuryOutboundPaymentsIdFail", "/v1/test_helpers/treasury/outbound_payments/:id/fail", @@ -72975,20 +69969,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryOutboundPaymentsIdFail(input, responder, ctx) + .postTestHelpersTreasuryOutboundPaymentsIdFail( + input, + postTestHelpersTreasuryOutboundPaymentsIdFailResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73013,9 +69999,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTestHelpersTreasuryOutboundPaymentsIdPostResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - router.post( "postTestHelpersTreasuryOutboundPaymentsIdPost", "/v1/test_helpers/treasury/outbound_payments/:id/post", @@ -73035,20 +70018,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryOutboundPaymentsIdPost(input, responder, ctx) + .postTestHelpersTreasuryOutboundPaymentsIdPost( + input, + postTestHelpersTreasuryOutboundPaymentsIdPostResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73093,9 +70068,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTestHelpersTreasuryOutboundPaymentsIdReturnResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - router.post( "postTestHelpersTreasuryOutboundPaymentsIdReturn", "/v1/test_helpers/treasury/outbound_payments/:id/return", @@ -73115,20 +70087,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryOutboundPaymentsIdReturn(input, responder, ctx) + .postTestHelpersTreasuryOutboundPaymentsIdReturn( + input, + postTestHelpersTreasuryOutboundPaymentsIdReturnResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73165,9 +70129,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }), }) - const postTestHelpersTreasuryOutboundTransfersOutboundTransferResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - router.post( "postTestHelpersTreasuryOutboundTransfersOutboundTransfer", "/v1/test_helpers/treasury/outbound_transfers/:outbound_transfer", @@ -73187,22 +70148,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersTreasuryOutboundTransfersOutboundTransfer( input, - responder, + postTestHelpersTreasuryOutboundTransfersOutboundTransferResponder, ctx, ) .catch((err) => { @@ -73228,9 +70177,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const postTestHelpersTreasuryOutboundTransfersOutboundTransferFailBodySchema = z.object({ expand: z.array(z.string().max(5000)).optional() }).optional() - const postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - router.post( "postTestHelpersTreasuryOutboundTransfersOutboundTransferFail", "/v1/test_helpers/treasury/outbound_transfers/:outbound_transfer/fail", @@ -73250,22 +70196,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersTreasuryOutboundTransfersOutboundTransferFail( input, - responder, + postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder, ctx, ) .catch((err) => { @@ -73291,9 +70225,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const postTestHelpersTreasuryOutboundTransfersOutboundTransferPostBodySchema = z.object({ expand: z.array(z.string().max(5000)).optional() }).optional() - const postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - router.post( "postTestHelpersTreasuryOutboundTransfersOutboundTransferPost", "/v1/test_helpers/treasury/outbound_transfers/:outbound_transfer/post", @@ -73313,22 +70244,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersTreasuryOutboundTransfersOutboundTransferPost( input, - responder, + postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder, ctx, ) .catch((err) => { @@ -73376,9 +70295,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - router.post( "postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn", "/v1/test_helpers/treasury/outbound_transfers/:outbound_transfer/return", @@ -73398,22 +70314,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn( input, - responder, + postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder, ctx, ) .catch((err) => { @@ -73454,9 +70358,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network: z.enum(["ach", "us_domestic_wire"]), }) - const postTestHelpersTreasuryReceivedCreditsResponseValidator = - responseValidationFactory([["200", s_treasury_received_credit]], s_error) - router.post( "postTestHelpersTreasuryReceivedCredits", "/v1/test_helpers/treasury/received_credits", @@ -73472,20 +70373,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryReceivedCredits(input, responder, ctx) + .postTestHelpersTreasuryReceivedCredits( + input, + postTestHelpersTreasuryReceivedCreditsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73523,9 +70416,6 @@ export function createRouter(implementation: Implementation): KoaRouter { network: z.enum(["ach"]), }) - const postTestHelpersTreasuryReceivedDebitsResponseValidator = - responseValidationFactory([["200", s_treasury_received_debit]], s_error) - router.post( "postTestHelpersTreasuryReceivedDebits", "/v1/test_helpers/treasury/received_debits", @@ -73541,20 +70431,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTestHelpersTreasuryReceivedDebits(input, responder, ctx) + .postTestHelpersTreasuryReceivedDebits( + input, + postTestHelpersTreasuryReceivedDebitsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73984,11 +70866,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTokensResponseValidator = responseValidationFactory( - [["200", s_token]], - s_error, - ) - router.post("postTokens", "/v1/tokens", async (ctx, next) => { const input = { params: undefined, @@ -74001,20 +70878,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTokens(input, responder, ctx) + .postTokens(input, postTokensResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74040,11 +70905,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTokensTokenBodySchema = z.object({}).optional() - const getTokensTokenResponseValidator = responseValidationFactory( - [["200", s_token]], - s_error, - ) - router.get("getTokensToken", "/v1/tokens/:token", async (ctx, next) => { const input = { params: parseRequestInput( @@ -74065,20 +70925,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTokensToken(input, responder, ctx) + .getTokensToken(input, getTokensTokenResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74128,21 +70976,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTopupsBodySchema = z.object({}).optional() - const getTopupsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_topup)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/topups")), - }), - ], - ], - s_error, - ) - router.get("getTopups", "/v1/topups", async (ctx, next) => { const input = { params: undefined, @@ -74159,25 +70992,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_topup[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTopups(input, responder, ctx) + .getTopups(input, getTopupsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74201,11 +71017,6 @@ export function createRouter(implementation: Implementation): KoaRouter { transfer_group: z.string().optional(), }) - const postTopupsResponseValidator = responseValidationFactory( - [["200", s_topup]], - s_error, - ) - router.post("postTopups", "/v1/topups", async (ctx, next) => { const input = { params: undefined, @@ -74218,20 +71029,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTopups(input, responder, ctx) + .postTopups(input, postTopupsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74257,11 +71056,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTopupsTopupBodySchema = z.object({}).optional() - const getTopupsTopupResponseValidator = responseValidationFactory( - [["200", s_topup]], - s_error, - ) - router.get("getTopupsTopup", "/v1/topups/:topup", async (ctx, next) => { const input = { params: parseRequestInput( @@ -74282,20 +71076,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTopupsTopup(input, responder, ctx) + .getTopupsTopup(input, getTopupsTopupResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74318,11 +71100,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTopupsTopupResponseValidator = responseValidationFactory( - [["200", s_topup]], - s_error, - ) - router.post("postTopupsTopup", "/v1/topups/:topup", async (ctx, next) => { const input = { params: parseRequestInput( @@ -74339,20 +71116,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTopupsTopup(input, responder, ctx) + .postTopupsTopup(input, postTopupsTopupResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74373,11 +71138,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTopupsTopupCancelResponseValidator = responseValidationFactory( - [["200", s_topup]], - s_error, - ) - router.post( "postTopupsTopupCancel", "/v1/topups/:topup/cancel", @@ -74397,20 +71157,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTopupsTopupCancel(input, responder, ctx) + .postTopupsTopupCancel(input, postTopupsTopupCancelResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74451,21 +71199,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTransfersBodySchema = z.object({}).optional() - const getTransfersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_transfer)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/transfers")), - }), - ], - ], - s_error, - ) - router.get("getTransfers", "/v1/transfers", async (ctx, next) => { const input = { params: undefined, @@ -74482,25 +71215,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_transfer[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTransfers(input, responder, ctx) + .getTransfers(input, getTransfersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74525,11 +71241,6 @@ export function createRouter(implementation: Implementation): KoaRouter { transfer_group: z.string().optional(), }) - const postTransfersResponseValidator = responseValidationFactory( - [["200", s_transfer]], - s_error, - ) - router.post("postTransfers", "/v1/transfers", async (ctx, next) => { const input = { params: undefined, @@ -74542,20 +71253,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTransfers(input, responder, ctx) + .postTransfers(input, postTransfersResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74586,21 +71285,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTransfersIdReversalsBodySchema = z.object({}).optional() - const getTransfersIdReversalsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_transfer_reversal)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTransfersIdReversals", "/v1/transfers/:id/reversals", @@ -74624,25 +71308,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_transfer_reversal[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTransfersIdReversals(input, responder, ctx) + .getTransfersIdReversals(input, getTransfersIdReversalsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74670,11 +71337,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTransfersIdReversalsResponseValidator = responseValidationFactory( - [["200", s_transfer_reversal]], - s_error, - ) - router.post( "postTransfersIdReversals", "/v1/transfers/:id/reversals", @@ -74694,20 +71356,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTransfersIdReversals(input, responder, ctx) + .postTransfersIdReversals(input, postTransfersIdReversalsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74736,11 +71386,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTransfersTransferBodySchema = z.object({}).optional() - const getTransfersTransferResponseValidator = responseValidationFactory( - [["200", s_transfer]], - s_error, - ) - router.get( "getTransfersTransfer", "/v1/transfers/:transfer", @@ -74764,20 +71409,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTransfersTransfer(input, responder, ctx) + .getTransfersTransfer(input, getTransfersTransferResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74803,11 +71436,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTransfersTransferResponseValidator = responseValidationFactory( - [["200", s_transfer]], - s_error, - ) - router.post( "postTransfersTransfer", "/v1/transfers/:transfer", @@ -74827,20 +71455,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTransfersTransfer(input, responder, ctx) + .postTransfersTransfer(input, postTransfersTransferResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74870,9 +71486,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTransfersTransferReversalsIdBodySchema = z.object({}).optional() - const getTransfersTransferReversalsIdResponseValidator = - responseValidationFactory([["200", s_transfer_reversal]], s_error) - router.get( "getTransfersTransferReversalsId", "/v1/transfers/:transfer/reversals/:id", @@ -74896,20 +71509,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTransfersTransferReversalsId(input, responder, ctx) + .getTransfersTransferReversalsId( + input, + getTransfersTransferReversalsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74935,9 +71540,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTransfersTransferReversalsIdResponseValidator = - responseValidationFactory([["200", s_transfer_reversal]], s_error) - router.post( "postTransfersTransferReversalsId", "/v1/transfers/:transfer/reversals/:id", @@ -74957,20 +71559,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTransfersTransferReversalsId(input, responder, ctx) + .postTransfersTransferReversalsId( + input, + postTransfersTransferReversalsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75001,21 +71595,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryCreditReversalsBodySchema = z.object({}).optional() - const getTreasuryCreditReversalsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_credit_reversal)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryCreditReversals", "/v1/treasury/credit_reversals", @@ -75035,25 +71614,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_credit_reversal[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryCreditReversals(input, responder, ctx) + .getTreasuryCreditReversals( + input, + getTreasuryCreditReversalsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75073,9 +71639,6 @@ export function createRouter(implementation: Implementation): KoaRouter { received_credit: z.string().max(5000), }) - const postTreasuryCreditReversalsResponseValidator = - responseValidationFactory([["200", s_treasury_credit_reversal]], s_error) - router.post( "postTreasuryCreditReversals", "/v1/treasury/credit_reversals", @@ -75091,20 +71654,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTreasuryCreditReversals(input, responder, ctx) + .postTreasuryCreditReversals( + input, + postTreasuryCreditReversalsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75135,9 +71690,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getTreasuryCreditReversalsCreditReversalResponseValidator = - responseValidationFactory([["200", s_treasury_credit_reversal]], s_error) - router.get( "getTreasuryCreditReversalsCreditReversal", "/v1/treasury/credit_reversals/:credit_reversal", @@ -75161,20 +71713,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryCreditReversalsCreditReversal(input, responder, ctx) + .getTreasuryCreditReversalsCreditReversal( + input, + getTreasuryCreditReversalsCreditReversalResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75209,21 +71753,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryDebitReversalsBodySchema = z.object({}).optional() - const getTreasuryDebitReversalsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_debit_reversal)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryDebitReversals", "/v1/treasury/debit_reversals", @@ -75243,25 +71772,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_debit_reversal[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryDebitReversals(input, responder, ctx) + .getTreasuryDebitReversals( + input, + getTreasuryDebitReversalsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75281,11 +71797,6 @@ export function createRouter(implementation: Implementation): KoaRouter { received_debit: z.string().max(5000), }) - const postTreasuryDebitReversalsResponseValidator = responseValidationFactory( - [["200", s_treasury_debit_reversal]], - s_error, - ) - router.post( "postTreasuryDebitReversals", "/v1/treasury/debit_reversals", @@ -75301,20 +71812,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTreasuryDebitReversals(input, responder, ctx) + .postTreasuryDebitReversals( + input, + postTreasuryDebitReversalsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75345,9 +71848,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getTreasuryDebitReversalsDebitReversalResponseValidator = - responseValidationFactory([["200", s_treasury_debit_reversal]], s_error) - router.get( "getTreasuryDebitReversalsDebitReversal", "/v1/treasury/debit_reversals/:debit_reversal", @@ -75371,20 +71871,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryDebitReversalsDebitReversal(input, responder, ctx) + .getTreasuryDebitReversalsDebitReversal( + input, + getTreasuryDebitReversalsDebitReversalResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75426,25 +71918,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryFinancialAccountsBodySchema = z.object({}).optional() - const getTreasuryFinancialAccountsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_treasury_financial_account), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/treasury/financial_accounts")), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryFinancialAccounts", "/v1/treasury/financial_accounts", @@ -75464,25 +71937,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_financial_account[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryFinancialAccounts(input, responder, ctx) + .getTreasuryFinancialAccounts( + input, + getTreasuryFinancialAccountsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75546,9 +72006,6 @@ export function createRouter(implementation: Implementation): KoaRouter { supported_currencies: z.array(z.string().max(5000)), }) - const postTreasuryFinancialAccountsResponseValidator = - responseValidationFactory([["200", s_treasury_financial_account]], s_error) - router.post( "postTreasuryFinancialAccounts", "/v1/treasury/financial_accounts", @@ -75564,20 +72021,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTreasuryFinancialAccounts(input, responder, ctx) + .postTreasuryFinancialAccounts( + input, + postTreasuryFinancialAccountsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75608,9 +72057,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getTreasuryFinancialAccountsFinancialAccountResponseValidator = - responseValidationFactory([["200", s_treasury_financial_account]], s_error) - router.get( "getTreasuryFinancialAccountsFinancialAccount", "/v1/treasury/financial_accounts/:financial_account", @@ -75634,20 +72080,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryFinancialAccountsFinancialAccount(input, responder, ctx) + .getTreasuryFinancialAccountsFinancialAccount( + input, + getTreasuryFinancialAccountsFinancialAccountResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75726,9 +72164,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTreasuryFinancialAccountsFinancialAccountResponseValidator = - responseValidationFactory([["200", s_treasury_financial_account]], s_error) - router.post( "postTreasuryFinancialAccountsFinancialAccount", "/v1/treasury/financial_accounts/:financial_account", @@ -75748,20 +72183,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTreasuryFinancialAccountsFinancialAccount(input, responder, ctx) + .postTreasuryFinancialAccountsFinancialAccount( + input, + postTreasuryFinancialAccountsFinancialAccountResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75794,9 +72221,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTreasuryFinancialAccountsFinancialAccountCloseResponseValidator = - responseValidationFactory([["200", s_treasury_financial_account]], s_error) - router.post( "postTreasuryFinancialAccountsFinancialAccountClose", "/v1/treasury/financial_accounts/:financial_account/close", @@ -75816,22 +72240,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTreasuryFinancialAccountsFinancialAccountClose( input, - responder, + postTreasuryFinancialAccountsFinancialAccountCloseResponder, ctx, ) .catch((err) => { @@ -75868,12 +72280,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getTreasuryFinancialAccountsFinancialAccountFeaturesResponseValidator = - responseValidationFactory( - [["200", s_treasury_financial_account_features]], - s_error, - ) - router.get( "getTreasuryFinancialAccountsFinancialAccountFeatures", "/v1/treasury/financial_accounts/:financial_account/features", @@ -75897,24 +72303,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .getTreasuryFinancialAccountsFinancialAccountFeatures( input, - responder, + getTreasuryFinancialAccountsFinancialAccountFeaturesResponder, ctx, ) .catch((err) => { @@ -75968,12 +72360,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postTreasuryFinancialAccountsFinancialAccountFeaturesResponseValidator = - responseValidationFactory( - [["200", s_treasury_financial_account_features]], - s_error, - ) - router.post( "postTreasuryFinancialAccountsFinancialAccountFeatures", "/v1/treasury/financial_accounts/:financial_account/features", @@ -75993,24 +72379,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTreasuryFinancialAccountsFinancialAccountFeatures( input, - responder, + postTreasuryFinancialAccountsFinancialAccountFeaturesResponder, ctx, ) .catch((err) => { @@ -76048,22 +72420,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryInboundTransfersBodySchema = z.object({}).optional() - const getTreasuryInboundTransfersResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_inbound_transfer)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryInboundTransfers", "/v1/treasury/inbound_transfers", @@ -76083,25 +72439,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_inbound_transfer[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryInboundTransfers(input, responder, ctx) + .getTreasuryInboundTransfers( + input, + getTreasuryInboundTransfersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76126,9 +72469,6 @@ export function createRouter(implementation: Implementation): KoaRouter { statement_descriptor: z.string().max(10).optional(), }) - const postTreasuryInboundTransfersResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - router.post( "postTreasuryInboundTransfers", "/v1/treasury/inbound_transfers", @@ -76144,20 +72484,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTreasuryInboundTransfers(input, responder, ctx) + .postTreasuryInboundTransfers( + input, + postTreasuryInboundTransfersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76186,9 +72518,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryInboundTransfersIdBodySchema = z.object({}).optional() - const getTreasuryInboundTransfersIdResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - router.get( "getTreasuryInboundTransfersId", "/v1/treasury/inbound_transfers/:id", @@ -76212,20 +72541,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryInboundTransfersId(input, responder, ctx) + .getTreasuryInboundTransfersId( + input, + getTreasuryInboundTransfersIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76247,9 +72568,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTreasuryInboundTransfersInboundTransferCancelResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - router.post( "postTreasuryInboundTransfersInboundTransferCancel", "/v1/treasury/inbound_transfers/:inbound_transfer/cancel", @@ -76269,22 +72587,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTreasuryInboundTransfersInboundTransferCancel( input, - responder, + postTreasuryInboundTransfersInboundTransferCancelResponder, ctx, ) .catch((err) => { @@ -76334,25 +72640,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryOutboundPaymentsBodySchema = z.object({}).optional() - const getTreasuryOutboundPaymentsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_outbound_payment)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/treasury/outbound_payments")), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryOutboundPayments", "/v1/treasury/outbound_payments", @@ -76372,25 +72659,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_outbound_payment[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryOutboundPayments(input, responder, ctx) + .getTreasuryOutboundPayments( + input, + getTreasuryOutboundPaymentsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76467,9 +72741,6 @@ export function createRouter(implementation: Implementation): KoaRouter { statement_descriptor: z.string().max(5000).optional(), }) - const postTreasuryOutboundPaymentsResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - router.post( "postTreasuryOutboundPayments", "/v1/treasury/outbound_payments", @@ -76485,20 +72756,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTreasuryOutboundPayments(input, responder, ctx) + .postTreasuryOutboundPayments( + input, + postTreasuryOutboundPaymentsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76527,9 +72790,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryOutboundPaymentsIdBodySchema = z.object({}).optional() - const getTreasuryOutboundPaymentsIdResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - router.get( "getTreasuryOutboundPaymentsId", "/v1/treasury/outbound_payments/:id", @@ -76553,20 +72813,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryOutboundPaymentsId(input, responder, ctx) + .getTreasuryOutboundPaymentsId( + input, + getTreasuryOutboundPaymentsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76588,9 +72840,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTreasuryOutboundPaymentsIdCancelResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - router.post( "postTreasuryOutboundPaymentsIdCancel", "/v1/treasury/outbound_payments/:id/cancel", @@ -76610,20 +72859,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTreasuryOutboundPaymentsIdCancel(input, responder, ctx) + .postTreasuryOutboundPaymentsIdCancel( + input, + postTreasuryOutboundPaymentsIdCancelResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76658,22 +72899,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryOutboundTransfersBodySchema = z.object({}).optional() - const getTreasuryOutboundTransfersResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_outbound_transfer)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryOutboundTransfers", "/v1/treasury/outbound_transfers", @@ -76693,25 +72918,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_outbound_transfer[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryOutboundTransfers(input, responder, ctx) + .getTreasuryOutboundTransfers( + input, + getTreasuryOutboundTransfersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76754,9 +72966,6 @@ export function createRouter(implementation: Implementation): KoaRouter { statement_descriptor: z.string().max(5000).optional(), }) - const postTreasuryOutboundTransfersResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - router.post( "postTreasuryOutboundTransfers", "/v1/treasury/outbound_transfers", @@ -76772,20 +72981,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postTreasuryOutboundTransfers(input, responder, ctx) + .postTreasuryOutboundTransfers( + input, + postTreasuryOutboundTransfersResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76816,9 +73017,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const getTreasuryOutboundTransfersOutboundTransferResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - router.get( "getTreasuryOutboundTransfersOutboundTransfer", "/v1/treasury/outbound_transfers/:outbound_transfer", @@ -76842,20 +73040,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryOutboundTransfersOutboundTransfer(input, responder, ctx) + .getTreasuryOutboundTransfersOutboundTransfer( + input, + getTreasuryOutboundTransfersOutboundTransferResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76879,9 +73069,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({ expand: z.array(z.string().max(5000)).optional() }) .optional() - const postTreasuryOutboundTransfersOutboundTransferCancelResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - router.post( "postTreasuryOutboundTransfersOutboundTransferCancel", "/v1/treasury/outbound_transfers/:outbound_transfer/cancel", @@ -76901,22 +73088,10 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation .postTreasuryOutboundTransfersOutboundTransferCancel( input, - responder, + postTreasuryOutboundTransfersOutboundTransferCancelResponder, ctx, ) .catch((err) => { @@ -76963,21 +73138,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryReceivedCreditsBodySchema = z.object({}).optional() - const getTreasuryReceivedCreditsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_received_credit)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryReceivedCredits", "/v1/treasury/received_credits", @@ -76997,25 +73157,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_received_credit[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryReceivedCredits(input, responder, ctx) + .getTreasuryReceivedCredits( + input, + getTreasuryReceivedCreditsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77044,9 +73191,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryReceivedCreditsIdBodySchema = z.object({}).optional() - const getTreasuryReceivedCreditsIdResponseValidator = - responseValidationFactory([["200", s_treasury_received_credit]], s_error) - router.get( "getTreasuryReceivedCreditsId", "/v1/treasury/received_credits/:id", @@ -77070,20 +73214,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryReceivedCreditsId(input, responder, ctx) + .getTreasuryReceivedCreditsId( + input, + getTreasuryReceivedCreditsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77113,21 +73249,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryReceivedDebitsBodySchema = z.object({}).optional() - const getTreasuryReceivedDebitsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_received_debit)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryReceivedDebits", "/v1/treasury/received_debits", @@ -77147,25 +73268,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_received_debit[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryReceivedDebits(input, responder, ctx) + .getTreasuryReceivedDebits( + input, + getTreasuryReceivedDebitsResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77194,9 +73302,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryReceivedDebitsIdBodySchema = z.object({}).optional() - const getTreasuryReceivedDebitsIdResponseValidator = - responseValidationFactory([["200", s_treasury_received_debit]], s_error) - router.get( "getTreasuryReceivedDebitsId", "/v1/treasury/received_debits/:id", @@ -77220,20 +73325,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryReceivedDebitsId(input, responder, ctx) + .getTreasuryReceivedDebitsId( + input, + getTreasuryReceivedDebitsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77286,25 +73383,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryTransactionEntriesBodySchema = z.object({}).optional() - const getTreasuryTransactionEntriesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_transaction_entry)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/treasury/transaction_entries")), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryTransactionEntries", "/v1/treasury/transaction_entries", @@ -77324,25 +73402,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_transaction_entry[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryTransactionEntries(input, responder, ctx) + .getTreasuryTransactionEntries( + input, + getTreasuryTransactionEntriesResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77371,9 +73436,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryTransactionEntriesIdBodySchema = z.object({}).optional() - const getTreasuryTransactionEntriesIdResponseValidator = - responseValidationFactory([["200", s_treasury_transaction_entry]], s_error) - router.get( "getTreasuryTransactionEntriesId", "/v1/treasury/transaction_entries/:id", @@ -77397,20 +73459,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryTransactionEntriesId(input, responder, ctx) + .getTreasuryTransactionEntriesId( + input, + getTreasuryTransactionEntriesIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77467,21 +73521,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryTransactionsBodySchema = z.object({}).optional() - const getTreasuryTransactionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - router.get( "getTreasuryTransactions", "/v1/treasury/transactions", @@ -77501,25 +73540,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_treasury_transaction[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryTransactions(input, responder, ctx) + .getTreasuryTransactions(input, getTreasuryTransactionsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77548,11 +73570,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTreasuryTransactionsIdBodySchema = z.object({}).optional() - const getTreasuryTransactionsIdResponseValidator = responseValidationFactory( - [["200", s_treasury_transaction]], - s_error, - ) - router.get( "getTreasuryTransactionsId", "/v1/treasury/transactions/:id", @@ -77576,20 +73593,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTreasuryTransactionsId(input, responder, ctx) + .getTreasuryTransactionsId( + input, + getTreasuryTransactionsIdResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77617,21 +73626,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getWebhookEndpointsBodySchema = z.object({}).optional() - const getWebhookEndpointsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_webhook_endpoint), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/webhook_endpoints")), - }), - ], - ], - s_error, - ) - router.get( "getWebhookEndpoints", "/v1/webhook_endpoints", @@ -77651,25 +73645,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - data: t_webhook_endpoint[] - has_more: boolean - object: "list" - url: string - }>(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getWebhookEndpoints(input, responder, ctx) + .getWebhookEndpoints(input, getWebhookEndpointsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78050,11 +74027,6 @@ export function createRouter(implementation: Implementation): KoaRouter { url: z.string(), }) - const postWebhookEndpointsResponseValidator = responseValidationFactory( - [["200", s_webhook_endpoint]], - s_error, - ) - router.post( "postWebhookEndpoints", "/v1/webhook_endpoints", @@ -78070,20 +74042,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postWebhookEndpoints(input, responder, ctx) + .postWebhookEndpoints(input, postWebhookEndpointsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78105,9 +74065,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .object({}) .optional() - const deleteWebhookEndpointsWebhookEndpointResponseValidator = - responseValidationFactory([["200", s_deleted_webhook_endpoint]], s_error) - router.delete( "deleteWebhookEndpointsWebhookEndpoint", "/v1/webhook_endpoints/:webhook_endpoint", @@ -78127,20 +74084,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteWebhookEndpointsWebhookEndpoint(input, responder, ctx) + .deleteWebhookEndpointsWebhookEndpoint( + input, + deleteWebhookEndpointsWebhookEndpointResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78172,9 +74121,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getWebhookEndpointsWebhookEndpointBodySchema = z.object({}).optional() - const getWebhookEndpointsWebhookEndpointResponseValidator = - responseValidationFactory([["200", s_webhook_endpoint]], s_error) - router.get( "getWebhookEndpointsWebhookEndpoint", "/v1/webhook_endpoints/:webhook_endpoint", @@ -78198,20 +74144,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getWebhookEndpointsWebhookEndpoint(input, responder, ctx) + .getWebhookEndpointsWebhookEndpoint( + input, + getWebhookEndpointsWebhookEndpointResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -78489,9 +74427,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }) .optional() - const postWebhookEndpointsWebhookEndpointResponseValidator = - responseValidationFactory([["200", s_webhook_endpoint]], s_error) - router.post( "postWebhookEndpointsWebhookEndpoint", "/v1/webhook_endpoints/:webhook_endpoint", @@ -78511,20 +74446,12 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postWebhookEndpointsWebhookEndpoint(input, responder, ctx) + .postWebhookEndpointsWebhookEndpoint( + input, + postWebhookEndpointsWebhookEndpointResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) diff --git a/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts index 62803a8f3..e4c275a4d 100644 --- a/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts @@ -37,6 +37,7 @@ import { StatusCode, StatusCode4xx, StatusCode5xx, + r, startServer, } from "@nahkies/typescript-koa-runtime/server" import { @@ -45,9 +46,17 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type GetTodoListsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTodoListsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type GetTodoListsResponder = typeof getTodoListsResponder & KoaRuntimeResponder + +const getTodoListsResponseValidator = responseValidationFactory( + [["200", z.array(s_TodoList)]], + undefined, +) export type GetTodoLists = ( params: Params, @@ -55,11 +64,23 @@ export type GetTodoLists = ( ctx: RouterContext, ) => Promise | Response<200, t_TodoList[]>> -export type GetTodoListByIdResponder = { - with200(): KoaRuntimeResponse - withStatusCode4xx(status: StatusCode4xx): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const getTodoListByIdResponder = { + with200: r.with200, + withStatusCode4xx: r.withStatusCode4xx, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type GetTodoListByIdResponder = typeof getTodoListByIdResponder & + KoaRuntimeResponder + +const getTodoListByIdResponseValidator = responseValidationFactory( + [ + ["200", s_TodoList], + ["4XX", s_Error], + ], + z.undefined(), +) export type GetTodoListById = ( params: Params, @@ -72,11 +93,23 @@ export type GetTodoListById = ( | Response > -export type UpdateTodoListByIdResponder = { - with200(): KoaRuntimeResponse - withStatusCode4xx(status: StatusCode4xx): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const updateTodoListByIdResponder = { + with200: r.with200, + withStatusCode4xx: r.withStatusCode4xx, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type UpdateTodoListByIdResponder = typeof updateTodoListByIdResponder & + KoaRuntimeResponder + +const updateTodoListByIdResponseValidator = responseValidationFactory( + [ + ["200", s_TodoList], + ["4XX", s_Error], + ], + z.undefined(), +) export type UpdateTodoListById = ( params: Params< @@ -94,11 +127,23 @@ export type UpdateTodoListById = ( | Response > -export type DeleteTodoListByIdResponder = { - with204(): KoaRuntimeResponse - withStatusCode4xx(status: StatusCode4xx): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse -} & KoaRuntimeResponder +const deleteTodoListByIdResponder = { + with204: r.with204, + withStatusCode4xx: r.withStatusCode4xx, + withDefault: r.withDefault, + withStatus: r.withStatus, +} + +type DeleteTodoListByIdResponder = typeof deleteTodoListByIdResponder & + KoaRuntimeResponder + +const deleteTodoListByIdResponseValidator = responseValidationFactory( + [ + ["204", z.undefined()], + ["4XX", s_Error], + ], + z.undefined(), +) export type DeleteTodoListById = ( params: Params, @@ -111,18 +156,38 @@ export type DeleteTodoListById = ( | Response > -export type GetTodoListItemsResponder = { - with200(): KoaRuntimeResponse<{ +const getTodoListItemsResponder = { + with200: r.with200<{ completedAt?: string content: string createdAt: string id: string - }> - withStatusCode5xx(status: StatusCode5xx): KoaRuntimeResponse<{ + }>, + withStatusCode5xx: r.withStatusCode5xx<{ code: string message: string - }> -} & KoaRuntimeResponder + }>, + withStatus: r.withStatus, +} + +type GetTodoListItemsResponder = typeof getTodoListItemsResponder & + KoaRuntimeResponder + +const getTodoListItemsResponseValidator = responseValidationFactory( + [ + [ + "200", + z.object({ + id: z.string(), + content: z.string(), + createdAt: z.string().datetime({ offset: true }), + completedAt: z.string().datetime({ offset: true }).optional(), + }), + ], + ["5XX", z.object({ message: z.string(), code: z.string() })], + ], + undefined, +) export type GetTodoListItems = ( params: Params, @@ -148,9 +213,18 @@ export type GetTodoListItems = ( > > -export type CreateTodoListItemResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const createTodoListItemResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type CreateTodoListItemResponder = typeof createTodoListItemResponder & + KoaRuntimeResponder + +const createTodoListItemResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type CreateTodoListItem = ( params: Params< @@ -163,9 +237,18 @@ export type CreateTodoListItem = ( ctx: RouterContext, ) => Promise | Response<204, void>> -export type ListAttachmentsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const listAttachmentsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type ListAttachmentsResponder = typeof listAttachmentsResponder & + KoaRuntimeResponder + +const listAttachmentsResponseValidator = responseValidationFactory( + [["200", z.array(s_UnknownObject)]], + undefined, +) export type ListAttachments = ( params: Params, @@ -173,9 +256,18 @@ export type ListAttachments = ( ctx: RouterContext, ) => Promise | Response<200, t_UnknownObject[]>> -export type UploadAttachmentResponder = { - with202(): KoaRuntimeResponse -} & KoaRuntimeResponder +const uploadAttachmentResponder = { + with202: r.with202, + withStatus: r.withStatus, +} + +type UploadAttachmentResponder = typeof uploadAttachmentResponder & + KoaRuntimeResponder + +const uploadAttachmentResponseValidator = responseValidationFactory( + [["202", z.undefined()]], + undefined, +) export type UploadAttachment = ( params: Params, @@ -213,11 +305,6 @@ export function createRouter(implementation: Implementation): KoaRouter { .optional(), }) - const getTodoListsResponseValidator = responseValidationFactory( - [["200", z.array(s_TodoList)]], - undefined, - ) - router.get("getTodoLists", "/list", async (ctx, next) => { const input = { params: undefined, @@ -230,17 +317,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTodoLists(input, responder, ctx) + .getTodoLists(input, getTodoListsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -255,14 +333,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTodoListByIdParamSchema = z.object({ listId: z.string() }) - const getTodoListByIdResponseValidator = responseValidationFactory( - [ - ["200", s_TodoList], - ["4XX", s_Error], - ], - z.undefined(), - ) - router.get("getTodoListById", "/list/:listId", async (ctx, next) => { const input = { params: parseRequestInput( @@ -275,23 +345,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatusCode4xx(status: StatusCode4xx) { - return new KoaRuntimeResponse(status) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTodoListById(input, responder, ctx) + .getTodoListById(input, getTodoListByIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -308,14 +363,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const updateTodoListByIdBodySchema = s_CreateUpdateTodoList - const updateTodoListByIdResponseValidator = responseValidationFactory( - [ - ["200", s_TodoList], - ["4XX", s_Error], - ], - z.undefined(), - ) - router.put("updateTodoListById", "/list/:listId", async (ctx, next) => { const input = { params: parseRequestInput( @@ -332,23 +379,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatusCode4xx(status: StatusCode4xx) { - return new KoaRuntimeResponse(status) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .updateTodoListById(input, responder, ctx) + .updateTodoListById(input, updateTodoListByIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -363,14 +395,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const deleteTodoListByIdParamSchema = z.object({ listId: z.string() }) - const deleteTodoListByIdResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["4XX", s_Error], - ], - z.undefined(), - ) - router.delete("deleteTodoListById", "/list/:listId", async (ctx, next) => { const input = { params: parseRequestInput( @@ -383,23 +407,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatusCode4xx(status: StatusCode4xx) { - return new KoaRuntimeResponse(status) - }, - withDefault(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .deleteTodoListById(input, responder, ctx) + .deleteTodoListById(input, deleteTodoListByIdResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -414,22 +423,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const getTodoListItemsParamSchema = z.object({ listId: z.string() }) - const getTodoListItemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string(), - content: z.string(), - createdAt: z.string().datetime({ offset: true }), - completedAt: z.string().datetime({ offset: true }).optional(), - }), - ], - ["5XX", z.object({ message: z.string(), code: z.string() })], - ], - undefined, - ) - router.get("getTodoListItems", "/list/:listId/items", async (ctx, next) => { const input = { params: parseRequestInput( @@ -442,28 +435,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse<{ - completedAt?: string - content: string - createdAt: string - id: string - }>(200) - }, - withStatusCode5xx(status: StatusCode5xx) { - return new KoaRuntimeResponse<{ - code: string - message: string - }>(status) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getTodoListItems(input, responder, ctx) + .getTodoListItems(input, getTodoListItemsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -484,11 +457,6 @@ export function createRouter(implementation: Implementation): KoaRouter { completedAt: z.string().datetime({ offset: true }).optional(), }) - const createTodoListItemResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.post( "createTodoListItem", "/list/:listId/items", @@ -508,17 +476,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .createTodoListItem(input, responder, ctx) + .createTodoListItem(input, createTodoListItemResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -532,11 +491,6 @@ export function createRouter(implementation: Implementation): KoaRouter { }, ) - const listAttachmentsResponseValidator = responseValidationFactory( - [["200", z.array(s_UnknownObject)]], - undefined, - ) - router.get("listAttachments", "/attachments", async (ctx, next) => { const input = { params: undefined, @@ -545,17 +499,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .listAttachments(input, responder, ctx) + .listAttachments(input, listAttachmentsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -570,11 +515,6 @@ export function createRouter(implementation: Implementation): KoaRouter { const uploadAttachmentBodySchema = z.object({ file: z.unknown().optional() }) - const uploadAttachmentResponseValidator = responseValidationFactory( - [["202", z.undefined()]], - undefined, - ) - router.post("uploadAttachment", "/attachments", async (ctx, next) => { const input = { params: undefined, @@ -587,17 +527,8 @@ export function createRouter(implementation: Implementation): KoaRouter { headers: undefined, } - const responder = { - with202() { - return new KoaRuntimeResponse(202) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .uploadAttachment(input, responder, ctx) + .uploadAttachment(input, uploadAttachmentResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) From 440ad5981454c850314db5c4efd2f780ae520533 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sat, 3 May 2025 13:16:41 +0100 Subject: [PATCH 3/8] chore: e2e --- e2e/src/generated/routes/request-headers.ts | 66 ++++++-------- e2e/src/generated/routes/validation.ts | 95 +++++++++------------ 2 files changed, 69 insertions(+), 92 deletions(-) diff --git a/e2e/src/generated/routes/request-headers.ts b/e2e/src/generated/routes/request-headers.ts index 911715d34..15668c3e8 100644 --- a/e2e/src/generated/routes/request-headers.ts +++ b/e2e/src/generated/routes/request-headers.ts @@ -21,7 +21,7 @@ import { KoaRuntimeResponse, Params, Response, - StatusCode, + r, } from "@nahkies/typescript-koa-runtime/server" import { parseRequestInput, @@ -29,9 +29,18 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type GetHeadersUndeclaredResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getHeadersUndeclaredResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type GetHeadersUndeclaredResponder = typeof getHeadersUndeclaredResponder & + KoaRuntimeResponder + +const getHeadersUndeclaredResponseValidator = responseValidationFactory( + [["200", s_getHeadersUndeclaredJson200Response]], + undefined, +) export type GetHeadersUndeclared = ( params: Params, @@ -42,9 +51,18 @@ export type GetHeadersUndeclared = ( | Response<200, t_getHeadersUndeclaredJson200Response> > -export type GetHeadersRequestResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getHeadersRequestResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type GetHeadersRequestResponder = typeof getHeadersRequestResponder & + KoaRuntimeResponder + +const getHeadersRequestResponseValidator = responseValidationFactory( + [["200", s_getHeadersRequestJson200Response]], + undefined, +) export type GetHeadersRequest = ( params: Params, @@ -65,11 +83,6 @@ export function createRequestHeadersRouter( ): KoaRouter { const router = new KoaRouter() - const getHeadersUndeclaredResponseValidator = responseValidationFactory( - [["200", s_getHeadersUndeclaredJson200Response]], - undefined, - ) - router.get( "getHeadersUndeclared", "/headers/undeclared", @@ -81,19 +94,8 @@ export function createRequestHeadersRouter( headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse( - 200, - ) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getHeadersUndeclared(input, responder, ctx) + .getHeadersUndeclared(input, getHeadersUndeclaredResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -113,11 +115,6 @@ export function createRequestHeadersRouter( authorization: z.string().optional(), }) - const getHeadersRequestResponseValidator = responseValidationFactory( - [["200", s_getHeadersRequestJson200Response]], - undefined, - ) - router.get("getHeadersRequest", "/headers/request", async (ctx, next) => { const input = { params: undefined, @@ -130,17 +127,8 @@ export function createRequestHeadersRouter( ), } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getHeadersRequest(input, responder, ctx) + .getHeadersRequest(input, getHeadersRequestResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) diff --git a/e2e/src/generated/routes/validation.ts b/e2e/src/generated/routes/validation.ts index bd729e0f4..a6bdcfadf 100644 --- a/e2e/src/generated/routes/validation.ts +++ b/e2e/src/generated/routes/validation.ts @@ -19,7 +19,7 @@ import { KoaRuntimeResponse, Params, Response, - StatusCode, + r, } from "@nahkies/typescript-koa-runtime/server" import { parseRequestInput, @@ -27,9 +27,16 @@ import { } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -export type GetValidationNumbersRandomNumberResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getValidationNumbersRandomNumberResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type GetValidationNumbersRandomNumberResponder = + typeof getValidationNumbersRandomNumberResponder & KoaRuntimeResponder + +const getValidationNumbersRandomNumberResponseValidator = + responseValidationFactory([["200", s_RandomNumber]], undefined) export type GetValidationNumbersRandomNumber = ( params: Params< @@ -42,9 +49,18 @@ export type GetValidationNumbersRandomNumber = ( ctx: RouterContext, ) => Promise | Response<200, t_RandomNumber>> -export type PostValidationEnumsResponder = { - with200(): KoaRuntimeResponse -} & KoaRuntimeResponder +const postValidationEnumsResponder = { + with200: r.with200, + withStatus: r.withStatus, +} + +type PostValidationEnumsResponder = typeof postValidationEnumsResponder & + KoaRuntimeResponder + +const postValidationEnumsResponseValidator = responseValidationFactory( + [["200", s_Enumerations]], + undefined, +) export type PostValidationEnums = ( params: Params, @@ -52,9 +68,18 @@ export type PostValidationEnums = ( ctx: RouterContext, ) => Promise | Response<200, t_Enumerations>> -export type GetResponsesEmptyResponder = { - with204(): KoaRuntimeResponse -} & KoaRuntimeResponder +const getResponsesEmptyResponder = { + with204: r.with204, + withStatus: r.withStatus, +} + +type GetResponsesEmptyResponder = typeof getResponsesEmptyResponder & + KoaRuntimeResponder + +const getResponsesEmptyResponseValidator = responseValidationFactory( + [["204", z.undefined()]], + undefined, +) export type GetResponsesEmpty = ( params: Params, @@ -84,9 +109,6 @@ export function createValidationRouter( .optional(), }) - const getValidationNumbersRandomNumberResponseValidator = - responseValidationFactory([["200", s_RandomNumber]], undefined) - router.get( "getValidationNumbersRandomNumber", "/validation/numbers/random-number", @@ -102,17 +124,12 @@ export function createValidationRouter( headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getValidationNumbersRandomNumber(input, responder, ctx) + .getValidationNumbersRandomNumber( + input, + getValidationNumbersRandomNumberResponder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -128,11 +145,6 @@ export function createValidationRouter( const postValidationEnumsBodySchema = s_Enumerations - const postValidationEnumsResponseValidator = responseValidationFactory( - [["200", s_Enumerations]], - undefined, - ) - router.post("postValidationEnums", "/validation/enums", async (ctx, next) => { const input = { params: undefined, @@ -145,17 +157,8 @@ export function createValidationRouter( headers: undefined, } - const responder = { - with200() { - return new KoaRuntimeResponse(200) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .postValidationEnums(input, responder, ctx) + .postValidationEnums(input, postValidationEnumsResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -168,11 +171,6 @@ export function createValidationRouter( return next() }) - const getResponsesEmptyResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, - ) - router.get("getResponsesEmpty", "/responses/empty", async (ctx, next) => { const input = { params: undefined, @@ -181,17 +179,8 @@ export function createValidationRouter( headers: undefined, } - const responder = { - with204() { - return new KoaRuntimeResponse(204) - }, - withStatus(status: StatusCode) { - return new KoaRuntimeResponse(status) - }, - } - const response = await implementation - .getResponsesEmpty(input, responder, ctx) + .getResponsesEmpty(input, getResponsesEmptyResponder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) From d70edde58cd6147228d6ea037149a3e48b91db41 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sat, 3 May 2025 13:28:48 +0100 Subject: [PATCH 4/8] feat: push it further --- .../server/server-operation-builder.ts | 18 ++-- .../typescript-koa-router-builder.ts | 11 +-- packages/typescript-koa-runtime/src/server.ts | 96 +++++++++++++++++-- 3 files changed, 100 insertions(+), 25 deletions(-) diff --git a/packages/openapi-code-generator/src/typescript/server/server-operation-builder.ts b/packages/openapi-code-generator/src/typescript/server/server-operation-builder.ts index 24de0e3b0..fbc3b5e63 100644 --- a/packages/openapi-code-generator/src/typescript/server/server-operation-builder.ts +++ b/packages/openapi-code-generator/src/typescript/server/server-operation-builder.ts @@ -114,24 +114,18 @@ export class ServerOperationBuilder { return {type, path, query, header, body} } - responseValidator(): string { - const {specific, defaultResponse} = this.responseSchemas() - - const pairs = specific.map((it) => `["${it.statusString}", ${it.schema}]`) - - return `responseValidationFactory([${pairs}], ${defaultResponse?.schema})` - } - responder(): {implementation: string} { const {specific, defaultResponse} = this.responseSchemas() - const implementation = object([ + const implementation = `b(r => (${object([ ...specific.map( - (it) => `with${it.statusType}: r.with${it.statusType}<${it.type}>`, + (it) => + `with${it.statusType}: r.with${it.statusType}<${it.type}>(${it.schema})`, ), - defaultResponse && `withDefault: r.withDefault<${defaultResponse.type}>`, + defaultResponse && + `withDefault: r.withDefault<${defaultResponse.type}>(${defaultResponse.schema})`, "withStatus: r.withStatus", - ]) + ])}))` return {implementation} } diff --git a/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts b/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts index d7426c95c..ce1c4a83b 100644 --- a/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts +++ b/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts @@ -48,7 +48,7 @@ export class KoaRouterBuilder extends AbstractRouterBuilder { "StatusCode4xx", "StatusCode5xx", "startServer", - "r", + "b", ) this.imports @@ -98,9 +98,8 @@ export class KoaRouterBuilder extends AbstractRouterBuilder { this.operationTypes.push({ operationId: builder.operationId, statements: [ - `const ${symbols.responderName} = ${responder.implementation}`, - `type ${titleCase(symbols.responderName)} = typeof ${symbols.responderName} & KoaRuntimeResponder`, - `const ${symbols.responseBodyValidator} = ${builder.responseValidator()}`, + `const ${symbols.implPropName} = ${responder.implementation}`, + `type ${titleCase(symbols.responderName)} = typeof ${symbols.implPropName}['responder'] & KoaRuntimeResponder`, buildExport({ name: symbols.implTypeName, value: `( @@ -130,12 +129,12 @@ router.${builder.method.toLowerCase()}('${symbols.implPropName}','${route(builde headers: ${params.header.schema ? `parseRequestInput(${symbols.requestHeaderSchema}, Reflect.get(ctx.request, "headers"), RequestInputType.RequestHeader)` : "undefined"} } - const response = await implementation.${symbols.implPropName}(input, ${symbols.responderName}, ctx) + const response = await implementation.${symbols.implPropName}(input, ${symbols.implPropName}.responder, ctx) .catch(err => { throw KoaRuntimeError.HandlerError(err) }) const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = ${symbols.responseBodyValidator}(status, body) + ctx.body = ${symbols.implPropName}.validator(status, body) ctx.status = status return next(); })`) diff --git a/packages/typescript-koa-runtime/src/server.ts b/packages/typescript-koa-runtime/src/server.ts index fc5d61ef5..3c04aeaf5 100644 --- a/packages/typescript-koa-runtime/src/server.ts +++ b/packages/typescript-koa-runtime/src/server.ts @@ -6,6 +6,7 @@ import type Router from "@koa/router" import Koa, {type Middleware} from "koa" import KoaBody from "koa-body" import type {KoaBodyMiddlewareOptions} from "koa-body/lib/types" +import {responseValidationFactory} from "./zod" // from https://stackoverflow.com/questions/39494689/is-it-possible-to-restrict-number-to-a-certain-range type Enumerate< @@ -54,15 +55,29 @@ export class KoaRuntimeResponse { } export type ResponderBuilder = { - [key in `with${StatusCode}`]: () => KoaRuntimeResponse + [key in `with${StatusCode}`]: ( + s: S, + ) => () => KoaRuntimeResponse } & { withStatus(status: StatusCode): KoaRuntimeResponse - withStatusCode1xx(status: StatusCode1xx): KoaRuntimeResponse - withStatusCode2xx(status: StatusCode2xx): KoaRuntimeResponse - withStatusCode3xx(status: StatusCode3xx): KoaRuntimeResponse - withStatusCode4xx(status: StatusCode4xx): KoaRuntimeResponse - withStatusCode5xx(status: StatusCode5xx): KoaRuntimeResponse - withDefault(status: StatusCode): KoaRuntimeResponse + withStatusCode1xx( + s: S, + ): (status: StatusCode1xx) => KoaRuntimeResponse + withStatusCode2xx( + s: S, + ): (status: StatusCode2xx) => KoaRuntimeResponse + withStatusCode3xx( + s: S, + ): (status: StatusCode3xx) => KoaRuntimeResponse + withStatusCode4xx( + s: S, + ): (status: StatusCode4xx) => KoaRuntimeResponse + withStatusCode5xx( + s: S, + ): (status: StatusCode5xx) => KoaRuntimeResponse + withDefault( + s: S, + ): (status: StatusCode) => KoaRuntimeResponse } function isValidStatusCode(status: unknown): status is StatusCode { @@ -72,6 +87,73 @@ function isValidStatusCode(status: unknown): status is StatusCode { return !(status < 100 || status > 599) } +export const b = (fn: (r: ResponderBuilder) => T) => { + // biome-ignore lint/suspicious/noExplicitAny: + const responses: any[] = [] + // biome-ignore lint/suspicious/noExplicitAny: + let defaultResponse: any = undefined + + const r: ResponderBuilder = new Proxy({} as ResponderBuilder, { + get(_, prop: string) { + const exactMatch = /^with(\d{3})$/.exec(prop) + + if (exactMatch?.[1]) { + const status = Number(exactMatch[1]) + + if (!isValidStatusCode(status)) { + throw new Error(`Status ${status} is not a valid status code`) + } + + return (s: S) => { + responses.push([status.toString(), s]) + + return () => new KoaRuntimeResponse(status) + } + } + + const groupMatch = /^withStatusCode([1-5]xx)$/.exec(prop) + if (groupMatch?.[1]) { + const range = groupMatch[1] + + return (s: S) => { + responses.push([range, s]) + + return (status: StatusCode) => { + const expectedHundreds = Number(range[0]) + if (Math.floor(status / 100) !== expectedHundreds) { + throw new Error( + `Status ${status} is not a valid ${range} status code`, + ) + } + return new KoaRuntimeResponse(status) + } + } + } + + if (prop === "withDefault") { + return (s: S) => { + defaultResponse = s + + return (status: StatusCode) => new KoaRuntimeResponse(status) + } + } + + if (prop === "withStatus") { + return (status: StatusCode) => new KoaRuntimeResponse(status) + } + + throw new Error(`Unknown responder method: ${prop}`) + }, + }) + + const responder = fn(r) + + return { + responder, + validator: responseValidationFactory(responses, defaultResponse), + } +} + export const r: ResponderBuilder = new Proxy({} as ResponderBuilder, { get(_, prop: string) { const exactMatch = /^with(\d{3})$/.exec(prop) From 6e97056d78294d6aca7c8bdb3b5026b19da27e75 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sat, 3 May 2025 13:29:09 +0100 Subject: [PATCH 5/8] chore: regenerate --- .../api.github.com.yaml/generated.ts | 27654 ++++++---------- .../generated.ts | 647 +- .../azure-resource-manager.tsp/generated.ts | 212 +- .../src/generated/okta.idp.yaml/generated.ts | 1018 +- .../generated/okta.oauth.yaml/generated.ts | 1114 +- .../petstore-expanded.yaml/generated.ts | 84 +- .../src/generated/stripe.yaml/generated.ts | 13616 +++----- .../generated/todo-lists.yaml/generated.ts | 185 +- 8 files changed, 16123 insertions(+), 28407 deletions(-) diff --git a/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts index 051b83a9c..bc17a2dbf 100644 --- a/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts @@ -2133,26 +2133,18 @@ import { Params, Response, ServerConfig, - r, + b, startServer, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const metaRootResponder = { - with200: r.with200, +const metaRoot = b((r) => ({ + with200: r.with200(s_root), withStatus: r.withStatus, -} +})) -type MetaRootResponder = typeof metaRootResponder & KoaRuntimeResponder - -const metaRootResponseValidator = responseValidationFactory( - [["200", s_root]], - undefined, -) +type MetaRootResponder = (typeof metaRoot)["responder"] & KoaRuntimeResponder export type MetaRoot = ( params: Params, @@ -2160,25 +2152,16 @@ export type MetaRoot = ( ctx: RouterContext, ) => Promise | Response<200, t_root>> -const securityAdvisoriesListGlobalAdvisoriesResponder = { - with200: r.with200, - with422: r.with422, - with429: r.with429, +const securityAdvisoriesListGlobalAdvisories = b((r) => ({ + with200: r.with200(z.array(s_global_advisory)), + with422: r.with422(s_validation_error_simple), + with429: r.with429(s_basic_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesListGlobalAdvisoriesResponder = - typeof securityAdvisoriesListGlobalAdvisoriesResponder & KoaRuntimeResponder - -const securityAdvisoriesListGlobalAdvisoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_global_advisory)], - ["422", s_validation_error_simple], - ["429", s_basic_error], - ], - undefined, - ) + (typeof securityAdvisoriesListGlobalAdvisories)["responder"] & + KoaRuntimeResponder export type SecurityAdvisoriesListGlobalAdvisories = ( params: Params< @@ -2196,23 +2179,15 @@ export type SecurityAdvisoriesListGlobalAdvisories = ( | Response<429, t_basic_error> > -const securityAdvisoriesGetGlobalAdvisoryResponder = { - with200: r.with200, - with404: r.with404, +const securityAdvisoriesGetGlobalAdvisory = b((r) => ({ + with200: r.with200(s_global_advisory), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesGetGlobalAdvisoryResponder = - typeof securityAdvisoriesGetGlobalAdvisoryResponder & KoaRuntimeResponder - -const securityAdvisoriesGetGlobalAdvisoryResponseValidator = - responseValidationFactory( - [ - ["200", s_global_advisory], - ["404", s_basic_error], - ], - undefined, - ) + (typeof securityAdvisoriesGetGlobalAdvisory)["responder"] & + KoaRuntimeResponder export type SecurityAdvisoriesGetGlobalAdvisory = ( params: Params< @@ -2229,18 +2204,13 @@ export type SecurityAdvisoriesGetGlobalAdvisory = ( | Response<404, t_basic_error> > -const appsGetAuthenticatedResponder = { - with200: r.with200, +const appsGetAuthenticated = b((r) => ({ + with200: r.with200(s_integration), withStatus: r.withStatus, -} +})) -type AppsGetAuthenticatedResponder = typeof appsGetAuthenticatedResponder & - KoaRuntimeResponder - -const appsGetAuthenticatedResponseValidator = responseValidationFactory( - [["200", s_integration]], - undefined, -) +type AppsGetAuthenticatedResponder = + (typeof appsGetAuthenticated)["responder"] & KoaRuntimeResponder export type AppsGetAuthenticated = ( params: Params, @@ -2248,7 +2218,7 @@ export type AppsGetAuthenticated = ( ctx: RouterContext, ) => Promise | Response<200, t_integration>> -const appsCreateFromManifestResponder = { +const appsCreateFromManifest = b((r) => ({ with201: r.with201< t_integration & { client_id: string @@ -2257,37 +2227,27 @@ const appsCreateFromManifestResponder = { webhook_secret: string | null [key: string]: unknown | undefined } - >, - with404: r.with404, - with422: r.with422, - withStatus: r.withStatus, -} - -type AppsCreateFromManifestResponder = typeof appsCreateFromManifestResponder & - KoaRuntimeResponder - -const appsCreateFromManifestResponseValidator = responseValidationFactory( - [ - [ - "201", + >( + z.intersection( + s_integration, z.intersection( - s_integration, - z.intersection( - z.object({ - client_id: z.string(), - client_secret: z.string(), - webhook_secret: z.string().nullable(), - pem: z.string(), - }), - z.record(z.unknown()), - ), + z.object({ + client_id: z.string(), + client_secret: z.string(), + webhook_secret: z.string().nullable(), + pem: z.string(), + }), + z.record(z.unknown()), ), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) + ), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), + withStatus: r.withStatus, +})) + +type AppsCreateFromManifestResponder = + (typeof appsCreateFromManifest)["responder"] & KoaRuntimeResponder export type AppsCreateFromManifest = ( params: Params, @@ -2309,18 +2269,13 @@ export type AppsCreateFromManifest = ( | Response<422, t_validation_error_simple> > -const appsGetWebhookConfigForAppResponder = { - with200: r.with200, +const appsGetWebhookConfigForApp = b((r) => ({ + with200: r.with200(s_webhook_config), withStatus: r.withStatus, -} +})) type AppsGetWebhookConfigForAppResponder = - typeof appsGetWebhookConfigForAppResponder & KoaRuntimeResponder - -const appsGetWebhookConfigForAppResponseValidator = responseValidationFactory( - [["200", s_webhook_config]], - undefined, -) + (typeof appsGetWebhookConfigForApp)["responder"] & KoaRuntimeResponder export type AppsGetWebhookConfigForApp = ( params: Params, @@ -2328,16 +2283,13 @@ export type AppsGetWebhookConfigForApp = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -const appsUpdateWebhookConfigForAppResponder = { - with200: r.with200, +const appsUpdateWebhookConfigForApp = b((r) => ({ + with200: r.with200(s_webhook_config), withStatus: r.withStatus, -} +})) type AppsUpdateWebhookConfigForAppResponder = - typeof appsUpdateWebhookConfigForAppResponder & KoaRuntimeResponder - -const appsUpdateWebhookConfigForAppResponseValidator = - responseValidationFactory([["200", s_webhook_config]], undefined) + (typeof appsUpdateWebhookConfigForApp)["responder"] & KoaRuntimeResponder export type AppsUpdateWebhookConfigForApp = ( params: Params, @@ -2345,24 +2297,15 @@ export type AppsUpdateWebhookConfigForApp = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -const appsListWebhookDeliveriesResponder = { - with200: r.with200, - with400: r.with400, - with422: r.with422, +const appsListWebhookDeliveries = b((r) => ({ + with200: r.with200(z.array(s_hook_delivery_item)), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type AppsListWebhookDeliveriesResponder = - typeof appsListWebhookDeliveriesResponder & KoaRuntimeResponder - -const appsListWebhookDeliveriesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_hook_delivery_item)], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof appsListWebhookDeliveries)["responder"] & KoaRuntimeResponder export type AppsListWebhookDeliveries = ( params: Params, @@ -2375,24 +2318,15 @@ export type AppsListWebhookDeliveries = ( | Response<422, t_validation_error> > -const appsGetWebhookDeliveryResponder = { - with200: r.with200, - with400: r.with400, - with422: r.with422, +const appsGetWebhookDelivery = b((r) => ({ + with200: r.with200(s_hook_delivery), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type AppsGetWebhookDeliveryResponder = typeof appsGetWebhookDeliveryResponder & - KoaRuntimeResponder - -const appsGetWebhookDeliveryResponseValidator = responseValidationFactory( - [ - ["200", s_hook_delivery], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, -) +type AppsGetWebhookDeliveryResponder = + (typeof appsGetWebhookDelivery)["responder"] & KoaRuntimeResponder export type AppsGetWebhookDelivery = ( params: Params, @@ -2405,26 +2339,17 @@ export type AppsGetWebhookDelivery = ( | Response<422, t_validation_error> > -const appsRedeliverWebhookDeliveryResponder = { +const appsRedeliverWebhookDelivery = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with400: r.with400, - with422: r.with422, + }>(z.record(z.unknown())), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type AppsRedeliverWebhookDeliveryResponder = - typeof appsRedeliverWebhookDeliveryResponder & KoaRuntimeResponder - -const appsRedeliverWebhookDeliveryResponseValidator = responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof appsRedeliverWebhookDelivery)["responder"] & KoaRuntimeResponder export type AppsRedeliverWebhookDelivery = ( params: Params, @@ -2442,27 +2367,19 @@ export type AppsRedeliverWebhookDelivery = ( | Response<422, t_validation_error> > -const appsListInstallationRequestsForAuthenticatedAppResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, +const appsListInstallationRequestsForAuthenticatedApp = b((r) => ({ + with200: r.with200( + z.array(s_integration_installation_request), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), withStatus: r.withStatus, -} +})) type AppsListInstallationRequestsForAuthenticatedAppResponder = - typeof appsListInstallationRequestsForAuthenticatedAppResponder & + (typeof appsListInstallationRequestsForAuthenticatedApp)["responder"] & KoaRuntimeResponder -const appsListInstallationRequestsForAuthenticatedAppResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration_installation_request)], - ["304", z.undefined()], - ["401", s_basic_error], - ], - undefined, - ) - export type AppsListInstallationRequestsForAuthenticatedApp = ( params: Params< void, @@ -2479,18 +2396,13 @@ export type AppsListInstallationRequestsForAuthenticatedApp = ( | Response<401, t_basic_error> > -const appsListInstallationsResponder = { - with200: r.with200, +const appsListInstallations = b((r) => ({ + with200: r.with200(z.array(s_installation)), withStatus: r.withStatus, -} +})) -type AppsListInstallationsResponder = typeof appsListInstallationsResponder & - KoaRuntimeResponder - -const appsListInstallationsResponseValidator = responseValidationFactory( - [["200", z.array(s_installation)]], - undefined, -) +type AppsListInstallationsResponder = + (typeof appsListInstallations)["responder"] & KoaRuntimeResponder export type AppsListInstallations = ( params: Params, @@ -2498,23 +2410,15 @@ export type AppsListInstallations = ( ctx: RouterContext, ) => Promise | Response<200, t_installation[]>> -const appsGetInstallationResponder = { - with200: r.with200, - with404: r.with404, +const appsGetInstallation = b((r) => ({ + with200: r.with200(s_installation), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type AppsGetInstallationResponder = typeof appsGetInstallationResponder & +type AppsGetInstallationResponder = (typeof appsGetInstallation)["responder"] & KoaRuntimeResponder -const appsGetInstallationResponseValidator = responseValidationFactory( - [ - ["200", s_installation], - ["404", s_basic_error], - ], - undefined, -) - export type AppsGetInstallation = ( params: Params, respond: AppsGetInstallationResponder, @@ -2525,22 +2429,14 @@ export type AppsGetInstallation = ( | Response<404, t_basic_error> > -const appsDeleteInstallationResponder = { - with204: r.with204, - with404: r.with404, +const appsDeleteInstallation = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type AppsDeleteInstallationResponder = typeof appsDeleteInstallationResponder & - KoaRuntimeResponder +})) -const appsDeleteInstallationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) +type AppsDeleteInstallationResponder = + (typeof appsDeleteInstallation)["responder"] & KoaRuntimeResponder export type AppsDeleteInstallation = ( params: Params, @@ -2552,29 +2448,17 @@ export type AppsDeleteInstallation = ( | Response<404, t_basic_error> > -const appsCreateInstallationAccessTokenResponder = { - with201: r.with201, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const appsCreateInstallationAccessToken = b((r) => ({ + with201: r.with201(s_installation_token), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type AppsCreateInstallationAccessTokenResponder = - typeof appsCreateInstallationAccessTokenResponder & KoaRuntimeResponder - -const appsCreateInstallationAccessTokenResponseValidator = - responseValidationFactory( - [ - ["201", s_installation_token], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof appsCreateInstallationAccessToken)["responder"] & KoaRuntimeResponder export type AppsCreateInstallationAccessToken = ( params: Params< @@ -2594,22 +2478,14 @@ export type AppsCreateInstallationAccessToken = ( | Response<422, t_validation_error> > -const appsSuspendInstallationResponder = { - with204: r.with204, - with404: r.with404, +const appsSuspendInstallation = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type AppsSuspendInstallationResponder = - typeof appsSuspendInstallationResponder & KoaRuntimeResponder - -const appsSuspendInstallationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof appsSuspendInstallation)["responder"] & KoaRuntimeResponder export type AppsSuspendInstallation = ( params: Params, @@ -2621,22 +2497,14 @@ export type AppsSuspendInstallation = ( | Response<404, t_basic_error> > -const appsUnsuspendInstallationResponder = { - with204: r.with204, - with404: r.with404, +const appsUnsuspendInstallation = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type AppsUnsuspendInstallationResponder = - typeof appsUnsuspendInstallationResponder & KoaRuntimeResponder - -const appsUnsuspendInstallationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof appsUnsuspendInstallation)["responder"] & KoaRuntimeResponder export type AppsUnsuspendInstallation = ( params: Params, @@ -2648,22 +2516,14 @@ export type AppsUnsuspendInstallation = ( | Response<404, t_basic_error> > -const appsDeleteAuthorizationResponder = { - with204: r.with204, - with422: r.with422, +const appsDeleteAuthorization = b((r) => ({ + with204: r.with204(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type AppsDeleteAuthorizationResponder = - typeof appsDeleteAuthorizationResponder & KoaRuntimeResponder - -const appsDeleteAuthorizationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_validation_error], - ], - undefined, -) + (typeof appsDeleteAuthorization)["responder"] & KoaRuntimeResponder export type AppsDeleteAuthorization = ( params: Params< @@ -2680,25 +2540,16 @@ export type AppsDeleteAuthorization = ( | Response<422, t_validation_error> > -const appsCheckTokenResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const appsCheckToken = b((r) => ({ + with200: r.with200(s_authorization), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type AppsCheckTokenResponder = typeof appsCheckTokenResponder & +type AppsCheckTokenResponder = (typeof appsCheckToken)["responder"] & KoaRuntimeResponder -const appsCheckTokenResponseValidator = responseValidationFactory( - [ - ["200", s_authorization], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type AppsCheckToken = ( params: Params< t_AppsCheckTokenParamSchema, @@ -2715,23 +2566,15 @@ export type AppsCheckToken = ( | Response<422, t_validation_error> > -const appsResetTokenResponder = { - with200: r.with200, - with422: r.with422, +const appsResetToken = b((r) => ({ + with200: r.with200(s_authorization), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type AppsResetTokenResponder = typeof appsResetTokenResponder & +type AppsResetTokenResponder = (typeof appsResetToken)["responder"] & KoaRuntimeResponder -const appsResetTokenResponseValidator = responseValidationFactory( - [ - ["200", s_authorization], - ["422", s_validation_error], - ], - undefined, -) - export type AppsResetToken = ( params: Params< t_AppsResetTokenParamSchema, @@ -2747,23 +2590,15 @@ export type AppsResetToken = ( | Response<422, t_validation_error> > -const appsDeleteTokenResponder = { - with204: r.with204, - with422: r.with422, +const appsDeleteToken = b((r) => ({ + with204: r.with204(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type AppsDeleteTokenResponder = typeof appsDeleteTokenResponder & +type AppsDeleteTokenResponder = (typeof appsDeleteToken)["responder"] & KoaRuntimeResponder -const appsDeleteTokenResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_validation_error], - ], - undefined, -) - export type AppsDeleteToken = ( params: Params< t_AppsDeleteTokenParamSchema, @@ -2779,29 +2614,18 @@ export type AppsDeleteToken = ( | Response<422, t_validation_error> > -const appsScopeTokenResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const appsScopeToken = b((r) => ({ + with200: r.with200(s_authorization), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type AppsScopeTokenResponder = typeof appsScopeTokenResponder & +type AppsScopeTokenResponder = (typeof appsScopeToken)["responder"] & KoaRuntimeResponder -const appsScopeTokenResponseValidator = responseValidationFactory( - [ - ["200", s_authorization], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type AppsScopeToken = ( params: Params< t_AppsScopeTokenParamSchema, @@ -2820,25 +2644,16 @@ export type AppsScopeToken = ( | Response<422, t_validation_error> > -const appsGetBySlugResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const appsGetBySlug = b((r) => ({ + with200: r.with200(s_integration), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type AppsGetBySlugResponder = typeof appsGetBySlugResponder & +type AppsGetBySlugResponder = (typeof appsGetBySlug)["responder"] & KoaRuntimeResponder -const appsGetBySlugResponseValidator = responseValidationFactory( - [ - ["200", s_integration], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type AppsGetBySlug = ( params: Params, respond: AppsGetBySlugResponder, @@ -2850,22 +2665,14 @@ export type AppsGetBySlug = ( | Response<404, t_basic_error> > -const classroomGetAnAssignmentResponder = { - with200: r.with200, - with404: r.with404, +const classroomGetAnAssignment = b((r) => ({ + with200: r.with200(s_classroom_assignment), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ClassroomGetAnAssignmentResponder = - typeof classroomGetAnAssignmentResponder & KoaRuntimeResponder - -const classroomGetAnAssignmentResponseValidator = responseValidationFactory( - [ - ["200", s_classroom_assignment], - ["404", s_basic_error], - ], - undefined, -) + (typeof classroomGetAnAssignment)["responder"] & KoaRuntimeResponder export type ClassroomGetAnAssignment = ( params: Params, @@ -2877,21 +2684,17 @@ export type ClassroomGetAnAssignment = ( | Response<404, t_basic_error> > -const classroomListAcceptedAssignmentsForAnAssignmentResponder = { - with200: r.with200, +const classroomListAcceptedAssignmentsForAnAssignment = b((r) => ({ + with200: r.with200( + z.array(s_classroom_accepted_assignment), + ), withStatus: r.withStatus, -} +})) type ClassroomListAcceptedAssignmentsForAnAssignmentResponder = - typeof classroomListAcceptedAssignmentsForAnAssignmentResponder & + (typeof classroomListAcceptedAssignmentsForAnAssignment)["responder"] & KoaRuntimeResponder -const classroomListAcceptedAssignmentsForAnAssignmentResponseValidator = - responseValidationFactory( - [["200", z.array(s_classroom_accepted_assignment)]], - undefined, - ) - export type ClassroomListAcceptedAssignmentsForAnAssignment = ( params: Params< t_ClassroomListAcceptedAssignmentsForAnAssignmentParamSchema, @@ -2905,22 +2708,16 @@ export type ClassroomListAcceptedAssignmentsForAnAssignment = ( KoaRuntimeResponse | Response<200, t_classroom_accepted_assignment[]> > -const classroomGetAssignmentGradesResponder = { - with200: r.with200, - with404: r.with404, +const classroomGetAssignmentGrades = b((r) => ({ + with200: r.with200( + z.array(s_classroom_assignment_grade), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ClassroomGetAssignmentGradesResponder = - typeof classroomGetAssignmentGradesResponder & KoaRuntimeResponder - -const classroomGetAssignmentGradesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_classroom_assignment_grade)], - ["404", s_basic_error], - ], - undefined, -) + (typeof classroomGetAssignmentGrades)["responder"] & KoaRuntimeResponder export type ClassroomGetAssignmentGrades = ( params: Params, @@ -2932,18 +2729,13 @@ export type ClassroomGetAssignmentGrades = ( | Response<404, t_basic_error> > -const classroomListClassroomsResponder = { - with200: r.with200, +const classroomListClassrooms = b((r) => ({ + with200: r.with200(z.array(s_simple_classroom)), withStatus: r.withStatus, -} +})) type ClassroomListClassroomsResponder = - typeof classroomListClassroomsResponder & KoaRuntimeResponder - -const classroomListClassroomsResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_classroom)]], - undefined, -) + (typeof classroomListClassrooms)["responder"] & KoaRuntimeResponder export type ClassroomListClassrooms = ( params: Params, @@ -2951,22 +2743,14 @@ export type ClassroomListClassrooms = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_classroom[]>> -const classroomGetAClassroomResponder = { - with200: r.with200, - with404: r.with404, +const classroomGetAClassroom = b((r) => ({ + with200: r.with200(s_classroom), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type ClassroomGetAClassroomResponder = typeof classroomGetAClassroomResponder & - KoaRuntimeResponder +})) -const classroomGetAClassroomResponseValidator = responseValidationFactory( - [ - ["200", s_classroom], - ["404", s_basic_error], - ], - undefined, -) +type ClassroomGetAClassroomResponder = + (typeof classroomGetAClassroom)["responder"] & KoaRuntimeResponder export type ClassroomGetAClassroom = ( params: Params, @@ -2978,19 +2762,16 @@ export type ClassroomGetAClassroom = ( | Response<404, t_basic_error> > -const classroomListAssignmentsForAClassroomResponder = { - with200: r.with200, +const classroomListAssignmentsForAClassroom = b((r) => ({ + with200: r.with200( + z.array(s_simple_classroom_assignment), + ), withStatus: r.withStatus, -} +})) type ClassroomListAssignmentsForAClassroomResponder = - typeof classroomListAssignmentsForAClassroomResponder & KoaRuntimeResponder - -const classroomListAssignmentsForAClassroomResponseValidator = - responseValidationFactory( - [["200", z.array(s_simple_classroom_assignment)]], - undefined, - ) + (typeof classroomListAssignmentsForAClassroom)["responder"] & + KoaRuntimeResponder export type ClassroomListAssignmentsForAClassroom = ( params: Params< @@ -3005,23 +2786,14 @@ export type ClassroomListAssignmentsForAClassroom = ( KoaRuntimeResponse | Response<200, t_simple_classroom_assignment[]> > -const codesOfConductGetAllCodesOfConductResponder = { - with200: r.with200, - with304: r.with304, +const codesOfConductGetAllCodesOfConduct = b((r) => ({ + with200: r.with200(z.array(s_code_of_conduct)), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} +})) type CodesOfConductGetAllCodesOfConductResponder = - typeof codesOfConductGetAllCodesOfConductResponder & KoaRuntimeResponder - -const codesOfConductGetAllCodesOfConductResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_of_conduct)], - ["304", z.undefined()], - ], - undefined, - ) + (typeof codesOfConductGetAllCodesOfConduct)["responder"] & KoaRuntimeResponder export type CodesOfConductGetAllCodesOfConduct = ( params: Params, @@ -3033,24 +2805,15 @@ export type CodesOfConductGetAllCodesOfConduct = ( | Response<304, void> > -const codesOfConductGetConductCodeResponder = { - with200: r.with200, - with304: r.with304, - with404: r.with404, +const codesOfConductGetConductCode = b((r) => ({ + with200: r.with200(s_code_of_conduct), + with304: r.with304(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodesOfConductGetConductCodeResponder = - typeof codesOfConductGetConductCodeResponder & KoaRuntimeResponder - -const codesOfConductGetConductCodeResponseValidator = responseValidationFactory( - [ - ["200", s_code_of_conduct], - ["304", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof codesOfConductGetConductCode)["responder"] & KoaRuntimeResponder export type CodesOfConductGetConductCode = ( params: Params, @@ -3063,23 +2826,15 @@ export type CodesOfConductGetConductCode = ( | Response<404, t_basic_error> > -const emojisGetResponder = { +const emojisGet = b((r) => ({ with200: r.with200<{ [key: string]: string | undefined - }>, - with304: r.with304, + }>(z.record(z.string())), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} +})) -type EmojisGetResponder = typeof emojisGetResponder & KoaRuntimeResponder - -const emojisGetResponseValidator = responseValidationFactory( - [ - ["200", z.record(z.string())], - ["304", z.undefined()], - ], - undefined, -) +type EmojisGetResponder = (typeof emojisGet)["responder"] & KoaRuntimeResponder export type EmojisGet = ( params: Params, @@ -3096,27 +2851,19 @@ export type EmojisGet = ( | Response<304, void> > -const codeSecurityGetConfigurationsForEnterpriseResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeSecurityGetConfigurationsForEnterprise = b((r) => ({ + with200: r.with200( + z.array(s_code_security_configuration), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityGetConfigurationsForEnterpriseResponder = - typeof codeSecurityGetConfigurationsForEnterpriseResponder & + (typeof codeSecurityGetConfigurationsForEnterprise)["responder"] & KoaRuntimeResponder -const codeSecurityGetConfigurationsForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_security_configuration)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type CodeSecurityGetConfigurationsForEnterprise = ( params: Params< t_CodeSecurityGetConfigurationsForEnterpriseParamSchema, @@ -3133,29 +2880,20 @@ export type CodeSecurityGetConfigurationsForEnterprise = ( | Response<404, t_basic_error> > -const codeSecurityCreateConfigurationForEnterpriseResponder = { - with201: r.with201, - with400: r.with400, - with403: r.with403, - with404: r.with404, +const codeSecurityCreateConfigurationForEnterprise = b((r) => ({ + with201: r.with201( + s_code_security_configuration, + ), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityCreateConfigurationForEnterpriseResponder = - typeof codeSecurityCreateConfigurationForEnterpriseResponder & + (typeof codeSecurityCreateConfigurationForEnterprise)["responder"] & KoaRuntimeResponder -const codeSecurityCreateConfigurationForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["201", s_code_security_configuration], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type CodeSecurityCreateConfigurationForEnterprise = ( params: Params< t_CodeSecurityCreateConfigurationForEnterpriseParamSchema, @@ -3173,21 +2911,17 @@ export type CodeSecurityCreateConfigurationForEnterprise = ( | Response<404, t_basic_error> > -const codeSecurityGetDefaultConfigurationsForEnterpriseResponder = { - with200: r.with200, +const codeSecurityGetDefaultConfigurationsForEnterprise = b((r) => ({ + with200: r.with200( + s_code_security_default_configurations, + ), withStatus: r.withStatus, -} +})) type CodeSecurityGetDefaultConfigurationsForEnterpriseResponder = - typeof codeSecurityGetDefaultConfigurationsForEnterpriseResponder & + (typeof codeSecurityGetDefaultConfigurationsForEnterprise)["responder"] & KoaRuntimeResponder -const codeSecurityGetDefaultConfigurationsForEnterpriseResponseValidator = - responseValidationFactory( - [["200", s_code_security_default_configurations]], - undefined, - ) - export type CodeSecurityGetDefaultConfigurationsForEnterprise = ( params: Params< t_CodeSecurityGetDefaultConfigurationsForEnterpriseParamSchema, @@ -3202,29 +2936,20 @@ export type CodeSecurityGetDefaultConfigurationsForEnterprise = ( | Response<200, t_code_security_default_configurations> > -const codeSecurityGetSingleConfigurationForEnterpriseResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const codeSecurityGetSingleConfigurationForEnterprise = b((r) => ({ + with200: r.with200( + s_code_security_configuration, + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityGetSingleConfigurationForEnterpriseResponder = - typeof codeSecurityGetSingleConfigurationForEnterpriseResponder & + (typeof codeSecurityGetSingleConfigurationForEnterprise)["responder"] & KoaRuntimeResponder -const codeSecurityGetSingleConfigurationForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type CodeSecurityGetSingleConfigurationForEnterprise = ( params: Params< t_CodeSecurityGetSingleConfigurationForEnterpriseParamSchema, @@ -3242,31 +2967,21 @@ export type CodeSecurityGetSingleConfigurationForEnterprise = ( | Response<404, t_basic_error> > -const codeSecurityUpdateEnterpriseConfigurationResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, - with409: r.with409, +const codeSecurityUpdateEnterpriseConfiguration = b((r) => ({ + with200: r.with200( + s_code_security_configuration, + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityUpdateEnterpriseConfigurationResponder = - typeof codeSecurityUpdateEnterpriseConfigurationResponder & + (typeof codeSecurityUpdateEnterpriseConfiguration)["responder"] & KoaRuntimeResponder -const codeSecurityUpdateEnterpriseConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - export type CodeSecurityUpdateEnterpriseConfiguration = ( params: Params< t_CodeSecurityUpdateEnterpriseConfigurationParamSchema, @@ -3285,31 +3000,19 @@ export type CodeSecurityUpdateEnterpriseConfiguration = ( | Response<409, t_basic_error> > -const codeSecurityDeleteConfigurationForEnterpriseResponder = { - with204: r.with204, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with409: r.with409, +const codeSecurityDeleteConfigurationForEnterprise = b((r) => ({ + with204: r.with204(z.undefined()), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityDeleteConfigurationForEnterpriseResponder = - typeof codeSecurityDeleteConfigurationForEnterpriseResponder & + (typeof codeSecurityDeleteConfigurationForEnterprise)["responder"] & KoaRuntimeResponder -const codeSecurityDeleteConfigurationForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - export type CodeSecurityDeleteConfigurationForEnterprise = ( params: Params< t_CodeSecurityDeleteConfigurationForEnterpriseParamSchema, @@ -3328,31 +3031,20 @@ export type CodeSecurityDeleteConfigurationForEnterprise = ( | Response<409, t_basic_error> > -const codeSecurityAttachEnterpriseConfigurationResponder = { +const codeSecurityAttachEnterpriseConfiguration = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with403: r.with403, - with404: r.with404, - with409: r.with409, + }>(z.record(z.unknown())), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityAttachEnterpriseConfigurationResponder = - typeof codeSecurityAttachEnterpriseConfigurationResponder & + (typeof codeSecurityAttachEnterpriseConfiguration)["responder"] & KoaRuntimeResponder -const codeSecurityAttachEnterpriseConfigurationResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - export type CodeSecurityAttachEnterpriseConfiguration = ( params: Params< t_CodeSecurityAttachEnterpriseConfigurationParamSchema, @@ -3375,38 +3067,27 @@ export type CodeSecurityAttachEnterpriseConfiguration = ( | Response<409, t_basic_error> > -const codeSecuritySetConfigurationAsDefaultForEnterpriseResponder = { +const codeSecuritySetConfigurationAsDefaultForEnterprise = b((r) => ({ with200: r.with200<{ configuration?: t_code_security_configuration default_for_new_repos?: "all" | "none" | "private_and_internal" | "public" - }>, - with403: r.with403, - with404: r.with404, + }>( + z.object({ + default_for_new_repos: z + .enum(["all", "none", "private_and_internal", "public"]) + .optional(), + configuration: s_code_security_configuration.optional(), + }), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecuritySetConfigurationAsDefaultForEnterpriseResponder = - typeof codeSecuritySetConfigurationAsDefaultForEnterpriseResponder & + (typeof codeSecuritySetConfigurationAsDefaultForEnterprise)["responder"] & KoaRuntimeResponder -const codeSecuritySetConfigurationAsDefaultForEnterpriseResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - default_for_new_repos: z - .enum(["all", "none", "private_and_internal", "public"]) - .optional(), - configuration: s_code_security_configuration.optional(), - }), - ], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type CodeSecuritySetConfigurationAsDefaultForEnterprise = ( params: Params< t_CodeSecuritySetConfigurationAsDefaultForEnterpriseParamSchema, @@ -3433,27 +3114,19 @@ export type CodeSecuritySetConfigurationAsDefaultForEnterprise = ( | Response<404, t_basic_error> > -const codeSecurityGetRepositoriesForEnterpriseConfigurationResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeSecurityGetRepositoriesForEnterpriseConfiguration = b((r) => ({ + with200: r.with200( + z.array(s_code_security_configuration_repositories), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityGetRepositoriesForEnterpriseConfigurationResponder = - typeof codeSecurityGetRepositoriesForEnterpriseConfigurationResponder & + (typeof codeSecurityGetRepositoriesForEnterpriseConfiguration)["responder"] & KoaRuntimeResponder -const codeSecurityGetRepositoriesForEnterpriseConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_security_configuration_repositories)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type CodeSecurityGetRepositoriesForEnterpriseConfiguration = ( params: Params< t_CodeSecurityGetRepositoriesForEnterpriseConfigurationParamSchema, @@ -3470,29 +3143,19 @@ export type CodeSecurityGetRepositoriesForEnterpriseConfiguration = ( | Response<404, t_basic_error> > -const dependabotListAlertsForEnterpriseResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const dependabotListAlertsForEnterprise = b((r) => ({ + with200: r.with200( + z.array(s_dependabot_alert_with_repository), + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type DependabotListAlertsForEnterpriseResponder = - typeof dependabotListAlertsForEnterpriseResponder & KoaRuntimeResponder - -const dependabotListAlertsForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_dependabot_alert_with_repository)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) + (typeof dependabotListAlertsForEnterprise)["responder"] & KoaRuntimeResponder export type DependabotListAlertsForEnterprise = ( params: Params< @@ -3512,36 +3175,28 @@ export type DependabotListAlertsForEnterprise = ( | Response<422, t_validation_error_simple> > -const secretScanningListAlertsForEnterpriseResponder = { - with200: r.with200, - with404: r.with404, +const secretScanningListAlertsForEnterprise = b((r) => ({ + with200: r.with200( + z.array(s_organization_secret_scanning_alert), + ), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type SecretScanningListAlertsForEnterpriseResponder = - typeof secretScanningListAlertsForEnterpriseResponder & KoaRuntimeResponder - -const secretScanningListAlertsForEnterpriseResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_organization_secret_scanning_alert)], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof secretScanningListAlertsForEnterprise)["responder"] & + KoaRuntimeResponder export type SecretScanningListAlertsForEnterprise = ( params: Params< @@ -3566,37 +3221,26 @@ export type SecretScanningListAlertsForEnterprise = ( > > -const activityListPublicEventsResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, +const activityListPublicEvents = b((r) => ({ + with200: r.with200(z.array(s_event)), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type ActivityListPublicEventsResponder = - typeof activityListPublicEventsResponder & KoaRuntimeResponder - -const activityListPublicEventsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_event)], - ["304", z.undefined()], - ["403", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof activityListPublicEvents)["responder"] & KoaRuntimeResponder export type ActivityListPublicEvents = ( params: Params, @@ -3617,42 +3261,28 @@ export type ActivityListPublicEvents = ( > > -const activityGetFeedsResponder = { - with200: r.with200, +const activityGetFeeds = b((r) => ({ + with200: r.with200(s_feed), withStatus: r.withStatus, -} +})) -type ActivityGetFeedsResponder = typeof activityGetFeedsResponder & +type ActivityGetFeedsResponder = (typeof activityGetFeeds)["responder"] & KoaRuntimeResponder -const activityGetFeedsResponseValidator = responseValidationFactory( - [["200", s_feed]], - undefined, -) - export type ActivityGetFeeds = ( params: Params, respond: ActivityGetFeedsResponder, ctx: RouterContext, ) => Promise | Response<200, t_feed>> -const gistsListResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, +const gistsList = b((r) => ({ + with200: r.with200(z.array(s_base_gist)), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsListResponder = typeof gistsListResponder & KoaRuntimeResponder - -const gistsListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_base_gist)], - ["304", z.undefined()], - ["403", s_basic_error], - ], - undefined, -) +type GistsListResponder = (typeof gistsList)["responder"] & KoaRuntimeResponder export type GistsList = ( params: Params, @@ -3665,27 +3295,17 @@ export type GistsList = ( | Response<403, t_basic_error> > -const gistsCreateResponder = { - with201: r.with201, - with304: r.with304, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const gistsCreate = b((r) => ({ + with201: r.with201(s_gist_simple), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GistsCreateResponder = typeof gistsCreateResponder & KoaRuntimeResponder - -const gistsCreateResponseValidator = responseValidationFactory( - [ - ["201", s_gist_simple], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type GistsCreateResponder = (typeof gistsCreate)["responder"] & + KoaRuntimeResponder export type GistsCreate = ( params: Params, @@ -3700,27 +3320,17 @@ export type GistsCreate = ( | Response<422, t_validation_error> > -const gistsListPublicResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with422: r.with422, +const gistsListPublic = b((r) => ({ + with200: r.with200(z.array(s_base_gist)), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GistsListPublicResponder = typeof gistsListPublicResponder & +type GistsListPublicResponder = (typeof gistsListPublic)["responder"] & KoaRuntimeResponder -const gistsListPublicResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_base_gist)], - ["304", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type GistsListPublic = ( params: Params, respond: GistsListPublicResponder, @@ -3733,27 +3343,17 @@ export type GistsListPublic = ( | Response<422, t_validation_error> > -const gistsListStarredResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const gistsListStarred = b((r) => ({ + with200: r.with200(z.array(s_base_gist)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsListStarredResponder = typeof gistsListStarredResponder & +type GistsListStarredResponder = (typeof gistsListStarred)["responder"] & KoaRuntimeResponder -const gistsListStarredResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_base_gist)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) - export type GistsListStarred = ( params: Params, respond: GistsListStarredResponder, @@ -3766,9 +3366,9 @@ export type GistsListStarred = ( | Response<403, t_basic_error> > -const gistsGetResponder = { - with200: r.with200, - with304: r.with304, +const gistsGet = b((r) => ({ + with200: r.with200(s_gist_simple), + with304: r.with304(z.undefined()), with403: r.with403<{ block?: { created_at?: string @@ -3777,35 +3377,24 @@ const gistsGetResponder = { } documentation_url?: string message?: string - }>, - with404: r.with404, + }>( + z.object({ + block: z + .object({ + reason: z.string().optional(), + created_at: z.string().optional(), + html_url: z.string().nullable().optional(), + }) + .optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsGetResponder = typeof gistsGetResponder & KoaRuntimeResponder - -const gistsGetResponseValidator = responseValidationFactory( - [ - ["200", s_gist_simple], - ["304", z.undefined()], - [ - "403", - z.object({ - block: z - .object({ - reason: z.string().optional(), - created_at: z.string().optional(), - html_url: z.string().nullable().optional(), - }) - .optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["404", s_basic_error], - ], - undefined, -) +type GistsGetResponder = (typeof gistsGet)["responder"] & KoaRuntimeResponder export type GistsGet = ( params: Params, @@ -3830,23 +3419,15 @@ export type GistsGet = ( | Response<404, t_basic_error> > -const gistsUpdateResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const gistsUpdate = b((r) => ({ + with200: r.with200(s_gist_simple), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type GistsUpdateResponder = typeof gistsUpdateResponder & KoaRuntimeResponder +})) -const gistsUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_gist_simple], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type GistsUpdateResponder = (typeof gistsUpdate)["responder"] & + KoaRuntimeResponder export type GistsUpdate = ( params: Params, @@ -3859,25 +3440,16 @@ export type GistsUpdate = ( | Response<422, t_validation_error> > -const gistsDeleteResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsDelete = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsDeleteResponder = typeof gistsDeleteResponder & KoaRuntimeResponder - -const gistsDeleteResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type GistsDeleteResponder = (typeof gistsDelete)["responder"] & + KoaRuntimeResponder export type GistsDelete = ( params: Params, @@ -3891,27 +3463,17 @@ export type GistsDelete = ( | Response<404, t_basic_error> > -const gistsListCommentsResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsListComments = b((r) => ({ + with200: r.with200(z.array(s_gist_comment)), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsListCommentsResponder = typeof gistsListCommentsResponder & +type GistsListCommentsResponder = (typeof gistsListComments)["responder"] & KoaRuntimeResponder -const gistsListCommentsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_gist_comment)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type GistsListComments = ( params: Params< t_GistsListCommentsParamSchema, @@ -3929,27 +3491,17 @@ export type GistsListComments = ( | Response<404, t_basic_error> > -const gistsCreateCommentResponder = { - with201: r.with201, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsCreateComment = b((r) => ({ + with201: r.with201(s_gist_comment), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsCreateCommentResponder = typeof gistsCreateCommentResponder & +type GistsCreateCommentResponder = (typeof gistsCreateComment)["responder"] & KoaRuntimeResponder -const gistsCreateCommentResponseValidator = responseValidationFactory( - [ - ["201", s_gist_comment], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type GistsCreateComment = ( params: Params< t_GistsCreateCommentParamSchema, @@ -3967,9 +3519,9 @@ export type GistsCreateComment = ( | Response<404, t_basic_error> > -const gistsGetCommentResponder = { - with200: r.with200, - with304: r.with304, +const gistsGetComment = b((r) => ({ + with200: r.with200(s_gist_comment), + with304: r.with304(z.undefined()), with403: r.with403<{ block?: { created_at?: string @@ -3978,37 +3530,26 @@ const gistsGetCommentResponder = { } documentation_url?: string message?: string - }>, - with404: r.with404, + }>( + z.object({ + block: z + .object({ + reason: z.string().optional(), + created_at: z.string().optional(), + html_url: z.string().nullable().optional(), + }) + .optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsGetCommentResponder = typeof gistsGetCommentResponder & +type GistsGetCommentResponder = (typeof gistsGetComment)["responder"] & KoaRuntimeResponder -const gistsGetCommentResponseValidator = responseValidationFactory( - [ - ["200", s_gist_comment], - ["304", z.undefined()], - [ - "403", - z.object({ - block: z - .object({ - reason: z.string().optional(), - created_at: z.string().optional(), - html_url: z.string().nullable().optional(), - }) - .optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["404", s_basic_error], - ], - undefined, -) - export type GistsGetComment = ( params: Params, respond: GistsGetCommentResponder, @@ -4032,23 +3573,15 @@ export type GistsGetComment = ( | Response<404, t_basic_error> > -const gistsUpdateCommentResponder = { - with200: r.with200, - with404: r.with404, +const gistsUpdateComment = b((r) => ({ + with200: r.with200(s_gist_comment), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsUpdateCommentResponder = typeof gistsUpdateCommentResponder & +type GistsUpdateCommentResponder = (typeof gistsUpdateComment)["responder"] & KoaRuntimeResponder -const gistsUpdateCommentResponseValidator = responseValidationFactory( - [ - ["200", s_gist_comment], - ["404", s_basic_error], - ], - undefined, -) - export type GistsUpdateComment = ( params: Params< t_GistsUpdateCommentParamSchema, @@ -4064,27 +3597,17 @@ export type GistsUpdateComment = ( | Response<404, t_basic_error> > -const gistsDeleteCommentResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsDeleteComment = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsDeleteCommentResponder = typeof gistsDeleteCommentResponder & +type GistsDeleteCommentResponder = (typeof gistsDeleteComment)["responder"] & KoaRuntimeResponder -const gistsDeleteCommentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type GistsDeleteComment = ( params: Params, respond: GistsDeleteCommentResponder, @@ -4097,27 +3620,17 @@ export type GistsDeleteComment = ( | Response<404, t_basic_error> > -const gistsListCommitsResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsListCommits = b((r) => ({ + with200: r.with200(z.array(s_gist_commit)), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsListCommitsResponder = typeof gistsListCommitsResponder & +type GistsListCommitsResponder = (typeof gistsListCommits)["responder"] & KoaRuntimeResponder -const gistsListCommitsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_gist_commit)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type GistsListCommits = ( params: Params< t_GistsListCommitsParamSchema, @@ -4135,27 +3648,17 @@ export type GistsListCommits = ( | Response<404, t_basic_error> > -const gistsListForksResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsListForks = b((r) => ({ + with200: r.with200(z.array(s_gist_simple)), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsListForksResponder = typeof gistsListForksResponder & +type GistsListForksResponder = (typeof gistsListForks)["responder"] & KoaRuntimeResponder -const gistsListForksResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_gist_simple)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type GistsListForks = ( params: Params< t_GistsListForksParamSchema, @@ -4173,27 +3676,16 @@ export type GistsListForks = ( | Response<404, t_basic_error> > -const gistsForkResponder = { - with201: r.with201, - with304: r.with304, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const gistsFork = b((r) => ({ + with201: r.with201(s_base_gist), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GistsForkResponder = typeof gistsForkResponder & KoaRuntimeResponder - -const gistsForkResponseValidator = responseValidationFactory( - [ - ["201", s_base_gist], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type GistsForkResponder = (typeof gistsFork)["responder"] & KoaRuntimeResponder export type GistsFork = ( params: Params, @@ -4208,27 +3700,17 @@ export type GistsFork = ( | Response<422, t_validation_error> > -const gistsCheckIsStarredResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsCheckIsStarred = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(z.object({})), withStatus: r.withStatus, -} +})) -type GistsCheckIsStarredResponder = typeof gistsCheckIsStarredResponder & +type GistsCheckIsStarredResponder = (typeof gistsCheckIsStarred)["responder"] & KoaRuntimeResponder -const gistsCheckIsStarredResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", z.object({})], - ], - undefined, -) - export type GistsCheckIsStarred = ( params: Params, respond: GistsCheckIsStarredResponder, @@ -4241,25 +3723,15 @@ export type GistsCheckIsStarred = ( | Response<404, EmptyObject> > -const gistsStarResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsStar = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsStarResponder = typeof gistsStarResponder & KoaRuntimeResponder - -const gistsStarResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type GistsStarResponder = (typeof gistsStar)["responder"] & KoaRuntimeResponder export type GistsStar = ( params: Params, @@ -4273,25 +3745,16 @@ export type GistsStar = ( | Response<404, t_basic_error> > -const gistsUnstarResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const gistsUnstar = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type GistsUnstarResponder = typeof gistsUnstarResponder & KoaRuntimeResponder - -const gistsUnstarResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type GistsUnstarResponder = (typeof gistsUnstar)["responder"] & + KoaRuntimeResponder export type GistsUnstar = ( params: Params, @@ -4305,27 +3768,17 @@ export type GistsUnstar = ( | Response<404, t_basic_error> > -const gistsGetRevisionResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const gistsGetRevision = b((r) => ({ + with200: r.with200(s_gist_simple), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GistsGetRevisionResponder = typeof gistsGetRevisionResponder & +type GistsGetRevisionResponder = (typeof gistsGetRevision)["responder"] & KoaRuntimeResponder -const gistsGetRevisionResponseValidator = responseValidationFactory( - [ - ["200", s_gist_simple], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type GistsGetRevision = ( params: Params, respond: GistsGetRevisionResponder, @@ -4338,22 +3791,14 @@ export type GistsGetRevision = ( | Response<422, t_validation_error> > -const gitignoreGetAllTemplatesResponder = { - with200: r.with200, - with304: r.with304, +const gitignoreGetAllTemplates = b((r) => ({ + with200: r.with200(z.array(z.string())), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} +})) type GitignoreGetAllTemplatesResponder = - typeof gitignoreGetAllTemplatesResponder & KoaRuntimeResponder - -const gitignoreGetAllTemplatesResponseValidator = responseValidationFactory( - [ - ["200", z.array(z.string())], - ["304", z.undefined()], - ], - undefined, -) + (typeof gitignoreGetAllTemplates)["responder"] & KoaRuntimeResponder export type GitignoreGetAllTemplates = ( params: Params, @@ -4363,22 +3808,14 @@ export type GitignoreGetAllTemplates = ( KoaRuntimeResponse | Response<200, string[]> | Response<304, void> > -const gitignoreGetTemplateResponder = { - with200: r.with200, - with304: r.with304, +const gitignoreGetTemplate = b((r) => ({ + with200: r.with200(s_gitignore_template), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} - -type GitignoreGetTemplateResponder = typeof gitignoreGetTemplateResponder & - KoaRuntimeResponder +})) -const gitignoreGetTemplateResponseValidator = responseValidationFactory( - [ - ["200", s_gitignore_template], - ["304", z.undefined()], - ], - undefined, -) +type GitignoreGetTemplateResponder = + (typeof gitignoreGetTemplate)["responder"] & KoaRuntimeResponder export type GitignoreGetTemplate = ( params: Params, @@ -4390,38 +3827,27 @@ export type GitignoreGetTemplate = ( | Response<304, void> > -const appsListReposAccessibleToInstallationResponder = { +const appsListReposAccessibleToInstallation = b((r) => ({ with200: r.with200<{ repositories: t_repository[] repository_selection?: string total_count: number - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, + }>( + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_repository), + repository_selection: z.string().optional(), + }), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type AppsListReposAccessibleToInstallationResponder = - typeof appsListReposAccessibleToInstallationResponder & KoaRuntimeResponder - -const appsListReposAccessibleToInstallationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_repository), - repository_selection: z.string().optional(), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof appsListReposAccessibleToInstallation)["responder"] & + KoaRuntimeResponder export type AppsListReposAccessibleToInstallation = ( params: Params< @@ -4447,16 +3873,13 @@ export type AppsListReposAccessibleToInstallation = ( | Response<403, t_basic_error> > -const appsRevokeInstallationAccessTokenResponder = { - with204: r.with204, +const appsRevokeInstallationAccessToken = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type AppsRevokeInstallationAccessTokenResponder = - typeof appsRevokeInstallationAccessTokenResponder & KoaRuntimeResponder - -const appsRevokeInstallationAccessTokenResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof appsRevokeInstallationAccessToken)["responder"] & KoaRuntimeResponder export type AppsRevokeInstallationAccessToken = ( params: Params, @@ -4464,25 +3887,16 @@ export type AppsRevokeInstallationAccessToken = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const issuesListResponder = { - with200: r.with200, - with304: r.with304, - with404: r.with404, - with422: r.with422, +const issuesList = b((r) => ({ + with200: r.with200(z.array(s_issue)), + with304: r.with304(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type IssuesListResponder = typeof issuesListResponder & KoaRuntimeResponder +})) -const issuesListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["304", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type IssuesListResponder = (typeof issuesList)["responder"] & + KoaRuntimeResponder export type IssuesList = ( params: Params, @@ -4496,22 +3910,14 @@ export type IssuesList = ( | Response<422, t_validation_error> > -const licensesGetAllCommonlyUsedResponder = { - with200: r.with200, - with304: r.with304, +const licensesGetAllCommonlyUsed = b((r) => ({ + with200: r.with200(z.array(s_license_simple)), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} +})) type LicensesGetAllCommonlyUsedResponder = - typeof licensesGetAllCommonlyUsedResponder & KoaRuntimeResponder - -const licensesGetAllCommonlyUsedResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_license_simple)], - ["304", z.undefined()], - ], - undefined, -) + (typeof licensesGetAllCommonlyUsed)["responder"] & KoaRuntimeResponder export type LicensesGetAllCommonlyUsed = ( params: Params, @@ -4523,25 +3929,16 @@ export type LicensesGetAllCommonlyUsed = ( | Response<304, void> > -const licensesGetResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const licensesGet = b((r) => ({ + with200: r.with200(s_license), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type LicensesGetResponder = typeof licensesGetResponder & KoaRuntimeResponder +})) -const licensesGetResponseValidator = responseValidationFactory( - [ - ["200", s_license], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type LicensesGetResponder = (typeof licensesGet)["responder"] & + KoaRuntimeResponder export type LicensesGet = ( params: Params, @@ -4555,23 +3952,15 @@ export type LicensesGet = ( | Response<404, t_basic_error> > -const markdownRenderResponder = { - with200: r.with200, - with304: r.with304, +const markdownRender = b((r) => ({ + with200: r.with200(z.string()), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} +})) -type MarkdownRenderResponder = typeof markdownRenderResponder & +type MarkdownRenderResponder = (typeof markdownRender)["responder"] & KoaRuntimeResponder -const markdownRenderResponseValidator = responseValidationFactory( - [ - ["200", z.string()], - ["304", z.undefined()], - ], - undefined, -) - export type MarkdownRender = ( params: Params, respond: MarkdownRenderResponder, @@ -4580,23 +3969,15 @@ export type MarkdownRender = ( KoaRuntimeResponse | Response<200, string> | Response<304, void> > -const markdownRenderRawResponder = { - with200: r.with200, - with304: r.with304, +const markdownRenderRaw = b((r) => ({ + with200: r.with200(z.string()), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} +})) -type MarkdownRenderRawResponder = typeof markdownRenderRawResponder & +type MarkdownRenderRawResponder = (typeof markdownRenderRaw)["responder"] & KoaRuntimeResponder -const markdownRenderRawResponseValidator = responseValidationFactory( - [ - ["200", z.string()], - ["304", z.undefined()], - ], - undefined, -) - export type MarkdownRenderRaw = ( params: Params, respond: MarkdownRenderRawResponder, @@ -4605,25 +3986,15 @@ export type MarkdownRenderRaw = ( KoaRuntimeResponse | Response<200, string> | Response<304, void> > -const appsGetSubscriptionPlanForAccountResponder = { - with200: r.with200, - with401: r.with401, - with404: r.with404, +const appsGetSubscriptionPlanForAccount = b((r) => ({ + with200: r.with200(s_marketplace_purchase), + with401: r.with401(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type AppsGetSubscriptionPlanForAccountResponder = - typeof appsGetSubscriptionPlanForAccountResponder & KoaRuntimeResponder - -const appsGetSubscriptionPlanForAccountResponseValidator = - responseValidationFactory( - [ - ["200", s_marketplace_purchase], - ["401", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof appsGetSubscriptionPlanForAccount)["responder"] & KoaRuntimeResponder export type AppsGetSubscriptionPlanForAccount = ( params: Params< @@ -4641,25 +4012,18 @@ export type AppsGetSubscriptionPlanForAccount = ( | Response<404, t_basic_error> > -const appsListPlansResponder = { - with200: r.with200, - with401: r.with401, - with404: r.with404, +const appsListPlans = b((r) => ({ + with200: r.with200( + z.array(s_marketplace_listing_plan), + ), + with401: r.with401(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type AppsListPlansResponder = typeof appsListPlansResponder & +type AppsListPlansResponder = (typeof appsListPlans)["responder"] & KoaRuntimeResponder -const appsListPlansResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_marketplace_listing_plan)], - ["401", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type AppsListPlans = ( params: Params, respond: AppsListPlansResponder, @@ -4671,26 +4035,16 @@ export type AppsListPlans = ( | Response<404, t_basic_error> > -const appsListAccountsForPlanResponder = { - with200: r.with200, - with401: r.with401, - with404: r.with404, - with422: r.with422, +const appsListAccountsForPlan = b((r) => ({ + with200: r.with200(z.array(s_marketplace_purchase)), + with401: r.with401(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type AppsListAccountsForPlanResponder = - typeof appsListAccountsForPlanResponder & KoaRuntimeResponder - -const appsListAccountsForPlanResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_marketplace_purchase)], - ["401", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof appsListAccountsForPlan)["responder"] & KoaRuntimeResponder export type AppsListAccountsForPlan = ( params: Params< @@ -4709,25 +4063,16 @@ export type AppsListAccountsForPlan = ( | Response<422, t_validation_error> > -const appsGetSubscriptionPlanForAccountStubbedResponder = { - with200: r.with200, - with401: r.with401, - with404: r.with404, +const appsGetSubscriptionPlanForAccountStubbed = b((r) => ({ + with200: r.with200(s_marketplace_purchase), + with401: r.with401(s_basic_error), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type AppsGetSubscriptionPlanForAccountStubbedResponder = - typeof appsGetSubscriptionPlanForAccountStubbedResponder & KoaRuntimeResponder - -const appsGetSubscriptionPlanForAccountStubbedResponseValidator = - responseValidationFactory( - [ - ["200", s_marketplace_purchase], - ["401", s_basic_error], - ["404", z.undefined()], - ], - undefined, - ) + (typeof appsGetSubscriptionPlanForAccountStubbed)["responder"] & + KoaRuntimeResponder export type AppsGetSubscriptionPlanForAccountStubbed = ( params: Params< @@ -4745,22 +4090,16 @@ export type AppsGetSubscriptionPlanForAccountStubbed = ( | Response<404, void> > -const appsListPlansStubbedResponder = { - with200: r.with200, - with401: r.with401, +const appsListPlansStubbed = b((r) => ({ + with200: r.with200( + z.array(s_marketplace_listing_plan), + ), + with401: r.with401(s_basic_error), withStatus: r.withStatus, -} +})) -type AppsListPlansStubbedResponder = typeof appsListPlansStubbedResponder & - KoaRuntimeResponder - -const appsListPlansStubbedResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_marketplace_listing_plan)], - ["401", s_basic_error], - ], - undefined, -) +type AppsListPlansStubbedResponder = + (typeof appsListPlansStubbed)["responder"] & KoaRuntimeResponder export type AppsListPlansStubbed = ( params: Params, @@ -4772,23 +4111,14 @@ export type AppsListPlansStubbed = ( | Response<401, t_basic_error> > -const appsListAccountsForPlanStubbedResponder = { - with200: r.with200, - with401: r.with401, +const appsListAccountsForPlanStubbed = b((r) => ({ + with200: r.with200(z.array(s_marketplace_purchase)), + with401: r.with401(s_basic_error), withStatus: r.withStatus, -} +})) type AppsListAccountsForPlanStubbedResponder = - typeof appsListAccountsForPlanStubbedResponder & KoaRuntimeResponder - -const appsListAccountsForPlanStubbedResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_marketplace_purchase)], - ["401", s_basic_error], - ], - undefined, - ) + (typeof appsListAccountsForPlanStubbed)["responder"] & KoaRuntimeResponder export type AppsListAccountsForPlanStubbed = ( params: Params< @@ -4805,21 +4135,13 @@ export type AppsListAccountsForPlanStubbed = ( | Response<401, t_basic_error> > -const metaGetResponder = { - with200: r.with200, - with304: r.with304, +const metaGet = b((r) => ({ + with200: r.with200(s_api_overview), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} +})) -type MetaGetResponder = typeof metaGetResponder & KoaRuntimeResponder - -const metaGetResponseValidator = responseValidationFactory( - [ - ["200", s_api_overview], - ["304", z.undefined()], - ], - undefined, -) +type MetaGetResponder = (typeof metaGet)["responder"] & KoaRuntimeResponder export type MetaGet = ( params: Params, @@ -4831,29 +4153,18 @@ export type MetaGet = ( | Response<304, void> > -const activityListPublicEventsForRepoNetworkResponder = { - with200: r.with200, - with301: r.with301, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const activityListPublicEventsForRepoNetwork = b((r) => ({ + with200: r.with200(z.array(s_event)), + with301: r.with301(s_basic_error), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityListPublicEventsForRepoNetworkResponder = - typeof activityListPublicEventsForRepoNetworkResponder & KoaRuntimeResponder - -const activityListPublicEventsForRepoNetworkResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_event)], - ["301", s_basic_error], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof activityListPublicEventsForRepoNetwork)["responder"] & + KoaRuntimeResponder export type ActivityListPublicEventsForRepoNetwork = ( params: Params< @@ -4873,31 +4184,19 @@ export type ActivityListPublicEventsForRepoNetwork = ( | Response<404, t_basic_error> > -const activityListNotificationsForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with422: r.with422, +const activityListNotificationsForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_thread)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ActivityListNotificationsForAuthenticatedUserResponder = - typeof activityListNotificationsForAuthenticatedUserResponder & + (typeof activityListNotificationsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const activityListNotificationsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_thread)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type ActivityListNotificationsForAuthenticatedUser = ( params: Params< void, @@ -4916,31 +4215,19 @@ export type ActivityListNotificationsForAuthenticatedUser = ( | Response<422, t_validation_error> > -const activityMarkNotificationsAsReadResponder = { +const activityMarkNotificationsAsRead = b((r) => ({ with202: r.with202<{ message?: string - }>, - with205: r.with205, - with304: r.with304, - with401: r.with401, - with403: r.with403, + }>(z.object({ message: z.string().optional() })), + with205: r.with205(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityMarkNotificationsAsReadResponder = - typeof activityMarkNotificationsAsReadResponder & KoaRuntimeResponder - -const activityMarkNotificationsAsReadResponseValidator = - responseValidationFactory( - [ - ["202", z.object({ message: z.string().optional() })], - ["205", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof activityMarkNotificationsAsRead)["responder"] & KoaRuntimeResponder export type ActivityMarkNotificationsAsRead = ( params: Params< @@ -4965,27 +4252,17 @@ export type ActivityMarkNotificationsAsRead = ( | Response<403, t_basic_error> > -const activityGetThreadResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const activityGetThread = b((r) => ({ + with200: r.with200(s_thread), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type ActivityGetThreadResponder = typeof activityGetThreadResponder & +type ActivityGetThreadResponder = (typeof activityGetThread)["responder"] & KoaRuntimeResponder -const activityGetThreadResponseValidator = responseValidationFactory( - [ - ["200", s_thread], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) - export type ActivityGetThread = ( params: Params, respond: ActivityGetThreadResponder, @@ -4998,24 +4275,15 @@ export type ActivityGetThread = ( | Response<403, t_basic_error> > -const activityMarkThreadAsReadResponder = { - with205: r.with205, - with304: r.with304, - with403: r.with403, +const activityMarkThreadAsRead = b((r) => ({ + with205: r.with205(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityMarkThreadAsReadResponder = - typeof activityMarkThreadAsReadResponder & KoaRuntimeResponder - -const activityMarkThreadAsReadResponseValidator = responseValidationFactory( - [ - ["205", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ], - undefined, -) + (typeof activityMarkThreadAsRead)["responder"] & KoaRuntimeResponder export type ActivityMarkThreadAsRead = ( params: Params, @@ -5028,18 +4296,13 @@ export type ActivityMarkThreadAsRead = ( | Response<403, t_basic_error> > -const activityMarkThreadAsDoneResponder = { - with204: r.with204, +const activityMarkThreadAsDone = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActivityMarkThreadAsDoneResponder = - typeof activityMarkThreadAsDoneResponder & KoaRuntimeResponder - -const activityMarkThreadAsDoneResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof activityMarkThreadAsDone)["responder"] & KoaRuntimeResponder export type ActivityMarkThreadAsDone = ( params: Params, @@ -5047,29 +4310,18 @@ export type ActivityMarkThreadAsDone = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const activityGetThreadSubscriptionForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const activityGetThreadSubscriptionForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_thread_subscription), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityGetThreadSubscriptionForAuthenticatedUserResponder = - typeof activityGetThreadSubscriptionForAuthenticatedUserResponder & + (typeof activityGetThreadSubscriptionForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const activityGetThreadSubscriptionForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_thread_subscription], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - export type ActivityGetThreadSubscriptionForAuthenticatedUser = ( params: Params< t_ActivityGetThreadSubscriptionForAuthenticatedUserParamSchema, @@ -5087,27 +4339,16 @@ export type ActivityGetThreadSubscriptionForAuthenticatedUser = ( | Response<403, t_basic_error> > -const activitySetThreadSubscriptionResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const activitySetThreadSubscription = b((r) => ({ + with200: r.with200(s_thread_subscription), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ActivitySetThreadSubscriptionResponder = - typeof activitySetThreadSubscriptionResponder & KoaRuntimeResponder - -const activitySetThreadSubscriptionResponseValidator = - responseValidationFactory( - [ - ["200", s_thread_subscription], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof activitySetThreadSubscription)["responder"] & KoaRuntimeResponder export type ActivitySetThreadSubscription = ( params: Params< @@ -5126,27 +4367,16 @@ export type ActivitySetThreadSubscription = ( | Response<403, t_basic_error> > -const activityDeleteThreadSubscriptionResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const activityDeleteThreadSubscription = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityDeleteThreadSubscriptionResponder = - typeof activityDeleteThreadSubscriptionResponder & KoaRuntimeResponder - -const activityDeleteThreadSubscriptionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof activityDeleteThreadSubscription)["responder"] & KoaRuntimeResponder export type ActivityDeleteThreadSubscription = ( params: Params< @@ -5165,40 +4395,27 @@ export type ActivityDeleteThreadSubscription = ( | Response<403, t_basic_error> > -const metaGetOctocatResponder = { - with200: r.with200, +const metaGetOctocat = b((r) => ({ + with200: r.with200(z.string()), withStatus: r.withStatus, -} +})) -type MetaGetOctocatResponder = typeof metaGetOctocatResponder & +type MetaGetOctocatResponder = (typeof metaGetOctocat)["responder"] & KoaRuntimeResponder -const metaGetOctocatResponseValidator = responseValidationFactory( - [["200", z.string()]], - undefined, -) - export type MetaGetOctocat = ( params: Params, respond: MetaGetOctocatResponder, ctx: RouterContext, ) => Promise | Response<200, string>> -const orgsListResponder = { - with200: r.with200, - with304: r.with304, +const orgsList = b((r) => ({ + with200: r.with200(z.array(s_organization_simple)), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} - -type OrgsListResponder = typeof orgsListResponder & KoaRuntimeResponder +})) -const orgsListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_simple)], - ["304", z.undefined()], - ], - undefined, -) +type OrgsListResponder = (typeof orgsList)["responder"] & KoaRuntimeResponder export type OrgsList = ( params: Params, @@ -5210,40 +4427,28 @@ export type OrgsList = ( | Response<304, void> > -const billingGetGithubBillingUsageReportOrgResponder = { - with200: r.with200, - with400: r.with400, - with403: r.with403, - with500: r.with500, +const billingGetGithubBillingUsageReportOrg = b((r) => ({ + with200: r.with200(s_billing_usage_report), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with500: r.with500(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type BillingGetGithubBillingUsageReportOrgResponder = - typeof billingGetGithubBillingUsageReportOrgResponder & KoaRuntimeResponder - -const billingGetGithubBillingUsageReportOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_billing_usage_report], - ["400", s_scim_error], - ["403", s_basic_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof billingGetGithubBillingUsageReportOrg)["responder"] & + KoaRuntimeResponder export type BillingGetGithubBillingUsageReportOrg = ( params: Params< @@ -5270,21 +4475,13 @@ export type BillingGetGithubBillingUsageReportOrg = ( > > -const orgsGetResponder = { - with200: r.with200, - with404: r.with404, +const orgsGet = b((r) => ({ + with200: r.with200(s_organization_full), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type OrgsGetResponder = typeof orgsGetResponder & KoaRuntimeResponder +})) -const orgsGetResponseValidator = responseValidationFactory( - [ - ["200", s_organization_full], - ["404", s_basic_error], - ], - undefined, -) +type OrgsGetResponder = (typeof orgsGet)["responder"] & KoaRuntimeResponder export type OrgsGet = ( params: Params, @@ -5296,23 +4493,17 @@ export type OrgsGet = ( | Response<404, t_basic_error> > -const orgsUpdateResponder = { - with200: r.with200, - with409: r.with409, - with422: r.with422, +const orgsUpdate = b((r) => ({ + with200: r.with200(s_organization_full), + with409: r.with409(s_basic_error), + with422: r.with422( + z.union([s_validation_error, s_validation_error_simple]), + ), withStatus: r.withStatus, -} +})) -type OrgsUpdateResponder = typeof orgsUpdateResponder & KoaRuntimeResponder - -const orgsUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_organization_full], - ["409", s_basic_error], - ["422", z.union([s_validation_error, s_validation_error_simple])], - ], - undefined, -) +type OrgsUpdateResponder = (typeof orgsUpdate)["responder"] & + KoaRuntimeResponder export type OrgsUpdate = ( params: Params< @@ -5330,25 +4521,17 @@ export type OrgsUpdate = ( | Response<422, t_validation_error | t_validation_error_simple> > -const orgsDeleteResponder = { +const orgsDelete = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with403: r.with403, - with404: r.with404, + }>(z.record(z.unknown())), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsDeleteResponder = typeof orgsDeleteResponder & KoaRuntimeResponder - -const orgsDeleteResponseValidator = responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type OrgsDeleteResponder = (typeof orgsDelete)["responder"] & + KoaRuntimeResponder export type OrgsDelete = ( params: Params, @@ -5366,19 +4549,15 @@ export type OrgsDelete = ( | Response<404, t_basic_error> > -const actionsGetActionsCacheUsageForOrgResponder = { - with200: r.with200, +const actionsGetActionsCacheUsageForOrg = b((r) => ({ + with200: r.with200( + s_actions_cache_usage_org_enterprise, + ), withStatus: r.withStatus, -} +})) type ActionsGetActionsCacheUsageForOrgResponder = - typeof actionsGetActionsCacheUsageForOrgResponder & KoaRuntimeResponder - -const actionsGetActionsCacheUsageForOrgResponseValidator = - responseValidationFactory( - [["200", s_actions_cache_usage_org_enterprise]], - undefined, - ) + (typeof actionsGetActionsCacheUsageForOrg)["responder"] & KoaRuntimeResponder export type ActionsGetActionsCacheUsageForOrg = ( params: Params< @@ -5394,30 +4573,22 @@ export type ActionsGetActionsCacheUsageForOrg = ( | Response<200, t_actions_cache_usage_org_enterprise> > -const actionsGetActionsCacheUsageByRepoForOrgResponder = { +const actionsGetActionsCacheUsageByRepoForOrg = b((r) => ({ with200: r.with200<{ repository_cache_usages: t_actions_cache_usage_by_repository[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + repository_cache_usages: z.array(s_actions_cache_usage_by_repository), + }), + ), withStatus: r.withStatus, -} +})) type ActionsGetActionsCacheUsageByRepoForOrgResponder = - typeof actionsGetActionsCacheUsageByRepoForOrgResponder & KoaRuntimeResponder - -const actionsGetActionsCacheUsageByRepoForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repository_cache_usages: z.array(s_actions_cache_usage_by_repository), - }), - ], - ], - undefined, - ) + (typeof actionsGetActionsCacheUsageByRepoForOrg)["responder"] & + KoaRuntimeResponder export type ActionsGetActionsCacheUsageByRepoForOrg = ( params: Params< @@ -5439,30 +4610,21 @@ export type ActionsGetActionsCacheUsageByRepoForOrg = ( > > -const actionsListHostedRunnersForOrgResponder = { +const actionsListHostedRunnersForOrg = b((r) => ({ with200: r.with200<{ runners: t_actions_hosted_runner[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + runners: z.array(s_actions_hosted_runner), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListHostedRunnersForOrgResponder = - typeof actionsListHostedRunnersForOrgResponder & KoaRuntimeResponder - -const actionsListHostedRunnersForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_actions_hosted_runner), - }), - ], - ], - undefined, - ) + (typeof actionsListHostedRunnersForOrg)["responder"] & KoaRuntimeResponder export type ActionsListHostedRunnersForOrg = ( params: Params< @@ -5484,16 +4646,13 @@ export type ActionsListHostedRunnersForOrg = ( > > -const actionsCreateHostedRunnerForOrgResponder = { - with201: r.with201, +const actionsCreateHostedRunnerForOrg = b((r) => ({ + with201: r.with201(s_actions_hosted_runner), withStatus: r.withStatus, -} +})) type ActionsCreateHostedRunnerForOrgResponder = - typeof actionsCreateHostedRunnerForOrgResponder & KoaRuntimeResponder - -const actionsCreateHostedRunnerForOrgResponseValidator = - responseValidationFactory([["201", s_actions_hosted_runner]], undefined) + (typeof actionsCreateHostedRunnerForOrg)["responder"] & KoaRuntimeResponder export type ActionsCreateHostedRunnerForOrg = ( params: Params< @@ -5508,32 +4667,23 @@ export type ActionsCreateHostedRunnerForOrg = ( KoaRuntimeResponse | Response<201, t_actions_hosted_runner> > -const actionsGetHostedRunnersGithubOwnedImagesForOrgResponder = { +const actionsGetHostedRunnersGithubOwnedImagesForOrg = b((r) => ({ with200: r.with200<{ images: t_actions_hosted_runner_image[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + images: z.array(s_actions_hosted_runner_image), + }), + ), withStatus: r.withStatus, -} +})) type ActionsGetHostedRunnersGithubOwnedImagesForOrgResponder = - typeof actionsGetHostedRunnersGithubOwnedImagesForOrgResponder & + (typeof actionsGetHostedRunnersGithubOwnedImagesForOrg)["responder"] & KoaRuntimeResponder -const actionsGetHostedRunnersGithubOwnedImagesForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - images: z.array(s_actions_hosted_runner_image), - }), - ], - ], - undefined, - ) - export type ActionsGetHostedRunnersGithubOwnedImagesForOrg = ( params: Params< t_ActionsGetHostedRunnersGithubOwnedImagesForOrgParamSchema, @@ -5554,32 +4704,23 @@ export type ActionsGetHostedRunnersGithubOwnedImagesForOrg = ( > > -const actionsGetHostedRunnersPartnerImagesForOrgResponder = { +const actionsGetHostedRunnersPartnerImagesForOrg = b((r) => ({ with200: r.with200<{ images: t_actions_hosted_runner_image[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + images: z.array(s_actions_hosted_runner_image), + }), + ), withStatus: r.withStatus, -} +})) type ActionsGetHostedRunnersPartnerImagesForOrgResponder = - typeof actionsGetHostedRunnersPartnerImagesForOrgResponder & + (typeof actionsGetHostedRunnersPartnerImagesForOrg)["responder"] & KoaRuntimeResponder -const actionsGetHostedRunnersPartnerImagesForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - images: z.array(s_actions_hosted_runner_image), - }), - ], - ], - undefined, - ) - export type ActionsGetHostedRunnersPartnerImagesForOrg = ( params: Params< t_ActionsGetHostedRunnersPartnerImagesForOrgParamSchema, @@ -5600,19 +4741,16 @@ export type ActionsGetHostedRunnersPartnerImagesForOrg = ( > > -const actionsGetHostedRunnersLimitsForOrgResponder = { - with200: r.with200, +const actionsGetHostedRunnersLimitsForOrg = b((r) => ({ + with200: r.with200( + s_actions_hosted_runner_limits, + ), withStatus: r.withStatus, -} +})) type ActionsGetHostedRunnersLimitsForOrgResponder = - typeof actionsGetHostedRunnersLimitsForOrgResponder & KoaRuntimeResponder - -const actionsGetHostedRunnersLimitsForOrgResponseValidator = - responseValidationFactory( - [["200", s_actions_hosted_runner_limits]], - undefined, - ) + (typeof actionsGetHostedRunnersLimitsForOrg)["responder"] & + KoaRuntimeResponder export type ActionsGetHostedRunnersLimitsForOrg = ( params: Params< @@ -5627,32 +4765,23 @@ export type ActionsGetHostedRunnersLimitsForOrg = ( KoaRuntimeResponse | Response<200, t_actions_hosted_runner_limits> > -const actionsGetHostedRunnersMachineSpecsForOrgResponder = { +const actionsGetHostedRunnersMachineSpecsForOrg = b((r) => ({ with200: r.with200<{ machine_specs: t_actions_hosted_runner_machine_spec[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + machine_specs: z.array(s_actions_hosted_runner_machine_spec), + }), + ), withStatus: r.withStatus, -} +})) type ActionsGetHostedRunnersMachineSpecsForOrgResponder = - typeof actionsGetHostedRunnersMachineSpecsForOrgResponder & + (typeof actionsGetHostedRunnersMachineSpecsForOrg)["responder"] & KoaRuntimeResponder -const actionsGetHostedRunnersMachineSpecsForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - machine_specs: z.array(s_actions_hosted_runner_machine_spec), - }), - ], - ], - undefined, - ) - export type ActionsGetHostedRunnersMachineSpecsForOrg = ( params: Params< t_ActionsGetHostedRunnersMachineSpecsForOrgParamSchema, @@ -5673,30 +4802,22 @@ export type ActionsGetHostedRunnersMachineSpecsForOrg = ( > > -const actionsGetHostedRunnersPlatformsForOrgResponder = { +const actionsGetHostedRunnersPlatformsForOrg = b((r) => ({ with200: r.with200<{ platforms: string[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + platforms: z.array(z.string()), + }), + ), withStatus: r.withStatus, -} +})) type ActionsGetHostedRunnersPlatformsForOrgResponder = - typeof actionsGetHostedRunnersPlatformsForOrgResponder & KoaRuntimeResponder - -const actionsGetHostedRunnersPlatformsForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - platforms: z.array(z.string()), - }), - ], - ], - undefined, - ) + (typeof actionsGetHostedRunnersPlatformsForOrg)["responder"] & + KoaRuntimeResponder export type ActionsGetHostedRunnersPlatformsForOrg = ( params: Params< @@ -5718,18 +4839,13 @@ export type ActionsGetHostedRunnersPlatformsForOrg = ( > > -const actionsGetHostedRunnerForOrgResponder = { - with200: r.with200, +const actionsGetHostedRunnerForOrg = b((r) => ({ + with200: r.with200(s_actions_hosted_runner), withStatus: r.withStatus, -} +})) type ActionsGetHostedRunnerForOrgResponder = - typeof actionsGetHostedRunnerForOrgResponder & KoaRuntimeResponder - -const actionsGetHostedRunnerForOrgResponseValidator = responseValidationFactory( - [["200", s_actions_hosted_runner]], - undefined, -) + (typeof actionsGetHostedRunnerForOrg)["responder"] & KoaRuntimeResponder export type ActionsGetHostedRunnerForOrg = ( params: Params, @@ -5739,16 +4855,13 @@ export type ActionsGetHostedRunnerForOrg = ( KoaRuntimeResponse | Response<200, t_actions_hosted_runner> > -const actionsUpdateHostedRunnerForOrgResponder = { - with200: r.with200, +const actionsUpdateHostedRunnerForOrg = b((r) => ({ + with200: r.with200(s_actions_hosted_runner), withStatus: r.withStatus, -} +})) type ActionsUpdateHostedRunnerForOrgResponder = - typeof actionsUpdateHostedRunnerForOrgResponder & KoaRuntimeResponder - -const actionsUpdateHostedRunnerForOrgResponseValidator = - responseValidationFactory([["200", s_actions_hosted_runner]], undefined) + (typeof actionsUpdateHostedRunnerForOrg)["responder"] & KoaRuntimeResponder export type ActionsUpdateHostedRunnerForOrg = ( params: Params< @@ -5763,16 +4876,13 @@ export type ActionsUpdateHostedRunnerForOrg = ( KoaRuntimeResponse | Response<200, t_actions_hosted_runner> > -const actionsDeleteHostedRunnerForOrgResponder = { - with202: r.with202, +const actionsDeleteHostedRunnerForOrg = b((r) => ({ + with202: r.with202(s_actions_hosted_runner), withStatus: r.withStatus, -} +})) type ActionsDeleteHostedRunnerForOrgResponder = - typeof actionsDeleteHostedRunnerForOrgResponder & KoaRuntimeResponder - -const actionsDeleteHostedRunnerForOrgResponseValidator = - responseValidationFactory([["202", s_actions_hosted_runner]], undefined) + (typeof actionsDeleteHostedRunnerForOrg)["responder"] & KoaRuntimeResponder export type ActionsDeleteHostedRunnerForOrg = ( params: Params< @@ -5787,16 +4897,13 @@ export type ActionsDeleteHostedRunnerForOrg = ( KoaRuntimeResponse | Response<202, t_actions_hosted_runner> > -const oidcGetOidcCustomSubTemplateForOrgResponder = { - with200: r.with200, +const oidcGetOidcCustomSubTemplateForOrg = b((r) => ({ + with200: r.with200(s_oidc_custom_sub), withStatus: r.withStatus, -} +})) type OidcGetOidcCustomSubTemplateForOrgResponder = - typeof oidcGetOidcCustomSubTemplateForOrgResponder & KoaRuntimeResponder - -const oidcGetOidcCustomSubTemplateForOrgResponseValidator = - responseValidationFactory([["200", s_oidc_custom_sub]], undefined) + (typeof oidcGetOidcCustomSubTemplateForOrg)["responder"] & KoaRuntimeResponder export type OidcGetOidcCustomSubTemplateForOrg = ( params: Params< @@ -5809,25 +4916,16 @@ export type OidcGetOidcCustomSubTemplateForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_oidc_custom_sub>> -const oidcUpdateOidcCustomSubTemplateForOrgResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, +const oidcUpdateOidcCustomSubTemplateForOrg = b((r) => ({ + with201: r.with201(s_empty_object), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OidcUpdateOidcCustomSubTemplateForOrgResponder = - typeof oidcUpdateOidcCustomSubTemplateForOrgResponder & KoaRuntimeResponder - -const oidcUpdateOidcCustomSubTemplateForOrgResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof oidcUpdateOidcCustomSubTemplateForOrg)["responder"] & + KoaRuntimeResponder export type OidcUpdateOidcCustomSubTemplateForOrg = ( params: Params< @@ -5845,21 +4943,17 @@ export type OidcUpdateOidcCustomSubTemplateForOrg = ( | Response<404, t_basic_error> > -const actionsGetGithubActionsPermissionsOrganizationResponder = { - with200: r.with200, +const actionsGetGithubActionsPermissionsOrganization = b((r) => ({ + with200: r.with200( + s_actions_organization_permissions, + ), withStatus: r.withStatus, -} +})) type ActionsGetGithubActionsPermissionsOrganizationResponder = - typeof actionsGetGithubActionsPermissionsOrganizationResponder & + (typeof actionsGetGithubActionsPermissionsOrganization)["responder"] & KoaRuntimeResponder -const actionsGetGithubActionsPermissionsOrganizationResponseValidator = - responseValidationFactory( - [["200", s_actions_organization_permissions]], - undefined, - ) - export type ActionsGetGithubActionsPermissionsOrganization = ( params: Params< t_ActionsGetGithubActionsPermissionsOrganizationParamSchema, @@ -5874,18 +4968,15 @@ export type ActionsGetGithubActionsPermissionsOrganization = ( | Response<200, t_actions_organization_permissions> > -const actionsSetGithubActionsPermissionsOrganizationResponder = { - with204: r.with204, +const actionsSetGithubActionsPermissionsOrganization = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetGithubActionsPermissionsOrganizationResponder = - typeof actionsSetGithubActionsPermissionsOrganizationResponder & + (typeof actionsSetGithubActionsPermissionsOrganization)["responder"] & KoaRuntimeResponder -const actionsSetGithubActionsPermissionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsSetGithubActionsPermissionsOrganization = ( params: Params< t_ActionsSetGithubActionsPermissionsOrganizationParamSchema, @@ -5897,33 +4988,25 @@ export type ActionsSetGithubActionsPermissionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder = - { +const actionsListSelectedRepositoriesEnabledGithubActionsOrganization = b( + (r) => ({ with200: r.with200<{ repositories: t_repository[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_repository), + }), + ), withStatus: r.withStatus, - } + }), +) type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder = - typeof actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder & + (typeof actionsListSelectedRepositoriesEnabledGithubActionsOrganization)["responder"] & KoaRuntimeResponder -const actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_repository), - }), - ], - ], - undefined, - ) - export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganization = ( params: Params< t_ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParamSchema, @@ -5944,19 +5027,17 @@ export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganization = ( > > -const actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder = - { - with204: r.with204, +const actionsSetSelectedRepositoriesEnabledGithubActionsOrganization = b( + (r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, - } + }), +) type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder = - typeof actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder & + (typeof actionsSetSelectedRepositoriesEnabledGithubActionsOrganization)["responder"] & KoaRuntimeResponder -const actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization = ( params: Params< t_ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParamSchema, @@ -5968,18 +5049,15 @@ export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsEnableSelectedRepositoryGithubActionsOrganizationResponder = { - with204: r.with204, +const actionsEnableSelectedRepositoryGithubActionsOrganization = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsEnableSelectedRepositoryGithubActionsOrganizationResponder = - typeof actionsEnableSelectedRepositoryGithubActionsOrganizationResponder & + (typeof actionsEnableSelectedRepositoryGithubActionsOrganization)["responder"] & KoaRuntimeResponder -const actionsEnableSelectedRepositoryGithubActionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsEnableSelectedRepositoryGithubActionsOrganization = ( params: Params< t_ActionsEnableSelectedRepositoryGithubActionsOrganizationParamSchema, @@ -5991,18 +5069,15 @@ export type ActionsEnableSelectedRepositoryGithubActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsDisableSelectedRepositoryGithubActionsOrganizationResponder = { - with204: r.with204, +const actionsDisableSelectedRepositoryGithubActionsOrganization = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDisableSelectedRepositoryGithubActionsOrganizationResponder = - typeof actionsDisableSelectedRepositoryGithubActionsOrganizationResponder & + (typeof actionsDisableSelectedRepositoryGithubActionsOrganization)["responder"] & KoaRuntimeResponder -const actionsDisableSelectedRepositoryGithubActionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsDisableSelectedRepositoryGithubActionsOrganization = ( params: Params< t_ActionsDisableSelectedRepositoryGithubActionsOrganizationParamSchema, @@ -6014,16 +5089,14 @@ export type ActionsDisableSelectedRepositoryGithubActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsGetAllowedActionsOrganizationResponder = { - with200: r.with200, +const actionsGetAllowedActionsOrganization = b((r) => ({ + with200: r.with200(s_selected_actions), withStatus: r.withStatus, -} +})) type ActionsGetAllowedActionsOrganizationResponder = - typeof actionsGetAllowedActionsOrganizationResponder & KoaRuntimeResponder - -const actionsGetAllowedActionsOrganizationResponseValidator = - responseValidationFactory([["200", s_selected_actions]], undefined) + (typeof actionsGetAllowedActionsOrganization)["responder"] & + KoaRuntimeResponder export type ActionsGetAllowedActionsOrganization = ( params: Params< @@ -6036,16 +5109,14 @@ export type ActionsGetAllowedActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<200, t_selected_actions>> -const actionsSetAllowedActionsOrganizationResponder = { - with204: r.with204, +const actionsSetAllowedActionsOrganization = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetAllowedActionsOrganizationResponder = - typeof actionsSetAllowedActionsOrganizationResponder & KoaRuntimeResponder - -const actionsSetAllowedActionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsSetAllowedActionsOrganization)["responder"] & + KoaRuntimeResponder export type ActionsSetAllowedActionsOrganization = ( params: Params< @@ -6058,21 +5129,19 @@ export type ActionsSetAllowedActionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = { - with200: r.with200, - withStatus: r.withStatus, -} +const actionsGetGithubActionsDefaultWorkflowPermissionsOrganization = b( + (r) => ({ + with200: r.with200( + s_actions_get_default_workflow_permissions, + ), + withStatus: r.withStatus, + }), +) type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = - typeof actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder & + (typeof actionsGetGithubActionsDefaultWorkflowPermissionsOrganization)["responder"] & KoaRuntimeResponder -const actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponseValidator = - responseValidationFactory( - [["200", s_actions_get_default_workflow_permissions]], - undefined, - ) - export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization = ( params: Params< t_ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParamSchema, @@ -6087,18 +5156,17 @@ export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization = ( | Response<200, t_actions_get_default_workflow_permissions> > -const actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = { - with204: r.with204, - withStatus: r.withStatus, -} +const actionsSetGithubActionsDefaultWorkflowPermissionsOrganization = b( + (r) => ({ + with204: r.with204(z.undefined()), + withStatus: r.withStatus, + }), +) type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = - typeof actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder & + (typeof actionsSetGithubActionsDefaultWorkflowPermissionsOrganization)["responder"] & KoaRuntimeResponder -const actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization = ( params: Params< t_ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationParamSchema, @@ -6111,30 +5179,22 @@ export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListSelfHostedRunnerGroupsForOrgResponder = { +const actionsListSelfHostedRunnerGroupsForOrg = b((r) => ({ with200: r.with200<{ runner_groups: t_runner_groups_org[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + runner_groups: z.array(s_runner_groups_org), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListSelfHostedRunnerGroupsForOrgResponder = - typeof actionsListSelfHostedRunnerGroupsForOrgResponder & KoaRuntimeResponder - -const actionsListSelfHostedRunnerGroupsForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runner_groups: z.array(s_runner_groups_org), - }), - ], - ], - undefined, - ) + (typeof actionsListSelfHostedRunnerGroupsForOrg)["responder"] & + KoaRuntimeResponder export type ActionsListSelfHostedRunnerGroupsForOrg = ( params: Params< @@ -6156,16 +5216,14 @@ export type ActionsListSelfHostedRunnerGroupsForOrg = ( > > -const actionsCreateSelfHostedRunnerGroupForOrgResponder = { - with201: r.with201, +const actionsCreateSelfHostedRunnerGroupForOrg = b((r) => ({ + with201: r.with201(s_runner_groups_org), withStatus: r.withStatus, -} +})) type ActionsCreateSelfHostedRunnerGroupForOrgResponder = - typeof actionsCreateSelfHostedRunnerGroupForOrgResponder & KoaRuntimeResponder - -const actionsCreateSelfHostedRunnerGroupForOrgResponseValidator = - responseValidationFactory([["201", s_runner_groups_org]], undefined) + (typeof actionsCreateSelfHostedRunnerGroupForOrg)["responder"] & + KoaRuntimeResponder export type ActionsCreateSelfHostedRunnerGroupForOrg = ( params: Params< @@ -6178,16 +5236,14 @@ export type ActionsCreateSelfHostedRunnerGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<201, t_runner_groups_org>> -const actionsGetSelfHostedRunnerGroupForOrgResponder = { - with200: r.with200, +const actionsGetSelfHostedRunnerGroupForOrg = b((r) => ({ + with200: r.with200(s_runner_groups_org), withStatus: r.withStatus, -} +})) type ActionsGetSelfHostedRunnerGroupForOrgResponder = - typeof actionsGetSelfHostedRunnerGroupForOrgResponder & KoaRuntimeResponder - -const actionsGetSelfHostedRunnerGroupForOrgResponseValidator = - responseValidationFactory([["200", s_runner_groups_org]], undefined) + (typeof actionsGetSelfHostedRunnerGroupForOrg)["responder"] & + KoaRuntimeResponder export type ActionsGetSelfHostedRunnerGroupForOrg = ( params: Params< @@ -6200,16 +5256,14 @@ export type ActionsGetSelfHostedRunnerGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_runner_groups_org>> -const actionsUpdateSelfHostedRunnerGroupForOrgResponder = { - with200: r.with200, +const actionsUpdateSelfHostedRunnerGroupForOrg = b((r) => ({ + with200: r.with200(s_runner_groups_org), withStatus: r.withStatus, -} +})) type ActionsUpdateSelfHostedRunnerGroupForOrgResponder = - typeof actionsUpdateSelfHostedRunnerGroupForOrgResponder & KoaRuntimeResponder - -const actionsUpdateSelfHostedRunnerGroupForOrgResponseValidator = - responseValidationFactory([["200", s_runner_groups_org]], undefined) + (typeof actionsUpdateSelfHostedRunnerGroupForOrg)["responder"] & + KoaRuntimeResponder export type ActionsUpdateSelfHostedRunnerGroupForOrg = ( params: Params< @@ -6222,18 +5276,15 @@ export type ActionsUpdateSelfHostedRunnerGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_runner_groups_org>> -const actionsDeleteSelfHostedRunnerGroupFromOrgResponder = { - with204: r.with204, +const actionsDeleteSelfHostedRunnerGroupFromOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteSelfHostedRunnerGroupFromOrgResponder = - typeof actionsDeleteSelfHostedRunnerGroupFromOrgResponder & + (typeof actionsDeleteSelfHostedRunnerGroupFromOrg)["responder"] & KoaRuntimeResponder -const actionsDeleteSelfHostedRunnerGroupFromOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsDeleteSelfHostedRunnerGroupFromOrg = ( params: Params< t_ActionsDeleteSelfHostedRunnerGroupFromOrgParamSchema, @@ -6245,32 +5296,23 @@ export type ActionsDeleteSelfHostedRunnerGroupFromOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListGithubHostedRunnersInGroupForOrgResponder = { +const actionsListGithubHostedRunnersInGroupForOrg = b((r) => ({ with200: r.with200<{ runners: t_actions_hosted_runner[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + runners: z.array(s_actions_hosted_runner), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListGithubHostedRunnersInGroupForOrgResponder = - typeof actionsListGithubHostedRunnersInGroupForOrgResponder & + (typeof actionsListGithubHostedRunnersInGroupForOrg)["responder"] & KoaRuntimeResponder -const actionsListGithubHostedRunnersInGroupForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_actions_hosted_runner), - }), - ], - ], - undefined, - ) - export type ActionsListGithubHostedRunnersInGroupForOrg = ( params: Params< t_ActionsListGithubHostedRunnersInGroupForOrgParamSchema, @@ -6291,32 +5333,23 @@ export type ActionsListGithubHostedRunnersInGroupForOrg = ( > > -const actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder = { +const actionsListRepoAccessToSelfHostedRunnerGroupInOrg = b((r) => ({ with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder = - typeof actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder & + (typeof actionsListRepoAccessToSelfHostedRunnerGroupInOrg)["responder"] & KoaRuntimeResponder -const actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ], - undefined, - ) - export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< t_ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParamSchema, @@ -6337,18 +5370,15 @@ export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrg = ( > > -const actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder = { - with204: r.with204, +const actionsSetRepoAccessToSelfHostedRunnerGroupInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder = - typeof actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder & + (typeof actionsSetRepoAccessToSelfHostedRunnerGroupInOrg)["responder"] & KoaRuntimeResponder -const actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< t_ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParamSchema, @@ -6360,18 +5390,15 @@ export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder = { - with204: r.with204, +const actionsAddRepoAccessToSelfHostedRunnerGroupInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder = - typeof actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder & + (typeof actionsAddRepoAccessToSelfHostedRunnerGroupInOrg)["responder"] & KoaRuntimeResponder -const actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< t_ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParamSchema, @@ -6383,18 +5410,15 @@ export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder = { - with204: r.with204, +const actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder = - typeof actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder & + (typeof actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg)["responder"] & KoaRuntimeResponder -const actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< t_ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParamSchema, @@ -6406,32 +5430,18 @@ export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListSelfHostedRunnersInGroupForOrgResponder = { +const actionsListSelfHostedRunnersInGroupForOrg = b((r) => ({ with200: r.with200<{ runners: t_runner[] total_count: number - }>, + }>(z.object({ total_count: z.coerce.number(), runners: z.array(s_runner) })), withStatus: r.withStatus, -} +})) type ActionsListSelfHostedRunnersInGroupForOrgResponder = - typeof actionsListSelfHostedRunnersInGroupForOrgResponder & + (typeof actionsListSelfHostedRunnersInGroupForOrg)["responder"] & KoaRuntimeResponder -const actionsListSelfHostedRunnersInGroupForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_runner), - }), - ], - ], - undefined, - ) - export type ActionsListSelfHostedRunnersInGroupForOrg = ( params: Params< t_ActionsListSelfHostedRunnersInGroupForOrgParamSchema, @@ -6452,16 +5462,14 @@ export type ActionsListSelfHostedRunnersInGroupForOrg = ( > > -const actionsSetSelfHostedRunnersInGroupForOrgResponder = { - with204: r.with204, +const actionsSetSelfHostedRunnersInGroupForOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetSelfHostedRunnersInGroupForOrgResponder = - typeof actionsSetSelfHostedRunnersInGroupForOrgResponder & KoaRuntimeResponder - -const actionsSetSelfHostedRunnersInGroupForOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsSetSelfHostedRunnersInGroupForOrg)["responder"] & + KoaRuntimeResponder export type ActionsSetSelfHostedRunnersInGroupForOrg = ( params: Params< @@ -6474,16 +5482,14 @@ export type ActionsSetSelfHostedRunnersInGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsAddSelfHostedRunnerToGroupForOrgResponder = { - with204: r.with204, +const actionsAddSelfHostedRunnerToGroupForOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsAddSelfHostedRunnerToGroupForOrgResponder = - typeof actionsAddSelfHostedRunnerToGroupForOrgResponder & KoaRuntimeResponder - -const actionsAddSelfHostedRunnerToGroupForOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsAddSelfHostedRunnerToGroupForOrg)["responder"] & + KoaRuntimeResponder export type ActionsAddSelfHostedRunnerToGroupForOrg = ( params: Params< @@ -6496,18 +5502,15 @@ export type ActionsAddSelfHostedRunnerToGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsRemoveSelfHostedRunnerFromGroupForOrgResponder = { - with204: r.with204, +const actionsRemoveSelfHostedRunnerFromGroupForOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsRemoveSelfHostedRunnerFromGroupForOrgResponder = - typeof actionsRemoveSelfHostedRunnerFromGroupForOrgResponder & + (typeof actionsRemoveSelfHostedRunnerFromGroupForOrg)["responder"] & KoaRuntimeResponder -const actionsRemoveSelfHostedRunnerFromGroupForOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsRemoveSelfHostedRunnerFromGroupForOrg = ( params: Params< t_ActionsRemoveSelfHostedRunnerFromGroupForOrgParamSchema, @@ -6519,30 +5522,16 @@ export type ActionsRemoveSelfHostedRunnerFromGroupForOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListSelfHostedRunnersForOrgResponder = { +const actionsListSelfHostedRunnersForOrg = b((r) => ({ with200: r.with200<{ runners: t_runner[] total_count: number - }>, + }>(z.object({ total_count: z.coerce.number(), runners: z.array(s_runner) })), withStatus: r.withStatus, -} +})) type ActionsListSelfHostedRunnersForOrgResponder = - typeof actionsListSelfHostedRunnersForOrgResponder & KoaRuntimeResponder - -const actionsListSelfHostedRunnersForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_runner), - }), - ], - ], - undefined, - ) + (typeof actionsListSelfHostedRunnersForOrg)["responder"] & KoaRuntimeResponder export type ActionsListSelfHostedRunnersForOrg = ( params: Params< @@ -6564,16 +5553,14 @@ export type ActionsListSelfHostedRunnersForOrg = ( > > -const actionsListRunnerApplicationsForOrgResponder = { - with200: r.with200, +const actionsListRunnerApplicationsForOrg = b((r) => ({ + with200: r.with200(z.array(s_runner_application)), withStatus: r.withStatus, -} +})) type ActionsListRunnerApplicationsForOrgResponder = - typeof actionsListRunnerApplicationsForOrgResponder & KoaRuntimeResponder - -const actionsListRunnerApplicationsForOrgResponseValidator = - responseValidationFactory([["200", z.array(s_runner_application)]], undefined) + (typeof actionsListRunnerApplicationsForOrg)["responder"] & + KoaRuntimeResponder export type ActionsListRunnerApplicationsForOrg = ( params: Params< @@ -6588,30 +5575,20 @@ export type ActionsListRunnerApplicationsForOrg = ( KoaRuntimeResponse | Response<200, t_runner_application[]> > -const actionsGenerateRunnerJitconfigForOrgResponder = { +const actionsGenerateRunnerJitconfigForOrg = b((r) => ({ with201: r.with201<{ encoded_jit_config: string runner: t_runner - }>, - with404: r.with404, - with409: r.with409, - with422: r.with422, + }>(z.object({ runner: s_runner, encoded_jit_config: z.string() })), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsGenerateRunnerJitconfigForOrgResponder = - typeof actionsGenerateRunnerJitconfigForOrgResponder & KoaRuntimeResponder - -const actionsGenerateRunnerJitconfigForOrgResponseValidator = - responseValidationFactory( - [ - ["201", z.object({ runner: s_runner, encoded_jit_config: z.string() })], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) + (typeof actionsGenerateRunnerJitconfigForOrg)["responder"] & + KoaRuntimeResponder export type ActionsGenerateRunnerJitconfigForOrg = ( params: Params< @@ -6636,16 +5613,14 @@ export type ActionsGenerateRunnerJitconfigForOrg = ( | Response<422, t_validation_error_simple> > -const actionsCreateRegistrationTokenForOrgResponder = { - with201: r.with201, +const actionsCreateRegistrationTokenForOrg = b((r) => ({ + with201: r.with201(s_authentication_token), withStatus: r.withStatus, -} +})) type ActionsCreateRegistrationTokenForOrgResponder = - typeof actionsCreateRegistrationTokenForOrgResponder & KoaRuntimeResponder - -const actionsCreateRegistrationTokenForOrgResponseValidator = - responseValidationFactory([["201", s_authentication_token]], undefined) + (typeof actionsCreateRegistrationTokenForOrg)["responder"] & + KoaRuntimeResponder export type ActionsCreateRegistrationTokenForOrg = ( params: Params< @@ -6660,16 +5635,13 @@ export type ActionsCreateRegistrationTokenForOrg = ( KoaRuntimeResponse | Response<201, t_authentication_token> > -const actionsCreateRemoveTokenForOrgResponder = { - with201: r.with201, +const actionsCreateRemoveTokenForOrg = b((r) => ({ + with201: r.with201(s_authentication_token), withStatus: r.withStatus, -} +})) type ActionsCreateRemoveTokenForOrgResponder = - typeof actionsCreateRemoveTokenForOrgResponder & KoaRuntimeResponder - -const actionsCreateRemoveTokenForOrgResponseValidator = - responseValidationFactory([["201", s_authentication_token]], undefined) + (typeof actionsCreateRemoveTokenForOrg)["responder"] & KoaRuntimeResponder export type ActionsCreateRemoveTokenForOrg = ( params: Params, @@ -6679,16 +5651,13 @@ export type ActionsCreateRemoveTokenForOrg = ( KoaRuntimeResponse | Response<201, t_authentication_token> > -const actionsGetSelfHostedRunnerForOrgResponder = { - with200: r.with200, +const actionsGetSelfHostedRunnerForOrg = b((r) => ({ + with200: r.with200(s_runner), withStatus: r.withStatus, -} +})) type ActionsGetSelfHostedRunnerForOrgResponder = - typeof actionsGetSelfHostedRunnerForOrgResponder & KoaRuntimeResponder - -const actionsGetSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory([["200", s_runner]], undefined) + (typeof actionsGetSelfHostedRunnerForOrg)["responder"] & KoaRuntimeResponder export type ActionsGetSelfHostedRunnerForOrg = ( params: Params< @@ -6701,16 +5670,14 @@ export type ActionsGetSelfHostedRunnerForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_runner>> -const actionsDeleteSelfHostedRunnerFromOrgResponder = { - with204: r.with204, +const actionsDeleteSelfHostedRunnerFromOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteSelfHostedRunnerFromOrgResponder = - typeof actionsDeleteSelfHostedRunnerFromOrgResponder & KoaRuntimeResponder - -const actionsDeleteSelfHostedRunnerFromOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsDeleteSelfHostedRunnerFromOrg)["responder"] & + KoaRuntimeResponder export type ActionsDeleteSelfHostedRunnerFromOrg = ( params: Params< @@ -6723,34 +5690,24 @@ export type ActionsDeleteSelfHostedRunnerFromOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListLabelsForSelfHostedRunnerForOrgResponder = { +const actionsListLabelsForSelfHostedRunnerForOrg = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsListLabelsForSelfHostedRunnerForOrgResponder = - typeof actionsListLabelsForSelfHostedRunnerForOrgResponder & + (typeof actionsListLabelsForSelfHostedRunnerForOrg)["responder"] & KoaRuntimeResponder -const actionsListLabelsForSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - export type ActionsListLabelsForSelfHostedRunnerForOrg = ( params: Params< t_ActionsListLabelsForSelfHostedRunnerForOrgParamSchema, @@ -6772,36 +5729,25 @@ export type ActionsListLabelsForSelfHostedRunnerForOrg = ( | Response<404, t_basic_error> > -const actionsAddCustomLabelsToSelfHostedRunnerForOrgResponder = { +const actionsAddCustomLabelsToSelfHostedRunnerForOrg = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsAddCustomLabelsToSelfHostedRunnerForOrgResponder = - typeof actionsAddCustomLabelsToSelfHostedRunnerForOrgResponder & + (typeof actionsAddCustomLabelsToSelfHostedRunnerForOrg)["responder"] & KoaRuntimeResponder -const actionsAddCustomLabelsToSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg = ( params: Params< t_ActionsAddCustomLabelsToSelfHostedRunnerForOrgParamSchema, @@ -6824,36 +5770,25 @@ export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg = ( | Response<422, t_validation_error_simple> > -const actionsSetCustomLabelsForSelfHostedRunnerForOrgResponder = { +const actionsSetCustomLabelsForSelfHostedRunnerForOrg = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsSetCustomLabelsForSelfHostedRunnerForOrgResponder = - typeof actionsSetCustomLabelsForSelfHostedRunnerForOrgResponder & + (typeof actionsSetCustomLabelsForSelfHostedRunnerForOrg)["responder"] & KoaRuntimeResponder -const actionsSetCustomLabelsForSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg = ( params: Params< t_ActionsSetCustomLabelsForSelfHostedRunnerForOrgParamSchema, @@ -6876,34 +5811,24 @@ export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg = ( | Response<422, t_validation_error_simple> > -const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder = { +const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder = - typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder & + (typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg)["responder"] & KoaRuntimeResponder -const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg = ( params: Params< t_ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParamSchema, @@ -6925,36 +5850,25 @@ export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg = ( | Response<404, t_basic_error> > -const actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder = { +const actionsRemoveCustomLabelFromSelfHostedRunnerForOrg = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder = - typeof actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder & + (typeof actionsRemoveCustomLabelFromSelfHostedRunnerForOrg)["responder"] & KoaRuntimeResponder -const actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg = ( params: Params< t_ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgParamSchema, @@ -6977,29 +5891,21 @@ export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg = ( | Response<422, t_validation_error_simple> > -const actionsListOrgSecretsResponder = { +const actionsListOrgSecrets = b((r) => ({ with200: r.with200<{ secrets: t_organization_actions_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_organization_actions_secret), + }), + ), withStatus: r.withStatus, -} - -type ActionsListOrgSecretsResponder = typeof actionsListOrgSecretsResponder & - KoaRuntimeResponder +})) -const actionsListOrgSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_organization_actions_secret), - }), - ], - ], - undefined, -) +type ActionsListOrgSecretsResponder = + (typeof actionsListOrgSecrets)["responder"] & KoaRuntimeResponder export type ActionsListOrgSecrets = ( params: Params< @@ -7021,18 +5927,13 @@ export type ActionsListOrgSecrets = ( > > -const actionsGetOrgPublicKeyResponder = { - with200: r.with200, +const actionsGetOrgPublicKey = b((r) => ({ + with200: r.with200(s_actions_public_key), withStatus: r.withStatus, -} - -type ActionsGetOrgPublicKeyResponder = typeof actionsGetOrgPublicKeyResponder & - KoaRuntimeResponder +})) -const actionsGetOrgPublicKeyResponseValidator = responseValidationFactory( - [["200", s_actions_public_key]], - undefined, -) +type ActionsGetOrgPublicKeyResponder = + (typeof actionsGetOrgPublicKey)["responder"] & KoaRuntimeResponder export type ActionsGetOrgPublicKey = ( params: Params, @@ -7040,19 +5941,16 @@ export type ActionsGetOrgPublicKey = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> -const actionsGetOrgSecretResponder = { - with200: r.with200, +const actionsGetOrgSecret = b((r) => ({ + with200: r.with200( + s_organization_actions_secret, + ), withStatus: r.withStatus, -} +})) -type ActionsGetOrgSecretResponder = typeof actionsGetOrgSecretResponder & +type ActionsGetOrgSecretResponder = (typeof actionsGetOrgSecret)["responder"] & KoaRuntimeResponder -const actionsGetOrgSecretResponseValidator = responseValidationFactory( - [["200", s_organization_actions_secret]], - undefined, -) - export type ActionsGetOrgSecret = ( params: Params, respond: ActionsGetOrgSecretResponder, @@ -7061,23 +5959,14 @@ export type ActionsGetOrgSecret = ( KoaRuntimeResponse | Response<200, t_organization_actions_secret> > -const actionsCreateOrUpdateOrgSecretResponder = { - with201: r.with201, - with204: r.with204, +const actionsCreateOrUpdateOrgSecret = b((r) => ({ + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsCreateOrUpdateOrgSecretResponder = - typeof actionsCreateOrUpdateOrgSecretResponder & KoaRuntimeResponder - -const actionsCreateOrUpdateOrgSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) + (typeof actionsCreateOrUpdateOrgSecret)["responder"] & KoaRuntimeResponder export type ActionsCreateOrUpdateOrgSecret = ( params: Params< @@ -7094,18 +5983,13 @@ export type ActionsCreateOrUpdateOrgSecret = ( | Response<204, void> > -const actionsDeleteOrgSecretResponder = { - with204: r.with204, +const actionsDeleteOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} - -type ActionsDeleteOrgSecretResponder = typeof actionsDeleteOrgSecretResponder & - KoaRuntimeResponder +})) -const actionsDeleteOrgSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type ActionsDeleteOrgSecretResponder = + (typeof actionsDeleteOrgSecret)["responder"] & KoaRuntimeResponder export type ActionsDeleteOrgSecret = ( params: Params, @@ -7113,30 +5997,22 @@ export type ActionsDeleteOrgSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListSelectedReposForOrgSecretResponder = { +const actionsListSelectedReposForOrgSecret = b((r) => ({ with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListSelectedReposForOrgSecretResponder = - typeof actionsListSelectedReposForOrgSecretResponder & KoaRuntimeResponder - -const actionsListSelectedReposForOrgSecretResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ], - undefined, - ) + (typeof actionsListSelectedReposForOrgSecret)["responder"] & + KoaRuntimeResponder export type ActionsListSelectedReposForOrgSecret = ( params: Params< @@ -7158,16 +6034,14 @@ export type ActionsListSelectedReposForOrgSecret = ( > > -const actionsSetSelectedReposForOrgSecretResponder = { - with204: r.with204, +const actionsSetSelectedReposForOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetSelectedReposForOrgSecretResponder = - typeof actionsSetSelectedReposForOrgSecretResponder & KoaRuntimeResponder - -const actionsSetSelectedReposForOrgSecretResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsSetSelectedReposForOrgSecret)["responder"] & + KoaRuntimeResponder export type ActionsSetSelectedReposForOrgSecret = ( params: Params< @@ -7180,23 +6054,14 @@ export type ActionsSetSelectedReposForOrgSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsAddSelectedRepoToOrgSecretResponder = { - with204: r.with204, - with409: r.with409, +const actionsAddSelectedRepoToOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsAddSelectedRepoToOrgSecretResponder = - typeof actionsAddSelectedRepoToOrgSecretResponder & KoaRuntimeResponder - -const actionsAddSelectedRepoToOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) + (typeof actionsAddSelectedRepoToOrgSecret)["responder"] & KoaRuntimeResponder export type ActionsAddSelectedRepoToOrgSecret = ( params: Params< @@ -7211,23 +6076,15 @@ export type ActionsAddSelectedRepoToOrgSecret = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const actionsRemoveSelectedRepoFromOrgSecretResponder = { - with204: r.with204, - with409: r.with409, +const actionsRemoveSelectedRepoFromOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsRemoveSelectedRepoFromOrgSecretResponder = - typeof actionsRemoveSelectedRepoFromOrgSecretResponder & KoaRuntimeResponder - -const actionsRemoveSelectedRepoFromOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) + (typeof actionsRemoveSelectedRepoFromOrgSecret)["responder"] & + KoaRuntimeResponder export type ActionsRemoveSelectedRepoFromOrgSecret = ( params: Params< @@ -7242,29 +6099,21 @@ export type ActionsRemoveSelectedRepoFromOrgSecret = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const actionsListOrgVariablesResponder = { +const actionsListOrgVariables = b((r) => ({ with200: r.with200<{ total_count: number variables: t_organization_actions_variable[] - }>, + }>( + z.object({ + total_count: z.coerce.number(), + variables: z.array(s_organization_actions_variable), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListOrgVariablesResponder = - typeof actionsListOrgVariablesResponder & KoaRuntimeResponder - -const actionsListOrgVariablesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - variables: z.array(s_organization_actions_variable), - }), - ], - ], - undefined, -) + (typeof actionsListOrgVariables)["responder"] & KoaRuntimeResponder export type ActionsListOrgVariables = ( params: Params< @@ -7286,18 +6135,13 @@ export type ActionsListOrgVariables = ( > > -const actionsCreateOrgVariableResponder = { - with201: r.with201, +const actionsCreateOrgVariable = b((r) => ({ + with201: r.with201(s_empty_object), withStatus: r.withStatus, -} +})) type ActionsCreateOrgVariableResponder = - typeof actionsCreateOrgVariableResponder & KoaRuntimeResponder - -const actionsCreateOrgVariableResponseValidator = responseValidationFactory( - [["201", s_empty_object]], - undefined, -) + (typeof actionsCreateOrgVariable)["responder"] & KoaRuntimeResponder export type ActionsCreateOrgVariable = ( params: Params< @@ -7310,18 +6154,15 @@ export type ActionsCreateOrgVariable = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -const actionsGetOrgVariableResponder = { - with200: r.with200, +const actionsGetOrgVariable = b((r) => ({ + with200: r.with200( + s_organization_actions_variable, + ), withStatus: r.withStatus, -} +})) -type ActionsGetOrgVariableResponder = typeof actionsGetOrgVariableResponder & - KoaRuntimeResponder - -const actionsGetOrgVariableResponseValidator = responseValidationFactory( - [["200", s_organization_actions_variable]], - undefined, -) +type ActionsGetOrgVariableResponder = + (typeof actionsGetOrgVariable)["responder"] & KoaRuntimeResponder export type ActionsGetOrgVariable = ( params: Params, @@ -7331,18 +6172,13 @@ export type ActionsGetOrgVariable = ( KoaRuntimeResponse | Response<200, t_organization_actions_variable> > -const actionsUpdateOrgVariableResponder = { - with204: r.with204, +const actionsUpdateOrgVariable = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsUpdateOrgVariableResponder = - typeof actionsUpdateOrgVariableResponder & KoaRuntimeResponder - -const actionsUpdateOrgVariableResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof actionsUpdateOrgVariable)["responder"] & KoaRuntimeResponder export type ActionsUpdateOrgVariable = ( params: Params< @@ -7355,18 +6191,13 @@ export type ActionsUpdateOrgVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsDeleteOrgVariableResponder = { - with204: r.with204, +const actionsDeleteOrgVariable = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteOrgVariableResponder = - typeof actionsDeleteOrgVariableResponder & KoaRuntimeResponder - -const actionsDeleteOrgVariableResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof actionsDeleteOrgVariable)["responder"] & KoaRuntimeResponder export type ActionsDeleteOrgVariable = ( params: Params, @@ -7374,32 +6205,23 @@ export type ActionsDeleteOrgVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListSelectedReposForOrgVariableResponder = { +const actionsListSelectedReposForOrgVariable = b((r) => ({ with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }>, - with409: r.with409, + }>( + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsListSelectedReposForOrgVariableResponder = - typeof actionsListSelectedReposForOrgVariableResponder & KoaRuntimeResponder - -const actionsListSelectedReposForOrgVariableResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ["409", z.undefined()], - ], - undefined, - ) + (typeof actionsListSelectedReposForOrgVariable)["responder"] & + KoaRuntimeResponder export type ActionsListSelectedReposForOrgVariable = ( params: Params< @@ -7422,23 +6244,15 @@ export type ActionsListSelectedReposForOrgVariable = ( | Response<409, void> > -const actionsSetSelectedReposForOrgVariableResponder = { - with204: r.with204, - with409: r.with409, +const actionsSetSelectedReposForOrgVariable = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetSelectedReposForOrgVariableResponder = - typeof actionsSetSelectedReposForOrgVariableResponder & KoaRuntimeResponder - -const actionsSetSelectedReposForOrgVariableResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) + (typeof actionsSetSelectedReposForOrgVariable)["responder"] & + KoaRuntimeResponder export type ActionsSetSelectedReposForOrgVariable = ( params: Params< @@ -7453,23 +6267,15 @@ export type ActionsSetSelectedReposForOrgVariable = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const actionsAddSelectedRepoToOrgVariableResponder = { - with204: r.with204, - with409: r.with409, +const actionsAddSelectedRepoToOrgVariable = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsAddSelectedRepoToOrgVariableResponder = - typeof actionsAddSelectedRepoToOrgVariableResponder & KoaRuntimeResponder - -const actionsAddSelectedRepoToOrgVariableResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) + (typeof actionsAddSelectedRepoToOrgVariable)["responder"] & + KoaRuntimeResponder export type ActionsAddSelectedRepoToOrgVariable = ( params: Params< @@ -7484,23 +6290,15 @@ export type ActionsAddSelectedRepoToOrgVariable = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const actionsRemoveSelectedRepoFromOrgVariableResponder = { - with204: r.with204, - with409: r.with409, +const actionsRemoveSelectedRepoFromOrgVariable = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsRemoveSelectedRepoFromOrgVariableResponder = - typeof actionsRemoveSelectedRepoFromOrgVariableResponder & KoaRuntimeResponder - -const actionsRemoveSelectedRepoFromOrgVariableResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) + (typeof actionsRemoveSelectedRepoFromOrgVariable)["responder"] & + KoaRuntimeResponder export type ActionsRemoveSelectedRepoFromOrgVariable = ( params: Params< @@ -7515,7 +6313,7 @@ export type ActionsRemoveSelectedRepoFromOrgVariable = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const orgsListAttestationsResponder = { +const orgsListAttestations = b((r) => ({ with200: r.with200<{ attestations?: { bundle?: { @@ -7530,38 +6328,30 @@ const orgsListAttestationsResponder = { bundle_url?: string repository_id?: number }[] - }>, + }>( + z.object({ + attestations: z + .array( + z.object({ + bundle: z + .object({ + mediaType: z.string().optional(), + verificationMaterial: z.record(z.unknown()).optional(), + dsseEnvelope: z.record(z.unknown()).optional(), + }) + .optional(), + repository_id: z.coerce.number().optional(), + bundle_url: z.string().optional(), + }), + ) + .optional(), + }), + ), withStatus: r.withStatus, -} +})) -type OrgsListAttestationsResponder = typeof orgsListAttestationsResponder & - KoaRuntimeResponder - -const orgsListAttestationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - attestations: z - .array( - z.object({ - bundle: z - .object({ - mediaType: z.string().optional(), - verificationMaterial: z.record(z.unknown()).optional(), - dsseEnvelope: z.record(z.unknown()).optional(), - }) - .optional(), - repository_id: z.coerce.number().optional(), - bundle_url: z.string().optional(), - }), - ) - .optional(), - }), - ], - ], - undefined, -) +type OrgsListAttestationsResponder = + (typeof orgsListAttestations)["responder"] & KoaRuntimeResponder export type OrgsListAttestations = ( params: Params< @@ -7594,18 +6384,13 @@ export type OrgsListAttestations = ( > > -const orgsListBlockedUsersResponder = { - with200: r.with200, +const orgsListBlockedUsers = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), withStatus: r.withStatus, -} - -type OrgsListBlockedUsersResponder = typeof orgsListBlockedUsersResponder & - KoaRuntimeResponder +})) -const orgsListBlockedUsersResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, -) +type OrgsListBlockedUsersResponder = + (typeof orgsListBlockedUsers)["responder"] & KoaRuntimeResponder export type OrgsListBlockedUsers = ( params: Params< @@ -7618,22 +6403,14 @@ export type OrgsListBlockedUsers = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -const orgsCheckBlockedUserResponder = { - with204: r.with204, - with404: r.with404, +const orgsCheckBlockedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type OrgsCheckBlockedUserResponder = typeof orgsCheckBlockedUserResponder & - KoaRuntimeResponder +})) -const orgsCheckBlockedUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) +type OrgsCheckBlockedUserResponder = + (typeof orgsCheckBlockedUser)["responder"] & KoaRuntimeResponder export type OrgsCheckBlockedUser = ( params: Params, @@ -7645,23 +6422,15 @@ export type OrgsCheckBlockedUser = ( | Response<404, t_basic_error> > -const orgsBlockUserResponder = { - with204: r.with204, - with422: r.with422, +const orgsBlockUser = b((r) => ({ + with204: r.with204(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsBlockUserResponder = typeof orgsBlockUserResponder & +type OrgsBlockUserResponder = (typeof orgsBlockUser)["responder"] & KoaRuntimeResponder -const orgsBlockUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_validation_error], - ], - undefined, -) - export type OrgsBlockUser = ( params: Params, respond: OrgsBlockUserResponder, @@ -7672,54 +6441,39 @@ export type OrgsBlockUser = ( | Response<422, t_validation_error> > -const orgsUnblockUserResponder = { - with204: r.with204, +const orgsUnblockUser = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type OrgsUnblockUserResponder = typeof orgsUnblockUserResponder & +type OrgsUnblockUserResponder = (typeof orgsUnblockUser)["responder"] & KoaRuntimeResponder -const orgsUnblockUserResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) - export type OrgsUnblockUser = ( params: Params, respond: OrgsUnblockUserResponder, ctx: RouterContext, ) => Promise | Response<204, void>> -const campaignsListOrgCampaignsResponder = { - with200: r.with200, - with404: r.with404, +const campaignsListOrgCampaigns = b((r) => ({ + with200: r.with200(z.array(s_campaign_summary)), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CampaignsListOrgCampaignsResponder = - typeof campaignsListOrgCampaignsResponder & KoaRuntimeResponder - -const campaignsListOrgCampaignsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_campaign_summary)], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof campaignsListOrgCampaigns)["responder"] & KoaRuntimeResponder export type CampaignsListOrgCampaigns = ( params: Params< @@ -7744,41 +6498,28 @@ export type CampaignsListOrgCampaigns = ( > > -const campaignsCreateCampaignResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, - with422: r.with422, - with429: r.with429, +const campaignsCreateCampaign = b((r) => ({ + with200: r.with200(s_campaign_summary), + with400: r.with400(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_basic_error), + with429: r.with429(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CampaignsCreateCampaignResponder = - typeof campaignsCreateCampaignResponder & KoaRuntimeResponder - -const campaignsCreateCampaignResponseValidator = responseValidationFactory( - [ - ["200", s_campaign_summary], - ["400", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - ["429", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof campaignsCreateCampaign)["responder"] & KoaRuntimeResponder export type CampaignsCreateCampaign = ( params: Params< @@ -7806,37 +6547,26 @@ export type CampaignsCreateCampaign = ( > > -const campaignsGetCampaignSummaryResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const campaignsGetCampaignSummary = b((r) => ({ + with200: r.with200(s_campaign_summary), + with404: r.with404(s_basic_error), + with422: r.with422(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CampaignsGetCampaignSummaryResponder = - typeof campaignsGetCampaignSummaryResponder & KoaRuntimeResponder - -const campaignsGetCampaignSummaryResponseValidator = responseValidationFactory( - [ - ["200", s_campaign_summary], - ["404", s_basic_error], - ["422", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof campaignsGetCampaignSummary)["responder"] & KoaRuntimeResponder export type CampaignsGetCampaignSummary = ( params: Params, @@ -7857,39 +6587,27 @@ export type CampaignsGetCampaignSummary = ( > > -const campaignsUpdateCampaignResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, - with422: r.with422, +const campaignsUpdateCampaign = b((r) => ({ + with200: r.with200(s_campaign_summary), + with400: r.with400(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CampaignsUpdateCampaignResponder = - typeof campaignsUpdateCampaignResponder & KoaRuntimeResponder - -const campaignsUpdateCampaignResponseValidator = responseValidationFactory( - [ - ["200", s_campaign_summary], - ["400", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof campaignsUpdateCampaign)["responder"] & KoaRuntimeResponder export type CampaignsUpdateCampaign = ( params: Params< @@ -7916,35 +6634,25 @@ export type CampaignsUpdateCampaign = ( > > -const campaignsDeleteCampaignResponder = { - with204: r.with204, - with404: r.with404, +const campaignsDeleteCampaign = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CampaignsDeleteCampaignResponder = - typeof campaignsDeleteCampaignResponder & KoaRuntimeResponder - -const campaignsDeleteCampaignResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof campaignsDeleteCampaign)["responder"] & KoaRuntimeResponder export type CampaignsDeleteCampaign = ( params: Params, @@ -7964,35 +6672,27 @@ export type CampaignsDeleteCampaign = ( > > -const codeScanningListAlertsForOrgResponder = { - with200: r.with200, - with404: r.with404, +const codeScanningListAlertsForOrg = b((r) => ({ + with200: r.with200( + z.array(s_code_scanning_organization_alert_items), + ), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningListAlertsForOrgResponder = - typeof codeScanningListAlertsForOrgResponder & KoaRuntimeResponder - -const codeScanningListAlertsForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_code_scanning_organization_alert_items)], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof codeScanningListAlertsForOrg)["responder"] & KoaRuntimeResponder export type CodeScanningListAlertsForOrg = ( params: Params< @@ -8017,25 +6717,18 @@ export type CodeScanningListAlertsForOrg = ( > > -const codeSecurityGetConfigurationsForOrgResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeSecurityGetConfigurationsForOrg = b((r) => ({ + with200: r.with200( + z.array(s_code_security_configuration), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityGetConfigurationsForOrgResponder = - typeof codeSecurityGetConfigurationsForOrgResponder & KoaRuntimeResponder - -const codeSecurityGetConfigurationsForOrgResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_security_configuration)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof codeSecurityGetConfigurationsForOrg)["responder"] & + KoaRuntimeResponder export type CodeSecurityGetConfigurationsForOrg = ( params: Params< @@ -8053,16 +6746,15 @@ export type CodeSecurityGetConfigurationsForOrg = ( | Response<404, t_basic_error> > -const codeSecurityCreateConfigurationResponder = { - with201: r.with201, +const codeSecurityCreateConfiguration = b((r) => ({ + with201: r.with201( + s_code_security_configuration, + ), withStatus: r.withStatus, -} +})) type CodeSecurityCreateConfigurationResponder = - typeof codeSecurityCreateConfigurationResponder & KoaRuntimeResponder - -const codeSecurityCreateConfigurationResponseValidator = - responseValidationFactory([["201", s_code_security_configuration]], undefined) + (typeof codeSecurityCreateConfiguration)["responder"] & KoaRuntimeResponder export type CodeSecurityCreateConfiguration = ( params: Params< @@ -8077,27 +6769,19 @@ export type CodeSecurityCreateConfiguration = ( KoaRuntimeResponse | Response<201, t_code_security_configuration> > -const codeSecurityGetDefaultConfigurationsResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const codeSecurityGetDefaultConfigurations = b((r) => ({ + with200: r.with200( + s_code_security_default_configurations, + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityGetDefaultConfigurationsResponder = - typeof codeSecurityGetDefaultConfigurationsResponder & KoaRuntimeResponder - -const codeSecurityGetDefaultConfigurationsResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_default_configurations], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof codeSecurityGetDefaultConfigurations)["responder"] & + KoaRuntimeResponder export type CodeSecurityGetDefaultConfigurations = ( params: Params< @@ -8116,29 +6800,17 @@ export type CodeSecurityGetDefaultConfigurations = ( | Response<404, t_basic_error> > -const codeSecurityDetachConfigurationResponder = { - with204: r.with204, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with409: r.with409, +const codeSecurityDetachConfiguration = b((r) => ({ + with204: r.with204(z.undefined()), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityDetachConfigurationResponder = - typeof codeSecurityDetachConfigurationResponder & KoaRuntimeResponder - -const codeSecurityDetachConfigurationResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) + (typeof codeSecurityDetachConfiguration)["responder"] & KoaRuntimeResponder export type CodeSecurityDetachConfiguration = ( params: Params< @@ -8158,26 +6830,18 @@ export type CodeSecurityDetachConfiguration = ( | Response<409, t_basic_error> > -const codeSecurityGetConfigurationResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const codeSecurityGetConfiguration = b((r) => ({ + with200: r.with200( + s_code_security_configuration, + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityGetConfigurationResponder = - typeof codeSecurityGetConfigurationResponder & KoaRuntimeResponder - -const codeSecurityGetConfigurationResponseValidator = responseValidationFactory( - [ - ["200", s_code_security_configuration], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof codeSecurityGetConfiguration)["responder"] & KoaRuntimeResponder export type CodeSecurityGetConfiguration = ( params: Params, @@ -8191,23 +6855,16 @@ export type CodeSecurityGetConfiguration = ( | Response<404, t_basic_error> > -const codeSecurityUpdateConfigurationResponder = { - with200: r.with200, - with204: r.with204, +const codeSecurityUpdateConfiguration = b((r) => ({ + with200: r.with200( + s_code_security_configuration, + ), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type CodeSecurityUpdateConfigurationResponder = - typeof codeSecurityUpdateConfigurationResponder & KoaRuntimeResponder - -const codeSecurityUpdateConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration], - ["204", z.undefined()], - ], - undefined, - ) + (typeof codeSecurityUpdateConfiguration)["responder"] & KoaRuntimeResponder export type CodeSecurityUpdateConfiguration = ( params: Params< @@ -8224,29 +6881,17 @@ export type CodeSecurityUpdateConfiguration = ( | Response<204, void> > -const codeSecurityDeleteConfigurationResponder = { - with204: r.with204, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with409: r.with409, +const codeSecurityDeleteConfiguration = b((r) => ({ + with204: r.with204(z.undefined()), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityDeleteConfigurationResponder = - typeof codeSecurityDeleteConfigurationResponder & KoaRuntimeResponder - -const codeSecurityDeleteConfigurationResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) + (typeof codeSecurityDeleteConfiguration)["responder"] & KoaRuntimeResponder export type CodeSecurityDeleteConfiguration = ( params: Params< @@ -8266,18 +6911,15 @@ export type CodeSecurityDeleteConfiguration = ( | Response<409, t_basic_error> > -const codeSecurityAttachConfigurationResponder = { +const codeSecurityAttachConfiguration = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, + }>(z.record(z.unknown())), withStatus: r.withStatus, -} +})) type CodeSecurityAttachConfigurationResponder = - typeof codeSecurityAttachConfigurationResponder & KoaRuntimeResponder - -const codeSecurityAttachConfigurationResponseValidator = - responseValidationFactory([["202", z.record(z.unknown())]], undefined) + (typeof codeSecurityAttachConfiguration)["responder"] & KoaRuntimeResponder export type CodeSecurityAttachConfiguration = ( params: Params< @@ -8298,36 +6940,26 @@ export type CodeSecurityAttachConfiguration = ( > > -const codeSecuritySetConfigurationAsDefaultResponder = { +const codeSecuritySetConfigurationAsDefault = b((r) => ({ with200: r.with200<{ configuration?: t_code_security_configuration default_for_new_repos?: "all" | "none" | "private_and_internal" | "public" - }>, - with403: r.with403, - with404: r.with404, + }>( + z.object({ + default_for_new_repos: z + .enum(["all", "none", "private_and_internal", "public"]) + .optional(), + configuration: s_code_security_configuration.optional(), + }), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecuritySetConfigurationAsDefaultResponder = - typeof codeSecuritySetConfigurationAsDefaultResponder & KoaRuntimeResponder - -const codeSecuritySetConfigurationAsDefaultResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - default_for_new_repos: z - .enum(["all", "none", "private_and_internal", "public"]) - .optional(), - configuration: s_code_security_configuration.optional(), - }), - ], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof codeSecuritySetConfigurationAsDefault)["responder"] & + KoaRuntimeResponder export type CodeSecuritySetConfigurationAsDefault = ( params: Params< @@ -8355,27 +6987,19 @@ export type CodeSecuritySetConfigurationAsDefault = ( | Response<404, t_basic_error> > -const codeSecurityGetRepositoriesForConfigurationResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeSecurityGetRepositoriesForConfiguration = b((r) => ({ + with200: r.with200( + z.array(s_code_security_configuration_repositories), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityGetRepositoriesForConfigurationResponder = - typeof codeSecurityGetRepositoriesForConfigurationResponder & + (typeof codeSecurityGetRepositoriesForConfiguration)["responder"] & KoaRuntimeResponder -const codeSecurityGetRepositoriesForConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_security_configuration_repositories)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type CodeSecurityGetRepositoriesForConfiguration = ( params: Params< t_CodeSecurityGetRepositoriesForConfigurationParamSchema, @@ -8392,39 +7016,26 @@ export type CodeSecurityGetRepositoriesForConfiguration = ( | Response<404, t_basic_error> > -const codespacesListInOrganizationResponder = { +const codespacesListInOrganization = b((r) => ({ with200: r.with200<{ codespaces: t_codespace[] total_count: number - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_count: z.coerce.number(), + codespaces: z.array(s_codespace), + }), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesListInOrganizationResponder = - typeof codespacesListInOrganizationResponder & KoaRuntimeResponder - -const codespacesListInOrganizationResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - codespaces: z.array(s_codespace), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof codespacesListInOrganization)["responder"] & KoaRuntimeResponder export type CodespacesListInOrganization = ( params: Params< @@ -8451,31 +7062,18 @@ export type CodespacesListInOrganization = ( | Response<500, t_basic_error> > -const codespacesSetCodespacesAccessResponder = { - with204: r.with204, - with304: r.with304, - with400: r.with400, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const codespacesSetCodespacesAccess = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with400: r.with400(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesSetCodespacesAccessResponder = - typeof codespacesSetCodespacesAccessResponder & KoaRuntimeResponder - -const codespacesSetCodespacesAccessResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["400", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesSetCodespacesAccess)["responder"] & KoaRuntimeResponder export type CodespacesSetCodespacesAccess = ( params: Params< @@ -8496,31 +7094,18 @@ export type CodespacesSetCodespacesAccess = ( | Response<500, t_basic_error> > -const codespacesSetCodespacesAccessUsersResponder = { - with204: r.with204, - with304: r.with304, - with400: r.with400, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const codespacesSetCodespacesAccessUsers = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with400: r.with400(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesSetCodespacesAccessUsersResponder = - typeof codespacesSetCodespacesAccessUsersResponder & KoaRuntimeResponder - -const codespacesSetCodespacesAccessUsersResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["400", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesSetCodespacesAccessUsers)["responder"] & KoaRuntimeResponder export type CodespacesSetCodespacesAccessUsers = ( params: Params< @@ -8541,31 +7126,19 @@ export type CodespacesSetCodespacesAccessUsers = ( | Response<500, t_basic_error> > -const codespacesDeleteCodespacesAccessUsersResponder = { - with204: r.with204, - with304: r.with304, - with400: r.with400, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const codespacesDeleteCodespacesAccessUsers = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with400: r.with400(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesDeleteCodespacesAccessUsersResponder = - typeof codespacesDeleteCodespacesAccessUsersResponder & KoaRuntimeResponder - -const codespacesDeleteCodespacesAccessUsersResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["400", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesDeleteCodespacesAccessUsers)["responder"] & + KoaRuntimeResponder export type CodespacesDeleteCodespacesAccessUsers = ( params: Params< @@ -8586,29 +7159,21 @@ export type CodespacesDeleteCodespacesAccessUsers = ( | Response<500, t_basic_error> > -const codespacesListOrgSecretsResponder = { +const codespacesListOrgSecrets = b((r) => ({ with200: r.with200<{ secrets: t_codespaces_org_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_codespaces_org_secret), + }), + ), withStatus: r.withStatus, -} +})) type CodespacesListOrgSecretsResponder = - typeof codespacesListOrgSecretsResponder & KoaRuntimeResponder - -const codespacesListOrgSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_codespaces_org_secret), - }), - ], - ], - undefined, -) + (typeof codespacesListOrgSecrets)["responder"] & KoaRuntimeResponder export type CodespacesListOrgSecrets = ( params: Params< @@ -8630,18 +7195,13 @@ export type CodespacesListOrgSecrets = ( > > -const codespacesGetOrgPublicKeyResponder = { - with200: r.with200, +const codespacesGetOrgPublicKey = b((r) => ({ + with200: r.with200(s_codespaces_public_key), withStatus: r.withStatus, -} +})) type CodespacesGetOrgPublicKeyResponder = - typeof codespacesGetOrgPublicKeyResponder & KoaRuntimeResponder - -const codespacesGetOrgPublicKeyResponseValidator = responseValidationFactory( - [["200", s_codespaces_public_key]], - undefined, -) + (typeof codespacesGetOrgPublicKey)["responder"] & KoaRuntimeResponder export type CodespacesGetOrgPublicKey = ( params: Params, @@ -8651,18 +7211,13 @@ export type CodespacesGetOrgPublicKey = ( KoaRuntimeResponse | Response<200, t_codespaces_public_key> > -const codespacesGetOrgSecretResponder = { - with200: r.with200, +const codespacesGetOrgSecret = b((r) => ({ + with200: r.with200(s_codespaces_org_secret), withStatus: r.withStatus, -} - -type CodespacesGetOrgSecretResponder = typeof codespacesGetOrgSecretResponder & - KoaRuntimeResponder +})) -const codespacesGetOrgSecretResponseValidator = responseValidationFactory( - [["200", s_codespaces_org_secret]], - undefined, -) +type CodespacesGetOrgSecretResponder = + (typeof codespacesGetOrgSecret)["responder"] & KoaRuntimeResponder export type CodespacesGetOrgSecret = ( params: Params, @@ -8672,27 +7227,16 @@ export type CodespacesGetOrgSecret = ( KoaRuntimeResponse | Response<200, t_codespaces_org_secret> > -const codespacesCreateOrUpdateOrgSecretResponder = { - with201: r.with201, - with204: r.with204, - with404: r.with404, - with422: r.with422, +const codespacesCreateOrUpdateOrgSecret = b((r) => ({ + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type CodespacesCreateOrUpdateOrgSecretResponder = - typeof codespacesCreateOrUpdateOrgSecretResponder & KoaRuntimeResponder - -const codespacesCreateOrUpdateOrgSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof codespacesCreateOrUpdateOrgSecret)["responder"] & KoaRuntimeResponder export type CodespacesCreateOrUpdateOrgSecret = ( params: Params< @@ -8711,22 +7255,14 @@ export type CodespacesCreateOrUpdateOrgSecret = ( | Response<422, t_validation_error> > -const codespacesDeleteOrgSecretResponder = { - with204: r.with204, - with404: r.with404, +const codespacesDeleteOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesDeleteOrgSecretResponder = - typeof codespacesDeleteOrgSecretResponder & KoaRuntimeResponder - -const codespacesDeleteOrgSecretResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof codespacesDeleteOrgSecret)["responder"] & KoaRuntimeResponder export type CodespacesDeleteOrgSecret = ( params: Params, @@ -8738,32 +7274,23 @@ export type CodespacesDeleteOrgSecret = ( | Response<404, t_basic_error> > -const codespacesListSelectedReposForOrgSecretResponder = { +const codespacesListSelectedReposForOrgSecret = b((r) => ({ with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }>, - with404: r.with404, + }>( + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesListSelectedReposForOrgSecretResponder = - typeof codespacesListSelectedReposForOrgSecretResponder & KoaRuntimeResponder - -const codespacesListSelectedReposForOrgSecretResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) + (typeof codespacesListSelectedReposForOrgSecret)["responder"] & + KoaRuntimeResponder export type CodespacesListSelectedReposForOrgSecret = ( params: Params< @@ -8786,25 +7313,16 @@ export type CodespacesListSelectedReposForOrgSecret = ( | Response<404, t_basic_error> > -const codespacesSetSelectedReposForOrgSecretResponder = { - with204: r.with204, - with404: r.with404, - with409: r.with409, +const codespacesSetSelectedReposForOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type CodespacesSetSelectedReposForOrgSecretResponder = - typeof codespacesSetSelectedReposForOrgSecretResponder & KoaRuntimeResponder - -const codespacesSetSelectedReposForOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["409", z.undefined()], - ], - undefined, - ) + (typeof codespacesSetSelectedReposForOrgSecret)["responder"] & + KoaRuntimeResponder export type CodespacesSetSelectedReposForOrgSecret = ( params: Params< @@ -8822,27 +7340,17 @@ export type CodespacesSetSelectedReposForOrgSecret = ( | Response<409, void> > -const codespacesAddSelectedRepoToOrgSecretResponder = { - with204: r.with204, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const codespacesAddSelectedRepoToOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with409: r.with409(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type CodespacesAddSelectedRepoToOrgSecretResponder = - typeof codespacesAddSelectedRepoToOrgSecretResponder & KoaRuntimeResponder - -const codespacesAddSelectedRepoToOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["409", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) + (typeof codespacesAddSelectedRepoToOrgSecret)["responder"] & + KoaRuntimeResponder export type CodespacesAddSelectedRepoToOrgSecret = ( params: Params< @@ -8861,29 +7369,18 @@ export type CodespacesAddSelectedRepoToOrgSecret = ( | Response<422, t_validation_error> > -const codespacesRemoveSelectedRepoFromOrgSecretResponder = { - with204: r.with204, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const codespacesRemoveSelectedRepoFromOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with409: r.with409(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type CodespacesRemoveSelectedRepoFromOrgSecretResponder = - typeof codespacesRemoveSelectedRepoFromOrgSecretResponder & + (typeof codespacesRemoveSelectedRepoFromOrgSecret)["responder"] & KoaRuntimeResponder -const codespacesRemoveSelectedRepoFromOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["409", z.undefined()], - ["422", s_validation_error], - ], - undefined, - ) - export type CodespacesRemoveSelectedRepoFromOrgSecret = ( params: Params< t_CodespacesRemoveSelectedRepoFromOrgSecretParamSchema, @@ -8901,31 +7398,21 @@ export type CodespacesRemoveSelectedRepoFromOrgSecret = ( | Response<422, t_validation_error> > -const copilotGetCopilotOrganizationDetailsResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const copilotGetCopilotOrganizationDetails = b((r) => ({ + with200: r.with200( + s_copilot_organization_details, + ), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotGetCopilotOrganizationDetailsResponder = - typeof copilotGetCopilotOrganizationDetailsResponder & KoaRuntimeResponder - -const copilotGetCopilotOrganizationDetailsResponseValidator = - responseValidationFactory( - [ - ["200", s_copilot_organization_details], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) + (typeof copilotGetCopilotOrganizationDetails)["responder"] & + KoaRuntimeResponder export type CopilotGetCopilotOrganizationDetails = ( params: Params< @@ -8946,37 +7433,25 @@ export type CopilotGetCopilotOrganizationDetails = ( | Response<500, t_basic_error> > -const copilotListCopilotSeatsResponder = { +const copilotListCopilotSeats = b((r) => ({ with200: r.with200<{ seats?: t_copilot_seat_details[] total_seats?: number - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_seats: z.coerce.number().optional(), + seats: z.array(s_copilot_seat_details).optional(), + }), + ), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotListCopilotSeatsResponder = - typeof copilotListCopilotSeatsResponder & KoaRuntimeResponder - -const copilotListCopilotSeatsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_seats: z.coerce.number().optional(), - seats: z.array(s_copilot_seat_details).optional(), - }), - ], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof copilotListCopilotSeats)["responder"] & KoaRuntimeResponder export type CopilotListCopilotSeats = ( params: Params< @@ -9002,33 +7477,20 @@ export type CopilotListCopilotSeats = ( | Response<500, t_basic_error> > -const copilotAddCopilotSeatsForTeamsResponder = { +const copilotAddCopilotSeatsForTeams = b((r) => ({ with201: r.with201<{ seats_created: number - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, + }>(z.object({ seats_created: z.coerce.number() })), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotAddCopilotSeatsForTeamsResponder = - typeof copilotAddCopilotSeatsForTeamsResponder & KoaRuntimeResponder - -const copilotAddCopilotSeatsForTeamsResponseValidator = - responseValidationFactory( - [ - ["201", z.object({ seats_created: z.coerce.number() })], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) + (typeof copilotAddCopilotSeatsForTeams)["responder"] & KoaRuntimeResponder export type CopilotAddCopilotSeatsForTeams = ( params: Params< @@ -9054,35 +7516,22 @@ export type CopilotAddCopilotSeatsForTeams = ( | Response<500, t_basic_error> > -const copilotCancelCopilotSeatAssignmentForTeamsResponder = { +const copilotCancelCopilotSeatAssignmentForTeams = b((r) => ({ with200: r.with200<{ seats_cancelled: number - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, + }>(z.object({ seats_cancelled: z.coerce.number() })), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotCancelCopilotSeatAssignmentForTeamsResponder = - typeof copilotCancelCopilotSeatAssignmentForTeamsResponder & + (typeof copilotCancelCopilotSeatAssignmentForTeams)["responder"] & KoaRuntimeResponder -const copilotCancelCopilotSeatAssignmentForTeamsResponseValidator = - responseValidationFactory( - [ - ["200", z.object({ seats_cancelled: z.coerce.number() })], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) - export type CopilotCancelCopilotSeatAssignmentForTeams = ( params: Params< t_CopilotCancelCopilotSeatAssignmentForTeamsParamSchema, @@ -9107,33 +7556,20 @@ export type CopilotCancelCopilotSeatAssignmentForTeams = ( | Response<500, t_basic_error> > -const copilotAddCopilotSeatsForUsersResponder = { +const copilotAddCopilotSeatsForUsers = b((r) => ({ with201: r.with201<{ seats_created: number - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, + }>(z.object({ seats_created: z.coerce.number() })), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotAddCopilotSeatsForUsersResponder = - typeof copilotAddCopilotSeatsForUsersResponder & KoaRuntimeResponder - -const copilotAddCopilotSeatsForUsersResponseValidator = - responseValidationFactory( - [ - ["201", z.object({ seats_created: z.coerce.number() })], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) + (typeof copilotAddCopilotSeatsForUsers)["responder"] & KoaRuntimeResponder export type CopilotAddCopilotSeatsForUsers = ( params: Params< @@ -9159,35 +7595,22 @@ export type CopilotAddCopilotSeatsForUsers = ( | Response<500, t_basic_error> > -const copilotCancelCopilotSeatAssignmentForUsersResponder = { +const copilotCancelCopilotSeatAssignmentForUsers = b((r) => ({ with200: r.with200<{ seats_cancelled: number - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, + }>(z.object({ seats_cancelled: z.coerce.number() })), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotCancelCopilotSeatAssignmentForUsersResponder = - typeof copilotCancelCopilotSeatAssignmentForUsersResponder & + (typeof copilotCancelCopilotSeatAssignmentForUsers)["responder"] & KoaRuntimeResponder -const copilotCancelCopilotSeatAssignmentForUsersResponseValidator = - responseValidationFactory( - [ - ["200", z.object({ seats_cancelled: z.coerce.number() })], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) - export type CopilotCancelCopilotSeatAssignmentForUsers = ( params: Params< t_CopilotCancelCopilotSeatAssignmentForUsersParamSchema, @@ -9212,29 +7635,20 @@ export type CopilotCancelCopilotSeatAssignmentForUsers = ( | Response<500, t_basic_error> > -const copilotCopilotMetricsForOrganizationResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const copilotCopilotMetricsForOrganization = b((r) => ({ + with200: r.with200( + z.array(s_copilot_usage_metrics_day), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotCopilotMetricsForOrganizationResponder = - typeof copilotCopilotMetricsForOrganizationResponder & KoaRuntimeResponder - -const copilotCopilotMetricsForOrganizationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_copilot_usage_metrics_day)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof copilotCopilotMetricsForOrganization)["responder"] & + KoaRuntimeResponder export type CopilotCopilotMetricsForOrganization = ( params: Params< @@ -9254,30 +7668,20 @@ export type CopilotCopilotMetricsForOrganization = ( | Response<500, t_basic_error> > -const dependabotListAlertsForOrgResponder = { - with200: r.with200, - with304: r.with304, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const dependabotListAlertsForOrg = b((r) => ({ + with200: r.with200( + z.array(s_dependabot_alert_with_repository), + ), + with304: r.with304(z.undefined()), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type DependabotListAlertsForOrgResponder = - typeof dependabotListAlertsForOrgResponder & KoaRuntimeResponder - -const dependabotListAlertsForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_dependabot_alert_with_repository)], - ["304", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) + (typeof dependabotListAlertsForOrg)["responder"] & KoaRuntimeResponder export type DependabotListAlertsForOrg = ( params: Params< @@ -9298,29 +7702,21 @@ export type DependabotListAlertsForOrg = ( | Response<422, t_validation_error_simple> > -const dependabotListOrgSecretsResponder = { +const dependabotListOrgSecrets = b((r) => ({ with200: r.with200<{ secrets: t_organization_dependabot_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_organization_dependabot_secret), + }), + ), withStatus: r.withStatus, -} +})) type DependabotListOrgSecretsResponder = - typeof dependabotListOrgSecretsResponder & KoaRuntimeResponder - -const dependabotListOrgSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_organization_dependabot_secret), - }), - ], - ], - undefined, -) + (typeof dependabotListOrgSecrets)["responder"] & KoaRuntimeResponder export type DependabotListOrgSecrets = ( params: Params< @@ -9342,18 +7738,13 @@ export type DependabotListOrgSecrets = ( > > -const dependabotGetOrgPublicKeyResponder = { - with200: r.with200, +const dependabotGetOrgPublicKey = b((r) => ({ + with200: r.with200(s_dependabot_public_key), withStatus: r.withStatus, -} +})) type DependabotGetOrgPublicKeyResponder = - typeof dependabotGetOrgPublicKeyResponder & KoaRuntimeResponder - -const dependabotGetOrgPublicKeyResponseValidator = responseValidationFactory( - [["200", s_dependabot_public_key]], - undefined, -) + (typeof dependabotGetOrgPublicKey)["responder"] & KoaRuntimeResponder export type DependabotGetOrgPublicKey = ( params: Params, @@ -9363,18 +7754,15 @@ export type DependabotGetOrgPublicKey = ( KoaRuntimeResponse | Response<200, t_dependabot_public_key> > -const dependabotGetOrgSecretResponder = { - with200: r.with200, +const dependabotGetOrgSecret = b((r) => ({ + with200: r.with200( + s_organization_dependabot_secret, + ), withStatus: r.withStatus, -} - -type DependabotGetOrgSecretResponder = typeof dependabotGetOrgSecretResponder & - KoaRuntimeResponder +})) -const dependabotGetOrgSecretResponseValidator = responseValidationFactory( - [["200", s_organization_dependabot_secret]], - undefined, -) +type DependabotGetOrgSecretResponder = + (typeof dependabotGetOrgSecret)["responder"] & KoaRuntimeResponder export type DependabotGetOrgSecret = ( params: Params, @@ -9384,23 +7772,14 @@ export type DependabotGetOrgSecret = ( KoaRuntimeResponse | Response<200, t_organization_dependabot_secret> > -const dependabotCreateOrUpdateOrgSecretResponder = { - with201: r.with201, - with204: r.with204, +const dependabotCreateOrUpdateOrgSecret = b((r) => ({ + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type DependabotCreateOrUpdateOrgSecretResponder = - typeof dependabotCreateOrUpdateOrgSecretResponder & KoaRuntimeResponder - -const dependabotCreateOrUpdateOrgSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) + (typeof dependabotCreateOrUpdateOrgSecret)["responder"] & KoaRuntimeResponder export type DependabotCreateOrUpdateOrgSecret = ( params: Params< @@ -9417,18 +7796,13 @@ export type DependabotCreateOrUpdateOrgSecret = ( | Response<204, void> > -const dependabotDeleteOrgSecretResponder = { - with204: r.with204, +const dependabotDeleteOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type DependabotDeleteOrgSecretResponder = - typeof dependabotDeleteOrgSecretResponder & KoaRuntimeResponder - -const dependabotDeleteOrgSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof dependabotDeleteOrgSecret)["responder"] & KoaRuntimeResponder export type DependabotDeleteOrgSecret = ( params: Params, @@ -9436,30 +7810,22 @@ export type DependabotDeleteOrgSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const dependabotListSelectedReposForOrgSecretResponder = { +const dependabotListSelectedReposForOrgSecret = b((r) => ({ with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ), withStatus: r.withStatus, -} +})) type DependabotListSelectedReposForOrgSecretResponder = - typeof dependabotListSelectedReposForOrgSecretResponder & KoaRuntimeResponder - -const dependabotListSelectedReposForOrgSecretResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ], - undefined, - ) + (typeof dependabotListSelectedReposForOrgSecret)["responder"] & + KoaRuntimeResponder export type DependabotListSelectedReposForOrgSecret = ( params: Params< @@ -9481,16 +7847,14 @@ export type DependabotListSelectedReposForOrgSecret = ( > > -const dependabotSetSelectedReposForOrgSecretResponder = { - with204: r.with204, +const dependabotSetSelectedReposForOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type DependabotSetSelectedReposForOrgSecretResponder = - typeof dependabotSetSelectedReposForOrgSecretResponder & KoaRuntimeResponder - -const dependabotSetSelectedReposForOrgSecretResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof dependabotSetSelectedReposForOrgSecret)["responder"] & + KoaRuntimeResponder export type DependabotSetSelectedReposForOrgSecret = ( params: Params< @@ -9503,23 +7867,15 @@ export type DependabotSetSelectedReposForOrgSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const dependabotAddSelectedRepoToOrgSecretResponder = { - with204: r.with204, - with409: r.with409, +const dependabotAddSelectedRepoToOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type DependabotAddSelectedRepoToOrgSecretResponder = - typeof dependabotAddSelectedRepoToOrgSecretResponder & KoaRuntimeResponder - -const dependabotAddSelectedRepoToOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) + (typeof dependabotAddSelectedRepoToOrgSecret)["responder"] & + KoaRuntimeResponder export type DependabotAddSelectedRepoToOrgSecret = ( params: Params< @@ -9534,25 +7890,16 @@ export type DependabotAddSelectedRepoToOrgSecret = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const dependabotRemoveSelectedRepoFromOrgSecretResponder = { - with204: r.with204, - with409: r.with409, +const dependabotRemoveSelectedRepoFromOrgSecret = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type DependabotRemoveSelectedRepoFromOrgSecretResponder = - typeof dependabotRemoveSelectedRepoFromOrgSecretResponder & + (typeof dependabotRemoveSelectedRepoFromOrgSecret)["responder"] & KoaRuntimeResponder -const dependabotRemoveSelectedRepoFromOrgSecretResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - export type DependabotRemoveSelectedRepoFromOrgSecret = ( params: Params< t_DependabotRemoveSelectedRepoFromOrgSecretParamSchema, @@ -9566,27 +7913,19 @@ export type DependabotRemoveSelectedRepoFromOrgSecret = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const packagesListDockerMigrationConflictingPackagesForOrganizationResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - withStatus: r.withStatus, -} +const packagesListDockerMigrationConflictingPackagesForOrganization = b( + (r) => ({ + with200: r.with200(z.array(s_package)), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + withStatus: r.withStatus, + }), +) type PackagesListDockerMigrationConflictingPackagesForOrganizationResponder = - typeof packagesListDockerMigrationConflictingPackagesForOrganizationResponder & + (typeof packagesListDockerMigrationConflictingPackagesForOrganization)["responder"] & KoaRuntimeResponder -const packagesListDockerMigrationConflictingPackagesForOrganizationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - export type PackagesListDockerMigrationConflictingPackagesForOrganization = ( params: Params< t_PackagesListDockerMigrationConflictingPackagesForOrganizationParamSchema, @@ -9603,18 +7942,13 @@ export type PackagesListDockerMigrationConflictingPackagesForOrganization = ( | Response<403, t_basic_error> > -const activityListPublicOrgEventsResponder = { - with200: r.with200, +const activityListPublicOrgEvents = b((r) => ({ + with200: r.with200(z.array(s_event)), withStatus: r.withStatus, -} +})) type ActivityListPublicOrgEventsResponder = - typeof activityListPublicOrgEventsResponder & KoaRuntimeResponder - -const activityListPublicOrgEventsResponseValidator = responseValidationFactory( - [["200", z.array(s_event)]], - undefined, -) + (typeof activityListPublicOrgEvents)["responder"] & KoaRuntimeResponder export type ActivityListPublicOrgEvents = ( params: Params< @@ -9627,22 +7961,16 @@ export type ActivityListPublicOrgEvents = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -const orgsListFailedInvitationsResponder = { - with200: r.with200, - with404: r.with404, +const orgsListFailedInvitations = b((r) => ({ + with200: r.with200( + z.array(s_organization_invitation), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsListFailedInvitationsResponder = - typeof orgsListFailedInvitationsResponder & KoaRuntimeResponder - -const orgsListFailedInvitationsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_invitation)], - ["404", s_basic_error], - ], - undefined, -) + (typeof orgsListFailedInvitations)["responder"] & KoaRuntimeResponder export type OrgsListFailedInvitations = ( params: Params< @@ -9659,23 +7987,15 @@ export type OrgsListFailedInvitations = ( | Response<404, t_basic_error> > -const orgsListWebhooksResponder = { - with200: r.with200, - with404: r.with404, +const orgsListWebhooks = b((r) => ({ + with200: r.with200(z.array(s_org_hook)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsListWebhooksResponder = typeof orgsListWebhooksResponder & +type OrgsListWebhooksResponder = (typeof orgsListWebhooks)["responder"] & KoaRuntimeResponder -const orgsListWebhooksResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_org_hook)], - ["404", s_basic_error], - ], - undefined, -) - export type OrgsListWebhooks = ( params: Params< t_OrgsListWebhooksParamSchema, @@ -9691,25 +8011,16 @@ export type OrgsListWebhooks = ( | Response<404, t_basic_error> > -const orgsCreateWebhookResponder = { - with201: r.with201, - with404: r.with404, - with422: r.with422, +const orgsCreateWebhook = b((r) => ({ + with201: r.with201(s_org_hook), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsCreateWebhookResponder = typeof orgsCreateWebhookResponder & +type OrgsCreateWebhookResponder = (typeof orgsCreateWebhook)["responder"] & KoaRuntimeResponder -const orgsCreateWebhookResponseValidator = responseValidationFactory( - [ - ["201", s_org_hook], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type OrgsCreateWebhook = ( params: Params< t_OrgsCreateWebhookParamSchema, @@ -9726,23 +8037,15 @@ export type OrgsCreateWebhook = ( | Response<422, t_validation_error> > -const orgsGetWebhookResponder = { - with200: r.with200, - with404: r.with404, +const orgsGetWebhook = b((r) => ({ + with200: r.with200(s_org_hook), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsGetWebhookResponder = typeof orgsGetWebhookResponder & +type OrgsGetWebhookResponder = (typeof orgsGetWebhook)["responder"] & KoaRuntimeResponder -const orgsGetWebhookResponseValidator = responseValidationFactory( - [ - ["200", s_org_hook], - ["404", s_basic_error], - ], - undefined, -) - export type OrgsGetWebhook = ( params: Params, respond: OrgsGetWebhookResponder, @@ -9753,25 +8056,16 @@ export type OrgsGetWebhook = ( | Response<404, t_basic_error> > -const orgsUpdateWebhookResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const orgsUpdateWebhook = b((r) => ({ + with200: r.with200(s_org_hook), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsUpdateWebhookResponder = typeof orgsUpdateWebhookResponder & +type OrgsUpdateWebhookResponder = (typeof orgsUpdateWebhook)["responder"] & KoaRuntimeResponder -const orgsUpdateWebhookResponseValidator = responseValidationFactory( - [ - ["200", s_org_hook], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type OrgsUpdateWebhook = ( params: Params< t_OrgsUpdateWebhookParamSchema, @@ -9788,23 +8082,15 @@ export type OrgsUpdateWebhook = ( | Response<422, t_validation_error> > -const orgsDeleteWebhookResponder = { - with204: r.with204, - with404: r.with404, +const orgsDeleteWebhook = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsDeleteWebhookResponder = typeof orgsDeleteWebhookResponder & +type OrgsDeleteWebhookResponder = (typeof orgsDeleteWebhook)["responder"] & KoaRuntimeResponder -const orgsDeleteWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) - export type OrgsDeleteWebhook = ( params: Params, respond: OrgsDeleteWebhookResponder, @@ -9815,18 +8101,13 @@ export type OrgsDeleteWebhook = ( | Response<404, t_basic_error> > -const orgsGetWebhookConfigForOrgResponder = { - with200: r.with200, +const orgsGetWebhookConfigForOrg = b((r) => ({ + with200: r.with200(s_webhook_config), withStatus: r.withStatus, -} +})) type OrgsGetWebhookConfigForOrgResponder = - typeof orgsGetWebhookConfigForOrgResponder & KoaRuntimeResponder - -const orgsGetWebhookConfigForOrgResponseValidator = responseValidationFactory( - [["200", s_webhook_config]], - undefined, -) + (typeof orgsGetWebhookConfigForOrg)["responder"] & KoaRuntimeResponder export type OrgsGetWebhookConfigForOrg = ( params: Params, @@ -9834,16 +8115,13 @@ export type OrgsGetWebhookConfigForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -const orgsUpdateWebhookConfigForOrgResponder = { - with200: r.with200, +const orgsUpdateWebhookConfigForOrg = b((r) => ({ + with200: r.with200(s_webhook_config), withStatus: r.withStatus, -} +})) type OrgsUpdateWebhookConfigForOrgResponder = - typeof orgsUpdateWebhookConfigForOrgResponder & KoaRuntimeResponder - -const orgsUpdateWebhookConfigForOrgResponseValidator = - responseValidationFactory([["200", s_webhook_config]], undefined) + (typeof orgsUpdateWebhookConfigForOrg)["responder"] & KoaRuntimeResponder export type OrgsUpdateWebhookConfigForOrg = ( params: Params< @@ -9856,24 +8134,15 @@ export type OrgsUpdateWebhookConfigForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -const orgsListWebhookDeliveriesResponder = { - with200: r.with200, - with400: r.with400, - with422: r.with422, +const orgsListWebhookDeliveries = b((r) => ({ + with200: r.with200(z.array(s_hook_delivery_item)), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type OrgsListWebhookDeliveriesResponder = - typeof orgsListWebhookDeliveriesResponder & KoaRuntimeResponder - -const orgsListWebhookDeliveriesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_hook_delivery_item)], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof orgsListWebhookDeliveries)["responder"] & KoaRuntimeResponder export type OrgsListWebhookDeliveries = ( params: Params< @@ -9891,24 +8160,15 @@ export type OrgsListWebhookDeliveries = ( | Response<422, t_validation_error> > -const orgsGetWebhookDeliveryResponder = { - with200: r.with200, - with400: r.with400, - with422: r.with422, +const orgsGetWebhookDelivery = b((r) => ({ + with200: r.with200(s_hook_delivery), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsGetWebhookDeliveryResponder = typeof orgsGetWebhookDeliveryResponder & - KoaRuntimeResponder - -const orgsGetWebhookDeliveryResponseValidator = responseValidationFactory( - [ - ["200", s_hook_delivery], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, -) +type OrgsGetWebhookDeliveryResponder = + (typeof orgsGetWebhookDelivery)["responder"] & KoaRuntimeResponder export type OrgsGetWebhookDelivery = ( params: Params, @@ -9921,26 +8181,17 @@ export type OrgsGetWebhookDelivery = ( | Response<422, t_validation_error> > -const orgsRedeliverWebhookDeliveryResponder = { +const orgsRedeliverWebhookDelivery = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with400: r.with400, - with422: r.with422, + }>(z.record(z.unknown())), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type OrgsRedeliverWebhookDeliveryResponder = - typeof orgsRedeliverWebhookDeliveryResponder & KoaRuntimeResponder - -const orgsRedeliverWebhookDeliveryResponseValidator = responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof orgsRedeliverWebhookDelivery)["responder"] & KoaRuntimeResponder export type OrgsRedeliverWebhookDelivery = ( params: Params, @@ -9958,23 +8209,15 @@ export type OrgsRedeliverWebhookDelivery = ( | Response<422, t_validation_error> > -const orgsPingWebhookResponder = { - with204: r.with204, - with404: r.with404, +const orgsPingWebhook = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsPingWebhookResponder = typeof orgsPingWebhookResponder & +type OrgsPingWebhookResponder = (typeof orgsPingWebhook)["responder"] & KoaRuntimeResponder -const orgsPingWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) - export type OrgsPingWebhook = ( params: Params, respond: OrgsPingWebhookResponder, @@ -9985,16 +8228,13 @@ export type OrgsPingWebhook = ( | Response<404, t_basic_error> > -const apiInsightsGetRouteStatsByActorResponder = { - with200: r.with200, +const apiInsightsGetRouteStatsByActor = b((r) => ({ + with200: r.with200(s_api_insights_route_stats), withStatus: r.withStatus, -} +})) type ApiInsightsGetRouteStatsByActorResponder = - typeof apiInsightsGetRouteStatsByActorResponder & KoaRuntimeResponder - -const apiInsightsGetRouteStatsByActorResponseValidator = - responseValidationFactory([["200", s_api_insights_route_stats]], undefined) + (typeof apiInsightsGetRouteStatsByActor)["responder"] & KoaRuntimeResponder export type ApiInsightsGetRouteStatsByActor = ( params: Params< @@ -10009,18 +8249,15 @@ export type ApiInsightsGetRouteStatsByActor = ( KoaRuntimeResponse | Response<200, t_api_insights_route_stats> > -const apiInsightsGetSubjectStatsResponder = { - with200: r.with200, +const apiInsightsGetSubjectStats = b((r) => ({ + with200: r.with200( + s_api_insights_subject_stats, + ), withStatus: r.withStatus, -} +})) type ApiInsightsGetSubjectStatsResponder = - typeof apiInsightsGetSubjectStatsResponder & KoaRuntimeResponder - -const apiInsightsGetSubjectStatsResponseValidator = responseValidationFactory( - [["200", s_api_insights_subject_stats]], - undefined, -) + (typeof apiInsightsGetSubjectStats)["responder"] & KoaRuntimeResponder export type ApiInsightsGetSubjectStats = ( params: Params< @@ -10035,18 +8272,15 @@ export type ApiInsightsGetSubjectStats = ( KoaRuntimeResponse | Response<200, t_api_insights_subject_stats> > -const apiInsightsGetSummaryStatsResponder = { - with200: r.with200, +const apiInsightsGetSummaryStats = b((r) => ({ + with200: r.with200( + s_api_insights_summary_stats, + ), withStatus: r.withStatus, -} +})) type ApiInsightsGetSummaryStatsResponder = - typeof apiInsightsGetSummaryStatsResponder & KoaRuntimeResponder - -const apiInsightsGetSummaryStatsResponseValidator = responseValidationFactory( - [["200", s_api_insights_summary_stats]], - undefined, -) + (typeof apiInsightsGetSummaryStats)["responder"] & KoaRuntimeResponder export type ApiInsightsGetSummaryStats = ( params: Params< @@ -10061,16 +8295,15 @@ export type ApiInsightsGetSummaryStats = ( KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> > -const apiInsightsGetSummaryStatsByUserResponder = { - with200: r.with200, +const apiInsightsGetSummaryStatsByUser = b((r) => ({ + with200: r.with200( + s_api_insights_summary_stats, + ), withStatus: r.withStatus, -} +})) type ApiInsightsGetSummaryStatsByUserResponder = - typeof apiInsightsGetSummaryStatsByUserResponder & KoaRuntimeResponder - -const apiInsightsGetSummaryStatsByUserResponseValidator = - responseValidationFactory([["200", s_api_insights_summary_stats]], undefined) + (typeof apiInsightsGetSummaryStatsByUser)["responder"] & KoaRuntimeResponder export type ApiInsightsGetSummaryStatsByUser = ( params: Params< @@ -10085,16 +8318,15 @@ export type ApiInsightsGetSummaryStatsByUser = ( KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> > -const apiInsightsGetSummaryStatsByActorResponder = { - with200: r.with200, +const apiInsightsGetSummaryStatsByActor = b((r) => ({ + with200: r.with200( + s_api_insights_summary_stats, + ), withStatus: r.withStatus, -} +})) type ApiInsightsGetSummaryStatsByActorResponder = - typeof apiInsightsGetSummaryStatsByActorResponder & KoaRuntimeResponder - -const apiInsightsGetSummaryStatsByActorResponseValidator = - responseValidationFactory([["200", s_api_insights_summary_stats]], undefined) + (typeof apiInsightsGetSummaryStatsByActor)["responder"] & KoaRuntimeResponder export type ApiInsightsGetSummaryStatsByActor = ( params: Params< @@ -10109,18 +8341,13 @@ export type ApiInsightsGetSummaryStatsByActor = ( KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> > -const apiInsightsGetTimeStatsResponder = { - with200: r.with200, +const apiInsightsGetTimeStats = b((r) => ({ + with200: r.with200(s_api_insights_time_stats), withStatus: r.withStatus, -} +})) type ApiInsightsGetTimeStatsResponder = - typeof apiInsightsGetTimeStatsResponder & KoaRuntimeResponder - -const apiInsightsGetTimeStatsResponseValidator = responseValidationFactory( - [["200", s_api_insights_time_stats]], - undefined, -) + (typeof apiInsightsGetTimeStats)["responder"] & KoaRuntimeResponder export type ApiInsightsGetTimeStats = ( params: Params< @@ -10135,16 +8362,13 @@ export type ApiInsightsGetTimeStats = ( KoaRuntimeResponse | Response<200, t_api_insights_time_stats> > -const apiInsightsGetTimeStatsByUserResponder = { - with200: r.with200, +const apiInsightsGetTimeStatsByUser = b((r) => ({ + with200: r.with200(s_api_insights_time_stats), withStatus: r.withStatus, -} +})) type ApiInsightsGetTimeStatsByUserResponder = - typeof apiInsightsGetTimeStatsByUserResponder & KoaRuntimeResponder - -const apiInsightsGetTimeStatsByUserResponseValidator = - responseValidationFactory([["200", s_api_insights_time_stats]], undefined) + (typeof apiInsightsGetTimeStatsByUser)["responder"] & KoaRuntimeResponder export type ApiInsightsGetTimeStatsByUser = ( params: Params< @@ -10159,16 +8383,13 @@ export type ApiInsightsGetTimeStatsByUser = ( KoaRuntimeResponse | Response<200, t_api_insights_time_stats> > -const apiInsightsGetTimeStatsByActorResponder = { - with200: r.with200, +const apiInsightsGetTimeStatsByActor = b((r) => ({ + with200: r.with200(s_api_insights_time_stats), withStatus: r.withStatus, -} +})) type ApiInsightsGetTimeStatsByActorResponder = - typeof apiInsightsGetTimeStatsByActorResponder & KoaRuntimeResponder - -const apiInsightsGetTimeStatsByActorResponseValidator = - responseValidationFactory([["200", s_api_insights_time_stats]], undefined) + (typeof apiInsightsGetTimeStatsByActor)["responder"] & KoaRuntimeResponder export type ApiInsightsGetTimeStatsByActor = ( params: Params< @@ -10183,18 +8404,13 @@ export type ApiInsightsGetTimeStatsByActor = ( KoaRuntimeResponse | Response<200, t_api_insights_time_stats> > -const apiInsightsGetUserStatsResponder = { - with200: r.with200, +const apiInsightsGetUserStats = b((r) => ({ + with200: r.with200(s_api_insights_user_stats), withStatus: r.withStatus, -} +})) type ApiInsightsGetUserStatsResponder = - typeof apiInsightsGetUserStatsResponder & KoaRuntimeResponder - -const apiInsightsGetUserStatsResponseValidator = responseValidationFactory( - [["200", s_api_insights_user_stats]], - undefined, -) + (typeof apiInsightsGetUserStats)["responder"] & KoaRuntimeResponder export type ApiInsightsGetUserStats = ( params: Params< @@ -10209,18 +8425,13 @@ export type ApiInsightsGetUserStats = ( KoaRuntimeResponse | Response<200, t_api_insights_user_stats> > -const appsGetOrgInstallationResponder = { - with200: r.with200, +const appsGetOrgInstallation = b((r) => ({ + with200: r.with200(s_installation), withStatus: r.withStatus, -} +})) -type AppsGetOrgInstallationResponder = typeof appsGetOrgInstallationResponder & - KoaRuntimeResponder - -const appsGetOrgInstallationResponseValidator = responseValidationFactory( - [["200", s_installation]], - undefined, -) +type AppsGetOrgInstallationResponder = + (typeof appsGetOrgInstallation)["responder"] & KoaRuntimeResponder export type AppsGetOrgInstallation = ( params: Params, @@ -10228,29 +8439,21 @@ export type AppsGetOrgInstallation = ( ctx: RouterContext, ) => Promise | Response<200, t_installation>> -const orgsListAppInstallationsResponder = { +const orgsListAppInstallations = b((r) => ({ with200: r.with200<{ installations: t_installation[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + installations: z.array(s_installation), + }), + ), withStatus: r.withStatus, -} +})) type OrgsListAppInstallationsResponder = - typeof orgsListAppInstallationsResponder & KoaRuntimeResponder - -const orgsListAppInstallationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - installations: z.array(s_installation), - }), - ], - ], - undefined, -) + (typeof orgsListAppInstallations)["responder"] & KoaRuntimeResponder export type OrgsListAppInstallations = ( params: Params< @@ -10272,19 +8475,15 @@ export type OrgsListAppInstallations = ( > > -const interactionsGetRestrictionsForOrgResponder = { - with200: r.with200, +const interactionsGetRestrictionsForOrg = b((r) => ({ + with200: r.with200( + z.union([s_interaction_limit_response, z.object({})]), + ), withStatus: r.withStatus, -} +})) type InteractionsGetRestrictionsForOrgResponder = - typeof interactionsGetRestrictionsForOrgResponder & KoaRuntimeResponder - -const interactionsGetRestrictionsForOrgResponseValidator = - responseValidationFactory( - [["200", z.union([s_interaction_limit_response, z.object({})])]], - undefined, - ) + (typeof interactionsGetRestrictionsForOrg)["responder"] & KoaRuntimeResponder export type InteractionsGetRestrictionsForOrg = ( params: Params< @@ -10300,23 +8499,16 @@ export type InteractionsGetRestrictionsForOrg = ( | Response<200, t_interaction_limit_response | EmptyObject> > -const interactionsSetRestrictionsForOrgResponder = { - with200: r.with200, - with422: r.with422, +const interactionsSetRestrictionsForOrg = b((r) => ({ + with200: r.with200( + s_interaction_limit_response, + ), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type InteractionsSetRestrictionsForOrgResponder = - typeof interactionsSetRestrictionsForOrgResponder & KoaRuntimeResponder - -const interactionsSetRestrictionsForOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_interaction_limit_response], - ["422", s_validation_error], - ], - undefined, - ) + (typeof interactionsSetRestrictionsForOrg)["responder"] & KoaRuntimeResponder export type InteractionsSetRestrictionsForOrg = ( params: Params< @@ -10333,16 +8525,14 @@ export type InteractionsSetRestrictionsForOrg = ( | Response<422, t_validation_error> > -const interactionsRemoveRestrictionsForOrgResponder = { - with204: r.with204, +const interactionsRemoveRestrictionsForOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type InteractionsRemoveRestrictionsForOrgResponder = - typeof interactionsRemoveRestrictionsForOrgResponder & KoaRuntimeResponder - -const interactionsRemoveRestrictionsForOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof interactionsRemoveRestrictionsForOrg)["responder"] & + KoaRuntimeResponder export type InteractionsRemoveRestrictionsForOrg = ( params: Params< @@ -10355,22 +8545,16 @@ export type InteractionsRemoveRestrictionsForOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const orgsListPendingInvitationsResponder = { - with200: r.with200, - with404: r.with404, +const orgsListPendingInvitations = b((r) => ({ + with200: r.with200( + z.array(s_organization_invitation), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsListPendingInvitationsResponder = - typeof orgsListPendingInvitationsResponder & KoaRuntimeResponder - -const orgsListPendingInvitationsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_invitation)], - ["404", s_basic_error], - ], - undefined, -) + (typeof orgsListPendingInvitations)["responder"] & KoaRuntimeResponder export type OrgsListPendingInvitations = ( params: Params< @@ -10387,24 +8571,15 @@ export type OrgsListPendingInvitations = ( | Response<404, t_basic_error> > -const orgsCreateInvitationResponder = { - with201: r.with201, - with404: r.with404, - with422: r.with422, +const orgsCreateInvitation = b((r) => ({ + with201: r.with201(s_organization_invitation), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsCreateInvitationResponder = typeof orgsCreateInvitationResponder & - KoaRuntimeResponder - -const orgsCreateInvitationResponseValidator = responseValidationFactory( - [ - ["201", s_organization_invitation], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type OrgsCreateInvitationResponder = + (typeof orgsCreateInvitation)["responder"] & KoaRuntimeResponder export type OrgsCreateInvitation = ( params: Params< @@ -10422,24 +8597,15 @@ export type OrgsCreateInvitation = ( | Response<422, t_validation_error> > -const orgsCancelInvitationResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const orgsCancelInvitation = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsCancelInvitationResponder = typeof orgsCancelInvitationResponder & - KoaRuntimeResponder - -const orgsCancelInvitationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type OrgsCancelInvitationResponder = + (typeof orgsCancelInvitation)["responder"] & KoaRuntimeResponder export type OrgsCancelInvitation = ( params: Params, @@ -10452,22 +8618,14 @@ export type OrgsCancelInvitation = ( | Response<422, t_validation_error> > -const orgsListInvitationTeamsResponder = { - with200: r.with200, - with404: r.with404, +const orgsListInvitationTeams = b((r) => ({ + with200: r.with200(z.array(s_team)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsListInvitationTeamsResponder = - typeof orgsListInvitationTeamsResponder & KoaRuntimeResponder - -const orgsListInvitationTeamsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team)], - ["404", s_basic_error], - ], - undefined, -) + (typeof orgsListInvitationTeams)["responder"] & KoaRuntimeResponder export type OrgsListInvitationTeams = ( params: Params< @@ -10484,23 +8642,15 @@ export type OrgsListInvitationTeams = ( | Response<404, t_basic_error> > -const orgsListIssueTypesResponder = { - with200: r.with200, - with404: r.with404, +const orgsListIssueTypes = b((r) => ({ + with200: r.with200(z.array(s_issue_type)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsListIssueTypesResponder = typeof orgsListIssueTypesResponder & +type OrgsListIssueTypesResponder = (typeof orgsListIssueTypes)["responder"] & KoaRuntimeResponder -const orgsListIssueTypesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_type)], - ["404", s_basic_error], - ], - undefined, -) - export type OrgsListIssueTypes = ( params: Params, respond: OrgsListIssueTypesResponder, @@ -10511,25 +8661,16 @@ export type OrgsListIssueTypes = ( | Response<404, t_basic_error> > -const orgsCreateIssueTypeResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const orgsCreateIssueType = b((r) => ({ + with200: r.with200(s_issue_type), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type OrgsCreateIssueTypeResponder = typeof orgsCreateIssueTypeResponder & +type OrgsCreateIssueTypeResponder = (typeof orgsCreateIssueType)["responder"] & KoaRuntimeResponder -const orgsCreateIssueTypeResponseValidator = responseValidationFactory( - [ - ["200", s_issue_type], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type OrgsCreateIssueType = ( params: Params< t_OrgsCreateIssueTypeParamSchema, @@ -10546,25 +8687,16 @@ export type OrgsCreateIssueType = ( | Response<422, t_validation_error_simple> > -const orgsUpdateIssueTypeResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const orgsUpdateIssueType = b((r) => ({ + with200: r.with200(s_issue_type), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type OrgsUpdateIssueTypeResponder = typeof orgsUpdateIssueTypeResponder & +type OrgsUpdateIssueTypeResponder = (typeof orgsUpdateIssueType)["responder"] & KoaRuntimeResponder -const orgsUpdateIssueTypeResponseValidator = responseValidationFactory( - [ - ["200", s_issue_type], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type OrgsUpdateIssueType = ( params: Params< t_OrgsUpdateIssueTypeParamSchema, @@ -10581,25 +8713,16 @@ export type OrgsUpdateIssueType = ( | Response<422, t_validation_error_simple> > -const orgsDeleteIssueTypeResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const orgsDeleteIssueType = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type OrgsDeleteIssueTypeResponder = typeof orgsDeleteIssueTypeResponder & +type OrgsDeleteIssueTypeResponder = (typeof orgsDeleteIssueType)["responder"] & KoaRuntimeResponder -const orgsDeleteIssueTypeResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type OrgsDeleteIssueType = ( params: Params, respond: OrgsDeleteIssueTypeResponder, @@ -10611,23 +8734,15 @@ export type OrgsDeleteIssueType = ( | Response<422, t_validation_error_simple> > -const issuesListForOrgResponder = { - with200: r.with200, - with404: r.with404, +const issuesListForOrg = b((r) => ({ + with200: r.with200(z.array(s_issue)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesListForOrgResponder = typeof issuesListForOrgResponder & +type IssuesListForOrgResponder = (typeof issuesListForOrg)["responder"] & KoaRuntimeResponder -const issuesListForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["404", s_basic_error], - ], - undefined, -) - export type IssuesListForOrg = ( params: Params< t_IssuesListForOrgParamSchema, @@ -10643,23 +8758,15 @@ export type IssuesListForOrg = ( | Response<404, t_basic_error> > -const orgsListMembersResponder = { - with200: r.with200, - with422: r.with422, +const orgsListMembers = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsListMembersResponder = typeof orgsListMembersResponder & +type OrgsListMembersResponder = (typeof orgsListMembers)["responder"] & KoaRuntimeResponder -const orgsListMembersResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["422", s_validation_error], - ], - undefined, -) - export type OrgsListMembers = ( params: Params< t_OrgsListMembersParamSchema, @@ -10675,24 +8782,15 @@ export type OrgsListMembers = ( | Response<422, t_validation_error> > -const orgsCheckMembershipForUserResponder = { - with204: r.with204, - with302: r.with302, - with404: r.with404, +const orgsCheckMembershipForUser = b((r) => ({ + with204: r.with204(z.undefined()), + with302: r.with302(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsCheckMembershipForUserResponder = - typeof orgsCheckMembershipForUserResponder & KoaRuntimeResponder - -const orgsCheckMembershipForUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["302", z.undefined()], - ["404", z.undefined()], - ], - undefined, -) + (typeof orgsCheckMembershipForUser)["responder"] & KoaRuntimeResponder export type OrgsCheckMembershipForUser = ( params: Params, @@ -10705,23 +8803,15 @@ export type OrgsCheckMembershipForUser = ( | Response<404, void> > -const orgsRemoveMemberResponder = { - with204: r.with204, - with403: r.with403, +const orgsRemoveMember = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsRemoveMemberResponder = typeof orgsRemoveMemberResponder & +type OrgsRemoveMemberResponder = (typeof orgsRemoveMember)["responder"] & KoaRuntimeResponder -const orgsRemoveMemberResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ], - undefined, -) - export type OrgsRemoveMember = ( params: Params, respond: OrgsRemoveMemberResponder, @@ -10732,40 +8822,27 @@ export type OrgsRemoveMember = ( | Response<403, t_basic_error> > -const codespacesGetCodespacesForUserInOrgResponder = { +const codespacesGetCodespacesForUserInOrg = b((r) => ({ with200: r.with200<{ codespaces: t_codespace[] total_count: number - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_count: z.coerce.number(), + codespaces: z.array(s_codespace), + }), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesGetCodespacesForUserInOrgResponder = - typeof codespacesGetCodespacesForUserInOrgResponder & KoaRuntimeResponder - -const codespacesGetCodespacesForUserInOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - codespaces: z.array(s_codespace), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesGetCodespacesForUserInOrg)["responder"] & + KoaRuntimeResponder export type CodespacesGetCodespacesForUserInOrg = ( params: Params< @@ -10792,33 +8869,20 @@ export type CodespacesGetCodespacesForUserInOrg = ( | Response<500, t_basic_error> > -const codespacesDeleteFromOrganizationResponder = { +const codespacesDeleteFromOrganization = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>(z.record(z.unknown())), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesDeleteFromOrganizationResponder = - typeof codespacesDeleteFromOrganizationResponder & KoaRuntimeResponder - -const codespacesDeleteFromOrganizationResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesDeleteFromOrganization)["responder"] & KoaRuntimeResponder export type CodespacesDeleteFromOrganization = ( params: Params< @@ -10844,30 +8908,18 @@ export type CodespacesDeleteFromOrganization = ( | Response<500, t_basic_error> > -const codespacesStopInOrganizationResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, +const codespacesStopInOrganization = b((r) => ({ + with200: r.with200(s_codespace), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesStopInOrganizationResponder = - typeof codespacesStopInOrganizationResponder & KoaRuntimeResponder - -const codespacesStopInOrganizationResponseValidator = responseValidationFactory( - [ - ["200", s_codespace], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof codespacesStopInOrganization)["responder"] & KoaRuntimeResponder export type CodespacesStopInOrganization = ( params: Params, @@ -10883,31 +8935,19 @@ export type CodespacesStopInOrganization = ( | Response<500, t_basic_error> > -const copilotGetCopilotSeatDetailsForUserResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const copilotGetCopilotSeatDetailsForUser = b((r) => ({ + with200: r.with200(s_copilot_seat_details), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotGetCopilotSeatDetailsForUserResponder = - typeof copilotGetCopilotSeatDetailsForUserResponder & KoaRuntimeResponder - -const copilotGetCopilotSeatDetailsForUserResponseValidator = - responseValidationFactory( - [ - ["200", s_copilot_seat_details], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ["500", s_basic_error], - ], - undefined, - ) + (typeof copilotGetCopilotSeatDetailsForUser)["responder"] & + KoaRuntimeResponder export type CopilotGetCopilotSeatDetailsForUser = ( params: Params< @@ -10928,24 +8968,15 @@ export type CopilotGetCopilotSeatDetailsForUser = ( | Response<500, t_basic_error> > -const orgsGetMembershipForUserResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const orgsGetMembershipForUser = b((r) => ({ + with200: r.with200(s_org_membership), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsGetMembershipForUserResponder = - typeof orgsGetMembershipForUserResponder & KoaRuntimeResponder - -const orgsGetMembershipForUserResponseValidator = responseValidationFactory( - [ - ["200", s_org_membership], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof orgsGetMembershipForUser)["responder"] & KoaRuntimeResponder export type OrgsGetMembershipForUser = ( params: Params, @@ -10958,24 +8989,15 @@ export type OrgsGetMembershipForUser = ( | Response<404, t_basic_error> > -const orgsSetMembershipForUserResponder = { - with200: r.with200, - with403: r.with403, - with422: r.with422, +const orgsSetMembershipForUser = b((r) => ({ + with200: r.with200(s_org_membership), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type OrgsSetMembershipForUserResponder = - typeof orgsSetMembershipForUserResponder & KoaRuntimeResponder - -const orgsSetMembershipForUserResponseValidator = responseValidationFactory( - [ - ["200", s_org_membership], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof orgsSetMembershipForUser)["responder"] & KoaRuntimeResponder export type OrgsSetMembershipForUser = ( params: Params< @@ -10993,24 +9015,15 @@ export type OrgsSetMembershipForUser = ( | Response<422, t_validation_error> > -const orgsRemoveMembershipForUserResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, +const orgsRemoveMembershipForUser = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsRemoveMembershipForUserResponder = - typeof orgsRemoveMembershipForUserResponder & KoaRuntimeResponder - -const orgsRemoveMembershipForUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof orgsRemoveMembershipForUser)["responder"] & KoaRuntimeResponder export type OrgsRemoveMembershipForUser = ( params: Params, @@ -11023,18 +9036,13 @@ export type OrgsRemoveMembershipForUser = ( | Response<404, t_basic_error> > -const migrationsListForOrgResponder = { - with200: r.with200, +const migrationsListForOrg = b((r) => ({ + with200: r.with200(z.array(s_migration)), withStatus: r.withStatus, -} - -type MigrationsListForOrgResponder = typeof migrationsListForOrgResponder & - KoaRuntimeResponder +})) -const migrationsListForOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_migration)]], - undefined, -) +type MigrationsListForOrgResponder = + (typeof migrationsListForOrg)["responder"] & KoaRuntimeResponder export type MigrationsListForOrg = ( params: Params< @@ -11047,24 +9055,15 @@ export type MigrationsListForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_migration[]>> -const migrationsStartForOrgResponder = { - with201: r.with201, - with404: r.with404, - with422: r.with422, +const migrationsStartForOrg = b((r) => ({ + with201: r.with201(s_migration), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type MigrationsStartForOrgResponder = typeof migrationsStartForOrgResponder & - KoaRuntimeResponder - -const migrationsStartForOrgResponseValidator = responseValidationFactory( - [ - ["201", s_migration], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type MigrationsStartForOrgResponder = + (typeof migrationsStartForOrg)["responder"] & KoaRuntimeResponder export type MigrationsStartForOrg = ( params: Params< @@ -11082,22 +9081,14 @@ export type MigrationsStartForOrg = ( | Response<422, t_validation_error> > -const migrationsGetStatusForOrgResponder = { - with200: r.with200, - with404: r.with404, +const migrationsGetStatusForOrg = b((r) => ({ + with200: r.with200(s_migration), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsGetStatusForOrgResponder = - typeof migrationsGetStatusForOrgResponder & KoaRuntimeResponder - -const migrationsGetStatusForOrgResponseValidator = responseValidationFactory( - [ - ["200", s_migration], - ["404", s_basic_error], - ], - undefined, -) + (typeof migrationsGetStatusForOrg)["responder"] & KoaRuntimeResponder export type MigrationsGetStatusForOrg = ( params: Params< @@ -11114,23 +9105,14 @@ export type MigrationsGetStatusForOrg = ( | Response<404, t_basic_error> > -const migrationsDownloadArchiveForOrgResponder = { - with302: r.with302, - with404: r.with404, +const migrationsDownloadArchiveForOrg = b((r) => ({ + with302: r.with302(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsDownloadArchiveForOrgResponder = - typeof migrationsDownloadArchiveForOrgResponder & KoaRuntimeResponder - -const migrationsDownloadArchiveForOrgResponseValidator = - responseValidationFactory( - [ - ["302", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) + (typeof migrationsDownloadArchiveForOrg)["responder"] & KoaRuntimeResponder export type MigrationsDownloadArchiveForOrg = ( params: Params< @@ -11147,23 +9129,14 @@ export type MigrationsDownloadArchiveForOrg = ( | Response<404, t_basic_error> > -const migrationsDeleteArchiveForOrgResponder = { - with204: r.with204, - with404: r.with404, +const migrationsDeleteArchiveForOrg = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsDeleteArchiveForOrgResponder = - typeof migrationsDeleteArchiveForOrgResponder & KoaRuntimeResponder - -const migrationsDeleteArchiveForOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) + (typeof migrationsDeleteArchiveForOrg)["responder"] & KoaRuntimeResponder export type MigrationsDeleteArchiveForOrg = ( params: Params, @@ -11175,22 +9148,14 @@ export type MigrationsDeleteArchiveForOrg = ( | Response<404, t_basic_error> > -const migrationsUnlockRepoForOrgResponder = { - with204: r.with204, - with404: r.with404, +const migrationsUnlockRepoForOrg = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsUnlockRepoForOrgResponder = - typeof migrationsUnlockRepoForOrgResponder & KoaRuntimeResponder - -const migrationsUnlockRepoForOrgResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof migrationsUnlockRepoForOrg)["responder"] & KoaRuntimeResponder export type MigrationsUnlockRepoForOrg = ( params: Params, @@ -11202,22 +9167,14 @@ export type MigrationsUnlockRepoForOrg = ( | Response<404, t_basic_error> > -const migrationsListReposForOrgResponder = { - with200: r.with200, - with404: r.with404, +const migrationsListReposForOrg = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsListReposForOrgResponder = - typeof migrationsListReposForOrgResponder & KoaRuntimeResponder - -const migrationsListReposForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["404", s_basic_error], - ], - undefined, -) + (typeof migrationsListReposForOrg)["responder"] & KoaRuntimeResponder export type MigrationsListReposForOrg = ( params: Params< @@ -11234,34 +9191,24 @@ export type MigrationsListReposForOrg = ( | Response<404, t_basic_error> > -const orgsListOrgRolesResponder = { +const orgsListOrgRoles = b((r) => ({ with200: r.with200<{ roles?: t_organization_role[] total_count?: number - }>, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number().optional(), + roles: z.array(s_organization_role).optional(), + }), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsListOrgRolesResponder = typeof orgsListOrgRolesResponder & +type OrgsListOrgRolesResponder = (typeof orgsListOrgRoles)["responder"] & KoaRuntimeResponder -const orgsListOrgRolesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number().optional(), - roles: z.array(s_organization_role).optional(), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type OrgsListOrgRoles = ( params: Params, respond: OrgsListOrgRolesResponder, @@ -11279,18 +9226,13 @@ export type OrgsListOrgRoles = ( | Response<422, t_validation_error> > -const orgsRevokeAllOrgRolesTeamResponder = { - with204: r.with204, +const orgsRevokeAllOrgRolesTeam = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsRevokeAllOrgRolesTeamResponder = - typeof orgsRevokeAllOrgRolesTeamResponder & KoaRuntimeResponder - -const orgsRevokeAllOrgRolesTeamResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof orgsRevokeAllOrgRolesTeam)["responder"] & KoaRuntimeResponder export type OrgsRevokeAllOrgRolesTeam = ( params: Params, @@ -11298,24 +9240,15 @@ export type OrgsRevokeAllOrgRolesTeam = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const orgsAssignTeamToOrgRoleResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const orgsAssignTeamToOrgRole = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsAssignTeamToOrgRoleResponder = - typeof orgsAssignTeamToOrgRoleResponder & KoaRuntimeResponder - -const orgsAssignTeamToOrgRoleResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, -) + (typeof orgsAssignTeamToOrgRole)["responder"] & KoaRuntimeResponder export type OrgsAssignTeamToOrgRole = ( params: Params, @@ -11328,18 +9261,13 @@ export type OrgsAssignTeamToOrgRole = ( | Response<422, void> > -const orgsRevokeOrgRoleTeamResponder = { - with204: r.with204, +const orgsRevokeOrgRoleTeam = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type OrgsRevokeOrgRoleTeamResponder = typeof orgsRevokeOrgRoleTeamResponder & - KoaRuntimeResponder - -const orgsRevokeOrgRoleTeamResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type OrgsRevokeOrgRoleTeamResponder = + (typeof orgsRevokeOrgRoleTeam)["responder"] & KoaRuntimeResponder export type OrgsRevokeOrgRoleTeam = ( params: Params, @@ -11347,18 +9275,13 @@ export type OrgsRevokeOrgRoleTeam = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const orgsRevokeAllOrgRolesUserResponder = { - with204: r.with204, +const orgsRevokeAllOrgRolesUser = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsRevokeAllOrgRolesUserResponder = - typeof orgsRevokeAllOrgRolesUserResponder & KoaRuntimeResponder - -const orgsRevokeAllOrgRolesUserResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof orgsRevokeAllOrgRolesUser)["responder"] & KoaRuntimeResponder export type OrgsRevokeAllOrgRolesUser = ( params: Params, @@ -11366,24 +9289,15 @@ export type OrgsRevokeAllOrgRolesUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const orgsAssignUserToOrgRoleResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const orgsAssignUserToOrgRole = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsAssignUserToOrgRoleResponder = - typeof orgsAssignUserToOrgRoleResponder & KoaRuntimeResponder - -const orgsAssignUserToOrgRoleResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, -) + (typeof orgsAssignUserToOrgRole)["responder"] & KoaRuntimeResponder export type OrgsAssignUserToOrgRole = ( params: Params, @@ -11396,18 +9310,13 @@ export type OrgsAssignUserToOrgRole = ( | Response<422, void> > -const orgsRevokeOrgRoleUserResponder = { - with204: r.with204, +const orgsRevokeOrgRoleUser = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type OrgsRevokeOrgRoleUserResponder = typeof orgsRevokeOrgRoleUserResponder & - KoaRuntimeResponder - -const orgsRevokeOrgRoleUserResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type OrgsRevokeOrgRoleUserResponder = + (typeof orgsRevokeOrgRoleUser)["responder"] & KoaRuntimeResponder export type OrgsRevokeOrgRoleUser = ( params: Params, @@ -11415,25 +9324,16 @@ export type OrgsRevokeOrgRoleUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const orgsGetOrgRoleResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const orgsGetOrgRole = b((r) => ({ + with200: r.with200(s_organization_role), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type OrgsGetOrgRoleResponder = typeof orgsGetOrgRoleResponder & +type OrgsGetOrgRoleResponder = (typeof orgsGetOrgRole)["responder"] & KoaRuntimeResponder -const orgsGetOrgRoleResponseValidator = responseValidationFactory( - [ - ["200", s_organization_role], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type OrgsGetOrgRole = ( params: Params, respond: OrgsGetOrgRoleResponder, @@ -11445,24 +9345,15 @@ export type OrgsGetOrgRole = ( | Response<422, t_validation_error> > -const orgsListOrgRoleTeamsResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const orgsListOrgRoleTeams = b((r) => ({ + with200: r.with200(z.array(s_team_role_assignment)), + with404: r.with404(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) -type OrgsListOrgRoleTeamsResponder = typeof orgsListOrgRoleTeamsResponder & - KoaRuntimeResponder - -const orgsListOrgRoleTeamsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team_role_assignment)], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, -) +type OrgsListOrgRoleTeamsResponder = + (typeof orgsListOrgRoleTeams)["responder"] & KoaRuntimeResponder export type OrgsListOrgRoleTeams = ( params: Params< @@ -11480,24 +9371,15 @@ export type OrgsListOrgRoleTeams = ( | Response<422, void> > -const orgsListOrgRoleUsersResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const orgsListOrgRoleUsers = b((r) => ({ + with200: r.with200(z.array(s_user_role_assignment)), + with404: r.with404(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) -type OrgsListOrgRoleUsersResponder = typeof orgsListOrgRoleUsersResponder & - KoaRuntimeResponder - -const orgsListOrgRoleUsersResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_user_role_assignment)], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, -) +type OrgsListOrgRoleUsersResponder = + (typeof orgsListOrgRoleUsers)["responder"] & KoaRuntimeResponder export type OrgsListOrgRoleUsers = ( params: Params< @@ -11515,18 +9397,13 @@ export type OrgsListOrgRoleUsers = ( | Response<422, void> > -const orgsListOutsideCollaboratorsResponder = { - with200: r.with200, +const orgsListOutsideCollaborators = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), withStatus: r.withStatus, -} +})) type OrgsListOutsideCollaboratorsResponder = - typeof orgsListOutsideCollaboratorsResponder & KoaRuntimeResponder - -const orgsListOutsideCollaboratorsResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, -) + (typeof orgsListOutsideCollaborators)["responder"] & KoaRuntimeResponder export type OrgsListOutsideCollaborators = ( params: Params< @@ -11539,27 +9416,17 @@ export type OrgsListOutsideCollaborators = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -const orgsConvertMemberToOutsideCollaboratorResponder = { - with202: r.with202, - with204: r.with204, - with403: r.with403, - with404: r.with404, +const orgsConvertMemberToOutsideCollaborator = b((r) => ({ + with202: r.with202(z.object({})), + with204: r.with204(z.undefined()), + with403: r.with403(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsConvertMemberToOutsideCollaboratorResponder = - typeof orgsConvertMemberToOutsideCollaboratorResponder & KoaRuntimeResponder - -const orgsConvertMemberToOutsideCollaboratorResponseValidator = - responseValidationFactory( - [ - ["202", z.object({})], - ["204", z.undefined()], - ["403", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) + (typeof orgsConvertMemberToOutsideCollaborator)["responder"] & + KoaRuntimeResponder export type OrgsConvertMemberToOutsideCollaborator = ( params: Params< @@ -11578,32 +9445,22 @@ export type OrgsConvertMemberToOutsideCollaborator = ( | Response<404, t_basic_error> > -const orgsRemoveOutsideCollaboratorResponder = { - with204: r.with204, +const orgsRemoveOutsideCollaborator = b((r) => ({ + with204: r.with204(z.undefined()), with422: r.with422<{ documentation_url?: string message?: string - }>, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type OrgsRemoveOutsideCollaboratorResponder = - typeof orgsRemoveOutsideCollaboratorResponder & KoaRuntimeResponder - -const orgsRemoveOutsideCollaboratorResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - [ - "422", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof orgsRemoveOutsideCollaborator)["responder"] & KoaRuntimeResponder export type OrgsRemoveOutsideCollaborator = ( params: Params, @@ -11621,27 +9478,17 @@ export type OrgsRemoveOutsideCollaborator = ( > > -const packagesListPackagesForOrganizationResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, +const packagesListPackagesForOrganization = b((r) => ({ + with200: r.with200(z.array(s_package)), + with400: r.with400(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesListPackagesForOrganizationResponder = - typeof packagesListPackagesForOrganizationResponder & KoaRuntimeResponder - -const packagesListPackagesForOrganizationResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["400", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof packagesListPackagesForOrganization)["responder"] & + KoaRuntimeResponder export type PackagesListPackagesForOrganization = ( params: Params< @@ -11660,16 +9507,13 @@ export type PackagesListPackagesForOrganization = ( | Response<403, t_basic_error> > -const packagesGetPackageForOrganizationResponder = { - with200: r.with200, +const packagesGetPackageForOrganization = b((r) => ({ + with200: r.with200(s_package), withStatus: r.withStatus, -} +})) type PackagesGetPackageForOrganizationResponder = - typeof packagesGetPackageForOrganizationResponder & KoaRuntimeResponder - -const packagesGetPackageForOrganizationResponseValidator = - responseValidationFactory([["200", s_package]], undefined) + (typeof packagesGetPackageForOrganization)["responder"] & KoaRuntimeResponder export type PackagesGetPackageForOrganization = ( params: Params< @@ -11682,26 +9526,16 @@ export type PackagesGetPackageForOrganization = ( ctx: RouterContext, ) => Promise | Response<200, t_package>> -const packagesDeletePackageForOrgResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesDeletePackageForOrg = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesDeletePackageForOrgResponder = - typeof packagesDeletePackageForOrgResponder & KoaRuntimeResponder - -const packagesDeletePackageForOrgResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof packagesDeletePackageForOrg)["responder"] & KoaRuntimeResponder export type PackagesDeletePackageForOrg = ( params: Params, @@ -11715,26 +9549,16 @@ export type PackagesDeletePackageForOrg = ( | Response<404, t_basic_error> > -const packagesRestorePackageForOrgResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesRestorePackageForOrg = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesRestorePackageForOrgResponder = - typeof packagesRestorePackageForOrgResponder & KoaRuntimeResponder - -const packagesRestorePackageForOrgResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof packagesRestorePackageForOrg)["responder"] & KoaRuntimeResponder export type PackagesRestorePackageForOrg = ( params: Params< @@ -11753,29 +9577,18 @@ export type PackagesRestorePackageForOrg = ( | Response<404, t_basic_error> > -const packagesGetAllPackageVersionsForPackageOwnedByOrgResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesGetAllPackageVersionsForPackageOwnedByOrg = b((r) => ({ + with200: r.with200(z.array(s_package_version)), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesGetAllPackageVersionsForPackageOwnedByOrgResponder = - typeof packagesGetAllPackageVersionsForPackageOwnedByOrgResponder & + (typeof packagesGetAllPackageVersionsForPackageOwnedByOrg)["responder"] & KoaRuntimeResponder -const packagesGetAllPackageVersionsForPackageOwnedByOrgResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package_version)], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PackagesGetAllPackageVersionsForPackageOwnedByOrg = ( params: Params< t_PackagesGetAllPackageVersionsForPackageOwnedByOrgParamSchema, @@ -11793,16 +9606,14 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByOrg = ( | Response<404, t_basic_error> > -const packagesGetPackageVersionForOrganizationResponder = { - with200: r.with200, +const packagesGetPackageVersionForOrganization = b((r) => ({ + with200: r.with200(s_package_version), withStatus: r.withStatus, -} +})) type PackagesGetPackageVersionForOrganizationResponder = - typeof packagesGetPackageVersionForOrganizationResponder & KoaRuntimeResponder - -const packagesGetPackageVersionForOrganizationResponseValidator = - responseValidationFactory([["200", s_package_version]], undefined) + (typeof packagesGetPackageVersionForOrganization)["responder"] & + KoaRuntimeResponder export type PackagesGetPackageVersionForOrganization = ( params: Params< @@ -11815,27 +9626,16 @@ export type PackagesGetPackageVersionForOrganization = ( ctx: RouterContext, ) => Promise | Response<200, t_package_version>> -const packagesDeletePackageVersionForOrgResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesDeletePackageVersionForOrg = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesDeletePackageVersionForOrgResponder = - typeof packagesDeletePackageVersionForOrgResponder & KoaRuntimeResponder - -const packagesDeletePackageVersionForOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof packagesDeletePackageVersionForOrg)["responder"] & KoaRuntimeResponder export type PackagesDeletePackageVersionForOrg = ( params: Params< @@ -11854,27 +9654,17 @@ export type PackagesDeletePackageVersionForOrg = ( | Response<404, t_basic_error> > -const packagesRestorePackageVersionForOrgResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesRestorePackageVersionForOrg = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesRestorePackageVersionForOrgResponder = - typeof packagesRestorePackageVersionForOrgResponder & KoaRuntimeResponder - -const packagesRestorePackageVersionForOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof packagesRestorePackageVersionForOrg)["responder"] & + KoaRuntimeResponder export type PackagesRestorePackageVersionForOrg = ( params: Params< @@ -11893,28 +9683,19 @@ export type PackagesRestorePackageVersionForOrg = ( | Response<404, t_basic_error> > -const orgsListPatGrantRequestsResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const orgsListPatGrantRequests = b((r) => ({ + with200: r.with200( + z.array(s_organization_programmatic_access_grant_request), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsListPatGrantRequestsResponder = - typeof orgsListPatGrantRequestsResponder & KoaRuntimeResponder - -const orgsListPatGrantRequestsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_programmatic_access_grant_request)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof orgsListPatGrantRequests)["responder"] & KoaRuntimeResponder export type OrgsListPatGrantRequests = ( params: Params< @@ -11934,31 +9715,19 @@ export type OrgsListPatGrantRequests = ( | Response<500, t_basic_error> > -const orgsReviewPatGrantRequestsInBulkResponder = { +const orgsReviewPatGrantRequestsInBulk = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, + }>(z.record(z.unknown())), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsReviewPatGrantRequestsInBulkResponder = - typeof orgsReviewPatGrantRequestsInBulkResponder & KoaRuntimeResponder - -const orgsReviewPatGrantRequestsInBulkResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof orgsReviewPatGrantRequestsInBulk)["responder"] & KoaRuntimeResponder export type OrgsReviewPatGrantRequestsInBulk = ( params: Params< @@ -11983,28 +9752,17 @@ export type OrgsReviewPatGrantRequestsInBulk = ( | Response<500, t_basic_error> > -const orgsReviewPatGrantRequestResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const orgsReviewPatGrantRequest = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsReviewPatGrantRequestResponder = - typeof orgsReviewPatGrantRequestResponder & KoaRuntimeResponder - -const orgsReviewPatGrantRequestResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof orgsReviewPatGrantRequest)["responder"] & KoaRuntimeResponder export type OrgsReviewPatGrantRequest = ( params: Params< @@ -12024,27 +9782,17 @@ export type OrgsReviewPatGrantRequest = ( | Response<500, t_basic_error> > -const orgsListPatGrantRequestRepositoriesResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with500: r.with500, +const orgsListPatGrantRequestRepositories = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsListPatGrantRequestRepositoriesResponder = - typeof orgsListPatGrantRequestRepositoriesResponder & KoaRuntimeResponder - -const orgsListPatGrantRequestRepositoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof orgsListPatGrantRequestRepositories)["responder"] & + KoaRuntimeResponder export type OrgsListPatGrantRequestRepositories = ( params: Params< @@ -12063,29 +9811,20 @@ export type OrgsListPatGrantRequestRepositories = ( | Response<500, t_basic_error> > -const orgsListPatGrantsResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const orgsListPatGrants = b((r) => ({ + with200: r.with200( + z.array(s_organization_programmatic_access_grant), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsListPatGrantsResponder = typeof orgsListPatGrantsResponder & +type OrgsListPatGrantsResponder = (typeof orgsListPatGrants)["responder"] & KoaRuntimeResponder -const orgsListPatGrantsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_programmatic_access_grant)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, -) - export type OrgsListPatGrants = ( params: Params< t_OrgsListPatGrantsParamSchema, @@ -12104,30 +9843,19 @@ export type OrgsListPatGrants = ( | Response<500, t_basic_error> > -const orgsUpdatePatAccessesResponder = { +const orgsUpdatePatAccesses = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, + }>(z.record(z.unknown())), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsUpdatePatAccessesResponder = typeof orgsUpdatePatAccessesResponder & - KoaRuntimeResponder - -const orgsUpdatePatAccessesResponseValidator = responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, -) +type OrgsUpdatePatAccessesResponder = + (typeof orgsUpdatePatAccesses)["responder"] & KoaRuntimeResponder export type OrgsUpdatePatAccesses = ( params: Params< @@ -12152,29 +9880,18 @@ export type OrgsUpdatePatAccesses = ( | Response<500, t_basic_error> > -const orgsUpdatePatAccessResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const orgsUpdatePatAccess = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsUpdatePatAccessResponder = typeof orgsUpdatePatAccessResponder & +type OrgsUpdatePatAccessResponder = (typeof orgsUpdatePatAccess)["responder"] & KoaRuntimeResponder -const orgsUpdatePatAccessResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, -) - export type OrgsUpdatePatAccess = ( params: Params< t_OrgsUpdatePatAccessParamSchema, @@ -12193,26 +9910,16 @@ export type OrgsUpdatePatAccess = ( | Response<500, t_basic_error> > -const orgsListPatGrantRepositoriesResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with500: r.with500, +const orgsListPatGrantRepositories = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsListPatGrantRepositoriesResponder = - typeof orgsListPatGrantRepositoriesResponder & KoaRuntimeResponder - -const orgsListPatGrantRepositoriesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof orgsListPatGrantRepositories)["responder"] & KoaRuntimeResponder export type OrgsListPatGrantRepositories = ( params: Params< @@ -12231,36 +9938,25 @@ export type OrgsListPatGrantRepositories = ( | Response<500, t_basic_error> > -const privateRegistriesListOrgPrivateRegistriesResponder = { +const privateRegistriesListOrgPrivateRegistries = b((r) => ({ with200: r.with200<{ configurations: t_org_private_registry_configuration[] total_count: number - }>, - with400: r.with400, - with404: r.with404, + }>( + z.object({ + total_count: z.coerce.number(), + configurations: z.array(s_org_private_registry_configuration), + }), + ), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PrivateRegistriesListOrgPrivateRegistriesResponder = - typeof privateRegistriesListOrgPrivateRegistriesResponder & + (typeof privateRegistriesListOrgPrivateRegistries)["responder"] & KoaRuntimeResponder -const privateRegistriesListOrgPrivateRegistriesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - configurations: z.array(s_org_private_registry_configuration), - }), - ], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PrivateRegistriesListOrgPrivateRegistries = ( params: Params< t_PrivateRegistriesListOrgPrivateRegistriesParamSchema, @@ -12283,28 +9979,20 @@ export type PrivateRegistriesListOrgPrivateRegistries = ( | Response<404, t_basic_error> > -const privateRegistriesCreateOrgPrivateRegistryResponder = { +const privateRegistriesCreateOrgPrivateRegistry = b((r) => ({ with201: - r.with201, - with404: r.with404, - with422: r.with422, + r.with201( + s_org_private_registry_configuration_with_selected_repositories, + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type PrivateRegistriesCreateOrgPrivateRegistryResponder = - typeof privateRegistriesCreateOrgPrivateRegistryResponder & + (typeof privateRegistriesCreateOrgPrivateRegistry)["responder"] & KoaRuntimeResponder -const privateRegistriesCreateOrgPrivateRegistryResponseValidator = - responseValidationFactory( - [ - ["201", s_org_private_registry_configuration_with_selected_repositories], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type PrivateRegistriesCreateOrgPrivateRegistry = ( params: Params< t_PrivateRegistriesCreateOrgPrivateRegistryParamSchema, @@ -12324,26 +10012,17 @@ export type PrivateRegistriesCreateOrgPrivateRegistry = ( | Response<422, t_validation_error> > -const privateRegistriesGetOrgPublicKeyResponder = { +const privateRegistriesGetOrgPublicKey = b((r) => ({ with200: r.with200<{ key: string key_id: string - }>, - with404: r.with404, + }>(z.object({ key_id: z.string(), key: z.string() })), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PrivateRegistriesGetOrgPublicKeyResponder = - typeof privateRegistriesGetOrgPublicKeyResponder & KoaRuntimeResponder - -const privateRegistriesGetOrgPublicKeyResponseValidator = - responseValidationFactory( - [ - ["200", z.object({ key_id: z.string(), key: z.string() })], - ["404", s_basic_error], - ], - undefined, - ) + (typeof privateRegistriesGetOrgPublicKey)["responder"] & KoaRuntimeResponder export type PrivateRegistriesGetOrgPublicKey = ( params: Params< @@ -12366,23 +10045,17 @@ export type PrivateRegistriesGetOrgPublicKey = ( | Response<404, t_basic_error> > -const privateRegistriesGetOrgPrivateRegistryResponder = { - with200: r.with200, - with404: r.with404, +const privateRegistriesGetOrgPrivateRegistry = b((r) => ({ + with200: r.with200( + s_org_private_registry_configuration, + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PrivateRegistriesGetOrgPrivateRegistryResponder = - typeof privateRegistriesGetOrgPrivateRegistryResponder & KoaRuntimeResponder - -const privateRegistriesGetOrgPrivateRegistryResponseValidator = - responseValidationFactory( - [ - ["200", s_org_private_registry_configuration], - ["404", s_basic_error], - ], - undefined, - ) + (typeof privateRegistriesGetOrgPrivateRegistry)["responder"] & + KoaRuntimeResponder export type PrivateRegistriesGetOrgPrivateRegistry = ( params: Params< @@ -12399,27 +10072,17 @@ export type PrivateRegistriesGetOrgPrivateRegistry = ( | Response<404, t_basic_error> > -const privateRegistriesUpdateOrgPrivateRegistryResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const privateRegistriesUpdateOrgPrivateRegistry = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type PrivateRegistriesUpdateOrgPrivateRegistryResponder = - typeof privateRegistriesUpdateOrgPrivateRegistryResponder & + (typeof privateRegistriesUpdateOrgPrivateRegistry)["responder"] & KoaRuntimeResponder -const privateRegistriesUpdateOrgPrivateRegistryResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type PrivateRegistriesUpdateOrgPrivateRegistry = ( params: Params< t_PrivateRegistriesUpdateOrgPrivateRegistryParamSchema, @@ -12436,27 +10099,17 @@ export type PrivateRegistriesUpdateOrgPrivateRegistry = ( | Response<422, t_validation_error> > -const privateRegistriesDeleteOrgPrivateRegistryResponder = { - with204: r.with204, - with400: r.with400, - with404: r.with404, +const privateRegistriesDeleteOrgPrivateRegistry = b((r) => ({ + with204: r.with204(z.undefined()), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PrivateRegistriesDeleteOrgPrivateRegistryResponder = - typeof privateRegistriesDeleteOrgPrivateRegistryResponder & + (typeof privateRegistriesDeleteOrgPrivateRegistry)["responder"] & KoaRuntimeResponder -const privateRegistriesDeleteOrgPrivateRegistryResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PrivateRegistriesDeleteOrgPrivateRegistry = ( params: Params< t_PrivateRegistriesDeleteOrgPrivateRegistryParamSchema, @@ -12473,23 +10126,15 @@ export type PrivateRegistriesDeleteOrgPrivateRegistry = ( | Response<404, t_basic_error> > -const projectsListForOrgResponder = { - with200: r.with200, - with422: r.with422, +const projectsListForOrg = b((r) => ({ + with200: r.with200(z.array(s_project)), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type ProjectsListForOrgResponder = typeof projectsListForOrgResponder & +type ProjectsListForOrgResponder = (typeof projectsListForOrg)["responder"] & KoaRuntimeResponder -const projectsListForOrgResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project)], - ["422", s_validation_error_simple], - ], - undefined, -) - export type ProjectsListForOrg = ( params: Params< t_ProjectsListForOrgParamSchema, @@ -12505,30 +10150,18 @@ export type ProjectsListForOrg = ( | Response<422, t_validation_error_simple> > -const projectsCreateForOrgResponder = { - with201: r.with201, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const projectsCreateForOrg = b((r) => ({ + with201: r.with201(s_project), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} - -type ProjectsCreateForOrgResponder = typeof projectsCreateForOrgResponder & - KoaRuntimeResponder +})) -const projectsCreateForOrgResponseValidator = responseValidationFactory( - [ - ["201", s_project], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) +type ProjectsCreateForOrgResponder = + (typeof projectsCreateForOrg)["responder"] & KoaRuntimeResponder export type ProjectsCreateForOrg = ( params: Params< @@ -12549,24 +10182,15 @@ export type ProjectsCreateForOrg = ( | Response<422, t_validation_error_simple> > -const orgsGetAllCustomPropertiesResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const orgsGetAllCustomProperties = b((r) => ({ + with200: r.with200(z.array(s_custom_property)), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsGetAllCustomPropertiesResponder = - typeof orgsGetAllCustomPropertiesResponder & KoaRuntimeResponder - -const orgsGetAllCustomPropertiesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_custom_property)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof orgsGetAllCustomProperties)["responder"] & KoaRuntimeResponder export type OrgsGetAllCustomProperties = ( params: Params, @@ -12579,25 +10203,15 @@ export type OrgsGetAllCustomProperties = ( | Response<404, t_basic_error> > -const orgsCreateOrUpdateCustomPropertiesResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const orgsCreateOrUpdateCustomProperties = b((r) => ({ + with200: r.with200(z.array(s_custom_property)), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsCreateOrUpdateCustomPropertiesResponder = - typeof orgsCreateOrUpdateCustomPropertiesResponder & KoaRuntimeResponder - -const orgsCreateOrUpdateCustomPropertiesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_custom_property)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof orgsCreateOrUpdateCustomProperties)["responder"] & KoaRuntimeResponder export type OrgsCreateOrUpdateCustomProperties = ( params: Params< @@ -12615,24 +10229,15 @@ export type OrgsCreateOrUpdateCustomProperties = ( | Response<404, t_basic_error> > -const orgsGetCustomPropertyResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const orgsGetCustomProperty = b((r) => ({ + with200: r.with200(s_custom_property), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type OrgsGetCustomPropertyResponder = typeof orgsGetCustomPropertyResponder & - KoaRuntimeResponder - -const orgsGetCustomPropertyResponseValidator = responseValidationFactory( - [ - ["200", s_custom_property], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type OrgsGetCustomPropertyResponder = + (typeof orgsGetCustomProperty)["responder"] & KoaRuntimeResponder export type OrgsGetCustomProperty = ( params: Params, @@ -12645,25 +10250,15 @@ export type OrgsGetCustomProperty = ( | Response<404, t_basic_error> > -const orgsCreateOrUpdateCustomPropertyResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const orgsCreateOrUpdateCustomProperty = b((r) => ({ + with200: r.with200(s_custom_property), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsCreateOrUpdateCustomPropertyResponder = - typeof orgsCreateOrUpdateCustomPropertyResponder & KoaRuntimeResponder - -const orgsCreateOrUpdateCustomPropertyResponseValidator = - responseValidationFactory( - [ - ["200", s_custom_property], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof orgsCreateOrUpdateCustomProperty)["responder"] & KoaRuntimeResponder export type OrgsCreateOrUpdateCustomProperty = ( params: Params< @@ -12681,24 +10276,15 @@ export type OrgsCreateOrUpdateCustomProperty = ( | Response<404, t_basic_error> > -const orgsRemoveCustomPropertyResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, +const orgsRemoveCustomProperty = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsRemoveCustomPropertyResponder = - typeof orgsRemoveCustomPropertyResponder & KoaRuntimeResponder - -const orgsRemoveCustomPropertyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof orgsRemoveCustomProperty)["responder"] & KoaRuntimeResponder export type OrgsRemoveCustomProperty = ( params: Params, @@ -12711,25 +10297,18 @@ export type OrgsRemoveCustomProperty = ( | Response<404, t_basic_error> > -const orgsListCustomPropertiesValuesForReposResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const orgsListCustomPropertiesValuesForRepos = b((r) => ({ + with200: r.with200( + z.array(s_org_repo_custom_property_values), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsListCustomPropertiesValuesForReposResponder = - typeof orgsListCustomPropertiesValuesForReposResponder & KoaRuntimeResponder - -const orgsListCustomPropertiesValuesForReposResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_org_repo_custom_property_values)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof orgsListCustomPropertiesValuesForRepos)["responder"] & + KoaRuntimeResponder export type OrgsListCustomPropertiesValuesForRepos = ( params: Params< @@ -12747,29 +10326,18 @@ export type OrgsListCustomPropertiesValuesForRepos = ( | Response<404, t_basic_error> > -const orgsCreateOrUpdateCustomPropertiesValuesForReposResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const orgsCreateOrUpdateCustomPropertiesValuesForRepos = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type OrgsCreateOrUpdateCustomPropertiesValuesForReposResponder = - typeof orgsCreateOrUpdateCustomPropertiesValuesForReposResponder & + (typeof orgsCreateOrUpdateCustomPropertiesValuesForRepos)["responder"] & KoaRuntimeResponder -const orgsCreateOrUpdateCustomPropertiesValuesForReposResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type OrgsCreateOrUpdateCustomPropertiesValuesForRepos = ( params: Params< t_OrgsCreateOrUpdateCustomPropertiesValuesForReposParamSchema, @@ -12787,18 +10355,13 @@ export type OrgsCreateOrUpdateCustomPropertiesValuesForRepos = ( | Response<422, t_validation_error> > -const orgsListPublicMembersResponder = { - with200: r.with200, +const orgsListPublicMembers = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), withStatus: r.withStatus, -} - -type OrgsListPublicMembersResponder = typeof orgsListPublicMembersResponder & - KoaRuntimeResponder +})) -const orgsListPublicMembersResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, -) +type OrgsListPublicMembersResponder = + (typeof orgsListPublicMembers)["responder"] & KoaRuntimeResponder export type OrgsListPublicMembers = ( params: Params< @@ -12811,23 +10374,14 @@ export type OrgsListPublicMembers = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -const orgsCheckPublicMembershipForUserResponder = { - with204: r.with204, - with404: r.with404, +const orgsCheckPublicMembershipForUser = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsCheckPublicMembershipForUserResponder = - typeof orgsCheckPublicMembershipForUserResponder & KoaRuntimeResponder - -const orgsCheckPublicMembershipForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) + (typeof orgsCheckPublicMembershipForUser)["responder"] & KoaRuntimeResponder export type OrgsCheckPublicMembershipForUser = ( params: Params< @@ -12842,25 +10396,16 @@ export type OrgsCheckPublicMembershipForUser = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -const orgsSetPublicMembershipForAuthenticatedUserResponder = { - with204: r.with204, - with403: r.with403, +const orgsSetPublicMembershipForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsSetPublicMembershipForAuthenticatedUserResponder = - typeof orgsSetPublicMembershipForAuthenticatedUserResponder & + (typeof orgsSetPublicMembershipForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const orgsSetPublicMembershipForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ], - undefined, - ) - export type OrgsSetPublicMembershipForAuthenticatedUser = ( params: Params< t_OrgsSetPublicMembershipForAuthenticatedUserParamSchema, @@ -12876,18 +10421,15 @@ export type OrgsSetPublicMembershipForAuthenticatedUser = ( | Response<403, t_basic_error> > -const orgsRemovePublicMembershipForAuthenticatedUserResponder = { - with204: r.with204, +const orgsRemovePublicMembershipForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsRemovePublicMembershipForAuthenticatedUserResponder = - typeof orgsRemovePublicMembershipForAuthenticatedUserResponder & + (typeof orgsRemovePublicMembershipForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const orgsRemovePublicMembershipForAuthenticatedUserResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type OrgsRemovePublicMembershipForAuthenticatedUser = ( params: Params< t_OrgsRemovePublicMembershipForAuthenticatedUserParamSchema, @@ -12899,19 +10441,14 @@ export type OrgsRemovePublicMembershipForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposListForOrgResponder = { - with200: r.with200, +const reposListForOrg = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), withStatus: r.withStatus, -} +})) -type ReposListForOrgResponder = typeof reposListForOrgResponder & +type ReposListForOrgResponder = (typeof reposListForOrg)["responder"] & KoaRuntimeResponder -const reposListForOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_minimal_repository)]], - undefined, -) - export type ReposListForOrg = ( params: Params< t_ReposListForOrgParamSchema, @@ -12925,25 +10462,16 @@ export type ReposListForOrg = ( KoaRuntimeResponse | Response<200, t_minimal_repository[]> > -const reposCreateInOrgResponder = { - with201: r.with201, - with403: r.with403, - with422: r.with422, +const reposCreateInOrg = b((r) => ({ + with201: r.with201(s_full_repository), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposCreateInOrgResponder = typeof reposCreateInOrgResponder & +type ReposCreateInOrgResponder = (typeof reposCreateInOrg)["responder"] & KoaRuntimeResponder -const reposCreateInOrgResponseValidator = responseValidationFactory( - [ - ["201", s_full_repository], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type ReposCreateInOrg = ( params: Params< t_ReposCreateInOrgParamSchema, @@ -12960,25 +10488,16 @@ export type ReposCreateInOrg = ( | Response<422, t_validation_error> > -const reposGetOrgRulesetsResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetOrgRulesets = b((r) => ({ + with200: r.with200(z.array(s_repository_ruleset)), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetOrgRulesetsResponder = typeof reposGetOrgRulesetsResponder & +type ReposGetOrgRulesetsResponder = (typeof reposGetOrgRulesets)["responder"] & KoaRuntimeResponder -const reposGetOrgRulesetsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_repository_ruleset)], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) - export type ReposGetOrgRulesets = ( params: Params< t_ReposGetOrgRulesetsParamSchema, @@ -12995,24 +10514,15 @@ export type ReposGetOrgRulesets = ( | Response<500, t_basic_error> > -const reposCreateOrgRulesetResponder = { - with201: r.with201, - with404: r.with404, - with500: r.with500, +const reposCreateOrgRuleset = b((r) => ({ + with201: r.with201(s_repository_ruleset), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} - -type ReposCreateOrgRulesetResponder = typeof reposCreateOrgRulesetResponder & - KoaRuntimeResponder +})) -const reposCreateOrgRulesetResponseValidator = responseValidationFactory( - [ - ["201", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposCreateOrgRulesetResponder = + (typeof reposCreateOrgRuleset)["responder"] & KoaRuntimeResponder export type ReposCreateOrgRuleset = ( params: Params< @@ -13030,24 +10540,15 @@ export type ReposCreateOrgRuleset = ( | Response<500, t_basic_error> > -const reposGetOrgRuleSuitesResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetOrgRuleSuites = b((r) => ({ + with200: r.with200(s_rule_suites), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} - -type ReposGetOrgRuleSuitesResponder = typeof reposGetOrgRuleSuitesResponder & - KoaRuntimeResponder +})) -const reposGetOrgRuleSuitesResponseValidator = responseValidationFactory( - [ - ["200", s_rule_suites], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposGetOrgRuleSuitesResponder = + (typeof reposGetOrgRuleSuites)["responder"] & KoaRuntimeResponder export type ReposGetOrgRuleSuites = ( params: Params< @@ -13065,24 +10566,15 @@ export type ReposGetOrgRuleSuites = ( | Response<500, t_basic_error> > -const reposGetOrgRuleSuiteResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetOrgRuleSuite = b((r) => ({ + with200: r.with200(s_rule_suite), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetOrgRuleSuiteResponder = typeof reposGetOrgRuleSuiteResponder & - KoaRuntimeResponder - -const reposGetOrgRuleSuiteResponseValidator = responseValidationFactory( - [ - ["200", s_rule_suite], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposGetOrgRuleSuiteResponder = + (typeof reposGetOrgRuleSuite)["responder"] & KoaRuntimeResponder export type ReposGetOrgRuleSuite = ( params: Params, @@ -13095,25 +10587,16 @@ export type ReposGetOrgRuleSuite = ( | Response<500, t_basic_error> > -const reposGetOrgRulesetResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetOrgRuleset = b((r) => ({ + with200: r.with200(s_repository_ruleset), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetOrgRulesetResponder = typeof reposGetOrgRulesetResponder & +type ReposGetOrgRulesetResponder = (typeof reposGetOrgRuleset)["responder"] & KoaRuntimeResponder -const reposGetOrgRulesetResponseValidator = responseValidationFactory( - [ - ["200", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) - export type ReposGetOrgRuleset = ( params: Params, respond: ReposGetOrgRulesetResponder, @@ -13125,24 +10608,15 @@ export type ReposGetOrgRuleset = ( | Response<500, t_basic_error> > -const reposUpdateOrgRulesetResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposUpdateOrgRuleset = b((r) => ({ + with200: r.with200(s_repository_ruleset), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposUpdateOrgRulesetResponder = typeof reposUpdateOrgRulesetResponder & - KoaRuntimeResponder - -const reposUpdateOrgRulesetResponseValidator = responseValidationFactory( - [ - ["200", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposUpdateOrgRulesetResponder = + (typeof reposUpdateOrgRuleset)["responder"] & KoaRuntimeResponder export type ReposUpdateOrgRuleset = ( params: Params< @@ -13160,24 +10634,15 @@ export type ReposUpdateOrgRuleset = ( | Response<500, t_basic_error> > -const reposDeleteOrgRulesetResponder = { - with204: r.with204, - with404: r.with404, - with500: r.with500, +const reposDeleteOrgRuleset = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposDeleteOrgRulesetResponder = typeof reposDeleteOrgRulesetResponder & - KoaRuntimeResponder - -const reposDeleteOrgRulesetResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposDeleteOrgRulesetResponder = + (typeof reposDeleteOrgRuleset)["responder"] & KoaRuntimeResponder export type ReposDeleteOrgRuleset = ( params: Params, @@ -13190,24 +10655,15 @@ export type ReposDeleteOrgRuleset = ( | Response<500, t_basic_error> > -const orgsGetOrgRulesetHistoryResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const orgsGetOrgRulesetHistory = b((r) => ({ + with200: r.with200(z.array(s_ruleset_version)), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsGetOrgRulesetHistoryResponder = - typeof orgsGetOrgRulesetHistoryResponder & KoaRuntimeResponder - -const orgsGetOrgRulesetHistoryResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_ruleset_version)], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof orgsGetOrgRulesetHistory)["responder"] & KoaRuntimeResponder export type OrgsGetOrgRulesetHistory = ( params: Params< @@ -13225,24 +10681,17 @@ export type OrgsGetOrgRulesetHistory = ( | Response<500, t_basic_error> > -const orgsGetOrgRulesetVersionResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const orgsGetOrgRulesetVersion = b((r) => ({ + with200: r.with200( + s_ruleset_version_with_state, + ), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsGetOrgRulesetVersionResponder = - typeof orgsGetOrgRulesetVersionResponder & KoaRuntimeResponder - -const orgsGetOrgRulesetVersionResponseValidator = responseValidationFactory( - [ - ["200", s_ruleset_version_with_state], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof orgsGetOrgRulesetVersion)["responder"] & KoaRuntimeResponder export type OrgsGetOrgRulesetVersion = ( params: Params, @@ -13255,36 +10704,27 @@ export type OrgsGetOrgRulesetVersion = ( | Response<500, t_basic_error> > -const secretScanningListAlertsForOrgResponder = { - with200: r.with200, - with404: r.with404, +const secretScanningListAlertsForOrg = b((r) => ({ + with200: r.with200( + z.array(s_organization_secret_scanning_alert), + ), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type SecretScanningListAlertsForOrgResponder = - typeof secretScanningListAlertsForOrgResponder & KoaRuntimeResponder - -const secretScanningListAlertsForOrgResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_organization_secret_scanning_alert)], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof secretScanningListAlertsForOrg)["responder"] & KoaRuntimeResponder export type SecretScanningListAlertsForOrg = ( params: Params< @@ -13309,27 +10749,17 @@ export type SecretScanningListAlertsForOrg = ( > > -const securityAdvisoriesListOrgRepositoryAdvisoriesResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, +const securityAdvisoriesListOrgRepositoryAdvisories = b((r) => ({ + with200: r.with200(z.array(s_repository_advisory)), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesListOrgRepositoryAdvisoriesResponder = - typeof securityAdvisoriesListOrgRepositoryAdvisoriesResponder & + (typeof securityAdvisoriesListOrgRepositoryAdvisories)["responder"] & KoaRuntimeResponder -const securityAdvisoriesListOrgRepositoryAdvisoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_repository_advisory)], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - export type SecurityAdvisoriesListOrgRepositoryAdvisories = ( params: Params< t_SecurityAdvisoriesListOrgRepositoryAdvisoriesParamSchema, @@ -13346,18 +10776,13 @@ export type SecurityAdvisoriesListOrgRepositoryAdvisories = ( | Response<404, t_basic_error> > -const orgsListSecurityManagerTeamsResponder = { - with200: r.with200, +const orgsListSecurityManagerTeams = b((r) => ({ + with200: r.with200(z.array(s_team_simple)), withStatus: r.withStatus, -} +})) type OrgsListSecurityManagerTeamsResponder = - typeof orgsListSecurityManagerTeamsResponder & KoaRuntimeResponder - -const orgsListSecurityManagerTeamsResponseValidator = responseValidationFactory( - [["200", z.array(s_team_simple)]], - undefined, -) + (typeof orgsListSecurityManagerTeams)["responder"] & KoaRuntimeResponder export type OrgsListSecurityManagerTeams = ( params: Params, @@ -13365,18 +10790,13 @@ export type OrgsListSecurityManagerTeams = ( ctx: RouterContext, ) => Promise | Response<200, t_team_simple[]>> -const orgsAddSecurityManagerTeamResponder = { - with204: r.with204, +const orgsAddSecurityManagerTeam = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsAddSecurityManagerTeamResponder = - typeof orgsAddSecurityManagerTeamResponder & KoaRuntimeResponder - -const orgsAddSecurityManagerTeamResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof orgsAddSecurityManagerTeam)["responder"] & KoaRuntimeResponder export type OrgsAddSecurityManagerTeam = ( params: Params, @@ -13384,16 +10804,13 @@ export type OrgsAddSecurityManagerTeam = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const orgsRemoveSecurityManagerTeamResponder = { - with204: r.with204, +const orgsRemoveSecurityManagerTeam = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsRemoveSecurityManagerTeamResponder = - typeof orgsRemoveSecurityManagerTeamResponder & KoaRuntimeResponder - -const orgsRemoveSecurityManagerTeamResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof orgsRemoveSecurityManagerTeam)["responder"] & KoaRuntimeResponder export type OrgsRemoveSecurityManagerTeam = ( params: Params, @@ -13401,16 +10818,13 @@ export type OrgsRemoveSecurityManagerTeam = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const billingGetGithubActionsBillingOrgResponder = { - with200: r.with200, +const billingGetGithubActionsBillingOrg = b((r) => ({ + with200: r.with200(s_actions_billing_usage), withStatus: r.withStatus, -} +})) type BillingGetGithubActionsBillingOrgResponder = - typeof billingGetGithubActionsBillingOrgResponder & KoaRuntimeResponder - -const billingGetGithubActionsBillingOrgResponseValidator = - responseValidationFactory([["200", s_actions_billing_usage]], undefined) + (typeof billingGetGithubActionsBillingOrg)["responder"] & KoaRuntimeResponder export type BillingGetGithubActionsBillingOrg = ( params: Params< @@ -13425,16 +10839,13 @@ export type BillingGetGithubActionsBillingOrg = ( KoaRuntimeResponse | Response<200, t_actions_billing_usage> > -const billingGetGithubPackagesBillingOrgResponder = { - with200: r.with200, +const billingGetGithubPackagesBillingOrg = b((r) => ({ + with200: r.with200(s_packages_billing_usage), withStatus: r.withStatus, -} +})) type BillingGetGithubPackagesBillingOrgResponder = - typeof billingGetGithubPackagesBillingOrgResponder & KoaRuntimeResponder - -const billingGetGithubPackagesBillingOrgResponseValidator = - responseValidationFactory([["200", s_packages_billing_usage]], undefined) + (typeof billingGetGithubPackagesBillingOrg)["responder"] & KoaRuntimeResponder export type BillingGetGithubPackagesBillingOrg = ( params: Params< @@ -13449,16 +10860,13 @@ export type BillingGetGithubPackagesBillingOrg = ( KoaRuntimeResponse | Response<200, t_packages_billing_usage> > -const billingGetSharedStorageBillingOrgResponder = { - with200: r.with200, +const billingGetSharedStorageBillingOrg = b((r) => ({ + with200: r.with200(s_combined_billing_usage), withStatus: r.withStatus, -} +})) type BillingGetSharedStorageBillingOrgResponder = - typeof billingGetSharedStorageBillingOrgResponder & KoaRuntimeResponder - -const billingGetSharedStorageBillingOrgResponseValidator = - responseValidationFactory([["200", s_combined_billing_usage]], undefined) + (typeof billingGetSharedStorageBillingOrg)["responder"] & KoaRuntimeResponder export type BillingGetSharedStorageBillingOrg = ( params: Params< @@ -13473,32 +10881,23 @@ export type BillingGetSharedStorageBillingOrg = ( KoaRuntimeResponse | Response<200, t_combined_billing_usage> > -const hostedComputeListNetworkConfigurationsForOrgResponder = { +const hostedComputeListNetworkConfigurationsForOrg = b((r) => ({ with200: r.with200<{ network_configurations: t_network_configuration[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + network_configurations: z.array(s_network_configuration), + }), + ), withStatus: r.withStatus, -} +})) type HostedComputeListNetworkConfigurationsForOrgResponder = - typeof hostedComputeListNetworkConfigurationsForOrgResponder & + (typeof hostedComputeListNetworkConfigurationsForOrg)["responder"] & KoaRuntimeResponder -const hostedComputeListNetworkConfigurationsForOrgResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - network_configurations: z.array(s_network_configuration), - }), - ], - ], - undefined, - ) - export type HostedComputeListNetworkConfigurationsForOrg = ( params: Params< t_HostedComputeListNetworkConfigurationsForOrgParamSchema, @@ -13519,18 +10918,15 @@ export type HostedComputeListNetworkConfigurationsForOrg = ( > > -const hostedComputeCreateNetworkConfigurationForOrgResponder = { - with201: r.with201, +const hostedComputeCreateNetworkConfigurationForOrg = b((r) => ({ + with201: r.with201(s_network_configuration), withStatus: r.withStatus, -} +})) type HostedComputeCreateNetworkConfigurationForOrgResponder = - typeof hostedComputeCreateNetworkConfigurationForOrgResponder & + (typeof hostedComputeCreateNetworkConfigurationForOrg)["responder"] & KoaRuntimeResponder -const hostedComputeCreateNetworkConfigurationForOrgResponseValidator = - responseValidationFactory([["201", s_network_configuration]], undefined) - export type HostedComputeCreateNetworkConfigurationForOrg = ( params: Params< t_HostedComputeCreateNetworkConfigurationForOrgParamSchema, @@ -13544,18 +10940,15 @@ export type HostedComputeCreateNetworkConfigurationForOrg = ( KoaRuntimeResponse | Response<201, t_network_configuration> > -const hostedComputeGetNetworkConfigurationForOrgResponder = { - with200: r.with200, +const hostedComputeGetNetworkConfigurationForOrg = b((r) => ({ + with200: r.with200(s_network_configuration), withStatus: r.withStatus, -} +})) type HostedComputeGetNetworkConfigurationForOrgResponder = - typeof hostedComputeGetNetworkConfigurationForOrgResponder & + (typeof hostedComputeGetNetworkConfigurationForOrg)["responder"] & KoaRuntimeResponder -const hostedComputeGetNetworkConfigurationForOrgResponseValidator = - responseValidationFactory([["200", s_network_configuration]], undefined) - export type HostedComputeGetNetworkConfigurationForOrg = ( params: Params< t_HostedComputeGetNetworkConfigurationForOrgParamSchema, @@ -13569,18 +10962,15 @@ export type HostedComputeGetNetworkConfigurationForOrg = ( KoaRuntimeResponse | Response<200, t_network_configuration> > -const hostedComputeUpdateNetworkConfigurationForOrgResponder = { - with200: r.with200, +const hostedComputeUpdateNetworkConfigurationForOrg = b((r) => ({ + with200: r.with200(s_network_configuration), withStatus: r.withStatus, -} +})) type HostedComputeUpdateNetworkConfigurationForOrgResponder = - typeof hostedComputeUpdateNetworkConfigurationForOrgResponder & + (typeof hostedComputeUpdateNetworkConfigurationForOrg)["responder"] & KoaRuntimeResponder -const hostedComputeUpdateNetworkConfigurationForOrgResponseValidator = - responseValidationFactory([["200", s_network_configuration]], undefined) - export type HostedComputeUpdateNetworkConfigurationForOrg = ( params: Params< t_HostedComputeUpdateNetworkConfigurationForOrgParamSchema, @@ -13594,18 +10984,15 @@ export type HostedComputeUpdateNetworkConfigurationForOrg = ( KoaRuntimeResponse | Response<200, t_network_configuration> > -const hostedComputeDeleteNetworkConfigurationFromOrgResponder = { - with204: r.with204, +const hostedComputeDeleteNetworkConfigurationFromOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type HostedComputeDeleteNetworkConfigurationFromOrgResponder = - typeof hostedComputeDeleteNetworkConfigurationFromOrgResponder & + (typeof hostedComputeDeleteNetworkConfigurationFromOrg)["responder"] & KoaRuntimeResponder -const hostedComputeDeleteNetworkConfigurationFromOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type HostedComputeDeleteNetworkConfigurationFromOrg = ( params: Params< t_HostedComputeDeleteNetworkConfigurationFromOrgParamSchema, @@ -13617,16 +11004,14 @@ export type HostedComputeDeleteNetworkConfigurationFromOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const hostedComputeGetNetworkSettingsForOrgResponder = { - with200: r.with200, +const hostedComputeGetNetworkSettingsForOrg = b((r) => ({ + with200: r.with200(s_network_settings), withStatus: r.withStatus, -} +})) type HostedComputeGetNetworkSettingsForOrgResponder = - typeof hostedComputeGetNetworkSettingsForOrgResponder & KoaRuntimeResponder - -const hostedComputeGetNetworkSettingsForOrgResponseValidator = - responseValidationFactory([["200", s_network_settings]], undefined) + (typeof hostedComputeGetNetworkSettingsForOrg)["responder"] & + KoaRuntimeResponder export type HostedComputeGetNetworkSettingsForOrg = ( params: Params< @@ -13639,28 +11024,19 @@ export type HostedComputeGetNetworkSettingsForOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_network_settings>> -const copilotCopilotMetricsForTeamResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const copilotCopilotMetricsForTeam = b((r) => ({ + with200: r.with200( + z.array(s_copilot_usage_metrics_day), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CopilotCopilotMetricsForTeamResponder = - typeof copilotCopilotMetricsForTeamResponder & KoaRuntimeResponder - -const copilotCopilotMetricsForTeamResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_copilot_usage_metrics_day)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof copilotCopilotMetricsForTeam)["responder"] & KoaRuntimeResponder export type CopilotCopilotMetricsForTeam = ( params: Params< @@ -13680,21 +11056,13 @@ export type CopilotCopilotMetricsForTeam = ( | Response<500, t_basic_error> > -const teamsListResponder = { - with200: r.with200, - with403: r.with403, +const teamsList = b((r) => ({ + with200: r.with200(z.array(s_team)), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type TeamsListResponder = typeof teamsListResponder & KoaRuntimeResponder - -const teamsListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team)], - ["403", s_basic_error], - ], - undefined, -) +type TeamsListResponder = (typeof teamsList)["responder"] & KoaRuntimeResponder export type TeamsList = ( params: Params, @@ -13706,23 +11074,15 @@ export type TeamsList = ( | Response<403, t_basic_error> > -const teamsCreateResponder = { - with201: r.with201, - with403: r.with403, - with422: r.with422, +const teamsCreate = b((r) => ({ + with201: r.with201(s_team_full), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type TeamsCreateResponder = typeof teamsCreateResponder & KoaRuntimeResponder +})) -const teamsCreateResponseValidator = responseValidationFactory( - [ - ["201", s_team_full], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type TeamsCreateResponder = (typeof teamsCreate)["responder"] & + KoaRuntimeResponder export type TeamsCreate = ( params: Params, @@ -13735,23 +11095,15 @@ export type TeamsCreate = ( | Response<422, t_validation_error> > -const teamsGetByNameResponder = { - with200: r.with200, - with404: r.with404, +const teamsGetByName = b((r) => ({ + with200: r.with200(s_team_full), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type TeamsGetByNameResponder = typeof teamsGetByNameResponder & +type TeamsGetByNameResponder = (typeof teamsGetByName)["responder"] & KoaRuntimeResponder -const teamsGetByNameResponseValidator = responseValidationFactory( - [ - ["200", s_team_full], - ["404", s_basic_error], - ], - undefined, -) - export type TeamsGetByName = ( params: Params, respond: TeamsGetByNameResponder, @@ -13762,29 +11114,18 @@ export type TeamsGetByName = ( | Response<404, t_basic_error> > -const teamsUpdateInOrgResponder = { - with200: r.with200, - with201: r.with201, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const teamsUpdateInOrg = b((r) => ({ + with200: r.with200(s_team_full), + with201: r.with201(s_team_full), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type TeamsUpdateInOrgResponder = typeof teamsUpdateInOrgResponder & +type TeamsUpdateInOrgResponder = (typeof teamsUpdateInOrg)["responder"] & KoaRuntimeResponder -const teamsUpdateInOrgResponseValidator = responseValidationFactory( - [ - ["200", s_team_full], - ["201", s_team_full], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type TeamsUpdateInOrg = ( params: Params< t_TeamsUpdateInOrgParamSchema, @@ -13803,37 +11144,27 @@ export type TeamsUpdateInOrg = ( | Response<422, t_validation_error> > -const teamsDeleteInOrgResponder = { - with204: r.with204, +const teamsDeleteInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type TeamsDeleteInOrgResponder = typeof teamsDeleteInOrgResponder & +type TeamsDeleteInOrgResponder = (typeof teamsDeleteInOrg)["responder"] & KoaRuntimeResponder -const teamsDeleteInOrgResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) - export type TeamsDeleteInOrg = ( params: Params, respond: TeamsDeleteInOrgResponder, ctx: RouterContext, ) => Promise | Response<204, void>> -const teamsListDiscussionsInOrgResponder = { - with200: r.with200, +const teamsListDiscussionsInOrg = b((r) => ({ + with200: r.with200(z.array(s_team_discussion)), withStatus: r.withStatus, -} +})) type TeamsListDiscussionsInOrgResponder = - typeof teamsListDiscussionsInOrgResponder & KoaRuntimeResponder - -const teamsListDiscussionsInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_team_discussion)]], - undefined, -) + (typeof teamsListDiscussionsInOrg)["responder"] & KoaRuntimeResponder export type TeamsListDiscussionsInOrg = ( params: Params< @@ -13846,18 +11177,13 @@ export type TeamsListDiscussionsInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion[]>> -const teamsCreateDiscussionInOrgResponder = { - with201: r.with201, +const teamsCreateDiscussionInOrg = b((r) => ({ + with201: r.with201(s_team_discussion), withStatus: r.withStatus, -} +})) type TeamsCreateDiscussionInOrgResponder = - typeof teamsCreateDiscussionInOrgResponder & KoaRuntimeResponder - -const teamsCreateDiscussionInOrgResponseValidator = responseValidationFactory( - [["201", s_team_discussion]], - undefined, -) + (typeof teamsCreateDiscussionInOrg)["responder"] & KoaRuntimeResponder export type TeamsCreateDiscussionInOrg = ( params: Params< @@ -13870,18 +11196,13 @@ export type TeamsCreateDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<201, t_team_discussion>> -const teamsGetDiscussionInOrgResponder = { - with200: r.with200, +const teamsGetDiscussionInOrg = b((r) => ({ + with200: r.with200(s_team_discussion), withStatus: r.withStatus, -} +})) type TeamsGetDiscussionInOrgResponder = - typeof teamsGetDiscussionInOrgResponder & KoaRuntimeResponder - -const teamsGetDiscussionInOrgResponseValidator = responseValidationFactory( - [["200", s_team_discussion]], - undefined, -) + (typeof teamsGetDiscussionInOrg)["responder"] & KoaRuntimeResponder export type TeamsGetDiscussionInOrg = ( params: Params, @@ -13889,18 +11210,13 @@ export type TeamsGetDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> -const teamsUpdateDiscussionInOrgResponder = { - with200: r.with200, +const teamsUpdateDiscussionInOrg = b((r) => ({ + with200: r.with200(s_team_discussion), withStatus: r.withStatus, -} +})) type TeamsUpdateDiscussionInOrgResponder = - typeof teamsUpdateDiscussionInOrgResponder & KoaRuntimeResponder - -const teamsUpdateDiscussionInOrgResponseValidator = responseValidationFactory( - [["200", s_team_discussion]], - undefined, -) + (typeof teamsUpdateDiscussionInOrg)["responder"] & KoaRuntimeResponder export type TeamsUpdateDiscussionInOrg = ( params: Params< @@ -13913,18 +11229,13 @@ export type TeamsUpdateDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> -const teamsDeleteDiscussionInOrgResponder = { - with204: r.with204, +const teamsDeleteDiscussionInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsDeleteDiscussionInOrgResponder = - typeof teamsDeleteDiscussionInOrgResponder & KoaRuntimeResponder - -const teamsDeleteDiscussionInOrgResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof teamsDeleteDiscussionInOrg)["responder"] & KoaRuntimeResponder export type TeamsDeleteDiscussionInOrg = ( params: Params, @@ -13932,19 +11243,15 @@ export type TeamsDeleteDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const teamsListDiscussionCommentsInOrgResponder = { - with200: r.with200, +const teamsListDiscussionCommentsInOrg = b((r) => ({ + with200: r.with200( + z.array(s_team_discussion_comment), + ), withStatus: r.withStatus, -} +})) type TeamsListDiscussionCommentsInOrgResponder = - typeof teamsListDiscussionCommentsInOrgResponder & KoaRuntimeResponder - -const teamsListDiscussionCommentsInOrgResponseValidator = - responseValidationFactory( - [["200", z.array(s_team_discussion_comment)]], - undefined, - ) + (typeof teamsListDiscussionCommentsInOrg)["responder"] & KoaRuntimeResponder export type TeamsListDiscussionCommentsInOrg = ( params: Params< @@ -13959,16 +11266,13 @@ export type TeamsListDiscussionCommentsInOrg = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment[]> > -const teamsCreateDiscussionCommentInOrgResponder = { - with201: r.with201, +const teamsCreateDiscussionCommentInOrg = b((r) => ({ + with201: r.with201(s_team_discussion_comment), withStatus: r.withStatus, -} +})) type TeamsCreateDiscussionCommentInOrgResponder = - typeof teamsCreateDiscussionCommentInOrgResponder & KoaRuntimeResponder - -const teamsCreateDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["201", s_team_discussion_comment]], undefined) + (typeof teamsCreateDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder export type TeamsCreateDiscussionCommentInOrg = ( params: Params< @@ -13983,16 +11287,13 @@ export type TeamsCreateDiscussionCommentInOrg = ( KoaRuntimeResponse | Response<201, t_team_discussion_comment> > -const teamsGetDiscussionCommentInOrgResponder = { - with200: r.with200, +const teamsGetDiscussionCommentInOrg = b((r) => ({ + with200: r.with200(s_team_discussion_comment), withStatus: r.withStatus, -} +})) type TeamsGetDiscussionCommentInOrgResponder = - typeof teamsGetDiscussionCommentInOrgResponder & KoaRuntimeResponder - -const teamsGetDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["200", s_team_discussion_comment]], undefined) + (typeof teamsGetDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder export type TeamsGetDiscussionCommentInOrg = ( params: Params, @@ -14002,16 +11303,13 @@ export type TeamsGetDiscussionCommentInOrg = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment> > -const teamsUpdateDiscussionCommentInOrgResponder = { - with200: r.with200, +const teamsUpdateDiscussionCommentInOrg = b((r) => ({ + with200: r.with200(s_team_discussion_comment), withStatus: r.withStatus, -} +})) type TeamsUpdateDiscussionCommentInOrgResponder = - typeof teamsUpdateDiscussionCommentInOrgResponder & KoaRuntimeResponder - -const teamsUpdateDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["200", s_team_discussion_comment]], undefined) + (typeof teamsUpdateDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder export type TeamsUpdateDiscussionCommentInOrg = ( params: Params< @@ -14026,16 +11324,13 @@ export type TeamsUpdateDiscussionCommentInOrg = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment> > -const teamsDeleteDiscussionCommentInOrgResponder = { - with204: r.with204, +const teamsDeleteDiscussionCommentInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsDeleteDiscussionCommentInOrgResponder = - typeof teamsDeleteDiscussionCommentInOrgResponder & KoaRuntimeResponder - -const teamsDeleteDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof teamsDeleteDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder export type TeamsDeleteDiscussionCommentInOrg = ( params: Params< @@ -14048,18 +11343,15 @@ export type TeamsDeleteDiscussionCommentInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reactionsListForTeamDiscussionCommentInOrgResponder = { - with200: r.with200, +const reactionsListForTeamDiscussionCommentInOrg = b((r) => ({ + with200: r.with200(z.array(s_reaction)), withStatus: r.withStatus, -} +})) type ReactionsListForTeamDiscussionCommentInOrgResponder = - typeof reactionsListForTeamDiscussionCommentInOrgResponder & + (typeof reactionsListForTeamDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder -const reactionsListForTeamDiscussionCommentInOrgResponseValidator = - responseValidationFactory([["200", z.array(s_reaction)]], undefined) - export type ReactionsListForTeamDiscussionCommentInOrg = ( params: Params< t_ReactionsListForTeamDiscussionCommentInOrgParamSchema, @@ -14071,25 +11363,16 @@ export type ReactionsListForTeamDiscussionCommentInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> -const reactionsCreateForTeamDiscussionCommentInOrgResponder = { - with200: r.with200, - with201: r.with201, +const reactionsCreateForTeamDiscussionCommentInOrg = b((r) => ({ + with200: r.with200(s_reaction), + with201: r.with201(s_reaction), withStatus: r.withStatus, -} +})) type ReactionsCreateForTeamDiscussionCommentInOrgResponder = - typeof reactionsCreateForTeamDiscussionCommentInOrgResponder & + (typeof reactionsCreateForTeamDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder -const reactionsCreateForTeamDiscussionCommentInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ], - undefined, - ) - export type ReactionsCreateForTeamDiscussionCommentInOrg = ( params: Params< t_ReactionsCreateForTeamDiscussionCommentInOrgParamSchema, @@ -14105,16 +11388,14 @@ export type ReactionsCreateForTeamDiscussionCommentInOrg = ( | Response<201, t_reaction> > -const reactionsDeleteForTeamDiscussionCommentResponder = { - with204: r.with204, +const reactionsDeleteForTeamDiscussionComment = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReactionsDeleteForTeamDiscussionCommentResponder = - typeof reactionsDeleteForTeamDiscussionCommentResponder & KoaRuntimeResponder - -const reactionsDeleteForTeamDiscussionCommentResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reactionsDeleteForTeamDiscussionComment)["responder"] & + KoaRuntimeResponder export type ReactionsDeleteForTeamDiscussionComment = ( params: Params< @@ -14127,16 +11408,14 @@ export type ReactionsDeleteForTeamDiscussionComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reactionsListForTeamDiscussionInOrgResponder = { - with200: r.with200, +const reactionsListForTeamDiscussionInOrg = b((r) => ({ + with200: r.with200(z.array(s_reaction)), withStatus: r.withStatus, -} +})) type ReactionsListForTeamDiscussionInOrgResponder = - typeof reactionsListForTeamDiscussionInOrgResponder & KoaRuntimeResponder - -const reactionsListForTeamDiscussionInOrgResponseValidator = - responseValidationFactory([["200", z.array(s_reaction)]], undefined) + (typeof reactionsListForTeamDiscussionInOrg)["responder"] & + KoaRuntimeResponder export type ReactionsListForTeamDiscussionInOrg = ( params: Params< @@ -14149,23 +11428,15 @@ export type ReactionsListForTeamDiscussionInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> -const reactionsCreateForTeamDiscussionInOrgResponder = { - with200: r.with200, - with201: r.with201, +const reactionsCreateForTeamDiscussionInOrg = b((r) => ({ + with200: r.with200(s_reaction), + with201: r.with201(s_reaction), withStatus: r.withStatus, -} +})) type ReactionsCreateForTeamDiscussionInOrgResponder = - typeof reactionsCreateForTeamDiscussionInOrgResponder & KoaRuntimeResponder - -const reactionsCreateForTeamDiscussionInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ], - undefined, - ) + (typeof reactionsCreateForTeamDiscussionInOrg)["responder"] & + KoaRuntimeResponder export type ReactionsCreateForTeamDiscussionInOrg = ( params: Params< @@ -14182,16 +11453,13 @@ export type ReactionsCreateForTeamDiscussionInOrg = ( | Response<201, t_reaction> > -const reactionsDeleteForTeamDiscussionResponder = { - with204: r.with204, +const reactionsDeleteForTeamDiscussion = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReactionsDeleteForTeamDiscussionResponder = - typeof reactionsDeleteForTeamDiscussionResponder & KoaRuntimeResponder - -const reactionsDeleteForTeamDiscussionResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reactionsDeleteForTeamDiscussion)["responder"] & KoaRuntimeResponder export type ReactionsDeleteForTeamDiscussion = ( params: Params< @@ -14204,19 +11472,15 @@ export type ReactionsDeleteForTeamDiscussion = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const teamsListPendingInvitationsInOrgResponder = { - with200: r.with200, +const teamsListPendingInvitationsInOrg = b((r) => ({ + with200: r.with200( + z.array(s_organization_invitation), + ), withStatus: r.withStatus, -} +})) type TeamsListPendingInvitationsInOrgResponder = - typeof teamsListPendingInvitationsInOrgResponder & KoaRuntimeResponder - -const teamsListPendingInvitationsInOrgResponseValidator = - responseValidationFactory( - [["200", z.array(s_organization_invitation)]], - undefined, - ) + (typeof teamsListPendingInvitationsInOrg)["responder"] & KoaRuntimeResponder export type TeamsListPendingInvitationsInOrg = ( params: Params< @@ -14231,18 +11495,13 @@ export type TeamsListPendingInvitationsInOrg = ( KoaRuntimeResponse | Response<200, t_organization_invitation[]> > -const teamsListMembersInOrgResponder = { - with200: r.with200, +const teamsListMembersInOrg = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), withStatus: r.withStatus, -} +})) -type TeamsListMembersInOrgResponder = typeof teamsListMembersInOrgResponder & - KoaRuntimeResponder - -const teamsListMembersInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, -) +type TeamsListMembersInOrgResponder = + (typeof teamsListMembersInOrg)["responder"] & KoaRuntimeResponder export type TeamsListMembersInOrg = ( params: Params< @@ -14255,23 +11514,14 @@ export type TeamsListMembersInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -const teamsGetMembershipForUserInOrgResponder = { - with200: r.with200, - with404: r.with404, +const teamsGetMembershipForUserInOrg = b((r) => ({ + with200: r.with200(s_team_membership), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsGetMembershipForUserInOrgResponder = - typeof teamsGetMembershipForUserInOrgResponder & KoaRuntimeResponder - -const teamsGetMembershipForUserInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_team_membership], - ["404", z.undefined()], - ], - undefined, - ) + (typeof teamsGetMembershipForUserInOrg)["responder"] & KoaRuntimeResponder export type TeamsGetMembershipForUserInOrg = ( params: Params, @@ -14283,25 +11533,16 @@ export type TeamsGetMembershipForUserInOrg = ( | Response<404, void> > -const teamsAddOrUpdateMembershipForUserInOrgResponder = { - with200: r.with200, - with403: r.with403, - with422: r.with422, +const teamsAddOrUpdateMembershipForUserInOrg = b((r) => ({ + with200: r.with200(s_team_membership), + with403: r.with403(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsAddOrUpdateMembershipForUserInOrgResponder = - typeof teamsAddOrUpdateMembershipForUserInOrgResponder & KoaRuntimeResponder - -const teamsAddOrUpdateMembershipForUserInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_team_membership], - ["403", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) + (typeof teamsAddOrUpdateMembershipForUserInOrg)["responder"] & + KoaRuntimeResponder export type TeamsAddOrUpdateMembershipForUserInOrg = ( params: Params< @@ -14319,23 +11560,14 @@ export type TeamsAddOrUpdateMembershipForUserInOrg = ( | Response<422, void> > -const teamsRemoveMembershipForUserInOrgResponder = { - with204: r.with204, - with403: r.with403, +const teamsRemoveMembershipForUserInOrg = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsRemoveMembershipForUserInOrgResponder = - typeof teamsRemoveMembershipForUserInOrgResponder & KoaRuntimeResponder - -const teamsRemoveMembershipForUserInOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", z.undefined()], - ], - undefined, - ) + (typeof teamsRemoveMembershipForUserInOrg)["responder"] & KoaRuntimeResponder export type TeamsRemoveMembershipForUserInOrg = ( params: Params< @@ -14350,18 +11582,13 @@ export type TeamsRemoveMembershipForUserInOrg = ( KoaRuntimeResponse | Response<204, void> | Response<403, void> > -const teamsListProjectsInOrgResponder = { - with200: r.with200, +const teamsListProjectsInOrg = b((r) => ({ + with200: r.with200(z.array(s_team_project)), withStatus: r.withStatus, -} +})) -type TeamsListProjectsInOrgResponder = typeof teamsListProjectsInOrgResponder & - KoaRuntimeResponder - -const teamsListProjectsInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_team_project)]], - undefined, -) +type TeamsListProjectsInOrgResponder = + (typeof teamsListProjectsInOrg)["responder"] & KoaRuntimeResponder export type TeamsListProjectsInOrg = ( params: Params< @@ -14374,23 +11601,15 @@ export type TeamsListProjectsInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team_project[]>> -const teamsCheckPermissionsForProjectInOrgResponder = { - with200: r.with200, - with404: r.with404, +const teamsCheckPermissionsForProjectInOrg = b((r) => ({ + with200: r.with200(s_team_project), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsCheckPermissionsForProjectInOrgResponder = - typeof teamsCheckPermissionsForProjectInOrgResponder & KoaRuntimeResponder - -const teamsCheckPermissionsForProjectInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_team_project], - ["404", z.undefined()], - ], - undefined, - ) + (typeof teamsCheckPermissionsForProjectInOrg)["responder"] & + KoaRuntimeResponder export type TeamsCheckPermissionsForProjectInOrg = ( params: Params< @@ -14407,32 +11626,23 @@ export type TeamsCheckPermissionsForProjectInOrg = ( | Response<404, void> > -const teamsAddOrUpdateProjectPermissionsInOrgResponder = { - with204: r.with204, +const teamsAddOrUpdateProjectPermissionsInOrg = b((r) => ({ + with204: r.with204(z.undefined()), with403: r.with403<{ documentation_url?: string message?: string - }>, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type TeamsAddOrUpdateProjectPermissionsInOrgResponder = - typeof teamsAddOrUpdateProjectPermissionsInOrgResponder & KoaRuntimeResponder - -const teamsAddOrUpdateProjectPermissionsInOrgResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof teamsAddOrUpdateProjectPermissionsInOrg)["responder"] & + KoaRuntimeResponder export type TeamsAddOrUpdateProjectPermissionsInOrg = ( params: Params< @@ -14455,18 +11665,13 @@ export type TeamsAddOrUpdateProjectPermissionsInOrg = ( > > -const teamsRemoveProjectInOrgResponder = { - with204: r.with204, +const teamsRemoveProjectInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsRemoveProjectInOrgResponder = - typeof teamsRemoveProjectInOrgResponder & KoaRuntimeResponder - -const teamsRemoveProjectInOrgResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof teamsRemoveProjectInOrg)["responder"] & KoaRuntimeResponder export type TeamsRemoveProjectInOrg = ( params: Params, @@ -14474,19 +11679,14 @@ export type TeamsRemoveProjectInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const teamsListReposInOrgResponder = { - with200: r.with200, +const teamsListReposInOrg = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), withStatus: r.withStatus, -} +})) -type TeamsListReposInOrgResponder = typeof teamsListReposInOrgResponder & +type TeamsListReposInOrgResponder = (typeof teamsListReposInOrg)["responder"] & KoaRuntimeResponder -const teamsListReposInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_minimal_repository)]], - undefined, -) - export type TeamsListReposInOrg = ( params: Params< t_TeamsListReposInOrgParamSchema, @@ -14500,25 +11700,15 @@ export type TeamsListReposInOrg = ( KoaRuntimeResponse | Response<200, t_minimal_repository[]> > -const teamsCheckPermissionsForRepoInOrgResponder = { - with200: r.with200, - with204: r.with204, - with404: r.with404, +const teamsCheckPermissionsForRepoInOrg = b((r) => ({ + with200: r.with200(s_team_repository), + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsCheckPermissionsForRepoInOrgResponder = - typeof teamsCheckPermissionsForRepoInOrgResponder & KoaRuntimeResponder - -const teamsCheckPermissionsForRepoInOrgResponseValidator = - responseValidationFactory( - [ - ["200", s_team_repository], - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) + (typeof teamsCheckPermissionsForRepoInOrg)["responder"] & KoaRuntimeResponder export type TeamsCheckPermissionsForRepoInOrg = ( params: Params< @@ -14536,16 +11726,14 @@ export type TeamsCheckPermissionsForRepoInOrg = ( | Response<404, void> > -const teamsAddOrUpdateRepoPermissionsInOrgResponder = { - with204: r.with204, +const teamsAddOrUpdateRepoPermissionsInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsAddOrUpdateRepoPermissionsInOrgResponder = - typeof teamsAddOrUpdateRepoPermissionsInOrgResponder & KoaRuntimeResponder - -const teamsAddOrUpdateRepoPermissionsInOrgResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof teamsAddOrUpdateRepoPermissionsInOrg)["responder"] & + KoaRuntimeResponder export type TeamsAddOrUpdateRepoPermissionsInOrg = ( params: Params< @@ -14558,18 +11746,13 @@ export type TeamsAddOrUpdateRepoPermissionsInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const teamsRemoveRepoInOrgResponder = { - with204: r.with204, +const teamsRemoveRepoInOrg = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type TeamsRemoveRepoInOrgResponder = typeof teamsRemoveRepoInOrgResponder & - KoaRuntimeResponder - -const teamsRemoveRepoInOrgResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type TeamsRemoveRepoInOrgResponder = + (typeof teamsRemoveRepoInOrg)["responder"] & KoaRuntimeResponder export type TeamsRemoveRepoInOrg = ( params: Params, @@ -14577,19 +11760,14 @@ export type TeamsRemoveRepoInOrg = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const teamsListChildInOrgResponder = { - with200: r.with200, +const teamsListChildInOrg = b((r) => ({ + with200: r.with200(z.array(s_team)), withStatus: r.withStatus, -} +})) -type TeamsListChildInOrgResponder = typeof teamsListChildInOrgResponder & +type TeamsListChildInOrgResponder = (typeof teamsListChildInOrg)["responder"] & KoaRuntimeResponder -const teamsListChildInOrgResponseValidator = responseValidationFactory( - [["200", z.array(s_team)]], - undefined, -) - export type TeamsListChildInOrg = ( params: Params< t_TeamsListChildInOrgParamSchema, @@ -14601,25 +11779,16 @@ export type TeamsListChildInOrg = ( ctx: RouterContext, ) => Promise | Response<200, t_team[]>> -const orgsEnableOrDisableSecurityProductOnAllOrgReposResponder = { - with204: r.with204, - with422: r.with422, +const orgsEnableOrDisableSecurityProductOnAllOrgRepos = b((r) => ({ + with204: r.with204(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type OrgsEnableOrDisableSecurityProductOnAllOrgReposResponder = - typeof orgsEnableOrDisableSecurityProductOnAllOrgReposResponder & + (typeof orgsEnableOrDisableSecurityProductOnAllOrgRepos)["responder"] & KoaRuntimeResponder -const orgsEnableOrDisableSecurityProductOnAllOrgReposResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["422", z.undefined()], - ], - undefined, - ) - export type OrgsEnableOrDisableSecurityProductOnAllOrgRepos = ( params: Params< t_OrgsEnableOrDisableSecurityProductOnAllOrgReposParamSchema, @@ -14633,29 +11802,18 @@ export type OrgsEnableOrDisableSecurityProductOnAllOrgRepos = ( KoaRuntimeResponse | Response<204, void> | Response<422, void> > -const projectsGetCardResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const projectsGetCard = b((r) => ({ + with200: r.with200(s_project_card), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ProjectsGetCardResponder = typeof projectsGetCardResponder & +type ProjectsGetCardResponder = (typeof projectsGetCard)["responder"] & KoaRuntimeResponder -const projectsGetCardResponseValidator = responseValidationFactory( - [ - ["200", s_project_card], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type ProjectsGetCard = ( params: Params, respond: ProjectsGetCardResponder, @@ -14669,31 +11827,19 @@ export type ProjectsGetCard = ( | Response<404, t_basic_error> > -const projectsUpdateCardResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const projectsUpdateCard = b((r) => ({ + with200: r.with200(s_project_card), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type ProjectsUpdateCardResponder = typeof projectsUpdateCardResponder & +type ProjectsUpdateCardResponder = (typeof projectsUpdateCard)["responder"] & KoaRuntimeResponder -const projectsUpdateCardResponseValidator = responseValidationFactory( - [ - ["200", s_project_card], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type ProjectsUpdateCard = ( params: Params< t_ProjectsUpdateCardParamSchema, @@ -14713,40 +11859,28 @@ export type ProjectsUpdateCard = ( | Response<422, t_validation_error_simple> > -const projectsDeleteCardResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, +const projectsDeleteCard = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), with403: r.with403<{ documentation_url?: string errors?: string[] message?: string - }>, - with404: r.with404, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z.array(z.string()).optional(), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ProjectsDeleteCardResponder = typeof projectsDeleteCardResponder & +type ProjectsDeleteCardResponder = (typeof projectsDeleteCard)["responder"] & KoaRuntimeResponder -const projectsDeleteCardResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z.array(z.string()).optional(), - }), - ], - ["404", s_basic_error], - ], - undefined, -) - export type ProjectsDeleteCard = ( params: Params, respond: ProjectsDeleteCardResponder, @@ -14767,10 +11901,10 @@ export type ProjectsDeleteCard = ( | Response<404, t_basic_error> > -const projectsMoveCardResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, +const projectsMoveCard = b((r) => ({ + with201: r.with201(z.object({})), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), with403: r.with403<{ documentation_url?: string errors?: { @@ -14780,8 +11914,23 @@ const projectsMoveCardResponder = { resource?: string }[] message?: string - }>, - with422: r.with422, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z + .array( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + resource: z.string().optional(), + field: z.string().optional(), + }), + ) + .optional(), + }), + ), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string @@ -14790,56 +11939,27 @@ const projectsMoveCardResponder = { message?: string }[] message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z + .array( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + }), + ) + .optional(), + }), + ), withStatus: r.withStatus, -} +})) -type ProjectsMoveCardResponder = typeof projectsMoveCardResponder & +type ProjectsMoveCardResponder = (typeof projectsMoveCard)["responder"] & KoaRuntimeResponder -const projectsMoveCardResponseValidator = responseValidationFactory( - [ - ["201", z.object({})], - ["304", z.undefined()], - ["401", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z - .array( - z.object({ - code: z.string().optional(), - message: z.string().optional(), - resource: z.string().optional(), - field: z.string().optional(), - }), - ) - .optional(), - }), - ], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z - .array( - z.object({ - code: z.string().optional(), - message: z.string().optional(), - }), - ) - .optional(), - }), - ], - ], - undefined, -) - export type ProjectsMoveCard = ( params: Params< t_ProjectsMoveCardParamSchema, @@ -14882,29 +12002,18 @@ export type ProjectsMoveCard = ( > > -const projectsGetColumnResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const projectsGetColumn = b((r) => ({ + with200: r.with200(s_project_column), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ProjectsGetColumnResponder = typeof projectsGetColumnResponder & +type ProjectsGetColumnResponder = (typeof projectsGetColumn)["responder"] & KoaRuntimeResponder -const projectsGetColumnResponseValidator = responseValidationFactory( - [ - ["200", s_project_column], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type ProjectsGetColumn = ( params: Params, respond: ProjectsGetColumnResponder, @@ -14918,26 +12027,16 @@ export type ProjectsGetColumn = ( | Response<404, t_basic_error> > -const projectsUpdateColumnResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const projectsUpdateColumn = b((r) => ({ + with200: r.with200(s_project_column), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type ProjectsUpdateColumnResponder = typeof projectsUpdateColumnResponder & - KoaRuntimeResponder - -const projectsUpdateColumnResponseValidator = responseValidationFactory( - [ - ["200", s_project_column], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) +type ProjectsUpdateColumnResponder = + (typeof projectsUpdateColumn)["responder"] & KoaRuntimeResponder export type ProjectsUpdateColumn = ( params: Params< @@ -14956,26 +12055,16 @@ export type ProjectsUpdateColumn = ( | Response<403, t_basic_error> > -const projectsDeleteColumnResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const projectsDeleteColumn = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type ProjectsDeleteColumnResponder = typeof projectsDeleteColumnResponder & - KoaRuntimeResponder - -const projectsDeleteColumnResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) +type ProjectsDeleteColumnResponder = + (typeof projectsDeleteColumn)["responder"] & KoaRuntimeResponder export type ProjectsDeleteColumn = ( params: Params, @@ -14989,27 +12078,17 @@ export type ProjectsDeleteColumn = ( | Response<403, t_basic_error> > -const projectsListCardsResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const projectsListCards = b((r) => ({ + with200: r.with200(z.array(s_project_card)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type ProjectsListCardsResponder = typeof projectsListCardsResponder & +type ProjectsListCardsResponder = (typeof projectsListCards)["responder"] & KoaRuntimeResponder -const projectsListCardsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project_card)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) - export type ProjectsListCards = ( params: Params< t_ProjectsListCardsParamSchema, @@ -15027,12 +12106,14 @@ export type ProjectsListCards = ( | Response<403, t_basic_error> > -const projectsCreateCardResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with422: r.with422, +const projectsCreateCard = b((r) => ({ + with201: r.with201(s_project_card), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with422: r.with422( + z.union([s_validation_error, s_validation_error_simple]), + ), with503: r.with503<{ code?: string documentation_url?: string @@ -15041,40 +12122,27 @@ const projectsCreateCardResponder = { message?: string }[] message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z + .array( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + }), + ) + .optional(), + }), + ), withStatus: r.withStatus, -} +})) -type ProjectsCreateCardResponder = typeof projectsCreateCardResponder & +type ProjectsCreateCardResponder = (typeof projectsCreateCard)["responder"] & KoaRuntimeResponder -const projectsCreateCardResponseValidator = responseValidationFactory( - [ - ["201", s_project_card], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", z.union([s_validation_error, s_validation_error_simple])], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z - .array( - z.object({ - code: z.string().optional(), - message: z.string().optional(), - }), - ) - .optional(), - }), - ], - ], - undefined, -) - export type ProjectsCreateCard = ( params: Params< t_ProjectsCreateCardParamSchema, @@ -15105,29 +12173,18 @@ export type ProjectsCreateCard = ( > > -const projectsMoveColumnResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with422: r.with422, +const projectsMoveColumn = b((r) => ({ + with201: r.with201(z.object({})), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type ProjectsMoveColumnResponder = typeof projectsMoveColumnResponder & +type ProjectsMoveColumnResponder = (typeof projectsMoveColumn)["responder"] & KoaRuntimeResponder -const projectsMoveColumnResponseValidator = responseValidationFactory( - [ - ["201", z.object({})], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type ProjectsMoveColumn = ( params: Params< t_ProjectsMoveColumnParamSchema, @@ -15146,25 +12203,16 @@ export type ProjectsMoveColumn = ( | Response<422, t_validation_error_simple> > -const projectsGetResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const projectsGet = b((r) => ({ + with200: r.with200(s_project), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} - -type ProjectsGetResponder = typeof projectsGetResponder & KoaRuntimeResponder +})) -const projectsGetResponseValidator = responseValidationFactory( - [ - ["200", s_project], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) +type ProjectsGetResponder = (typeof projectsGet)["responder"] & + KoaRuntimeResponder export type ProjectsGet = ( params: Params, @@ -15178,44 +12226,30 @@ export type ProjectsGet = ( | Response<403, t_basic_error> > -const projectsUpdateResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, +const projectsUpdate = b((r) => ({ + with200: r.with200(s_project), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), with403: r.with403<{ documentation_url?: string errors?: string[] message?: string - }>, - with404: r.with404, - with410: r.with410, - with422: r.with422, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z.array(z.string()).optional(), + }), + ), + with404: r.with404(z.undefined()), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type ProjectsUpdateResponder = typeof projectsUpdateResponder & +type ProjectsUpdateResponder = (typeof projectsUpdate)["responder"] & KoaRuntimeResponder -const projectsUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_project], - ["304", z.undefined()], - ["401", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z.array(z.string()).optional(), - }), - ], - ["404", z.undefined()], - ["410", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type ProjectsUpdate = ( params: Params< t_ProjectsUpdateParamSchema, @@ -15243,42 +12277,29 @@ export type ProjectsUpdate = ( | Response<422, t_validation_error_simple> > -const projectsDeleteResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, +const projectsDelete = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), with403: r.with403<{ documentation_url?: string errors?: string[] message?: string - }>, - with404: r.with404, - with410: r.with410, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + errors: z.array(z.string()).optional(), + }), + ), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) -type ProjectsDeleteResponder = typeof projectsDeleteResponder & +type ProjectsDeleteResponder = (typeof projectsDelete)["responder"] & KoaRuntimeResponder -const projectsDeleteResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - errors: z.array(z.string()).optional(), - }), - ], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) - export type ProjectsDelete = ( params: Params, respond: ProjectsDeleteResponder, @@ -15300,30 +12321,18 @@ export type ProjectsDelete = ( | Response<410, t_basic_error> > -const projectsListCollaboratorsResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const projectsListCollaborators = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ProjectsListCollaboratorsResponder = - typeof projectsListCollaboratorsResponder & KoaRuntimeResponder - -const projectsListCollaboratorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof projectsListCollaborators)["responder"] & KoaRuntimeResponder export type ProjectsListCollaborators = ( params: Params< @@ -15344,30 +12353,18 @@ export type ProjectsListCollaborators = ( | Response<422, t_validation_error> > -const projectsAddCollaboratorResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const projectsAddCollaborator = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ProjectsAddCollaboratorResponder = - typeof projectsAddCollaboratorResponder & KoaRuntimeResponder - -const projectsAddCollaboratorResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof projectsAddCollaborator)["responder"] & KoaRuntimeResponder export type ProjectsAddCollaborator = ( params: Params< @@ -15388,30 +12385,18 @@ export type ProjectsAddCollaborator = ( | Response<422, t_validation_error> > -const projectsRemoveCollaboratorResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const projectsRemoveCollaborator = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ProjectsRemoveCollaboratorResponder = - typeof projectsRemoveCollaboratorResponder & KoaRuntimeResponder - -const projectsRemoveCollaboratorResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof projectsRemoveCollaborator)["responder"] & KoaRuntimeResponder export type ProjectsRemoveCollaborator = ( params: Params, @@ -15427,30 +12412,20 @@ export type ProjectsRemoveCollaborator = ( | Response<422, t_validation_error> > -const projectsGetPermissionForUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const projectsGetPermissionForUser = b((r) => ({ + with200: r.with200( + s_project_collaborator_permission, + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ProjectsGetPermissionForUserResponder = - typeof projectsGetPermissionForUserResponder & KoaRuntimeResponder - -const projectsGetPermissionForUserResponseValidator = responseValidationFactory( - [ - ["200", s_project_collaborator_permission], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof projectsGetPermissionForUser)["responder"] & KoaRuntimeResponder export type ProjectsGetPermissionForUser = ( params: Params, @@ -15466,27 +12441,17 @@ export type ProjectsGetPermissionForUser = ( | Response<422, t_validation_error> > -const projectsListColumnsResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const projectsListColumns = b((r) => ({ + with200: r.with200(z.array(s_project_column)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type ProjectsListColumnsResponder = typeof projectsListColumnsResponder & +type ProjectsListColumnsResponder = (typeof projectsListColumns)["responder"] & KoaRuntimeResponder -const projectsListColumnsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project_column)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) - export type ProjectsListColumns = ( params: Params< t_ProjectsListColumnsParamSchema, @@ -15504,28 +12469,17 @@ export type ProjectsListColumns = ( | Response<403, t_basic_error> > -const projectsCreateColumnResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with422: r.with422, +const projectsCreateColumn = b((r) => ({ + with201: r.with201(s_project_column), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} - -type ProjectsCreateColumnResponder = typeof projectsCreateColumnResponder & - KoaRuntimeResponder +})) -const projectsCreateColumnResponseValidator = responseValidationFactory( - [ - ["201", s_project_column], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) +type ProjectsCreateColumnResponder = + (typeof projectsCreateColumn)["responder"] & KoaRuntimeResponder export type ProjectsCreateColumn = ( params: Params< @@ -15545,23 +12499,15 @@ export type ProjectsCreateColumn = ( | Response<422, t_validation_error_simple> > -const rateLimitGetResponder = { - with200: r.with200, - with304: r.with304, - with404: r.with404, +const rateLimitGet = b((r) => ({ + with200: r.with200(s_rate_limit_overview), + with304: r.with304(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type RateLimitGetResponder = typeof rateLimitGetResponder & KoaRuntimeResponder +})) -const rateLimitGetResponseValidator = responseValidationFactory( - [ - ["200", s_rate_limit_overview], - ["304", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) +type RateLimitGetResponder = (typeof rateLimitGet)["responder"] & + KoaRuntimeResponder export type RateLimitGet = ( params: Params, @@ -15574,25 +12520,15 @@ export type RateLimitGet = ( | Response<404, t_basic_error> > -const reposGetResponder = { - with200: r.with200, - with301: r.with301, - with403: r.with403, - with404: r.with404, +const reposGet = b((r) => ({ + with200: r.with200(s_full_repository), + with301: r.with301(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetResponder = typeof reposGetResponder & KoaRuntimeResponder - -const reposGetResponseValidator = responseValidationFactory( - [ - ["200", s_full_repository], - ["301", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type ReposGetResponder = (typeof reposGet)["responder"] & KoaRuntimeResponder export type ReposGet = ( params: Params, @@ -15606,27 +12542,17 @@ export type ReposGet = ( | Response<404, t_basic_error> > -const reposUpdateResponder = { - with200: r.with200, - with307: r.with307, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const reposUpdate = b((r) => ({ + with200: r.with200(s_full_repository), + with307: r.with307(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposUpdateResponder = typeof reposUpdateResponder & KoaRuntimeResponder - -const reposUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_full_repository], - ["307", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type ReposUpdateResponder = (typeof reposUpdate)["responder"] & + KoaRuntimeResponder export type ReposUpdate = ( params: Params< @@ -15646,34 +12572,24 @@ export type ReposUpdate = ( | Response<422, t_validation_error> > -const reposDeleteResponder = { - with204: r.with204, - with307: r.with307, +const reposDelete = b((r) => ({ + with204: r.with204(z.undefined()), + with307: r.with307(s_basic_error), with403: r.with403<{ documentation_url?: string message?: string - }>, - with404: r.with404, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type ReposDeleteResponder = typeof reposDeleteResponder & KoaRuntimeResponder +})) -const reposDeleteResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["307", s_basic_error], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["404", s_basic_error], - ], - undefined, -) +type ReposDeleteResponder = (typeof reposDelete)["responder"] & + KoaRuntimeResponder export type ReposDelete = ( params: Params, @@ -15693,29 +12609,21 @@ export type ReposDelete = ( | Response<404, t_basic_error> > -const actionsListArtifactsForRepoResponder = { +const actionsListArtifactsForRepo = b((r) => ({ with200: r.with200<{ artifacts: t_artifact[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + artifacts: z.array(s_artifact), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListArtifactsForRepoResponder = - typeof actionsListArtifactsForRepoResponder & KoaRuntimeResponder - -const actionsListArtifactsForRepoResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - artifacts: z.array(s_artifact), - }), - ], - ], - undefined, -) + (typeof actionsListArtifactsForRepo)["responder"] & KoaRuntimeResponder export type ActionsListArtifactsForRepo = ( params: Params< @@ -15737,37 +12645,27 @@ export type ActionsListArtifactsForRepo = ( > > -const actionsGetArtifactResponder = { - with200: r.with200, +const actionsGetArtifact = b((r) => ({ + with200: r.with200(s_artifact), withStatus: r.withStatus, -} +})) -type ActionsGetArtifactResponder = typeof actionsGetArtifactResponder & +type ActionsGetArtifactResponder = (typeof actionsGetArtifact)["responder"] & KoaRuntimeResponder -const actionsGetArtifactResponseValidator = responseValidationFactory( - [["200", s_artifact]], - undefined, -) - export type ActionsGetArtifact = ( params: Params, respond: ActionsGetArtifactResponder, ctx: RouterContext, ) => Promise | Response<200, t_artifact>> -const actionsDeleteArtifactResponder = { - with204: r.with204, +const actionsDeleteArtifact = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type ActionsDeleteArtifactResponder = typeof actionsDeleteArtifactResponder & - KoaRuntimeResponder - -const actionsDeleteArtifactResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type ActionsDeleteArtifactResponder = + (typeof actionsDeleteArtifact)["responder"] & KoaRuntimeResponder export type ActionsDeleteArtifact = ( params: Params, @@ -15775,22 +12673,14 @@ export type ActionsDeleteArtifact = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsDownloadArtifactResponder = { - with302: r.with302, - with410: r.with410, +const actionsDownloadArtifact = b((r) => ({ + with302: r.with302(z.undefined()), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsDownloadArtifactResponder = - typeof actionsDownloadArtifactResponder & KoaRuntimeResponder - -const actionsDownloadArtifactResponseValidator = responseValidationFactory( - [ - ["302", z.undefined()], - ["410", s_basic_error], - ], - undefined, -) + (typeof actionsDownloadArtifact)["responder"] & KoaRuntimeResponder export type ActionsDownloadArtifact = ( params: Params, @@ -15802,18 +12692,15 @@ export type ActionsDownloadArtifact = ( | Response<410, t_basic_error> > -const actionsGetActionsCacheUsageResponder = { - with200: r.with200, +const actionsGetActionsCacheUsage = b((r) => ({ + with200: r.with200( + s_actions_cache_usage_by_repository, + ), withStatus: r.withStatus, -} +})) type ActionsGetActionsCacheUsageResponder = - typeof actionsGetActionsCacheUsageResponder & KoaRuntimeResponder - -const actionsGetActionsCacheUsageResponseValidator = responseValidationFactory( - [["200", s_actions_cache_usage_by_repository]], - undefined, -) + (typeof actionsGetActionsCacheUsage)["responder"] & KoaRuntimeResponder export type ActionsGetActionsCacheUsage = ( params: Params, @@ -15824,18 +12711,13 @@ export type ActionsGetActionsCacheUsage = ( | Response<200, t_actions_cache_usage_by_repository> > -const actionsGetActionsCacheListResponder = { - with200: r.with200, +const actionsGetActionsCacheList = b((r) => ({ + with200: r.with200(s_actions_cache_list), withStatus: r.withStatus, -} +})) type ActionsGetActionsCacheListResponder = - typeof actionsGetActionsCacheListResponder & KoaRuntimeResponder - -const actionsGetActionsCacheListResponseValidator = responseValidationFactory( - [["200", s_actions_cache_list]], - undefined, -) + (typeof actionsGetActionsCacheList)["responder"] & KoaRuntimeResponder export type ActionsGetActionsCacheList = ( params: Params< @@ -15848,16 +12730,13 @@ export type ActionsGetActionsCacheList = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_cache_list>> -const actionsDeleteActionsCacheByKeyResponder = { - with200: r.with200, +const actionsDeleteActionsCacheByKey = b((r) => ({ + with200: r.with200(s_actions_cache_list), withStatus: r.withStatus, -} +})) type ActionsDeleteActionsCacheByKeyResponder = - typeof actionsDeleteActionsCacheByKeyResponder & KoaRuntimeResponder - -const actionsDeleteActionsCacheByKeyResponseValidator = - responseValidationFactory([["200", s_actions_cache_list]], undefined) + (typeof actionsDeleteActionsCacheByKey)["responder"] & KoaRuntimeResponder export type ActionsDeleteActionsCacheByKey = ( params: Params< @@ -15870,16 +12749,13 @@ export type ActionsDeleteActionsCacheByKey = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_cache_list>> -const actionsDeleteActionsCacheByIdResponder = { - with204: r.with204, +const actionsDeleteActionsCacheById = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteActionsCacheByIdResponder = - typeof actionsDeleteActionsCacheByIdResponder & KoaRuntimeResponder - -const actionsDeleteActionsCacheByIdResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsDeleteActionsCacheById)["responder"] & KoaRuntimeResponder export type ActionsDeleteActionsCacheById = ( params: Params, @@ -15887,18 +12763,13 @@ export type ActionsDeleteActionsCacheById = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsGetJobForWorkflowRunResponder = { - with200: r.with200, +const actionsGetJobForWorkflowRun = b((r) => ({ + with200: r.with200(s_job), withStatus: r.withStatus, -} +})) type ActionsGetJobForWorkflowRunResponder = - typeof actionsGetJobForWorkflowRunResponder & KoaRuntimeResponder - -const actionsGetJobForWorkflowRunResponseValidator = responseValidationFactory( - [["200", s_job]], - undefined, -) + (typeof actionsGetJobForWorkflowRun)["responder"] & KoaRuntimeResponder export type ActionsGetJobForWorkflowRun = ( params: Params, @@ -15906,16 +12777,14 @@ export type ActionsGetJobForWorkflowRun = ( ctx: RouterContext, ) => Promise | Response<200, t_job>> -const actionsDownloadJobLogsForWorkflowRunResponder = { - with302: r.with302, +const actionsDownloadJobLogsForWorkflowRun = b((r) => ({ + with302: r.with302(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDownloadJobLogsForWorkflowRunResponder = - typeof actionsDownloadJobLogsForWorkflowRunResponder & KoaRuntimeResponder - -const actionsDownloadJobLogsForWorkflowRunResponseValidator = - responseValidationFactory([["302", z.undefined()]], undefined) + (typeof actionsDownloadJobLogsForWorkflowRun)["responder"] & + KoaRuntimeResponder export type ActionsDownloadJobLogsForWorkflowRun = ( params: Params< @@ -15928,23 +12797,14 @@ export type ActionsDownloadJobLogsForWorkflowRun = ( ctx: RouterContext, ) => Promise | Response<302, void>> -const actionsReRunJobForWorkflowRunResponder = { - with201: r.with201, - with403: r.with403, +const actionsReRunJobForWorkflowRun = b((r) => ({ + with201: r.with201(s_empty_object), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsReRunJobForWorkflowRunResponder = - typeof actionsReRunJobForWorkflowRunResponder & KoaRuntimeResponder - -const actionsReRunJobForWorkflowRunResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["403", s_basic_error], - ], - undefined, - ) + (typeof actionsReRunJobForWorkflowRun)["responder"] & KoaRuntimeResponder export type ActionsReRunJobForWorkflowRun = ( params: Params< @@ -15961,25 +12821,16 @@ export type ActionsReRunJobForWorkflowRun = ( | Response<403, t_basic_error> > -const actionsGetCustomOidcSubClaimForRepoResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, +const actionsGetCustomOidcSubClaimForRepo = b((r) => ({ + with200: r.with200(s_oidc_custom_sub_repo), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsGetCustomOidcSubClaimForRepoResponder = - typeof actionsGetCustomOidcSubClaimForRepoResponder & KoaRuntimeResponder - -const actionsGetCustomOidcSubClaimForRepoResponseValidator = - responseValidationFactory( - [ - ["200", s_oidc_custom_sub_repo], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof actionsGetCustomOidcSubClaimForRepo)["responder"] & + KoaRuntimeResponder export type ActionsGetCustomOidcSubClaimForRepo = ( params: Params< @@ -15997,27 +12848,17 @@ export type ActionsGetCustomOidcSubClaimForRepo = ( | Response<404, t_basic_error> > -const actionsSetCustomOidcSubClaimForRepoResponder = { - with201: r.with201, - with400: r.with400, - with404: r.with404, - with422: r.with422, +const actionsSetCustomOidcSubClaimForRepo = b((r) => ({ + with201: r.with201(s_empty_object), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsSetCustomOidcSubClaimForRepoResponder = - typeof actionsSetCustomOidcSubClaimForRepoResponder & KoaRuntimeResponder - -const actionsSetCustomOidcSubClaimForRepoResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["400", s_scim_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) + (typeof actionsSetCustomOidcSubClaimForRepo)["responder"] & + KoaRuntimeResponder export type ActionsSetCustomOidcSubClaimForRepo = ( params: Params< @@ -16036,30 +12877,21 @@ export type ActionsSetCustomOidcSubClaimForRepo = ( | Response<422, t_validation_error_simple> > -const actionsListRepoOrganizationSecretsResponder = { +const actionsListRepoOrganizationSecrets = b((r) => ({ with200: r.with200<{ secrets: t_actions_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_actions_secret), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListRepoOrganizationSecretsResponder = - typeof actionsListRepoOrganizationSecretsResponder & KoaRuntimeResponder - -const actionsListRepoOrganizationSecretsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_actions_secret), - }), - ], - ], - undefined, - ) + (typeof actionsListRepoOrganizationSecrets)["responder"] & KoaRuntimeResponder export type ActionsListRepoOrganizationSecrets = ( params: Params< @@ -16081,30 +12913,22 @@ export type ActionsListRepoOrganizationSecrets = ( > > -const actionsListRepoOrganizationVariablesResponder = { +const actionsListRepoOrganizationVariables = b((r) => ({ with200: r.with200<{ total_count: number variables: t_actions_variable[] - }>, + }>( + z.object({ + total_count: z.coerce.number(), + variables: z.array(s_actions_variable), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListRepoOrganizationVariablesResponder = - typeof actionsListRepoOrganizationVariablesResponder & KoaRuntimeResponder - -const actionsListRepoOrganizationVariablesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - variables: z.array(s_actions_variable), - }), - ], - ], - undefined, - ) + (typeof actionsListRepoOrganizationVariables)["responder"] & + KoaRuntimeResponder export type ActionsListRepoOrganizationVariables = ( params: Params< @@ -16126,21 +12950,17 @@ export type ActionsListRepoOrganizationVariables = ( > > -const actionsGetGithubActionsPermissionsRepositoryResponder = { - with200: r.with200, +const actionsGetGithubActionsPermissionsRepository = b((r) => ({ + with200: r.with200( + s_actions_repository_permissions, + ), withStatus: r.withStatus, -} +})) type ActionsGetGithubActionsPermissionsRepositoryResponder = - typeof actionsGetGithubActionsPermissionsRepositoryResponder & + (typeof actionsGetGithubActionsPermissionsRepository)["responder"] & KoaRuntimeResponder -const actionsGetGithubActionsPermissionsRepositoryResponseValidator = - responseValidationFactory( - [["200", s_actions_repository_permissions]], - undefined, - ) - export type ActionsGetGithubActionsPermissionsRepository = ( params: Params< t_ActionsGetGithubActionsPermissionsRepositoryParamSchema, @@ -16154,18 +12974,15 @@ export type ActionsGetGithubActionsPermissionsRepository = ( KoaRuntimeResponse | Response<200, t_actions_repository_permissions> > -const actionsSetGithubActionsPermissionsRepositoryResponder = { - with204: r.with204, +const actionsSetGithubActionsPermissionsRepository = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetGithubActionsPermissionsRepositoryResponder = - typeof actionsSetGithubActionsPermissionsRepositoryResponder & + (typeof actionsSetGithubActionsPermissionsRepository)["responder"] & KoaRuntimeResponder -const actionsSetGithubActionsPermissionsRepositoryResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type ActionsSetGithubActionsPermissionsRepository = ( params: Params< t_ActionsSetGithubActionsPermissionsRepositoryParamSchema, @@ -16177,19 +12994,16 @@ export type ActionsSetGithubActionsPermissionsRepository = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsGetWorkflowAccessToRepositoryResponder = { - with200: r.with200, +const actionsGetWorkflowAccessToRepository = b((r) => ({ + with200: r.with200( + s_actions_workflow_access_to_repository, + ), withStatus: r.withStatus, -} +})) type ActionsGetWorkflowAccessToRepositoryResponder = - typeof actionsGetWorkflowAccessToRepositoryResponder & KoaRuntimeResponder - -const actionsGetWorkflowAccessToRepositoryResponseValidator = - responseValidationFactory( - [["200", s_actions_workflow_access_to_repository]], - undefined, - ) + (typeof actionsGetWorkflowAccessToRepository)["responder"] & + KoaRuntimeResponder export type ActionsGetWorkflowAccessToRepository = ( params: Params< @@ -16205,16 +13019,14 @@ export type ActionsGetWorkflowAccessToRepository = ( | Response<200, t_actions_workflow_access_to_repository> > -const actionsSetWorkflowAccessToRepositoryResponder = { - with204: r.with204, +const actionsSetWorkflowAccessToRepository = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetWorkflowAccessToRepositoryResponder = - typeof actionsSetWorkflowAccessToRepositoryResponder & KoaRuntimeResponder - -const actionsSetWorkflowAccessToRepositoryResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsSetWorkflowAccessToRepository)["responder"] & + KoaRuntimeResponder export type ActionsSetWorkflowAccessToRepository = ( params: Params< @@ -16227,16 +13039,13 @@ export type ActionsSetWorkflowAccessToRepository = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsGetAllowedActionsRepositoryResponder = { - with200: r.with200, +const actionsGetAllowedActionsRepository = b((r) => ({ + with200: r.with200(s_selected_actions), withStatus: r.withStatus, -} +})) type ActionsGetAllowedActionsRepositoryResponder = - typeof actionsGetAllowedActionsRepositoryResponder & KoaRuntimeResponder - -const actionsGetAllowedActionsRepositoryResponseValidator = - responseValidationFactory([["200", s_selected_actions]], undefined) + (typeof actionsGetAllowedActionsRepository)["responder"] & KoaRuntimeResponder export type ActionsGetAllowedActionsRepository = ( params: Params< @@ -16249,16 +13058,13 @@ export type ActionsGetAllowedActionsRepository = ( ctx: RouterContext, ) => Promise | Response<200, t_selected_actions>> -const actionsSetAllowedActionsRepositoryResponder = { - with204: r.with204, +const actionsSetAllowedActionsRepository = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetAllowedActionsRepositoryResponder = - typeof actionsSetAllowedActionsRepositoryResponder & KoaRuntimeResponder - -const actionsSetAllowedActionsRepositoryResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsSetAllowedActionsRepository)["responder"] & KoaRuntimeResponder export type ActionsSetAllowedActionsRepository = ( params: Params< @@ -16271,21 +13077,17 @@ export type ActionsSetAllowedActionsRepository = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = { - with200: r.with200, +const actionsGetGithubActionsDefaultWorkflowPermissionsRepository = b((r) => ({ + with200: r.with200( + s_actions_get_default_workflow_permissions, + ), withStatus: r.withStatus, -} +})) type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = - typeof actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder & + (typeof actionsGetGithubActionsDefaultWorkflowPermissionsRepository)["responder"] & KoaRuntimeResponder -const actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponseValidator = - responseValidationFactory( - [["200", s_actions_get_default_workflow_permissions]], - undefined, - ) - export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepository = ( params: Params< t_ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParamSchema, @@ -16300,25 +13102,16 @@ export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepository = ( | Response<200, t_actions_get_default_workflow_permissions> > -const actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = { - with204: r.with204, - with409: r.with409, +const actionsSetGithubActionsDefaultWorkflowPermissionsRepository = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = - typeof actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder & + (typeof actionsSetGithubActionsDefaultWorkflowPermissionsRepository)["responder"] & KoaRuntimeResponder -const actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) - export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepository = ( params: Params< t_ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryParamSchema, @@ -16332,30 +13125,17 @@ export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepository = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const actionsListSelfHostedRunnersForRepoResponder = { +const actionsListSelfHostedRunnersForRepo = b((r) => ({ with200: r.with200<{ runners: t_runner[] total_count: number - }>, + }>(z.object({ total_count: z.coerce.number(), runners: z.array(s_runner) })), withStatus: r.withStatus, -} +})) type ActionsListSelfHostedRunnersForRepoResponder = - typeof actionsListSelfHostedRunnersForRepoResponder & KoaRuntimeResponder - -const actionsListSelfHostedRunnersForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - runners: z.array(s_runner), - }), - ], - ], - undefined, - ) + (typeof actionsListSelfHostedRunnersForRepo)["responder"] & + KoaRuntimeResponder export type ActionsListSelfHostedRunnersForRepo = ( params: Params< @@ -16377,16 +13157,14 @@ export type ActionsListSelfHostedRunnersForRepo = ( > > -const actionsListRunnerApplicationsForRepoResponder = { - with200: r.with200, +const actionsListRunnerApplicationsForRepo = b((r) => ({ + with200: r.with200(z.array(s_runner_application)), withStatus: r.withStatus, -} +})) type ActionsListRunnerApplicationsForRepoResponder = - typeof actionsListRunnerApplicationsForRepoResponder & KoaRuntimeResponder - -const actionsListRunnerApplicationsForRepoResponseValidator = - responseValidationFactory([["200", z.array(s_runner_application)]], undefined) + (typeof actionsListRunnerApplicationsForRepo)["responder"] & + KoaRuntimeResponder export type ActionsListRunnerApplicationsForRepo = ( params: Params< @@ -16401,30 +13179,20 @@ export type ActionsListRunnerApplicationsForRepo = ( KoaRuntimeResponse | Response<200, t_runner_application[]> > -const actionsGenerateRunnerJitconfigForRepoResponder = { +const actionsGenerateRunnerJitconfigForRepo = b((r) => ({ with201: r.with201<{ encoded_jit_config: string runner: t_runner - }>, - with404: r.with404, - with409: r.with409, - with422: r.with422, + }>(z.object({ runner: s_runner, encoded_jit_config: z.string() })), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsGenerateRunnerJitconfigForRepoResponder = - typeof actionsGenerateRunnerJitconfigForRepoResponder & KoaRuntimeResponder - -const actionsGenerateRunnerJitconfigForRepoResponseValidator = - responseValidationFactory( - [ - ["201", z.object({ runner: s_runner, encoded_jit_config: z.string() })], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) + (typeof actionsGenerateRunnerJitconfigForRepo)["responder"] & + KoaRuntimeResponder export type ActionsGenerateRunnerJitconfigForRepo = ( params: Params< @@ -16449,16 +13217,14 @@ export type ActionsGenerateRunnerJitconfigForRepo = ( | Response<422, t_validation_error_simple> > -const actionsCreateRegistrationTokenForRepoResponder = { - with201: r.with201, +const actionsCreateRegistrationTokenForRepo = b((r) => ({ + with201: r.with201(s_authentication_token), withStatus: r.withStatus, -} +})) type ActionsCreateRegistrationTokenForRepoResponder = - typeof actionsCreateRegistrationTokenForRepoResponder & KoaRuntimeResponder - -const actionsCreateRegistrationTokenForRepoResponseValidator = - responseValidationFactory([["201", s_authentication_token]], undefined) + (typeof actionsCreateRegistrationTokenForRepo)["responder"] & + KoaRuntimeResponder export type ActionsCreateRegistrationTokenForRepo = ( params: Params< @@ -16473,16 +13239,13 @@ export type ActionsCreateRegistrationTokenForRepo = ( KoaRuntimeResponse | Response<201, t_authentication_token> > -const actionsCreateRemoveTokenForRepoResponder = { - with201: r.with201, +const actionsCreateRemoveTokenForRepo = b((r) => ({ + with201: r.with201(s_authentication_token), withStatus: r.withStatus, -} +})) type ActionsCreateRemoveTokenForRepoResponder = - typeof actionsCreateRemoveTokenForRepoResponder & KoaRuntimeResponder - -const actionsCreateRemoveTokenForRepoResponseValidator = - responseValidationFactory([["201", s_authentication_token]], undefined) + (typeof actionsCreateRemoveTokenForRepo)["responder"] & KoaRuntimeResponder export type ActionsCreateRemoveTokenForRepo = ( params: Params< @@ -16497,16 +13260,13 @@ export type ActionsCreateRemoveTokenForRepo = ( KoaRuntimeResponse | Response<201, t_authentication_token> > -const actionsGetSelfHostedRunnerForRepoResponder = { - with200: r.with200, +const actionsGetSelfHostedRunnerForRepo = b((r) => ({ + with200: r.with200(s_runner), withStatus: r.withStatus, -} +})) type ActionsGetSelfHostedRunnerForRepoResponder = - typeof actionsGetSelfHostedRunnerForRepoResponder & KoaRuntimeResponder - -const actionsGetSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory([["200", s_runner]], undefined) + (typeof actionsGetSelfHostedRunnerForRepo)["responder"] & KoaRuntimeResponder export type ActionsGetSelfHostedRunnerForRepo = ( params: Params< @@ -16519,16 +13279,14 @@ export type ActionsGetSelfHostedRunnerForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_runner>> -const actionsDeleteSelfHostedRunnerFromRepoResponder = { - with204: r.with204, +const actionsDeleteSelfHostedRunnerFromRepo = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteSelfHostedRunnerFromRepoResponder = - typeof actionsDeleteSelfHostedRunnerFromRepoResponder & KoaRuntimeResponder - -const actionsDeleteSelfHostedRunnerFromRepoResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsDeleteSelfHostedRunnerFromRepo)["responder"] & + KoaRuntimeResponder export type ActionsDeleteSelfHostedRunnerFromRepo = ( params: Params< @@ -16541,34 +13299,24 @@ export type ActionsDeleteSelfHostedRunnerFromRepo = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListLabelsForSelfHostedRunnerForRepoResponder = { +const actionsListLabelsForSelfHostedRunnerForRepo = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsListLabelsForSelfHostedRunnerForRepoResponder = - typeof actionsListLabelsForSelfHostedRunnerForRepoResponder & + (typeof actionsListLabelsForSelfHostedRunnerForRepo)["responder"] & KoaRuntimeResponder -const actionsListLabelsForSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - export type ActionsListLabelsForSelfHostedRunnerForRepo = ( params: Params< t_ActionsListLabelsForSelfHostedRunnerForRepoParamSchema, @@ -16590,36 +13338,25 @@ export type ActionsListLabelsForSelfHostedRunnerForRepo = ( | Response<404, t_basic_error> > -const actionsAddCustomLabelsToSelfHostedRunnerForRepoResponder = { +const actionsAddCustomLabelsToSelfHostedRunnerForRepo = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsAddCustomLabelsToSelfHostedRunnerForRepoResponder = - typeof actionsAddCustomLabelsToSelfHostedRunnerForRepoResponder & + (typeof actionsAddCustomLabelsToSelfHostedRunnerForRepo)["responder"] & KoaRuntimeResponder -const actionsAddCustomLabelsToSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo = ( params: Params< t_ActionsAddCustomLabelsToSelfHostedRunnerForRepoParamSchema, @@ -16642,36 +13379,25 @@ export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo = ( | Response<422, t_validation_error_simple> > -const actionsSetCustomLabelsForSelfHostedRunnerForRepoResponder = { +const actionsSetCustomLabelsForSelfHostedRunnerForRepo = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsSetCustomLabelsForSelfHostedRunnerForRepoResponder = - typeof actionsSetCustomLabelsForSelfHostedRunnerForRepoResponder & + (typeof actionsSetCustomLabelsForSelfHostedRunnerForRepo)["responder"] & KoaRuntimeResponder -const actionsSetCustomLabelsForSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo = ( params: Params< t_ActionsSetCustomLabelsForSelfHostedRunnerForRepoParamSchema, @@ -16694,34 +13420,24 @@ export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo = ( | Response<422, t_validation_error_simple> > -const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder = { +const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder = - typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder & + (typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo)["responder"] & KoaRuntimeResponder -const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ], - undefined, - ) - export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo = ( params: Params< t_ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoParamSchema, @@ -16743,36 +13459,25 @@ export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo = ( | Response<404, t_basic_error> > -const actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder = { +const actionsRemoveCustomLabelFromSelfHostedRunnerForRepo = b((r) => ({ with200: r.with200<{ labels: t_runner_label[] total_count: number - }>, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + labels: z.array(s_runner_label), + }), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder = - typeof actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder & + (typeof actionsRemoveCustomLabelFromSelfHostedRunnerForRepo)["responder"] & KoaRuntimeResponder -const actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - labels: z.array(s_runner_label), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) - export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo = ( params: Params< t_ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoParamSchema, @@ -16795,30 +13500,21 @@ export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo = ( | Response<422, t_validation_error_simple> > -const actionsListWorkflowRunsForRepoResponder = { +const actionsListWorkflowRunsForRepo = b((r) => ({ with200: r.with200<{ total_count: number workflow_runs: t_workflow_run[] - }>, + }>( + z.object({ + total_count: z.coerce.number(), + workflow_runs: z.array(s_workflow_run), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListWorkflowRunsForRepoResponder = - typeof actionsListWorkflowRunsForRepoResponder & KoaRuntimeResponder - -const actionsListWorkflowRunsForRepoResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - workflow_runs: z.array(s_workflow_run), - }), - ], - ], - undefined, - ) + (typeof actionsListWorkflowRunsForRepo)["responder"] & KoaRuntimeResponder export type ActionsListWorkflowRunsForRepo = ( params: Params< @@ -16840,18 +13536,13 @@ export type ActionsListWorkflowRunsForRepo = ( > > -const actionsGetWorkflowRunResponder = { - with200: r.with200, +const actionsGetWorkflowRun = b((r) => ({ + with200: r.with200(s_workflow_run), withStatus: r.withStatus, -} - -type ActionsGetWorkflowRunResponder = typeof actionsGetWorkflowRunResponder & - KoaRuntimeResponder +})) -const actionsGetWorkflowRunResponseValidator = responseValidationFactory( - [["200", s_workflow_run]], - undefined, -) +type ActionsGetWorkflowRunResponder = + (typeof actionsGetWorkflowRun)["responder"] & KoaRuntimeResponder export type ActionsGetWorkflowRun = ( params: Params< @@ -16864,18 +13555,13 @@ export type ActionsGetWorkflowRun = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow_run>> -const actionsDeleteWorkflowRunResponder = { - with204: r.with204, +const actionsDeleteWorkflowRun = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteWorkflowRunResponder = - typeof actionsDeleteWorkflowRunResponder & KoaRuntimeResponder - -const actionsDeleteWorkflowRunResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof actionsDeleteWorkflowRun)["responder"] & KoaRuntimeResponder export type ActionsDeleteWorkflowRun = ( params: Params, @@ -16883,18 +13569,15 @@ export type ActionsDeleteWorkflowRun = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsGetReviewsForRunResponder = { - with200: r.with200, +const actionsGetReviewsForRun = b((r) => ({ + with200: r.with200( + z.array(s_environment_approvals), + ), withStatus: r.withStatus, -} +})) type ActionsGetReviewsForRunResponder = - typeof actionsGetReviewsForRunResponder & KoaRuntimeResponder - -const actionsGetReviewsForRunResponseValidator = responseValidationFactory( - [["200", z.array(s_environment_approvals)]], - undefined, -) + (typeof actionsGetReviewsForRun)["responder"] & KoaRuntimeResponder export type ActionsGetReviewsForRun = ( params: Params, @@ -16904,24 +13587,15 @@ export type ActionsGetReviewsForRun = ( KoaRuntimeResponse | Response<200, t_environment_approvals[]> > -const actionsApproveWorkflowRunResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, +const actionsApproveWorkflowRun = b((r) => ({ + with201: r.with201(s_empty_object), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsApproveWorkflowRunResponder = - typeof actionsApproveWorkflowRunResponder & KoaRuntimeResponder - -const actionsApproveWorkflowRunResponseValidator = responseValidationFactory( - [ - ["201", s_empty_object], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof actionsApproveWorkflowRun)["responder"] & KoaRuntimeResponder export type ActionsApproveWorkflowRun = ( params: Params, @@ -16934,30 +13608,21 @@ export type ActionsApproveWorkflowRun = ( | Response<404, t_basic_error> > -const actionsListWorkflowRunArtifactsResponder = { +const actionsListWorkflowRunArtifacts = b((r) => ({ with200: r.with200<{ artifacts: t_artifact[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + artifacts: z.array(s_artifact), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListWorkflowRunArtifactsResponder = - typeof actionsListWorkflowRunArtifactsResponder & KoaRuntimeResponder - -const actionsListWorkflowRunArtifactsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - artifacts: z.array(s_artifact), - }), - ], - ], - undefined, - ) + (typeof actionsListWorkflowRunArtifacts)["responder"] & KoaRuntimeResponder export type ActionsListWorkflowRunArtifacts = ( params: Params< @@ -16979,18 +13644,13 @@ export type ActionsListWorkflowRunArtifacts = ( > > -const actionsGetWorkflowRunAttemptResponder = { - with200: r.with200, +const actionsGetWorkflowRunAttempt = b((r) => ({ + with200: r.with200(s_workflow_run), withStatus: r.withStatus, -} +})) type ActionsGetWorkflowRunAttemptResponder = - typeof actionsGetWorkflowRunAttemptResponder & KoaRuntimeResponder - -const actionsGetWorkflowRunAttemptResponseValidator = responseValidationFactory( - [["200", s_workflow_run]], - undefined, -) + (typeof actionsGetWorkflowRunAttempt)["responder"] & KoaRuntimeResponder export type ActionsGetWorkflowRunAttempt = ( params: Params< @@ -17003,29 +13663,18 @@ export type ActionsGetWorkflowRunAttempt = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow_run>> -const actionsListJobsForWorkflowRunAttemptResponder = { +const actionsListJobsForWorkflowRunAttempt = b((r) => ({ with200: r.with200<{ jobs: t_job[] total_count: number - }>, - with404: r.with404, + }>(z.object({ total_count: z.coerce.number(), jobs: z.array(s_job) })), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsListJobsForWorkflowRunAttemptResponder = - typeof actionsListJobsForWorkflowRunAttemptResponder & KoaRuntimeResponder - -const actionsListJobsForWorkflowRunAttemptResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ total_count: z.coerce.number(), jobs: z.array(s_job) }), - ], - ["404", s_basic_error], - ], - undefined, - ) + (typeof actionsListJobsForWorkflowRunAttempt)["responder"] & + KoaRuntimeResponder export type ActionsListJobsForWorkflowRunAttempt = ( params: Params< @@ -17048,16 +13697,14 @@ export type ActionsListJobsForWorkflowRunAttempt = ( | Response<404, t_basic_error> > -const actionsDownloadWorkflowRunAttemptLogsResponder = { - with302: r.with302, +const actionsDownloadWorkflowRunAttemptLogs = b((r) => ({ + with302: r.with302(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDownloadWorkflowRunAttemptLogsResponder = - typeof actionsDownloadWorkflowRunAttemptLogsResponder & KoaRuntimeResponder - -const actionsDownloadWorkflowRunAttemptLogsResponseValidator = - responseValidationFactory([["302", z.undefined()]], undefined) + (typeof actionsDownloadWorkflowRunAttemptLogs)["responder"] & + KoaRuntimeResponder export type ActionsDownloadWorkflowRunAttemptLogs = ( params: Params< @@ -17070,22 +13717,14 @@ export type ActionsDownloadWorkflowRunAttemptLogs = ( ctx: RouterContext, ) => Promise | Response<302, void>> -const actionsCancelWorkflowRunResponder = { - with202: r.with202, - with409: r.with409, +const actionsCancelWorkflowRun = b((r) => ({ + with202: r.with202(s_empty_object), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsCancelWorkflowRunResponder = - typeof actionsCancelWorkflowRunResponder & KoaRuntimeResponder - -const actionsCancelWorkflowRunResponseValidator = responseValidationFactory( - [ - ["202", s_empty_object], - ["409", s_basic_error], - ], - undefined, -) + (typeof actionsCancelWorkflowRun)["responder"] & KoaRuntimeResponder export type ActionsCancelWorkflowRun = ( params: Params, @@ -17097,16 +13736,13 @@ export type ActionsCancelWorkflowRun = ( | Response<409, t_basic_error> > -const actionsReviewCustomGatesForRunResponder = { - with204: r.with204, +const actionsReviewCustomGatesForRun = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsReviewCustomGatesForRunResponder = - typeof actionsReviewCustomGatesForRunResponder & KoaRuntimeResponder - -const actionsReviewCustomGatesForRunResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsReviewCustomGatesForRun)["responder"] & KoaRuntimeResponder export type ActionsReviewCustomGatesForRun = ( params: Params< @@ -17119,23 +13755,14 @@ export type ActionsReviewCustomGatesForRun = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsForceCancelWorkflowRunResponder = { - with202: r.with202, - with409: r.with409, +const actionsForceCancelWorkflowRun = b((r) => ({ + with202: r.with202(s_empty_object), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsForceCancelWorkflowRunResponder = - typeof actionsForceCancelWorkflowRunResponder & KoaRuntimeResponder - -const actionsForceCancelWorkflowRunResponseValidator = - responseValidationFactory( - [ - ["202", s_empty_object], - ["409", s_basic_error], - ], - undefined, - ) + (typeof actionsForceCancelWorkflowRun)["responder"] & KoaRuntimeResponder export type ActionsForceCancelWorkflowRun = ( params: Params, @@ -17147,27 +13774,16 @@ export type ActionsForceCancelWorkflowRun = ( | Response<409, t_basic_error> > -const actionsListJobsForWorkflowRunResponder = { +const actionsListJobsForWorkflowRun = b((r) => ({ with200: r.with200<{ jobs: t_job[] total_count: number - }>, + }>(z.object({ total_count: z.coerce.number(), jobs: z.array(s_job) })), withStatus: r.withStatus, -} +})) type ActionsListJobsForWorkflowRunResponder = - typeof actionsListJobsForWorkflowRunResponder & KoaRuntimeResponder - -const actionsListJobsForWorkflowRunResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ total_count: z.coerce.number(), jobs: z.array(s_job) }), - ], - ], - undefined, - ) + (typeof actionsListJobsForWorkflowRun)["responder"] & KoaRuntimeResponder export type ActionsListJobsForWorkflowRun = ( params: Params< @@ -17189,16 +13805,13 @@ export type ActionsListJobsForWorkflowRun = ( > > -const actionsDownloadWorkflowRunLogsResponder = { - with302: r.with302, +const actionsDownloadWorkflowRunLogs = b((r) => ({ + with302: r.with302(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDownloadWorkflowRunLogsResponder = - typeof actionsDownloadWorkflowRunLogsResponder & KoaRuntimeResponder - -const actionsDownloadWorkflowRunLogsResponseValidator = - responseValidationFactory([["302", z.undefined()]], undefined) + (typeof actionsDownloadWorkflowRunLogs)["responder"] & KoaRuntimeResponder export type ActionsDownloadWorkflowRunLogs = ( params: Params, @@ -17206,24 +13819,15 @@ export type ActionsDownloadWorkflowRunLogs = ( ctx: RouterContext, ) => Promise | Response<302, void>> -const actionsDeleteWorkflowRunLogsResponder = { - with204: r.with204, - with403: r.with403, - with500: r.with500, +const actionsDeleteWorkflowRunLogs = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type ActionsDeleteWorkflowRunLogsResponder = - typeof actionsDeleteWorkflowRunLogsResponder & KoaRuntimeResponder - -const actionsDeleteWorkflowRunLogsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof actionsDeleteWorkflowRunLogs)["responder"] & KoaRuntimeResponder export type ActionsDeleteWorkflowRunLogs = ( params: Params, @@ -17236,16 +13840,13 @@ export type ActionsDeleteWorkflowRunLogs = ( | Response<500, t_basic_error> > -const actionsGetPendingDeploymentsForRunResponder = { - with200: r.with200, +const actionsGetPendingDeploymentsForRun = b((r) => ({ + with200: r.with200(z.array(s_pending_deployment)), withStatus: r.withStatus, -} +})) type ActionsGetPendingDeploymentsForRunResponder = - typeof actionsGetPendingDeploymentsForRunResponder & KoaRuntimeResponder - -const actionsGetPendingDeploymentsForRunResponseValidator = - responseValidationFactory([["200", z.array(s_pending_deployment)]], undefined) + (typeof actionsGetPendingDeploymentsForRun)["responder"] & KoaRuntimeResponder export type ActionsGetPendingDeploymentsForRun = ( params: Params< @@ -17260,16 +13861,14 @@ export type ActionsGetPendingDeploymentsForRun = ( KoaRuntimeResponse | Response<200, t_pending_deployment[]> > -const actionsReviewPendingDeploymentsForRunResponder = { - with200: r.with200, +const actionsReviewPendingDeploymentsForRun = b((r) => ({ + with200: r.with200(z.array(s_deployment)), withStatus: r.withStatus, -} +})) type ActionsReviewPendingDeploymentsForRunResponder = - typeof actionsReviewPendingDeploymentsForRunResponder & KoaRuntimeResponder - -const actionsReviewPendingDeploymentsForRunResponseValidator = - responseValidationFactory([["200", z.array(s_deployment)]], undefined) + (typeof actionsReviewPendingDeploymentsForRun)["responder"] & + KoaRuntimeResponder export type ActionsReviewPendingDeploymentsForRun = ( params: Params< @@ -17282,18 +13881,13 @@ export type ActionsReviewPendingDeploymentsForRun = ( ctx: RouterContext, ) => Promise | Response<200, t_deployment[]>> -const actionsReRunWorkflowResponder = { - with201: r.with201, +const actionsReRunWorkflow = b((r) => ({ + with201: r.with201(s_empty_object), withStatus: r.withStatus, -} - -type ActionsReRunWorkflowResponder = typeof actionsReRunWorkflowResponder & - KoaRuntimeResponder +})) -const actionsReRunWorkflowResponseValidator = responseValidationFactory( - [["201", s_empty_object]], - undefined, -) +type ActionsReRunWorkflowResponder = + (typeof actionsReRunWorkflow)["responder"] & KoaRuntimeResponder export type ActionsReRunWorkflow = ( params: Params< @@ -17306,16 +13900,13 @@ export type ActionsReRunWorkflow = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -const actionsReRunWorkflowFailedJobsResponder = { - with201: r.with201, +const actionsReRunWorkflowFailedJobs = b((r) => ({ + with201: r.with201(s_empty_object), withStatus: r.withStatus, -} +})) type ActionsReRunWorkflowFailedJobsResponder = - typeof actionsReRunWorkflowFailedJobsResponder & KoaRuntimeResponder - -const actionsReRunWorkflowFailedJobsResponseValidator = - responseValidationFactory([["201", s_empty_object]], undefined) + (typeof actionsReRunWorkflowFailedJobs)["responder"] & KoaRuntimeResponder export type ActionsReRunWorkflowFailedJobs = ( params: Params< @@ -17328,18 +13919,13 @@ export type ActionsReRunWorkflowFailedJobs = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -const actionsGetWorkflowRunUsageResponder = { - with200: r.with200, +const actionsGetWorkflowRunUsage = b((r) => ({ + with200: r.with200(s_workflow_run_usage), withStatus: r.withStatus, -} +})) type ActionsGetWorkflowRunUsageResponder = - typeof actionsGetWorkflowRunUsageResponder & KoaRuntimeResponder - -const actionsGetWorkflowRunUsageResponseValidator = responseValidationFactory( - [["200", s_workflow_run_usage]], - undefined, -) + (typeof actionsGetWorkflowRunUsage)["responder"] & KoaRuntimeResponder export type ActionsGetWorkflowRunUsage = ( params: Params, @@ -17347,29 +13933,21 @@ export type ActionsGetWorkflowRunUsage = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow_run_usage>> -const actionsListRepoSecretsResponder = { +const actionsListRepoSecrets = b((r) => ({ with200: r.with200<{ secrets: t_actions_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_actions_secret), + }), + ), withStatus: r.withStatus, -} - -type ActionsListRepoSecretsResponder = typeof actionsListRepoSecretsResponder & - KoaRuntimeResponder +})) -const actionsListRepoSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_actions_secret), - }), - ], - ], - undefined, -) +type ActionsListRepoSecretsResponder = + (typeof actionsListRepoSecrets)["responder"] & KoaRuntimeResponder export type ActionsListRepoSecrets = ( params: Params< @@ -17391,18 +13969,13 @@ export type ActionsListRepoSecrets = ( > > -const actionsGetRepoPublicKeyResponder = { - with200: r.with200, +const actionsGetRepoPublicKey = b((r) => ({ + with200: r.with200(s_actions_public_key), withStatus: r.withStatus, -} +})) type ActionsGetRepoPublicKeyResponder = - typeof actionsGetRepoPublicKeyResponder & KoaRuntimeResponder - -const actionsGetRepoPublicKeyResponseValidator = responseValidationFactory( - [["200", s_actions_public_key]], - undefined, -) + (typeof actionsGetRepoPublicKey)["responder"] & KoaRuntimeResponder export type ActionsGetRepoPublicKey = ( params: Params, @@ -17410,18 +13983,13 @@ export type ActionsGetRepoPublicKey = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> -const actionsGetRepoSecretResponder = { - with200: r.with200, +const actionsGetRepoSecret = b((r) => ({ + with200: r.with200(s_actions_secret), withStatus: r.withStatus, -} +})) -type ActionsGetRepoSecretResponder = typeof actionsGetRepoSecretResponder & - KoaRuntimeResponder - -const actionsGetRepoSecretResponseValidator = responseValidationFactory( - [["200", s_actions_secret]], - undefined, -) +type ActionsGetRepoSecretResponder = + (typeof actionsGetRepoSecret)["responder"] & KoaRuntimeResponder export type ActionsGetRepoSecret = ( params: Params, @@ -17429,23 +13997,14 @@ export type ActionsGetRepoSecret = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_secret>> -const actionsCreateOrUpdateRepoSecretResponder = { - with201: r.with201, - with204: r.with204, +const actionsCreateOrUpdateRepoSecret = b((r) => ({ + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsCreateOrUpdateRepoSecretResponder = - typeof actionsCreateOrUpdateRepoSecretResponder & KoaRuntimeResponder - -const actionsCreateOrUpdateRepoSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) + (typeof actionsCreateOrUpdateRepoSecret)["responder"] & KoaRuntimeResponder export type ActionsCreateOrUpdateRepoSecret = ( params: Params< @@ -17462,18 +14021,13 @@ export type ActionsCreateOrUpdateRepoSecret = ( | Response<204, void> > -const actionsDeleteRepoSecretResponder = { - with204: r.with204, +const actionsDeleteRepoSecret = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteRepoSecretResponder = - typeof actionsDeleteRepoSecretResponder & KoaRuntimeResponder - -const actionsDeleteRepoSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof actionsDeleteRepoSecret)["responder"] & KoaRuntimeResponder export type ActionsDeleteRepoSecret = ( params: Params, @@ -17481,29 +14035,21 @@ export type ActionsDeleteRepoSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListRepoVariablesResponder = { +const actionsListRepoVariables = b((r) => ({ with200: r.with200<{ total_count: number variables: t_actions_variable[] - }>, + }>( + z.object({ + total_count: z.coerce.number(), + variables: z.array(s_actions_variable), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListRepoVariablesResponder = - typeof actionsListRepoVariablesResponder & KoaRuntimeResponder - -const actionsListRepoVariablesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - variables: z.array(s_actions_variable), - }), - ], - ], - undefined, -) + (typeof actionsListRepoVariables)["responder"] & KoaRuntimeResponder export type ActionsListRepoVariables = ( params: Params< @@ -17525,18 +14071,13 @@ export type ActionsListRepoVariables = ( > > -const actionsCreateRepoVariableResponder = { - with201: r.with201, +const actionsCreateRepoVariable = b((r) => ({ + with201: r.with201(s_empty_object), withStatus: r.withStatus, -} +})) type ActionsCreateRepoVariableResponder = - typeof actionsCreateRepoVariableResponder & KoaRuntimeResponder - -const actionsCreateRepoVariableResponseValidator = responseValidationFactory( - [["201", s_empty_object]], - undefined, -) + (typeof actionsCreateRepoVariable)["responder"] & KoaRuntimeResponder export type ActionsCreateRepoVariable = ( params: Params< @@ -17549,18 +14090,13 @@ export type ActionsCreateRepoVariable = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -const actionsGetRepoVariableResponder = { - with200: r.with200, +const actionsGetRepoVariable = b((r) => ({ + with200: r.with200(s_actions_variable), withStatus: r.withStatus, -} - -type ActionsGetRepoVariableResponder = typeof actionsGetRepoVariableResponder & - KoaRuntimeResponder +})) -const actionsGetRepoVariableResponseValidator = responseValidationFactory( - [["200", s_actions_variable]], - undefined, -) +type ActionsGetRepoVariableResponder = + (typeof actionsGetRepoVariable)["responder"] & KoaRuntimeResponder export type ActionsGetRepoVariable = ( params: Params, @@ -17568,18 +14104,13 @@ export type ActionsGetRepoVariable = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_variable>> -const actionsUpdateRepoVariableResponder = { - with204: r.with204, +const actionsUpdateRepoVariable = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsUpdateRepoVariableResponder = - typeof actionsUpdateRepoVariableResponder & KoaRuntimeResponder - -const actionsUpdateRepoVariableResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof actionsUpdateRepoVariable)["responder"] & KoaRuntimeResponder export type ActionsUpdateRepoVariable = ( params: Params< @@ -17592,18 +14123,13 @@ export type ActionsUpdateRepoVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsDeleteRepoVariableResponder = { - with204: r.with204, +const actionsDeleteRepoVariable = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteRepoVariableResponder = - typeof actionsDeleteRepoVariableResponder & KoaRuntimeResponder - -const actionsDeleteRepoVariableResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof actionsDeleteRepoVariable)["responder"] & KoaRuntimeResponder export type ActionsDeleteRepoVariable = ( params: Params, @@ -17611,29 +14137,21 @@ export type ActionsDeleteRepoVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListRepoWorkflowsResponder = { +const actionsListRepoWorkflows = b((r) => ({ with200: r.with200<{ total_count: number workflows: t_workflow[] - }>, + }>( + z.object({ + total_count: z.coerce.number(), + workflows: z.array(s_workflow), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListRepoWorkflowsResponder = - typeof actionsListRepoWorkflowsResponder & KoaRuntimeResponder - -const actionsListRepoWorkflowsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - workflows: z.array(s_workflow), - }), - ], - ], - undefined, -) + (typeof actionsListRepoWorkflows)["responder"] & KoaRuntimeResponder export type ActionsListRepoWorkflows = ( params: Params< @@ -17655,37 +14173,27 @@ export type ActionsListRepoWorkflows = ( > > -const actionsGetWorkflowResponder = { - with200: r.with200, +const actionsGetWorkflow = b((r) => ({ + with200: r.with200(s_workflow), withStatus: r.withStatus, -} +})) -type ActionsGetWorkflowResponder = typeof actionsGetWorkflowResponder & +type ActionsGetWorkflowResponder = (typeof actionsGetWorkflow)["responder"] & KoaRuntimeResponder -const actionsGetWorkflowResponseValidator = responseValidationFactory( - [["200", s_workflow]], - undefined, -) - export type ActionsGetWorkflow = ( params: Params, respond: ActionsGetWorkflowResponder, ctx: RouterContext, ) => Promise | Response<200, t_workflow>> -const actionsDisableWorkflowResponder = { - with204: r.with204, +const actionsDisableWorkflow = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} - -type ActionsDisableWorkflowResponder = typeof actionsDisableWorkflowResponder & - KoaRuntimeResponder +})) -const actionsDisableWorkflowResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type ActionsDisableWorkflowResponder = + (typeof actionsDisableWorkflow)["responder"] & KoaRuntimeResponder export type ActionsDisableWorkflow = ( params: Params, @@ -17693,16 +14201,13 @@ export type ActionsDisableWorkflow = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsCreateWorkflowDispatchResponder = { - with204: r.with204, +const actionsCreateWorkflowDispatch = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsCreateWorkflowDispatchResponder = - typeof actionsCreateWorkflowDispatchResponder & KoaRuntimeResponder - -const actionsCreateWorkflowDispatchResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsCreateWorkflowDispatch)["responder"] & KoaRuntimeResponder export type ActionsCreateWorkflowDispatch = ( params: Params< @@ -17715,18 +14220,13 @@ export type ActionsCreateWorkflowDispatch = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsEnableWorkflowResponder = { - with204: r.with204, +const actionsEnableWorkflow = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type ActionsEnableWorkflowResponder = typeof actionsEnableWorkflowResponder & - KoaRuntimeResponder - -const actionsEnableWorkflowResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type ActionsEnableWorkflowResponder = + (typeof actionsEnableWorkflow)["responder"] & KoaRuntimeResponder export type ActionsEnableWorkflow = ( params: Params, @@ -17734,29 +14234,21 @@ export type ActionsEnableWorkflow = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListWorkflowRunsResponder = { +const actionsListWorkflowRuns = b((r) => ({ with200: r.with200<{ total_count: number workflow_runs: t_workflow_run[] - }>, + }>( + z.object({ + total_count: z.coerce.number(), + workflow_runs: z.array(s_workflow_run), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListWorkflowRunsResponder = - typeof actionsListWorkflowRunsResponder & KoaRuntimeResponder - -const actionsListWorkflowRunsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - workflow_runs: z.array(s_workflow_run), - }), - ], - ], - undefined, -) + (typeof actionsListWorkflowRuns)["responder"] & KoaRuntimeResponder export type ActionsListWorkflowRuns = ( params: Params< @@ -17778,18 +14270,13 @@ export type ActionsListWorkflowRuns = ( > > -const actionsGetWorkflowUsageResponder = { - with200: r.with200, +const actionsGetWorkflowUsage = b((r) => ({ + with200: r.with200(s_workflow_usage), withStatus: r.withStatus, -} +})) type ActionsGetWorkflowUsageResponder = - typeof actionsGetWorkflowUsageResponder & KoaRuntimeResponder - -const actionsGetWorkflowUsageResponseValidator = responseValidationFactory( - [["200", s_workflow_usage]], - undefined, -) + (typeof actionsGetWorkflowUsage)["responder"] & KoaRuntimeResponder export type ActionsGetWorkflowUsage = ( params: Params, @@ -17797,23 +14284,15 @@ export type ActionsGetWorkflowUsage = ( ctx: RouterContext, ) => Promise | Response<200, t_workflow_usage>> -const reposListActivitiesResponder = { - with200: r.with200, - with422: r.with422, +const reposListActivities = b((r) => ({ + with200: r.with200(z.array(s_activity)), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type ReposListActivitiesResponder = typeof reposListActivitiesResponder & +type ReposListActivitiesResponder = (typeof reposListActivities)["responder"] & KoaRuntimeResponder -const reposListActivitiesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_activity)], - ["422", s_validation_error_simple], - ], - undefined, -) - export type ReposListActivities = ( params: Params< t_ReposListActivitiesParamSchema, @@ -17829,23 +14308,15 @@ export type ReposListActivities = ( | Response<422, t_validation_error_simple> > -const issuesListAssigneesResponder = { - with200: r.with200, - with404: r.with404, +const issuesListAssignees = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesListAssigneesResponder = typeof issuesListAssigneesResponder & +type IssuesListAssigneesResponder = (typeof issuesListAssignees)["responder"] & KoaRuntimeResponder -const issuesListAssigneesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["404", s_basic_error], - ], - undefined, -) - export type IssuesListAssignees = ( params: Params< t_IssuesListAssigneesParamSchema, @@ -17861,22 +14332,14 @@ export type IssuesListAssignees = ( | Response<404, t_basic_error> > -const issuesCheckUserCanBeAssignedResponder = { - with204: r.with204, - with404: r.with404, +const issuesCheckUserCanBeAssigned = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type IssuesCheckUserCanBeAssignedResponder = - typeof issuesCheckUserCanBeAssignedResponder & KoaRuntimeResponder - -const issuesCheckUserCanBeAssignedResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof issuesCheckUserCanBeAssigned)["responder"] & KoaRuntimeResponder export type IssuesCheckUserCanBeAssigned = ( params: Params, @@ -17888,26 +14351,17 @@ export type IssuesCheckUserCanBeAssigned = ( | Response<404, t_basic_error> > -const reposCreateAttestationResponder = { +const reposCreateAttestation = b((r) => ({ with201: r.with201<{ id?: number - }>, - with403: r.with403, - with422: r.with422, + }>(z.object({ id: z.coerce.number().optional() })), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type ReposCreateAttestationResponder = typeof reposCreateAttestationResponder & - KoaRuntimeResponder +})) -const reposCreateAttestationResponseValidator = responseValidationFactory( - [ - ["201", z.object({ id: z.coerce.number().optional() })], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type ReposCreateAttestationResponder = + (typeof reposCreateAttestation)["responder"] & KoaRuntimeResponder export type ReposCreateAttestation = ( params: Params< @@ -17930,7 +14384,7 @@ export type ReposCreateAttestation = ( | Response<422, t_validation_error> > -const reposListAttestationsResponder = { +const reposListAttestations = b((r) => ({ with200: r.with200<{ attestations?: { bundle?: { @@ -17945,38 +14399,30 @@ const reposListAttestationsResponder = { bundle_url?: string repository_id?: number }[] - }>, + }>( + z.object({ + attestations: z + .array( + z.object({ + bundle: z + .object({ + mediaType: z.string().optional(), + verificationMaterial: z.record(z.unknown()).optional(), + dsseEnvelope: z.record(z.unknown()).optional(), + }) + .optional(), + repository_id: z.coerce.number().optional(), + bundle_url: z.string().optional(), + }), + ) + .optional(), + }), + ), withStatus: r.withStatus, -} - -type ReposListAttestationsResponder = typeof reposListAttestationsResponder & - KoaRuntimeResponder +})) -const reposListAttestationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - attestations: z - .array( - z.object({ - bundle: z - .object({ - mediaType: z.string().optional(), - verificationMaterial: z.record(z.unknown()).optional(), - dsseEnvelope: z.record(z.unknown()).optional(), - }) - .optional(), - repository_id: z.coerce.number().optional(), - bundle_url: z.string().optional(), - }), - ) - .optional(), - }), - ], - ], - undefined, -) +type ReposListAttestationsResponder = + (typeof reposListAttestations)["responder"] & KoaRuntimeResponder export type ReposListAttestations = ( params: Params< @@ -18009,42 +14455,29 @@ export type ReposListAttestations = ( > > -const reposListAutolinksResponder = { - with200: r.with200, +const reposListAutolinks = b((r) => ({ + with200: r.with200(z.array(s_autolink)), withStatus: r.withStatus, -} +})) -type ReposListAutolinksResponder = typeof reposListAutolinksResponder & +type ReposListAutolinksResponder = (typeof reposListAutolinks)["responder"] & KoaRuntimeResponder -const reposListAutolinksResponseValidator = responseValidationFactory( - [["200", z.array(s_autolink)]], - undefined, -) - export type ReposListAutolinks = ( params: Params, respond: ReposListAutolinksResponder, ctx: RouterContext, ) => Promise | Response<200, t_autolink[]>> -const reposCreateAutolinkResponder = { - with201: r.with201, - with422: r.with422, +const reposCreateAutolink = b((r) => ({ + with201: r.with201(s_autolink), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposCreateAutolinkResponder = typeof reposCreateAutolinkResponder & +type ReposCreateAutolinkResponder = (typeof reposCreateAutolink)["responder"] & KoaRuntimeResponder -const reposCreateAutolinkResponseValidator = responseValidationFactory( - [ - ["201", s_autolink], - ["422", s_validation_error], - ], - undefined, -) - export type ReposCreateAutolink = ( params: Params< t_ReposCreateAutolinkParamSchema, @@ -18060,23 +14493,15 @@ export type ReposCreateAutolink = ( | Response<422, t_validation_error> > -const reposGetAutolinkResponder = { - with200: r.with200, - with404: r.with404, +const reposGetAutolink = b((r) => ({ + with200: r.with200(s_autolink), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetAutolinkResponder = typeof reposGetAutolinkResponder & +type ReposGetAutolinkResponder = (typeof reposGetAutolink)["responder"] & KoaRuntimeResponder -const reposGetAutolinkResponseValidator = responseValidationFactory( - [ - ["200", s_autolink], - ["404", s_basic_error], - ], - undefined, -) - export type ReposGetAutolink = ( params: Params, respond: ReposGetAutolinkResponder, @@ -18087,23 +14512,15 @@ export type ReposGetAutolink = ( | Response<404, t_basic_error> > -const reposDeleteAutolinkResponder = { - with204: r.with204, - with404: r.with404, +const reposDeleteAutolink = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposDeleteAutolinkResponder = typeof reposDeleteAutolinkResponder & +type ReposDeleteAutolinkResponder = (typeof reposDeleteAutolink)["responder"] & KoaRuntimeResponder -const reposDeleteAutolinkResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) - export type ReposDeleteAutolink = ( params: Params, respond: ReposDeleteAutolinkResponder, @@ -18114,23 +14531,16 @@ export type ReposDeleteAutolink = ( | Response<404, t_basic_error> > -const reposCheckAutomatedSecurityFixesResponder = { - with200: r.with200, - with404: r.with404, +const reposCheckAutomatedSecurityFixes = b((r) => ({ + with200: r.with200( + s_check_automated_security_fixes, + ), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type ReposCheckAutomatedSecurityFixesResponder = - typeof reposCheckAutomatedSecurityFixesResponder & KoaRuntimeResponder - -const reposCheckAutomatedSecurityFixesResponseValidator = - responseValidationFactory( - [ - ["200", s_check_automated_security_fixes], - ["404", z.undefined()], - ], - undefined, - ) + (typeof reposCheckAutomatedSecurityFixes)["responder"] & KoaRuntimeResponder export type ReposCheckAutomatedSecurityFixes = ( params: Params< @@ -18147,16 +14557,13 @@ export type ReposCheckAutomatedSecurityFixes = ( | Response<404, void> > -const reposEnableAutomatedSecurityFixesResponder = { - with204: r.with204, +const reposEnableAutomatedSecurityFixes = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposEnableAutomatedSecurityFixesResponder = - typeof reposEnableAutomatedSecurityFixesResponder & KoaRuntimeResponder - -const reposEnableAutomatedSecurityFixesResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reposEnableAutomatedSecurityFixes)["responder"] & KoaRuntimeResponder export type ReposEnableAutomatedSecurityFixes = ( params: Params< @@ -18169,16 +14576,13 @@ export type ReposEnableAutomatedSecurityFixes = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposDisableAutomatedSecurityFixesResponder = { - with204: r.with204, +const reposDisableAutomatedSecurityFixes = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDisableAutomatedSecurityFixesResponder = - typeof reposDisableAutomatedSecurityFixesResponder & KoaRuntimeResponder - -const reposDisableAutomatedSecurityFixesResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reposDisableAutomatedSecurityFixes)["responder"] & KoaRuntimeResponder export type ReposDisableAutomatedSecurityFixes = ( params: Params< @@ -18191,23 +14595,15 @@ export type ReposDisableAutomatedSecurityFixes = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposListBranchesResponder = { - with200: r.with200, - with404: r.with404, +const reposListBranches = b((r) => ({ + with200: r.with200(z.array(s_short_branch)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposListBranchesResponder = typeof reposListBranchesResponder & +type ReposListBranchesResponder = (typeof reposListBranches)["responder"] & KoaRuntimeResponder -const reposListBranchesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_short_branch)], - ["404", s_basic_error], - ], - undefined, -) - export type ReposListBranches = ( params: Params< t_ReposListBranchesParamSchema, @@ -18223,25 +14619,16 @@ export type ReposListBranches = ( | Response<404, t_basic_error> > -const reposGetBranchResponder = { - with200: r.with200, - with301: r.with301, - with404: r.with404, +const reposGetBranch = b((r) => ({ + with200: r.with200(s_branch_with_protection), + with301: r.with301(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetBranchResponder = typeof reposGetBranchResponder & +type ReposGetBranchResponder = (typeof reposGetBranch)["responder"] & KoaRuntimeResponder -const reposGetBranchResponseValidator = responseValidationFactory( - [ - ["200", s_branch_with_protection], - ["301", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type ReposGetBranch = ( params: Params, respond: ReposGetBranchResponder, @@ -18253,22 +14640,14 @@ export type ReposGetBranch = ( | Response<404, t_basic_error> > -const reposGetBranchProtectionResponder = { - with200: r.with200, - with404: r.with404, +const reposGetBranchProtection = b((r) => ({ + with200: r.with200(s_branch_protection), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetBranchProtectionResponder = - typeof reposGetBranchProtectionResponder & KoaRuntimeResponder - -const reposGetBranchProtectionResponseValidator = responseValidationFactory( - [ - ["200", s_branch_protection], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposGetBranchProtection)["responder"] & KoaRuntimeResponder export type ReposGetBranchProtection = ( params: Params, @@ -18280,26 +14659,16 @@ export type ReposGetBranchProtection = ( | Response<404, t_basic_error> > -const reposUpdateBranchProtectionResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const reposUpdateBranchProtection = b((r) => ({ + with200: r.with200(s_protected_branch), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ReposUpdateBranchProtectionResponder = - typeof reposUpdateBranchProtectionResponder & KoaRuntimeResponder - -const reposUpdateBranchProtectionResponseValidator = responseValidationFactory( - [ - ["200", s_protected_branch], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) + (typeof reposUpdateBranchProtection)["responder"] & KoaRuntimeResponder export type ReposUpdateBranchProtection = ( params: Params< @@ -18318,22 +14687,14 @@ export type ReposUpdateBranchProtection = ( | Response<422, t_validation_error_simple> > -const reposDeleteBranchProtectionResponder = { - with204: r.with204, - with403: r.with403, +const reposDeleteBranchProtection = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ReposDeleteBranchProtectionResponder = - typeof reposDeleteBranchProtectionResponder & KoaRuntimeResponder - -const reposDeleteBranchProtectionResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ], - undefined, -) + (typeof reposDeleteBranchProtection)["responder"] & KoaRuntimeResponder export type ReposDeleteBranchProtection = ( params: Params, @@ -18345,19 +14706,15 @@ export type ReposDeleteBranchProtection = ( | Response<403, t_basic_error> > -const reposGetAdminBranchProtectionResponder = { - with200: r.with200, +const reposGetAdminBranchProtection = b((r) => ({ + with200: r.with200( + s_protected_branch_admin_enforced, + ), withStatus: r.withStatus, -} +})) type ReposGetAdminBranchProtectionResponder = - typeof reposGetAdminBranchProtectionResponder & KoaRuntimeResponder - -const reposGetAdminBranchProtectionResponseValidator = - responseValidationFactory( - [["200", s_protected_branch_admin_enforced]], - undefined, - ) + (typeof reposGetAdminBranchProtection)["responder"] & KoaRuntimeResponder export type ReposGetAdminBranchProtection = ( params: Params, @@ -18367,19 +14724,15 @@ export type ReposGetAdminBranchProtection = ( KoaRuntimeResponse | Response<200, t_protected_branch_admin_enforced> > -const reposSetAdminBranchProtectionResponder = { - with200: r.with200, +const reposSetAdminBranchProtection = b((r) => ({ + with200: r.with200( + s_protected_branch_admin_enforced, + ), withStatus: r.withStatus, -} +})) type ReposSetAdminBranchProtectionResponder = - typeof reposSetAdminBranchProtectionResponder & KoaRuntimeResponder - -const reposSetAdminBranchProtectionResponseValidator = - responseValidationFactory( - [["200", s_protected_branch_admin_enforced]], - undefined, - ) + (typeof reposSetAdminBranchProtection)["responder"] & KoaRuntimeResponder export type ReposSetAdminBranchProtection = ( params: Params, @@ -18389,23 +14742,14 @@ export type ReposSetAdminBranchProtection = ( KoaRuntimeResponse | Response<200, t_protected_branch_admin_enforced> > -const reposDeleteAdminBranchProtectionResponder = { - with204: r.with204, - with404: r.with404, +const reposDeleteAdminBranchProtection = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposDeleteAdminBranchProtectionResponder = - typeof reposDeleteAdminBranchProtectionResponder & KoaRuntimeResponder - -const reposDeleteAdminBranchProtectionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposDeleteAdminBranchProtection)["responder"] & KoaRuntimeResponder export type ReposDeleteAdminBranchProtection = ( params: Params< @@ -18422,19 +14766,16 @@ export type ReposDeleteAdminBranchProtection = ( | Response<404, t_basic_error> > -const reposGetPullRequestReviewProtectionResponder = { - with200: r.with200, +const reposGetPullRequestReviewProtection = b((r) => ({ + with200: r.with200( + s_protected_branch_pull_request_review, + ), withStatus: r.withStatus, -} +})) type ReposGetPullRequestReviewProtectionResponder = - typeof reposGetPullRequestReviewProtectionResponder & KoaRuntimeResponder - -const reposGetPullRequestReviewProtectionResponseValidator = - responseValidationFactory( - [["200", s_protected_branch_pull_request_review]], - undefined, - ) + (typeof reposGetPullRequestReviewProtection)["responder"] & + KoaRuntimeResponder export type ReposGetPullRequestReviewProtection = ( params: Params< @@ -18450,23 +14791,17 @@ export type ReposGetPullRequestReviewProtection = ( | Response<200, t_protected_branch_pull_request_review> > -const reposUpdatePullRequestReviewProtectionResponder = { - with200: r.with200, - with422: r.with422, +const reposUpdatePullRequestReviewProtection = b((r) => ({ + with200: r.with200( + s_protected_branch_pull_request_review, + ), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposUpdatePullRequestReviewProtectionResponder = - typeof reposUpdatePullRequestReviewProtectionResponder & KoaRuntimeResponder - -const reposUpdatePullRequestReviewProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_protected_branch_pull_request_review], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposUpdatePullRequestReviewProtection)["responder"] & + KoaRuntimeResponder export type ReposUpdatePullRequestReviewProtection = ( params: Params< @@ -18483,23 +14818,15 @@ export type ReposUpdatePullRequestReviewProtection = ( | Response<422, t_validation_error> > -const reposDeletePullRequestReviewProtectionResponder = { - with204: r.with204, - with404: r.with404, +const reposDeletePullRequestReviewProtection = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposDeletePullRequestReviewProtectionResponder = - typeof reposDeletePullRequestReviewProtectionResponder & KoaRuntimeResponder - -const reposDeletePullRequestReviewProtectionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposDeletePullRequestReviewProtection)["responder"] & + KoaRuntimeResponder export type ReposDeletePullRequestReviewProtection = ( params: Params< @@ -18516,23 +14843,16 @@ export type ReposDeletePullRequestReviewProtection = ( | Response<404, t_basic_error> > -const reposGetCommitSignatureProtectionResponder = { - with200: r.with200, - with404: r.with404, +const reposGetCommitSignatureProtection = b((r) => ({ + with200: r.with200( + s_protected_branch_admin_enforced, + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetCommitSignatureProtectionResponder = - typeof reposGetCommitSignatureProtectionResponder & KoaRuntimeResponder - -const reposGetCommitSignatureProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_protected_branch_admin_enforced], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposGetCommitSignatureProtection)["responder"] & KoaRuntimeResponder export type ReposGetCommitSignatureProtection = ( params: Params< @@ -18549,23 +14869,17 @@ export type ReposGetCommitSignatureProtection = ( | Response<404, t_basic_error> > -const reposCreateCommitSignatureProtectionResponder = { - with200: r.with200, - with404: r.with404, +const reposCreateCommitSignatureProtection = b((r) => ({ + with200: r.with200( + s_protected_branch_admin_enforced, + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposCreateCommitSignatureProtectionResponder = - typeof reposCreateCommitSignatureProtectionResponder & KoaRuntimeResponder - -const reposCreateCommitSignatureProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_protected_branch_admin_enforced], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposCreateCommitSignatureProtection)["responder"] & + KoaRuntimeResponder export type ReposCreateCommitSignatureProtection = ( params: Params< @@ -18582,23 +14896,15 @@ export type ReposCreateCommitSignatureProtection = ( | Response<404, t_basic_error> > -const reposDeleteCommitSignatureProtectionResponder = { - with204: r.with204, - with404: r.with404, +const reposDeleteCommitSignatureProtection = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposDeleteCommitSignatureProtectionResponder = - typeof reposDeleteCommitSignatureProtectionResponder & KoaRuntimeResponder - -const reposDeleteCommitSignatureProtectionResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposDeleteCommitSignatureProtection)["responder"] & + KoaRuntimeResponder export type ReposDeleteCommitSignatureProtection = ( params: Params< @@ -18615,23 +14921,14 @@ export type ReposDeleteCommitSignatureProtection = ( | Response<404, t_basic_error> > -const reposGetStatusChecksProtectionResponder = { - with200: r.with200, - with404: r.with404, +const reposGetStatusChecksProtection = b((r) => ({ + with200: r.with200(s_status_check_policy), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetStatusChecksProtectionResponder = - typeof reposGetStatusChecksProtectionResponder & KoaRuntimeResponder - -const reposGetStatusChecksProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_status_check_policy], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposGetStatusChecksProtection)["responder"] & KoaRuntimeResponder export type ReposGetStatusChecksProtection = ( params: Params, @@ -18643,25 +14940,15 @@ export type ReposGetStatusChecksProtection = ( | Response<404, t_basic_error> > -const reposUpdateStatusCheckProtectionResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const reposUpdateStatusCheckProtection = b((r) => ({ + with200: r.with200(s_status_check_policy), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposUpdateStatusCheckProtectionResponder = - typeof reposUpdateStatusCheckProtectionResponder & KoaRuntimeResponder - -const reposUpdateStatusCheckProtectionResponseValidator = - responseValidationFactory( - [ - ["200", s_status_check_policy], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposUpdateStatusCheckProtection)["responder"] & KoaRuntimeResponder export type ReposUpdateStatusCheckProtection = ( params: Params< @@ -18679,16 +14966,13 @@ export type ReposUpdateStatusCheckProtection = ( | Response<422, t_validation_error> > -const reposRemoveStatusCheckProtectionResponder = { - with204: r.with204, +const reposRemoveStatusCheckProtection = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposRemoveStatusCheckProtectionResponder = - typeof reposRemoveStatusCheckProtectionResponder & KoaRuntimeResponder - -const reposRemoveStatusCheckProtectionResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reposRemoveStatusCheckProtection)["responder"] & KoaRuntimeResponder export type ReposRemoveStatusCheckProtection = ( params: Params< @@ -18701,23 +14985,14 @@ export type ReposRemoveStatusCheckProtection = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposGetAllStatusCheckContextsResponder = { - with200: r.with200, - with404: r.with404, +const reposGetAllStatusCheckContexts = b((r) => ({ + with200: r.with200(z.array(z.string())), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetAllStatusCheckContextsResponder = - typeof reposGetAllStatusCheckContextsResponder & KoaRuntimeResponder - -const reposGetAllStatusCheckContextsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(z.string())], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposGetAllStatusCheckContexts)["responder"] & KoaRuntimeResponder export type ReposGetAllStatusCheckContexts = ( params: Params, @@ -18729,26 +15004,16 @@ export type ReposGetAllStatusCheckContexts = ( | Response<404, t_basic_error> > -const reposAddStatusCheckContextsResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const reposAddStatusCheckContexts = b((r) => ({ + with200: r.with200(z.array(z.string())), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposAddStatusCheckContextsResponder = - typeof reposAddStatusCheckContextsResponder & KoaRuntimeResponder - -const reposAddStatusCheckContextsResponseValidator = responseValidationFactory( - [ - ["200", z.array(z.string())], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposAddStatusCheckContexts)["responder"] & KoaRuntimeResponder export type ReposAddStatusCheckContexts = ( params: Params< @@ -18767,24 +15032,15 @@ export type ReposAddStatusCheckContexts = ( | Response<422, t_validation_error> > -const reposSetStatusCheckContextsResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const reposSetStatusCheckContexts = b((r) => ({ + with200: r.with200(z.array(z.string())), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposSetStatusCheckContextsResponder = - typeof reposSetStatusCheckContextsResponder & KoaRuntimeResponder - -const reposSetStatusCheckContextsResponseValidator = responseValidationFactory( - [ - ["200", z.array(z.string())], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposSetStatusCheckContexts)["responder"] & KoaRuntimeResponder export type ReposSetStatusCheckContexts = ( params: Params< @@ -18802,25 +15058,15 @@ export type ReposSetStatusCheckContexts = ( | Response<422, t_validation_error> > -const reposRemoveStatusCheckContextsResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const reposRemoveStatusCheckContexts = b((r) => ({ + with200: r.with200(z.array(z.string())), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposRemoveStatusCheckContextsResponder = - typeof reposRemoveStatusCheckContextsResponder & KoaRuntimeResponder - -const reposRemoveStatusCheckContextsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(z.string())], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposRemoveStatusCheckContexts)["responder"] & KoaRuntimeResponder export type ReposRemoveStatusCheckContexts = ( params: Params< @@ -18838,22 +15084,14 @@ export type ReposRemoveStatusCheckContexts = ( | Response<422, t_validation_error> > -const reposGetAccessRestrictionsResponder = { - with200: r.with200, - with404: r.with404, +const reposGetAccessRestrictions = b((r) => ({ + with200: r.with200(s_branch_restriction_policy), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetAccessRestrictionsResponder = - typeof reposGetAccessRestrictionsResponder & KoaRuntimeResponder - -const reposGetAccessRestrictionsResponseValidator = responseValidationFactory( - [ - ["200", s_branch_restriction_policy], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposGetAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposGetAccessRestrictions = ( params: Params, @@ -18865,16 +15103,13 @@ export type ReposGetAccessRestrictions = ( | Response<404, t_basic_error> > -const reposDeleteAccessRestrictionsResponder = { - with204: r.with204, +const reposDeleteAccessRestrictions = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDeleteAccessRestrictionsResponder = - typeof reposDeleteAccessRestrictionsResponder & KoaRuntimeResponder - -const reposDeleteAccessRestrictionsResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reposDeleteAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposDeleteAccessRestrictions = ( params: Params, @@ -18882,23 +15117,15 @@ export type ReposDeleteAccessRestrictions = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposGetAppsWithAccessToProtectedBranchResponder = { - with200: r.with200, - with404: r.with404, +const reposGetAppsWithAccessToProtectedBranch = b((r) => ({ + with200: r.with200(z.array(s_integration)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetAppsWithAccessToProtectedBranchResponder = - typeof reposGetAppsWithAccessToProtectedBranchResponder & KoaRuntimeResponder - -const reposGetAppsWithAccessToProtectedBranchResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration)], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposGetAppsWithAccessToProtectedBranch)["responder"] & + KoaRuntimeResponder export type ReposGetAppsWithAccessToProtectedBranch = ( params: Params< @@ -18915,23 +15142,14 @@ export type ReposGetAppsWithAccessToProtectedBranch = ( | Response<404, t_basic_error> > -const reposAddAppAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposAddAppAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_integration)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposAddAppAccessRestrictionsResponder = - typeof reposAddAppAccessRestrictionsResponder & KoaRuntimeResponder - -const reposAddAppAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposAddAppAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposAddAppAccessRestrictions = ( params: Params< @@ -18948,23 +15166,14 @@ export type ReposAddAppAccessRestrictions = ( | Response<422, t_validation_error> > -const reposSetAppAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposSetAppAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_integration)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposSetAppAccessRestrictionsResponder = - typeof reposSetAppAccessRestrictionsResponder & KoaRuntimeResponder - -const reposSetAppAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposSetAppAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposSetAppAccessRestrictions = ( params: Params< @@ -18981,23 +15190,14 @@ export type ReposSetAppAccessRestrictions = ( | Response<422, t_validation_error> > -const reposRemoveAppAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposRemoveAppAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_integration)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposRemoveAppAccessRestrictionsResponder = - typeof reposRemoveAppAccessRestrictionsResponder & KoaRuntimeResponder - -const reposRemoveAppAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_integration)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposRemoveAppAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposRemoveAppAccessRestrictions = ( params: Params< @@ -19014,23 +15214,15 @@ export type ReposRemoveAppAccessRestrictions = ( | Response<422, t_validation_error> > -const reposGetTeamsWithAccessToProtectedBranchResponder = { - with200: r.with200, - with404: r.with404, +const reposGetTeamsWithAccessToProtectedBranch = b((r) => ({ + with200: r.with200(z.array(s_team)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetTeamsWithAccessToProtectedBranchResponder = - typeof reposGetTeamsWithAccessToProtectedBranchResponder & KoaRuntimeResponder - -const reposGetTeamsWithAccessToProtectedBranchResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team)], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposGetTeamsWithAccessToProtectedBranch)["responder"] & + KoaRuntimeResponder export type ReposGetTeamsWithAccessToProtectedBranch = ( params: Params< @@ -19047,23 +15239,14 @@ export type ReposGetTeamsWithAccessToProtectedBranch = ( | Response<404, t_basic_error> > -const reposAddTeamAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposAddTeamAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_team)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposAddTeamAccessRestrictionsResponder = - typeof reposAddTeamAccessRestrictionsResponder & KoaRuntimeResponder - -const reposAddTeamAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposAddTeamAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposAddTeamAccessRestrictions = ( params: Params< @@ -19080,23 +15263,14 @@ export type ReposAddTeamAccessRestrictions = ( | Response<422, t_validation_error> > -const reposSetTeamAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposSetTeamAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_team)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposSetTeamAccessRestrictionsResponder = - typeof reposSetTeamAccessRestrictionsResponder & KoaRuntimeResponder - -const reposSetTeamAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposSetTeamAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposSetTeamAccessRestrictions = ( params: Params< @@ -19113,23 +15287,14 @@ export type ReposSetTeamAccessRestrictions = ( | Response<422, t_validation_error> > -const reposRemoveTeamAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposRemoveTeamAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_team)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposRemoveTeamAccessRestrictionsResponder = - typeof reposRemoveTeamAccessRestrictionsResponder & KoaRuntimeResponder - -const reposRemoveTeamAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposRemoveTeamAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposRemoveTeamAccessRestrictions = ( params: Params< @@ -19146,23 +15311,15 @@ export type ReposRemoveTeamAccessRestrictions = ( | Response<422, t_validation_error> > -const reposGetUsersWithAccessToProtectedBranchResponder = { - with200: r.with200, - with404: r.with404, +const reposGetUsersWithAccessToProtectedBranch = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetUsersWithAccessToProtectedBranchResponder = - typeof reposGetUsersWithAccessToProtectedBranchResponder & KoaRuntimeResponder - -const reposGetUsersWithAccessToProtectedBranchResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposGetUsersWithAccessToProtectedBranch)["responder"] & + KoaRuntimeResponder export type ReposGetUsersWithAccessToProtectedBranch = ( params: Params< @@ -19179,23 +15336,14 @@ export type ReposGetUsersWithAccessToProtectedBranch = ( | Response<404, t_basic_error> > -const reposAddUserAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposAddUserAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposAddUserAccessRestrictionsResponder = - typeof reposAddUserAccessRestrictionsResponder & KoaRuntimeResponder - -const reposAddUserAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposAddUserAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposAddUserAccessRestrictions = ( params: Params< @@ -19212,23 +15360,14 @@ export type ReposAddUserAccessRestrictions = ( | Response<422, t_validation_error> > -const reposSetUserAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposSetUserAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposSetUserAccessRestrictionsResponder = - typeof reposSetUserAccessRestrictionsResponder & KoaRuntimeResponder - -const reposSetUserAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposSetUserAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposSetUserAccessRestrictions = ( params: Params< @@ -19245,23 +15384,14 @@ export type ReposSetUserAccessRestrictions = ( | Response<422, t_validation_error> > -const reposRemoveUserAccessRestrictionsResponder = { - with200: r.with200, - with422: r.with422, +const reposRemoveUserAccessRestrictions = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposRemoveUserAccessRestrictionsResponder = - typeof reposRemoveUserAccessRestrictionsResponder & KoaRuntimeResponder - -const reposRemoveUserAccessRestrictionsResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposRemoveUserAccessRestrictions)["responder"] & KoaRuntimeResponder export type ReposRemoveUserAccessRestrictions = ( params: Params< @@ -19278,27 +15408,17 @@ export type ReposRemoveUserAccessRestrictions = ( | Response<422, t_validation_error> > -const reposRenameBranchResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const reposRenameBranch = b((r) => ({ + with201: r.with201(s_branch_with_protection), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposRenameBranchResponder = typeof reposRenameBranchResponder & +type ReposRenameBranchResponder = (typeof reposRenameBranch)["responder"] & KoaRuntimeResponder -const reposRenameBranchResponseValidator = responseValidationFactory( - [ - ["201", s_branch_with_protection], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type ReposRenameBranch = ( params: Params< t_ReposRenameBranchParamSchema, @@ -19316,17 +15436,13 @@ export type ReposRenameBranch = ( | Response<422, t_validation_error> > -const checksCreateResponder = { - with201: r.with201, +const checksCreate = b((r) => ({ + with201: r.with201(s_check_run), withStatus: r.withStatus, -} - -type ChecksCreateResponder = typeof checksCreateResponder & KoaRuntimeResponder +})) -const checksCreateResponseValidator = responseValidationFactory( - [["201", s_check_run]], - undefined, -) +type ChecksCreateResponder = (typeof checksCreate)["responder"] & + KoaRuntimeResponder export type ChecksCreate = ( params: Params< @@ -19339,17 +15455,12 @@ export type ChecksCreate = ( ctx: RouterContext, ) => Promise | Response<201, t_check_run>> -const checksGetResponder = { - with200: r.with200, +const checksGet = b((r) => ({ + with200: r.with200(s_check_run), withStatus: r.withStatus, -} +})) -type ChecksGetResponder = typeof checksGetResponder & KoaRuntimeResponder - -const checksGetResponseValidator = responseValidationFactory( - [["200", s_check_run]], - undefined, -) +type ChecksGetResponder = (typeof checksGet)["responder"] & KoaRuntimeResponder export type ChecksGet = ( params: Params, @@ -19357,17 +15468,13 @@ export type ChecksGet = ( ctx: RouterContext, ) => Promise | Response<200, t_check_run>> -const checksUpdateResponder = { - with200: r.with200, +const checksUpdate = b((r) => ({ + with200: r.with200(s_check_run), withStatus: r.withStatus, -} - -type ChecksUpdateResponder = typeof checksUpdateResponder & KoaRuntimeResponder +})) -const checksUpdateResponseValidator = responseValidationFactory( - [["200", s_check_run]], - undefined, -) +type ChecksUpdateResponder = (typeof checksUpdate)["responder"] & + KoaRuntimeResponder export type ChecksUpdate = ( params: Params< @@ -19380,18 +15487,13 @@ export type ChecksUpdate = ( ctx: RouterContext, ) => Promise | Response<200, t_check_run>> -const checksListAnnotationsResponder = { - with200: r.with200, +const checksListAnnotations = b((r) => ({ + with200: r.with200(z.array(s_check_annotation)), withStatus: r.withStatus, -} +})) -type ChecksListAnnotationsResponder = typeof checksListAnnotationsResponder & - KoaRuntimeResponder - -const checksListAnnotationsResponseValidator = responseValidationFactory( - [["200", z.array(s_check_annotation)]], - undefined, -) +type ChecksListAnnotationsResponder = + (typeof checksListAnnotations)["responder"] & KoaRuntimeResponder export type ChecksListAnnotations = ( params: Params< @@ -19404,27 +15506,17 @@ export type ChecksListAnnotations = ( ctx: RouterContext, ) => Promise | Response<200, t_check_annotation[]>> -const checksRerequestRunResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const checksRerequestRun = b((r) => ({ + with201: r.with201(s_empty_object), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_basic_error), withStatus: r.withStatus, -} +})) -type ChecksRerequestRunResponder = typeof checksRerequestRunResponder & +type ChecksRerequestRunResponder = (typeof checksRerequestRun)["responder"] & KoaRuntimeResponder -const checksRerequestRunResponseValidator = responseValidationFactory( - [ - ["201", s_empty_object], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_basic_error], - ], - undefined, -) - export type ChecksRerequestRun = ( params: Params, respond: ChecksRerequestRunResponder, @@ -19437,23 +15529,15 @@ export type ChecksRerequestRun = ( | Response<422, t_basic_error> > -const checksCreateSuiteResponder = { - with200: r.with200, - with201: r.with201, +const checksCreateSuite = b((r) => ({ + with200: r.with200(s_check_suite), + with201: r.with201(s_check_suite), withStatus: r.withStatus, -} +})) -type ChecksCreateSuiteResponder = typeof checksCreateSuiteResponder & +type ChecksCreateSuiteResponder = (typeof checksCreateSuite)["responder"] & KoaRuntimeResponder -const checksCreateSuiteResponseValidator = responseValidationFactory( - [ - ["200", s_check_suite], - ["201", s_check_suite], - ], - undefined, -) - export type ChecksCreateSuite = ( params: Params< t_ChecksCreateSuiteParamSchema, @@ -19469,18 +15553,13 @@ export type ChecksCreateSuite = ( | Response<201, t_check_suite> > -const checksSetSuitesPreferencesResponder = { - with200: r.with200, +const checksSetSuitesPreferences = b((r) => ({ + with200: r.with200(s_check_suite_preference), withStatus: r.withStatus, -} +})) type ChecksSetSuitesPreferencesResponder = - typeof checksSetSuitesPreferencesResponder & KoaRuntimeResponder - -const checksSetSuitesPreferencesResponseValidator = responseValidationFactory( - [["200", s_check_suite_preference]], - undefined, -) + (typeof checksSetSuitesPreferences)["responder"] & KoaRuntimeResponder export type ChecksSetSuitesPreferences = ( params: Params< @@ -19495,49 +15574,36 @@ export type ChecksSetSuitesPreferences = ( KoaRuntimeResponse | Response<200, t_check_suite_preference> > -const checksGetSuiteResponder = { - with200: r.with200, +const checksGetSuite = b((r) => ({ + with200: r.with200(s_check_suite), withStatus: r.withStatus, -} +})) -type ChecksGetSuiteResponder = typeof checksGetSuiteResponder & +type ChecksGetSuiteResponder = (typeof checksGetSuite)["responder"] & KoaRuntimeResponder -const checksGetSuiteResponseValidator = responseValidationFactory( - [["200", s_check_suite]], - undefined, -) - export type ChecksGetSuite = ( params: Params, respond: ChecksGetSuiteResponder, ctx: RouterContext, ) => Promise | Response<200, t_check_suite>> -const checksListForSuiteResponder = { +const checksListForSuite = b((r) => ({ with200: r.with200<{ check_runs: t_check_run[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + check_runs: z.array(s_check_run), + }), + ), withStatus: r.withStatus, -} +})) -type ChecksListForSuiteResponder = typeof checksListForSuiteResponder & +type ChecksListForSuiteResponder = (typeof checksListForSuite)["responder"] & KoaRuntimeResponder -const checksListForSuiteResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - check_runs: z.array(s_check_run), - }), - ], - ], - undefined, -) - export type ChecksListForSuite = ( params: Params< t_ChecksListForSuiteParamSchema, @@ -19558,18 +15624,13 @@ export type ChecksListForSuite = ( > > -const checksRerequestSuiteResponder = { - with201: r.with201, +const checksRerequestSuite = b((r) => ({ + with201: r.with201(s_empty_object), withStatus: r.withStatus, -} - -type ChecksRerequestSuiteResponder = typeof checksRerequestSuiteResponder & - KoaRuntimeResponder +})) -const checksRerequestSuiteResponseValidator = responseValidationFactory( - [["201", s_empty_object]], - undefined, -) +type ChecksRerequestSuiteResponder = + (typeof checksRerequestSuite)["responder"] & KoaRuntimeResponder export type ChecksRerequestSuite = ( params: Params, @@ -19577,40 +15638,29 @@ export type ChecksRerequestSuite = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -const codeScanningListAlertsForRepoResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const codeScanningListAlertsForRepo = b((r) => ({ + with200: r.with200( + z.array(s_code_scanning_alert_items), + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningListAlertsForRepoResponder = - typeof codeScanningListAlertsForRepoResponder & KoaRuntimeResponder - -const codeScanningListAlertsForRepoResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_alert_items)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningListAlertsForRepo)["responder"] & KoaRuntimeResponder export type CodeScanningListAlertsForRepo = ( params: Params< @@ -19637,39 +15687,27 @@ export type CodeScanningListAlertsForRepo = ( > > -const codeScanningGetAlertResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const codeScanningGetAlert = b((r) => ({ + with200: r.with200(s_code_scanning_alert), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type CodeScanningGetAlertResponder = typeof codeScanningGetAlertResponder & - KoaRuntimeResponder - -const codeScanningGetAlertResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_alert], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type CodeScanningGetAlertResponder = + (typeof codeScanningGetAlert)["responder"] & KoaRuntimeResponder export type CodeScanningGetAlert = ( params: Params, @@ -19691,39 +15729,27 @@ export type CodeScanningGetAlert = ( > > -const codeScanningUpdateAlertResponder = { - with200: r.with200, - with400: r.with400, - with403: r.with403, - with404: r.with404, +const codeScanningUpdateAlert = b((r) => ({ + with200: r.with200(s_code_scanning_alert), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningUpdateAlertResponder = - typeof codeScanningUpdateAlertResponder & KoaRuntimeResponder - -const codeScanningUpdateAlertResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_alert], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof codeScanningUpdateAlert)["responder"] & KoaRuntimeResponder export type CodeScanningUpdateAlert = ( params: Params< @@ -19750,39 +15776,27 @@ export type CodeScanningUpdateAlert = ( > > -const codeScanningGetAutofixResponder = { - with200: r.with200, - with400: r.with400, - with403: r.with403, - with404: r.with404, +const codeScanningGetAutofix = b((r) => ({ + with200: r.with200(s_code_scanning_autofix), + with400: r.with400(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type CodeScanningGetAutofixResponder = typeof codeScanningGetAutofixResponder & - KoaRuntimeResponder - -const codeScanningGetAutofixResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_autofix], - ["400", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type CodeScanningGetAutofixResponder = + (typeof codeScanningGetAutofix)["responder"] & KoaRuntimeResponder export type CodeScanningGetAutofix = ( params: Params, @@ -19804,43 +15818,29 @@ export type CodeScanningGetAutofix = ( > > -const codeScanningCreateAutofixResponder = { - with200: r.with200, - with202: r.with202, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const codeScanningCreateAutofix = b((r) => ({ + with200: r.with200(s_code_scanning_autofix), + with202: r.with202(s_code_scanning_autofix), + with400: r.with400(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningCreateAutofixResponder = - typeof codeScanningCreateAutofixResponder & KoaRuntimeResponder - -const codeScanningCreateAutofixResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_autofix], - ["202", s_code_scanning_autofix], - ["400", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof codeScanningCreateAutofix)["responder"] & KoaRuntimeResponder export type CodeScanningCreateAutofix = ( params: Params, @@ -19864,41 +15864,30 @@ export type CodeScanningCreateAutofix = ( > > -const codeScanningCommitAutofixResponder = { - with201: r.with201, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const codeScanningCommitAutofix = b((r) => ({ + with201: r.with201( + s_code_scanning_autofix_commits_response, + ), + with400: r.with400(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningCommitAutofixResponder = - typeof codeScanningCommitAutofixResponder & KoaRuntimeResponder - -const codeScanningCommitAutofixResponseValidator = responseValidationFactory( - [ - ["201", s_code_scanning_autofix_commits_response], - ["400", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof codeScanningCommitAutofix)["responder"] & KoaRuntimeResponder export type CodeScanningCommitAutofix = ( params: Params< @@ -19926,38 +15915,28 @@ export type CodeScanningCommitAutofix = ( > > -const codeScanningListAlertInstancesResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeScanningListAlertInstances = b((r) => ({ + with200: r.with200( + z.array(s_code_scanning_alert_instance), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningListAlertInstancesResponder = - typeof codeScanningListAlertInstancesResponder & KoaRuntimeResponder - -const codeScanningListAlertInstancesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_alert_instance)], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningListAlertInstances)["responder"] & KoaRuntimeResponder export type CodeScanningListAlertInstances = ( params: Params< @@ -19983,38 +15962,28 @@ export type CodeScanningListAlertInstances = ( > > -const codeScanningListRecentAnalysesResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeScanningListRecentAnalyses = b((r) => ({ + with200: r.with200( + z.array(s_code_scanning_analysis), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningListRecentAnalysesResponder = - typeof codeScanningListRecentAnalysesResponder & KoaRuntimeResponder - -const codeScanningListRecentAnalysesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_analysis)], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningListRecentAnalyses)["responder"] & KoaRuntimeResponder export type CodeScanningListRecentAnalyses = ( params: Params< @@ -20040,39 +16009,28 @@ export type CodeScanningListRecentAnalyses = ( > > -const codeScanningGetAnalysisResponder = { +const codeScanningGetAnalysis = b((r) => ({ with200: r.with200<{ [key: string]: unknown | undefined - }>, - with403: r.with403, - with404: r.with404, + }>(z.record(z.unknown())), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningGetAnalysisResponder = - typeof codeScanningGetAnalysisResponder & KoaRuntimeResponder - -const codeScanningGetAnalysisResponseValidator = responseValidationFactory( - [ - ["200", z.record(z.unknown())], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof codeScanningGetAnalysis)["responder"] & KoaRuntimeResponder export type CodeScanningGetAnalysis = ( params: Params, @@ -20098,39 +16056,29 @@ export type CodeScanningGetAnalysis = ( > > -const codeScanningDeleteAnalysisResponder = { - with200: r.with200, - with400: r.with400, - with403: r.with403, - with404: r.with404, +const codeScanningDeleteAnalysis = b((r) => ({ + with200: r.with200( + s_code_scanning_analysis_deletion, + ), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningDeleteAnalysisResponder = - typeof codeScanningDeleteAnalysisResponder & KoaRuntimeResponder - -const codeScanningDeleteAnalysisResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_analysis_deletion], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof codeScanningDeleteAnalysis)["responder"] & KoaRuntimeResponder export type CodeScanningDeleteAnalysis = ( params: Params< @@ -20157,38 +16105,28 @@ export type CodeScanningDeleteAnalysis = ( > > -const codeScanningListCodeqlDatabasesResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeScanningListCodeqlDatabases = b((r) => ({ + with200: r.with200( + z.array(s_code_scanning_codeql_database), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningListCodeqlDatabasesResponder = - typeof codeScanningListCodeqlDatabasesResponder & KoaRuntimeResponder - -const codeScanningListCodeqlDatabasesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_code_scanning_codeql_database)], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningListCodeqlDatabases)["responder"] & KoaRuntimeResponder export type CodeScanningListCodeqlDatabases = ( params: Params< @@ -20214,40 +16152,29 @@ export type CodeScanningListCodeqlDatabases = ( > > -const codeScanningGetCodeqlDatabaseResponder = { - with200: r.with200, - with302: r.with302, - with403: r.with403, - with404: r.with404, +const codeScanningGetCodeqlDatabase = b((r) => ({ + with200: r.with200( + s_code_scanning_codeql_database, + ), + with302: r.with302(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningGetCodeqlDatabaseResponder = - typeof codeScanningGetCodeqlDatabaseResponder & KoaRuntimeResponder - -const codeScanningGetCodeqlDatabaseResponseValidator = - responseValidationFactory( - [ - ["200", s_code_scanning_codeql_database], - ["302", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningGetCodeqlDatabase)["responder"] & KoaRuntimeResponder export type CodeScanningGetCodeqlDatabase = ( params: Params, @@ -20269,38 +16196,26 @@ export type CodeScanningGetCodeqlDatabase = ( > > -const codeScanningDeleteCodeqlDatabaseResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, +const codeScanningDeleteCodeqlDatabase = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningDeleteCodeqlDatabaseResponder = - typeof codeScanningDeleteCodeqlDatabaseResponder & KoaRuntimeResponder - -const codeScanningDeleteCodeqlDatabaseResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningDeleteCodeqlDatabase)["responder"] & KoaRuntimeResponder export type CodeScanningDeleteCodeqlDatabase = ( params: Params< @@ -20326,38 +16241,28 @@ export type CodeScanningDeleteCodeqlDatabase = ( > > -const codeScanningCreateVariantAnalysisResponder = { - with201: r.with201, - with404: r.with404, - with422: r.with422, +const codeScanningCreateVariantAnalysis = b((r) => ({ + with201: r.with201( + s_code_scanning_variant_analysis, + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningCreateVariantAnalysisResponder = - typeof codeScanningCreateVariantAnalysisResponder & KoaRuntimeResponder - -const codeScanningCreateVariantAnalysisResponseValidator = - responseValidationFactory( - [ - ["201", s_code_scanning_variant_analysis], - ["404", s_basic_error], - ["422", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningCreateVariantAnalysis)["responder"] & KoaRuntimeResponder export type CodeScanningCreateVariantAnalysis = ( params: Params< @@ -20383,36 +16288,27 @@ export type CodeScanningCreateVariantAnalysis = ( > > -const codeScanningGetVariantAnalysisResponder = { - with200: r.with200, - with404: r.with404, +const codeScanningGetVariantAnalysis = b((r) => ({ + with200: r.with200( + s_code_scanning_variant_analysis, + ), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningGetVariantAnalysisResponder = - typeof codeScanningGetVariantAnalysisResponder & KoaRuntimeResponder - -const codeScanningGetVariantAnalysisResponseValidator = - responseValidationFactory( - [ - ["200", s_code_scanning_variant_analysis], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningGetVariantAnalysis)["responder"] & KoaRuntimeResponder export type CodeScanningGetVariantAnalysis = ( params: Params, @@ -20432,36 +16328,28 @@ export type CodeScanningGetVariantAnalysis = ( > > -const codeScanningGetVariantAnalysisRepoTaskResponder = { - with200: r.with200, - with404: r.with404, +const codeScanningGetVariantAnalysisRepoTask = b((r) => ({ + with200: r.with200( + s_code_scanning_variant_analysis_repo_task, + ), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningGetVariantAnalysisRepoTaskResponder = - typeof codeScanningGetVariantAnalysisRepoTaskResponder & KoaRuntimeResponder - -const codeScanningGetVariantAnalysisRepoTaskResponseValidator = - responseValidationFactory( - [ - ["200", s_code_scanning_variant_analysis_repo_task], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningGetVariantAnalysisRepoTask)["responder"] & + KoaRuntimeResponder export type CodeScanningGetVariantAnalysisRepoTask = ( params: Params< @@ -20486,37 +16374,28 @@ export type CodeScanningGetVariantAnalysisRepoTask = ( > > -const codeScanningGetDefaultSetupResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeScanningGetDefaultSetup = b((r) => ({ + with200: r.with200( + s_code_scanning_default_setup, + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningGetDefaultSetupResponder = - typeof codeScanningGetDefaultSetupResponder & KoaRuntimeResponder - -const codeScanningGetDefaultSetupResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_default_setup], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof codeScanningGetDefaultSetup)["responder"] & KoaRuntimeResponder export type CodeScanningGetDefaultSetup = ( params: Params, @@ -20537,42 +16416,30 @@ export type CodeScanningGetDefaultSetup = ( > > -const codeScanningUpdateDefaultSetupResponder = { - with200: r.with200, - with202: r.with202, - with403: r.with403, - with404: r.with404, - with409: r.with409, +const codeScanningUpdateDefaultSetup = b((r) => ({ + with200: r.with200(s_empty_object), + with202: r.with202( + s_code_scanning_default_setup_update_response, + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningUpdateDefaultSetupResponder = - typeof codeScanningUpdateDefaultSetupResponder & KoaRuntimeResponder - -const codeScanningUpdateDefaultSetupResponseValidator = - responseValidationFactory( - [ - ["200", s_empty_object], - ["202", s_code_scanning_default_setup_update_response], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codeScanningUpdateDefaultSetup)["responder"] & KoaRuntimeResponder export type CodeScanningUpdateDefaultSetup = ( params: Params< @@ -20600,41 +16467,30 @@ export type CodeScanningUpdateDefaultSetup = ( > > -const codeScanningUploadSarifResponder = { - with202: r.with202, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with413: r.with413, +const codeScanningUploadSarif = b((r) => ({ + with202: r.with202( + s_code_scanning_sarifs_receipt, + ), + with400: r.with400(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with413: r.with413(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodeScanningUploadSarifResponder = - typeof codeScanningUploadSarifResponder & KoaRuntimeResponder - -const codeScanningUploadSarifResponseValidator = responseValidationFactory( - [ - ["202", s_code_scanning_sarifs_receipt], - ["400", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["413", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof codeScanningUploadSarif)["responder"] & KoaRuntimeResponder export type CodeScanningUploadSarif = ( params: Params< @@ -20662,37 +16518,28 @@ export type CodeScanningUploadSarif = ( > > -const codeScanningGetSarifResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const codeScanningGetSarif = b((r) => ({ + with200: r.with200( + s_code_scanning_sarifs_status, + ), + with403: r.with403(s_basic_error), + with404: r.with404(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type CodeScanningGetSarifResponder = typeof codeScanningGetSarifResponder & - KoaRuntimeResponder - -const codeScanningGetSarifResponseValidator = responseValidationFactory( - [ - ["200", s_code_scanning_sarifs_status], - ["403", s_basic_error], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type CodeScanningGetSarifResponder = + (typeof codeScanningGetSarif)["responder"] & KoaRuntimeResponder export type CodeScanningGetSarif = ( params: Params, @@ -20713,31 +16560,21 @@ export type CodeScanningGetSarif = ( > > -const codeSecurityGetConfigurationForRepositoryResponder = { - with200: r.with200, - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const codeSecurityGetConfigurationForRepository = b((r) => ({ + with200: r.with200( + s_code_security_configuration_for_repository, + ), + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodeSecurityGetConfigurationForRepositoryResponder = - typeof codeSecurityGetConfigurationForRepositoryResponder & + (typeof codeSecurityGetConfigurationForRepository)["responder"] & KoaRuntimeResponder -const codeSecurityGetConfigurationForRepositoryResponseValidator = - responseValidationFactory( - [ - ["200", s_code_security_configuration_for_repository], - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type CodeSecurityGetConfigurationForRepository = ( params: Params< t_CodeSecurityGetConfigurationForRepositoryParamSchema, @@ -20756,22 +16593,14 @@ export type CodeSecurityGetConfigurationForRepository = ( | Response<404, t_basic_error> > -const reposCodeownersErrorsResponder = { - with200: r.with200, - with404: r.with404, +const reposCodeownersErrors = b((r) => ({ + with200: r.with200(s_codeowners_errors), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) -type ReposCodeownersErrorsResponder = typeof reposCodeownersErrorsResponder & - KoaRuntimeResponder - -const reposCodeownersErrorsResponseValidator = responseValidationFactory( - [ - ["200", s_codeowners_errors], - ["404", z.undefined()], - ], - undefined, -) +type ReposCodeownersErrorsResponder = + (typeof reposCodeownersErrors)["responder"] & KoaRuntimeResponder export type ReposCodeownersErrors = ( params: Params< @@ -20788,40 +16617,27 @@ export type ReposCodeownersErrors = ( | Response<404, void> > -const codespacesListInRepositoryForAuthenticatedUserResponder = { +const codespacesListInRepositoryForAuthenticatedUser = b((r) => ({ with200: r.with200<{ codespaces: t_codespace[] total_count: number - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_count: z.coerce.number(), + codespaces: z.array(s_codespace), + }), + ), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesListInRepositoryForAuthenticatedUserResponder = - typeof codespacesListInRepositoryForAuthenticatedUserResponder & + (typeof codespacesListInRepositoryForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesListInRepositoryForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - codespaces: z.array(s_codespace), - }), - ], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - export type CodespacesListInRepositoryForAuthenticatedUser = ( params: Params< t_CodespacesListInRepositoryForAuthenticatedUserParamSchema, @@ -20846,46 +16662,31 @@ export type CodespacesListInRepositoryForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesCreateWithRepoForAuthenticatedUserResponder = { - with201: r.with201, - with202: r.with202, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const codespacesCreateWithRepoForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_codespace), + with202: r.with202(s_codespace), + with400: r.with400(s_scim_error), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodespacesCreateWithRepoForAuthenticatedUserResponder = - typeof codespacesCreateWithRepoForAuthenticatedUserResponder & + (typeof codespacesCreateWithRepoForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesCreateWithRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_codespace], - ["202", s_codespace], - ["400", s_scim_error], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - export type CodespacesCreateWithRepoForAuthenticatedUser = ( params: Params< t_CodespacesCreateWithRepoForAuthenticatedUserParamSchema, @@ -20913,7 +16714,7 @@ export type CodespacesCreateWithRepoForAuthenticatedUser = ( > > -const codespacesListDevcontainersInRepositoryForAuthenticatedUserResponder = { +const codespacesListDevcontainersInRepositoryForAuthenticatedUser = b((r) => ({ with200: r.with200<{ devcontainers: { display_name?: string @@ -20921,44 +16722,30 @@ const codespacesListDevcontainersInRepositoryForAuthenticatedUserResponder = { path: string }[] total_count: number - }>, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_count: z.coerce.number(), + devcontainers: z.array( + z.object({ + path: z.string(), + name: z.string().optional(), + display_name: z.string().optional(), + }), + ), + }), + ), + with400: r.with400(s_scim_error), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesListDevcontainersInRepositoryForAuthenticatedUserResponder = - typeof codespacesListDevcontainersInRepositoryForAuthenticatedUserResponder & + (typeof codespacesListDevcontainersInRepositoryForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesListDevcontainersInRepositoryForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - devcontainers: z.array( - z.object({ - path: z.string(), - name: z.string().optional(), - display_name: z.string().optional(), - }), - ), - }), - ], - ["400", s_scim_error], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser = ( params: Params< t_CodespacesListDevcontainersInRepositoryForAuthenticatedUserParamSchema, @@ -20988,42 +16775,28 @@ export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesRepoMachinesForAuthenticatedUserResponder = { +const codespacesRepoMachinesForAuthenticatedUser = b((r) => ({ with200: r.with200<{ machines: t_codespace_machine[] total_count: number - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_count: z.coerce.number(), + machines: z.array(s_codespace_machine), + }), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesRepoMachinesForAuthenticatedUserResponder = - typeof codespacesRepoMachinesForAuthenticatedUserResponder & + (typeof codespacesRepoMachinesForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesRepoMachinesForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - machines: z.array(s_codespace_machine), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - export type CodespacesRepoMachinesForAuthenticatedUser = ( params: Params< t_CodespacesRepoMachinesForAuthenticatedUserParamSchema, @@ -21049,46 +16822,34 @@ export type CodespacesRepoMachinesForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesPreFlightWithRepoForAuthenticatedUserResponder = { +const codespacesPreFlightWithRepoForAuthenticatedUser = b((r) => ({ with200: r.with200<{ billable_owner?: t_simple_user defaults?: { devcontainer_path: string | null location: string } - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, + }>( + z.object({ + billable_owner: s_simple_user.optional(), + defaults: z + .object({ + location: z.string(), + devcontainer_path: z.string().nullable(), + }) + .optional(), + }), + ), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesPreFlightWithRepoForAuthenticatedUserResponder = - typeof codespacesPreFlightWithRepoForAuthenticatedUserResponder & + (typeof codespacesPreFlightWithRepoForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesPreFlightWithRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - billable_owner: s_simple_user.optional(), - defaults: z - .object({ - location: z.string(), - devcontainer_path: z.string().nullable(), - }) - .optional(), - }), - ], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type CodespacesPreFlightWithRepoForAuthenticatedUser = ( params: Params< t_CodespacesPreFlightWithRepoForAuthenticatedUserParamSchema, @@ -21115,44 +16876,32 @@ export type CodespacesPreFlightWithRepoForAuthenticatedUser = ( | Response<404, t_basic_error> > -const codespacesCheckPermissionsForDevcontainerResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const codespacesCheckPermissionsForDevcontainer = b((r) => ({ + with200: r.with200( + s_codespaces_permissions_check_for_devcontainer, + ), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodespacesCheckPermissionsForDevcontainerResponder = - typeof codespacesCheckPermissionsForDevcontainerResponder & + (typeof codespacesCheckPermissionsForDevcontainer)["responder"] & KoaRuntimeResponder -const codespacesCheckPermissionsForDevcontainerResponseValidator = - responseValidationFactory( - [ - ["200", s_codespaces_permissions_check_for_devcontainer], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - export type CodespacesCheckPermissionsForDevcontainer = ( params: Params< t_CodespacesCheckPermissionsForDevcontainerParamSchema, @@ -21179,29 +16928,21 @@ export type CodespacesCheckPermissionsForDevcontainer = ( > > -const codespacesListRepoSecretsResponder = { +const codespacesListRepoSecrets = b((r) => ({ with200: r.with200<{ secrets: t_repo_codespaces_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_repo_codespaces_secret), + }), + ), withStatus: r.withStatus, -} +})) type CodespacesListRepoSecretsResponder = - typeof codespacesListRepoSecretsResponder & KoaRuntimeResponder - -const codespacesListRepoSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_repo_codespaces_secret), - }), - ], - ], - undefined, -) + (typeof codespacesListRepoSecrets)["responder"] & KoaRuntimeResponder export type CodespacesListRepoSecrets = ( params: Params< @@ -21223,18 +16964,13 @@ export type CodespacesListRepoSecrets = ( > > -const codespacesGetRepoPublicKeyResponder = { - with200: r.with200, +const codespacesGetRepoPublicKey = b((r) => ({ + with200: r.with200(s_codespaces_public_key), withStatus: r.withStatus, -} +})) type CodespacesGetRepoPublicKeyResponder = - typeof codespacesGetRepoPublicKeyResponder & KoaRuntimeResponder - -const codespacesGetRepoPublicKeyResponseValidator = responseValidationFactory( - [["200", s_codespaces_public_key]], - undefined, -) + (typeof codespacesGetRepoPublicKey)["responder"] & KoaRuntimeResponder export type CodespacesGetRepoPublicKey = ( params: Params, @@ -21244,18 +16980,13 @@ export type CodespacesGetRepoPublicKey = ( KoaRuntimeResponse | Response<200, t_codespaces_public_key> > -const codespacesGetRepoSecretResponder = { - with200: r.with200, +const codespacesGetRepoSecret = b((r) => ({ + with200: r.with200(s_repo_codespaces_secret), withStatus: r.withStatus, -} +})) type CodespacesGetRepoSecretResponder = - typeof codespacesGetRepoSecretResponder & KoaRuntimeResponder - -const codespacesGetRepoSecretResponseValidator = responseValidationFactory( - [["200", s_repo_codespaces_secret]], - undefined, -) + (typeof codespacesGetRepoSecret)["responder"] & KoaRuntimeResponder export type CodespacesGetRepoSecret = ( params: Params, @@ -21265,23 +16996,14 @@ export type CodespacesGetRepoSecret = ( KoaRuntimeResponse | Response<200, t_repo_codespaces_secret> > -const codespacesCreateOrUpdateRepoSecretResponder = { - with201: r.with201, - with204: r.with204, +const codespacesCreateOrUpdateRepoSecret = b((r) => ({ + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type CodespacesCreateOrUpdateRepoSecretResponder = - typeof codespacesCreateOrUpdateRepoSecretResponder & KoaRuntimeResponder - -const codespacesCreateOrUpdateRepoSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) + (typeof codespacesCreateOrUpdateRepoSecret)["responder"] & KoaRuntimeResponder export type CodespacesCreateOrUpdateRepoSecret = ( params: Params< @@ -21298,18 +17020,13 @@ export type CodespacesCreateOrUpdateRepoSecret = ( | Response<204, void> > -const codespacesDeleteRepoSecretResponder = { - with204: r.with204, +const codespacesDeleteRepoSecret = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type CodespacesDeleteRepoSecretResponder = - typeof codespacesDeleteRepoSecretResponder & KoaRuntimeResponder - -const codespacesDeleteRepoSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof codespacesDeleteRepoSecret)["responder"] & KoaRuntimeResponder export type CodespacesDeleteRepoSecret = ( params: Params, @@ -21317,22 +17034,14 @@ export type CodespacesDeleteRepoSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposListCollaboratorsResponder = { - with200: r.with200, - with404: r.with404, +const reposListCollaborators = b((r) => ({ + with200: r.with200(z.array(s_collaborator)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type ReposListCollaboratorsResponder = typeof reposListCollaboratorsResponder & - KoaRuntimeResponder +})) -const reposListCollaboratorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_collaborator)], - ["404", s_basic_error], - ], - undefined, -) +type ReposListCollaboratorsResponder = + (typeof reposListCollaborators)["responder"] & KoaRuntimeResponder export type ReposListCollaborators = ( params: Params< @@ -21349,22 +17058,14 @@ export type ReposListCollaborators = ( | Response<404, t_basic_error> > -const reposCheckCollaboratorResponder = { - with204: r.with204, - with404: r.with404, +const reposCheckCollaborator = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} - -type ReposCheckCollaboratorResponder = typeof reposCheckCollaboratorResponder & - KoaRuntimeResponder +})) -const reposCheckCollaboratorResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, -) +type ReposCheckCollaboratorResponder = + (typeof reposCheckCollaborator)["responder"] & KoaRuntimeResponder export type ReposCheckCollaborator = ( params: Params, @@ -21374,26 +17075,16 @@ export type ReposCheckCollaborator = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -const reposAddCollaboratorResponder = { - with201: r.with201, - with204: r.with204, - with403: r.with403, - with422: r.with422, +const reposAddCollaborator = b((r) => ({ + with201: r.with201(s_repository_invitation), + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type ReposAddCollaboratorResponder = typeof reposAddCollaboratorResponder & - KoaRuntimeResponder +})) -const reposAddCollaboratorResponseValidator = responseValidationFactory( - [ - ["201", s_repository_invitation], - ["204", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type ReposAddCollaboratorResponder = + (typeof reposAddCollaborator)["responder"] & KoaRuntimeResponder export type ReposAddCollaborator = ( params: Params< @@ -21412,24 +17103,15 @@ export type ReposAddCollaborator = ( | Response<422, t_validation_error> > -const reposRemoveCollaboratorResponder = { - with204: r.with204, - with403: r.with403, - with422: r.with422, +const reposRemoveCollaborator = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposRemoveCollaboratorResponder = - typeof reposRemoveCollaboratorResponder & KoaRuntimeResponder - -const reposRemoveCollaboratorResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposRemoveCollaborator)["responder"] & KoaRuntimeResponder export type ReposRemoveCollaborator = ( params: Params, @@ -21442,23 +17124,17 @@ export type ReposRemoveCollaborator = ( | Response<422, t_validation_error> > -const reposGetCollaboratorPermissionLevelResponder = { - with200: r.with200, - with404: r.with404, +const reposGetCollaboratorPermissionLevel = b((r) => ({ + with200: r.with200( + s_repository_collaborator_permission, + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetCollaboratorPermissionLevelResponder = - typeof reposGetCollaboratorPermissionLevelResponder & KoaRuntimeResponder - -const reposGetCollaboratorPermissionLevelResponseValidator = - responseValidationFactory( - [ - ["200", s_repository_collaborator_permission], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposGetCollaboratorPermissionLevel)["responder"] & + KoaRuntimeResponder export type ReposGetCollaboratorPermissionLevel = ( params: Params< @@ -21475,16 +17151,13 @@ export type ReposGetCollaboratorPermissionLevel = ( | Response<404, t_basic_error> > -const reposListCommitCommentsForRepoResponder = { - with200: r.with200, +const reposListCommitCommentsForRepo = b((r) => ({ + with200: r.with200(z.array(s_commit_comment)), withStatus: r.withStatus, -} +})) type ReposListCommitCommentsForRepoResponder = - typeof reposListCommitCommentsForRepoResponder & KoaRuntimeResponder - -const reposListCommitCommentsForRepoResponseValidator = - responseValidationFactory([["200", z.array(s_commit_comment)]], undefined) + (typeof reposListCommitCommentsForRepo)["responder"] & KoaRuntimeResponder export type ReposListCommitCommentsForRepo = ( params: Params< @@ -21497,22 +17170,14 @@ export type ReposListCommitCommentsForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_commit_comment[]>> -const reposGetCommitCommentResponder = { - with200: r.with200, - with404: r.with404, +const reposGetCommitComment = b((r) => ({ + with200: r.with200(s_commit_comment), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type ReposGetCommitCommentResponder = typeof reposGetCommitCommentResponder & - KoaRuntimeResponder +})) -const reposGetCommitCommentResponseValidator = responseValidationFactory( - [ - ["200", s_commit_comment], - ["404", s_basic_error], - ], - undefined, -) +type ReposGetCommitCommentResponder = + (typeof reposGetCommitComment)["responder"] & KoaRuntimeResponder export type ReposGetCommitComment = ( params: Params, @@ -21524,22 +17189,14 @@ export type ReposGetCommitComment = ( | Response<404, t_basic_error> > -const reposUpdateCommitCommentResponder = { - with200: r.with200, - with404: r.with404, +const reposUpdateCommitComment = b((r) => ({ + with200: r.with200(s_commit_comment), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposUpdateCommitCommentResponder = - typeof reposUpdateCommitCommentResponder & KoaRuntimeResponder - -const reposUpdateCommitCommentResponseValidator = responseValidationFactory( - [ - ["200", s_commit_comment], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposUpdateCommitComment)["responder"] & KoaRuntimeResponder export type ReposUpdateCommitComment = ( params: Params< @@ -21556,22 +17213,14 @@ export type ReposUpdateCommitComment = ( | Response<404, t_basic_error> > -const reposDeleteCommitCommentResponder = { - with204: r.with204, - with404: r.with404, +const reposDeleteCommitComment = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposDeleteCommitCommentResponder = - typeof reposDeleteCommitCommentResponder & KoaRuntimeResponder - -const reposDeleteCommitCommentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposDeleteCommitComment)["responder"] & KoaRuntimeResponder export type ReposDeleteCommitComment = ( params: Params, @@ -21583,23 +17232,14 @@ export type ReposDeleteCommitComment = ( | Response<404, t_basic_error> > -const reactionsListForCommitCommentResponder = { - with200: r.with200, - with404: r.with404, +const reactionsListForCommitComment = b((r) => ({ + with200: r.with200(z.array(s_reaction)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReactionsListForCommitCommentResponder = - typeof reactionsListForCommitCommentResponder & KoaRuntimeResponder - -const reactionsListForCommitCommentResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reactionsListForCommitComment)["responder"] & KoaRuntimeResponder export type ReactionsListForCommitComment = ( params: Params< @@ -21616,25 +17256,15 @@ export type ReactionsListForCommitComment = ( | Response<404, t_basic_error> > -const reactionsCreateForCommitCommentResponder = { - with200: r.with200, - with201: r.with201, - with422: r.with422, +const reactionsCreateForCommitComment = b((r) => ({ + with200: r.with200(s_reaction), + with201: r.with201(s_reaction), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReactionsCreateForCommitCommentResponder = - typeof reactionsCreateForCommitCommentResponder & KoaRuntimeResponder - -const reactionsCreateForCommitCommentResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reactionsCreateForCommitComment)["responder"] & KoaRuntimeResponder export type ReactionsCreateForCommitComment = ( params: Params< @@ -21652,16 +17282,13 @@ export type ReactionsCreateForCommitComment = ( | Response<422, t_validation_error> > -const reactionsDeleteForCommitCommentResponder = { - with204: r.with204, +const reactionsDeleteForCommitComment = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReactionsDeleteForCommitCommentResponder = - typeof reactionsDeleteForCommitCommentResponder & KoaRuntimeResponder - -const reactionsDeleteForCommitCommentResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reactionsDeleteForCommitComment)["responder"] & KoaRuntimeResponder export type ReactionsDeleteForCommitComment = ( params: Params< @@ -21674,29 +17301,18 @@ export type ReactionsDeleteForCommitComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposListCommitsResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, - with409: r.with409, - with500: r.with500, +const reposListCommits = b((r) => ({ + with200: r.with200(z.array(s_commit)), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposListCommitsResponder = typeof reposListCommitsResponder & +type ReposListCommitsResponder = (typeof reposListCommits)["responder"] & KoaRuntimeResponder -const reposListCommitsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_commit)], - ["400", s_scim_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) - export type ReposListCommits = ( params: Params< t_ReposListCommitsParamSchema, @@ -21715,25 +17331,15 @@ export type ReposListCommits = ( | Response<500, t_basic_error> > -const reposListBranchesForHeadCommitResponder = { - with200: r.with200, - with409: r.with409, - with422: r.with422, +const reposListBranchesForHeadCommit = b((r) => ({ + with200: r.with200(z.array(s_branch_short)), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposListBranchesForHeadCommitResponder = - typeof reposListBranchesForHeadCommitResponder & KoaRuntimeResponder - -const reposListBranchesForHeadCommitResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_branch_short)], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposListBranchesForHeadCommit)["responder"] & KoaRuntimeResponder export type ReposListBranchesForHeadCommit = ( params: Params, @@ -21746,18 +17352,13 @@ export type ReposListBranchesForHeadCommit = ( | Response<422, t_validation_error> > -const reposListCommentsForCommitResponder = { - with200: r.with200, +const reposListCommentsForCommit = b((r) => ({ + with200: r.with200(z.array(s_commit_comment)), withStatus: r.withStatus, -} +})) type ReposListCommentsForCommitResponder = - typeof reposListCommentsForCommitResponder & KoaRuntimeResponder - -const reposListCommentsForCommitResponseValidator = responseValidationFactory( - [["200", z.array(s_commit_comment)]], - undefined, -) + (typeof reposListCommentsForCommit)["responder"] & KoaRuntimeResponder export type ReposListCommentsForCommit = ( params: Params< @@ -21770,24 +17371,15 @@ export type ReposListCommentsForCommit = ( ctx: RouterContext, ) => Promise | Response<200, t_commit_comment[]>> -const reposCreateCommitCommentResponder = { - with201: r.with201, - with403: r.with403, - with422: r.with422, +const reposCreateCommitComment = b((r) => ({ + with201: r.with201(s_commit_comment), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposCreateCommitCommentResponder = - typeof reposCreateCommitCommentResponder & KoaRuntimeResponder - -const reposCreateCommitCommentResponseValidator = responseValidationFactory( - [ - ["201", s_commit_comment], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposCreateCommitComment)["responder"] & KoaRuntimeResponder export type ReposCreateCommitComment = ( params: Params< @@ -21805,25 +17397,16 @@ export type ReposCreateCommitComment = ( | Response<422, t_validation_error> > -const reposListPullRequestsAssociatedWithCommitResponder = { - with200: r.with200, - with409: r.with409, +const reposListPullRequestsAssociatedWithCommit = b((r) => ({ + with200: r.with200(z.array(s_pull_request_simple)), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type ReposListPullRequestsAssociatedWithCommitResponder = - typeof reposListPullRequestsAssociatedWithCommitResponder & + (typeof reposListPullRequestsAssociatedWithCommit)["responder"] & KoaRuntimeResponder -const reposListPullRequestsAssociatedWithCommitResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_pull_request_simple)], - ["409", s_basic_error], - ], - undefined, - ) - export type ReposListPullRequestsAssociatedWithCommit = ( params: Params< t_ReposListPullRequestsAssociatedWithCommitParamSchema, @@ -21839,42 +17422,29 @@ export type ReposListPullRequestsAssociatedWithCommit = ( | Response<409, t_basic_error> > -const reposGetCommitResponder = { - with200: r.with200, - with404: r.with404, - with409: r.with409, - with422: r.with422, - with500: r.with500, +const reposGetCommit = b((r) => ({ + with200: r.with200(s_commit), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type ReposGetCommitResponder = typeof reposGetCommitResponder & +type ReposGetCommitResponder = (typeof reposGetCommit)["responder"] & KoaRuntimeResponder -const reposGetCommitResponseValidator = responseValidationFactory( - [ - ["200", s_commit], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) - export type ReposGetCommit = ( params: Params< t_ReposGetCommitParamSchema, @@ -21901,30 +17471,22 @@ export type ReposGetCommit = ( > > -const checksListForRefResponder = { +const checksListForRef = b((r) => ({ with200: r.with200<{ check_runs: t_check_run[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + check_runs: z.array(s_check_run), + }), + ), withStatus: r.withStatus, -} +})) -type ChecksListForRefResponder = typeof checksListForRefResponder & +type ChecksListForRefResponder = (typeof checksListForRef)["responder"] & KoaRuntimeResponder -const checksListForRefResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - check_runs: z.array(s_check_run), - }), - ], - ], - undefined, -) - export type ChecksListForRef = ( params: Params< t_ChecksListForRefParamSchema, @@ -21945,29 +17507,21 @@ export type ChecksListForRef = ( > > -const checksListSuitesForRefResponder = { +const checksListSuitesForRef = b((r) => ({ with200: r.with200<{ check_suites: t_check_suite[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + check_suites: z.array(s_check_suite), + }), + ), withStatus: r.withStatus, -} - -type ChecksListSuitesForRefResponder = typeof checksListSuitesForRefResponder & - KoaRuntimeResponder +})) -const checksListSuitesForRefResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - check_suites: z.array(s_check_suite), - }), - ], - ], - undefined, -) +type ChecksListSuitesForRefResponder = + (typeof checksListSuitesForRef)["responder"] & KoaRuntimeResponder export type ChecksListSuitesForRef = ( params: Params< @@ -21989,22 +17543,14 @@ export type ChecksListSuitesForRef = ( > > -const reposGetCombinedStatusForRefResponder = { - with200: r.with200, - with404: r.with404, +const reposGetCombinedStatusForRef = b((r) => ({ + with200: r.with200(s_combined_commit_status), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetCombinedStatusForRefResponder = - typeof reposGetCombinedStatusForRefResponder & KoaRuntimeResponder - -const reposGetCombinedStatusForRefResponseValidator = responseValidationFactory( - [ - ["200", s_combined_commit_status], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposGetCombinedStatusForRef)["responder"] & KoaRuntimeResponder export type ReposGetCombinedStatusForRef = ( params: Params< @@ -22021,23 +17567,14 @@ export type ReposGetCombinedStatusForRef = ( | Response<404, t_basic_error> > -const reposListCommitStatusesForRefResponder = { - with200: r.with200, - with301: r.with301, +const reposListCommitStatusesForRef = b((r) => ({ + with200: r.with200(z.array(s_status)), + with301: r.with301(s_basic_error), withStatus: r.withStatus, -} +})) type ReposListCommitStatusesForRefResponder = - typeof reposListCommitStatusesForRefResponder & KoaRuntimeResponder - -const reposListCommitStatusesForRefResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_status)], - ["301", s_basic_error], - ], - undefined, - ) + (typeof reposListCommitStatusesForRef)["responder"] & KoaRuntimeResponder export type ReposListCommitStatusesForRef = ( params: Params< @@ -22054,16 +17591,13 @@ export type ReposListCommitStatusesForRef = ( | Response<301, t_basic_error> > -const reposGetCommunityProfileMetricsResponder = { - with200: r.with200, +const reposGetCommunityProfileMetrics = b((r) => ({ + with200: r.with200(s_community_profile), withStatus: r.withStatus, -} +})) type ReposGetCommunityProfileMetricsResponder = - typeof reposGetCommunityProfileMetricsResponder & KoaRuntimeResponder - -const reposGetCommunityProfileMetricsResponseValidator = - responseValidationFactory([["200", s_community_profile]], undefined) + (typeof reposGetCommunityProfileMetrics)["responder"] & KoaRuntimeResponder export type ReposGetCommunityProfileMetrics = ( params: Params< @@ -22076,38 +17610,27 @@ export type ReposGetCommunityProfileMetrics = ( ctx: RouterContext, ) => Promise | Response<200, t_community_profile>> -const reposCompareCommitsResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposCompareCommits = b((r) => ({ + with200: r.with200(s_commit_comparison), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type ReposCompareCommitsResponder = typeof reposCompareCommitsResponder & +type ReposCompareCommitsResponder = (typeof reposCompareCommits)["responder"] & KoaRuntimeResponder -const reposCompareCommitsResponseValidator = responseValidationFactory( - [ - ["200", s_commit_comparison], - ["404", s_basic_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) - export type ReposCompareCommits = ( params: Params< t_ReposCompareCommitsParamSchema, @@ -22132,42 +17655,30 @@ export type ReposCompareCommits = ( > > -const reposGetContentResponder = { +const reposGetContent = b((r) => ({ with200: r.with200< | t_content_directory | t_content_file | t_content_symlink | t_content_submodule - >, - with302: r.with302, - with304: r.with304, - with403: r.with403, - with404: r.with404, + >( + z.union([ + s_content_directory, + s_content_file, + s_content_symlink, + s_content_submodule, + ]), + ), + with302: r.with302(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetContentResponder = typeof reposGetContentResponder & +type ReposGetContentResponder = (typeof reposGetContent)["responder"] & KoaRuntimeResponder -const reposGetContentResponseValidator = responseValidationFactory( - [ - [ - "200", - z.union([ - s_content_directory, - s_content_file, - s_content_symlink, - s_content_submodule, - ]), - ], - ["302", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type ReposGetContent = ( params: Params< t_ReposGetContentParamSchema, @@ -22192,29 +17703,19 @@ export type ReposGetContent = ( | Response<404, t_basic_error> > -const reposCreateOrUpdateFileContentsResponder = { - with200: r.with200, - with201: r.with201, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const reposCreateOrUpdateFileContents = b((r) => ({ + with200: r.with200(s_file_commit), + with201: r.with201(s_file_commit), + with404: r.with404(s_basic_error), + with409: r.with409( + z.union([s_basic_error, s_repository_rule_violation_error]), + ), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposCreateOrUpdateFileContentsResponder = - typeof reposCreateOrUpdateFileContentsResponder & KoaRuntimeResponder - -const reposCreateOrUpdateFileContentsResponseValidator = - responseValidationFactory( - [ - ["200", s_file_commit], - ["201", s_file_commit], - ["404", s_basic_error], - ["409", z.union([s_basic_error, s_repository_rule_violation_error])], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposCreateOrUpdateFileContents)["responder"] & KoaRuntimeResponder export type ReposCreateOrUpdateFileContents = ( params: Params< @@ -22234,40 +17735,28 @@ export type ReposCreateOrUpdateFileContents = ( | Response<422, t_validation_error> > -const reposDeleteFileResponder = { - with200: r.with200, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const reposDeleteFile = b((r) => ({ + with200: r.with200(s_file_commit), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type ReposDeleteFileResponder = typeof reposDeleteFileResponder & +type ReposDeleteFileResponder = (typeof reposDeleteFile)["responder"] & KoaRuntimeResponder -const reposDeleteFileResponseValidator = responseValidationFactory( - [ - ["200", s_file_commit], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) - export type ReposDeleteFile = ( params: Params< t_ReposDeleteFileParamSchema, @@ -22293,26 +17782,16 @@ export type ReposDeleteFile = ( > > -const reposListContributorsResponder = { - with200: r.with200, - with204: r.with204, - with403: r.with403, - with404: r.with404, +const reposListContributors = b((r) => ({ + with200: r.with200(z.array(s_contributor)), + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type ReposListContributorsResponder = typeof reposListContributorsResponder & - KoaRuntimeResponder +})) -const reposListContributorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_contributor)], - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type ReposListContributorsResponder = + (typeof reposListContributors)["responder"] & KoaRuntimeResponder export type ReposListContributors = ( params: Params< @@ -22331,30 +17810,18 @@ export type ReposListContributors = ( | Response<404, t_basic_error> > -const dependabotListAlertsForRepoResponder = { - with200: r.with200, - with304: r.with304, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const dependabotListAlertsForRepo = b((r) => ({ + with200: r.with200(z.array(s_dependabot_alert)), + with304: r.with304(z.undefined()), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type DependabotListAlertsForRepoResponder = - typeof dependabotListAlertsForRepoResponder & KoaRuntimeResponder - -const dependabotListAlertsForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_dependabot_alert)], - ["304", z.undefined()], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) + (typeof dependabotListAlertsForRepo)["responder"] & KoaRuntimeResponder export type DependabotListAlertsForRepo = ( params: Params< @@ -22375,27 +17842,17 @@ export type DependabotListAlertsForRepo = ( | Response<422, t_validation_error_simple> > -const dependabotGetAlertResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const dependabotGetAlert = b((r) => ({ + with200: r.with200(s_dependabot_alert), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type DependabotGetAlertResponder = typeof dependabotGetAlertResponder & +type DependabotGetAlertResponder = (typeof dependabotGetAlert)["responder"] & KoaRuntimeResponder -const dependabotGetAlertResponseValidator = responseValidationFactory( - [ - ["200", s_dependabot_alert], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type DependabotGetAlert = ( params: Params, respond: DependabotGetAlertResponder, @@ -22408,30 +17865,18 @@ export type DependabotGetAlert = ( | Response<404, t_basic_error> > -const dependabotUpdateAlertResponder = { - with200: r.with200, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const dependabotUpdateAlert = b((r) => ({ + with200: r.with200(s_dependabot_alert), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type DependabotUpdateAlertResponder = typeof dependabotUpdateAlertResponder & - KoaRuntimeResponder - -const dependabotUpdateAlertResponseValidator = responseValidationFactory( - [ - ["200", s_dependabot_alert], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) +type DependabotUpdateAlertResponder = + (typeof dependabotUpdateAlert)["responder"] & KoaRuntimeResponder export type DependabotUpdateAlert = ( params: Params< @@ -22452,29 +17897,21 @@ export type DependabotUpdateAlert = ( | Response<422, t_validation_error_simple> > -const dependabotListRepoSecretsResponder = { +const dependabotListRepoSecrets = b((r) => ({ with200: r.with200<{ secrets: t_dependabot_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_dependabot_secret), + }), + ), withStatus: r.withStatus, -} +})) type DependabotListRepoSecretsResponder = - typeof dependabotListRepoSecretsResponder & KoaRuntimeResponder - -const dependabotListRepoSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_dependabot_secret), - }), - ], - ], - undefined, -) + (typeof dependabotListRepoSecrets)["responder"] & KoaRuntimeResponder export type DependabotListRepoSecrets = ( params: Params< @@ -22496,18 +17933,13 @@ export type DependabotListRepoSecrets = ( > > -const dependabotGetRepoPublicKeyResponder = { - with200: r.with200, +const dependabotGetRepoPublicKey = b((r) => ({ + with200: r.with200(s_dependabot_public_key), withStatus: r.withStatus, -} +})) type DependabotGetRepoPublicKeyResponder = - typeof dependabotGetRepoPublicKeyResponder & KoaRuntimeResponder - -const dependabotGetRepoPublicKeyResponseValidator = responseValidationFactory( - [["200", s_dependabot_public_key]], - undefined, -) + (typeof dependabotGetRepoPublicKey)["responder"] & KoaRuntimeResponder export type DependabotGetRepoPublicKey = ( params: Params, @@ -22517,18 +17949,13 @@ export type DependabotGetRepoPublicKey = ( KoaRuntimeResponse | Response<200, t_dependabot_public_key> > -const dependabotGetRepoSecretResponder = { - with200: r.with200, +const dependabotGetRepoSecret = b((r) => ({ + with200: r.with200(s_dependabot_secret), withStatus: r.withStatus, -} +})) type DependabotGetRepoSecretResponder = - typeof dependabotGetRepoSecretResponder & KoaRuntimeResponder - -const dependabotGetRepoSecretResponseValidator = responseValidationFactory( - [["200", s_dependabot_secret]], - undefined, -) + (typeof dependabotGetRepoSecret)["responder"] & KoaRuntimeResponder export type DependabotGetRepoSecret = ( params: Params, @@ -22536,23 +17963,14 @@ export type DependabotGetRepoSecret = ( ctx: RouterContext, ) => Promise | Response<200, t_dependabot_secret>> -const dependabotCreateOrUpdateRepoSecretResponder = { - with201: r.with201, - with204: r.with204, +const dependabotCreateOrUpdateRepoSecret = b((r) => ({ + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type DependabotCreateOrUpdateRepoSecretResponder = - typeof dependabotCreateOrUpdateRepoSecretResponder & KoaRuntimeResponder - -const dependabotCreateOrUpdateRepoSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) + (typeof dependabotCreateOrUpdateRepoSecret)["responder"] & KoaRuntimeResponder export type DependabotCreateOrUpdateRepoSecret = ( params: Params< @@ -22569,18 +17987,13 @@ export type DependabotCreateOrUpdateRepoSecret = ( | Response<204, void> > -const dependabotDeleteRepoSecretResponder = { - with204: r.with204, +const dependabotDeleteRepoSecret = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type DependabotDeleteRepoSecretResponder = - typeof dependabotDeleteRepoSecretResponder & KoaRuntimeResponder - -const dependabotDeleteRepoSecretResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof dependabotDeleteRepoSecret)["responder"] & KoaRuntimeResponder export type DependabotDeleteRepoSecret = ( params: Params, @@ -22588,24 +18001,15 @@ export type DependabotDeleteRepoSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const dependencyGraphDiffRangeResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const dependencyGraphDiffRange = b((r) => ({ + with200: r.with200(s_dependency_graph_diff), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type DependencyGraphDiffRangeResponder = - typeof dependencyGraphDiffRangeResponder & KoaRuntimeResponder - -const dependencyGraphDiffRangeResponseValidator = responseValidationFactory( - [ - ["200", s_dependency_graph_diff], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof dependencyGraphDiffRange)["responder"] & KoaRuntimeResponder export type DependencyGraphDiffRange = ( params: Params< @@ -22623,24 +18027,17 @@ export type DependencyGraphDiffRange = ( | Response<404, t_basic_error> > -const dependencyGraphExportSbomResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const dependencyGraphExportSbom = b((r) => ({ + with200: r.with200( + s_dependency_graph_spdx_sbom, + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type DependencyGraphExportSbomResponder = - typeof dependencyGraphExportSbomResponder & KoaRuntimeResponder - -const dependencyGraphExportSbomResponseValidator = responseValidationFactory( - [ - ["200", s_dependency_graph_spdx_sbom], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof dependencyGraphExportSbom)["responder"] & KoaRuntimeResponder export type DependencyGraphExportSbom = ( params: Params, @@ -22653,34 +18050,26 @@ export type DependencyGraphExportSbom = ( | Response<404, t_basic_error> > -const dependencyGraphCreateRepositorySnapshotResponder = { +const dependencyGraphCreateRepositorySnapshot = b((r) => ({ with201: r.with201<{ created_at: string id: number message: string result: string - }>, + }>( + z.object({ + id: z.coerce.number(), + created_at: z.string(), + result: z.string(), + message: z.string(), + }), + ), withStatus: r.withStatus, -} +})) type DependencyGraphCreateRepositorySnapshotResponder = - typeof dependencyGraphCreateRepositorySnapshotResponder & KoaRuntimeResponder - -const dependencyGraphCreateRepositorySnapshotResponseValidator = - responseValidationFactory( - [ - [ - "201", - z.object({ - id: z.coerce.number(), - created_at: z.string(), - result: z.string(), - message: z.string(), - }), - ], - ], - undefined, - ) + (typeof dependencyGraphCreateRepositorySnapshot)["responder"] & + KoaRuntimeResponder export type DependencyGraphCreateRepositorySnapshot = ( params: Params< @@ -22704,18 +18093,13 @@ export type DependencyGraphCreateRepositorySnapshot = ( > > -const reposListDeploymentsResponder = { - with200: r.with200, +const reposListDeployments = b((r) => ({ + with200: r.with200(z.array(s_deployment)), withStatus: r.withStatus, -} - -type ReposListDeploymentsResponder = typeof reposListDeploymentsResponder & - KoaRuntimeResponder +})) -const reposListDeploymentsResponseValidator = responseValidationFactory( - [["200", z.array(s_deployment)]], - undefined, -) +type ReposListDeploymentsResponder = + (typeof reposListDeployments)["responder"] & KoaRuntimeResponder export type ReposListDeployments = ( params: Params< @@ -22728,28 +18112,18 @@ export type ReposListDeployments = ( ctx: RouterContext, ) => Promise | Response<200, t_deployment[]>> -const reposCreateDeploymentResponder = { - with201: r.with201, +const reposCreateDeployment = b((r) => ({ + with201: r.with201(s_deployment), with202: r.with202<{ message?: string - }>, - with409: r.with409, - with422: r.with422, + }>(z.object({ message: z.string().optional() })), + with409: r.with409(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type ReposCreateDeploymentResponder = typeof reposCreateDeploymentResponder & - KoaRuntimeResponder +})) -const reposCreateDeploymentResponseValidator = responseValidationFactory( - [ - ["201", s_deployment], - ["202", z.object({ message: z.string().optional() })], - ["409", z.undefined()], - ["422", s_validation_error], - ], - undefined, -) +type ReposCreateDeploymentResponder = + (typeof reposCreateDeployment)["responder"] & KoaRuntimeResponder export type ReposCreateDeployment = ( params: Params< @@ -22773,23 +18147,15 @@ export type ReposCreateDeployment = ( | Response<422, t_validation_error> > -const reposGetDeploymentResponder = { - with200: r.with200, - with404: r.with404, +const reposGetDeployment = b((r) => ({ + with200: r.with200(s_deployment), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetDeploymentResponder = typeof reposGetDeploymentResponder & +type ReposGetDeploymentResponder = (typeof reposGetDeployment)["responder"] & KoaRuntimeResponder -const reposGetDeploymentResponseValidator = responseValidationFactory( - [ - ["200", s_deployment], - ["404", s_basic_error], - ], - undefined, -) - export type ReposGetDeployment = ( params: Params, respond: ReposGetDeploymentResponder, @@ -22800,24 +18166,15 @@ export type ReposGetDeployment = ( | Response<404, t_basic_error> > -const reposDeleteDeploymentResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const reposDeleteDeployment = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} - -type ReposDeleteDeploymentResponder = typeof reposDeleteDeploymentResponder & - KoaRuntimeResponder +})) -const reposDeleteDeploymentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) +type ReposDeleteDeploymentResponder = + (typeof reposDeleteDeployment)["responder"] & KoaRuntimeResponder export type ReposDeleteDeployment = ( params: Params, @@ -22830,22 +18187,14 @@ export type ReposDeleteDeployment = ( | Response<422, t_validation_error_simple> > -const reposListDeploymentStatusesResponder = { - with200: r.with200, - with404: r.with404, +const reposListDeploymentStatuses = b((r) => ({ + with200: r.with200(z.array(s_deployment_status)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposListDeploymentStatusesResponder = - typeof reposListDeploymentStatusesResponder & KoaRuntimeResponder - -const reposListDeploymentStatusesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_deployment_status)], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposListDeploymentStatuses)["responder"] & KoaRuntimeResponder export type ReposListDeploymentStatuses = ( params: Params< @@ -22862,22 +18211,14 @@ export type ReposListDeploymentStatuses = ( | Response<404, t_basic_error> > -const reposCreateDeploymentStatusResponder = { - with201: r.with201, - with422: r.with422, +const reposCreateDeploymentStatus = b((r) => ({ + with201: r.with201(s_deployment_status), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposCreateDeploymentStatusResponder = - typeof reposCreateDeploymentStatusResponder & KoaRuntimeResponder - -const reposCreateDeploymentStatusResponseValidator = responseValidationFactory( - [ - ["201", s_deployment_status], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposCreateDeploymentStatus)["responder"] & KoaRuntimeResponder export type ReposCreateDeploymentStatus = ( params: Params< @@ -22894,22 +18235,14 @@ export type ReposCreateDeploymentStatus = ( | Response<422, t_validation_error> > -const reposGetDeploymentStatusResponder = { - with200: r.with200, - with404: r.with404, +const reposGetDeploymentStatus = b((r) => ({ + with200: r.with200(s_deployment_status), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetDeploymentStatusResponder = - typeof reposGetDeploymentStatusResponder & KoaRuntimeResponder - -const reposGetDeploymentStatusResponseValidator = responseValidationFactory( - [ - ["200", s_deployment_status], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposGetDeploymentStatus)["responder"] & KoaRuntimeResponder export type ReposGetDeploymentStatus = ( params: Params, @@ -22921,24 +18254,15 @@ export type ReposGetDeploymentStatus = ( | Response<404, t_basic_error> > -const reposCreateDispatchEventResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const reposCreateDispatchEvent = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposCreateDispatchEventResponder = - typeof reposCreateDispatchEventResponder & KoaRuntimeResponder - -const reposCreateDispatchEventResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposCreateDispatchEvent)["responder"] & KoaRuntimeResponder export type ReposCreateDispatchEvent = ( params: Params< @@ -22956,29 +18280,21 @@ export type ReposCreateDispatchEvent = ( | Response<422, t_validation_error> > -const reposGetAllEnvironmentsResponder = { +const reposGetAllEnvironments = b((r) => ({ with200: r.with200<{ environments?: t_environment[] total_count?: number - }>, + }>( + z.object({ + total_count: z.coerce.number().optional(), + environments: z.array(s_environment).optional(), + }), + ), withStatus: r.withStatus, -} +})) type ReposGetAllEnvironmentsResponder = - typeof reposGetAllEnvironmentsResponder & KoaRuntimeResponder - -const reposGetAllEnvironmentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number().optional(), - environments: z.array(s_environment).optional(), - }), - ], - ], - undefined, -) + (typeof reposGetAllEnvironments)["responder"] & KoaRuntimeResponder export type ReposGetAllEnvironments = ( params: Params< @@ -23000,42 +18316,28 @@ export type ReposGetAllEnvironments = ( > > -const reposGetEnvironmentResponder = { - with200: r.with200, +const reposGetEnvironment = b((r) => ({ + with200: r.with200(s_environment), withStatus: r.withStatus, -} +})) -type ReposGetEnvironmentResponder = typeof reposGetEnvironmentResponder & +type ReposGetEnvironmentResponder = (typeof reposGetEnvironment)["responder"] & KoaRuntimeResponder -const reposGetEnvironmentResponseValidator = responseValidationFactory( - [["200", s_environment]], - undefined, -) - export type ReposGetEnvironment = ( params: Params, respond: ReposGetEnvironmentResponder, ctx: RouterContext, ) => Promise | Response<200, t_environment>> -const reposCreateOrUpdateEnvironmentResponder = { - with200: r.with200, - with422: r.with422, +const reposCreateOrUpdateEnvironment = b((r) => ({ + with200: r.with200(s_environment), + with422: r.with422(s_basic_error), withStatus: r.withStatus, -} +})) type ReposCreateOrUpdateEnvironmentResponder = - typeof reposCreateOrUpdateEnvironmentResponder & KoaRuntimeResponder - -const reposCreateOrUpdateEnvironmentResponseValidator = - responseValidationFactory( - [ - ["200", s_environment], - ["422", s_basic_error], - ], - undefined, - ) + (typeof reposCreateOrUpdateEnvironment)["responder"] & KoaRuntimeResponder export type ReposCreateOrUpdateEnvironment = ( params: Params< @@ -23052,18 +18354,13 @@ export type ReposCreateOrUpdateEnvironment = ( | Response<422, t_basic_error> > -const reposDeleteAnEnvironmentResponder = { - with204: r.with204, +const reposDeleteAnEnvironment = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDeleteAnEnvironmentResponder = - typeof reposDeleteAnEnvironmentResponder & KoaRuntimeResponder - -const reposDeleteAnEnvironmentResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof reposDeleteAnEnvironment)["responder"] & KoaRuntimeResponder export type ReposDeleteAnEnvironment = ( params: Params, @@ -23071,30 +18368,21 @@ export type ReposDeleteAnEnvironment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposListDeploymentBranchPoliciesResponder = { +const reposListDeploymentBranchPolicies = b((r) => ({ with200: r.with200<{ branch_policies: t_deployment_branch_policy[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + branch_policies: z.array(s_deployment_branch_policy), + }), + ), withStatus: r.withStatus, -} +})) type ReposListDeploymentBranchPoliciesResponder = - typeof reposListDeploymentBranchPoliciesResponder & KoaRuntimeResponder - -const reposListDeploymentBranchPoliciesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - branch_policies: z.array(s_deployment_branch_policy), - }), - ], - ], - undefined, - ) + (typeof reposListDeploymentBranchPolicies)["responder"] & KoaRuntimeResponder export type ReposListDeploymentBranchPolicies = ( params: Params< @@ -23116,25 +18404,15 @@ export type ReposListDeploymentBranchPolicies = ( > > -const reposCreateDeploymentBranchPolicyResponder = { - with200: r.with200, - with303: r.with303, - with404: r.with404, +const reposCreateDeploymentBranchPolicy = b((r) => ({ + with200: r.with200(s_deployment_branch_policy), + with303: r.with303(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type ReposCreateDeploymentBranchPolicyResponder = - typeof reposCreateDeploymentBranchPolicyResponder & KoaRuntimeResponder - -const reposCreateDeploymentBranchPolicyResponseValidator = - responseValidationFactory( - [ - ["200", s_deployment_branch_policy], - ["303", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) + (typeof reposCreateDeploymentBranchPolicy)["responder"] & KoaRuntimeResponder export type ReposCreateDeploymentBranchPolicy = ( params: Params< @@ -23152,16 +18430,13 @@ export type ReposCreateDeploymentBranchPolicy = ( | Response<404, void> > -const reposGetDeploymentBranchPolicyResponder = { - with200: r.with200, +const reposGetDeploymentBranchPolicy = b((r) => ({ + with200: r.with200(s_deployment_branch_policy), withStatus: r.withStatus, -} +})) type ReposGetDeploymentBranchPolicyResponder = - typeof reposGetDeploymentBranchPolicyResponder & KoaRuntimeResponder - -const reposGetDeploymentBranchPolicyResponseValidator = - responseValidationFactory([["200", s_deployment_branch_policy]], undefined) + (typeof reposGetDeploymentBranchPolicy)["responder"] & KoaRuntimeResponder export type ReposGetDeploymentBranchPolicy = ( params: Params, @@ -23171,16 +18446,13 @@ export type ReposGetDeploymentBranchPolicy = ( KoaRuntimeResponse | Response<200, t_deployment_branch_policy> > -const reposUpdateDeploymentBranchPolicyResponder = { - with200: r.with200, +const reposUpdateDeploymentBranchPolicy = b((r) => ({ + with200: r.with200(s_deployment_branch_policy), withStatus: r.withStatus, -} +})) type ReposUpdateDeploymentBranchPolicyResponder = - typeof reposUpdateDeploymentBranchPolicyResponder & KoaRuntimeResponder - -const reposUpdateDeploymentBranchPolicyResponseValidator = - responseValidationFactory([["200", s_deployment_branch_policy]], undefined) + (typeof reposUpdateDeploymentBranchPolicy)["responder"] & KoaRuntimeResponder export type ReposUpdateDeploymentBranchPolicy = ( params: Params< @@ -23195,16 +18467,13 @@ export type ReposUpdateDeploymentBranchPolicy = ( KoaRuntimeResponse | Response<200, t_deployment_branch_policy> > -const reposDeleteDeploymentBranchPolicyResponder = { - with204: r.with204, +const reposDeleteDeploymentBranchPolicy = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDeleteDeploymentBranchPolicyResponder = - typeof reposDeleteDeploymentBranchPolicyResponder & KoaRuntimeResponder - -const reposDeleteDeploymentBranchPolicyResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reposDeleteDeploymentBranchPolicy)["responder"] & KoaRuntimeResponder export type ReposDeleteDeploymentBranchPolicy = ( params: Params< @@ -23217,32 +18486,24 @@ export type ReposDeleteDeploymentBranchPolicy = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposGetAllDeploymentProtectionRulesResponder = { +const reposGetAllDeploymentProtectionRules = b((r) => ({ with200: r.with200<{ custom_deployment_protection_rules?: t_deployment_protection_rule[] total_count?: number - }>, + }>( + z.object({ + total_count: z.coerce.number().optional(), + custom_deployment_protection_rules: z + .array(s_deployment_protection_rule) + .optional(), + }), + ), withStatus: r.withStatus, -} +})) type ReposGetAllDeploymentProtectionRulesResponder = - typeof reposGetAllDeploymentProtectionRulesResponder & KoaRuntimeResponder - -const reposGetAllDeploymentProtectionRulesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number().optional(), - custom_deployment_protection_rules: z - .array(s_deployment_protection_rule) - .optional(), - }), - ], - ], - undefined, - ) + (typeof reposGetAllDeploymentProtectionRules)["responder"] & + KoaRuntimeResponder export type ReposGetAllDeploymentProtectionRules = ( params: Params< @@ -23264,16 +18525,16 @@ export type ReposGetAllDeploymentProtectionRules = ( > > -const reposCreateDeploymentProtectionRuleResponder = { - with201: r.with201, +const reposCreateDeploymentProtectionRule = b((r) => ({ + with201: r.with201( + s_deployment_protection_rule, + ), withStatus: r.withStatus, -} +})) type ReposCreateDeploymentProtectionRuleResponder = - typeof reposCreateDeploymentProtectionRuleResponder & KoaRuntimeResponder - -const reposCreateDeploymentProtectionRuleResponseValidator = - responseValidationFactory([["201", s_deployment_protection_rule]], undefined) + (typeof reposCreateDeploymentProtectionRule)["responder"] & + KoaRuntimeResponder export type ReposCreateDeploymentProtectionRule = ( params: Params< @@ -23288,34 +18549,25 @@ export type ReposCreateDeploymentProtectionRule = ( KoaRuntimeResponse | Response<201, t_deployment_protection_rule> > -const reposListCustomDeploymentRuleIntegrationsResponder = { +const reposListCustomDeploymentRuleIntegrations = b((r) => ({ with200: r.with200<{ available_custom_deployment_protection_rule_integrations?: t_custom_deployment_rule_app[] total_count?: number - }>, + }>( + z.object({ + total_count: z.coerce.number().optional(), + available_custom_deployment_protection_rule_integrations: z + .array(s_custom_deployment_rule_app) + .optional(), + }), + ), withStatus: r.withStatus, -} +})) type ReposListCustomDeploymentRuleIntegrationsResponder = - typeof reposListCustomDeploymentRuleIntegrationsResponder & + (typeof reposListCustomDeploymentRuleIntegrations)["responder"] & KoaRuntimeResponder -const reposListCustomDeploymentRuleIntegrationsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number().optional(), - available_custom_deployment_protection_rule_integrations: z - .array(s_custom_deployment_rule_app) - .optional(), - }), - ], - ], - undefined, - ) - export type ReposListCustomDeploymentRuleIntegrations = ( params: Params< t_ReposListCustomDeploymentRuleIntegrationsParamSchema, @@ -23336,16 +18588,16 @@ export type ReposListCustomDeploymentRuleIntegrations = ( > > -const reposGetCustomDeploymentProtectionRuleResponder = { - with200: r.with200, +const reposGetCustomDeploymentProtectionRule = b((r) => ({ + with200: r.with200( + s_deployment_protection_rule, + ), withStatus: r.withStatus, -} +})) type ReposGetCustomDeploymentProtectionRuleResponder = - typeof reposGetCustomDeploymentProtectionRuleResponder & KoaRuntimeResponder - -const reposGetCustomDeploymentProtectionRuleResponseValidator = - responseValidationFactory([["200", s_deployment_protection_rule]], undefined) + (typeof reposGetCustomDeploymentProtectionRule)["responder"] & + KoaRuntimeResponder export type ReposGetCustomDeploymentProtectionRule = ( params: Params< @@ -23360,16 +18612,14 @@ export type ReposGetCustomDeploymentProtectionRule = ( KoaRuntimeResponse | Response<200, t_deployment_protection_rule> > -const reposDisableDeploymentProtectionRuleResponder = { - with204: r.with204, +const reposDisableDeploymentProtectionRule = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDisableDeploymentProtectionRuleResponder = - typeof reposDisableDeploymentProtectionRuleResponder & KoaRuntimeResponder - -const reposDisableDeploymentProtectionRuleResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reposDisableDeploymentProtectionRule)["responder"] & + KoaRuntimeResponder export type ReposDisableDeploymentProtectionRule = ( params: Params< @@ -23382,30 +18632,21 @@ export type ReposDisableDeploymentProtectionRule = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListEnvironmentSecretsResponder = { +const actionsListEnvironmentSecrets = b((r) => ({ with200: r.with200<{ secrets: t_actions_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_actions_secret), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListEnvironmentSecretsResponder = - typeof actionsListEnvironmentSecretsResponder & KoaRuntimeResponder - -const actionsListEnvironmentSecretsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_actions_secret), - }), - ], - ], - undefined, - ) + (typeof actionsListEnvironmentSecrets)["responder"] & KoaRuntimeResponder export type ActionsListEnvironmentSecrets = ( params: Params< @@ -23427,16 +18668,13 @@ export type ActionsListEnvironmentSecrets = ( > > -const actionsGetEnvironmentPublicKeyResponder = { - with200: r.with200, +const actionsGetEnvironmentPublicKey = b((r) => ({ + with200: r.with200(s_actions_public_key), withStatus: r.withStatus, -} +})) type ActionsGetEnvironmentPublicKeyResponder = - typeof actionsGetEnvironmentPublicKeyResponder & KoaRuntimeResponder - -const actionsGetEnvironmentPublicKeyResponseValidator = - responseValidationFactory([["200", s_actions_public_key]], undefined) + (typeof actionsGetEnvironmentPublicKey)["responder"] & KoaRuntimeResponder export type ActionsGetEnvironmentPublicKey = ( params: Params, @@ -23444,18 +18682,13 @@ export type ActionsGetEnvironmentPublicKey = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> -const actionsGetEnvironmentSecretResponder = { - with200: r.with200, +const actionsGetEnvironmentSecret = b((r) => ({ + with200: r.with200(s_actions_secret), withStatus: r.withStatus, -} +})) type ActionsGetEnvironmentSecretResponder = - typeof actionsGetEnvironmentSecretResponder & KoaRuntimeResponder - -const actionsGetEnvironmentSecretResponseValidator = responseValidationFactory( - [["200", s_actions_secret]], - undefined, -) + (typeof actionsGetEnvironmentSecret)["responder"] & KoaRuntimeResponder export type ActionsGetEnvironmentSecret = ( params: Params, @@ -23463,23 +18696,15 @@ export type ActionsGetEnvironmentSecret = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_secret>> -const actionsCreateOrUpdateEnvironmentSecretResponder = { - with201: r.with201, - with204: r.with204, +const actionsCreateOrUpdateEnvironmentSecret = b((r) => ({ + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsCreateOrUpdateEnvironmentSecretResponder = - typeof actionsCreateOrUpdateEnvironmentSecretResponder & KoaRuntimeResponder - -const actionsCreateOrUpdateEnvironmentSecretResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ], - undefined, - ) + (typeof actionsCreateOrUpdateEnvironmentSecret)["responder"] & + KoaRuntimeResponder export type ActionsCreateOrUpdateEnvironmentSecret = ( params: Params< @@ -23496,16 +18721,13 @@ export type ActionsCreateOrUpdateEnvironmentSecret = ( | Response<204, void> > -const actionsDeleteEnvironmentSecretResponder = { - with204: r.with204, +const actionsDeleteEnvironmentSecret = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteEnvironmentSecretResponder = - typeof actionsDeleteEnvironmentSecretResponder & KoaRuntimeResponder - -const actionsDeleteEnvironmentSecretResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsDeleteEnvironmentSecret)["responder"] & KoaRuntimeResponder export type ActionsDeleteEnvironmentSecret = ( params: Params, @@ -23513,30 +18735,21 @@ export type ActionsDeleteEnvironmentSecret = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsListEnvironmentVariablesResponder = { +const actionsListEnvironmentVariables = b((r) => ({ with200: r.with200<{ total_count: number variables: t_actions_variable[] - }>, + }>( + z.object({ + total_count: z.coerce.number(), + variables: z.array(s_actions_variable), + }), + ), withStatus: r.withStatus, -} +})) type ActionsListEnvironmentVariablesResponder = - typeof actionsListEnvironmentVariablesResponder & KoaRuntimeResponder - -const actionsListEnvironmentVariablesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - variables: z.array(s_actions_variable), - }), - ], - ], - undefined, - ) + (typeof actionsListEnvironmentVariables)["responder"] & KoaRuntimeResponder export type ActionsListEnvironmentVariables = ( params: Params< @@ -23558,16 +18771,13 @@ export type ActionsListEnvironmentVariables = ( > > -const actionsCreateEnvironmentVariableResponder = { - with201: r.with201, +const actionsCreateEnvironmentVariable = b((r) => ({ + with201: r.with201(s_empty_object), withStatus: r.withStatus, -} +})) type ActionsCreateEnvironmentVariableResponder = - typeof actionsCreateEnvironmentVariableResponder & KoaRuntimeResponder - -const actionsCreateEnvironmentVariableResponseValidator = - responseValidationFactory([["201", s_empty_object]], undefined) + (typeof actionsCreateEnvironmentVariable)["responder"] & KoaRuntimeResponder export type ActionsCreateEnvironmentVariable = ( params: Params< @@ -23580,16 +18790,13 @@ export type ActionsCreateEnvironmentVariable = ( ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> -const actionsGetEnvironmentVariableResponder = { - with200: r.with200, +const actionsGetEnvironmentVariable = b((r) => ({ + with200: r.with200(s_actions_variable), withStatus: r.withStatus, -} +})) type ActionsGetEnvironmentVariableResponder = - typeof actionsGetEnvironmentVariableResponder & KoaRuntimeResponder - -const actionsGetEnvironmentVariableResponseValidator = - responseValidationFactory([["200", s_actions_variable]], undefined) + (typeof actionsGetEnvironmentVariable)["responder"] & KoaRuntimeResponder export type ActionsGetEnvironmentVariable = ( params: Params, @@ -23597,16 +18804,13 @@ export type ActionsGetEnvironmentVariable = ( ctx: RouterContext, ) => Promise | Response<200, t_actions_variable>> -const actionsUpdateEnvironmentVariableResponder = { - with204: r.with204, +const actionsUpdateEnvironmentVariable = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsUpdateEnvironmentVariableResponder = - typeof actionsUpdateEnvironmentVariableResponder & KoaRuntimeResponder - -const actionsUpdateEnvironmentVariableResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsUpdateEnvironmentVariable)["responder"] & KoaRuntimeResponder export type ActionsUpdateEnvironmentVariable = ( params: Params< @@ -23619,16 +18823,13 @@ export type ActionsUpdateEnvironmentVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const actionsDeleteEnvironmentVariableResponder = { - with204: r.with204, +const actionsDeleteEnvironmentVariable = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActionsDeleteEnvironmentVariableResponder = - typeof actionsDeleteEnvironmentVariableResponder & KoaRuntimeResponder - -const actionsDeleteEnvironmentVariableResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof actionsDeleteEnvironmentVariable)["responder"] & KoaRuntimeResponder export type ActionsDeleteEnvironmentVariable = ( params: Params< @@ -23641,18 +18842,13 @@ export type ActionsDeleteEnvironmentVariable = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const activityListRepoEventsResponder = { - with200: r.with200, +const activityListRepoEvents = b((r) => ({ + with200: r.with200(z.array(s_event)), withStatus: r.withStatus, -} +})) -type ActivityListRepoEventsResponder = typeof activityListRepoEventsResponder & - KoaRuntimeResponder - -const activityListRepoEventsResponseValidator = responseValidationFactory( - [["200", z.array(s_event)]], - undefined, -) +type ActivityListRepoEventsResponder = + (typeof activityListRepoEvents)["responder"] & KoaRuntimeResponder export type ActivityListRepoEvents = ( params: Params< @@ -23665,23 +18861,15 @@ export type ActivityListRepoEvents = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -const reposListForksResponder = { - with200: r.with200, - with400: r.with400, +const reposListForks = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), + with400: r.with400(s_scim_error), withStatus: r.withStatus, -} +})) -type ReposListForksResponder = typeof reposListForksResponder & +type ReposListForksResponder = (typeof reposListForks)["responder"] & KoaRuntimeResponder -const reposListForksResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["400", s_scim_error], - ], - undefined, -) - export type ReposListForks = ( params: Params< t_ReposListForksParamSchema, @@ -23697,29 +18885,18 @@ export type ReposListForks = ( | Response<400, t_scim_error> > -const reposCreateForkResponder = { - with202: r.with202, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const reposCreateFork = b((r) => ({ + with202: r.with202(s_full_repository), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposCreateForkResponder = typeof reposCreateForkResponder & +type ReposCreateForkResponder = (typeof reposCreateFork)["responder"] & KoaRuntimeResponder -const reposCreateForkResponseValidator = responseValidationFactory( - [ - ["202", s_full_repository], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type ReposCreateFork = ( params: Params< t_ReposCreateForkParamSchema, @@ -23738,29 +18915,20 @@ export type ReposCreateFork = ( | Response<422, t_validation_error> > -const gitCreateBlobResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const gitCreateBlob = b((r) => ({ + with201: r.with201(s_short_blob), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422( + z.union([s_validation_error, s_repository_rule_violation_error]), + ), withStatus: r.withStatus, -} +})) -type GitCreateBlobResponder = typeof gitCreateBlobResponder & +type GitCreateBlobResponder = (typeof gitCreateBlob)["responder"] & KoaRuntimeResponder -const gitCreateBlobResponseValidator = responseValidationFactory( - [ - ["201", s_short_blob], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", z.union([s_validation_error, s_repository_rule_violation_error])], - ], - undefined, -) - export type GitCreateBlob = ( params: Params< t_GitCreateBlobParamSchema, @@ -23779,27 +18947,17 @@ export type GitCreateBlob = ( | Response<422, t_validation_error | t_repository_rule_violation_error> > -const gitGetBlobResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const gitGetBlob = b((r) => ({ + with200: r.with200(s_blob), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GitGetBlobResponder = typeof gitGetBlobResponder & KoaRuntimeResponder - -const gitGetBlobResponseValidator = responseValidationFactory( - [ - ["200", s_blob], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type GitGetBlobResponder = (typeof gitGetBlob)["responder"] & + KoaRuntimeResponder export type GitGetBlob = ( params: Params, @@ -23814,27 +18972,17 @@ export type GitGetBlob = ( | Response<422, t_validation_error> > -const gitCreateCommitResponder = { - with201: r.with201, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const gitCreateCommit = b((r) => ({ + with201: r.with201(s_git_commit), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GitCreateCommitResponder = typeof gitCreateCommitResponder & +type GitCreateCommitResponder = (typeof gitCreateCommit)["responder"] & KoaRuntimeResponder -const gitCreateCommitResponseValidator = responseValidationFactory( - [ - ["201", s_git_commit], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type GitCreateCommit = ( params: Params< t_GitCreateCommitParamSchema, @@ -23852,23 +19000,15 @@ export type GitCreateCommit = ( | Response<422, t_validation_error> > -const gitGetCommitResponder = { - with200: r.with200, - with404: r.with404, - with409: r.with409, +const gitGetCommit = b((r) => ({ + with200: r.with200(s_git_commit), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) -type GitGetCommitResponder = typeof gitGetCommitResponder & KoaRuntimeResponder - -const gitGetCommitResponseValidator = responseValidationFactory( - [ - ["200", s_git_commit], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, -) +type GitGetCommitResponder = (typeof gitGetCommit)["responder"] & + KoaRuntimeResponder export type GitGetCommit = ( params: Params, @@ -23881,23 +19021,15 @@ export type GitGetCommit = ( | Response<409, t_basic_error> > -const gitListMatchingRefsResponder = { - with200: r.with200, - with409: r.with409, +const gitListMatchingRefs = b((r) => ({ + with200: r.with200(z.array(s_git_ref)), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) -type GitListMatchingRefsResponder = typeof gitListMatchingRefsResponder & +type GitListMatchingRefsResponder = (typeof gitListMatchingRefs)["responder"] & KoaRuntimeResponder -const gitListMatchingRefsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_git_ref)], - ["409", s_basic_error], - ], - undefined, -) - export type GitListMatchingRefs = ( params: Params, respond: GitListMatchingRefsResponder, @@ -23908,23 +19040,14 @@ export type GitListMatchingRefs = ( | Response<409, t_basic_error> > -const gitGetRefResponder = { - with200: r.with200, - with404: r.with404, - with409: r.with409, +const gitGetRef = b((r) => ({ + with200: r.with200(s_git_ref), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} - -type GitGetRefResponder = typeof gitGetRefResponder & KoaRuntimeResponder +})) -const gitGetRefResponseValidator = responseValidationFactory( - [ - ["200", s_git_ref], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, -) +type GitGetRefResponder = (typeof gitGetRef)["responder"] & KoaRuntimeResponder export type GitGetRef = ( params: Params, @@ -23937,23 +19060,15 @@ export type GitGetRef = ( | Response<409, t_basic_error> > -const gitCreateRefResponder = { - with201: r.with201, - with409: r.with409, - with422: r.with422, +const gitCreateRef = b((r) => ({ + with201: r.with201(s_git_ref), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GitCreateRefResponder = typeof gitCreateRefResponder & KoaRuntimeResponder - -const gitCreateRefResponseValidator = responseValidationFactory( - [ - ["201", s_git_ref], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type GitCreateRefResponder = (typeof gitCreateRef)["responder"] & + KoaRuntimeResponder export type GitCreateRef = ( params: Params< @@ -23971,23 +19086,15 @@ export type GitCreateRef = ( | Response<422, t_validation_error> > -const gitUpdateRefResponder = { - with200: r.with200, - with409: r.with409, - with422: r.with422, +const gitUpdateRef = b((r) => ({ + with200: r.with200(s_git_ref), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GitUpdateRefResponder = typeof gitUpdateRefResponder & KoaRuntimeResponder - -const gitUpdateRefResponseValidator = responseValidationFactory( - [ - ["200", s_git_ref], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type GitUpdateRefResponder = (typeof gitUpdateRef)["responder"] & + KoaRuntimeResponder export type GitUpdateRef = ( params: Params< @@ -24005,23 +19112,15 @@ export type GitUpdateRef = ( | Response<422, t_validation_error> > -const gitDeleteRefResponder = { - with204: r.with204, - with409: r.with409, - with422: r.with422, +const gitDeleteRef = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(s_basic_error), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) -type GitDeleteRefResponder = typeof gitDeleteRefResponder & KoaRuntimeResponder - -const gitDeleteRefResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["409", s_basic_error], - ["422", z.undefined()], - ], - undefined, -) +type GitDeleteRefResponder = (typeof gitDeleteRef)["responder"] & + KoaRuntimeResponder export type GitDeleteRef = ( params: Params, @@ -24034,23 +19133,15 @@ export type GitDeleteRef = ( | Response<422, void> > -const gitCreateTagResponder = { - with201: r.with201, - with409: r.with409, - with422: r.with422, +const gitCreateTag = b((r) => ({ + with201: r.with201(s_git_tag), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GitCreateTagResponder = typeof gitCreateTagResponder & KoaRuntimeResponder - -const gitCreateTagResponseValidator = responseValidationFactory( - [ - ["201", s_git_tag], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type GitCreateTagResponder = (typeof gitCreateTag)["responder"] & + KoaRuntimeResponder export type GitCreateTag = ( params: Params< @@ -24068,23 +19159,14 @@ export type GitCreateTag = ( | Response<422, t_validation_error> > -const gitGetTagResponder = { - with200: r.with200, - with404: r.with404, - with409: r.with409, +const gitGetTag = b((r) => ({ + with200: r.with200(s_git_tag), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) -type GitGetTagResponder = typeof gitGetTagResponder & KoaRuntimeResponder - -const gitGetTagResponseValidator = responseValidationFactory( - [ - ["200", s_git_tag], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, -) +type GitGetTagResponder = (typeof gitGetTag)["responder"] & KoaRuntimeResponder export type GitGetTag = ( params: Params, @@ -24097,29 +19179,18 @@ export type GitGetTag = ( | Response<409, t_basic_error> > -const gitCreateTreeResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const gitCreateTree = b((r) => ({ + with201: r.with201(s_git_tree), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GitCreateTreeResponder = typeof gitCreateTreeResponder & +type GitCreateTreeResponder = (typeof gitCreateTree)["responder"] & KoaRuntimeResponder -const gitCreateTreeResponseValidator = responseValidationFactory( - [ - ["201", s_git_tree], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type GitCreateTree = ( params: Params< t_GitCreateTreeParamSchema, @@ -24138,25 +19209,16 @@ export type GitCreateTree = ( | Response<422, t_validation_error> > -const gitGetTreeResponder = { - with200: r.with200, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const gitGetTree = b((r) => ({ + with200: r.with200(s_git_tree), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type GitGetTreeResponder = typeof gitGetTreeResponder & KoaRuntimeResponder +})) -const gitGetTreeResponseValidator = responseValidationFactory( - [ - ["200", s_git_tree], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type GitGetTreeResponder = (typeof gitGetTree)["responder"] & + KoaRuntimeResponder export type GitGetTree = ( params: Params, @@ -24170,23 +19232,15 @@ export type GitGetTree = ( | Response<422, t_validation_error> > -const reposListWebhooksResponder = { - with200: r.with200, - with404: r.with404, +const reposListWebhooks = b((r) => ({ + with200: r.with200(z.array(s_hook)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposListWebhooksResponder = typeof reposListWebhooksResponder & +type ReposListWebhooksResponder = (typeof reposListWebhooks)["responder"] & KoaRuntimeResponder -const reposListWebhooksResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_hook)], - ["404", s_basic_error], - ], - undefined, -) - export type ReposListWebhooks = ( params: Params< t_ReposListWebhooksParamSchema, @@ -24202,27 +19256,17 @@ export type ReposListWebhooks = ( | Response<404, t_basic_error> > -const reposCreateWebhookResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const reposCreateWebhook = b((r) => ({ + with201: r.with201(s_hook), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposCreateWebhookResponder = typeof reposCreateWebhookResponder & +type ReposCreateWebhookResponder = (typeof reposCreateWebhook)["responder"] & KoaRuntimeResponder -const reposCreateWebhookResponseValidator = responseValidationFactory( - [ - ["201", s_hook], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type ReposCreateWebhook = ( params: Params< t_ReposCreateWebhookParamSchema, @@ -24240,23 +19284,15 @@ export type ReposCreateWebhook = ( | Response<422, t_validation_error> > -const reposGetWebhookResponder = { - with200: r.with200, - with404: r.with404, +const reposGetWebhook = b((r) => ({ + with200: r.with200(s_hook), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetWebhookResponder = typeof reposGetWebhookResponder & +type ReposGetWebhookResponder = (typeof reposGetWebhook)["responder"] & KoaRuntimeResponder -const reposGetWebhookResponseValidator = responseValidationFactory( - [ - ["200", s_hook], - ["404", s_basic_error], - ], - undefined, -) - export type ReposGetWebhook = ( params: Params, respond: ReposGetWebhookResponder, @@ -24267,25 +19303,16 @@ export type ReposGetWebhook = ( | Response<404, t_basic_error> > -const reposUpdateWebhookResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const reposUpdateWebhook = b((r) => ({ + with200: r.with200(s_hook), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposUpdateWebhookResponder = typeof reposUpdateWebhookResponder & +type ReposUpdateWebhookResponder = (typeof reposUpdateWebhook)["responder"] & KoaRuntimeResponder -const reposUpdateWebhookResponseValidator = responseValidationFactory( - [ - ["200", s_hook], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type ReposUpdateWebhook = ( params: Params< t_ReposUpdateWebhookParamSchema, @@ -24302,23 +19329,15 @@ export type ReposUpdateWebhook = ( | Response<422, t_validation_error> > -const reposDeleteWebhookResponder = { - with204: r.with204, - with404: r.with404, +const reposDeleteWebhook = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposDeleteWebhookResponder = typeof reposDeleteWebhookResponder & +type ReposDeleteWebhookResponder = (typeof reposDeleteWebhook)["responder"] & KoaRuntimeResponder -const reposDeleteWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) - export type ReposDeleteWebhook = ( params: Params, respond: ReposDeleteWebhookResponder, @@ -24329,18 +19348,13 @@ export type ReposDeleteWebhook = ( | Response<404, t_basic_error> > -const reposGetWebhookConfigForRepoResponder = { - with200: r.with200, +const reposGetWebhookConfigForRepo = b((r) => ({ + with200: r.with200(s_webhook_config), withStatus: r.withStatus, -} +})) type ReposGetWebhookConfigForRepoResponder = - typeof reposGetWebhookConfigForRepoResponder & KoaRuntimeResponder - -const reposGetWebhookConfigForRepoResponseValidator = responseValidationFactory( - [["200", s_webhook_config]], - undefined, -) + (typeof reposGetWebhookConfigForRepo)["responder"] & KoaRuntimeResponder export type ReposGetWebhookConfigForRepo = ( params: Params, @@ -24348,16 +19362,13 @@ export type ReposGetWebhookConfigForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -const reposUpdateWebhookConfigForRepoResponder = { - with200: r.with200, +const reposUpdateWebhookConfigForRepo = b((r) => ({ + with200: r.with200(s_webhook_config), withStatus: r.withStatus, -} +})) type ReposUpdateWebhookConfigForRepoResponder = - typeof reposUpdateWebhookConfigForRepoResponder & KoaRuntimeResponder - -const reposUpdateWebhookConfigForRepoResponseValidator = - responseValidationFactory([["200", s_webhook_config]], undefined) + (typeof reposUpdateWebhookConfigForRepo)["responder"] & KoaRuntimeResponder export type ReposUpdateWebhookConfigForRepo = ( params: Params< @@ -24370,24 +19381,15 @@ export type ReposUpdateWebhookConfigForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> -const reposListWebhookDeliveriesResponder = { - with200: r.with200, - with400: r.with400, - with422: r.with422, +const reposListWebhookDeliveries = b((r) => ({ + with200: r.with200(z.array(s_hook_delivery_item)), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposListWebhookDeliveriesResponder = - typeof reposListWebhookDeliveriesResponder & KoaRuntimeResponder - -const reposListWebhookDeliveriesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_hook_delivery_item)], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposListWebhookDeliveries)["responder"] & KoaRuntimeResponder export type ReposListWebhookDeliveries = ( params: Params< @@ -24405,24 +19407,15 @@ export type ReposListWebhookDeliveries = ( | Response<422, t_validation_error> > -const reposGetWebhookDeliveryResponder = { - with200: r.with200, - with400: r.with400, - with422: r.with422, +const reposGetWebhookDelivery = b((r) => ({ + with200: r.with200(s_hook_delivery), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposGetWebhookDeliveryResponder = - typeof reposGetWebhookDeliveryResponder & KoaRuntimeResponder - -const reposGetWebhookDeliveryResponseValidator = responseValidationFactory( - [ - ["200", s_hook_delivery], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposGetWebhookDelivery)["responder"] & KoaRuntimeResponder export type ReposGetWebhookDelivery = ( params: Params, @@ -24435,27 +19428,17 @@ export type ReposGetWebhookDelivery = ( | Response<422, t_validation_error> > -const reposRedeliverWebhookDeliveryResponder = { +const reposRedeliverWebhookDelivery = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with400: r.with400, - with422: r.with422, + }>(z.record(z.unknown())), + with400: r.with400(s_scim_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposRedeliverWebhookDeliveryResponder = - typeof reposRedeliverWebhookDeliveryResponder & KoaRuntimeResponder - -const reposRedeliverWebhookDeliveryResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["400", s_scim_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposRedeliverWebhookDelivery)["responder"] & KoaRuntimeResponder export type ReposRedeliverWebhookDelivery = ( params: Params, @@ -24473,23 +19456,15 @@ export type ReposRedeliverWebhookDelivery = ( | Response<422, t_validation_error> > -const reposPingWebhookResponder = { - with204: r.with204, - with404: r.with404, +const reposPingWebhook = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposPingWebhookResponder = typeof reposPingWebhookResponder & +type ReposPingWebhookResponder = (typeof reposPingWebhook)["responder"] & KoaRuntimeResponder -const reposPingWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) - export type ReposPingWebhook = ( params: Params, respond: ReposPingWebhookResponder, @@ -24500,22 +19475,14 @@ export type ReposPingWebhook = ( | Response<404, t_basic_error> > -const reposTestPushWebhookResponder = { - with204: r.with204, - with404: r.with404, +const reposTestPushWebhook = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposTestPushWebhookResponder = typeof reposTestPushWebhookResponder & - KoaRuntimeResponder - -const reposTestPushWebhookResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) +type ReposTestPushWebhookResponder = + (typeof reposTestPushWebhook)["responder"] & KoaRuntimeResponder export type ReposTestPushWebhook = ( params: Params, @@ -24527,24 +19494,15 @@ export type ReposTestPushWebhook = ( | Response<404, t_basic_error> > -const migrationsGetImportStatusResponder = { - with200: r.with200, - with404: r.with404, - with503: r.with503, +const migrationsGetImportStatus = b((r) => ({ + with200: r.with200(s_import), + with404: r.with404(s_basic_error), + with503: r.with503(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsGetImportStatusResponder = - typeof migrationsGetImportStatusResponder & KoaRuntimeResponder - -const migrationsGetImportStatusResponseValidator = responseValidationFactory( - [ - ["200", s_import], - ["404", s_basic_error], - ["503", s_basic_error], - ], - undefined, -) + (typeof migrationsGetImportStatus)["responder"] & KoaRuntimeResponder export type MigrationsGetImportStatus = ( params: Params, @@ -24557,26 +19515,16 @@ export type MigrationsGetImportStatus = ( | Response<503, t_basic_error> > -const migrationsStartImportResponder = { - with201: r.with201, - with404: r.with404, - with422: r.with422, - with503: r.with503, +const migrationsStartImport = b((r) => ({ + with201: r.with201(s_import), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with503: r.with503(s_basic_error), withStatus: r.withStatus, -} +})) -type MigrationsStartImportResponder = typeof migrationsStartImportResponder & - KoaRuntimeResponder - -const migrationsStartImportResponseValidator = responseValidationFactory( - [ - ["201", s_import], - ["404", s_basic_error], - ["422", s_validation_error], - ["503", s_basic_error], - ], - undefined, -) +type MigrationsStartImportResponder = + (typeof migrationsStartImport)["responder"] & KoaRuntimeResponder export type MigrationsStartImport = ( params: Params< @@ -24595,22 +19543,14 @@ export type MigrationsStartImport = ( | Response<503, t_basic_error> > -const migrationsUpdateImportResponder = { - with200: r.with200, - with503: r.with503, +const migrationsUpdateImport = b((r) => ({ + with200: r.with200(s_import), + with503: r.with503(s_basic_error), withStatus: r.withStatus, -} +})) -type MigrationsUpdateImportResponder = typeof migrationsUpdateImportResponder & - KoaRuntimeResponder - -const migrationsUpdateImportResponseValidator = responseValidationFactory( - [ - ["200", s_import], - ["503", s_basic_error], - ], - undefined, -) +type MigrationsUpdateImportResponder = + (typeof migrationsUpdateImport)["responder"] & KoaRuntimeResponder export type MigrationsUpdateImport = ( params: Params< @@ -24627,22 +19567,14 @@ export type MigrationsUpdateImport = ( | Response<503, t_basic_error> > -const migrationsCancelImportResponder = { - with204: r.with204, - with503: r.with503, +const migrationsCancelImport = b((r) => ({ + with204: r.with204(z.undefined()), + with503: r.with503(s_basic_error), withStatus: r.withStatus, -} +})) -type MigrationsCancelImportResponder = typeof migrationsCancelImportResponder & - KoaRuntimeResponder - -const migrationsCancelImportResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["503", s_basic_error], - ], - undefined, -) +type MigrationsCancelImportResponder = + (typeof migrationsCancelImport)["responder"] & KoaRuntimeResponder export type MigrationsCancelImport = ( params: Params, @@ -24654,24 +19586,15 @@ export type MigrationsCancelImport = ( | Response<503, t_basic_error> > -const migrationsGetCommitAuthorsResponder = { - with200: r.with200, - with404: r.with404, - with503: r.with503, +const migrationsGetCommitAuthors = b((r) => ({ + with200: r.with200(z.array(s_porter_author)), + with404: r.with404(s_basic_error), + with503: r.with503(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsGetCommitAuthorsResponder = - typeof migrationsGetCommitAuthorsResponder & KoaRuntimeResponder - -const migrationsGetCommitAuthorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_porter_author)], - ["404", s_basic_error], - ["503", s_basic_error], - ], - undefined, -) + (typeof migrationsGetCommitAuthors)["responder"] & KoaRuntimeResponder export type MigrationsGetCommitAuthors = ( params: Params< @@ -24689,26 +19612,16 @@ export type MigrationsGetCommitAuthors = ( | Response<503, t_basic_error> > -const migrationsMapCommitAuthorResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, - with503: r.with503, +const migrationsMapCommitAuthor = b((r) => ({ + with200: r.with200(s_porter_author), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with503: r.with503(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsMapCommitAuthorResponder = - typeof migrationsMapCommitAuthorResponder & KoaRuntimeResponder - -const migrationsMapCommitAuthorResponseValidator = responseValidationFactory( - [ - ["200", s_porter_author], - ["404", s_basic_error], - ["422", s_validation_error], - ["503", s_basic_error], - ], - undefined, -) + (typeof migrationsMapCommitAuthor)["responder"] & KoaRuntimeResponder export type MigrationsMapCommitAuthor = ( params: Params< @@ -24727,22 +19640,14 @@ export type MigrationsMapCommitAuthor = ( | Response<503, t_basic_error> > -const migrationsGetLargeFilesResponder = { - with200: r.with200, - with503: r.with503, +const migrationsGetLargeFiles = b((r) => ({ + with200: r.with200(z.array(s_porter_large_file)), + with503: r.with503(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsGetLargeFilesResponder = - typeof migrationsGetLargeFilesResponder & KoaRuntimeResponder - -const migrationsGetLargeFilesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_porter_large_file)], - ["503", s_basic_error], - ], - undefined, -) + (typeof migrationsGetLargeFiles)["responder"] & KoaRuntimeResponder export type MigrationsGetLargeFiles = ( params: Params, @@ -24754,24 +19659,15 @@ export type MigrationsGetLargeFiles = ( | Response<503, t_basic_error> > -const migrationsSetLfsPreferenceResponder = { - with200: r.with200, - with422: r.with422, - with503: r.with503, +const migrationsSetLfsPreference = b((r) => ({ + with200: r.with200(s_import), + with422: r.with422(s_validation_error), + with503: r.with503(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsSetLfsPreferenceResponder = - typeof migrationsSetLfsPreferenceResponder & KoaRuntimeResponder - -const migrationsSetLfsPreferenceResponseValidator = responseValidationFactory( - [ - ["200", s_import], - ["422", s_validation_error], - ["503", s_basic_error], - ], - undefined, -) + (typeof migrationsSetLfsPreference)["responder"] & KoaRuntimeResponder export type MigrationsSetLfsPreference = ( params: Params< @@ -24789,24 +19685,15 @@ export type MigrationsSetLfsPreference = ( | Response<503, t_basic_error> > -const appsGetRepoInstallationResponder = { - with200: r.with200, - with301: r.with301, - with404: r.with404, +const appsGetRepoInstallation = b((r) => ({ + with200: r.with200(s_installation), + with301: r.with301(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type AppsGetRepoInstallationResponder = - typeof appsGetRepoInstallationResponder & KoaRuntimeResponder - -const appsGetRepoInstallationResponseValidator = responseValidationFactory( - [ - ["200", s_installation], - ["301", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof appsGetRepoInstallation)["responder"] & KoaRuntimeResponder export type AppsGetRepoInstallation = ( params: Params, @@ -24819,19 +19706,15 @@ export type AppsGetRepoInstallation = ( | Response<404, t_basic_error> > -const interactionsGetRestrictionsForRepoResponder = { - with200: r.with200, +const interactionsGetRestrictionsForRepo = b((r) => ({ + with200: r.with200( + z.union([s_interaction_limit_response, z.object({})]), + ), withStatus: r.withStatus, -} +})) type InteractionsGetRestrictionsForRepoResponder = - typeof interactionsGetRestrictionsForRepoResponder & KoaRuntimeResponder - -const interactionsGetRestrictionsForRepoResponseValidator = - responseValidationFactory( - [["200", z.union([s_interaction_limit_response, z.object({})])]], - undefined, - ) + (typeof interactionsGetRestrictionsForRepo)["responder"] & KoaRuntimeResponder export type InteractionsGetRestrictionsForRepo = ( params: Params< @@ -24847,23 +19730,16 @@ export type InteractionsGetRestrictionsForRepo = ( | Response<200, t_interaction_limit_response | EmptyObject> > -const interactionsSetRestrictionsForRepoResponder = { - with200: r.with200, - with409: r.with409, +const interactionsSetRestrictionsForRepo = b((r) => ({ + with200: r.with200( + s_interaction_limit_response, + ), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type InteractionsSetRestrictionsForRepoResponder = - typeof interactionsSetRestrictionsForRepoResponder & KoaRuntimeResponder - -const interactionsSetRestrictionsForRepoResponseValidator = - responseValidationFactory( - [ - ["200", s_interaction_limit_response], - ["409", z.undefined()], - ], - undefined, - ) + (typeof interactionsSetRestrictionsForRepo)["responder"] & KoaRuntimeResponder export type InteractionsSetRestrictionsForRepo = ( params: Params< @@ -24880,23 +19756,15 @@ export type InteractionsSetRestrictionsForRepo = ( | Response<409, void> > -const interactionsRemoveRestrictionsForRepoResponder = { - with204: r.with204, - with409: r.with409, +const interactionsRemoveRestrictionsForRepo = b((r) => ({ + with204: r.with204(z.undefined()), + with409: r.with409(z.undefined()), withStatus: r.withStatus, -} +})) type InteractionsRemoveRestrictionsForRepoResponder = - typeof interactionsRemoveRestrictionsForRepoResponder & KoaRuntimeResponder - -const interactionsRemoveRestrictionsForRepoResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["409", z.undefined()], - ], - undefined, - ) + (typeof interactionsRemoveRestrictionsForRepo)["responder"] & + KoaRuntimeResponder export type InteractionsRemoveRestrictionsForRepo = ( params: Params< @@ -24911,18 +19779,15 @@ export type InteractionsRemoveRestrictionsForRepo = ( KoaRuntimeResponse | Response<204, void> | Response<409, void> > -const reposListInvitationsResponder = { - with200: r.with200, +const reposListInvitations = b((r) => ({ + with200: r.with200( + z.array(s_repository_invitation), + ), withStatus: r.withStatus, -} - -type ReposListInvitationsResponder = typeof reposListInvitationsResponder & - KoaRuntimeResponder +})) -const reposListInvitationsResponseValidator = responseValidationFactory( - [["200", z.array(s_repository_invitation)]], - undefined, -) +type ReposListInvitationsResponder = + (typeof reposListInvitations)["responder"] & KoaRuntimeResponder export type ReposListInvitations = ( params: Params< @@ -24937,18 +19802,13 @@ export type ReposListInvitations = ( KoaRuntimeResponse | Response<200, t_repository_invitation[]> > -const reposUpdateInvitationResponder = { - with200: r.with200, +const reposUpdateInvitation = b((r) => ({ + with200: r.with200(s_repository_invitation), withStatus: r.withStatus, -} +})) -type ReposUpdateInvitationResponder = typeof reposUpdateInvitationResponder & - KoaRuntimeResponder - -const reposUpdateInvitationResponseValidator = responseValidationFactory( - [["200", s_repository_invitation]], - undefined, -) +type ReposUpdateInvitationResponder = + (typeof reposUpdateInvitation)["responder"] & KoaRuntimeResponder export type ReposUpdateInvitation = ( params: Params< @@ -24963,18 +19823,13 @@ export type ReposUpdateInvitation = ( KoaRuntimeResponse | Response<200, t_repository_invitation> > -const reposDeleteInvitationResponder = { - with204: r.with204, +const reposDeleteInvitation = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} - -type ReposDeleteInvitationResponder = typeof reposDeleteInvitationResponder & - KoaRuntimeResponder +})) -const reposDeleteInvitationResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type ReposDeleteInvitationResponder = + (typeof reposDeleteInvitation)["responder"] & KoaRuntimeResponder export type ReposDeleteInvitation = ( params: Params, @@ -24982,27 +19837,17 @@ export type ReposDeleteInvitation = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const issuesListForRepoResponder = { - with200: r.with200, - with301: r.with301, - with404: r.with404, - with422: r.with422, +const issuesListForRepo = b((r) => ({ + with200: r.with200(z.array(s_issue)), + with301: r.with301(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesListForRepoResponder = typeof issuesListForRepoResponder & +type IssuesListForRepoResponder = (typeof issuesListForRepo)["responder"] & KoaRuntimeResponder -const issuesListForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["301", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type IssuesListForRepo = ( params: Params< t_IssuesListForRepoParamSchema, @@ -25020,42 +19865,29 @@ export type IssuesListForRepo = ( | Response<422, t_validation_error> > -const issuesCreateResponder = { - with201: r.with201, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const issuesCreate = b((r) => ({ + with201: r.with201(s_issue), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type IssuesCreateResponder = typeof issuesCreateResponder & KoaRuntimeResponder - -const issuesCreateResponseValidator = responseValidationFactory( - [ - ["201", s_issue], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type IssuesCreateResponder = (typeof issuesCreate)["responder"] & + KoaRuntimeResponder export type IssuesCreate = ( params: Params< @@ -25084,24 +19916,15 @@ export type IssuesCreate = ( > > -const issuesListCommentsForRepoResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const issuesListCommentsForRepo = b((r) => ({ + with200: r.with200(z.array(s_issue_comment)), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type IssuesListCommentsForRepoResponder = - typeof issuesListCommentsForRepoResponder & KoaRuntimeResponder - -const issuesListCommentsForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_comment)], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof issuesListCommentsForRepo)["responder"] & KoaRuntimeResponder export type IssuesListCommentsForRepo = ( params: Params< @@ -25119,23 +19942,15 @@ export type IssuesListCommentsForRepo = ( | Response<422, t_validation_error> > -const issuesGetCommentResponder = { - with200: r.with200, - with404: r.with404, +const issuesGetComment = b((r) => ({ + with200: r.with200(s_issue_comment), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesGetCommentResponder = typeof issuesGetCommentResponder & +type IssuesGetCommentResponder = (typeof issuesGetComment)["responder"] & KoaRuntimeResponder -const issuesGetCommentResponseValidator = responseValidationFactory( - [ - ["200", s_issue_comment], - ["404", s_basic_error], - ], - undefined, -) - export type IssuesGetComment = ( params: Params, respond: IssuesGetCommentResponder, @@ -25146,23 +19961,15 @@ export type IssuesGetComment = ( | Response<404, t_basic_error> > -const issuesUpdateCommentResponder = { - with200: r.with200, - with422: r.with422, +const issuesUpdateComment = b((r) => ({ + with200: r.with200(s_issue_comment), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesUpdateCommentResponder = typeof issuesUpdateCommentResponder & +type IssuesUpdateCommentResponder = (typeof issuesUpdateComment)["responder"] & KoaRuntimeResponder -const issuesUpdateCommentResponseValidator = responseValidationFactory( - [ - ["200", s_issue_comment], - ["422", s_validation_error], - ], - undefined, -) - export type IssuesUpdateComment = ( params: Params< t_IssuesUpdateCommentParamSchema, @@ -25178,41 +19985,28 @@ export type IssuesUpdateComment = ( | Response<422, t_validation_error> > -const issuesDeleteCommentResponder = { - with204: r.with204, +const issuesDeleteComment = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type IssuesDeleteCommentResponder = typeof issuesDeleteCommentResponder & +type IssuesDeleteCommentResponder = (typeof issuesDeleteComment)["responder"] & KoaRuntimeResponder -const issuesDeleteCommentResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) - export type IssuesDeleteComment = ( params: Params, respond: IssuesDeleteCommentResponder, ctx: RouterContext, ) => Promise | Response<204, void>> -const reactionsListForIssueCommentResponder = { - with200: r.with200, - with404: r.with404, +const reactionsListForIssueComment = b((r) => ({ + with200: r.with200(z.array(s_reaction)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReactionsListForIssueCommentResponder = - typeof reactionsListForIssueCommentResponder & KoaRuntimeResponder - -const reactionsListForIssueCommentResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ], - undefined, -) + (typeof reactionsListForIssueComment)["responder"] & KoaRuntimeResponder export type ReactionsListForIssueComment = ( params: Params< @@ -25229,25 +20023,15 @@ export type ReactionsListForIssueComment = ( | Response<404, t_basic_error> > -const reactionsCreateForIssueCommentResponder = { - with200: r.with200, - with201: r.with201, - with422: r.with422, +const reactionsCreateForIssueComment = b((r) => ({ + with200: r.with200(s_reaction), + with201: r.with201(s_reaction), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReactionsCreateForIssueCommentResponder = - typeof reactionsCreateForIssueCommentResponder & KoaRuntimeResponder - -const reactionsCreateForIssueCommentResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reactionsCreateForIssueComment)["responder"] & KoaRuntimeResponder export type ReactionsCreateForIssueComment = ( params: Params< @@ -25265,16 +20049,13 @@ export type ReactionsCreateForIssueComment = ( | Response<422, t_validation_error> > -const reactionsDeleteForIssueCommentResponder = { - with204: r.with204, +const reactionsDeleteForIssueComment = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReactionsDeleteForIssueCommentResponder = - typeof reactionsDeleteForIssueCommentResponder & KoaRuntimeResponder - -const reactionsDeleteForIssueCommentResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reactionsDeleteForIssueComment)["responder"] & KoaRuntimeResponder export type ReactionsDeleteForIssueComment = ( params: Params, @@ -25282,22 +20063,14 @@ export type ReactionsDeleteForIssueComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const issuesListEventsForRepoResponder = { - with200: r.with200, - with422: r.with422, +const issuesListEventsForRepo = b((r) => ({ + with200: r.with200(z.array(s_issue_event)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type IssuesListEventsForRepoResponder = - typeof issuesListEventsForRepoResponder & KoaRuntimeResponder - -const issuesListEventsForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_event)], - ["422", s_validation_error], - ], - undefined, -) + (typeof issuesListEventsForRepo)["responder"] & KoaRuntimeResponder export type IssuesListEventsForRepo = ( params: Params< @@ -25314,27 +20087,17 @@ export type IssuesListEventsForRepo = ( | Response<422, t_validation_error> > -const issuesGetEventResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with410: r.with410, +const issuesGetEvent = b((r) => ({ + with200: r.with200(s_issue_event), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesGetEventResponder = typeof issuesGetEventResponder & +type IssuesGetEventResponder = (typeof issuesGetEvent)["responder"] & KoaRuntimeResponder -const issuesGetEventResponseValidator = responseValidationFactory( - [ - ["200", s_issue_event], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) - export type IssuesGetEvent = ( params: Params, respond: IssuesGetEventResponder, @@ -25347,27 +20110,16 @@ export type IssuesGetEvent = ( | Response<410, t_basic_error> > -const issuesGetResponder = { - with200: r.with200, - with301: r.with301, - with304: r.with304, - with404: r.with404, - with410: r.with410, +const issuesGet = b((r) => ({ + with200: r.with200(s_issue), + with301: r.with301(s_basic_error), + with304: r.with304(z.undefined()), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesGetResponder = typeof issuesGetResponder & KoaRuntimeResponder - -const issuesGetResponseValidator = responseValidationFactory( - [ - ["200", s_issue], - ["301", s_basic_error], - ["304", z.undefined()], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) +type IssuesGetResponder = (typeof issuesGet)["responder"] & KoaRuntimeResponder export type IssuesGet = ( params: Params, @@ -25382,42 +20134,29 @@ export type IssuesGet = ( | Response<410, t_basic_error> > -const issuesUpdateResponder = { - with200: r.with200, - with301: r.with301, - with403: r.with403, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const issuesUpdate = b((r) => ({ + with200: r.with200(s_issue), + with301: r.with301(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type IssuesUpdateResponder = typeof issuesUpdateResponder & KoaRuntimeResponder - -const issuesUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_issue], - ["301", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type IssuesUpdateResponder = (typeof issuesUpdate)["responder"] & + KoaRuntimeResponder export type IssuesUpdate = ( params: Params< @@ -25446,19 +20185,14 @@ export type IssuesUpdate = ( > > -const issuesAddAssigneesResponder = { - with201: r.with201, +const issuesAddAssignees = b((r) => ({ + with201: r.with201(s_issue), withStatus: r.withStatus, -} +})) -type IssuesAddAssigneesResponder = typeof issuesAddAssigneesResponder & +type IssuesAddAssigneesResponder = (typeof issuesAddAssignees)["responder"] & KoaRuntimeResponder -const issuesAddAssigneesResponseValidator = responseValidationFactory( - [["201", s_issue]], - undefined, -) - export type IssuesAddAssignees = ( params: Params< t_IssuesAddAssigneesParamSchema, @@ -25470,18 +20204,13 @@ export type IssuesAddAssignees = ( ctx: RouterContext, ) => Promise | Response<201, t_issue>> -const issuesRemoveAssigneesResponder = { - with200: r.with200, +const issuesRemoveAssignees = b((r) => ({ + with200: r.with200(s_issue), withStatus: r.withStatus, -} +})) -type IssuesRemoveAssigneesResponder = typeof issuesRemoveAssigneesResponder & - KoaRuntimeResponder - -const issuesRemoveAssigneesResponseValidator = responseValidationFactory( - [["200", s_issue]], - undefined, -) +type IssuesRemoveAssigneesResponder = + (typeof issuesRemoveAssignees)["responder"] & KoaRuntimeResponder export type IssuesRemoveAssignees = ( params: Params< @@ -25494,23 +20223,15 @@ export type IssuesRemoveAssignees = ( ctx: RouterContext, ) => Promise | Response<200, t_issue>> -const issuesCheckUserCanBeAssignedToIssueResponder = { - with204: r.with204, - with404: r.with404, +const issuesCheckUserCanBeAssignedToIssue = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type IssuesCheckUserCanBeAssignedToIssueResponder = - typeof issuesCheckUserCanBeAssignedToIssueResponder & KoaRuntimeResponder - -const issuesCheckUserCanBeAssignedToIssueResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) + (typeof issuesCheckUserCanBeAssignedToIssue)["responder"] & + KoaRuntimeResponder export type IssuesCheckUserCanBeAssignedToIssue = ( params: Params< @@ -25527,25 +20248,16 @@ export type IssuesCheckUserCanBeAssignedToIssue = ( | Response<404, t_basic_error> > -const issuesListCommentsResponder = { - with200: r.with200, - with404: r.with404, - with410: r.with410, +const issuesListComments = b((r) => ({ + with200: r.with200(z.array(s_issue_comment)), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesListCommentsResponder = typeof issuesListCommentsResponder & +type IssuesListCommentsResponder = (typeof issuesListComments)["responder"] & KoaRuntimeResponder -const issuesListCommentsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_comment)], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) - export type IssuesListComments = ( params: Params< t_IssuesListCommentsParamSchema, @@ -25562,29 +20274,18 @@ export type IssuesListComments = ( | Response<410, t_basic_error> > -const issuesCreateCommentResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const issuesCreateComment = b((r) => ({ + with201: r.with201(s_issue_comment), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesCreateCommentResponder = typeof issuesCreateCommentResponder & +type IssuesCreateCommentResponder = (typeof issuesCreateComment)["responder"] & KoaRuntimeResponder -const issuesCreateCommentResponseValidator = responseValidationFactory( - [ - ["201", s_issue_comment], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type IssuesCreateComment = ( params: Params< t_IssuesCreateCommentParamSchema, @@ -25603,23 +20304,17 @@ export type IssuesCreateComment = ( | Response<422, t_validation_error> > -const issuesListEventsResponder = { - with200: r.with200, - with410: r.with410, +const issuesListEvents = b((r) => ({ + with200: r.with200( + z.array(s_issue_event_for_issue), + ), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesListEventsResponder = typeof issuesListEventsResponder & +type IssuesListEventsResponder = (typeof issuesListEvents)["responder"] & KoaRuntimeResponder -const issuesListEventsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue_event_for_issue)], - ["410", s_basic_error], - ], - undefined, -) - export type IssuesListEvents = ( params: Params< t_IssuesListEventsParamSchema, @@ -25635,26 +20330,16 @@ export type IssuesListEvents = ( | Response<410, t_basic_error> > -const issuesListLabelsOnIssueResponder = { - with200: r.with200, - with301: r.with301, - with404: r.with404, - with410: r.with410, +const issuesListLabelsOnIssue = b((r) => ({ + with200: r.with200(z.array(s_label)), + with301: r.with301(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) type IssuesListLabelsOnIssueResponder = - typeof issuesListLabelsOnIssueResponder & KoaRuntimeResponder - -const issuesListLabelsOnIssueResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) + (typeof issuesListLabelsOnIssue)["responder"] & KoaRuntimeResponder export type IssuesListLabelsOnIssue = ( params: Params< @@ -25673,29 +20358,18 @@ export type IssuesListLabelsOnIssue = ( | Response<410, t_basic_error> > -const issuesAddLabelsResponder = { - with200: r.with200, - with301: r.with301, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const issuesAddLabels = b((r) => ({ + with200: r.with200(z.array(s_label)), + with301: r.with301(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesAddLabelsResponder = typeof issuesAddLabelsResponder & +type IssuesAddLabelsResponder = (typeof issuesAddLabels)["responder"] & KoaRuntimeResponder -const issuesAddLabelsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type IssuesAddLabels = ( params: Params< t_IssuesAddLabelsParamSchema, @@ -25714,29 +20388,18 @@ export type IssuesAddLabels = ( | Response<422, t_validation_error> > -const issuesSetLabelsResponder = { - with200: r.with200, - with301: r.with301, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const issuesSetLabels = b((r) => ({ + with200: r.with200(z.array(s_label)), + with301: r.with301(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesSetLabelsResponder = typeof issuesSetLabelsResponder & +type IssuesSetLabelsResponder = (typeof issuesSetLabels)["responder"] & KoaRuntimeResponder -const issuesSetLabelsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type IssuesSetLabels = ( params: Params< t_IssuesSetLabelsParamSchema, @@ -25755,26 +20418,16 @@ export type IssuesSetLabels = ( | Response<422, t_validation_error> > -const issuesRemoveAllLabelsResponder = { - with204: r.with204, - with301: r.with301, - with404: r.with404, - with410: r.with410, +const issuesRemoveAllLabels = b((r) => ({ + with204: r.with204(z.undefined()), + with301: r.with301(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} - -type IssuesRemoveAllLabelsResponder = typeof issuesRemoveAllLabelsResponder & - KoaRuntimeResponder +})) -const issuesRemoveAllLabelsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) +type IssuesRemoveAllLabelsResponder = + (typeof issuesRemoveAllLabels)["responder"] & KoaRuntimeResponder export type IssuesRemoveAllLabels = ( params: Params, @@ -25788,27 +20441,17 @@ export type IssuesRemoveAllLabels = ( | Response<410, t_basic_error> > -const issuesRemoveLabelResponder = { - with200: r.with200, - with301: r.with301, - with404: r.with404, - with410: r.with410, +const issuesRemoveLabel = b((r) => ({ + with200: r.with200(z.array(s_label)), + with301: r.with301(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesRemoveLabelResponder = typeof issuesRemoveLabelResponder & +type IssuesRemoveLabelResponder = (typeof issuesRemoveLabel)["responder"] & KoaRuntimeResponder -const issuesRemoveLabelResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["301", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) - export type IssuesRemoveLabel = ( params: Params, respond: IssuesRemoveLabelResponder, @@ -25821,27 +20464,17 @@ export type IssuesRemoveLabel = ( | Response<410, t_basic_error> > -const issuesLockResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const issuesLock = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesLockResponder = typeof issuesLockResponder & KoaRuntimeResponder - -const issuesLockResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type IssuesLockResponder = (typeof issuesLock)["responder"] & + KoaRuntimeResponder export type IssuesLock = ( params: Params< @@ -25861,23 +20494,15 @@ export type IssuesLock = ( | Response<422, t_validation_error> > -const issuesUnlockResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, +const issuesUnlock = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type IssuesUnlockResponder = typeof issuesUnlockResponder & KoaRuntimeResponder +})) -const issuesUnlockResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type IssuesUnlockResponder = (typeof issuesUnlock)["responder"] & + KoaRuntimeResponder export type IssuesUnlock = ( params: Params, @@ -25890,24 +20515,15 @@ export type IssuesUnlock = ( | Response<404, t_basic_error> > -const reactionsListForIssueResponder = { - with200: r.with200, - with404: r.with404, - with410: r.with410, +const reactionsListForIssue = b((r) => ({ + with200: r.with200(z.array(s_reaction)), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} - -type ReactionsListForIssueResponder = typeof reactionsListForIssueResponder & - KoaRuntimeResponder +})) -const reactionsListForIssueResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) +type ReactionsListForIssueResponder = + (typeof reactionsListForIssue)["responder"] & KoaRuntimeResponder export type ReactionsListForIssue = ( params: Params< @@ -25925,24 +20541,15 @@ export type ReactionsListForIssue = ( | Response<410, t_basic_error> > -const reactionsCreateForIssueResponder = { - with200: r.with200, - with201: r.with201, - with422: r.with422, +const reactionsCreateForIssue = b((r) => ({ + with200: r.with200(s_reaction), + with201: r.with201(s_reaction), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReactionsCreateForIssueResponder = - typeof reactionsCreateForIssueResponder & KoaRuntimeResponder - -const reactionsCreateForIssueResponseValidator = responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, -) + (typeof reactionsCreateForIssue)["responder"] & KoaRuntimeResponder export type ReactionsCreateForIssue = ( params: Params< @@ -25960,18 +20567,13 @@ export type ReactionsCreateForIssue = ( | Response<422, t_validation_error> > -const reactionsDeleteForIssueResponder = { - with204: r.with204, +const reactionsDeleteForIssue = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReactionsDeleteForIssueResponder = - typeof reactionsDeleteForIssueResponder & KoaRuntimeResponder - -const reactionsDeleteForIssueResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof reactionsDeleteForIssue)["responder"] & KoaRuntimeResponder export type ReactionsDeleteForIssue = ( params: Params, @@ -25979,24 +20581,15 @@ export type ReactionsDeleteForIssue = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const issuesRemoveSubIssueResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, +const issuesRemoveSubIssue = b((r) => ({ + with200: r.with200(s_issue), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesRemoveSubIssueResponder = typeof issuesRemoveSubIssueResponder & - KoaRuntimeResponder - -const issuesRemoveSubIssueResponseValidator = responseValidationFactory( - [ - ["200", s_issue], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, -) +type IssuesRemoveSubIssueResponder = + (typeof issuesRemoveSubIssue)["responder"] & KoaRuntimeResponder export type IssuesRemoveSubIssue = ( params: Params< @@ -26014,25 +20607,16 @@ export type IssuesRemoveSubIssue = ( | Response<404, t_basic_error> > -const issuesListSubIssuesResponder = { - with200: r.with200, - with404: r.with404, - with410: r.with410, +const issuesListSubIssues = b((r) => ({ + with200: r.with200(z.array(s_issue)), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesListSubIssuesResponder = typeof issuesListSubIssuesResponder & +type IssuesListSubIssuesResponder = (typeof issuesListSubIssues)["responder"] & KoaRuntimeResponder -const issuesListSubIssuesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) - export type IssuesListSubIssues = ( params: Params< t_IssuesListSubIssuesParamSchema, @@ -26049,29 +20633,18 @@ export type IssuesListSubIssues = ( | Response<410, t_basic_error> > -const issuesAddSubIssueResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const issuesAddSubIssue = b((r) => ({ + with201: r.with201(s_issue), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesAddSubIssueResponder = typeof issuesAddSubIssueResponder & +type IssuesAddSubIssueResponder = (typeof issuesAddSubIssue)["responder"] & KoaRuntimeResponder -const issuesAddSubIssueResponseValidator = responseValidationFactory( - [ - ["201", s_issue], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type IssuesAddSubIssue = ( params: Params< t_IssuesAddSubIssueParamSchema, @@ -26090,39 +20663,27 @@ export type IssuesAddSubIssue = ( | Response<422, t_validation_error> > -const issuesReprioritizeSubIssueResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const issuesReprioritizeSubIssue = b((r) => ({ + with200: r.with200(s_issue), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type IssuesReprioritizeSubIssueResponder = - typeof issuesReprioritizeSubIssueResponder & KoaRuntimeResponder - -const issuesReprioritizeSubIssueResponseValidator = responseValidationFactory( - [ - ["200", s_issue], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof issuesReprioritizeSubIssue)["responder"] & KoaRuntimeResponder export type IssuesReprioritizeSubIssue = ( params: Params< @@ -26149,24 +20710,17 @@ export type IssuesReprioritizeSubIssue = ( > > -const issuesListEventsForTimelineResponder = { - with200: r.with200, - with404: r.with404, - with410: r.with410, +const issuesListEventsForTimeline = b((r) => ({ + with200: r.with200( + z.array(s_timeline_issue_events), + ), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), withStatus: r.withStatus, -} +})) type IssuesListEventsForTimelineResponder = - typeof issuesListEventsForTimelineResponder & KoaRuntimeResponder - -const issuesListEventsForTimelineResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_timeline_issue_events)], - ["404", s_basic_error], - ["410", s_basic_error], - ], - undefined, -) + (typeof issuesListEventsForTimeline)["responder"] & KoaRuntimeResponder export type IssuesListEventsForTimeline = ( params: Params< @@ -26184,19 +20738,14 @@ export type IssuesListEventsForTimeline = ( | Response<410, t_basic_error> > -const reposListDeployKeysResponder = { - with200: r.with200, +const reposListDeployKeys = b((r) => ({ + with200: r.with200(z.array(s_deploy_key)), withStatus: r.withStatus, -} +})) -type ReposListDeployKeysResponder = typeof reposListDeployKeysResponder & +type ReposListDeployKeysResponder = (typeof reposListDeployKeys)["responder"] & KoaRuntimeResponder -const reposListDeployKeysResponseValidator = responseValidationFactory( - [["200", z.array(s_deploy_key)]], - undefined, -) - export type ReposListDeployKeys = ( params: Params< t_ReposListDeployKeysParamSchema, @@ -26208,22 +20757,14 @@ export type ReposListDeployKeys = ( ctx: RouterContext, ) => Promise | Response<200, t_deploy_key[]>> -const reposCreateDeployKeyResponder = { - with201: r.with201, - with422: r.with422, +const reposCreateDeployKey = b((r) => ({ + with201: r.with201(s_deploy_key), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposCreateDeployKeyResponder = typeof reposCreateDeployKeyResponder & - KoaRuntimeResponder - -const reposCreateDeployKeyResponseValidator = responseValidationFactory( - [ - ["201", s_deploy_key], - ["422", s_validation_error], - ], - undefined, -) +type ReposCreateDeployKeyResponder = + (typeof reposCreateDeployKey)["responder"] & KoaRuntimeResponder export type ReposCreateDeployKey = ( params: Params< @@ -26240,23 +20781,15 @@ export type ReposCreateDeployKey = ( | Response<422, t_validation_error> > -const reposGetDeployKeyResponder = { - with200: r.with200, - with404: r.with404, +const reposGetDeployKey = b((r) => ({ + with200: r.with200(s_deploy_key), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetDeployKeyResponder = typeof reposGetDeployKeyResponder & +type ReposGetDeployKeyResponder = (typeof reposGetDeployKey)["responder"] & KoaRuntimeResponder -const reposGetDeployKeyResponseValidator = responseValidationFactory( - [ - ["200", s_deploy_key], - ["404", s_basic_error], - ], - undefined, -) - export type ReposGetDeployKey = ( params: Params, respond: ReposGetDeployKeyResponder, @@ -26267,18 +20800,13 @@ export type ReposGetDeployKey = ( | Response<404, t_basic_error> > -const reposDeleteDeployKeyResponder = { - with204: r.with204, +const reposDeleteDeployKey = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type ReposDeleteDeployKeyResponder = typeof reposDeleteDeployKeyResponder & - KoaRuntimeResponder - -const reposDeleteDeployKeyResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type ReposDeleteDeployKeyResponder = + (typeof reposDeleteDeployKey)["responder"] & KoaRuntimeResponder export type ReposDeleteDeployKey = ( params: Params, @@ -26286,22 +20814,14 @@ export type ReposDeleteDeployKey = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const issuesListLabelsForRepoResponder = { - with200: r.with200, - with404: r.with404, +const issuesListLabelsForRepo = b((r) => ({ + with200: r.with200(z.array(s_label)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type IssuesListLabelsForRepoResponder = - typeof issuesListLabelsForRepoResponder & KoaRuntimeResponder - -const issuesListLabelsForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_label)], - ["404", s_basic_error], - ], - undefined, -) + (typeof issuesListLabelsForRepo)["responder"] & KoaRuntimeResponder export type IssuesListLabelsForRepo = ( params: Params< @@ -26318,25 +20838,16 @@ export type IssuesListLabelsForRepo = ( | Response<404, t_basic_error> > -const issuesCreateLabelResponder = { - with201: r.with201, - with404: r.with404, - with422: r.with422, +const issuesCreateLabel = b((r) => ({ + with201: r.with201(s_label), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesCreateLabelResponder = typeof issuesCreateLabelResponder & +type IssuesCreateLabelResponder = (typeof issuesCreateLabel)["responder"] & KoaRuntimeResponder -const issuesCreateLabelResponseValidator = responseValidationFactory( - [ - ["201", s_label], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type IssuesCreateLabel = ( params: Params< t_IssuesCreateLabelParamSchema, @@ -26353,23 +20864,15 @@ export type IssuesCreateLabel = ( | Response<422, t_validation_error> > -const issuesGetLabelResponder = { - with200: r.with200, - with404: r.with404, +const issuesGetLabel = b((r) => ({ + with200: r.with200(s_label), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesGetLabelResponder = typeof issuesGetLabelResponder & +type IssuesGetLabelResponder = (typeof issuesGetLabel)["responder"] & KoaRuntimeResponder -const issuesGetLabelResponseValidator = responseValidationFactory( - [ - ["200", s_label], - ["404", s_basic_error], - ], - undefined, -) - export type IssuesGetLabel = ( params: Params, respond: IssuesGetLabelResponder, @@ -26380,19 +20883,14 @@ export type IssuesGetLabel = ( | Response<404, t_basic_error> > -const issuesUpdateLabelResponder = { - with200: r.with200, +const issuesUpdateLabel = b((r) => ({ + with200: r.with200(s_label), withStatus: r.withStatus, -} +})) -type IssuesUpdateLabelResponder = typeof issuesUpdateLabelResponder & +type IssuesUpdateLabelResponder = (typeof issuesUpdateLabel)["responder"] & KoaRuntimeResponder -const issuesUpdateLabelResponseValidator = responseValidationFactory( - [["200", s_label]], - undefined, -) - export type IssuesUpdateLabel = ( params: Params< t_IssuesUpdateLabelParamSchema, @@ -26404,61 +20902,43 @@ export type IssuesUpdateLabel = ( ctx: RouterContext, ) => Promise | Response<200, t_label>> -const issuesDeleteLabelResponder = { - with204: r.with204, +const issuesDeleteLabel = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type IssuesDeleteLabelResponder = typeof issuesDeleteLabelResponder & +type IssuesDeleteLabelResponder = (typeof issuesDeleteLabel)["responder"] & KoaRuntimeResponder -const issuesDeleteLabelResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) - export type IssuesDeleteLabel = ( params: Params, respond: IssuesDeleteLabelResponder, ctx: RouterContext, ) => Promise | Response<204, void>> -const reposListLanguagesResponder = { - with200: r.with200, +const reposListLanguages = b((r) => ({ + with200: r.with200(s_language), withStatus: r.withStatus, -} +})) -type ReposListLanguagesResponder = typeof reposListLanguagesResponder & +type ReposListLanguagesResponder = (typeof reposListLanguages)["responder"] & KoaRuntimeResponder -const reposListLanguagesResponseValidator = responseValidationFactory( - [["200", s_language]], - undefined, -) - export type ReposListLanguages = ( params: Params, respond: ReposListLanguagesResponder, ctx: RouterContext, ) => Promise | Response<200, t_language>> -const licensesGetForRepoResponder = { - with200: r.with200, - with404: r.with404, +const licensesGetForRepo = b((r) => ({ + with200: r.with200(s_license_content), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type LicensesGetForRepoResponder = typeof licensesGetForRepoResponder & +type LicensesGetForRepoResponder = (typeof licensesGetForRepo)["responder"] & KoaRuntimeResponder -const licensesGetForRepoResponseValidator = responseValidationFactory( - [ - ["200", s_license_content], - ["404", s_basic_error], - ], - undefined, -) - export type LicensesGetForRepo = ( params: Params< t_LicensesGetForRepoParamSchema, @@ -26474,25 +20954,16 @@ export type LicensesGetForRepo = ( | Response<404, t_basic_error> > -const reposMergeUpstreamResponder = { - with200: r.with200, - with409: r.with409, - with422: r.with422, +const reposMergeUpstream = b((r) => ({ + with200: r.with200(s_merged_upstream), + with409: r.with409(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) -type ReposMergeUpstreamResponder = typeof reposMergeUpstreamResponder & +type ReposMergeUpstreamResponder = (typeof reposMergeUpstream)["responder"] & KoaRuntimeResponder -const reposMergeUpstreamResponseValidator = responseValidationFactory( - [ - ["200", s_merged_upstream], - ["409", z.undefined()], - ["422", z.undefined()], - ], - undefined, -) - export type ReposMergeUpstream = ( params: Params< t_ReposMergeUpstreamParamSchema, @@ -26509,29 +20980,18 @@ export type ReposMergeUpstream = ( | Response<422, void> > -const reposMergeResponder = { - with201: r.with201, - with204: r.with204, - with403: r.with403, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const reposMerge = b((r) => ({ + with201: r.with201(s_commit), + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(z.undefined()), + with409: r.with409(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposMergeResponder = typeof reposMergeResponder & KoaRuntimeResponder - -const reposMergeResponseValidator = responseValidationFactory( - [ - ["201", s_commit], - ["204", z.undefined()], - ["403", s_basic_error], - ["404", z.undefined()], - ["409", z.undefined()], - ["422", s_validation_error], - ], - undefined, -) +type ReposMergeResponder = (typeof reposMerge)["responder"] & + KoaRuntimeResponder export type ReposMerge = ( params: Params, @@ -26547,22 +21007,14 @@ export type ReposMerge = ( | Response<422, t_validation_error> > -const issuesListMilestonesResponder = { - with200: r.with200, - with404: r.with404, +const issuesListMilestones = b((r) => ({ + with200: r.with200(z.array(s_milestone)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesListMilestonesResponder = typeof issuesListMilestonesResponder & - KoaRuntimeResponder - -const issuesListMilestonesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_milestone)], - ["404", s_basic_error], - ], - undefined, -) +type IssuesListMilestonesResponder = + (typeof issuesListMilestones)["responder"] & KoaRuntimeResponder export type IssuesListMilestones = ( params: Params< @@ -26579,24 +21031,15 @@ export type IssuesListMilestones = ( | Response<404, t_basic_error> > -const issuesCreateMilestoneResponder = { - with201: r.with201, - with404: r.with404, - with422: r.with422, +const issuesCreateMilestone = b((r) => ({ + with201: r.with201(s_milestone), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type IssuesCreateMilestoneResponder = typeof issuesCreateMilestoneResponder & - KoaRuntimeResponder - -const issuesCreateMilestoneResponseValidator = responseValidationFactory( - [ - ["201", s_milestone], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type IssuesCreateMilestoneResponder = + (typeof issuesCreateMilestone)["responder"] & KoaRuntimeResponder export type IssuesCreateMilestone = ( params: Params< @@ -26614,23 +21057,15 @@ export type IssuesCreateMilestone = ( | Response<422, t_validation_error> > -const issuesGetMilestoneResponder = { - with200: r.with200, - with404: r.with404, +const issuesGetMilestone = b((r) => ({ + with200: r.with200(s_milestone), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesGetMilestoneResponder = typeof issuesGetMilestoneResponder & +type IssuesGetMilestoneResponder = (typeof issuesGetMilestone)["responder"] & KoaRuntimeResponder -const issuesGetMilestoneResponseValidator = responseValidationFactory( - [ - ["200", s_milestone], - ["404", s_basic_error], - ], - undefined, -) - export type IssuesGetMilestone = ( params: Params, respond: IssuesGetMilestoneResponder, @@ -26641,18 +21076,13 @@ export type IssuesGetMilestone = ( | Response<404, t_basic_error> > -const issuesUpdateMilestoneResponder = { - with200: r.with200, +const issuesUpdateMilestone = b((r) => ({ + with200: r.with200(s_milestone), withStatus: r.withStatus, -} +})) -type IssuesUpdateMilestoneResponder = typeof issuesUpdateMilestoneResponder & - KoaRuntimeResponder - -const issuesUpdateMilestoneResponseValidator = responseValidationFactory( - [["200", s_milestone]], - undefined, -) +type IssuesUpdateMilestoneResponder = + (typeof issuesUpdateMilestone)["responder"] & KoaRuntimeResponder export type IssuesUpdateMilestone = ( params: Params< @@ -26665,22 +21095,14 @@ export type IssuesUpdateMilestone = ( ctx: RouterContext, ) => Promise | Response<200, t_milestone>> -const issuesDeleteMilestoneResponder = { - with204: r.with204, - with404: r.with404, +const issuesDeleteMilestone = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type IssuesDeleteMilestoneResponder = typeof issuesDeleteMilestoneResponder & - KoaRuntimeResponder - -const issuesDeleteMilestoneResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) +type IssuesDeleteMilestoneResponder = + (typeof issuesDeleteMilestone)["responder"] & KoaRuntimeResponder export type IssuesDeleteMilestone = ( params: Params, @@ -26692,18 +21114,13 @@ export type IssuesDeleteMilestone = ( | Response<404, t_basic_error> > -const issuesListLabelsForMilestoneResponder = { - with200: r.with200, +const issuesListLabelsForMilestone = b((r) => ({ + with200: r.with200(z.array(s_label)), withStatus: r.withStatus, -} +})) type IssuesListLabelsForMilestoneResponder = - typeof issuesListLabelsForMilestoneResponder & KoaRuntimeResponder - -const issuesListLabelsForMilestoneResponseValidator = responseValidationFactory( - [["200", z.array(s_label)]], - undefined, -) + (typeof issuesListLabelsForMilestone)["responder"] & KoaRuntimeResponder export type IssuesListLabelsForMilestone = ( params: Params< @@ -26716,18 +21133,15 @@ export type IssuesListLabelsForMilestone = ( ctx: RouterContext, ) => Promise | Response<200, t_label[]>> -const activityListRepoNotificationsForAuthenticatedUserResponder = { - with200: r.with200, +const activityListRepoNotificationsForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_thread)), withStatus: r.withStatus, -} +})) type ActivityListRepoNotificationsForAuthenticatedUserResponder = - typeof activityListRepoNotificationsForAuthenticatedUserResponder & + (typeof activityListRepoNotificationsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const activityListRepoNotificationsForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", z.array(s_thread)]], undefined) - export type ActivityListRepoNotificationsForAuthenticatedUser = ( params: Params< t_ActivityListRepoNotificationsForAuthenticatedUserParamSchema, @@ -26739,32 +21153,18 @@ export type ActivityListRepoNotificationsForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_thread[]>> -const activityMarkRepoNotificationsAsReadResponder = { +const activityMarkRepoNotificationsAsRead = b((r) => ({ with202: r.with202<{ message?: string url?: string - }>, - with205: r.with205, + }>(z.object({ message: z.string().optional(), url: z.string().optional() })), + with205: r.with205(z.undefined()), withStatus: r.withStatus, -} +})) type ActivityMarkRepoNotificationsAsReadResponder = - typeof activityMarkRepoNotificationsAsReadResponder & KoaRuntimeResponder - -const activityMarkRepoNotificationsAsReadResponseValidator = - responseValidationFactory( - [ - [ - "202", - z.object({ - message: z.string().optional(), - url: z.string().optional(), - }), - ], - ["205", z.undefined()], - ], - undefined, - ) + (typeof activityMarkRepoNotificationsAsRead)["responder"] & + KoaRuntimeResponder export type ActivityMarkRepoNotificationsAsRead = ( params: Params< @@ -26787,23 +21187,15 @@ export type ActivityMarkRepoNotificationsAsRead = ( | Response<205, void> > -const reposGetPagesResponder = { - with200: r.with200, - with404: r.with404, +const reposGetPages = b((r) => ({ + with200: r.with200(s_page), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetPagesResponder = typeof reposGetPagesResponder & +type ReposGetPagesResponder = (typeof reposGetPages)["responder"] & KoaRuntimeResponder -const reposGetPagesResponseValidator = responseValidationFactory( - [ - ["200", s_page], - ["404", s_basic_error], - ], - undefined, -) - export type ReposGetPages = ( params: Params, respond: ReposGetPagesResponder, @@ -26814,24 +21206,15 @@ export type ReposGetPages = ( | Response<404, t_basic_error> > -const reposCreatePagesSiteResponder = { - with201: r.with201, - with409: r.with409, - with422: r.with422, +const reposCreatePagesSite = b((r) => ({ + with201: r.with201(s_page), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposCreatePagesSiteResponder = typeof reposCreatePagesSiteResponder & - KoaRuntimeResponder - -const reposCreatePagesSiteResponseValidator = responseValidationFactory( - [ - ["201", s_page], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type ReposCreatePagesSiteResponder = + (typeof reposCreatePagesSite)["responder"] & KoaRuntimeResponder export type ReposCreatePagesSite = ( params: Params< @@ -26849,27 +21232,17 @@ export type ReposCreatePagesSite = ( | Response<422, t_validation_error> > -const reposUpdateInformationAboutPagesSiteResponder = { - with204: r.with204, - with400: r.with400, - with409: r.with409, - with422: r.with422, +const reposUpdateInformationAboutPagesSite = b((r) => ({ + with204: r.with204(z.undefined()), + with400: r.with400(s_scim_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposUpdateInformationAboutPagesSiteResponder = - typeof reposUpdateInformationAboutPagesSiteResponder & KoaRuntimeResponder - -const reposUpdateInformationAboutPagesSiteResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_scim_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposUpdateInformationAboutPagesSite)["responder"] & + KoaRuntimeResponder export type ReposUpdateInformationAboutPagesSite = ( params: Params< @@ -26888,26 +21261,16 @@ export type ReposUpdateInformationAboutPagesSite = ( | Response<422, t_validation_error> > -const reposDeletePagesSiteResponder = { - with204: r.with204, - with404: r.with404, - with409: r.with409, - with422: r.with422, +const reposDeletePagesSite = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposDeletePagesSiteResponder = typeof reposDeletePagesSiteResponder & - KoaRuntimeResponder - -const reposDeletePagesSiteResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["409", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type ReposDeletePagesSiteResponder = + (typeof reposDeletePagesSite)["responder"] & KoaRuntimeResponder export type ReposDeletePagesSite = ( params: Params, @@ -26921,18 +21284,13 @@ export type ReposDeletePagesSite = ( | Response<422, t_validation_error> > -const reposListPagesBuildsResponder = { - with200: r.with200, +const reposListPagesBuilds = b((r) => ({ + with200: r.with200(z.array(s_page_build)), withStatus: r.withStatus, -} - -type ReposListPagesBuildsResponder = typeof reposListPagesBuildsResponder & - KoaRuntimeResponder +})) -const reposListPagesBuildsResponseValidator = responseValidationFactory( - [["200", z.array(s_page_build)]], - undefined, -) +type ReposListPagesBuildsResponder = + (typeof reposListPagesBuilds)["responder"] & KoaRuntimeResponder export type ReposListPagesBuilds = ( params: Params< @@ -26945,18 +21303,13 @@ export type ReposListPagesBuilds = ( ctx: RouterContext, ) => Promise | Response<200, t_page_build[]>> -const reposRequestPagesBuildResponder = { - with201: r.with201, +const reposRequestPagesBuild = b((r) => ({ + with201: r.with201(s_page_build_status), withStatus: r.withStatus, -} +})) -type ReposRequestPagesBuildResponder = typeof reposRequestPagesBuildResponder & - KoaRuntimeResponder - -const reposRequestPagesBuildResponseValidator = responseValidationFactory( - [["201", s_page_build_status]], - undefined, -) +type ReposRequestPagesBuildResponder = + (typeof reposRequestPagesBuild)["responder"] & KoaRuntimeResponder export type ReposRequestPagesBuild = ( params: Params, @@ -26964,18 +21317,13 @@ export type ReposRequestPagesBuild = ( ctx: RouterContext, ) => Promise | Response<201, t_page_build_status>> -const reposGetLatestPagesBuildResponder = { - with200: r.with200, +const reposGetLatestPagesBuild = b((r) => ({ + with200: r.with200(s_page_build), withStatus: r.withStatus, -} +})) type ReposGetLatestPagesBuildResponder = - typeof reposGetLatestPagesBuildResponder & KoaRuntimeResponder - -const reposGetLatestPagesBuildResponseValidator = responseValidationFactory( - [["200", s_page_build]], - undefined, -) + (typeof reposGetLatestPagesBuild)["responder"] & KoaRuntimeResponder export type ReposGetLatestPagesBuild = ( params: Params, @@ -26983,45 +21331,30 @@ export type ReposGetLatestPagesBuild = ( ctx: RouterContext, ) => Promise | Response<200, t_page_build>> -const reposGetPagesBuildResponder = { - with200: r.with200, +const reposGetPagesBuild = b((r) => ({ + with200: r.with200(s_page_build), withStatus: r.withStatus, -} +})) -type ReposGetPagesBuildResponder = typeof reposGetPagesBuildResponder & +type ReposGetPagesBuildResponder = (typeof reposGetPagesBuild)["responder"] & KoaRuntimeResponder -const reposGetPagesBuildResponseValidator = responseValidationFactory( - [["200", s_page_build]], - undefined, -) - export type ReposGetPagesBuild = ( params: Params, respond: ReposGetPagesBuildResponder, ctx: RouterContext, ) => Promise | Response<200, t_page_build>> -const reposCreatePagesDeploymentResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, - with422: r.with422, +const reposCreatePagesDeployment = b((r) => ({ + with200: r.with200(s_page_deployment), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposCreatePagesDeploymentResponder = - typeof reposCreatePagesDeploymentResponder & KoaRuntimeResponder - -const reposCreatePagesDeploymentResponseValidator = responseValidationFactory( - [ - ["200", s_page_deployment], - ["400", s_scim_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposCreatePagesDeployment)["responder"] & KoaRuntimeResponder export type ReposCreatePagesDeployment = ( params: Params< @@ -27040,22 +21373,14 @@ export type ReposCreatePagesDeployment = ( | Response<422, t_validation_error> > -const reposGetPagesDeploymentResponder = { - with200: r.with200, - with404: r.with404, +const reposGetPagesDeployment = b((r) => ({ + with200: r.with200(s_pages_deployment_status), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetPagesDeploymentResponder = - typeof reposGetPagesDeploymentResponder & KoaRuntimeResponder - -const reposGetPagesDeploymentResponseValidator = responseValidationFactory( - [ - ["200", s_pages_deployment_status], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposGetPagesDeployment)["responder"] & KoaRuntimeResponder export type ReposGetPagesDeployment = ( params: Params, @@ -27067,22 +21392,14 @@ export type ReposGetPagesDeployment = ( | Response<404, t_basic_error> > -const reposCancelPagesDeploymentResponder = { - with204: r.with204, - with404: r.with404, +const reposCancelPagesDeployment = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposCancelPagesDeploymentResponder = - typeof reposCancelPagesDeploymentResponder & KoaRuntimeResponder - -const reposCancelPagesDeploymentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposCancelPagesDeployment)["responder"] & KoaRuntimeResponder export type ReposCancelPagesDeployment = ( params: Params, @@ -27094,28 +21411,17 @@ export type ReposCancelPagesDeployment = ( | Response<404, t_basic_error> > -const reposGetPagesHealthCheckResponder = { - with200: r.with200, - with202: r.with202, - with400: r.with400, - with404: r.with404, - with422: r.with422, +const reposGetPagesHealthCheck = b((r) => ({ + with200: r.with200(s_pages_health_check), + with202: r.with202(s_empty_object), + with400: r.with400(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type ReposGetPagesHealthCheckResponder = - typeof reposGetPagesHealthCheckResponder & KoaRuntimeResponder - -const reposGetPagesHealthCheckResponseValidator = responseValidationFactory( - [ - ["200", s_pages_health_check], - ["202", s_empty_object], - ["400", z.undefined()], - ["404", s_basic_error], - ["422", z.undefined()], - ], - undefined, -) + (typeof reposGetPagesHealthCheck)["responder"] & KoaRuntimeResponder export type ReposGetPagesHealthCheck = ( params: Params, @@ -27130,25 +21436,17 @@ export type ReposGetPagesHealthCheck = ( | Response<422, void> > -const reposCheckPrivateVulnerabilityReportingResponder = { +const reposCheckPrivateVulnerabilityReporting = b((r) => ({ with200: r.with200<{ enabled: boolean - }>, - with422: r.with422, + }>(z.object({ enabled: PermissiveBoolean })), + with422: r.with422(s_scim_error), withStatus: r.withStatus, -} +})) type ReposCheckPrivateVulnerabilityReportingResponder = - typeof reposCheckPrivateVulnerabilityReportingResponder & KoaRuntimeResponder - -const reposCheckPrivateVulnerabilityReportingResponseValidator = - responseValidationFactory( - [ - ["200", z.object({ enabled: PermissiveBoolean })], - ["422", s_scim_error], - ], - undefined, - ) + (typeof reposCheckPrivateVulnerabilityReporting)["responder"] & + KoaRuntimeResponder export type ReposCheckPrivateVulnerabilityReporting = ( params: Params< @@ -27170,23 +21468,15 @@ export type ReposCheckPrivateVulnerabilityReporting = ( | Response<422, t_scim_error> > -const reposEnablePrivateVulnerabilityReportingResponder = { - with204: r.with204, - with422: r.with422, +const reposEnablePrivateVulnerabilityReporting = b((r) => ({ + with204: r.with204(z.undefined()), + with422: r.with422(s_scim_error), withStatus: r.withStatus, -} +})) type ReposEnablePrivateVulnerabilityReportingResponder = - typeof reposEnablePrivateVulnerabilityReportingResponder & KoaRuntimeResponder - -const reposEnablePrivateVulnerabilityReportingResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_scim_error], - ], - undefined, - ) + (typeof reposEnablePrivateVulnerabilityReporting)["responder"] & + KoaRuntimeResponder export type ReposEnablePrivateVulnerabilityReporting = ( params: Params< @@ -27203,25 +21493,16 @@ export type ReposEnablePrivateVulnerabilityReporting = ( | Response<422, t_scim_error> > -const reposDisablePrivateVulnerabilityReportingResponder = { - with204: r.with204, - with422: r.with422, +const reposDisablePrivateVulnerabilityReporting = b((r) => ({ + with204: r.with204(z.undefined()), + with422: r.with422(s_scim_error), withStatus: r.withStatus, -} +})) type ReposDisablePrivateVulnerabilityReportingResponder = - typeof reposDisablePrivateVulnerabilityReportingResponder & + (typeof reposDisablePrivateVulnerabilityReporting)["responder"] & KoaRuntimeResponder -const reposDisablePrivateVulnerabilityReportingResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["422", s_scim_error], - ], - undefined, - ) - export type ReposDisablePrivateVulnerabilityReporting = ( params: Params< t_ReposDisablePrivateVulnerabilityReportingParamSchema, @@ -27237,31 +21518,19 @@ export type ReposDisablePrivateVulnerabilityReporting = ( | Response<422, t_scim_error> > -const projectsListForRepoResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const projectsListForRepo = b((r) => ({ + with200: r.with200(z.array(s_project)), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type ProjectsListForRepoResponder = typeof projectsListForRepoResponder & +type ProjectsListForRepoResponder = (typeof projectsListForRepo)["responder"] & KoaRuntimeResponder -const projectsListForRepoResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project)], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type ProjectsListForRepo = ( params: Params< t_ProjectsListForRepoParamSchema, @@ -27281,30 +21550,18 @@ export type ProjectsListForRepo = ( | Response<422, t_validation_error_simple> > -const projectsCreateForRepoResponder = { - with201: r.with201, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with410: r.with410, - with422: r.with422, +const projectsCreateForRepo = b((r) => ({ + with201: r.with201(s_project), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with410: r.with410(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type ProjectsCreateForRepoResponder = typeof projectsCreateForRepoResponder & - KoaRuntimeResponder - -const projectsCreateForRepoResponseValidator = responseValidationFactory( - [ - ["201", s_project], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["410", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) +type ProjectsCreateForRepoResponder = + (typeof projectsCreateForRepo)["responder"] & KoaRuntimeResponder export type ProjectsCreateForRepo = ( params: Params< @@ -27325,25 +21582,17 @@ export type ProjectsCreateForRepo = ( | Response<422, t_validation_error_simple> > -const reposGetCustomPropertiesValuesResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const reposGetCustomPropertiesValues = b((r) => ({ + with200: r.with200( + z.array(s_custom_property_value), + ), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetCustomPropertiesValuesResponder = - typeof reposGetCustomPropertiesValuesResponder & KoaRuntimeResponder - -const reposGetCustomPropertiesValuesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_custom_property_value)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposGetCustomPropertiesValues)["responder"] & KoaRuntimeResponder export type ReposGetCustomPropertiesValues = ( params: Params, @@ -27356,29 +21605,18 @@ export type ReposGetCustomPropertiesValues = ( | Response<404, t_basic_error> > -const reposCreateOrUpdateCustomPropertiesValuesResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const reposCreateOrUpdateCustomPropertiesValues = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposCreateOrUpdateCustomPropertiesValuesResponder = - typeof reposCreateOrUpdateCustomPropertiesValuesResponder & + (typeof reposCreateOrUpdateCustomPropertiesValues)["responder"] & KoaRuntimeResponder -const reposCreateOrUpdateCustomPropertiesValuesResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type ReposCreateOrUpdateCustomPropertiesValues = ( params: Params< t_ReposCreateOrUpdateCustomPropertiesValuesParamSchema, @@ -27396,23 +21634,14 @@ export type ReposCreateOrUpdateCustomPropertiesValues = ( | Response<422, t_validation_error> > -const pullsListResponder = { - with200: r.with200, - with304: r.with304, - with422: r.with422, +const pullsList = b((r) => ({ + with200: r.with200(z.array(s_pull_request_simple)), + with304: r.with304(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type PullsListResponder = typeof pullsListResponder & KoaRuntimeResponder - -const pullsListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_pull_request_simple)], - ["304", z.undefined()], - ["422", s_validation_error], - ], - undefined, -) +type PullsListResponder = (typeof pullsList)["responder"] & KoaRuntimeResponder export type PullsList = ( params: Params, @@ -27425,23 +21654,15 @@ export type PullsList = ( | Response<422, t_validation_error> > -const pullsCreateResponder = { - with201: r.with201, - with403: r.with403, - with422: r.with422, +const pullsCreate = b((r) => ({ + with201: r.with201(s_pull_request), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type PullsCreateResponder = typeof pullsCreateResponder & KoaRuntimeResponder - -const pullsCreateResponseValidator = responseValidationFactory( - [ - ["201", s_pull_request], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type PullsCreateResponder = (typeof pullsCreate)["responder"] & + KoaRuntimeResponder export type PullsCreate = ( params: Params, @@ -27454,19 +21675,15 @@ export type PullsCreate = ( | Response<422, t_validation_error> > -const pullsListReviewCommentsForRepoResponder = { - with200: r.with200, +const pullsListReviewCommentsForRepo = b((r) => ({ + with200: r.with200( + z.array(s_pull_request_review_comment), + ), withStatus: r.withStatus, -} +})) type PullsListReviewCommentsForRepoResponder = - typeof pullsListReviewCommentsForRepoResponder & KoaRuntimeResponder - -const pullsListReviewCommentsForRepoResponseValidator = - responseValidationFactory( - [["200", z.array(s_pull_request_review_comment)]], - undefined, - ) + (typeof pullsListReviewCommentsForRepo)["responder"] & KoaRuntimeResponder export type PullsListReviewCommentsForRepo = ( params: Params< @@ -27481,22 +21698,16 @@ export type PullsListReviewCommentsForRepo = ( KoaRuntimeResponse | Response<200, t_pull_request_review_comment[]> > -const pullsGetReviewCommentResponder = { - with200: r.with200, - with404: r.with404, +const pullsGetReviewComment = b((r) => ({ + with200: r.with200( + s_pull_request_review_comment, + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type PullsGetReviewCommentResponder = typeof pullsGetReviewCommentResponder & - KoaRuntimeResponder - -const pullsGetReviewCommentResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review_comment], - ["404", s_basic_error], - ], - undefined, -) +type PullsGetReviewCommentResponder = + (typeof pullsGetReviewComment)["responder"] & KoaRuntimeResponder export type PullsGetReviewComment = ( params: Params, @@ -27508,18 +21719,15 @@ export type PullsGetReviewComment = ( | Response<404, t_basic_error> > -const pullsUpdateReviewCommentResponder = { - with200: r.with200, +const pullsUpdateReviewComment = b((r) => ({ + with200: r.with200( + s_pull_request_review_comment, + ), withStatus: r.withStatus, -} +})) type PullsUpdateReviewCommentResponder = - typeof pullsUpdateReviewCommentResponder & KoaRuntimeResponder - -const pullsUpdateReviewCommentResponseValidator = responseValidationFactory( - [["200", s_pull_request_review_comment]], - undefined, -) + (typeof pullsUpdateReviewComment)["responder"] & KoaRuntimeResponder export type PullsUpdateReviewComment = ( params: Params< @@ -27534,22 +21742,14 @@ export type PullsUpdateReviewComment = ( KoaRuntimeResponse | Response<200, t_pull_request_review_comment> > -const pullsDeleteReviewCommentResponder = { - with204: r.with204, - with404: r.with404, +const pullsDeleteReviewComment = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PullsDeleteReviewCommentResponder = - typeof pullsDeleteReviewCommentResponder & KoaRuntimeResponder - -const pullsDeleteReviewCommentResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) + (typeof pullsDeleteReviewComment)["responder"] & KoaRuntimeResponder export type PullsDeleteReviewComment = ( params: Params, @@ -27561,23 +21761,15 @@ export type PullsDeleteReviewComment = ( | Response<404, t_basic_error> > -const reactionsListForPullRequestReviewCommentResponder = { - with200: r.with200, - with404: r.with404, +const reactionsListForPullRequestReviewComment = b((r) => ({ + with200: r.with200(z.array(s_reaction)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReactionsListForPullRequestReviewCommentResponder = - typeof reactionsListForPullRequestReviewCommentResponder & KoaRuntimeResponder - -const reactionsListForPullRequestReviewCommentResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reactionsListForPullRequestReviewComment)["responder"] & + KoaRuntimeResponder export type ReactionsListForPullRequestReviewComment = ( params: Params< @@ -27594,27 +21786,17 @@ export type ReactionsListForPullRequestReviewComment = ( | Response<404, t_basic_error> > -const reactionsCreateForPullRequestReviewCommentResponder = { - with200: r.with200, - with201: r.with201, - with422: r.with422, +const reactionsCreateForPullRequestReviewComment = b((r) => ({ + with200: r.with200(s_reaction), + with201: r.with201(s_reaction), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReactionsCreateForPullRequestReviewCommentResponder = - typeof reactionsCreateForPullRequestReviewCommentResponder & + (typeof reactionsCreateForPullRequestReviewComment)["responder"] & KoaRuntimeResponder -const reactionsCreateForPullRequestReviewCommentResponseValidator = - responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, - ) - export type ReactionsCreateForPullRequestReviewComment = ( params: Params< t_ReactionsCreateForPullRequestReviewCommentParamSchema, @@ -27631,16 +21813,14 @@ export type ReactionsCreateForPullRequestReviewComment = ( | Response<422, t_validation_error> > -const reactionsDeleteForPullRequestCommentResponder = { - with204: r.with204, +const reactionsDeleteForPullRequestComment = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReactionsDeleteForPullRequestCommentResponder = - typeof reactionsDeleteForPullRequestCommentResponder & KoaRuntimeResponder - -const reactionsDeleteForPullRequestCommentResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reactionsDeleteForPullRequestComment)["responder"] & + KoaRuntimeResponder export type ReactionsDeleteForPullRequestComment = ( params: Params< @@ -27653,40 +21833,27 @@ export type ReactionsDeleteForPullRequestComment = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const pullsGetResponder = { - with200: r.with200, - with304: r.with304, - with404: r.with404, - with406: r.with406, - with500: r.with500, +const pullsGet = b((r) => ({ + with200: r.with200(s_pull_request), + with304: r.with304(z.undefined()), + with404: r.with404(s_basic_error), + with406: r.with406(s_basic_error), + with500: r.with500(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type PullsGetResponder = typeof pullsGetResponder & KoaRuntimeResponder - -const pullsGetResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request], - ["304", z.undefined()], - ["404", s_basic_error], - ["406", s_basic_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type PullsGetResponder = (typeof pullsGet)["responder"] & KoaRuntimeResponder export type PullsGet = ( params: Params, @@ -27709,23 +21876,15 @@ export type PullsGet = ( > > -const pullsUpdateResponder = { - with200: r.with200, - with403: r.with403, - with422: r.with422, +const pullsUpdate = b((r) => ({ + with200: r.with200(s_pull_request), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type PullsUpdateResponder = typeof pullsUpdateResponder & KoaRuntimeResponder +})) -const pullsUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type PullsUpdateResponder = (typeof pullsUpdate)["responder"] & + KoaRuntimeResponder export type PullsUpdate = ( params: Params< @@ -27743,44 +21902,30 @@ export type PullsUpdate = ( | Response<422, t_validation_error> > -const codespacesCreateWithPrForAuthenticatedUserResponder = { - with201: r.with201, - with202: r.with202, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const codespacesCreateWithPrForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_codespace), + with202: r.with202(s_codespace), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodespacesCreateWithPrForAuthenticatedUserResponder = - typeof codespacesCreateWithPrForAuthenticatedUserResponder & + (typeof codespacesCreateWithPrForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesCreateWithPrForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_codespace], - ["202", s_codespace], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) - export type CodespacesCreateWithPrForAuthenticatedUser = ( params: Params< t_CodespacesCreateWithPrForAuthenticatedUserParamSchema, @@ -27807,18 +21952,15 @@ export type CodespacesCreateWithPrForAuthenticatedUser = ( > > -const pullsListReviewCommentsResponder = { - with200: r.with200, +const pullsListReviewComments = b((r) => ({ + with200: r.with200( + z.array(s_pull_request_review_comment), + ), withStatus: r.withStatus, -} +})) type PullsListReviewCommentsResponder = - typeof pullsListReviewCommentsResponder & KoaRuntimeResponder - -const pullsListReviewCommentsResponseValidator = responseValidationFactory( - [["200", z.array(s_pull_request_review_comment)]], - undefined, -) + (typeof pullsListReviewComments)["responder"] & KoaRuntimeResponder export type PullsListReviewComments = ( params: Params< @@ -27833,24 +21975,17 @@ export type PullsListReviewComments = ( KoaRuntimeResponse | Response<200, t_pull_request_review_comment[]> > -const pullsCreateReviewCommentResponder = { - with201: r.with201, - with403: r.with403, - with422: r.with422, +const pullsCreateReviewComment = b((r) => ({ + with201: r.with201( + s_pull_request_review_comment, + ), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type PullsCreateReviewCommentResponder = - typeof pullsCreateReviewCommentResponder & KoaRuntimeResponder - -const pullsCreateReviewCommentResponseValidator = responseValidationFactory( - [ - ["201", s_pull_request_review_comment], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof pullsCreateReviewComment)["responder"] & KoaRuntimeResponder export type PullsCreateReviewComment = ( params: Params< @@ -27868,23 +22003,16 @@ export type PullsCreateReviewComment = ( | Response<422, t_validation_error> > -const pullsCreateReplyForReviewCommentResponder = { - with201: r.with201, - with404: r.with404, +const pullsCreateReplyForReviewComment = b((r) => ({ + with201: r.with201( + s_pull_request_review_comment, + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PullsCreateReplyForReviewCommentResponder = - typeof pullsCreateReplyForReviewCommentResponder & KoaRuntimeResponder - -const pullsCreateReplyForReviewCommentResponseValidator = - responseValidationFactory( - [ - ["201", s_pull_request_review_comment], - ["404", s_basic_error], - ], - undefined, - ) + (typeof pullsCreateReplyForReviewComment)["responder"] & KoaRuntimeResponder export type PullsCreateReplyForReviewComment = ( params: Params< @@ -27901,19 +22029,14 @@ export type PullsCreateReplyForReviewComment = ( | Response<404, t_basic_error> > -const pullsListCommitsResponder = { - with200: r.with200, +const pullsListCommits = b((r) => ({ + with200: r.with200(z.array(s_commit)), withStatus: r.withStatus, -} +})) -type PullsListCommitsResponder = typeof pullsListCommitsResponder & +type PullsListCommitsResponder = (typeof pullsListCommits)["responder"] & KoaRuntimeResponder -const pullsListCommitsResponseValidator = responseValidationFactory( - [["200", z.array(s_commit)]], - undefined, -) - export type PullsListCommits = ( params: Params< t_PullsListCommitsParamSchema, @@ -27925,38 +22048,27 @@ export type PullsListCommits = ( ctx: RouterContext, ) => Promise | Response<200, t_commit[]>> -const pullsListFilesResponder = { - with200: r.with200, - with422: r.with422, - with500: r.with500, +const pullsListFiles = b((r) => ({ + with200: r.with200(z.array(s_diff_entry)), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type PullsListFilesResponder = typeof pullsListFilesResponder & +type PullsListFilesResponder = (typeof pullsListFiles)["responder"] & KoaRuntimeResponder -const pullsListFilesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_diff_entry)], - ["422", s_validation_error], - ["500", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) - export type PullsListFiles = ( params: Params< t_PullsListFilesParamSchema, @@ -27981,23 +22093,15 @@ export type PullsListFiles = ( > > -const pullsCheckIfMergedResponder = { - with204: r.with204, - with404: r.with404, +const pullsCheckIfMerged = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) -type PullsCheckIfMergedResponder = typeof pullsCheckIfMergedResponder & +type PullsCheckIfMergedResponder = (typeof pullsCheckIfMerged)["responder"] & KoaRuntimeResponder -const pullsCheckIfMergedResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, -) - export type PullsCheckIfMerged = ( params: Params, respond: PullsCheckIfMergedResponder, @@ -28006,47 +22110,34 @@ export type PullsCheckIfMerged = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -const pullsMergeResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const pullsMerge = b((r) => ({ + with200: r.with200(s_pull_request_merge_result), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with405: r.with405<{ documentation_url?: string message?: string - }>, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), with409: r.with409<{ documentation_url?: string message?: string - }>, - with422: r.with422, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type PullsMergeResponder = typeof pullsMergeResponder & KoaRuntimeResponder +})) -const pullsMergeResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_merge_result], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "405", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - [ - "409", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["422", s_validation_error], - ], - undefined, -) +type PullsMergeResponder = (typeof pullsMerge)["responder"] & + KoaRuntimeResponder export type PullsMerge = ( params: Params< @@ -28079,18 +22170,15 @@ export type PullsMerge = ( | Response<422, t_validation_error> > -const pullsListRequestedReviewersResponder = { - with200: r.with200, +const pullsListRequestedReviewers = b((r) => ({ + with200: r.with200( + s_pull_request_review_request, + ), withStatus: r.withStatus, -} +})) type PullsListRequestedReviewersResponder = - typeof pullsListRequestedReviewersResponder & KoaRuntimeResponder - -const pullsListRequestedReviewersResponseValidator = responseValidationFactory( - [["200", s_pull_request_review_request]], - undefined, -) + (typeof pullsListRequestedReviewers)["responder"] & KoaRuntimeResponder export type PullsListRequestedReviewers = ( params: Params, @@ -28100,24 +22188,15 @@ export type PullsListRequestedReviewers = ( KoaRuntimeResponse | Response<200, t_pull_request_review_request> > -const pullsRequestReviewersResponder = { - with201: r.with201, - with403: r.with403, - with422: r.with422, +const pullsRequestReviewers = b((r) => ({ + with201: r.with201(s_pull_request_simple), + with403: r.with403(s_basic_error), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) -type PullsRequestReviewersResponder = typeof pullsRequestReviewersResponder & - KoaRuntimeResponder - -const pullsRequestReviewersResponseValidator = responseValidationFactory( - [ - ["201", s_pull_request_simple], - ["403", s_basic_error], - ["422", z.undefined()], - ], - undefined, -) +type PullsRequestReviewersResponder = + (typeof pullsRequestReviewers)["responder"] & KoaRuntimeResponder export type PullsRequestReviewers = ( params: Params< @@ -28135,23 +22214,14 @@ export type PullsRequestReviewers = ( | Response<422, void> > -const pullsRemoveRequestedReviewersResponder = { - with200: r.with200, - with422: r.with422, +const pullsRemoveRequestedReviewers = b((r) => ({ + with200: r.with200(s_pull_request_simple), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type PullsRemoveRequestedReviewersResponder = - typeof pullsRemoveRequestedReviewersResponder & KoaRuntimeResponder - -const pullsRemoveRequestedReviewersResponseValidator = - responseValidationFactory( - [ - ["200", s_pull_request_simple], - ["422", s_validation_error], - ], - undefined, - ) + (typeof pullsRemoveRequestedReviewers)["responder"] & KoaRuntimeResponder export type PullsRemoveRequestedReviewers = ( params: Params< @@ -28168,19 +22238,14 @@ export type PullsRemoveRequestedReviewers = ( | Response<422, t_validation_error> > -const pullsListReviewsResponder = { - with200: r.with200, +const pullsListReviews = b((r) => ({ + with200: r.with200(z.array(s_pull_request_review)), withStatus: r.withStatus, -} +})) -type PullsListReviewsResponder = typeof pullsListReviewsResponder & +type PullsListReviewsResponder = (typeof pullsListReviews)["responder"] & KoaRuntimeResponder -const pullsListReviewsResponseValidator = responseValidationFactory( - [["200", z.array(s_pull_request_review)]], - undefined, -) - export type PullsListReviews = ( params: Params< t_PullsListReviewsParamSchema, @@ -28194,25 +22259,16 @@ export type PullsListReviews = ( KoaRuntimeResponse | Response<200, t_pull_request_review[]> > -const pullsCreateReviewResponder = { - with200: r.with200, - with403: r.with403, - with422: r.with422, +const pullsCreateReview = b((r) => ({ + with200: r.with200(s_pull_request_review), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type PullsCreateReviewResponder = typeof pullsCreateReviewResponder & +type PullsCreateReviewResponder = (typeof pullsCreateReview)["responder"] & KoaRuntimeResponder -const pullsCreateReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["403", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type PullsCreateReview = ( params: Params< t_PullsCreateReviewParamSchema, @@ -28229,23 +22285,15 @@ export type PullsCreateReview = ( | Response<422, t_validation_error_simple> > -const pullsGetReviewResponder = { - with200: r.with200, - with404: r.with404, +const pullsGetReview = b((r) => ({ + with200: r.with200(s_pull_request_review), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type PullsGetReviewResponder = typeof pullsGetReviewResponder & +type PullsGetReviewResponder = (typeof pullsGetReview)["responder"] & KoaRuntimeResponder -const pullsGetReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["404", s_basic_error], - ], - undefined, -) - export type PullsGetReview = ( params: Params, respond: PullsGetReviewResponder, @@ -28256,23 +22304,15 @@ export type PullsGetReview = ( | Response<404, t_basic_error> > -const pullsUpdateReviewResponder = { - with200: r.with200, - with422: r.with422, +const pullsUpdateReview = b((r) => ({ + with200: r.with200(s_pull_request_review), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type PullsUpdateReviewResponder = typeof pullsUpdateReviewResponder & +type PullsUpdateReviewResponder = (typeof pullsUpdateReview)["responder"] & KoaRuntimeResponder -const pullsUpdateReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["422", s_validation_error_simple], - ], - undefined, -) - export type PullsUpdateReview = ( params: Params< t_PullsUpdateReviewParamSchema, @@ -28288,24 +22328,15 @@ export type PullsUpdateReview = ( | Response<422, t_validation_error_simple> > -const pullsDeletePendingReviewResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const pullsDeletePendingReview = b((r) => ({ + with200: r.with200(s_pull_request_review), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type PullsDeletePendingReviewResponder = - typeof pullsDeletePendingReviewResponder & KoaRuntimeResponder - -const pullsDeletePendingReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) + (typeof pullsDeletePendingReview)["responder"] & KoaRuntimeResponder export type PullsDeletePendingReview = ( params: Params, @@ -28318,22 +22349,14 @@ export type PullsDeletePendingReview = ( | Response<422, t_validation_error_simple> > -const pullsListCommentsForReviewResponder = { - with200: r.with200, - with404: r.with404, +const pullsListCommentsForReview = b((r) => ({ + with200: r.with200(z.array(s_review_comment)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PullsListCommentsForReviewResponder = - typeof pullsListCommentsForReviewResponder & KoaRuntimeResponder - -const pullsListCommentsForReviewResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_review_comment)], - ["404", s_basic_error], - ], - undefined, -) + (typeof pullsListCommentsForReview)["responder"] & KoaRuntimeResponder export type PullsListCommentsForReview = ( params: Params< @@ -28350,25 +22373,16 @@ export type PullsListCommentsForReview = ( | Response<404, t_basic_error> > -const pullsDismissReviewResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const pullsDismissReview = b((r) => ({ + with200: r.with200(s_pull_request_review), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type PullsDismissReviewResponder = typeof pullsDismissReviewResponder & +type PullsDismissReviewResponder = (typeof pullsDismissReview)["responder"] & KoaRuntimeResponder -const pullsDismissReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type PullsDismissReview = ( params: Params< t_PullsDismissReviewParamSchema, @@ -28385,27 +22399,17 @@ export type PullsDismissReview = ( | Response<422, t_validation_error_simple> > -const pullsSubmitReviewResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const pullsSubmitReview = b((r) => ({ + with200: r.with200(s_pull_request_review), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type PullsSubmitReviewResponder = typeof pullsSubmitReviewResponder & +type PullsSubmitReviewResponder = (typeof pullsSubmitReview)["responder"] & KoaRuntimeResponder -const pullsSubmitReviewResponseValidator = responseValidationFactory( - [ - ["200", s_pull_request_review], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) - export type PullsSubmitReview = ( params: Params< t_PullsSubmitReviewParamSchema, @@ -28423,31 +22427,19 @@ export type PullsSubmitReview = ( | Response<422, t_validation_error_simple> > -const pullsUpdateBranchResponder = { +const pullsUpdateBranch = b((r) => ({ with202: r.with202<{ message?: string url?: string - }>, - with403: r.with403, - with422: r.with422, + }>(z.object({ message: z.string().optional(), url: z.string().optional() })), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type PullsUpdateBranchResponder = typeof pullsUpdateBranchResponder & +type PullsUpdateBranchResponder = (typeof pullsUpdateBranch)["responder"] & KoaRuntimeResponder -const pullsUpdateBranchResponseValidator = responseValidationFactory( - [ - [ - "202", - z.object({ message: z.string().optional(), url: z.string().optional() }), - ], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type PullsUpdateBranch = ( params: Params< t_PullsUpdateBranchParamSchema, @@ -28470,27 +22462,17 @@ export type PullsUpdateBranch = ( | Response<422, t_validation_error> > -const reposGetReadmeResponder = { - with200: r.with200, - with304: r.with304, - with404: r.with404, - with422: r.with422, +const reposGetReadme = b((r) => ({ + with200: r.with200(s_content_file), + with304: r.with304(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposGetReadmeResponder = typeof reposGetReadmeResponder & +type ReposGetReadmeResponder = (typeof reposGetReadme)["responder"] & KoaRuntimeResponder -const reposGetReadmeResponseValidator = responseValidationFactory( - [ - ["200", s_content_file], - ["304", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type ReposGetReadme = ( params: Params< t_ReposGetReadmeParamSchema, @@ -28508,24 +22490,15 @@ export type ReposGetReadme = ( | Response<422, t_validation_error> > -const reposGetReadmeInDirectoryResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const reposGetReadmeInDirectory = b((r) => ({ + with200: r.with200(s_content_file), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposGetReadmeInDirectoryResponder = - typeof reposGetReadmeInDirectoryResponder & KoaRuntimeResponder - -const reposGetReadmeInDirectoryResponseValidator = responseValidationFactory( - [ - ["200", s_content_file], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof reposGetReadmeInDirectory)["responder"] & KoaRuntimeResponder export type ReposGetReadmeInDirectory = ( params: Params< @@ -28543,23 +22516,15 @@ export type ReposGetReadmeInDirectory = ( | Response<422, t_validation_error> > -const reposListReleasesResponder = { - with200: r.with200, - with404: r.with404, +const reposListReleases = b((r) => ({ + with200: r.with200(z.array(s_release)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposListReleasesResponder = typeof reposListReleasesResponder & +type ReposListReleasesResponder = (typeof reposListReleases)["responder"] & KoaRuntimeResponder -const reposListReleasesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_release)], - ["404", s_basic_error], - ], - undefined, -) - export type ReposListReleases = ( params: Params< t_ReposListReleasesParamSchema, @@ -28575,25 +22540,16 @@ export type ReposListReleases = ( | Response<404, t_basic_error> > -const reposCreateReleaseResponder = { - with201: r.with201, - with404: r.with404, - with422: r.with422, +const reposCreateRelease = b((r) => ({ + with201: r.with201(s_release), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposCreateReleaseResponder = typeof reposCreateReleaseResponder & +type ReposCreateReleaseResponder = (typeof reposCreateRelease)["responder"] & KoaRuntimeResponder -const reposCreateReleaseResponseValidator = responseValidationFactory( - [ - ["201", s_release], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type ReposCreateRelease = ( params: Params< t_ReposCreateReleaseParamSchema, @@ -28610,24 +22566,15 @@ export type ReposCreateRelease = ( | Response<422, t_validation_error> > -const reposGetReleaseAssetResponder = { - with200: r.with200, - with302: r.with302, - with404: r.with404, +const reposGetReleaseAsset = b((r) => ({ + with200: r.with200(s_release_asset), + with302: r.with302(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetReleaseAssetResponder = typeof reposGetReleaseAssetResponder & - KoaRuntimeResponder - -const reposGetReleaseAssetResponseValidator = responseValidationFactory( - [ - ["200", s_release_asset], - ["302", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) +type ReposGetReleaseAssetResponder = + (typeof reposGetReleaseAsset)["responder"] & KoaRuntimeResponder export type ReposGetReleaseAsset = ( params: Params, @@ -28640,18 +22587,13 @@ export type ReposGetReleaseAsset = ( | Response<404, t_basic_error> > -const reposUpdateReleaseAssetResponder = { - with200: r.with200, +const reposUpdateReleaseAsset = b((r) => ({ + with200: r.with200(s_release_asset), withStatus: r.withStatus, -} +})) type ReposUpdateReleaseAssetResponder = - typeof reposUpdateReleaseAssetResponder & KoaRuntimeResponder - -const reposUpdateReleaseAssetResponseValidator = responseValidationFactory( - [["200", s_release_asset]], - undefined, -) + (typeof reposUpdateReleaseAsset)["responder"] & KoaRuntimeResponder export type ReposUpdateReleaseAsset = ( params: Params< @@ -28664,18 +22606,13 @@ export type ReposUpdateReleaseAsset = ( ctx: RouterContext, ) => Promise | Response<200, t_release_asset>> -const reposDeleteReleaseAssetResponder = { - with204: r.with204, +const reposDeleteReleaseAsset = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDeleteReleaseAssetResponder = - typeof reposDeleteReleaseAssetResponder & KoaRuntimeResponder - -const reposDeleteReleaseAssetResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof reposDeleteReleaseAsset)["responder"] & KoaRuntimeResponder export type ReposDeleteReleaseAsset = ( params: Params, @@ -28683,22 +22620,14 @@ export type ReposDeleteReleaseAsset = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposGenerateReleaseNotesResponder = { - with200: r.with200, - with404: r.with404, +const reposGenerateReleaseNotes = b((r) => ({ + with200: r.with200(s_release_notes_content), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGenerateReleaseNotesResponder = - typeof reposGenerateReleaseNotesResponder & KoaRuntimeResponder - -const reposGenerateReleaseNotesResponseValidator = responseValidationFactory( - [ - ["200", s_release_notes_content], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposGenerateReleaseNotes)["responder"] & KoaRuntimeResponder export type ReposGenerateReleaseNotes = ( params: Params< @@ -28715,18 +22644,13 @@ export type ReposGenerateReleaseNotes = ( | Response<404, t_basic_error> > -const reposGetLatestReleaseResponder = { - with200: r.with200, +const reposGetLatestRelease = b((r) => ({ + with200: r.with200(s_release), withStatus: r.withStatus, -} - -type ReposGetLatestReleaseResponder = typeof reposGetLatestReleaseResponder & - KoaRuntimeResponder +})) -const reposGetLatestReleaseResponseValidator = responseValidationFactory( - [["200", s_release]], - undefined, -) +type ReposGetLatestReleaseResponder = + (typeof reposGetLatestRelease)["responder"] & KoaRuntimeResponder export type ReposGetLatestRelease = ( params: Params, @@ -28734,22 +22658,14 @@ export type ReposGetLatestRelease = ( ctx: RouterContext, ) => Promise | Response<200, t_release>> -const reposGetReleaseByTagResponder = { - with200: r.with200, - with404: r.with404, +const reposGetReleaseByTag = b((r) => ({ + with200: r.with200(s_release), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type ReposGetReleaseByTagResponder = typeof reposGetReleaseByTagResponder & - KoaRuntimeResponder +})) -const reposGetReleaseByTagResponseValidator = responseValidationFactory( - [ - ["200", s_release], - ["404", s_basic_error], - ], - undefined, -) +type ReposGetReleaseByTagResponder = + (typeof reposGetReleaseByTag)["responder"] & KoaRuntimeResponder export type ReposGetReleaseByTag = ( params: Params, @@ -28761,23 +22677,15 @@ export type ReposGetReleaseByTag = ( | Response<404, t_basic_error> > -const reposGetReleaseResponder = { - with200: r.with200, - with401: r.with401, +const reposGetRelease = b((r) => ({ + with200: r.with200(s_release), + with401: r.with401(z.undefined()), withStatus: r.withStatus, -} +})) -type ReposGetReleaseResponder = typeof reposGetReleaseResponder & +type ReposGetReleaseResponder = (typeof reposGetRelease)["responder"] & KoaRuntimeResponder -const reposGetReleaseResponseValidator = responseValidationFactory( - [ - ["200", s_release], - ["401", z.undefined()], - ], - undefined, -) - export type ReposGetRelease = ( params: Params, respond: ReposGetReleaseResponder, @@ -28786,23 +22694,15 @@ export type ReposGetRelease = ( KoaRuntimeResponse | Response<200, t_release> | Response<401, void> > -const reposUpdateReleaseResponder = { - with200: r.with200, - with404: r.with404, +const reposUpdateRelease = b((r) => ({ + with200: r.with200(s_release), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposUpdateReleaseResponder = typeof reposUpdateReleaseResponder & +type ReposUpdateReleaseResponder = (typeof reposUpdateRelease)["responder"] & KoaRuntimeResponder -const reposUpdateReleaseResponseValidator = responseValidationFactory( - [ - ["200", s_release], - ["404", s_basic_error], - ], - undefined, -) - export type ReposUpdateRelease = ( params: Params< t_ReposUpdateReleaseParamSchema, @@ -28818,37 +22718,27 @@ export type ReposUpdateRelease = ( | Response<404, t_basic_error> > -const reposDeleteReleaseResponder = { - with204: r.with204, +const reposDeleteRelease = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type ReposDeleteReleaseResponder = typeof reposDeleteReleaseResponder & +type ReposDeleteReleaseResponder = (typeof reposDeleteRelease)["responder"] & KoaRuntimeResponder -const reposDeleteReleaseResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) - export type ReposDeleteRelease = ( params: Params, respond: ReposDeleteReleaseResponder, ctx: RouterContext, ) => Promise | Response<204, void>> -const reposListReleaseAssetsResponder = { - with200: r.with200, +const reposListReleaseAssets = b((r) => ({ + with200: r.with200(z.array(s_release_asset)), withStatus: r.withStatus, -} - -type ReposListReleaseAssetsResponder = typeof reposListReleaseAssetsResponder & - KoaRuntimeResponder +})) -const reposListReleaseAssetsResponseValidator = responseValidationFactory( - [["200", z.array(s_release_asset)]], - undefined, -) +type ReposListReleaseAssetsResponder = + (typeof reposListReleaseAssets)["responder"] & KoaRuntimeResponder export type ReposListReleaseAssets = ( params: Params< @@ -28861,22 +22751,14 @@ export type ReposListReleaseAssets = ( ctx: RouterContext, ) => Promise | Response<200, t_release_asset[]>> -const reposUploadReleaseAssetResponder = { - with201: r.with201, - with422: r.with422, +const reposUploadReleaseAsset = b((r) => ({ + with201: r.with201(s_release_asset), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type ReposUploadReleaseAssetResponder = - typeof reposUploadReleaseAssetResponder & KoaRuntimeResponder - -const reposUploadReleaseAssetResponseValidator = responseValidationFactory( - [ - ["201", s_release_asset], - ["422", z.undefined()], - ], - undefined, -) + (typeof reposUploadReleaseAsset)["responder"] & KoaRuntimeResponder export type ReposUploadReleaseAsset = ( params: Params< @@ -28893,22 +22775,14 @@ export type ReposUploadReleaseAsset = ( | Response<422, void> > -const reactionsListForReleaseResponder = { - with200: r.with200, - with404: r.with404, +const reactionsListForRelease = b((r) => ({ + with200: r.with200(z.array(s_reaction)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReactionsListForReleaseResponder = - typeof reactionsListForReleaseResponder & KoaRuntimeResponder - -const reactionsListForReleaseResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_reaction)], - ["404", s_basic_error], - ], - undefined, -) + (typeof reactionsListForRelease)["responder"] & KoaRuntimeResponder export type ReactionsListForRelease = ( params: Params< @@ -28925,24 +22799,15 @@ export type ReactionsListForRelease = ( | Response<404, t_basic_error> > -const reactionsCreateForReleaseResponder = { - with200: r.with200, - with201: r.with201, - with422: r.with422, +const reactionsCreateForRelease = b((r) => ({ + with200: r.with200(s_reaction), + with201: r.with201(s_reaction), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReactionsCreateForReleaseResponder = - typeof reactionsCreateForReleaseResponder & KoaRuntimeResponder - -const reactionsCreateForReleaseResponseValidator = responseValidationFactory( - [ - ["200", s_reaction], - ["201", s_reaction], - ["422", s_validation_error], - ], - undefined, -) + (typeof reactionsCreateForRelease)["responder"] & KoaRuntimeResponder export type ReactionsCreateForRelease = ( params: Params< @@ -28960,18 +22825,13 @@ export type ReactionsCreateForRelease = ( | Response<422, t_validation_error> > -const reactionsDeleteForReleaseResponder = { - with204: r.with204, +const reactionsDeleteForRelease = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReactionsDeleteForReleaseResponder = - typeof reactionsDeleteForReleaseResponder & KoaRuntimeResponder - -const reactionsDeleteForReleaseResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof reactionsDeleteForRelease)["responder"] & KoaRuntimeResponder export type ReactionsDeleteForRelease = ( params: Params, @@ -28979,19 +22839,16 @@ export type ReactionsDeleteForRelease = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposGetBranchRulesResponder = { - with200: r.with200, +const reposGetBranchRules = b((r) => ({ + with200: r.with200( + z.array(s_repository_rule_detailed), + ), withStatus: r.withStatus, -} +})) -type ReposGetBranchRulesResponder = typeof reposGetBranchRulesResponder & +type ReposGetBranchRulesResponder = (typeof reposGetBranchRules)["responder"] & KoaRuntimeResponder -const reposGetBranchRulesResponseValidator = responseValidationFactory( - [["200", z.array(s_repository_rule_detailed)]], - undefined, -) - export type ReposGetBranchRules = ( params: Params< t_ReposGetBranchRulesParamSchema, @@ -29005,24 +22862,15 @@ export type ReposGetBranchRules = ( KoaRuntimeResponse | Response<200, t_repository_rule_detailed[]> > -const reposGetRepoRulesetsResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetRepoRulesets = b((r) => ({ + with200: r.with200(z.array(s_repository_ruleset)), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetRepoRulesetsResponder = typeof reposGetRepoRulesetsResponder & - KoaRuntimeResponder - -const reposGetRepoRulesetsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_repository_ruleset)], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposGetRepoRulesetsResponder = + (typeof reposGetRepoRulesets)["responder"] & KoaRuntimeResponder export type ReposGetRepoRulesets = ( params: Params< @@ -29040,24 +22888,15 @@ export type ReposGetRepoRulesets = ( | Response<500, t_basic_error> > -const reposCreateRepoRulesetResponder = { - with201: r.with201, - with404: r.with404, - with500: r.with500, +const reposCreateRepoRuleset = b((r) => ({ + with201: r.with201(s_repository_ruleset), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposCreateRepoRulesetResponder = typeof reposCreateRepoRulesetResponder & - KoaRuntimeResponder - -const reposCreateRepoRulesetResponseValidator = responseValidationFactory( - [ - ["201", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposCreateRepoRulesetResponder = + (typeof reposCreateRepoRuleset)["responder"] & KoaRuntimeResponder export type ReposCreateRepoRuleset = ( params: Params< @@ -29075,24 +22914,15 @@ export type ReposCreateRepoRuleset = ( | Response<500, t_basic_error> > -const reposGetRepoRuleSuitesResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetRepoRuleSuites = b((r) => ({ + with200: r.with200(s_rule_suites), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} - -type ReposGetRepoRuleSuitesResponder = typeof reposGetRepoRuleSuitesResponder & - KoaRuntimeResponder +})) -const reposGetRepoRuleSuitesResponseValidator = responseValidationFactory( - [ - ["200", s_rule_suites], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposGetRepoRuleSuitesResponder = + (typeof reposGetRepoRuleSuites)["responder"] & KoaRuntimeResponder export type ReposGetRepoRuleSuites = ( params: Params< @@ -29110,24 +22940,15 @@ export type ReposGetRepoRuleSuites = ( | Response<500, t_basic_error> > -const reposGetRepoRuleSuiteResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetRepoRuleSuite = b((r) => ({ + with200: r.with200(s_rule_suite), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} - -type ReposGetRepoRuleSuiteResponder = typeof reposGetRepoRuleSuiteResponder & - KoaRuntimeResponder +})) -const reposGetRepoRuleSuiteResponseValidator = responseValidationFactory( - [ - ["200", s_rule_suite], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposGetRepoRuleSuiteResponder = + (typeof reposGetRepoRuleSuite)["responder"] & KoaRuntimeResponder export type ReposGetRepoRuleSuite = ( params: Params, @@ -29140,25 +22961,16 @@ export type ReposGetRepoRuleSuite = ( | Response<500, t_basic_error> > -const reposGetRepoRulesetResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetRepoRuleset = b((r) => ({ + with200: r.with200(s_repository_ruleset), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetRepoRulesetResponder = typeof reposGetRepoRulesetResponder & +type ReposGetRepoRulesetResponder = (typeof reposGetRepoRuleset)["responder"] & KoaRuntimeResponder -const reposGetRepoRulesetResponseValidator = responseValidationFactory( - [ - ["200", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) - export type ReposGetRepoRuleset = ( params: Params< t_ReposGetRepoRulesetParamSchema, @@ -29175,24 +22987,15 @@ export type ReposGetRepoRuleset = ( | Response<500, t_basic_error> > -const reposUpdateRepoRulesetResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposUpdateRepoRuleset = b((r) => ({ + with200: r.with200(s_repository_ruleset), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} - -type ReposUpdateRepoRulesetResponder = typeof reposUpdateRepoRulesetResponder & - KoaRuntimeResponder +})) -const reposUpdateRepoRulesetResponseValidator = responseValidationFactory( - [ - ["200", s_repository_ruleset], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposUpdateRepoRulesetResponder = + (typeof reposUpdateRepoRuleset)["responder"] & KoaRuntimeResponder export type ReposUpdateRepoRuleset = ( params: Params< @@ -29210,24 +23013,15 @@ export type ReposUpdateRepoRuleset = ( | Response<500, t_basic_error> > -const reposDeleteRepoRulesetResponder = { - with204: r.with204, - with404: r.with404, - with500: r.with500, +const reposDeleteRepoRuleset = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposDeleteRepoRulesetResponder = typeof reposDeleteRepoRulesetResponder & - KoaRuntimeResponder - -const reposDeleteRepoRulesetResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) +type ReposDeleteRepoRulesetResponder = + (typeof reposDeleteRepoRuleset)["responder"] & KoaRuntimeResponder export type ReposDeleteRepoRuleset = ( params: Params, @@ -29240,24 +23034,15 @@ export type ReposDeleteRepoRuleset = ( | Response<500, t_basic_error> > -const reposGetRepoRulesetHistoryResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetRepoRulesetHistory = b((r) => ({ + with200: r.with200(z.array(s_ruleset_version)), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetRepoRulesetHistoryResponder = - typeof reposGetRepoRulesetHistoryResponder & KoaRuntimeResponder - -const reposGetRepoRulesetHistoryResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_ruleset_version)], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof reposGetRepoRulesetHistory)["responder"] & KoaRuntimeResponder export type ReposGetRepoRulesetHistory = ( params: Params< @@ -29275,24 +23060,17 @@ export type ReposGetRepoRulesetHistory = ( | Response<500, t_basic_error> > -const reposGetRepoRulesetVersionResponder = { - with200: r.with200, - with404: r.with404, - with500: r.with500, +const reposGetRepoRulesetVersion = b((r) => ({ + with200: r.with200( + s_ruleset_version_with_state, + ), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetRepoRulesetVersionResponder = - typeof reposGetRepoRulesetVersionResponder & KoaRuntimeResponder - -const reposGetRepoRulesetVersionResponseValidator = responseValidationFactory( - [ - ["200", s_ruleset_version_with_state], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, -) + (typeof reposGetRepoRulesetVersion)["responder"] & KoaRuntimeResponder export type ReposGetRepoRulesetVersion = ( params: Params, @@ -29305,36 +23083,27 @@ export type ReposGetRepoRulesetVersion = ( | Response<500, t_basic_error> > -const secretScanningListAlertsForRepoResponder = { - with200: r.with200, - with404: r.with404, +const secretScanningListAlertsForRepo = b((r) => ({ + with200: r.with200( + z.array(s_secret_scanning_alert), + ), + with404: r.with404(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type SecretScanningListAlertsForRepoResponder = - typeof secretScanningListAlertsForRepoResponder & KoaRuntimeResponder - -const secretScanningListAlertsForRepoResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_secret_scanning_alert)], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof secretScanningListAlertsForRepo)["responder"] & KoaRuntimeResponder export type SecretScanningListAlertsForRepo = ( params: Params< @@ -29359,37 +23128,26 @@ export type SecretScanningListAlertsForRepo = ( > > -const secretScanningGetAlertResponder = { - with200: r.with200, - with304: r.with304, - with404: r.with404, +const secretScanningGetAlert = b((r) => ({ + with200: r.with200(s_secret_scanning_alert), + with304: r.with304(z.undefined()), + with404: r.with404(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type SecretScanningGetAlertResponder = typeof secretScanningGetAlertResponder & - KoaRuntimeResponder - -const secretScanningGetAlertResponseValidator = responseValidationFactory( - [ - ["200", s_secret_scanning_alert], - ["304", z.undefined()], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type SecretScanningGetAlertResponder = + (typeof secretScanningGetAlert)["responder"] & KoaRuntimeResponder export type SecretScanningGetAlert = ( params: Params, @@ -29410,39 +23168,27 @@ export type SecretScanningGetAlert = ( > > -const secretScanningUpdateAlertResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, - with422: r.with422, +const secretScanningUpdateAlert = b((r) => ({ + with200: r.with200(s_secret_scanning_alert), + with400: r.with400(z.undefined()), + with404: r.with404(z.undefined()), + with422: r.with422(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type SecretScanningUpdateAlertResponder = - typeof secretScanningUpdateAlertResponder & KoaRuntimeResponder - -const secretScanningUpdateAlertResponseValidator = responseValidationFactory( - [ - ["200", s_secret_scanning_alert], - ["400", z.undefined()], - ["404", z.undefined()], - ["422", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof secretScanningUpdateAlert)["responder"] & KoaRuntimeResponder export type SecretScanningUpdateAlert = ( params: Params< @@ -29469,36 +23215,28 @@ export type SecretScanningUpdateAlert = ( > > -const secretScanningListLocationsForAlertResponder = { - with200: r.with200, - with404: r.with404, +const secretScanningListLocationsForAlert = b((r) => ({ + with200: r.with200( + z.array(s_secret_scanning_location), + ), + with404: r.with404(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type SecretScanningListLocationsForAlertResponder = - typeof secretScanningListLocationsForAlertResponder & KoaRuntimeResponder - -const secretScanningListLocationsForAlertResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_secret_scanning_location)], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof secretScanningListLocationsForAlert)["responder"] & + KoaRuntimeResponder export type SecretScanningListLocationsForAlert = ( params: Params< @@ -29523,40 +23261,30 @@ export type SecretScanningListLocationsForAlert = ( > > -const secretScanningCreatePushProtectionBypassResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const secretScanningCreatePushProtectionBypass = b((r) => ({ + with200: r.with200( + s_secret_scanning_push_protection_bypass, + ), + with403: r.with403(z.undefined()), + with404: r.with404(z.undefined()), + with422: r.with422(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type SecretScanningCreatePushProtectionBypassResponder = - typeof secretScanningCreatePushProtectionBypassResponder & KoaRuntimeResponder - -const secretScanningCreatePushProtectionBypassResponseValidator = - responseValidationFactory( - [ - ["200", s_secret_scanning_push_protection_bypass], - ["403", z.undefined()], - ["404", z.undefined()], - ["422", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof secretScanningCreatePushProtectionBypass)["responder"] & + KoaRuntimeResponder export type SecretScanningCreatePushProtectionBypass = ( params: Params< @@ -29583,35 +23311,27 @@ export type SecretScanningCreatePushProtectionBypass = ( > > -const secretScanningGetScanHistoryResponder = { - with200: r.with200, - with404: r.with404, +const secretScanningGetScanHistory = b((r) => ({ + with200: r.with200( + s_secret_scanning_scan_history, + ), + with404: r.with404(z.undefined()), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type SecretScanningGetScanHistoryResponder = - typeof secretScanningGetScanHistoryResponder & KoaRuntimeResponder - -const secretScanningGetScanHistoryResponseValidator = responseValidationFactory( - [ - ["200", s_secret_scanning_scan_history], - ["404", z.undefined()], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof secretScanningGetScanHistory)["responder"] & KoaRuntimeResponder export type SecretScanningGetScanHistory = ( params: Params, @@ -29631,27 +23351,17 @@ export type SecretScanningGetScanHistory = ( > > -const securityAdvisoriesListRepositoryAdvisoriesResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, +const securityAdvisoriesListRepositoryAdvisories = b((r) => ({ + with200: r.with200(z.array(s_repository_advisory)), + with400: r.with400(s_scim_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesListRepositoryAdvisoriesResponder = - typeof securityAdvisoriesListRepositoryAdvisoriesResponder & + (typeof securityAdvisoriesListRepositoryAdvisories)["responder"] & KoaRuntimeResponder -const securityAdvisoriesListRepositoryAdvisoriesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_repository_advisory)], - ["400", s_scim_error], - ["404", s_basic_error], - ], - undefined, - ) - export type SecurityAdvisoriesListRepositoryAdvisories = ( params: Params< t_SecurityAdvisoriesListRepositoryAdvisoriesParamSchema, @@ -29668,29 +23378,18 @@ export type SecurityAdvisoriesListRepositoryAdvisories = ( | Response<404, t_basic_error> > -const securityAdvisoriesCreateRepositoryAdvisoryResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const securityAdvisoriesCreateRepositoryAdvisory = b((r) => ({ + with201: r.with201(s_repository_advisory), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesCreateRepositoryAdvisoryResponder = - typeof securityAdvisoriesCreateRepositoryAdvisoryResponder & + (typeof securityAdvisoriesCreateRepositoryAdvisory)["responder"] & KoaRuntimeResponder -const securityAdvisoriesCreateRepositoryAdvisoryResponseValidator = - responseValidationFactory( - [ - ["201", s_repository_advisory], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type SecurityAdvisoriesCreateRepositoryAdvisory = ( params: Params< t_SecurityAdvisoriesCreateRepositoryAdvisoryParamSchema, @@ -29708,29 +23407,18 @@ export type SecurityAdvisoriesCreateRepositoryAdvisory = ( | Response<422, t_validation_error> > -const securityAdvisoriesCreatePrivateVulnerabilityReportResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const securityAdvisoriesCreatePrivateVulnerabilityReport = b((r) => ({ + with201: r.with201(s_repository_advisory), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesCreatePrivateVulnerabilityReportResponder = - typeof securityAdvisoriesCreatePrivateVulnerabilityReportResponder & + (typeof securityAdvisoriesCreatePrivateVulnerabilityReport)["responder"] & KoaRuntimeResponder -const securityAdvisoriesCreatePrivateVulnerabilityReportResponseValidator = - responseValidationFactory( - [ - ["201", s_repository_advisory], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type SecurityAdvisoriesCreatePrivateVulnerabilityReport = ( params: Params< t_SecurityAdvisoriesCreatePrivateVulnerabilityReportParamSchema, @@ -29748,25 +23436,16 @@ export type SecurityAdvisoriesCreatePrivateVulnerabilityReport = ( | Response<422, t_validation_error> > -const securityAdvisoriesGetRepositoryAdvisoryResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const securityAdvisoriesGetRepositoryAdvisory = b((r) => ({ + with200: r.with200(s_repository_advisory), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesGetRepositoryAdvisoryResponder = - typeof securityAdvisoriesGetRepositoryAdvisoryResponder & KoaRuntimeResponder - -const securityAdvisoriesGetRepositoryAdvisoryResponseValidator = - responseValidationFactory( - [ - ["200", s_repository_advisory], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof securityAdvisoriesGetRepositoryAdvisory)["responder"] & + KoaRuntimeResponder export type SecurityAdvisoriesGetRepositoryAdvisory = ( params: Params< @@ -29784,29 +23463,18 @@ export type SecurityAdvisoriesGetRepositoryAdvisory = ( | Response<404, t_basic_error> > -const securityAdvisoriesUpdateRepositoryAdvisoryResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const securityAdvisoriesUpdateRepositoryAdvisory = b((r) => ({ + with200: r.with200(s_repository_advisory), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesUpdateRepositoryAdvisoryResponder = - typeof securityAdvisoriesUpdateRepositoryAdvisoryResponder & + (typeof securityAdvisoriesUpdateRepositoryAdvisory)["responder"] & KoaRuntimeResponder -const securityAdvisoriesUpdateRepositoryAdvisoryResponseValidator = - responseValidationFactory( - [ - ["200", s_repository_advisory], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type SecurityAdvisoriesUpdateRepositoryAdvisory = ( params: Params< t_SecurityAdvisoriesUpdateRepositoryAdvisoryParamSchema, @@ -29824,33 +23492,21 @@ export type SecurityAdvisoriesUpdateRepositoryAdvisory = ( | Response<422, t_validation_error> > -const securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder = { +const securityAdvisoriesCreateRepositoryAdvisoryCveRequest = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with422: r.with422, + }>(z.record(z.unknown())), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder = - typeof securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder & + (typeof securityAdvisoriesCreateRepositoryAdvisoryCveRequest)["responder"] & KoaRuntimeResponder -const securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest = ( params: Params< t_SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestParamSchema, @@ -29874,28 +23530,17 @@ export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest = ( | Response<422, t_validation_error> > -const securityAdvisoriesCreateForkResponder = { - with202: r.with202, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const securityAdvisoriesCreateFork = b((r) => ({ + with202: r.with202(s_full_repository), + with400: r.with400(s_scim_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type SecurityAdvisoriesCreateForkResponder = - typeof securityAdvisoriesCreateForkResponder & KoaRuntimeResponder - -const securityAdvisoriesCreateForkResponseValidator = responseValidationFactory( - [ - ["202", s_full_repository], - ["400", s_scim_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof securityAdvisoriesCreateFork)["responder"] & KoaRuntimeResponder export type SecurityAdvisoriesCreateFork = ( params: Params, @@ -29910,23 +23555,16 @@ export type SecurityAdvisoriesCreateFork = ( | Response<422, t_validation_error> > -const activityListStargazersForRepoResponder = { - with200: r.with200, - with422: r.with422, +const activityListStargazersForRepo = b((r) => ({ + with200: r.with200( + z.union([z.array(s_simple_user), z.array(s_stargazer)]), + ), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ActivityListStargazersForRepoResponder = - typeof activityListStargazersForRepoResponder & KoaRuntimeResponder - -const activityListStargazersForRepoResponseValidator = - responseValidationFactory( - [ - ["200", z.union([z.array(s_simple_user), z.array(s_stargazer)])], - ["422", s_validation_error], - ], - undefined, - ) + (typeof activityListStargazersForRepo)["responder"] & KoaRuntimeResponder export type ActivityListStargazersForRepo = ( params: Params< @@ -29943,28 +23581,18 @@ export type ActivityListStargazersForRepo = ( | Response<422, t_validation_error> > -const reposGetCodeFrequencyStatsResponder = { - with200: r.with200, +const reposGetCodeFrequencyStats = b((r) => ({ + with200: r.with200(z.array(s_code_frequency_stat)), with202: r.with202<{ [key: string]: unknown | undefined - }>, - with204: r.with204, - with422: r.with422, + }>(z.record(z.unknown())), + with204: r.with204(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type ReposGetCodeFrequencyStatsResponder = - typeof reposGetCodeFrequencyStatsResponder & KoaRuntimeResponder - -const reposGetCodeFrequencyStatsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_code_frequency_stat)], - ["202", z.record(z.unknown())], - ["204", z.undefined()], - ["422", z.undefined()], - ], - undefined, -) + (typeof reposGetCodeFrequencyStats)["responder"] & KoaRuntimeResponder export type ReposGetCodeFrequencyStats = ( params: Params, @@ -29983,26 +23611,17 @@ export type ReposGetCodeFrequencyStats = ( | Response<422, void> > -const reposGetCommitActivityStatsResponder = { - with200: r.with200, +const reposGetCommitActivityStats = b((r) => ({ + with200: r.with200(z.array(s_commit_activity)), with202: r.with202<{ [key: string]: unknown | undefined - }>, - with204: r.with204, + }>(z.record(z.unknown())), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposGetCommitActivityStatsResponder = - typeof reposGetCommitActivityStatsResponder & KoaRuntimeResponder - -const reposGetCommitActivityStatsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_commit_activity)], - ["202", z.record(z.unknown())], - ["204", z.undefined()], - ], - undefined, -) + (typeof reposGetCommitActivityStats)["responder"] & KoaRuntimeResponder export type ReposGetCommitActivityStats = ( params: Params, @@ -30020,26 +23639,17 @@ export type ReposGetCommitActivityStats = ( | Response<204, void> > -const reposGetContributorsStatsResponder = { - with200: r.with200, +const reposGetContributorsStats = b((r) => ({ + with200: r.with200(z.array(s_contributor_activity)), with202: r.with202<{ [key: string]: unknown | undefined - }>, - with204: r.with204, + }>(z.record(z.unknown())), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposGetContributorsStatsResponder = - typeof reposGetContributorsStatsResponder & KoaRuntimeResponder - -const reposGetContributorsStatsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_contributor_activity)], - ["202", z.record(z.unknown())], - ["204", z.undefined()], - ], - undefined, -) + (typeof reposGetContributorsStats)["responder"] & KoaRuntimeResponder export type ReposGetContributorsStats = ( params: Params, @@ -30057,22 +23667,14 @@ export type ReposGetContributorsStats = ( | Response<204, void> > -const reposGetParticipationStatsResponder = { - with200: r.with200, - with404: r.with404, +const reposGetParticipationStats = b((r) => ({ + with200: r.with200(s_participation_stats), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposGetParticipationStatsResponder = - typeof reposGetParticipationStatsResponder & KoaRuntimeResponder - -const reposGetParticipationStatsResponseValidator = responseValidationFactory( - [ - ["200", s_participation_stats], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposGetParticipationStats)["responder"] & KoaRuntimeResponder export type ReposGetParticipationStats = ( params: Params, @@ -30084,22 +23686,14 @@ export type ReposGetParticipationStats = ( | Response<404, t_basic_error> > -const reposGetPunchCardStatsResponder = { - with200: r.with200, - with204: r.with204, +const reposGetPunchCardStats = b((r) => ({ + with200: r.with200(z.array(s_code_frequency_stat)), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type ReposGetPunchCardStatsResponder = typeof reposGetPunchCardStatsResponder & - KoaRuntimeResponder - -const reposGetPunchCardStatsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_code_frequency_stat)], - ["204", z.undefined()], - ], - undefined, -) +type ReposGetPunchCardStatsResponder = + (typeof reposGetPunchCardStats)["responder"] & KoaRuntimeResponder export type ReposGetPunchCardStats = ( params: Params, @@ -30111,18 +23705,13 @@ export type ReposGetPunchCardStats = ( | Response<204, void> > -const reposCreateCommitStatusResponder = { - with201: r.with201, +const reposCreateCommitStatus = b((r) => ({ + with201: r.with201(s_status), withStatus: r.withStatus, -} +})) type ReposCreateCommitStatusResponder = - typeof reposCreateCommitStatusResponder & KoaRuntimeResponder - -const reposCreateCommitStatusResponseValidator = responseValidationFactory( - [["201", s_status]], - undefined, -) + (typeof reposCreateCommitStatus)["responder"] & KoaRuntimeResponder export type ReposCreateCommitStatus = ( params: Params< @@ -30135,18 +23724,13 @@ export type ReposCreateCommitStatus = ( ctx: RouterContext, ) => Promise | Response<201, t_status>> -const activityListWatchersForRepoResponder = { - with200: r.with200, +const activityListWatchersForRepo = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), withStatus: r.withStatus, -} +})) type ActivityListWatchersForRepoResponder = - typeof activityListWatchersForRepoResponder & KoaRuntimeResponder - -const activityListWatchersForRepoResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, -) + (typeof activityListWatchersForRepo)["responder"] & KoaRuntimeResponder export type ActivityListWatchersForRepo = ( params: Params< @@ -30159,24 +23743,15 @@ export type ActivityListWatchersForRepo = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -const activityGetRepoSubscriptionResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const activityGetRepoSubscription = b((r) => ({ + with200: r.with200(s_repository_subscription), + with403: r.with403(s_basic_error), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type ActivityGetRepoSubscriptionResponder = - typeof activityGetRepoSubscriptionResponder & KoaRuntimeResponder - -const activityGetRepoSubscriptionResponseValidator = responseValidationFactory( - [ - ["200", s_repository_subscription], - ["403", s_basic_error], - ["404", z.undefined()], - ], - undefined, -) + (typeof activityGetRepoSubscription)["responder"] & KoaRuntimeResponder export type ActivityGetRepoSubscription = ( params: Params, @@ -30189,18 +23764,13 @@ export type ActivityGetRepoSubscription = ( | Response<404, void> > -const activitySetRepoSubscriptionResponder = { - with200: r.with200, +const activitySetRepoSubscription = b((r) => ({ + with200: r.with200(s_repository_subscription), withStatus: r.withStatus, -} +})) type ActivitySetRepoSubscriptionResponder = - typeof activitySetRepoSubscriptionResponder & KoaRuntimeResponder - -const activitySetRepoSubscriptionResponseValidator = responseValidationFactory( - [["200", s_repository_subscription]], - undefined, -) + (typeof activitySetRepoSubscription)["responder"] & KoaRuntimeResponder export type ActivitySetRepoSubscription = ( params: Params< @@ -30215,16 +23785,13 @@ export type ActivitySetRepoSubscription = ( KoaRuntimeResponse | Response<200, t_repository_subscription> > -const activityDeleteRepoSubscriptionResponder = { - with204: r.with204, +const activityDeleteRepoSubscription = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ActivityDeleteRepoSubscriptionResponder = - typeof activityDeleteRepoSubscriptionResponder & KoaRuntimeResponder - -const activityDeleteRepoSubscriptionResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof activityDeleteRepoSubscription)["responder"] & KoaRuntimeResponder export type ActivityDeleteRepoSubscription = ( params: Params, @@ -30232,19 +23799,14 @@ export type ActivityDeleteRepoSubscription = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposListTagsResponder = { - with200: r.with200, +const reposListTags = b((r) => ({ + with200: r.with200(z.array(s_tag)), withStatus: r.withStatus, -} +})) -type ReposListTagsResponder = typeof reposListTagsResponder & +type ReposListTagsResponder = (typeof reposListTags)["responder"] & KoaRuntimeResponder -const reposListTagsResponseValidator = responseValidationFactory( - [["200", z.array(s_tag)]], - undefined, -) - export type ReposListTags = ( params: Params< t_ReposListTagsParamSchema, @@ -30256,24 +23818,15 @@ export type ReposListTags = ( ctx: RouterContext, ) => Promise | Response<200, t_tag[]>> -const reposListTagProtectionResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const reposListTagProtection = b((r) => ({ + with200: r.with200(z.array(s_tag_protection)), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposListTagProtectionResponder = typeof reposListTagProtectionResponder & - KoaRuntimeResponder - -const reposListTagProtectionResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_tag_protection)], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type ReposListTagProtectionResponder = + (typeof reposListTagProtection)["responder"] & KoaRuntimeResponder export type ReposListTagProtection = ( params: Params, @@ -30286,24 +23839,15 @@ export type ReposListTagProtection = ( | Response<404, t_basic_error> > -const reposCreateTagProtectionResponder = { - with201: r.with201, - with403: r.with403, - with404: r.with404, +const reposCreateTagProtection = b((r) => ({ + with201: r.with201(s_tag_protection), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposCreateTagProtectionResponder = - typeof reposCreateTagProtectionResponder & KoaRuntimeResponder - -const reposCreateTagProtectionResponseValidator = responseValidationFactory( - [ - ["201", s_tag_protection], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposCreateTagProtection)["responder"] & KoaRuntimeResponder export type ReposCreateTagProtection = ( params: Params< @@ -30321,24 +23865,15 @@ export type ReposCreateTagProtection = ( | Response<404, t_basic_error> > -const reposDeleteTagProtectionResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, +const reposDeleteTagProtection = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposDeleteTagProtectionResponder = - typeof reposDeleteTagProtectionResponder & KoaRuntimeResponder - -const reposDeleteTagProtectionResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof reposDeleteTagProtection)["responder"] & KoaRuntimeResponder export type ReposDeleteTagProtection = ( params: Params, @@ -30351,18 +23886,13 @@ export type ReposDeleteTagProtection = ( | Response<404, t_basic_error> > -const reposDownloadTarballArchiveResponder = { - with302: r.with302, +const reposDownloadTarballArchive = b((r) => ({ + with302: r.with302(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDownloadTarballArchiveResponder = - typeof reposDownloadTarballArchiveResponder & KoaRuntimeResponder - -const reposDownloadTarballArchiveResponseValidator = responseValidationFactory( - [["302", z.undefined()]], - undefined, -) + (typeof reposDownloadTarballArchive)["responder"] & KoaRuntimeResponder export type ReposDownloadTarballArchive = ( params: Params, @@ -30370,23 +23900,15 @@ export type ReposDownloadTarballArchive = ( ctx: RouterContext, ) => Promise | Response<302, void>> -const reposListTeamsResponder = { - with200: r.with200, - with404: r.with404, +const reposListTeams = b((r) => ({ + with200: r.with200(z.array(s_team)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposListTeamsResponder = typeof reposListTeamsResponder & +type ReposListTeamsResponder = (typeof reposListTeams)["responder"] & KoaRuntimeResponder -const reposListTeamsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team)], - ["404", s_basic_error], - ], - undefined, -) - export type ReposListTeams = ( params: Params< t_ReposListTeamsParamSchema, @@ -30402,23 +23924,15 @@ export type ReposListTeams = ( | Response<404, t_basic_error> > -const reposGetAllTopicsResponder = { - with200: r.with200, - with404: r.with404, +const reposGetAllTopics = b((r) => ({ + with200: r.with200(s_topic), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetAllTopicsResponder = typeof reposGetAllTopicsResponder & +type ReposGetAllTopicsResponder = (typeof reposGetAllTopics)["responder"] & KoaRuntimeResponder -const reposGetAllTopicsResponseValidator = responseValidationFactory( - [ - ["200", s_topic], - ["404", s_basic_error], - ], - undefined, -) - export type ReposGetAllTopics = ( params: Params< t_ReposGetAllTopicsParamSchema, @@ -30434,24 +23948,15 @@ export type ReposGetAllTopics = ( | Response<404, t_basic_error> > -const reposReplaceAllTopicsResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const reposReplaceAllTopics = b((r) => ({ + with200: r.with200(s_topic), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) -type ReposReplaceAllTopicsResponder = typeof reposReplaceAllTopicsResponder & - KoaRuntimeResponder - -const reposReplaceAllTopicsResponseValidator = responseValidationFactory( - [ - ["200", s_topic], - ["404", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, -) +type ReposReplaceAllTopicsResponder = + (typeof reposReplaceAllTopics)["responder"] & KoaRuntimeResponder export type ReposReplaceAllTopics = ( params: Params< @@ -30469,23 +23974,15 @@ export type ReposReplaceAllTopics = ( | Response<422, t_validation_error_simple> > -const reposGetClonesResponder = { - with200: r.with200, - with403: r.with403, +const reposGetClones = b((r) => ({ + with200: r.with200(s_clone_traffic), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetClonesResponder = typeof reposGetClonesResponder & +type ReposGetClonesResponder = (typeof reposGetClones)["responder"] & KoaRuntimeResponder -const reposGetClonesResponseValidator = responseValidationFactory( - [ - ["200", s_clone_traffic], - ["403", s_basic_error], - ], - undefined, -) - export type ReposGetClones = ( params: Params< t_ReposGetClonesParamSchema, @@ -30501,23 +23998,15 @@ export type ReposGetClones = ( | Response<403, t_basic_error> > -const reposGetTopPathsResponder = { - with200: r.with200, - with403: r.with403, +const reposGetTopPaths = b((r) => ({ + with200: r.with200(z.array(s_content_traffic)), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetTopPathsResponder = typeof reposGetTopPathsResponder & +type ReposGetTopPathsResponder = (typeof reposGetTopPaths)["responder"] & KoaRuntimeResponder -const reposGetTopPathsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_content_traffic)], - ["403", s_basic_error], - ], - undefined, -) - export type ReposGetTopPaths = ( params: Params, respond: ReposGetTopPathsResponder, @@ -30528,22 +24017,14 @@ export type ReposGetTopPaths = ( | Response<403, t_basic_error> > -const reposGetTopReferrersResponder = { - with200: r.with200, - with403: r.with403, +const reposGetTopReferrers = b((r) => ({ + with200: r.with200(z.array(s_referrer_traffic)), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} - -type ReposGetTopReferrersResponder = typeof reposGetTopReferrersResponder & - KoaRuntimeResponder +})) -const reposGetTopReferrersResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_referrer_traffic)], - ["403", s_basic_error], - ], - undefined, -) +type ReposGetTopReferrersResponder = + (typeof reposGetTopReferrers)["responder"] & KoaRuntimeResponder export type ReposGetTopReferrers = ( params: Params, @@ -30555,23 +24036,15 @@ export type ReposGetTopReferrers = ( | Response<403, t_basic_error> > -const reposGetViewsResponder = { - with200: r.with200, - with403: r.with403, +const reposGetViews = b((r) => ({ + with200: r.with200(s_view_traffic), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) -type ReposGetViewsResponder = typeof reposGetViewsResponder & +type ReposGetViewsResponder = (typeof reposGetViews)["responder"] & KoaRuntimeResponder -const reposGetViewsResponseValidator = responseValidationFactory( - [ - ["200", s_view_traffic], - ["403", s_basic_error], - ], - undefined, -) - export type ReposGetViews = ( params: Params< t_ReposGetViewsParamSchema, @@ -30587,19 +24060,14 @@ export type ReposGetViews = ( | Response<403, t_basic_error> > -const reposTransferResponder = { - with202: r.with202, +const reposTransfer = b((r) => ({ + with202: r.with202(s_minimal_repository), withStatus: r.withStatus, -} +})) -type ReposTransferResponder = typeof reposTransferResponder & +type ReposTransferResponder = (typeof reposTransfer)["responder"] & KoaRuntimeResponder -const reposTransferResponseValidator = responseValidationFactory( - [["202", s_minimal_repository]], - undefined, -) - export type ReposTransfer = ( params: Params< t_ReposTransferParamSchema, @@ -30611,23 +24079,14 @@ export type ReposTransfer = ( ctx: RouterContext, ) => Promise | Response<202, t_minimal_repository>> -const reposCheckVulnerabilityAlertsResponder = { - with204: r.with204, - with404: r.with404, +const reposCheckVulnerabilityAlerts = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type ReposCheckVulnerabilityAlertsResponder = - typeof reposCheckVulnerabilityAlertsResponder & KoaRuntimeResponder - -const reposCheckVulnerabilityAlertsResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) + (typeof reposCheckVulnerabilityAlerts)["responder"] & KoaRuntimeResponder export type ReposCheckVulnerabilityAlerts = ( params: Params, @@ -30637,16 +24096,13 @@ export type ReposCheckVulnerabilityAlerts = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -const reposEnableVulnerabilityAlertsResponder = { - with204: r.with204, +const reposEnableVulnerabilityAlerts = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposEnableVulnerabilityAlertsResponder = - typeof reposEnableVulnerabilityAlertsResponder & KoaRuntimeResponder - -const reposEnableVulnerabilityAlertsResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reposEnableVulnerabilityAlerts)["responder"] & KoaRuntimeResponder export type ReposEnableVulnerabilityAlerts = ( params: Params, @@ -30654,16 +24110,13 @@ export type ReposEnableVulnerabilityAlerts = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposDisableVulnerabilityAlertsResponder = { - with204: r.with204, +const reposDisableVulnerabilityAlerts = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDisableVulnerabilityAlertsResponder = - typeof reposDisableVulnerabilityAlertsResponder & KoaRuntimeResponder - -const reposDisableVulnerabilityAlertsResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof reposDisableVulnerabilityAlerts)["responder"] & KoaRuntimeResponder export type ReposDisableVulnerabilityAlerts = ( params: Params< @@ -30676,18 +24129,13 @@ export type ReposDisableVulnerabilityAlerts = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reposDownloadZipballArchiveResponder = { - with302: r.with302, +const reposDownloadZipballArchive = b((r) => ({ + with302: r.with302(z.undefined()), withStatus: r.withStatus, -} +})) type ReposDownloadZipballArchiveResponder = - typeof reposDownloadZipballArchiveResponder & KoaRuntimeResponder - -const reposDownloadZipballArchiveResponseValidator = responseValidationFactory( - [["302", z.undefined()]], - undefined, -) + (typeof reposDownloadZipballArchive)["responder"] & KoaRuntimeResponder export type ReposDownloadZipballArchive = ( params: Params, @@ -30695,18 +24143,13 @@ export type ReposDownloadZipballArchive = ( ctx: RouterContext, ) => Promise | Response<302, void>> -const reposCreateUsingTemplateResponder = { - with201: r.with201, +const reposCreateUsingTemplate = b((r) => ({ + with201: r.with201(s_full_repository), withStatus: r.withStatus, -} +})) type ReposCreateUsingTemplateResponder = - typeof reposCreateUsingTemplateResponder & KoaRuntimeResponder - -const reposCreateUsingTemplateResponseValidator = responseValidationFactory( - [["201", s_full_repository]], - undefined, -) + (typeof reposCreateUsingTemplate)["responder"] & KoaRuntimeResponder export type ReposCreateUsingTemplate = ( params: Params< @@ -30719,25 +24162,16 @@ export type ReposCreateUsingTemplate = ( ctx: RouterContext, ) => Promise | Response<201, t_full_repository>> -const reposListPublicResponder = { - with200: r.with200, - with304: r.with304, - with422: r.with422, +const reposListPublic = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), + with304: r.with304(z.undefined()), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ReposListPublicResponder = typeof reposListPublicResponder & +type ReposListPublicResponder = (typeof reposListPublic)["responder"] & KoaRuntimeResponder -const reposListPublicResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["304", z.undefined()], - ["422", s_validation_error], - ], - undefined, -) - export type ReposListPublic = ( params: Params, respond: ReposListPublicResponder, @@ -30749,49 +24183,37 @@ export type ReposListPublic = ( | Response<422, t_validation_error> > -const searchCodeResponder = { +const searchCode = b((r) => ({ with200: r.with200<{ incomplete_results: boolean items: t_code_search_result_item[] total_count: number - }>, - with304: r.with304, - with403: r.with403, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_code_search_result_item), + }), + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type SearchCodeResponder = typeof searchCodeResponder & KoaRuntimeResponder - -const searchCodeResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_code_search_result_item), - }), - ], - ["304", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type SearchCodeResponder = (typeof searchCode)["responder"] & + KoaRuntimeResponder export type SearchCode = ( params: Params, @@ -30820,34 +24242,25 @@ export type SearchCode = ( > > -const searchCommitsResponder = { +const searchCommits = b((r) => ({ with200: r.with200<{ incomplete_results: boolean items: t_commit_search_result_item[] total_count: number - }>, - with304: r.with304, + }>( + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_commit_search_result_item), + }), + ), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} +})) -type SearchCommitsResponder = typeof searchCommitsResponder & +type SearchCommitsResponder = (typeof searchCommits)["responder"] & KoaRuntimeResponder -const searchCommitsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_commit_search_result_item), - }), - ], - ["304", z.undefined()], - ], - undefined, -) - export type SearchCommits = ( params: Params, respond: SearchCommitsResponder, @@ -30865,50 +24278,37 @@ export type SearchCommits = ( | Response<304, void> > -const searchIssuesAndPullRequestsResponder = { +const searchIssuesAndPullRequests = b((r) => ({ with200: r.with200<{ incomplete_results: boolean items: t_issue_search_result_item[] total_count: number - }>, - with304: r.with304, - with403: r.with403, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_issue_search_result_item), + }), + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type SearchIssuesAndPullRequestsResponder = - typeof searchIssuesAndPullRequestsResponder & KoaRuntimeResponder - -const searchIssuesAndPullRequestsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_issue_search_result_item), - }), - ], - ["304", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) + (typeof searchIssuesAndPullRequests)["responder"] & KoaRuntimeResponder export type SearchIssuesAndPullRequests = ( params: Params, @@ -30937,38 +24337,27 @@ export type SearchIssuesAndPullRequests = ( > > -const searchLabelsResponder = { +const searchLabels = b((r) => ({ with200: r.with200<{ incomplete_results: boolean items: t_label_search_result_item[] total_count: number - }>, - with304: r.with304, - with403: r.with403, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_label_search_result_item), + }), + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type SearchLabelsResponder = typeof searchLabelsResponder & KoaRuntimeResponder - -const searchLabelsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_label_search_result_item), - }), - ], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type SearchLabelsResponder = (typeof searchLabels)["responder"] & + KoaRuntimeResponder export type SearchLabels = ( params: Params, @@ -30990,47 +24379,36 @@ export type SearchLabels = ( | Response<422, t_validation_error> > -const searchReposResponder = { +const searchRepos = b((r) => ({ with200: r.with200<{ incomplete_results: boolean items: t_repo_search_result_item[] total_count: number - }>, - with304: r.with304, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_repo_search_result_item), + }), + ), + with304: r.with304(z.undefined()), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} - -type SearchReposResponder = typeof searchReposResponder & KoaRuntimeResponder +})) -const searchReposResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_repo_search_result_item), - }), - ], - ["304", z.undefined()], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type SearchReposResponder = (typeof searchRepos)["responder"] & + KoaRuntimeResponder export type SearchRepos = ( params: Params, @@ -31058,32 +24436,24 @@ export type SearchRepos = ( > > -const searchTopicsResponder = { +const searchTopics = b((r) => ({ with200: r.with200<{ incomplete_results: boolean items: t_topic_search_result_item[] total_count: number - }>, - with304: r.with304, + }>( + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_topic_search_result_item), + }), + ), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} - -type SearchTopicsResponder = typeof searchTopicsResponder & KoaRuntimeResponder +})) -const searchTopicsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_topic_search_result_item), - }), - ], - ["304", z.undefined()], - ], - undefined, -) +type SearchTopicsResponder = (typeof searchTopics)["responder"] & + KoaRuntimeResponder export type SearchTopics = ( params: Params, @@ -31102,47 +24472,36 @@ export type SearchTopics = ( | Response<304, void> > -const searchUsersResponder = { +const searchUsers = b((r) => ({ with200: r.with200<{ incomplete_results: boolean items: t_user_search_result_item[] total_count: number - }>, - with304: r.with304, - with422: r.with422, + }>( + z.object({ + total_count: z.coerce.number(), + incomplete_results: PermissiveBoolean, + items: z.array(s_user_search_result_item), + }), + ), + with304: r.with304(z.undefined()), + with422: r.with422(s_validation_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) -type SearchUsersResponder = typeof searchUsersResponder & KoaRuntimeResponder - -const searchUsersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - incomplete_results: PermissiveBoolean, - items: z.array(s_user_search_result_item), - }), - ], - ["304", z.undefined()], - ["422", s_validation_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, -) +type SearchUsersResponder = (typeof searchUsers)["responder"] & + KoaRuntimeResponder export type SearchUsers = ( params: Params, @@ -31170,23 +24529,15 @@ export type SearchUsers = ( > > -const teamsGetLegacyResponder = { - with200: r.with200, - with404: r.with404, +const teamsGetLegacy = b((r) => ({ + with200: r.with200(s_team_full), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type TeamsGetLegacyResponder = typeof teamsGetLegacyResponder & +type TeamsGetLegacyResponder = (typeof teamsGetLegacy)["responder"] & KoaRuntimeResponder -const teamsGetLegacyResponseValidator = responseValidationFactory( - [ - ["200", s_team_full], - ["404", s_basic_error], - ], - undefined, -) - export type TeamsGetLegacy = ( params: Params, respond: TeamsGetLegacyResponder, @@ -31197,29 +24548,18 @@ export type TeamsGetLegacy = ( | Response<404, t_basic_error> > -const teamsUpdateLegacyResponder = { - with200: r.with200, - with201: r.with201, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const teamsUpdateLegacy = b((r) => ({ + with200: r.with200(s_team_full), + with201: r.with201(s_team_full), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type TeamsUpdateLegacyResponder = typeof teamsUpdateLegacyResponder & +type TeamsUpdateLegacyResponder = (typeof teamsUpdateLegacy)["responder"] & KoaRuntimeResponder -const teamsUpdateLegacyResponseValidator = responseValidationFactory( - [ - ["200", s_team_full], - ["201", s_team_full], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type TeamsUpdateLegacy = ( params: Params< t_TeamsUpdateLegacyParamSchema, @@ -31238,25 +24578,16 @@ export type TeamsUpdateLegacy = ( | Response<422, t_validation_error> > -const teamsDeleteLegacyResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const teamsDeleteLegacy = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type TeamsDeleteLegacyResponder = typeof teamsDeleteLegacyResponder & +type TeamsDeleteLegacyResponder = (typeof teamsDeleteLegacy)["responder"] & KoaRuntimeResponder -const teamsDeleteLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) - export type TeamsDeleteLegacy = ( params: Params, respond: TeamsDeleteLegacyResponder, @@ -31268,18 +24599,13 @@ export type TeamsDeleteLegacy = ( | Response<422, t_validation_error> > -const teamsListDiscussionsLegacyResponder = { - with200: r.with200, +const teamsListDiscussionsLegacy = b((r) => ({ + with200: r.with200(z.array(s_team_discussion)), withStatus: r.withStatus, -} +})) type TeamsListDiscussionsLegacyResponder = - typeof teamsListDiscussionsLegacyResponder & KoaRuntimeResponder - -const teamsListDiscussionsLegacyResponseValidator = responseValidationFactory( - [["200", z.array(s_team_discussion)]], - undefined, -) + (typeof teamsListDiscussionsLegacy)["responder"] & KoaRuntimeResponder export type TeamsListDiscussionsLegacy = ( params: Params< @@ -31292,18 +24618,13 @@ export type TeamsListDiscussionsLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion[]>> -const teamsCreateDiscussionLegacyResponder = { - with201: r.with201, +const teamsCreateDiscussionLegacy = b((r) => ({ + with201: r.with201(s_team_discussion), withStatus: r.withStatus, -} +})) type TeamsCreateDiscussionLegacyResponder = - typeof teamsCreateDiscussionLegacyResponder & KoaRuntimeResponder - -const teamsCreateDiscussionLegacyResponseValidator = responseValidationFactory( - [["201", s_team_discussion]], - undefined, -) + (typeof teamsCreateDiscussionLegacy)["responder"] & KoaRuntimeResponder export type TeamsCreateDiscussionLegacy = ( params: Params< @@ -31316,18 +24637,13 @@ export type TeamsCreateDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<201, t_team_discussion>> -const teamsGetDiscussionLegacyResponder = { - with200: r.with200, +const teamsGetDiscussionLegacy = b((r) => ({ + with200: r.with200(s_team_discussion), withStatus: r.withStatus, -} +})) type TeamsGetDiscussionLegacyResponder = - typeof teamsGetDiscussionLegacyResponder & KoaRuntimeResponder - -const teamsGetDiscussionLegacyResponseValidator = responseValidationFactory( - [["200", s_team_discussion]], - undefined, -) + (typeof teamsGetDiscussionLegacy)["responder"] & KoaRuntimeResponder export type TeamsGetDiscussionLegacy = ( params: Params, @@ -31335,18 +24651,13 @@ export type TeamsGetDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> -const teamsUpdateDiscussionLegacyResponder = { - with200: r.with200, +const teamsUpdateDiscussionLegacy = b((r) => ({ + with200: r.with200(s_team_discussion), withStatus: r.withStatus, -} +})) type TeamsUpdateDiscussionLegacyResponder = - typeof teamsUpdateDiscussionLegacyResponder & KoaRuntimeResponder - -const teamsUpdateDiscussionLegacyResponseValidator = responseValidationFactory( - [["200", s_team_discussion]], - undefined, -) + (typeof teamsUpdateDiscussionLegacy)["responder"] & KoaRuntimeResponder export type TeamsUpdateDiscussionLegacy = ( params: Params< @@ -31359,18 +24670,13 @@ export type TeamsUpdateDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> -const teamsDeleteDiscussionLegacyResponder = { - with204: r.with204, +const teamsDeleteDiscussionLegacy = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsDeleteDiscussionLegacyResponder = - typeof teamsDeleteDiscussionLegacyResponder & KoaRuntimeResponder - -const teamsDeleteDiscussionLegacyResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) + (typeof teamsDeleteDiscussionLegacy)["responder"] & KoaRuntimeResponder export type TeamsDeleteDiscussionLegacy = ( params: Params, @@ -31378,19 +24684,15 @@ export type TeamsDeleteDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const teamsListDiscussionCommentsLegacyResponder = { - with200: r.with200, +const teamsListDiscussionCommentsLegacy = b((r) => ({ + with200: r.with200( + z.array(s_team_discussion_comment), + ), withStatus: r.withStatus, -} +})) type TeamsListDiscussionCommentsLegacyResponder = - typeof teamsListDiscussionCommentsLegacyResponder & KoaRuntimeResponder - -const teamsListDiscussionCommentsLegacyResponseValidator = - responseValidationFactory( - [["200", z.array(s_team_discussion_comment)]], - undefined, - ) + (typeof teamsListDiscussionCommentsLegacy)["responder"] & KoaRuntimeResponder export type TeamsListDiscussionCommentsLegacy = ( params: Params< @@ -31405,16 +24707,13 @@ export type TeamsListDiscussionCommentsLegacy = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment[]> > -const teamsCreateDiscussionCommentLegacyResponder = { - with201: r.with201, +const teamsCreateDiscussionCommentLegacy = b((r) => ({ + with201: r.with201(s_team_discussion_comment), withStatus: r.withStatus, -} +})) type TeamsCreateDiscussionCommentLegacyResponder = - typeof teamsCreateDiscussionCommentLegacyResponder & KoaRuntimeResponder - -const teamsCreateDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["201", s_team_discussion_comment]], undefined) + (typeof teamsCreateDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder export type TeamsCreateDiscussionCommentLegacy = ( params: Params< @@ -31429,16 +24728,13 @@ export type TeamsCreateDiscussionCommentLegacy = ( KoaRuntimeResponse | Response<201, t_team_discussion_comment> > -const teamsGetDiscussionCommentLegacyResponder = { - with200: r.with200, +const teamsGetDiscussionCommentLegacy = b((r) => ({ + with200: r.with200(s_team_discussion_comment), withStatus: r.withStatus, -} +})) type TeamsGetDiscussionCommentLegacyResponder = - typeof teamsGetDiscussionCommentLegacyResponder & KoaRuntimeResponder - -const teamsGetDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["200", s_team_discussion_comment]], undefined) + (typeof teamsGetDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder export type TeamsGetDiscussionCommentLegacy = ( params: Params< @@ -31453,16 +24749,13 @@ export type TeamsGetDiscussionCommentLegacy = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment> > -const teamsUpdateDiscussionCommentLegacyResponder = { - with200: r.with200, +const teamsUpdateDiscussionCommentLegacy = b((r) => ({ + with200: r.with200(s_team_discussion_comment), withStatus: r.withStatus, -} +})) type TeamsUpdateDiscussionCommentLegacyResponder = - typeof teamsUpdateDiscussionCommentLegacyResponder & KoaRuntimeResponder - -const teamsUpdateDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["200", s_team_discussion_comment]], undefined) + (typeof teamsUpdateDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder export type TeamsUpdateDiscussionCommentLegacy = ( params: Params< @@ -31477,16 +24770,13 @@ export type TeamsUpdateDiscussionCommentLegacy = ( KoaRuntimeResponse | Response<200, t_team_discussion_comment> > -const teamsDeleteDiscussionCommentLegacyResponder = { - with204: r.with204, +const teamsDeleteDiscussionCommentLegacy = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsDeleteDiscussionCommentLegacyResponder = - typeof teamsDeleteDiscussionCommentLegacyResponder & KoaRuntimeResponder - -const teamsDeleteDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) + (typeof teamsDeleteDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder export type TeamsDeleteDiscussionCommentLegacy = ( params: Params< @@ -31499,18 +24789,15 @@ export type TeamsDeleteDiscussionCommentLegacy = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const reactionsListForTeamDiscussionCommentLegacyResponder = { - with200: r.with200, +const reactionsListForTeamDiscussionCommentLegacy = b((r) => ({ + with200: r.with200(z.array(s_reaction)), withStatus: r.withStatus, -} +})) type ReactionsListForTeamDiscussionCommentLegacyResponder = - typeof reactionsListForTeamDiscussionCommentLegacyResponder & + (typeof reactionsListForTeamDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder -const reactionsListForTeamDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["200", z.array(s_reaction)]], undefined) - export type ReactionsListForTeamDiscussionCommentLegacy = ( params: Params< t_ReactionsListForTeamDiscussionCommentLegacyParamSchema, @@ -31522,18 +24809,15 @@ export type ReactionsListForTeamDiscussionCommentLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> -const reactionsCreateForTeamDiscussionCommentLegacyResponder = { - with201: r.with201, +const reactionsCreateForTeamDiscussionCommentLegacy = b((r) => ({ + with201: r.with201(s_reaction), withStatus: r.withStatus, -} +})) type ReactionsCreateForTeamDiscussionCommentLegacyResponder = - typeof reactionsCreateForTeamDiscussionCommentLegacyResponder & + (typeof reactionsCreateForTeamDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder -const reactionsCreateForTeamDiscussionCommentLegacyResponseValidator = - responseValidationFactory([["201", s_reaction]], undefined) - export type ReactionsCreateForTeamDiscussionCommentLegacy = ( params: Params< t_ReactionsCreateForTeamDiscussionCommentLegacyParamSchema, @@ -31545,16 +24829,14 @@ export type ReactionsCreateForTeamDiscussionCommentLegacy = ( ctx: RouterContext, ) => Promise | Response<201, t_reaction>> -const reactionsListForTeamDiscussionLegacyResponder = { - with200: r.with200, +const reactionsListForTeamDiscussionLegacy = b((r) => ({ + with200: r.with200(z.array(s_reaction)), withStatus: r.withStatus, -} +})) type ReactionsListForTeamDiscussionLegacyResponder = - typeof reactionsListForTeamDiscussionLegacyResponder & KoaRuntimeResponder - -const reactionsListForTeamDiscussionLegacyResponseValidator = - responseValidationFactory([["200", z.array(s_reaction)]], undefined) + (typeof reactionsListForTeamDiscussionLegacy)["responder"] & + KoaRuntimeResponder export type ReactionsListForTeamDiscussionLegacy = ( params: Params< @@ -31567,16 +24849,14 @@ export type ReactionsListForTeamDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> -const reactionsCreateForTeamDiscussionLegacyResponder = { - with201: r.with201, +const reactionsCreateForTeamDiscussionLegacy = b((r) => ({ + with201: r.with201(s_reaction), withStatus: r.withStatus, -} +})) type ReactionsCreateForTeamDiscussionLegacyResponder = - typeof reactionsCreateForTeamDiscussionLegacyResponder & KoaRuntimeResponder - -const reactionsCreateForTeamDiscussionLegacyResponseValidator = - responseValidationFactory([["201", s_reaction]], undefined) + (typeof reactionsCreateForTeamDiscussionLegacy)["responder"] & + KoaRuntimeResponder export type ReactionsCreateForTeamDiscussionLegacy = ( params: Params< @@ -31589,19 +24869,15 @@ export type ReactionsCreateForTeamDiscussionLegacy = ( ctx: RouterContext, ) => Promise | Response<201, t_reaction>> -const teamsListPendingInvitationsLegacyResponder = { - with200: r.with200, +const teamsListPendingInvitationsLegacy = b((r) => ({ + with200: r.with200( + z.array(s_organization_invitation), + ), withStatus: r.withStatus, -} +})) type TeamsListPendingInvitationsLegacyResponder = - typeof teamsListPendingInvitationsLegacyResponder & KoaRuntimeResponder - -const teamsListPendingInvitationsLegacyResponseValidator = - responseValidationFactory( - [["200", z.array(s_organization_invitation)]], - undefined, - ) + (typeof teamsListPendingInvitationsLegacy)["responder"] & KoaRuntimeResponder export type TeamsListPendingInvitationsLegacy = ( params: Params< @@ -31616,22 +24892,14 @@ export type TeamsListPendingInvitationsLegacy = ( KoaRuntimeResponse | Response<200, t_organization_invitation[]> > -const teamsListMembersLegacyResponder = { - with200: r.with200, - with404: r.with404, +const teamsListMembersLegacy = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type TeamsListMembersLegacyResponder = typeof teamsListMembersLegacyResponder & - KoaRuntimeResponder +})) -const teamsListMembersLegacyResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["404", s_basic_error], - ], - undefined, -) +type TeamsListMembersLegacyResponder = + (typeof teamsListMembersLegacy)["responder"] & KoaRuntimeResponder export type TeamsListMembersLegacy = ( params: Params< @@ -31648,22 +24916,14 @@ export type TeamsListMembersLegacy = ( | Response<404, t_basic_error> > -const teamsGetMemberLegacyResponder = { - with204: r.with204, - with404: r.with404, +const teamsGetMemberLegacy = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} - -type TeamsGetMemberLegacyResponder = typeof teamsGetMemberLegacyResponder & - KoaRuntimeResponder +})) -const teamsGetMemberLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, -) +type TeamsGetMemberLegacyResponder = + (typeof teamsGetMemberLegacy)["responder"] & KoaRuntimeResponder export type TeamsGetMemberLegacy = ( params: Params, @@ -31673,26 +24933,16 @@ export type TeamsGetMemberLegacy = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -const teamsAddMemberLegacyResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const teamsAddMemberLegacy = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(z.undefined()), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} - -type TeamsAddMemberLegacyResponder = typeof teamsAddMemberLegacyResponder & - KoaRuntimeResponder +})) -const teamsAddMemberLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["404", z.undefined()], - ["422", z.undefined()], - ], - undefined, -) +type TeamsAddMemberLegacyResponder = + (typeof teamsAddMemberLegacy)["responder"] & KoaRuntimeResponder export type TeamsAddMemberLegacy = ( params: Params, @@ -31706,22 +24956,14 @@ export type TeamsAddMemberLegacy = ( | Response<422, void> > -const teamsRemoveMemberLegacyResponder = { - with204: r.with204, - with404: r.with404, +const teamsRemoveMemberLegacy = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsRemoveMemberLegacyResponder = - typeof teamsRemoveMemberLegacyResponder & KoaRuntimeResponder - -const teamsRemoveMemberLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, -) + (typeof teamsRemoveMemberLegacy)["responder"] & KoaRuntimeResponder export type TeamsRemoveMemberLegacy = ( params: Params, @@ -31731,23 +24973,14 @@ export type TeamsRemoveMemberLegacy = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -const teamsGetMembershipForUserLegacyResponder = { - with200: r.with200, - with404: r.with404, +const teamsGetMembershipForUserLegacy = b((r) => ({ + with200: r.with200(s_team_membership), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type TeamsGetMembershipForUserLegacyResponder = - typeof teamsGetMembershipForUserLegacyResponder & KoaRuntimeResponder - -const teamsGetMembershipForUserLegacyResponseValidator = - responseValidationFactory( - [ - ["200", s_team_membership], - ["404", s_basic_error], - ], - undefined, - ) + (typeof teamsGetMembershipForUserLegacy)["responder"] & KoaRuntimeResponder export type TeamsGetMembershipForUserLegacy = ( params: Params< @@ -31764,27 +24997,17 @@ export type TeamsGetMembershipForUserLegacy = ( | Response<404, t_basic_error> > -const teamsAddOrUpdateMembershipForUserLegacyResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const teamsAddOrUpdateMembershipForUserLegacy = b((r) => ({ + with200: r.with200(s_team_membership), + with403: r.with403(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsAddOrUpdateMembershipForUserLegacyResponder = - typeof teamsAddOrUpdateMembershipForUserLegacyResponder & KoaRuntimeResponder - -const teamsAddOrUpdateMembershipForUserLegacyResponseValidator = - responseValidationFactory( - [ - ["200", s_team_membership], - ["403", z.undefined()], - ["404", s_basic_error], - ["422", z.undefined()], - ], - undefined, - ) + (typeof teamsAddOrUpdateMembershipForUserLegacy)["responder"] & + KoaRuntimeResponder export type TeamsAddOrUpdateMembershipForUserLegacy = ( params: Params< @@ -31803,23 +25026,14 @@ export type TeamsAddOrUpdateMembershipForUserLegacy = ( | Response<422, void> > -const teamsRemoveMembershipForUserLegacyResponder = { - with204: r.with204, - with403: r.with403, +const teamsRemoveMembershipForUserLegacy = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsRemoveMembershipForUserLegacyResponder = - typeof teamsRemoveMembershipForUserLegacyResponder & KoaRuntimeResponder - -const teamsRemoveMembershipForUserLegacyResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", z.undefined()], - ], - undefined, - ) + (typeof teamsRemoveMembershipForUserLegacy)["responder"] & KoaRuntimeResponder export type TeamsRemoveMembershipForUserLegacy = ( params: Params< @@ -31834,22 +25048,14 @@ export type TeamsRemoveMembershipForUserLegacy = ( KoaRuntimeResponse | Response<204, void> | Response<403, void> > -const teamsListProjectsLegacyResponder = { - with200: r.with200, - with404: r.with404, +const teamsListProjectsLegacy = b((r) => ({ + with200: r.with200(z.array(s_team_project)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type TeamsListProjectsLegacyResponder = - typeof teamsListProjectsLegacyResponder & KoaRuntimeResponder - -const teamsListProjectsLegacyResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team_project)], - ["404", s_basic_error], - ], - undefined, -) + (typeof teamsListProjectsLegacy)["responder"] & KoaRuntimeResponder export type TeamsListProjectsLegacy = ( params: Params< @@ -31866,23 +25072,15 @@ export type TeamsListProjectsLegacy = ( | Response<404, t_basic_error> > -const teamsCheckPermissionsForProjectLegacyResponder = { - with200: r.with200, - with404: r.with404, +const teamsCheckPermissionsForProjectLegacy = b((r) => ({ + with200: r.with200(s_team_project), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsCheckPermissionsForProjectLegacyResponder = - typeof teamsCheckPermissionsForProjectLegacyResponder & KoaRuntimeResponder - -const teamsCheckPermissionsForProjectLegacyResponseValidator = - responseValidationFactory( - [ - ["200", s_team_project], - ["404", z.undefined()], - ], - undefined, - ) + (typeof teamsCheckPermissionsForProjectLegacy)["responder"] & + KoaRuntimeResponder export type TeamsCheckPermissionsForProjectLegacy = ( params: Params< @@ -31899,36 +25097,25 @@ export type TeamsCheckPermissionsForProjectLegacy = ( | Response<404, void> > -const teamsAddOrUpdateProjectPermissionsLegacyResponder = { - with204: r.with204, +const teamsAddOrUpdateProjectPermissionsLegacy = b((r) => ({ + with204: r.with204(z.undefined()), with403: r.with403<{ documentation_url?: string message?: string - }>, - with404: r.with404, - with422: r.with422, + }>( + z.object({ + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type TeamsAddOrUpdateProjectPermissionsLegacyResponder = - typeof teamsAddOrUpdateProjectPermissionsLegacyResponder & KoaRuntimeResponder - -const teamsAddOrUpdateProjectPermissionsLegacyResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - [ - "403", - z.object({ - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof teamsAddOrUpdateProjectPermissionsLegacy)["responder"] & + KoaRuntimeResponder export type TeamsAddOrUpdateProjectPermissionsLegacy = ( params: Params< @@ -31953,24 +25140,15 @@ export type TeamsAddOrUpdateProjectPermissionsLegacy = ( | Response<422, t_validation_error> > -const teamsRemoveProjectLegacyResponder = { - with204: r.with204, - with404: r.with404, - with422: r.with422, +const teamsRemoveProjectLegacy = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type TeamsRemoveProjectLegacyResponder = - typeof teamsRemoveProjectLegacyResponder & KoaRuntimeResponder - -const teamsRemoveProjectLegacyResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof teamsRemoveProjectLegacy)["responder"] & KoaRuntimeResponder export type TeamsRemoveProjectLegacy = ( params: Params, @@ -31983,22 +25161,14 @@ export type TeamsRemoveProjectLegacy = ( | Response<422, t_validation_error> > -const teamsListReposLegacyResponder = { - with200: r.with200, - with404: r.with404, +const teamsListReposLegacy = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type TeamsListReposLegacyResponder = typeof teamsListReposLegacyResponder & - KoaRuntimeResponder - -const teamsListReposLegacyResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["404", s_basic_error], - ], - undefined, -) +type TeamsListReposLegacyResponder = + (typeof teamsListReposLegacy)["responder"] & KoaRuntimeResponder export type TeamsListReposLegacy = ( params: Params< @@ -32015,25 +25185,15 @@ export type TeamsListReposLegacy = ( | Response<404, t_basic_error> > -const teamsCheckPermissionsForRepoLegacyResponder = { - with200: r.with200, - with204: r.with204, - with404: r.with404, +const teamsCheckPermissionsForRepoLegacy = b((r) => ({ + with200: r.with200(s_team_repository), + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type TeamsCheckPermissionsForRepoLegacyResponder = - typeof teamsCheckPermissionsForRepoLegacyResponder & KoaRuntimeResponder - -const teamsCheckPermissionsForRepoLegacyResponseValidator = - responseValidationFactory( - [ - ["200", s_team_repository], - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, - ) + (typeof teamsCheckPermissionsForRepoLegacy)["responder"] & KoaRuntimeResponder export type TeamsCheckPermissionsForRepoLegacy = ( params: Params< @@ -32051,25 +25211,16 @@ export type TeamsCheckPermissionsForRepoLegacy = ( | Response<404, void> > -const teamsAddOrUpdateRepoPermissionsLegacyResponder = { - with204: r.with204, - with403: r.with403, - with422: r.with422, +const teamsAddOrUpdateRepoPermissionsLegacy = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type TeamsAddOrUpdateRepoPermissionsLegacyResponder = - typeof teamsAddOrUpdateRepoPermissionsLegacyResponder & KoaRuntimeResponder - -const teamsAddOrUpdateRepoPermissionsLegacyResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof teamsAddOrUpdateRepoPermissionsLegacy)["responder"] & + KoaRuntimeResponder export type TeamsAddOrUpdateRepoPermissionsLegacy = ( params: Params< @@ -32087,18 +25238,13 @@ export type TeamsAddOrUpdateRepoPermissionsLegacy = ( | Response<422, t_validation_error> > -const teamsRemoveRepoLegacyResponder = { - with204: r.with204, +const teamsRemoveRepoLegacy = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type TeamsRemoveRepoLegacyResponder = typeof teamsRemoveRepoLegacyResponder & - KoaRuntimeResponder - -const teamsRemoveRepoLegacyResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) +type TeamsRemoveRepoLegacyResponder = + (typeof teamsRemoveRepoLegacy)["responder"] & KoaRuntimeResponder export type TeamsRemoveRepoLegacy = ( params: Params, @@ -32106,26 +25252,16 @@ export type TeamsRemoveRepoLegacy = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const teamsListChildLegacyResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const teamsListChildLegacy = b((r) => ({ + with200: r.with200(z.array(s_team)), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type TeamsListChildLegacyResponder = typeof teamsListChildLegacyResponder & - KoaRuntimeResponder +})) -const teamsListChildLegacyResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_team)], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type TeamsListChildLegacyResponder = + (typeof teamsListChildLegacy)["responder"] & KoaRuntimeResponder export type TeamsListChildLegacy = ( params: Params< @@ -32144,26 +25280,18 @@ export type TeamsListChildLegacy = ( | Response<422, t_validation_error> > -const usersGetAuthenticatedResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const usersGetAuthenticated = b((r) => ({ + with200: r.with200( + z.union([s_private_user, s_public_user]), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} - -type UsersGetAuthenticatedResponder = typeof usersGetAuthenticatedResponder & - KoaRuntimeResponder +})) -const usersGetAuthenticatedResponseValidator = responseValidationFactory( - [ - ["200", z.union([s_private_user, s_public_user])], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) +type UsersGetAuthenticatedResponder = + (typeof usersGetAuthenticated)["responder"] & KoaRuntimeResponder export type UsersGetAuthenticated = ( params: Params, @@ -32177,30 +25305,18 @@ export type UsersGetAuthenticated = ( | Response<403, t_basic_error> > -const usersUpdateAuthenticatedResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersUpdateAuthenticated = b((r) => ({ + with200: r.with200(s_private_user), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersUpdateAuthenticatedResponder = - typeof usersUpdateAuthenticatedResponder & KoaRuntimeResponder - -const usersUpdateAuthenticatedResponseValidator = responseValidationFactory( - [ - ["200", s_private_user], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) + (typeof usersUpdateAuthenticated)["responder"] & KoaRuntimeResponder export type UsersUpdateAuthenticated = ( params: Params< @@ -32221,29 +25337,18 @@ export type UsersUpdateAuthenticated = ( | Response<422, t_validation_error> > -const usersListBlockedByAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersListBlockedByAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListBlockedByAuthenticatedUserResponder = - typeof usersListBlockedByAuthenticatedUserResponder & KoaRuntimeResponder - -const usersListBlockedByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof usersListBlockedByAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersListBlockedByAuthenticatedUser = ( params: Params< @@ -32263,29 +25368,18 @@ export type UsersListBlockedByAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersCheckBlockedResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersCheckBlocked = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type UsersCheckBlockedResponder = typeof usersCheckBlockedResponder & +type UsersCheckBlockedResponder = (typeof usersCheckBlocked)["responder"] & KoaRuntimeResponder -const usersCheckBlockedResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type UsersCheckBlocked = ( params: Params, respond: UsersCheckBlockedResponder, @@ -32299,29 +25393,18 @@ export type UsersCheckBlocked = ( | Response<404, t_basic_error> > -const usersBlockResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersBlock = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type UsersBlockResponder = typeof usersBlockResponder & KoaRuntimeResponder - -const usersBlockResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type UsersBlockResponder = (typeof usersBlock)["responder"] & + KoaRuntimeResponder export type UsersBlock = ( params: Params, @@ -32337,27 +25420,17 @@ export type UsersBlock = ( | Response<422, t_validation_error> > -const usersUnblockResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersUnblock = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type UsersUnblockResponder = typeof usersUnblockResponder & KoaRuntimeResponder - -const usersUnblockResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) +type UsersUnblockResponder = (typeof usersUnblock)["responder"] & + KoaRuntimeResponder export type UsersUnblock = ( params: Params, @@ -32372,40 +25445,26 @@ export type UsersUnblock = ( | Response<404, t_basic_error> > -const codespacesListForAuthenticatedUserResponder = { +const codespacesListForAuthenticatedUser = b((r) => ({ with200: r.with200<{ codespaces: t_codespace[] total_count: number - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_count: z.coerce.number(), + codespaces: z.array(s_codespace), + }), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesListForAuthenticatedUserResponder = - typeof codespacesListForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - codespaces: z.array(s_codespace), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesListForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type CodespacesListForAuthenticatedUser = ( params: Params< @@ -32432,42 +25491,29 @@ export type CodespacesListForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesCreateForAuthenticatedUserResponder = { - with201: r.with201, - with202: r.with202, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const codespacesCreateForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_codespace), + with202: r.with202(s_codespace), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), with503: r.with503<{ code?: string documentation_url?: string message?: string - }>, + }>( + z.object({ + code: z.string().optional(), + message: z.string().optional(), + documentation_url: z.string().optional(), + }), + ), withStatus: r.withStatus, -} +})) type CodespacesCreateForAuthenticatedUserResponder = - typeof codespacesCreateForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesCreateForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_codespace], - ["202", s_codespace], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - [ - "503", - z.object({ - code: z.string().optional(), - message: z.string().optional(), - documentation_url: z.string().optional(), - }), - ], - ], - undefined, - ) + (typeof codespacesCreateForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type CodespacesCreateForAuthenticatedUser = ( params: Params< @@ -32495,32 +25541,23 @@ export type CodespacesCreateForAuthenticatedUser = ( > > -const codespacesListSecretsForAuthenticatedUserResponder = { +const codespacesListSecretsForAuthenticatedUser = b((r) => ({ with200: r.with200<{ secrets: t_codespaces_secret[] total_count: number - }>, + }>( + z.object({ + total_count: z.coerce.number(), + secrets: z.array(s_codespaces_secret), + }), + ), withStatus: r.withStatus, -} +})) type CodespacesListSecretsForAuthenticatedUserResponder = - typeof codespacesListSecretsForAuthenticatedUserResponder & + (typeof codespacesListSecretsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesListSecretsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - secrets: z.array(s_codespaces_secret), - }), - ], - ], - undefined, - ) - export type CodespacesListSecretsForAuthenticatedUser = ( params: Params< void, @@ -32541,18 +25578,17 @@ export type CodespacesListSecretsForAuthenticatedUser = ( > > -const codespacesGetPublicKeyForAuthenticatedUserResponder = { - with200: r.with200, +const codespacesGetPublicKeyForAuthenticatedUser = b((r) => ({ + with200: r.with200( + s_codespaces_user_public_key, + ), withStatus: r.withStatus, -} +})) type CodespacesGetPublicKeyForAuthenticatedUserResponder = - typeof codespacesGetPublicKeyForAuthenticatedUserResponder & + (typeof codespacesGetPublicKeyForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesGetPublicKeyForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", s_codespaces_user_public_key]], undefined) - export type CodespacesGetPublicKeyForAuthenticatedUser = ( params: Params, respond: CodespacesGetPublicKeyForAuthenticatedUserResponder, @@ -32561,16 +25597,14 @@ export type CodespacesGetPublicKeyForAuthenticatedUser = ( KoaRuntimeResponse | Response<200, t_codespaces_user_public_key> > -const codespacesGetSecretForAuthenticatedUserResponder = { - with200: r.with200, +const codespacesGetSecretForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_codespaces_secret), withStatus: r.withStatus, -} +})) type CodespacesGetSecretForAuthenticatedUserResponder = - typeof codespacesGetSecretForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesGetSecretForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", s_codespaces_secret]], undefined) + (typeof codespacesGetSecretForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type CodespacesGetSecretForAuthenticatedUser = ( params: Params< @@ -32583,29 +25617,18 @@ export type CodespacesGetSecretForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_codespaces_secret>> -const codespacesCreateOrUpdateSecretForAuthenticatedUserResponder = { - with201: r.with201, - with204: r.with204, - with404: r.with404, - with422: r.with422, +const codespacesCreateOrUpdateSecretForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type CodespacesCreateOrUpdateSecretForAuthenticatedUserResponder = - typeof codespacesCreateOrUpdateSecretForAuthenticatedUserResponder & + (typeof codespacesCreateOrUpdateSecretForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesCreateOrUpdateSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_empty_object], - ["204", z.undefined()], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type CodespacesCreateOrUpdateSecretForAuthenticatedUser = ( params: Params< t_CodespacesCreateOrUpdateSecretForAuthenticatedUserParamSchema, @@ -32623,18 +25646,15 @@ export type CodespacesCreateOrUpdateSecretForAuthenticatedUser = ( | Response<422, t_validation_error> > -const codespacesDeleteSecretForAuthenticatedUserResponder = { - with204: r.with204, +const codespacesDeleteSecretForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type CodespacesDeleteSecretForAuthenticatedUserResponder = - typeof codespacesDeleteSecretForAuthenticatedUserResponder & + (typeof codespacesDeleteSecretForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesDeleteSecretForAuthenticatedUserResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type CodespacesDeleteSecretForAuthenticatedUser = ( params: Params< t_CodespacesDeleteSecretForAuthenticatedUserParamSchema, @@ -32646,40 +25666,27 @@ export type CodespacesDeleteSecretForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const codespacesListRepositoriesForSecretForAuthenticatedUserResponder = { +const codespacesListRepositoriesForSecretForAuthenticatedUser = b((r) => ({ with200: r.with200<{ repositories: t_minimal_repository[] total_count: number - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_count: z.coerce.number(), + repositories: z.array(s_minimal_repository), + }), + ), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesListRepositoriesForSecretForAuthenticatedUserResponder = - typeof codespacesListRepositoriesForSecretForAuthenticatedUserResponder & + (typeof codespacesListRepositoriesForSecretForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesListRepositoriesForSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repositories: z.array(s_minimal_repository), - }), - ], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - export type CodespacesListRepositoriesForSecretForAuthenticatedUser = ( params: Params< t_CodespacesListRepositoriesForSecretForAuthenticatedUserParamSchema, @@ -32704,31 +25711,19 @@ export type CodespacesListRepositoriesForSecretForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesSetRepositoriesForSecretForAuthenticatedUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, +const codespacesSetRepositoriesForSecretForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesSetRepositoriesForSecretForAuthenticatedUserResponder = - typeof codespacesSetRepositoriesForSecretForAuthenticatedUserResponder & + (typeof codespacesSetRepositoriesForSecretForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesSetRepositoriesForSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - export type CodespacesSetRepositoriesForSecretForAuthenticatedUser = ( params: Params< t_CodespacesSetRepositoriesForSecretForAuthenticatedUserParamSchema, @@ -32747,31 +25742,19 @@ export type CodespacesSetRepositoriesForSecretForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesAddRepositoryForSecretForAuthenticatedUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, +const codespacesAddRepositoryForSecretForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesAddRepositoryForSecretForAuthenticatedUserResponder = - typeof codespacesAddRepositoryForSecretForAuthenticatedUserResponder & + (typeof codespacesAddRepositoryForSecretForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesAddRepositoryForSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - export type CodespacesAddRepositoryForSecretForAuthenticatedUser = ( params: Params< t_CodespacesAddRepositoryForSecretForAuthenticatedUserParamSchema, @@ -32790,31 +25773,19 @@ export type CodespacesAddRepositoryForSecretForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesRemoveRepositoryForSecretForAuthenticatedUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, +const codespacesRemoveRepositoryForSecretForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesRemoveRepositoryForSecretForAuthenticatedUserResponder = - typeof codespacesRemoveRepositoryForSecretForAuthenticatedUserResponder & + (typeof codespacesRemoveRepositoryForSecretForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesRemoveRepositoryForSecretForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - export type CodespacesRemoveRepositoryForSecretForAuthenticatedUser = ( params: Params< t_CodespacesRemoveRepositoryForSecretForAuthenticatedUserParamSchema, @@ -32833,31 +25804,18 @@ export type CodespacesRemoveRepositoryForSecretForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesGetForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, +const codespacesGetForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_codespace), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesGetForAuthenticatedUserResponder = - typeof codespacesGetForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesGetForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesGetForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type CodespacesGetForAuthenticatedUser = ( params: Params< @@ -32878,27 +25836,17 @@ export type CodespacesGetForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesUpdateForAuthenticatedUserResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const codespacesUpdateForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_codespace), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesUpdateForAuthenticatedUserResponder = - typeof codespacesUpdateForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesUpdateForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof codespacesUpdateForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type CodespacesUpdateForAuthenticatedUser = ( params: Params< @@ -32917,33 +25865,21 @@ export type CodespacesUpdateForAuthenticatedUser = ( | Response<404, t_basic_error> > -const codespacesDeleteForAuthenticatedUserResponder = { +const codespacesDeleteForAuthenticatedUser = b((r) => ({ with202: r.with202<{ [key: string]: unknown | undefined - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>(z.record(z.unknown())), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesDeleteForAuthenticatedUserResponder = - typeof codespacesDeleteForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesDeleteForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["202", z.record(z.unknown())], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesDeleteForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type CodespacesDeleteForAuthenticatedUser = ( params: Params< @@ -32969,31 +25905,19 @@ export type CodespacesDeleteForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesExportForAuthenticatedUserResponder = { - with202: r.with202, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, - with500: r.with500, +const codespacesExportForAuthenticatedUser = b((r) => ({ + with202: r.with202(s_codespace_export_details), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesExportForAuthenticatedUserResponder = - typeof codespacesExportForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesExportForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["202", s_codespace_export_details], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesExportForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type CodespacesExportForAuthenticatedUser = ( params: Params< @@ -33014,25 +25938,16 @@ export type CodespacesExportForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesGetExportDetailsForAuthenticatedUserResponder = { - with200: r.with200, - with404: r.with404, +const codespacesGetExportDetailsForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_codespace_export_details), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesGetExportDetailsForAuthenticatedUserResponder = - typeof codespacesGetExportDetailsForAuthenticatedUserResponder & + (typeof codespacesGetExportDetailsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesGetExportDetailsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace_export_details], - ["404", s_basic_error], - ], - undefined, - ) - export type CodespacesGetExportDetailsForAuthenticatedUser = ( params: Params< t_CodespacesGetExportDetailsForAuthenticatedUserParamSchema, @@ -33048,42 +25963,28 @@ export type CodespacesGetExportDetailsForAuthenticatedUser = ( | Response<404, t_basic_error> > -const codespacesCodespaceMachinesForAuthenticatedUserResponder = { +const codespacesCodespaceMachinesForAuthenticatedUser = b((r) => ({ with200: r.with200<{ machines: t_codespace_machine[] total_count: number - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + total_count: z.coerce.number(), + machines: z.array(s_codespace_machine), + }), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesCodespaceMachinesForAuthenticatedUserResponder = - typeof codespacesCodespaceMachinesForAuthenticatedUserResponder & + (typeof codespacesCodespaceMachinesForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const codespacesCodespaceMachinesForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - machines: z.array(s_codespace_machine), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) - export type CodespacesCodespaceMachinesForAuthenticatedUser = ( params: Params< t_CodespacesCodespaceMachinesForAuthenticatedUserParamSchema, @@ -33109,29 +26010,20 @@ export type CodespacesCodespaceMachinesForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesPublishForAuthenticatedUserResponder = { - with201: r.with201, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const codespacesPublishForAuthenticatedUser = b((r) => ({ + with201: r.with201( + s_codespace_with_full_repository, + ), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type CodespacesPublishForAuthenticatedUserResponder = - typeof codespacesPublishForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesPublishForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_codespace_with_full_repository], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof codespacesPublishForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type CodespacesPublishForAuthenticatedUser = ( params: Params< @@ -33151,37 +26043,22 @@ export type CodespacesPublishForAuthenticatedUser = ( | Response<422, t_validation_error> > -const codespacesStartForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with400: r.with400, - with401: r.with401, - with402: r.with402, - with403: r.with403, - with404: r.with404, - with409: r.with409, - with500: r.with500, +const codespacesStartForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_codespace), + with304: r.with304(z.undefined()), + with400: r.with400(s_scim_error), + with401: r.with401(s_basic_error), + with402: r.with402(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesStartForAuthenticatedUserResponder = - typeof codespacesStartForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesStartForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["304", z.undefined()], - ["400", s_scim_error], - ["401", s_basic_error], - ["402", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesStartForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type CodespacesStartForAuthenticatedUser = ( params: Params< @@ -33205,29 +26082,17 @@ export type CodespacesStartForAuthenticatedUser = ( | Response<500, t_basic_error> > -const codespacesStopForAuthenticatedUserResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, +const codespacesStopForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_codespace), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with500: r.with500(s_basic_error), withStatus: r.withStatus, -} +})) type CodespacesStopForAuthenticatedUserResponder = - typeof codespacesStopForAuthenticatedUserResponder & KoaRuntimeResponder - -const codespacesStopForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_codespace], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["500", s_basic_error], - ], - undefined, - ) + (typeof codespacesStopForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type CodespacesStopForAuthenticatedUser = ( params: Params< @@ -33247,19 +26112,17 @@ export type CodespacesStopForAuthenticatedUser = ( | Response<500, t_basic_error> > -const packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder = - { - with200: r.with200, +const packagesListDockerMigrationConflictingPackagesForAuthenticatedUser = b( + (r) => ({ + with200: r.with200(z.array(s_package)), withStatus: r.withStatus, - } + }), +) type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder = - typeof packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder & + (typeof packagesListDockerMigrationConflictingPackagesForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", z.array(s_package)]], undefined) - export type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser = ( params: Params, @@ -33267,33 +26130,20 @@ export type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser = ctx: RouterContext, ) => Promise | Response<200, t_package[]>> -const usersSetPrimaryEmailVisibilityForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersSetPrimaryEmailVisibilityForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_email)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersSetPrimaryEmailVisibilityForAuthenticatedUserResponder = - typeof usersSetPrimaryEmailVisibilityForAuthenticatedUserResponder & + (typeof usersSetPrimaryEmailVisibilityForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersSetPrimaryEmailVisibilityForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_email)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type UsersSetPrimaryEmailVisibilityForAuthenticatedUser = ( params: Params< void, @@ -33313,29 +26163,18 @@ export type UsersSetPrimaryEmailVisibilityForAuthenticatedUser = ( | Response<422, t_validation_error> > -const usersListEmailsForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersListEmailsForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_email)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListEmailsForAuthenticatedUserResponder = - typeof usersListEmailsForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersListEmailsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_email)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof usersListEmailsForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersListEmailsForAuthenticatedUser = ( params: Params< @@ -33355,31 +26194,18 @@ export type UsersListEmailsForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersAddEmailForAuthenticatedUserResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersAddEmailForAuthenticatedUser = b((r) => ({ + with201: r.with201(z.array(s_email)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersAddEmailForAuthenticatedUserResponder = - typeof usersAddEmailForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersAddEmailForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", z.array(s_email)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof usersAddEmailForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type UsersAddEmailForAuthenticatedUser = ( params: Params< @@ -33400,31 +26226,19 @@ export type UsersAddEmailForAuthenticatedUser = ( | Response<422, t_validation_error> > -const usersDeleteEmailForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersDeleteEmailForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersDeleteEmailForAuthenticatedUserResponder = - typeof usersDeleteEmailForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersDeleteEmailForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof usersDeleteEmailForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersDeleteEmailForAuthenticatedUser = ( params: Params< @@ -33445,27 +26259,17 @@ export type UsersDeleteEmailForAuthenticatedUser = ( | Response<422, t_validation_error> > -const usersListFollowersForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const usersListFollowersForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListFollowersForAuthenticatedUserResponder = - typeof usersListFollowersForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersListFollowersForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof usersListFollowersForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersListFollowersForAuthenticatedUser = ( params: Params< @@ -33484,27 +26288,17 @@ export type UsersListFollowersForAuthenticatedUser = ( | Response<403, t_basic_error> > -const usersListFollowedByAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const usersListFollowedByAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListFollowedByAuthenticatedUserResponder = - typeof usersListFollowedByAuthenticatedUserResponder & KoaRuntimeResponder - -const usersListFollowedByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof usersListFollowedByAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersListFollowedByAuthenticatedUser = ( params: Params< @@ -33523,31 +26317,19 @@ export type UsersListFollowedByAuthenticatedUser = ( | Response<403, t_basic_error> > -const usersCheckPersonIsFollowedByAuthenticatedResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersCheckPersonIsFollowedByAuthenticated = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersCheckPersonIsFollowedByAuthenticatedResponder = - typeof usersCheckPersonIsFollowedByAuthenticatedResponder & + (typeof usersCheckPersonIsFollowedByAuthenticated)["responder"] & KoaRuntimeResponder -const usersCheckPersonIsFollowedByAuthenticatedResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type UsersCheckPersonIsFollowedByAuthenticated = ( params: Params< t_UsersCheckPersonIsFollowedByAuthenticatedParamSchema, @@ -33566,29 +26348,18 @@ export type UsersCheckPersonIsFollowedByAuthenticated = ( | Response<404, t_basic_error> > -const usersFollowResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersFollow = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type UsersFollowResponder = typeof usersFollowResponder & KoaRuntimeResponder - -const usersFollowResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type UsersFollowResponder = (typeof usersFollow)["responder"] & + KoaRuntimeResponder export type UsersFollow = ( params: Params, @@ -33604,29 +26375,18 @@ export type UsersFollow = ( | Response<422, t_validation_error> > -const usersUnfollowResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersUnfollow = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type UsersUnfollowResponder = typeof usersUnfollowResponder & +type UsersUnfollowResponder = (typeof usersUnfollow)["responder"] & KoaRuntimeResponder -const usersUnfollowResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) - export type UsersUnfollow = ( params: Params, respond: UsersUnfollowResponder, @@ -33640,29 +26400,18 @@ export type UsersUnfollow = ( | Response<404, t_basic_error> > -const usersListGpgKeysForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersListGpgKeysForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_gpg_key)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListGpgKeysForAuthenticatedUserResponder = - typeof usersListGpgKeysForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersListGpgKeysForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_gpg_key)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof usersListGpgKeysForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersListGpgKeysForAuthenticatedUser = ( params: Params< @@ -33682,31 +26431,19 @@ export type UsersListGpgKeysForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersCreateGpgKeyForAuthenticatedUserResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersCreateGpgKeyForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_gpg_key), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersCreateGpgKeyForAuthenticatedUserResponder = - typeof usersCreateGpgKeyForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersCreateGpgKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_gpg_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof usersCreateGpgKeyForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersCreateGpgKeyForAuthenticatedUser = ( params: Params< @@ -33727,29 +26464,17 @@ export type UsersCreateGpgKeyForAuthenticatedUser = ( | Response<422, t_validation_error> > -const usersGetGpgKeyForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersGetGpgKeyForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_gpg_key), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersGetGpgKeyForAuthenticatedUserResponder = - typeof usersGetGpgKeyForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersGetGpgKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_gpg_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof usersGetGpgKeyForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type UsersGetGpgKeyForAuthenticatedUser = ( params: Params< @@ -33769,31 +26494,19 @@ export type UsersGetGpgKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersDeleteGpgKeyForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersDeleteGpgKeyForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersDeleteGpgKeyForAuthenticatedUserResponder = - typeof usersDeleteGpgKeyForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersDeleteGpgKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof usersDeleteGpgKeyForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersDeleteGpgKeyForAuthenticatedUser = ( params: Params< @@ -33814,38 +26527,26 @@ export type UsersDeleteGpgKeyForAuthenticatedUser = ( | Response<422, t_validation_error> > -const appsListInstallationsForAuthenticatedUserResponder = { +const appsListInstallationsForAuthenticatedUser = b((r) => ({ with200: r.with200<{ installations: t_installation[] total_count: number - }>, - with304: r.with304, - with401: r.with401, - with403: r.with403, + }>( + z.object({ + total_count: z.coerce.number(), + installations: z.array(s_installation), + }), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type AppsListInstallationsForAuthenticatedUserResponder = - typeof appsListInstallationsForAuthenticatedUserResponder & + (typeof appsListInstallationsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const appsListInstallationsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - installations: z.array(s_installation), - }), - ], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - export type AppsListInstallationsForAuthenticatedUser = ( params: Params< void, @@ -33869,40 +26570,28 @@ export type AppsListInstallationsForAuthenticatedUser = ( | Response<403, t_basic_error> > -const appsListInstallationReposForAuthenticatedUserResponder = { +const appsListInstallationReposForAuthenticatedUser = b((r) => ({ with200: r.with200<{ repositories: t_repository[] repository_selection?: string total_count: number - }>, - with304: r.with304, - with403: r.with403, - with404: r.with404, + }>( + z.object({ + total_count: z.coerce.number(), + repository_selection: z.string().optional(), + repositories: z.array(s_repository), + }), + ), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type AppsListInstallationReposForAuthenticatedUserResponder = - typeof appsListInstallationReposForAuthenticatedUserResponder & + (typeof appsListInstallationReposForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const appsListInstallationReposForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - total_count: z.coerce.number(), - repository_selection: z.string().optional(), - repositories: z.array(s_repository), - }), - ], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type AppsListInstallationReposForAuthenticatedUser = ( params: Params< t_AppsListInstallationReposForAuthenticatedUserParamSchema, @@ -33927,29 +26616,18 @@ export type AppsListInstallationReposForAuthenticatedUser = ( | Response<404, t_basic_error> > -const appsAddRepoToInstallationForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const appsAddRepoToInstallationForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type AppsAddRepoToInstallationForAuthenticatedUserResponder = - typeof appsAddRepoToInstallationForAuthenticatedUserResponder & + (typeof appsAddRepoToInstallationForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const appsAddRepoToInstallationForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type AppsAddRepoToInstallationForAuthenticatedUser = ( params: Params< t_AppsAddRepoToInstallationForAuthenticatedUserParamSchema, @@ -33967,31 +26645,19 @@ export type AppsAddRepoToInstallationForAuthenticatedUser = ( | Response<404, t_basic_error> > -const appsRemoveRepoFromInstallationForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const appsRemoveRepoFromInstallationForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(z.undefined()), withStatus: r.withStatus, -} +})) type AppsRemoveRepoFromInstallationForAuthenticatedUserResponder = - typeof appsRemoveRepoFromInstallationForAuthenticatedUserResponder & + (typeof appsRemoveRepoFromInstallationForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const appsRemoveRepoFromInstallationForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", z.undefined()], - ], - undefined, - ) - export type AppsRemoveRepoFromInstallationForAuthenticatedUser = ( params: Params< t_AppsRemoveRepoFromInstallationForAuthenticatedUserParamSchema, @@ -34010,25 +26676,18 @@ export type AppsRemoveRepoFromInstallationForAuthenticatedUser = ( | Response<422, void> > -const interactionsGetRestrictionsForAuthenticatedUserResponder = { - with200: r.with200, - with204: r.with204, +const interactionsGetRestrictionsForAuthenticatedUser = b((r) => ({ + with200: r.with200( + z.union([s_interaction_limit_response, z.object({})]), + ), + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type InteractionsGetRestrictionsForAuthenticatedUserResponder = - typeof interactionsGetRestrictionsForAuthenticatedUserResponder & + (typeof interactionsGetRestrictionsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const interactionsGetRestrictionsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.union([s_interaction_limit_response, z.object({})])], - ["204", z.undefined()], - ], - undefined, - ) - export type InteractionsGetRestrictionsForAuthenticatedUser = ( params: Params, respond: InteractionsGetRestrictionsForAuthenticatedUserResponder, @@ -34039,25 +26698,18 @@ export type InteractionsGetRestrictionsForAuthenticatedUser = ( | Response<204, void> > -const interactionsSetRestrictionsForAuthenticatedUserResponder = { - with200: r.with200, - with422: r.with422, +const interactionsSetRestrictionsForAuthenticatedUser = b((r) => ({ + with200: r.with200( + s_interaction_limit_response, + ), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type InteractionsSetRestrictionsForAuthenticatedUserResponder = - typeof interactionsSetRestrictionsForAuthenticatedUserResponder & + (typeof interactionsSetRestrictionsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const interactionsSetRestrictionsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_interaction_limit_response], - ["422", s_validation_error], - ], - undefined, - ) - export type InteractionsSetRestrictionsForAuthenticatedUser = ( params: Params< void, @@ -34073,43 +26725,30 @@ export type InteractionsSetRestrictionsForAuthenticatedUser = ( | Response<422, t_validation_error> > -const interactionsRemoveRestrictionsForAuthenticatedUserResponder = { - with204: r.with204, +const interactionsRemoveRestrictionsForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) type InteractionsRemoveRestrictionsForAuthenticatedUserResponder = - typeof interactionsRemoveRestrictionsForAuthenticatedUserResponder & + (typeof interactionsRemoveRestrictionsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const interactionsRemoveRestrictionsForAuthenticatedUserResponseValidator = - responseValidationFactory([["204", z.undefined()]], undefined) - export type InteractionsRemoveRestrictionsForAuthenticatedUser = ( params: Params, respond: InteractionsRemoveRestrictionsForAuthenticatedUserResponder, ctx: RouterContext, ) => Promise | Response<204, void>> -const issuesListForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with404: r.with404, +const issuesListForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_issue)), + with304: r.with304(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type IssuesListForAuthenticatedUserResponder = - typeof issuesListForAuthenticatedUserResponder & KoaRuntimeResponder - -const issuesListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_issue)], - ["304", z.undefined()], - ["404", s_basic_error], - ], - undefined, - ) + (typeof issuesListForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type IssuesListForAuthenticatedUser = ( params: Params, @@ -34122,31 +26761,19 @@ export type IssuesListForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersListPublicSshKeysForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersListPublicSshKeysForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_key)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListPublicSshKeysForAuthenticatedUserResponder = - typeof usersListPublicSshKeysForAuthenticatedUserResponder & + (typeof usersListPublicSshKeysForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersListPublicSshKeysForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_key)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type UsersListPublicSshKeysForAuthenticatedUser = ( params: Params< void, @@ -34165,33 +26792,20 @@ export type UsersListPublicSshKeysForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersCreatePublicSshKeyForAuthenticatedUserResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersCreatePublicSshKeyForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_key), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersCreatePublicSshKeyForAuthenticatedUserResponder = - typeof usersCreatePublicSshKeyForAuthenticatedUserResponder & + (typeof usersCreatePublicSshKeyForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersCreatePublicSshKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type UsersCreatePublicSshKeyForAuthenticatedUser = ( params: Params< void, @@ -34211,29 +26825,18 @@ export type UsersCreatePublicSshKeyForAuthenticatedUser = ( | Response<422, t_validation_error> > -const usersGetPublicSshKeyForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersGetPublicSshKeyForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_key), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersGetPublicSshKeyForAuthenticatedUserResponder = - typeof usersGetPublicSshKeyForAuthenticatedUserResponder & KoaRuntimeResponder - -const usersGetPublicSshKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof usersGetPublicSshKeyForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type UsersGetPublicSshKeyForAuthenticatedUser = ( params: Params< @@ -34253,31 +26856,19 @@ export type UsersGetPublicSshKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersDeletePublicSshKeyForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersDeletePublicSshKeyForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersDeletePublicSshKeyForAuthenticatedUserResponder = - typeof usersDeletePublicSshKeyForAuthenticatedUserResponder & + (typeof usersDeletePublicSshKeyForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersDeletePublicSshKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type UsersDeletePublicSshKeyForAuthenticatedUser = ( params: Params< t_UsersDeletePublicSshKeyForAuthenticatedUserParamSchema, @@ -34296,29 +26887,20 @@ export type UsersDeletePublicSshKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -const appsListSubscriptionsForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with404: r.with404, +const appsListSubscriptionsForAuthenticatedUser = b((r) => ({ + with200: r.with200( + z.array(s_user_marketplace_purchase), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type AppsListSubscriptionsForAuthenticatedUserResponder = - typeof appsListSubscriptionsForAuthenticatedUserResponder & + (typeof appsListSubscriptionsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const appsListSubscriptionsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_user_marketplace_purchase)], - ["304", z.undefined()], - ["401", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type AppsListSubscriptionsForAuthenticatedUser = ( params: Params< void, @@ -34336,27 +26918,19 @@ export type AppsListSubscriptionsForAuthenticatedUser = ( | Response<404, t_basic_error> > -const appsListSubscriptionsForAuthenticatedUserStubbedResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, +const appsListSubscriptionsForAuthenticatedUserStubbed = b((r) => ({ + with200: r.with200( + z.array(s_user_marketplace_purchase), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), withStatus: r.withStatus, -} +})) type AppsListSubscriptionsForAuthenticatedUserStubbedResponder = - typeof appsListSubscriptionsForAuthenticatedUserStubbedResponder & + (typeof appsListSubscriptionsForAuthenticatedUserStubbed)["responder"] & KoaRuntimeResponder -const appsListSubscriptionsForAuthenticatedUserStubbedResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_user_marketplace_purchase)], - ["304", z.undefined()], - ["401", s_basic_error], - ], - undefined, - ) - export type AppsListSubscriptionsForAuthenticatedUserStubbed = ( params: Params< void, @@ -34373,29 +26947,18 @@ export type AppsListSubscriptionsForAuthenticatedUserStubbed = ( | Response<401, t_basic_error> > -const orgsListMembershipsForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with422: r.with422, +const orgsListMembershipsForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_org_membership)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type OrgsListMembershipsForAuthenticatedUserResponder = - typeof orgsListMembershipsForAuthenticatedUserResponder & KoaRuntimeResponder - -const orgsListMembershipsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_org_membership)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof orgsListMembershipsForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type OrgsListMembershipsForAuthenticatedUser = ( params: Params< @@ -34415,25 +26978,16 @@ export type OrgsListMembershipsForAuthenticatedUser = ( | Response<422, t_validation_error> > -const orgsGetMembershipForAuthenticatedUserResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, +const orgsGetMembershipForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_org_membership), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsGetMembershipForAuthenticatedUserResponder = - typeof orgsGetMembershipForAuthenticatedUserResponder & KoaRuntimeResponder - -const orgsGetMembershipForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_org_membership], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof orgsGetMembershipForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type OrgsGetMembershipForAuthenticatedUser = ( params: Params< @@ -34451,27 +27005,17 @@ export type OrgsGetMembershipForAuthenticatedUser = ( | Response<404, t_basic_error> > -const orgsUpdateMembershipForAuthenticatedUserResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const orgsUpdateMembershipForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_org_membership), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type OrgsUpdateMembershipForAuthenticatedUserResponder = - typeof orgsUpdateMembershipForAuthenticatedUserResponder & KoaRuntimeResponder - -const orgsUpdateMembershipForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_org_membership], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof orgsUpdateMembershipForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type OrgsUpdateMembershipForAuthenticatedUser = ( params: Params< @@ -34490,27 +27034,16 @@ export type OrgsUpdateMembershipForAuthenticatedUser = ( | Response<422, t_validation_error> > -const migrationsListForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const migrationsListForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_migration)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsListForAuthenticatedUserResponder = - typeof migrationsListForAuthenticatedUserResponder & KoaRuntimeResponder - -const migrationsListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_migration)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof migrationsListForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type MigrationsListForAuthenticatedUser = ( params: Params< @@ -34529,29 +27062,18 @@ export type MigrationsListForAuthenticatedUser = ( | Response<403, t_basic_error> > -const migrationsStartForAuthenticatedUserResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with422: r.with422, +const migrationsStartForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_migration), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type MigrationsStartForAuthenticatedUserResponder = - typeof migrationsStartForAuthenticatedUserResponder & KoaRuntimeResponder - -const migrationsStartForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_migration], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof migrationsStartForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type MigrationsStartForAuthenticatedUser = ( params: Params< @@ -34571,29 +27093,18 @@ export type MigrationsStartForAuthenticatedUser = ( | Response<422, t_validation_error> > -const migrationsGetStatusForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const migrationsGetStatusForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_migration), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsGetStatusForAuthenticatedUserResponder = - typeof migrationsGetStatusForAuthenticatedUserResponder & KoaRuntimeResponder - -const migrationsGetStatusForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_migration], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof migrationsGetStatusForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type MigrationsGetStatusForAuthenticatedUser = ( params: Params< @@ -34613,27 +27124,17 @@ export type MigrationsGetStatusForAuthenticatedUser = ( | Response<404, t_basic_error> > -const migrationsGetArchiveForAuthenticatedUserResponder = { - with302: r.with302, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const migrationsGetArchiveForAuthenticatedUser = b((r) => ({ + with302: r.with302(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsGetArchiveForAuthenticatedUserResponder = - typeof migrationsGetArchiveForAuthenticatedUserResponder & KoaRuntimeResponder - -const migrationsGetArchiveForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["302", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) + (typeof migrationsGetArchiveForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type MigrationsGetArchiveForAuthenticatedUser = ( params: Params< @@ -34652,31 +27153,19 @@ export type MigrationsGetArchiveForAuthenticatedUser = ( | Response<403, t_basic_error> > -const migrationsDeleteArchiveForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const migrationsDeleteArchiveForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsDeleteArchiveForAuthenticatedUserResponder = - typeof migrationsDeleteArchiveForAuthenticatedUserResponder & + (typeof migrationsDeleteArchiveForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const migrationsDeleteArchiveForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type MigrationsDeleteArchiveForAuthenticatedUser = ( params: Params< t_MigrationsDeleteArchiveForAuthenticatedUserParamSchema, @@ -34695,29 +27184,18 @@ export type MigrationsDeleteArchiveForAuthenticatedUser = ( | Response<404, t_basic_error> > -const migrationsUnlockRepoForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const migrationsUnlockRepoForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsUnlockRepoForAuthenticatedUserResponder = - typeof migrationsUnlockRepoForAuthenticatedUserResponder & KoaRuntimeResponder - -const migrationsUnlockRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof migrationsUnlockRepoForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type MigrationsUnlockRepoForAuthenticatedUser = ( params: Params< @@ -34737,23 +27215,15 @@ export type MigrationsUnlockRepoForAuthenticatedUser = ( | Response<404, t_basic_error> > -const migrationsListReposForAuthenticatedUserResponder = { - with200: r.with200, - with404: r.with404, +const migrationsListReposForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type MigrationsListReposForAuthenticatedUserResponder = - typeof migrationsListReposForAuthenticatedUserResponder & KoaRuntimeResponder - -const migrationsListReposForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["404", s_basic_error], - ], - undefined, - ) + (typeof migrationsListReposForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type MigrationsListReposForAuthenticatedUser = ( params: Params< @@ -34770,26 +27240,16 @@ export type MigrationsListReposForAuthenticatedUser = ( | Response<404, t_basic_error> > -const orgsListForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const orgsListForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_organization_simple)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type OrgsListForAuthenticatedUserResponder = - typeof orgsListForAuthenticatedUserResponder & KoaRuntimeResponder - -const orgsListForAuthenticatedUserResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_organization_simple)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) + (typeof orgsListForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type OrgsListForAuthenticatedUser = ( params: Params, @@ -34803,23 +27263,15 @@ export type OrgsListForAuthenticatedUser = ( | Response<403, t_basic_error> > -const packagesListPackagesForAuthenticatedUserResponder = { - with200: r.with200, - with400: r.with400, +const packagesListPackagesForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_package)), + with400: r.with400(z.undefined()), withStatus: r.withStatus, -} +})) type PackagesListPackagesForAuthenticatedUserResponder = - typeof packagesListPackagesForAuthenticatedUserResponder & KoaRuntimeResponder - -const packagesListPackagesForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["400", z.undefined()], - ], - undefined, - ) + (typeof packagesListPackagesForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type PackagesListPackagesForAuthenticatedUser = ( params: Params< @@ -34834,16 +27286,14 @@ export type PackagesListPackagesForAuthenticatedUser = ( KoaRuntimeResponse | Response<200, t_package[]> | Response<400, void> > -const packagesGetPackageForAuthenticatedUserResponder = { - with200: r.with200, +const packagesGetPackageForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_package), withStatus: r.withStatus, -} +})) type PackagesGetPackageForAuthenticatedUserResponder = - typeof packagesGetPackageForAuthenticatedUserResponder & KoaRuntimeResponder - -const packagesGetPackageForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", s_package]], undefined) + (typeof packagesGetPackageForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type PackagesGetPackageForAuthenticatedUser = ( params: Params< @@ -34856,29 +27306,18 @@ export type PackagesGetPackageForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_package>> -const packagesDeletePackageForAuthenticatedUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesDeletePackageForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesDeletePackageForAuthenticatedUserResponder = - typeof packagesDeletePackageForAuthenticatedUserResponder & + (typeof packagesDeletePackageForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const packagesDeletePackageForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PackagesDeletePackageForAuthenticatedUser = ( params: Params< t_PackagesDeletePackageForAuthenticatedUserParamSchema, @@ -34896,29 +27335,18 @@ export type PackagesDeletePackageForAuthenticatedUser = ( | Response<404, t_basic_error> > -const packagesRestorePackageForAuthenticatedUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesRestorePackageForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesRestorePackageForAuthenticatedUserResponder = - typeof packagesRestorePackageForAuthenticatedUserResponder & + (typeof packagesRestorePackageForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const packagesRestorePackageForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PackagesRestorePackageForAuthenticatedUser = ( params: Params< t_PackagesRestorePackageForAuthenticatedUserParamSchema, @@ -34936,30 +27364,20 @@ export type PackagesRestorePackageForAuthenticatedUser = ( | Response<404, t_basic_error> > -const packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder = - { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser = b( + (r) => ({ + with200: r.with200(z.array(s_package_version)), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, - } + }), +) type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder = - typeof packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder & + (typeof packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser)["responder"] & KoaRuntimeResponder -const packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package_version)], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser = ( params: Params< t_PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserParamSchema, @@ -34977,18 +27395,15 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser = ( | Response<404, t_basic_error> > -const packagesGetPackageVersionForAuthenticatedUserResponder = { - with200: r.with200, +const packagesGetPackageVersionForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_package_version), withStatus: r.withStatus, -} +})) type PackagesGetPackageVersionForAuthenticatedUserResponder = - typeof packagesGetPackageVersionForAuthenticatedUserResponder & + (typeof packagesGetPackageVersionForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const packagesGetPackageVersionForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", s_package_version]], undefined) - export type PackagesGetPackageVersionForAuthenticatedUser = ( params: Params< t_PackagesGetPackageVersionForAuthenticatedUserParamSchema, @@ -35000,29 +27415,18 @@ export type PackagesGetPackageVersionForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_package_version>> -const packagesDeletePackageVersionForAuthenticatedUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesDeletePackageVersionForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesDeletePackageVersionForAuthenticatedUserResponder = - typeof packagesDeletePackageVersionForAuthenticatedUserResponder & + (typeof packagesDeletePackageVersionForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const packagesDeletePackageVersionForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PackagesDeletePackageVersionForAuthenticatedUser = ( params: Params< t_PackagesDeletePackageVersionForAuthenticatedUserParamSchema, @@ -35040,29 +27444,18 @@ export type PackagesDeletePackageVersionForAuthenticatedUser = ( | Response<404, t_basic_error> > -const packagesRestorePackageVersionForAuthenticatedUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesRestorePackageVersionForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesRestorePackageVersionForAuthenticatedUserResponder = - typeof packagesRestorePackageVersionForAuthenticatedUserResponder & + (typeof packagesRestorePackageVersionForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const packagesRestorePackageVersionForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PackagesRestorePackageVersionForAuthenticatedUser = ( params: Params< t_PackagesRestorePackageVersionForAuthenticatedUserParamSchema, @@ -35080,29 +27473,17 @@ export type PackagesRestorePackageVersionForAuthenticatedUser = ( | Response<404, t_basic_error> > -const projectsCreateForAuthenticatedUserResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with422: r.with422, +const projectsCreateForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_project), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error_simple), withStatus: r.withStatus, -} +})) type ProjectsCreateForAuthenticatedUserResponder = - typeof projectsCreateForAuthenticatedUserResponder & KoaRuntimeResponder - -const projectsCreateForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_project], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error_simple], - ], - undefined, - ) + (typeof projectsCreateForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type ProjectsCreateForAuthenticatedUser = ( params: Params< @@ -35122,31 +27503,19 @@ export type ProjectsCreateForAuthenticatedUser = ( | Response<422, t_validation_error_simple> > -const usersListPublicEmailsForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersListPublicEmailsForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_email)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListPublicEmailsForAuthenticatedUserResponder = - typeof usersListPublicEmailsForAuthenticatedUserResponder & + (typeof usersListPublicEmailsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersListPublicEmailsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_email)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type UsersListPublicEmailsForAuthenticatedUser = ( params: Params< void, @@ -35165,29 +27534,17 @@ export type UsersListPublicEmailsForAuthenticatedUser = ( | Response<404, t_basic_error> > -const reposListForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with422: r.with422, +const reposListForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_repository)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposListForAuthenticatedUserResponder = - typeof reposListForAuthenticatedUserResponder & KoaRuntimeResponder - -const reposListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_repository)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposListForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type ReposListForAuthenticatedUser = ( params: Params, @@ -35202,33 +27559,19 @@ export type ReposListForAuthenticatedUser = ( | Response<422, t_validation_error> > -const reposCreateForAuthenticatedUserResponder = { - with201: r.with201, - with304: r.with304, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const reposCreateForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_full_repository), + with304: r.with304(z.undefined()), + with400: r.with400(s_scim_error), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type ReposCreateForAuthenticatedUserResponder = - typeof reposCreateForAuthenticatedUserResponder & KoaRuntimeResponder - -const reposCreateForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_full_repository], - ["304", z.undefined()], - ["400", s_scim_error], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) + (typeof reposCreateForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type ReposCreateForAuthenticatedUser = ( params: Params, @@ -35245,29 +27588,20 @@ export type ReposCreateForAuthenticatedUser = ( | Response<422, t_validation_error> > -const reposListInvitationsForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const reposListInvitationsForAuthenticatedUser = b((r) => ({ + with200: r.with200( + z.array(s_repository_invitation), + ), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ReposListInvitationsForAuthenticatedUserResponder = - typeof reposListInvitationsForAuthenticatedUserResponder & KoaRuntimeResponder - -const reposListInvitationsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_repository_invitation)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof reposListInvitationsForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type ReposListInvitationsForAuthenticatedUser = ( params: Params< @@ -35287,31 +27621,19 @@ export type ReposListInvitationsForAuthenticatedUser = ( | Response<404, t_basic_error> > -const reposAcceptInvitationForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, - with409: r.with409, +const reposAcceptInvitationForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type ReposAcceptInvitationForAuthenticatedUserResponder = - typeof reposAcceptInvitationForAuthenticatedUserResponder & + (typeof reposAcceptInvitationForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const reposAcceptInvitationForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - export type ReposAcceptInvitationForAuthenticatedUser = ( params: Params< t_ReposAcceptInvitationForAuthenticatedUserParamSchema, @@ -35330,31 +27652,19 @@ export type ReposAcceptInvitationForAuthenticatedUser = ( | Response<409, t_basic_error> > -const reposDeclineInvitationForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with403: r.with403, - with404: r.with404, - with409: r.with409, +const reposDeclineInvitationForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with409: r.with409(s_basic_error), withStatus: r.withStatus, -} +})) type ReposDeclineInvitationForAuthenticatedUserResponder = - typeof reposDeclineInvitationForAuthenticatedUserResponder & + (typeof reposDeclineInvitationForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const reposDeclineInvitationForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ["409", s_basic_error], - ], - undefined, - ) - export type ReposDeclineInvitationForAuthenticatedUser = ( params: Params< t_ReposDeclineInvitationForAuthenticatedUserParamSchema, @@ -35373,31 +27683,19 @@ export type ReposDeclineInvitationForAuthenticatedUser = ( | Response<409, t_basic_error> > -const usersListSocialAccountsForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersListSocialAccountsForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_social_account)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListSocialAccountsForAuthenticatedUserResponder = - typeof usersListSocialAccountsForAuthenticatedUserResponder & + (typeof usersListSocialAccountsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersListSocialAccountsForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_social_account)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type UsersListSocialAccountsForAuthenticatedUser = ( params: Params< void, @@ -35416,33 +27714,20 @@ export type UsersListSocialAccountsForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersAddSocialAccountForAuthenticatedUserResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersAddSocialAccountForAuthenticatedUser = b((r) => ({ + with201: r.with201(z.array(s_social_account)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersAddSocialAccountForAuthenticatedUserResponder = - typeof usersAddSocialAccountForAuthenticatedUserResponder & + (typeof usersAddSocialAccountForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersAddSocialAccountForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", z.array(s_social_account)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type UsersAddSocialAccountForAuthenticatedUser = ( params: Params< void, @@ -35462,33 +27747,20 @@ export type UsersAddSocialAccountForAuthenticatedUser = ( | Response<422, t_validation_error> > -const usersDeleteSocialAccountForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersDeleteSocialAccountForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersDeleteSocialAccountForAuthenticatedUserResponder = - typeof usersDeleteSocialAccountForAuthenticatedUserResponder & + (typeof usersDeleteSocialAccountForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersDeleteSocialAccountForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type UsersDeleteSocialAccountForAuthenticatedUser = ( params: Params< void, @@ -35508,31 +27780,19 @@ export type UsersDeleteSocialAccountForAuthenticatedUser = ( | Response<422, t_validation_error> > -const usersListSshSigningKeysForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersListSshSigningKeysForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_ssh_signing_key)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersListSshSigningKeysForAuthenticatedUserResponder = - typeof usersListSshSigningKeysForAuthenticatedUserResponder & + (typeof usersListSshSigningKeysForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersListSshSigningKeysForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_ssh_signing_key)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type UsersListSshSigningKeysForAuthenticatedUser = ( params: Params< void, @@ -35551,33 +27811,20 @@ export type UsersListSshSigningKeysForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersCreateSshSigningKeyForAuthenticatedUserResponder = { - with201: r.with201, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with422: r.with422, +const usersCreateSshSigningKeyForAuthenticatedUser = b((r) => ({ + with201: r.with201(s_ssh_signing_key), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) type UsersCreateSshSigningKeyForAuthenticatedUserResponder = - typeof usersCreateSshSigningKeyForAuthenticatedUserResponder & + (typeof usersCreateSshSigningKeyForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersCreateSshSigningKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["201", s_ssh_signing_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, - ) - export type UsersCreateSshSigningKeyForAuthenticatedUser = ( params: Params< void, @@ -35597,31 +27844,19 @@ export type UsersCreateSshSigningKeyForAuthenticatedUser = ( | Response<422, t_validation_error> > -const usersGetSshSigningKeyForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersGetSshSigningKeyForAuthenticatedUser = b((r) => ({ + with200: r.with200(s_ssh_signing_key), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersGetSshSigningKeyForAuthenticatedUserResponder = - typeof usersGetSshSigningKeyForAuthenticatedUserResponder & + (typeof usersGetSshSigningKeyForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersGetSshSigningKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", s_ssh_signing_key], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type UsersGetSshSigningKeyForAuthenticatedUser = ( params: Params< t_UsersGetSshSigningKeyForAuthenticatedUserParamSchema, @@ -35640,31 +27875,19 @@ export type UsersGetSshSigningKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersDeleteSshSigningKeyForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const usersDeleteSshSigningKeyForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type UsersDeleteSshSigningKeyForAuthenticatedUserResponder = - typeof usersDeleteSshSigningKeyForAuthenticatedUserResponder & + (typeof usersDeleteSshSigningKeyForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const usersDeleteSshSigningKeyForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type UsersDeleteSshSigningKeyForAuthenticatedUser = ( params: Params< t_UsersDeleteSshSigningKeyForAuthenticatedUserParamSchema, @@ -35683,29 +27906,18 @@ export type UsersDeleteSshSigningKeyForAuthenticatedUser = ( | Response<404, t_basic_error> > -const activityListReposStarredByAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const activityListReposStarredByAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_starred_repository)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityListReposStarredByAuthenticatedUserResponder = - typeof activityListReposStarredByAuthenticatedUserResponder & + (typeof activityListReposStarredByAuthenticatedUser)["responder"] & KoaRuntimeResponder -const activityListReposStarredByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_starred_repository)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - export type ActivityListReposStarredByAuthenticatedUser = ( params: Params< void, @@ -35723,31 +27935,19 @@ export type ActivityListReposStarredByAuthenticatedUser = ( | Response<403, t_basic_error> > -const activityCheckRepoIsStarredByAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const activityCheckRepoIsStarredByAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityCheckRepoIsStarredByAuthenticatedUserResponder = - typeof activityCheckRepoIsStarredByAuthenticatedUserResponder & + (typeof activityCheckRepoIsStarredByAuthenticatedUser)["responder"] & KoaRuntimeResponder -const activityCheckRepoIsStarredByAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type ActivityCheckRepoIsStarredByAuthenticatedUser = ( params: Params< t_ActivityCheckRepoIsStarredByAuthenticatedUserParamSchema, @@ -35766,29 +27966,18 @@ export type ActivityCheckRepoIsStarredByAuthenticatedUser = ( | Response<404, t_basic_error> > -const activityStarRepoForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const activityStarRepoForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityStarRepoForAuthenticatedUserResponder = - typeof activityStarRepoForAuthenticatedUserResponder & KoaRuntimeResponder - -const activityStarRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof activityStarRepoForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type ActivityStarRepoForAuthenticatedUser = ( params: Params< @@ -35808,29 +27997,18 @@ export type ActivityStarRepoForAuthenticatedUser = ( | Response<404, t_basic_error> > -const activityUnstarRepoForAuthenticatedUserResponder = { - with204: r.with204, - with304: r.with304, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const activityUnstarRepoForAuthenticatedUser = b((r) => ({ + with204: r.with204(z.undefined()), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityUnstarRepoForAuthenticatedUserResponder = - typeof activityUnstarRepoForAuthenticatedUserResponder & KoaRuntimeResponder - -const activityUnstarRepoForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof activityUnstarRepoForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type ActivityUnstarRepoForAuthenticatedUser = ( params: Params< @@ -35850,29 +28028,18 @@ export type ActivityUnstarRepoForAuthenticatedUser = ( | Response<404, t_basic_error> > -const activityListWatchedReposForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with401: r.with401, - with403: r.with403, +const activityListWatchedReposForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), + with304: r.with304(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type ActivityListWatchedReposForAuthenticatedUserResponder = - typeof activityListWatchedReposForAuthenticatedUserResponder & + (typeof activityListWatchedReposForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const activityListWatchedReposForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_minimal_repository)], - ["304", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - export type ActivityListWatchedReposForAuthenticatedUser = ( params: Params< void, @@ -35890,27 +28057,16 @@ export type ActivityListWatchedReposForAuthenticatedUser = ( | Response<403, t_basic_error> > -const teamsListForAuthenticatedUserResponder = { - with200: r.with200, - with304: r.with304, - with403: r.with403, - with404: r.with404, +const teamsListForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_team_full)), + with304: r.with304(z.undefined()), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type TeamsListForAuthenticatedUserResponder = - typeof teamsListForAuthenticatedUserResponder & KoaRuntimeResponder - -const teamsListForAuthenticatedUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_team_full)], - ["304", z.undefined()], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof teamsListForAuthenticatedUser)["responder"] & KoaRuntimeResponder export type TeamsListForAuthenticatedUser = ( params: Params, @@ -35924,21 +28080,16 @@ export type TeamsListForAuthenticatedUser = ( | Response<404, t_basic_error> > -const usersGetByIdResponder = { - with200: r.with200, - with404: r.with404, +const usersGetById = b((r) => ({ + with200: r.with200( + z.union([s_private_user, s_public_user]), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type UsersGetByIdResponder = typeof usersGetByIdResponder & KoaRuntimeResponder +})) -const usersGetByIdResponseValidator = responseValidationFactory( - [ - ["200", z.union([s_private_user, s_public_user])], - ["404", s_basic_error], - ], - undefined, -) +type UsersGetByIdResponder = (typeof usersGetById)["responder"] & + KoaRuntimeResponder export type UsersGetById = ( params: Params, @@ -35950,21 +28101,13 @@ export type UsersGetById = ( | Response<404, t_basic_error> > -const usersListResponder = { - with200: r.with200, - with304: r.with304, +const usersList = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), + with304: r.with304(z.undefined()), withStatus: r.withStatus, -} - -type UsersListResponder = typeof usersListResponder & KoaRuntimeResponder +})) -const usersListResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_simple_user)], - ["304", z.undefined()], - ], - undefined, -) +type UsersListResponder = (typeof usersList)["responder"] & KoaRuntimeResponder export type UsersList = ( params: Params, @@ -35976,23 +28119,17 @@ export type UsersList = ( | Response<304, void> > -const usersGetByUsernameResponder = { - with200: r.with200, - with404: r.with404, +const usersGetByUsername = b((r) => ({ + with200: r.with200( + z.union([s_private_user, s_public_user]), + ), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type UsersGetByUsernameResponder = typeof usersGetByUsernameResponder & +type UsersGetByUsernameResponder = (typeof usersGetByUsername)["responder"] & KoaRuntimeResponder -const usersGetByUsernameResponseValidator = responseValidationFactory( - [ - ["200", z.union([s_private_user, s_public_user])], - ["404", s_basic_error], - ], - undefined, -) - export type UsersGetByUsername = ( params: Params, respond: UsersGetByUsernameResponder, @@ -36003,7 +28140,7 @@ export type UsersGetByUsername = ( | Response<404, t_basic_error> > -const usersListAttestationsResponder = { +const usersListAttestations = b((r) => ({ with200: r.with200<{ attestations?: { bundle?: { @@ -36018,44 +28155,33 @@ const usersListAttestationsResponder = { bundle_url?: string repository_id?: number }[] - }>, - with201: r.with201, - with204: r.with204, - with404: r.with404, + }>( + z.object({ + attestations: z + .array( + z.object({ + bundle: z + .object({ + mediaType: z.string().optional(), + verificationMaterial: z.record(z.unknown()).optional(), + dsseEnvelope: z.record(z.unknown()).optional(), + }) + .optional(), + repository_id: z.coerce.number().optional(), + bundle_url: z.string().optional(), + }), + ) + .optional(), + }), + ), + with201: r.with201(s_empty_object), + with204: r.with204(z.undefined()), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} - -type UsersListAttestationsResponder = typeof usersListAttestationsResponder & - KoaRuntimeResponder +})) -const usersListAttestationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - attestations: z - .array( - z.object({ - bundle: z - .object({ - mediaType: z.string().optional(), - verificationMaterial: z.record(z.unknown()).optional(), - dsseEnvelope: z.record(z.unknown()).optional(), - }) - .optional(), - repository_id: z.coerce.number().optional(), - bundle_url: z.string().optional(), - }), - ) - .optional(), - }), - ], - ["201", s_empty_object], - ["204", z.undefined()], - ["404", s_basic_error], - ], - undefined, -) +type UsersListAttestationsResponder = + (typeof usersListAttestations)["responder"] & KoaRuntimeResponder export type UsersListAttestations = ( params: Params< @@ -36091,27 +28217,17 @@ export type UsersListAttestations = ( | Response<404, t_basic_error> > -const packagesListDockerMigrationConflictingPackagesForUserResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, +const packagesListDockerMigrationConflictingPackagesForUser = b((r) => ({ + with200: r.with200(z.array(s_package)), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesListDockerMigrationConflictingPackagesForUserResponder = - typeof packagesListDockerMigrationConflictingPackagesForUserResponder & + (typeof packagesListDockerMigrationConflictingPackagesForUser)["responder"] & KoaRuntimeResponder -const packagesListDockerMigrationConflictingPackagesForUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package)], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, - ) - export type PackagesListDockerMigrationConflictingPackagesForUser = ( params: Params< t_PackagesListDockerMigrationConflictingPackagesForUserParamSchema, @@ -36128,16 +28244,14 @@ export type PackagesListDockerMigrationConflictingPackagesForUser = ( | Response<403, t_basic_error> > -const activityListEventsForAuthenticatedUserResponder = { - with200: r.with200, +const activityListEventsForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_event)), withStatus: r.withStatus, -} +})) type ActivityListEventsForAuthenticatedUserResponder = - typeof activityListEventsForAuthenticatedUserResponder & KoaRuntimeResponder - -const activityListEventsForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) + (typeof activityListEventsForAuthenticatedUser)["responder"] & + KoaRuntimeResponder export type ActivityListEventsForAuthenticatedUser = ( params: Params< @@ -36150,18 +28264,15 @@ export type ActivityListEventsForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -const activityListOrgEventsForAuthenticatedUserResponder = { - with200: r.with200, +const activityListOrgEventsForAuthenticatedUser = b((r) => ({ + with200: r.with200(z.array(s_event)), withStatus: r.withStatus, -} +})) type ActivityListOrgEventsForAuthenticatedUserResponder = - typeof activityListOrgEventsForAuthenticatedUserResponder & + (typeof activityListOrgEventsForAuthenticatedUser)["responder"] & KoaRuntimeResponder -const activityListOrgEventsForAuthenticatedUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) - export type ActivityListOrgEventsForAuthenticatedUser = ( params: Params< t_ActivityListOrgEventsForAuthenticatedUserParamSchema, @@ -36173,16 +28284,13 @@ export type ActivityListOrgEventsForAuthenticatedUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -const activityListPublicEventsForUserResponder = { - with200: r.with200, +const activityListPublicEventsForUser = b((r) => ({ + with200: r.with200(z.array(s_event)), withStatus: r.withStatus, -} +})) type ActivityListPublicEventsForUserResponder = - typeof activityListPublicEventsForUserResponder & KoaRuntimeResponder - -const activityListPublicEventsForUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) + (typeof activityListPublicEventsForUser)["responder"] & KoaRuntimeResponder export type ActivityListPublicEventsForUser = ( params: Params< @@ -36195,18 +28303,13 @@ export type ActivityListPublicEventsForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -const usersListFollowersForUserResponder = { - with200: r.with200, +const usersListFollowersForUser = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), withStatus: r.withStatus, -} +})) type UsersListFollowersForUserResponder = - typeof usersListFollowersForUserResponder & KoaRuntimeResponder - -const usersListFollowersForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, -) + (typeof usersListFollowersForUser)["responder"] & KoaRuntimeResponder export type UsersListFollowersForUser = ( params: Params< @@ -36219,18 +28322,13 @@ export type UsersListFollowersForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -const usersListFollowingForUserResponder = { - with200: r.with200, +const usersListFollowingForUser = b((r) => ({ + with200: r.with200(z.array(s_simple_user)), withStatus: r.withStatus, -} +})) type UsersListFollowingForUserResponder = - typeof usersListFollowingForUserResponder & KoaRuntimeResponder - -const usersListFollowingForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_simple_user)]], - undefined, -) + (typeof usersListFollowingForUser)["responder"] & KoaRuntimeResponder export type UsersListFollowingForUser = ( params: Params< @@ -36243,22 +28341,14 @@ export type UsersListFollowingForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> -const usersCheckFollowingForUserResponder = { - with204: r.with204, - with404: r.with404, +const usersCheckFollowingForUser = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), withStatus: r.withStatus, -} +})) type UsersCheckFollowingForUserResponder = - typeof usersCheckFollowingForUserResponder & KoaRuntimeResponder - -const usersCheckFollowingForUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - undefined, -) + (typeof usersCheckFollowingForUser)["responder"] & KoaRuntimeResponder export type UsersCheckFollowingForUser = ( params: Params, @@ -36268,23 +28358,15 @@ export type UsersCheckFollowingForUser = ( KoaRuntimeResponse | Response<204, void> | Response<404, void> > -const gistsListForUserResponder = { - with200: r.with200, - with422: r.with422, +const gistsListForUser = b((r) => ({ + with200: r.with200(z.array(s_base_gist)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type GistsListForUserResponder = typeof gistsListForUserResponder & +type GistsListForUserResponder = (typeof gistsListForUser)["responder"] & KoaRuntimeResponder -const gistsListForUserResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_base_gist)], - ["422", s_validation_error], - ], - undefined, -) - export type GistsListForUser = ( params: Params< t_GistsListForUserParamSchema, @@ -36300,18 +28382,13 @@ export type GistsListForUser = ( | Response<422, t_validation_error> > -const usersListGpgKeysForUserResponder = { - with200: r.with200, +const usersListGpgKeysForUser = b((r) => ({ + with200: r.with200(z.array(s_gpg_key)), withStatus: r.withStatus, -} +})) type UsersListGpgKeysForUserResponder = - typeof usersListGpgKeysForUserResponder & KoaRuntimeResponder - -const usersListGpgKeysForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_gpg_key)]], - undefined, -) + (typeof usersListGpgKeysForUser)["responder"] & KoaRuntimeResponder export type UsersListGpgKeysForUser = ( params: Params< @@ -36324,24 +28401,15 @@ export type UsersListGpgKeysForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_gpg_key[]>> -const usersGetContextForUserResponder = { - with200: r.with200, - with404: r.with404, - with422: r.with422, +const usersGetContextForUser = b((r) => ({ + with200: r.with200(s_hovercard), + with404: r.with404(s_basic_error), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} - -type UsersGetContextForUserResponder = typeof usersGetContextForUserResponder & - KoaRuntimeResponder +})) -const usersGetContextForUserResponseValidator = responseValidationFactory( - [ - ["200", s_hovercard], - ["404", s_basic_error], - ["422", s_validation_error], - ], - undefined, -) +type UsersGetContextForUserResponder = + (typeof usersGetContextForUser)["responder"] & KoaRuntimeResponder export type UsersGetContextForUser = ( params: Params< @@ -36359,18 +28427,13 @@ export type UsersGetContextForUser = ( | Response<422, t_validation_error> > -const appsGetUserInstallationResponder = { - with200: r.with200, +const appsGetUserInstallation = b((r) => ({ + with200: r.with200(s_installation), withStatus: r.withStatus, -} +})) type AppsGetUserInstallationResponder = - typeof appsGetUserInstallationResponder & KoaRuntimeResponder - -const appsGetUserInstallationResponseValidator = responseValidationFactory( - [["200", s_installation]], - undefined, -) + (typeof appsGetUserInstallation)["responder"] & KoaRuntimeResponder export type AppsGetUserInstallation = ( params: Params, @@ -36378,18 +28441,13 @@ export type AppsGetUserInstallation = ( ctx: RouterContext, ) => Promise | Response<200, t_installation>> -const usersListPublicKeysForUserResponder = { - with200: r.with200, +const usersListPublicKeysForUser = b((r) => ({ + with200: r.with200(z.array(s_key_simple)), withStatus: r.withStatus, -} +})) type UsersListPublicKeysForUserResponder = - typeof usersListPublicKeysForUserResponder & KoaRuntimeResponder - -const usersListPublicKeysForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_key_simple)]], - undefined, -) + (typeof usersListPublicKeysForUser)["responder"] & KoaRuntimeResponder export type UsersListPublicKeysForUser = ( params: Params< @@ -36402,19 +28460,14 @@ export type UsersListPublicKeysForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_key_simple[]>> -const orgsListForUserResponder = { - with200: r.with200, +const orgsListForUser = b((r) => ({ + with200: r.with200(z.array(s_organization_simple)), withStatus: r.withStatus, -} +})) -type OrgsListForUserResponder = typeof orgsListForUserResponder & +type OrgsListForUserResponder = (typeof orgsListForUser)["responder"] & KoaRuntimeResponder -const orgsListForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_organization_simple)]], - undefined, -) - export type OrgsListForUser = ( params: Params< t_OrgsListForUserParamSchema, @@ -36428,26 +28481,16 @@ export type OrgsListForUser = ( KoaRuntimeResponse | Response<200, t_organization_simple[]> > -const packagesListPackagesForUserResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, +const packagesListPackagesForUser = b((r) => ({ + with200: r.with200(z.array(s_package)), + with400: r.with400(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesListPackagesForUserResponder = - typeof packagesListPackagesForUserResponder & KoaRuntimeResponder - -const packagesListPackagesForUserResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_package)], - ["400", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ], - undefined, -) + (typeof packagesListPackagesForUser)["responder"] & KoaRuntimeResponder export type PackagesListPackagesForUser = ( params: Params< @@ -36466,18 +28509,13 @@ export type PackagesListPackagesForUser = ( | Response<403, t_basic_error> > -const packagesGetPackageForUserResponder = { - with200: r.with200, +const packagesGetPackageForUser = b((r) => ({ + with200: r.with200(s_package), withStatus: r.withStatus, -} +})) type PackagesGetPackageForUserResponder = - typeof packagesGetPackageForUserResponder & KoaRuntimeResponder - -const packagesGetPackageForUserResponseValidator = responseValidationFactory( - [["200", s_package]], - undefined, -) + (typeof packagesGetPackageForUser)["responder"] & KoaRuntimeResponder export type PackagesGetPackageForUser = ( params: Params, @@ -36485,26 +28523,16 @@ export type PackagesGetPackageForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_package>> -const packagesDeletePackageForUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesDeletePackageForUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesDeletePackageForUserResponder = - typeof packagesDeletePackageForUserResponder & KoaRuntimeResponder - -const packagesDeletePackageForUserResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, -) + (typeof packagesDeletePackageForUser)["responder"] & KoaRuntimeResponder export type PackagesDeletePackageForUser = ( params: Params, @@ -36518,27 +28546,16 @@ export type PackagesDeletePackageForUser = ( | Response<404, t_basic_error> > -const packagesRestorePackageForUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesRestorePackageForUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesRestorePackageForUserResponder = - typeof packagesRestorePackageForUserResponder & KoaRuntimeResponder - -const packagesRestorePackageForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof packagesRestorePackageForUser)["responder"] & KoaRuntimeResponder export type PackagesRestorePackageForUser = ( params: Params< @@ -36557,29 +28574,18 @@ export type PackagesRestorePackageForUser = ( | Response<404, t_basic_error> > -const packagesGetAllPackageVersionsForPackageOwnedByUserResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesGetAllPackageVersionsForPackageOwnedByUser = b((r) => ({ + with200: r.with200(z.array(s_package_version)), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesGetAllPackageVersionsForPackageOwnedByUserResponder = - typeof packagesGetAllPackageVersionsForPackageOwnedByUserResponder & + (typeof packagesGetAllPackageVersionsForPackageOwnedByUser)["responder"] & KoaRuntimeResponder -const packagesGetAllPackageVersionsForPackageOwnedByUserResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_package_version)], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) - export type PackagesGetAllPackageVersionsForPackageOwnedByUser = ( params: Params< t_PackagesGetAllPackageVersionsForPackageOwnedByUserParamSchema, @@ -36597,16 +28603,13 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByUser = ( | Response<404, t_basic_error> > -const packagesGetPackageVersionForUserResponder = { - with200: r.with200, +const packagesGetPackageVersionForUser = b((r) => ({ + with200: r.with200(s_package_version), withStatus: r.withStatus, -} +})) type PackagesGetPackageVersionForUserResponder = - typeof packagesGetPackageVersionForUserResponder & KoaRuntimeResponder - -const packagesGetPackageVersionForUserResponseValidator = - responseValidationFactory([["200", s_package_version]], undefined) + (typeof packagesGetPackageVersionForUser)["responder"] & KoaRuntimeResponder export type PackagesGetPackageVersionForUser = ( params: Params< @@ -36619,27 +28622,17 @@ export type PackagesGetPackageVersionForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_package_version>> -const packagesDeletePackageVersionForUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesDeletePackageVersionForUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesDeletePackageVersionForUserResponder = - typeof packagesDeletePackageVersionForUserResponder & KoaRuntimeResponder - -const packagesDeletePackageVersionForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof packagesDeletePackageVersionForUser)["responder"] & + KoaRuntimeResponder export type PackagesDeletePackageVersionForUser = ( params: Params< @@ -36658,27 +28651,17 @@ export type PackagesDeletePackageVersionForUser = ( | Response<404, t_basic_error> > -const packagesRestorePackageVersionForUserResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const packagesRestorePackageVersionForUser = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_basic_error), + with403: r.with403(s_basic_error), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) type PackagesRestorePackageVersionForUserResponder = - typeof packagesRestorePackageVersionForUserResponder & KoaRuntimeResponder - -const packagesRestorePackageVersionForUserResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_basic_error], - ["403", s_basic_error], - ["404", s_basic_error], - ], - undefined, - ) + (typeof packagesRestorePackageVersionForUser)["responder"] & + KoaRuntimeResponder export type PackagesRestorePackageVersionForUser = ( params: Params< @@ -36697,23 +28680,15 @@ export type PackagesRestorePackageVersionForUser = ( | Response<404, t_basic_error> > -const projectsListForUserResponder = { - with200: r.with200, - with422: r.with422, +const projectsListForUser = b((r) => ({ + with200: r.with200(z.array(s_project)), + with422: r.with422(s_validation_error), withStatus: r.withStatus, -} +})) -type ProjectsListForUserResponder = typeof projectsListForUserResponder & +type ProjectsListForUserResponder = (typeof projectsListForUser)["responder"] & KoaRuntimeResponder -const projectsListForUserResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_project)], - ["422", s_validation_error], - ], - undefined, -) - export type ProjectsListForUser = ( params: Params< t_ProjectsListForUserParamSchema, @@ -36729,16 +28704,13 @@ export type ProjectsListForUser = ( | Response<422, t_validation_error> > -const activityListReceivedEventsForUserResponder = { - with200: r.with200, +const activityListReceivedEventsForUser = b((r) => ({ + with200: r.with200(z.array(s_event)), withStatus: r.withStatus, -} +})) type ActivityListReceivedEventsForUserResponder = - typeof activityListReceivedEventsForUserResponder & KoaRuntimeResponder - -const activityListReceivedEventsForUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) + (typeof activityListReceivedEventsForUser)["responder"] & KoaRuntimeResponder export type ActivityListReceivedEventsForUser = ( params: Params< @@ -36751,16 +28723,14 @@ export type ActivityListReceivedEventsForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -const activityListReceivedPublicEventsForUserResponder = { - with200: r.with200, +const activityListReceivedPublicEventsForUser = b((r) => ({ + with200: r.with200(z.array(s_event)), withStatus: r.withStatus, -} +})) type ActivityListReceivedPublicEventsForUserResponder = - typeof activityListReceivedPublicEventsForUserResponder & KoaRuntimeResponder - -const activityListReceivedPublicEventsForUserResponseValidator = - responseValidationFactory([["200", z.array(s_event)]], undefined) + (typeof activityListReceivedPublicEventsForUser)["responder"] & + KoaRuntimeResponder export type ActivityListReceivedPublicEventsForUser = ( params: Params< @@ -36773,19 +28743,14 @@ export type ActivityListReceivedPublicEventsForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_event[]>> -const reposListForUserResponder = { - with200: r.with200, +const reposListForUser = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), withStatus: r.withStatus, -} +})) -type ReposListForUserResponder = typeof reposListForUserResponder & +type ReposListForUserResponder = (typeof reposListForUser)["responder"] & KoaRuntimeResponder -const reposListForUserResponseValidator = responseValidationFactory( - [["200", z.array(s_minimal_repository)]], - undefined, -) - export type ReposListForUser = ( params: Params< t_ReposListForUserParamSchema, @@ -36799,16 +28764,13 @@ export type ReposListForUser = ( KoaRuntimeResponse | Response<200, t_minimal_repository[]> > -const billingGetGithubActionsBillingUserResponder = { - with200: r.with200, +const billingGetGithubActionsBillingUser = b((r) => ({ + with200: r.with200(s_actions_billing_usage), withStatus: r.withStatus, -} +})) type BillingGetGithubActionsBillingUserResponder = - typeof billingGetGithubActionsBillingUserResponder & KoaRuntimeResponder - -const billingGetGithubActionsBillingUserResponseValidator = - responseValidationFactory([["200", s_actions_billing_usage]], undefined) + (typeof billingGetGithubActionsBillingUser)["responder"] & KoaRuntimeResponder export type BillingGetGithubActionsBillingUser = ( params: Params< @@ -36823,16 +28785,14 @@ export type BillingGetGithubActionsBillingUser = ( KoaRuntimeResponse | Response<200, t_actions_billing_usage> > -const billingGetGithubPackagesBillingUserResponder = { - with200: r.with200, +const billingGetGithubPackagesBillingUser = b((r) => ({ + with200: r.with200(s_packages_billing_usage), withStatus: r.withStatus, -} +})) type BillingGetGithubPackagesBillingUserResponder = - typeof billingGetGithubPackagesBillingUserResponder & KoaRuntimeResponder - -const billingGetGithubPackagesBillingUserResponseValidator = - responseValidationFactory([["200", s_packages_billing_usage]], undefined) + (typeof billingGetGithubPackagesBillingUser)["responder"] & + KoaRuntimeResponder export type BillingGetGithubPackagesBillingUser = ( params: Params< @@ -36847,16 +28807,13 @@ export type BillingGetGithubPackagesBillingUser = ( KoaRuntimeResponse | Response<200, t_packages_billing_usage> > -const billingGetSharedStorageBillingUserResponder = { - with200: r.with200, +const billingGetSharedStorageBillingUser = b((r) => ({ + with200: r.with200(s_combined_billing_usage), withStatus: r.withStatus, -} +})) type BillingGetSharedStorageBillingUserResponder = - typeof billingGetSharedStorageBillingUserResponder & KoaRuntimeResponder - -const billingGetSharedStorageBillingUserResponseValidator = - responseValidationFactory([["200", s_combined_billing_usage]], undefined) + (typeof billingGetSharedStorageBillingUser)["responder"] & KoaRuntimeResponder export type BillingGetSharedStorageBillingUser = ( params: Params< @@ -36871,16 +28828,13 @@ export type BillingGetSharedStorageBillingUser = ( KoaRuntimeResponse | Response<200, t_combined_billing_usage> > -const usersListSocialAccountsForUserResponder = { - with200: r.with200, +const usersListSocialAccountsForUser = b((r) => ({ + with200: r.with200(z.array(s_social_account)), withStatus: r.withStatus, -} +})) type UsersListSocialAccountsForUserResponder = - typeof usersListSocialAccountsForUserResponder & KoaRuntimeResponder - -const usersListSocialAccountsForUserResponseValidator = - responseValidationFactory([["200", z.array(s_social_account)]], undefined) + (typeof usersListSocialAccountsForUser)["responder"] & KoaRuntimeResponder export type UsersListSocialAccountsForUser = ( params: Params< @@ -36893,16 +28847,13 @@ export type UsersListSocialAccountsForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_social_account[]>> -const usersListSshSigningKeysForUserResponder = { - with200: r.with200, +const usersListSshSigningKeysForUser = b((r) => ({ + with200: r.with200(z.array(s_ssh_signing_key)), withStatus: r.withStatus, -} +})) type UsersListSshSigningKeysForUserResponder = - typeof usersListSshSigningKeysForUserResponder & KoaRuntimeResponder - -const usersListSshSigningKeysForUserResponseValidator = - responseValidationFactory([["200", z.array(s_ssh_signing_key)]], undefined) + (typeof usersListSshSigningKeysForUser)["responder"] & KoaRuntimeResponder export type UsersListSshSigningKeysForUser = ( params: Params< @@ -36915,19 +28866,15 @@ export type UsersListSshSigningKeysForUser = ( ctx: RouterContext, ) => Promise | Response<200, t_ssh_signing_key[]>> -const activityListReposStarredByUserResponder = { - with200: r.with200, +const activityListReposStarredByUser = b((r) => ({ + with200: r.with200( + z.union([z.array(s_starred_repository), z.array(s_repository)]), + ), withStatus: r.withStatus, -} +})) type ActivityListReposStarredByUserResponder = - typeof activityListReposStarredByUserResponder & KoaRuntimeResponder - -const activityListReposStarredByUserResponseValidator = - responseValidationFactory( - [["200", z.union([z.array(s_starred_repository), z.array(s_repository)])]], - undefined, - ) + (typeof activityListReposStarredByUser)["responder"] & KoaRuntimeResponder export type ActivityListReposStarredByUser = ( params: Params< @@ -36943,16 +28890,13 @@ export type ActivityListReposStarredByUser = ( | Response<200, t_starred_repository[] | t_repository[]> > -const activityListReposWatchedByUserResponder = { - with200: r.with200, +const activityListReposWatchedByUser = b((r) => ({ + with200: r.with200(z.array(s_minimal_repository)), withStatus: r.withStatus, -} +})) type ActivityListReposWatchedByUserResponder = - typeof activityListReposWatchedByUserResponder & KoaRuntimeResponder - -const activityListReposWatchedByUserResponseValidator = - responseValidationFactory([["200", z.array(s_minimal_repository)]], undefined) + (typeof activityListReposWatchedByUser)["responder"] & KoaRuntimeResponder export type ActivityListReposWatchedByUser = ( params: Params< @@ -36967,23 +28911,15 @@ export type ActivityListReposWatchedByUser = ( KoaRuntimeResponse | Response<200, t_minimal_repository[]> > -const metaGetAllVersionsResponder = { - with200: r.with200, - with404: r.with404, +const metaGetAllVersions = b((r) => ({ + with200: r.with200(z.array(z.string())), + with404: r.with404(s_basic_error), withStatus: r.withStatus, -} +})) -type MetaGetAllVersionsResponder = typeof metaGetAllVersionsResponder & +type MetaGetAllVersionsResponder = (typeof metaGetAllVersions)["responder"] & KoaRuntimeResponder -const metaGetAllVersionsResponseValidator = responseValidationFactory( - [ - ["200", z.array(z.string())], - ["404", s_basic_error], - ], - undefined, -) - export type MetaGetAllVersions = ( params: Params, respond: MetaGetAllVersionsResponder, @@ -36994,17 +28930,13 @@ export type MetaGetAllVersions = ( | Response<404, t_basic_error> > -const metaGetZenResponder = { - with200: r.with200, +const metaGetZen = b((r) => ({ + with200: r.with200(z.string()), withStatus: r.withStatus, -} - -type MetaGetZenResponder = typeof metaGetZenResponder & KoaRuntimeResponder +})) -const metaGetZenResponseValidator = responseValidationFactory( - [["200", z.string()]], - undefined, -) +type MetaGetZenResponder = (typeof metaGetZen)["responder"] & + KoaRuntimeResponder export type MetaGetZen = ( params: Params, @@ -38053,7 +29985,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .metaRoot(input, metaRootResponder, ctx) + .metaRoot(input, metaRoot.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38061,7 +29993,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = metaRootResponseValidator(status, body) + ctx.body = metaRoot.validator(status, body) ctx.status = status return next() }) @@ -38113,7 +30045,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesListGlobalAdvisories( input, - securityAdvisoriesListGlobalAdvisoriesResponder, + securityAdvisoriesListGlobalAdvisories.responder, ctx, ) .catch((err) => { @@ -38123,10 +30055,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = securityAdvisoriesListGlobalAdvisoriesResponseValidator( - status, - body, - ) + ctx.body = securityAdvisoriesListGlobalAdvisories.validator(status, body) ctx.status = status return next() }, @@ -38154,7 +30083,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesGetGlobalAdvisory( input, - securityAdvisoriesGetGlobalAdvisoryResponder, + securityAdvisoriesGetGlobalAdvisory.responder, ctx, ) .catch((err) => { @@ -38164,10 +30093,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = securityAdvisoriesGetGlobalAdvisoryResponseValidator( - status, - body, - ) + ctx.body = securityAdvisoriesGetGlobalAdvisory.validator(status, body) ctx.status = status return next() }, @@ -38182,7 +30108,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsGetAuthenticated(input, appsGetAuthenticatedResponder, ctx) + .appsGetAuthenticated(input, appsGetAuthenticated.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38190,7 +30116,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetAuthenticatedResponseValidator(status, body) + ctx.body = appsGetAuthenticated.validator(status, body) ctx.status = status return next() }) @@ -38213,7 +30139,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsCreateFromManifest(input, appsCreateFromManifestResponder, ctx) + .appsCreateFromManifest(input, appsCreateFromManifest.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38221,7 +30147,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsCreateFromManifestResponseValidator(status, body) + ctx.body = appsCreateFromManifest.validator(status, body) ctx.status = status return next() }, @@ -38241,7 +30167,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsGetWebhookConfigForApp( input, - appsGetWebhookConfigForAppResponder, + appsGetWebhookConfigForApp.responder, ctx, ) .catch((err) => { @@ -38251,7 +30177,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetWebhookConfigForAppResponseValidator(status, body) + ctx.body = appsGetWebhookConfigForApp.validator(status, body) ctx.status = status return next() }, @@ -38282,7 +30208,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsUpdateWebhookConfigForApp( input, - appsUpdateWebhookConfigForAppResponder, + appsUpdateWebhookConfigForApp.responder, ctx, ) .catch((err) => { @@ -38292,7 +30218,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsUpdateWebhookConfigForAppResponseValidator(status, body) + ctx.body = appsUpdateWebhookConfigForApp.validator(status, body) ctx.status = status return next() }, @@ -38321,7 +30247,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsListWebhookDeliveries( input, - appsListWebhookDeliveriesResponder, + appsListWebhookDeliveries.responder, ctx, ) .catch((err) => { @@ -38331,7 +30257,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListWebhookDeliveriesResponseValidator(status, body) + ctx.body = appsListWebhookDeliveries.validator(status, body) ctx.status = status return next() }, @@ -38357,7 +30283,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsGetWebhookDelivery(input, appsGetWebhookDeliveryResponder, ctx) + .appsGetWebhookDelivery(input, appsGetWebhookDelivery.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38365,7 +30291,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetWebhookDeliveryResponseValidator(status, body) + ctx.body = appsGetWebhookDelivery.validator(status, body) ctx.status = status return next() }, @@ -38393,7 +30319,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsRedeliverWebhookDelivery( input, - appsRedeliverWebhookDeliveryResponder, + appsRedeliverWebhookDelivery.responder, ctx, ) .catch((err) => { @@ -38403,7 +30329,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsRedeliverWebhookDeliveryResponseValidator(status, body) + ctx.body = appsRedeliverWebhookDelivery.validator(status, body) ctx.status = status return next() }, @@ -38432,7 +30358,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsListInstallationRequestsForAuthenticatedApp( input, - appsListInstallationRequestsForAuthenticatedAppResponder, + appsListInstallationRequestsForAuthenticatedApp.responder, ctx, ) .catch((err) => { @@ -38442,11 +30368,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - appsListInstallationRequestsForAuthenticatedAppResponseValidator( - status, - body, - ) + ctx.body = appsListInstallationRequestsForAuthenticatedApp.validator( + status, + body, + ) ctx.status = status return next() }, @@ -38475,7 +30400,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsListInstallations(input, appsListInstallationsResponder, ctx) + .appsListInstallations(input, appsListInstallations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38483,7 +30408,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListInstallationsResponseValidator(status, body) + ctx.body = appsListInstallations.validator(status, body) ctx.status = status return next() }, @@ -38509,7 +30434,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsGetInstallation(input, appsGetInstallationResponder, ctx) + .appsGetInstallation(input, appsGetInstallation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38517,7 +30442,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetInstallationResponseValidator(status, body) + ctx.body = appsGetInstallation.validator(status, body) ctx.status = status return next() }, @@ -38543,7 +30468,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsDeleteInstallation(input, appsDeleteInstallationResponder, ctx) + .appsDeleteInstallation(input, appsDeleteInstallation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38551,7 +30476,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsDeleteInstallationResponseValidator(status, body) + ctx.body = appsDeleteInstallation.validator(status, body) ctx.status = status return next() }, @@ -38591,7 +30516,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsCreateInstallationAccessToken( input, - appsCreateInstallationAccessTokenResponder, + appsCreateInstallationAccessToken.responder, ctx, ) .catch((err) => { @@ -38601,10 +30526,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsCreateInstallationAccessTokenResponseValidator( - status, - body, - ) + ctx.body = appsCreateInstallationAccessToken.validator(status, body) ctx.status = status return next() }, @@ -38630,7 +30552,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsSuspendInstallation(input, appsSuspendInstallationResponder, ctx) + .appsSuspendInstallation(input, appsSuspendInstallation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38638,7 +30560,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsSuspendInstallationResponseValidator(status, body) + ctx.body = appsSuspendInstallation.validator(status, body) ctx.status = status return next() }, @@ -38666,7 +30588,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsUnsuspendInstallation( input, - appsUnsuspendInstallationResponder, + appsUnsuspendInstallation.responder, ctx, ) .catch((err) => { @@ -38676,7 +30598,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsUnsuspendInstallationResponseValidator(status, body) + ctx.body = appsUnsuspendInstallation.validator(status, body) ctx.status = status return next() }, @@ -38708,7 +30630,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsDeleteAuthorization(input, appsDeleteAuthorizationResponder, ctx) + .appsDeleteAuthorization(input, appsDeleteAuthorization.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38716,7 +30638,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsDeleteAuthorizationResponseValidator(status, body) + ctx.body = appsDeleteAuthorization.validator(status, body) ctx.status = status return next() }, @@ -38746,7 +30668,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsCheckToken(input, appsCheckTokenResponder, ctx) + .appsCheckToken(input, appsCheckToken.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38754,7 +30676,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsCheckTokenResponseValidator(status, body) + ctx.body = appsCheckToken.validator(status, body) ctx.status = status return next() }, @@ -38784,7 +30706,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsResetToken(input, appsResetTokenResponder, ctx) + .appsResetToken(input, appsResetToken.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38792,7 +30714,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsResetTokenResponseValidator(status, body) + ctx.body = appsResetToken.validator(status, body) ctx.status = status return next() }, @@ -38822,7 +30744,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsDeleteToken(input, appsDeleteTokenResponder, ctx) + .appsDeleteToken(input, appsDeleteToken.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38830,7 +30752,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsDeleteTokenResponseValidator(status, body) + ctx.body = appsDeleteToken.validator(status, body) ctx.status = status return next() }, @@ -38867,7 +30789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsScopeToken(input, appsScopeTokenResponder, ctx) + .appsScopeToken(input, appsScopeToken.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38875,7 +30797,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsScopeTokenResponseValidator(status, body) + ctx.body = appsScopeToken.validator(status, body) ctx.status = status return next() }, @@ -38896,7 +30818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsGetBySlug(input, appsGetBySlugResponder, ctx) + .appsGetBySlug(input, appsGetBySlug.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38904,7 +30826,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetBySlugResponseValidator(status, body) + ctx.body = appsGetBySlug.validator(status, body) ctx.status = status return next() }) @@ -38929,7 +30851,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .classroomGetAnAssignment(input, classroomGetAnAssignmentResponder, ctx) + .classroomGetAnAssignment( + input, + classroomGetAnAssignment.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38937,7 +30863,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = classroomGetAnAssignmentResponseValidator(status, body) + ctx.body = classroomGetAnAssignment.validator(status, body) ctx.status = status return next() }, @@ -38974,7 +30900,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .classroomListAcceptedAssignmentsForAnAssignment( input, - classroomListAcceptedAssignmentsForAnAssignmentResponder, + classroomListAcceptedAssignmentsForAnAssignment.responder, ctx, ) .catch((err) => { @@ -38984,11 +30910,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - classroomListAcceptedAssignmentsForAnAssignmentResponseValidator( - status, - body, - ) + ctx.body = classroomListAcceptedAssignmentsForAnAssignment.validator( + status, + body, + ) ctx.status = status return next() }, @@ -39016,7 +30941,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .classroomGetAssignmentGrades( input, - classroomGetAssignmentGradesResponder, + classroomGetAssignmentGrades.responder, ctx, ) .catch((err) => { @@ -39026,7 +30951,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = classroomGetAssignmentGradesResponseValidator(status, body) + ctx.body = classroomGetAssignmentGrades.validator(status, body) ctx.status = status return next() }, @@ -39050,7 +30975,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .classroomListClassrooms(input, classroomListClassroomsResponder, ctx) + .classroomListClassrooms(input, classroomListClassrooms.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39058,7 +30983,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = classroomListClassroomsResponseValidator(status, body) + ctx.body = classroomListClassrooms.validator(status, body) ctx.status = status return next() }) @@ -39083,7 +31008,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .classroomGetAClassroom(input, classroomGetAClassroomResponder, ctx) + .classroomGetAClassroom(input, classroomGetAClassroom.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39091,7 +31016,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = classroomGetAClassroomResponseValidator(status, body) + ctx.body = classroomGetAClassroom.validator(status, body) ctx.status = status return next() }, @@ -39128,7 +31053,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .classroomListAssignmentsForAClassroom( input, - classroomListAssignmentsForAClassroomResponder, + classroomListAssignmentsForAClassroom.responder, ctx, ) .catch((err) => { @@ -39138,10 +31063,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = classroomListAssignmentsForAClassroomResponseValidator( - status, - body, - ) + ctx.body = classroomListAssignmentsForAClassroom.validator(status, body) ctx.status = status return next() }, @@ -39161,7 +31083,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codesOfConductGetAllCodesOfConduct( input, - codesOfConductGetAllCodesOfConductResponder, + codesOfConductGetAllCodesOfConduct.responder, ctx, ) .catch((err) => { @@ -39171,10 +31093,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codesOfConductGetAllCodesOfConductResponseValidator( - status, - body, - ) + ctx.body = codesOfConductGetAllCodesOfConduct.validator(status, body) ctx.status = status return next() }, @@ -39200,7 +31119,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codesOfConductGetConductCode( input, - codesOfConductGetConductCodeResponder, + codesOfConductGetConductCode.responder, ctx, ) .catch((err) => { @@ -39210,7 +31129,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codesOfConductGetConductCodeResponseValidator(status, body) + ctx.body = codesOfConductGetConductCode.validator(status, body) ctx.status = status return next() }, @@ -39225,7 +31144,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .emojisGet(input, emojisGetResponder, ctx) + .emojisGet(input, emojisGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39233,7 +31152,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = emojisGetResponseValidator(status, body) + ctx.body = emojisGet.validator(status, body) ctx.status = status return next() }) @@ -39270,7 +31189,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetConfigurationsForEnterprise( input, - codeSecurityGetConfigurationsForEnterpriseResponder, + codeSecurityGetConfigurationsForEnterprise.responder, ctx, ) .catch((err) => { @@ -39280,7 +31199,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityGetConfigurationsForEnterpriseResponseValidator( + ctx.body = codeSecurityGetConfigurationsForEnterprise.validator( status, body, ) @@ -39385,7 +31304,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityCreateConfigurationForEnterprise( input, - codeSecurityCreateConfigurationForEnterpriseResponder, + codeSecurityCreateConfigurationForEnterprise.responder, ctx, ) .catch((err) => { @@ -39395,7 +31314,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityCreateConfigurationForEnterpriseResponseValidator( + ctx.body = codeSecurityCreateConfigurationForEnterprise.validator( status, body, ) @@ -39426,7 +31345,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetDefaultConfigurationsForEnterprise( input, - codeSecurityGetDefaultConfigurationsForEnterpriseResponder, + codeSecurityGetDefaultConfigurationsForEnterprise.responder, ctx, ) .catch((err) => { @@ -39436,11 +31355,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codeSecurityGetDefaultConfigurationsForEnterpriseResponseValidator( - status, - body, - ) + ctx.body = codeSecurityGetDefaultConfigurationsForEnterprise.validator( + status, + body, + ) ctx.status = status return next() }, @@ -39469,7 +31387,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetSingleConfigurationForEnterprise( input, - codeSecurityGetSingleConfigurationForEnterpriseResponder, + codeSecurityGetSingleConfigurationForEnterprise.responder, ctx, ) .catch((err) => { @@ -39479,11 +31397,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codeSecurityGetSingleConfigurationForEnterpriseResponseValidator( - status, - body, - ) + ctx.body = codeSecurityGetSingleConfigurationForEnterprise.validator( + status, + body, + ) ctx.status = status return next() }, @@ -39566,7 +31483,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityUpdateEnterpriseConfiguration( input, - codeSecurityUpdateEnterpriseConfigurationResponder, + codeSecurityUpdateEnterpriseConfiguration.responder, ctx, ) .catch((err) => { @@ -39576,7 +31493,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityUpdateEnterpriseConfigurationResponseValidator( + ctx.body = codeSecurityUpdateEnterpriseConfiguration.validator( status, body, ) @@ -39608,7 +31525,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityDeleteConfigurationForEnterprise( input, - codeSecurityDeleteConfigurationForEnterpriseResponder, + codeSecurityDeleteConfigurationForEnterprise.responder, ctx, ) .catch((err) => { @@ -39618,7 +31535,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityDeleteConfigurationForEnterpriseResponseValidator( + ctx.body = codeSecurityDeleteConfigurationForEnterprise.validator( status, body, ) @@ -39658,7 +31575,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityAttachEnterpriseConfiguration( input, - codeSecurityAttachEnterpriseConfigurationResponder, + codeSecurityAttachEnterpriseConfiguration.responder, ctx, ) .catch((err) => { @@ -39668,7 +31585,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityAttachEnterpriseConfigurationResponseValidator( + ctx.body = codeSecurityAttachEnterpriseConfiguration.validator( status, body, ) @@ -39710,7 +31627,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecuritySetConfigurationAsDefaultForEnterprise( input, - codeSecuritySetConfigurationAsDefaultForEnterpriseResponder, + codeSecuritySetConfigurationAsDefaultForEnterprise.responder, ctx, ) .catch((err) => { @@ -39720,11 +31637,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codeSecuritySetConfigurationAsDefaultForEnterpriseResponseValidator( - status, - body, - ) + ctx.body = codeSecuritySetConfigurationAsDefaultForEnterprise.validator( + status, + body, + ) ctx.status = status return next() }, @@ -39763,7 +31679,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetRepositoriesForEnterpriseConfiguration( input, - codeSecurityGetRepositoriesForEnterpriseConfigurationResponder, + codeSecurityGetRepositoriesForEnterpriseConfiguration.responder, ctx, ) .catch((err) => { @@ -39774,7 +31690,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - codeSecurityGetRepositoriesForEnterpriseConfigurationResponseValidator( + codeSecurityGetRepositoriesForEnterpriseConfiguration.validator( status, body, ) @@ -39828,7 +31744,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotListAlertsForEnterprise( input, - dependabotListAlertsForEnterpriseResponder, + dependabotListAlertsForEnterprise.responder, ctx, ) .catch((err) => { @@ -39838,10 +31754,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotListAlertsForEnterpriseResponseValidator( - status, - body, - ) + ctx.body = dependabotListAlertsForEnterprise.validator(status, body) ctx.status = status return next() }, @@ -39887,7 +31800,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .secretScanningListAlertsForEnterprise( input, - secretScanningListAlertsForEnterpriseResponder, + secretScanningListAlertsForEnterprise.responder, ctx, ) .catch((err) => { @@ -39897,10 +31810,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = secretScanningListAlertsForEnterpriseResponseValidator( - status, - body, - ) + ctx.body = secretScanningListAlertsForEnterprise.validator(status, body) ctx.status = status return next() }, @@ -39924,7 +31834,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .activityListPublicEvents(input, activityListPublicEventsResponder, ctx) + .activityListPublicEvents(input, activityListPublicEvents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39932,7 +31842,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListPublicEventsResponseValidator(status, body) + ctx.body = activityListPublicEvents.validator(status, body) ctx.status = status return next() }) @@ -39946,7 +31856,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .activityGetFeeds(input, activityGetFeedsResponder, ctx) + .activityGetFeeds(input, activityGetFeeds.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39954,7 +31864,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityGetFeedsResponseValidator(status, body) + ctx.body = activityGetFeeds.validator(status, body) ctx.status = status return next() }) @@ -39978,7 +31888,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsList(input, gistsListResponder, ctx) + .gistsList(input, gistsList.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39986,7 +31896,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsListResponseValidator(status, body) + ctx.body = gistsList.validator(status, body) ctx.status = status return next() }) @@ -40015,7 +31925,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsCreate(input, gistsCreateResponder, ctx) + .gistsCreate(input, gistsCreate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40023,7 +31933,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsCreateResponseValidator(status, body) + ctx.body = gistsCreate.validator(status, body) ctx.status = status return next() }) @@ -40047,7 +31957,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsListPublic(input, gistsListPublicResponder, ctx) + .gistsListPublic(input, gistsListPublic.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40055,7 +31965,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsListPublicResponseValidator(status, body) + ctx.body = gistsListPublic.validator(status, body) ctx.status = status return next() }) @@ -40079,7 +31989,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsListStarred(input, gistsListStarredResponder, ctx) + .gistsListStarred(input, gistsListStarred.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40087,7 +31997,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsListStarredResponseValidator(status, body) + ctx.body = gistsListStarred.validator(status, body) ctx.status = status return next() }) @@ -40107,7 +32017,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsGet(input, gistsGetResponder, ctx) + .gistsGet(input, gistsGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40115,7 +32025,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsGetResponseValidator(status, body) + ctx.body = gistsGet.validator(status, body) ctx.status = status return next() }) @@ -40155,7 +32065,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsUpdate(input, gistsUpdateResponder, ctx) + .gistsUpdate(input, gistsUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40163,7 +32073,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsUpdateResponseValidator(status, body) + ctx.body = gistsUpdate.validator(status, body) ctx.status = status return next() }) @@ -40183,7 +32093,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsDelete(input, gistsDeleteResponder, ctx) + .gistsDelete(input, gistsDelete.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40191,7 +32101,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsDeleteResponseValidator(status, body) + ctx.body = gistsDelete.validator(status, body) ctx.status = status return next() }) @@ -40223,7 +32133,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsListComments(input, gistsListCommentsResponder, ctx) + .gistsListComments(input, gistsListComments.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40231,7 +32141,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsListCommentsResponseValidator(status, body) + ctx.body = gistsListComments.validator(status, body) ctx.status = status return next() }, @@ -40261,7 +32171,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsCreateComment(input, gistsCreateCommentResponder, ctx) + .gistsCreateComment(input, gistsCreateComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40269,7 +32179,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsCreateCommentResponseValidator(status, body) + ctx.body = gistsCreateComment.validator(status, body) ctx.status = status return next() }, @@ -40296,7 +32206,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsGetComment(input, gistsGetCommentResponder, ctx) + .gistsGetComment(input, gistsGetComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40304,7 +32214,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsGetCommentResponseValidator(status, body) + ctx.body = gistsGetComment.validator(status, body) ctx.status = status return next() }, @@ -40337,7 +32247,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsUpdateComment(input, gistsUpdateCommentResponder, ctx) + .gistsUpdateComment(input, gistsUpdateComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40345,7 +32255,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsUpdateCommentResponseValidator(status, body) + ctx.body = gistsUpdateComment.validator(status, body) ctx.status = status return next() }, @@ -40372,7 +32282,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsDeleteComment(input, gistsDeleteCommentResponder, ctx) + .gistsDeleteComment(input, gistsDeleteComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40380,7 +32290,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsDeleteCommentResponseValidator(status, body) + ctx.body = gistsDeleteComment.validator(status, body) ctx.status = status return next() }, @@ -40413,7 +32323,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsListCommits(input, gistsListCommitsResponder, ctx) + .gistsListCommits(input, gistsListCommits.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40421,7 +32331,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsListCommitsResponseValidator(status, body) + ctx.body = gistsListCommits.validator(status, body) ctx.status = status return next() }, @@ -40451,7 +32361,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsListForks(input, gistsListForksResponder, ctx) + .gistsListForks(input, gistsListForks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40459,7 +32369,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsListForksResponseValidator(status, body) + ctx.body = gistsListForks.validator(status, body) ctx.status = status return next() }) @@ -40479,7 +32389,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsFork(input, gistsForkResponder, ctx) + .gistsFork(input, gistsFork.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40487,7 +32397,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsForkResponseValidator(status, body) + ctx.body = gistsFork.validator(status, body) ctx.status = status return next() }) @@ -40510,7 +32420,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsCheckIsStarred(input, gistsCheckIsStarredResponder, ctx) + .gistsCheckIsStarred(input, gistsCheckIsStarred.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40518,7 +32428,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsCheckIsStarredResponseValidator(status, body) + ctx.body = gistsCheckIsStarred.validator(status, body) ctx.status = status return next() }, @@ -40539,7 +32449,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsStar(input, gistsStarResponder, ctx) + .gistsStar(input, gistsStar.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40547,7 +32457,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsStarResponseValidator(status, body) + ctx.body = gistsStar.validator(status, body) ctx.status = status return next() }) @@ -40567,7 +32477,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsUnstar(input, gistsUnstarResponder, ctx) + .gistsUnstar(input, gistsUnstar.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40575,7 +32485,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsUnstarResponseValidator(status, body) + ctx.body = gistsUnstar.validator(status, body) ctx.status = status return next() }) @@ -40598,7 +32508,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsGetRevision(input, gistsGetRevisionResponder, ctx) + .gistsGetRevision(input, gistsGetRevision.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40606,7 +32516,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsGetRevisionResponseValidator(status, body) + ctx.body = gistsGetRevision.validator(status, body) ctx.status = status return next() }) @@ -40623,7 +32533,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitignoreGetAllTemplates(input, gitignoreGetAllTemplatesResponder, ctx) + .gitignoreGetAllTemplates( + input, + gitignoreGetAllTemplates.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40631,7 +32545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitignoreGetAllTemplatesResponseValidator(status, body) + ctx.body = gitignoreGetAllTemplates.validator(status, body) ctx.status = status return next() }, @@ -40655,7 +32569,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitignoreGetTemplate(input, gitignoreGetTemplateResponder, ctx) + .gitignoreGetTemplate(input, gitignoreGetTemplate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40663,7 +32577,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitignoreGetTemplateResponseValidator(status, body) + ctx.body = gitignoreGetTemplate.validator(status, body) ctx.status = status return next() }, @@ -40692,7 +32606,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsListReposAccessibleToInstallation( input, - appsListReposAccessibleToInstallationResponder, + appsListReposAccessibleToInstallation.responder, ctx, ) .catch((err) => { @@ -40702,10 +32616,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListReposAccessibleToInstallationResponseValidator( - status, - body, - ) + ctx.body = appsListReposAccessibleToInstallation.validator(status, body) ctx.status = status return next() }, @@ -40725,7 +32636,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsRevokeInstallationAccessToken( input, - appsRevokeInstallationAccessTokenResponder, + appsRevokeInstallationAccessToken.responder, ctx, ) .catch((err) => { @@ -40735,10 +32646,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsRevokeInstallationAccessTokenResponseValidator( - status, - body, - ) + ctx.body = appsRevokeInstallationAccessToken.validator(status, body) ctx.status = status return next() }, @@ -40778,7 +32686,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesList(input, issuesListResponder, ctx) + .issuesList(input, issuesList.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40786,7 +32694,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListResponseValidator(status, body) + ctx.body = issuesList.validator(status, body) ctx.status = status return next() }) @@ -40812,7 +32720,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .licensesGetAllCommonlyUsed( input, - licensesGetAllCommonlyUsedResponder, + licensesGetAllCommonlyUsed.responder, ctx, ) .catch((err) => { @@ -40822,7 +32730,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = licensesGetAllCommonlyUsedResponseValidator(status, body) + ctx.body = licensesGetAllCommonlyUsed.validator(status, body) ctx.status = status return next() }) @@ -40842,7 +32750,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .licensesGet(input, licensesGetResponder, ctx) + .licensesGet(input, licensesGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40850,7 +32758,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = licensesGetResponseValidator(status, body) + ctx.body = licensesGet.validator(status, body) ctx.status = status return next() }) @@ -40874,7 +32782,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .markdownRender(input, markdownRenderResponder, ctx) + .markdownRender(input, markdownRender.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40882,7 +32790,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = markdownRenderResponseValidator(status, body) + ctx.body = markdownRender.validator(status, body) ctx.status = status return next() }) @@ -40902,7 +32810,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .markdownRenderRaw(input, markdownRenderRawResponder, ctx) + .markdownRenderRaw(input, markdownRenderRaw.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40910,7 +32818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = markdownRenderRawResponseValidator(status, body) + ctx.body = markdownRenderRaw.validator(status, body) ctx.status = status return next() }) @@ -40937,7 +32845,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsGetSubscriptionPlanForAccount( input, - appsGetSubscriptionPlanForAccountResponder, + appsGetSubscriptionPlanForAccount.responder, ctx, ) .catch((err) => { @@ -40947,10 +32855,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetSubscriptionPlanForAccountResponseValidator( - status, - body, - ) + ctx.body = appsGetSubscriptionPlanForAccount.validator(status, body) ctx.status = status return next() }, @@ -40977,7 +32882,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsListPlans(input, appsListPlansResponder, ctx) + .appsListPlans(input, appsListPlans.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40985,7 +32890,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListPlansResponseValidator(status, body) + ctx.body = appsListPlans.validator(status, body) ctx.status = status return next() }, @@ -41022,7 +32927,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsListAccountsForPlan(input, appsListAccountsForPlanResponder, ctx) + .appsListAccountsForPlan(input, appsListAccountsForPlan.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41030,7 +32935,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListAccountsForPlanResponseValidator(status, body) + ctx.body = appsListAccountsForPlan.validator(status, body) ctx.status = status return next() }, @@ -41058,7 +32963,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsGetSubscriptionPlanForAccountStubbed( input, - appsGetSubscriptionPlanForAccountStubbedResponder, + appsGetSubscriptionPlanForAccountStubbed.responder, ctx, ) .catch((err) => { @@ -41068,7 +32973,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetSubscriptionPlanForAccountStubbedResponseValidator( + ctx.body = appsGetSubscriptionPlanForAccountStubbed.validator( status, body, ) @@ -41098,7 +33003,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsListPlansStubbed(input, appsListPlansStubbedResponder, ctx) + .appsListPlansStubbed(input, appsListPlansStubbed.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41106,7 +33011,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListPlansStubbedResponseValidator(status, body) + ctx.body = appsListPlansStubbed.validator(status, body) ctx.status = status return next() }, @@ -41145,7 +33050,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsListAccountsForPlanStubbed( input, - appsListAccountsForPlanStubbedResponder, + appsListAccountsForPlanStubbed.responder, ctx, ) .catch((err) => { @@ -41155,7 +33060,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListAccountsForPlanStubbedResponseValidator(status, body) + ctx.body = appsListAccountsForPlanStubbed.validator(status, body) ctx.status = status return next() }, @@ -41170,7 +33075,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .metaGet(input, metaGetResponder, ctx) + .metaGet(input, metaGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41178,7 +33083,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = metaGetResponseValidator(status, body) + ctx.body = metaGet.validator(status, body) ctx.status = status return next() }) @@ -41215,7 +33120,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListPublicEventsForRepoNetwork( input, - activityListPublicEventsForRepoNetworkResponder, + activityListPublicEventsForRepoNetwork.responder, ctx, ) .catch((err) => { @@ -41225,10 +33130,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListPublicEventsForRepoNetworkResponseValidator( - status, - body, - ) + ctx.body = activityListPublicEventsForRepoNetwork.validator(status, body) ctx.status = status return next() }, @@ -41261,7 +33163,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListNotificationsForAuthenticatedUser( input, - activityListNotificationsForAuthenticatedUserResponder, + activityListNotificationsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -41271,7 +33173,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListNotificationsForAuthenticatedUserResponseValidator( + ctx.body = activityListNotificationsForAuthenticatedUser.validator( status, body, ) @@ -41305,7 +33207,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityMarkNotificationsAsRead( input, - activityMarkNotificationsAsReadResponder, + activityMarkNotificationsAsRead.responder, ctx, ) .catch((err) => { @@ -41315,7 +33217,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityMarkNotificationsAsReadResponseValidator(status, body) + ctx.body = activityMarkNotificationsAsRead.validator(status, body) ctx.status = status return next() }, @@ -41341,7 +33243,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .activityGetThread(input, activityGetThreadResponder, ctx) + .activityGetThread(input, activityGetThread.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41349,7 +33251,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityGetThreadResponseValidator(status, body) + ctx.body = activityGetThread.validator(status, body) ctx.status = status return next() }, @@ -41375,7 +33277,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .activityMarkThreadAsRead(input, activityMarkThreadAsReadResponder, ctx) + .activityMarkThreadAsRead( + input, + activityMarkThreadAsRead.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41383,7 +33289,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityMarkThreadAsReadResponseValidator(status, body) + ctx.body = activityMarkThreadAsRead.validator(status, body) ctx.status = status return next() }, @@ -41409,7 +33315,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .activityMarkThreadAsDone(input, activityMarkThreadAsDoneResponder, ctx) + .activityMarkThreadAsDone( + input, + activityMarkThreadAsDone.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41417,7 +33327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityMarkThreadAsDoneResponseValidator(status, body) + ctx.body = activityMarkThreadAsDone.validator(status, body) ctx.status = status return next() }, @@ -41445,7 +33355,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityGetThreadSubscriptionForAuthenticatedUser( input, - activityGetThreadSubscriptionForAuthenticatedUserResponder, + activityGetThreadSubscriptionForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -41455,11 +33365,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - activityGetThreadSubscriptionForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = activityGetThreadSubscriptionForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -41495,7 +33404,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activitySetThreadSubscription( input, - activitySetThreadSubscriptionResponder, + activitySetThreadSubscription.responder, ctx, ) .catch((err) => { @@ -41505,7 +33414,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activitySetThreadSubscriptionResponseValidator(status, body) + ctx.body = activitySetThreadSubscription.validator(status, body) ctx.status = status return next() }, @@ -41533,7 +33442,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityDeleteThreadSubscription( input, - activityDeleteThreadSubscriptionResponder, + activityDeleteThreadSubscription.responder, ctx, ) .catch((err) => { @@ -41543,7 +33452,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityDeleteThreadSubscriptionResponseValidator(status, body) + ctx.body = activityDeleteThreadSubscription.validator(status, body) ctx.status = status return next() }, @@ -41564,7 +33473,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .metaGetOctocat(input, metaGetOctocatResponder, ctx) + .metaGetOctocat(input, metaGetOctocat.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41572,7 +33481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = metaGetOctocatResponseValidator(status, body) + ctx.body = metaGetOctocat.validator(status, body) ctx.status = status return next() }) @@ -41595,7 +33504,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsList(input, orgsListResponder, ctx) + .orgsList(input, orgsList.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41603,7 +33512,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListResponseValidator(status, body) + ctx.body = orgsList.validator(status, body) ctx.status = status return next() }) @@ -41641,7 +33550,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .billingGetGithubBillingUsageReportOrg( input, - billingGetGithubBillingUsageReportOrgResponder, + billingGetGithubBillingUsageReportOrg.responder, ctx, ) .catch((err) => { @@ -41651,10 +33560,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = billingGetGithubBillingUsageReportOrgResponseValidator( - status, - body, - ) + ctx.body = billingGetGithubBillingUsageReportOrg.validator(status, body) ctx.status = status return next() }, @@ -41675,7 +33581,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsGet(input, orgsGetResponder, ctx) + .orgsGet(input, orgsGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41683,7 +33589,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetResponseValidator(status, body) + ctx.body = orgsGet.validator(status, body) ctx.status = status return next() }) @@ -41758,7 +33664,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsUpdate(input, orgsUpdateResponder, ctx) + .orgsUpdate(input, orgsUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41766,7 +33672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsUpdateResponseValidator(status, body) + ctx.body = orgsUpdate.validator(status, body) ctx.status = status return next() }) @@ -41786,7 +33692,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsDelete(input, orgsDeleteResponder, ctx) + .orgsDelete(input, orgsDelete.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41794,7 +33700,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsDeleteResponseValidator(status, body) + ctx.body = orgsDelete.validator(status, body) ctx.status = status return next() }) @@ -41821,7 +33727,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetActionsCacheUsageForOrg( input, - actionsGetActionsCacheUsageForOrgResponder, + actionsGetActionsCacheUsageForOrg.responder, ctx, ) .catch((err) => { @@ -41831,10 +33737,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetActionsCacheUsageForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsGetActionsCacheUsageForOrg.validator(status, body) ctx.status = status return next() }, @@ -41871,7 +33774,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetActionsCacheUsageByRepoForOrg( input, - actionsGetActionsCacheUsageByRepoForOrgResponder, + actionsGetActionsCacheUsageByRepoForOrg.responder, ctx, ) .catch((err) => { @@ -41881,10 +33784,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetActionsCacheUsageByRepoForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsGetActionsCacheUsageByRepoForOrg.validator(status, body) ctx.status = status return next() }, @@ -41921,7 +33821,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListHostedRunnersForOrg( input, - actionsListHostedRunnersForOrgResponder, + actionsListHostedRunnersForOrg.responder, ctx, ) .catch((err) => { @@ -41931,7 +33831,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListHostedRunnersForOrgResponseValidator(status, body) + ctx.body = actionsListHostedRunnersForOrg.validator(status, body) ctx.status = status return next() }, @@ -41975,7 +33875,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateHostedRunnerForOrg( input, - actionsCreateHostedRunnerForOrgResponder, + actionsCreateHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -41985,7 +33885,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateHostedRunnerForOrgResponseValidator(status, body) + ctx.body = actionsCreateHostedRunnerForOrg.validator(status, body) ctx.status = status return next() }, @@ -42013,7 +33913,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetHostedRunnersGithubOwnedImagesForOrg( input, - actionsGetHostedRunnersGithubOwnedImagesForOrgResponder, + actionsGetHostedRunnersGithubOwnedImagesForOrg.responder, ctx, ) .catch((err) => { @@ -42023,11 +33923,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsGetHostedRunnersGithubOwnedImagesForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsGetHostedRunnersGithubOwnedImagesForOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -42055,7 +33954,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetHostedRunnersPartnerImagesForOrg( input, - actionsGetHostedRunnersPartnerImagesForOrgResponder, + actionsGetHostedRunnersPartnerImagesForOrg.responder, ctx, ) .catch((err) => { @@ -42065,7 +33964,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetHostedRunnersPartnerImagesForOrgResponseValidator( + ctx.body = actionsGetHostedRunnersPartnerImagesForOrg.validator( status, body, ) @@ -42096,7 +33995,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetHostedRunnersLimitsForOrg( input, - actionsGetHostedRunnersLimitsForOrgResponder, + actionsGetHostedRunnersLimitsForOrg.responder, ctx, ) .catch((err) => { @@ -42106,10 +34005,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetHostedRunnersLimitsForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsGetHostedRunnersLimitsForOrg.validator(status, body) ctx.status = status return next() }, @@ -42137,7 +34033,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetHostedRunnersMachineSpecsForOrg( input, - actionsGetHostedRunnersMachineSpecsForOrgResponder, + actionsGetHostedRunnersMachineSpecsForOrg.responder, ctx, ) .catch((err) => { @@ -42147,7 +34043,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetHostedRunnersMachineSpecsForOrgResponseValidator( + ctx.body = actionsGetHostedRunnersMachineSpecsForOrg.validator( status, body, ) @@ -42178,7 +34074,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetHostedRunnersPlatformsForOrg( input, - actionsGetHostedRunnersPlatformsForOrgResponder, + actionsGetHostedRunnersPlatformsForOrg.responder, ctx, ) .catch((err) => { @@ -42188,10 +34084,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetHostedRunnersPlatformsForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsGetHostedRunnersPlatformsForOrg.validator(status, body) ctx.status = status return next() }, @@ -42220,7 +34113,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetHostedRunnerForOrg( input, - actionsGetHostedRunnerForOrgResponder, + actionsGetHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -42230,7 +34123,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetHostedRunnerForOrgResponseValidator(status, body) + ctx.body = actionsGetHostedRunnerForOrg.validator(status, body) ctx.status = status return next() }, @@ -42270,7 +34163,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsUpdateHostedRunnerForOrg( input, - actionsUpdateHostedRunnerForOrgResponder, + actionsUpdateHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -42280,7 +34173,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsUpdateHostedRunnerForOrgResponseValidator(status, body) + ctx.body = actionsUpdateHostedRunnerForOrg.validator(status, body) ctx.status = status return next() }, @@ -42309,7 +34202,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteHostedRunnerForOrg( input, - actionsDeleteHostedRunnerForOrgResponder, + actionsDeleteHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -42319,7 +34212,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteHostedRunnerForOrgResponseValidator(status, body) + ctx.body = actionsDeleteHostedRunnerForOrg.validator(status, body) ctx.status = status return next() }, @@ -42347,7 +34240,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .oidcGetOidcCustomSubTemplateForOrg( input, - oidcGetOidcCustomSubTemplateForOrgResponder, + oidcGetOidcCustomSubTemplateForOrg.responder, ctx, ) .catch((err) => { @@ -42357,10 +34250,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = oidcGetOidcCustomSubTemplateForOrgResponseValidator( - status, - body, - ) + ctx.body = oidcGetOidcCustomSubTemplateForOrg.validator(status, body) ctx.status = status return next() }, @@ -42394,7 +34284,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .oidcUpdateOidcCustomSubTemplateForOrg( input, - oidcUpdateOidcCustomSubTemplateForOrgResponder, + oidcUpdateOidcCustomSubTemplateForOrg.responder, ctx, ) .catch((err) => { @@ -42404,10 +34294,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = oidcUpdateOidcCustomSubTemplateForOrgResponseValidator( - status, - body, - ) + ctx.body = oidcUpdateOidcCustomSubTemplateForOrg.validator(status, body) ctx.status = status return next() }, @@ -42435,7 +34322,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetGithubActionsPermissionsOrganization( input, - actionsGetGithubActionsPermissionsOrganizationResponder, + actionsGetGithubActionsPermissionsOrganization.responder, ctx, ) .catch((err) => { @@ -42445,11 +34332,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsGetGithubActionsPermissionsOrganizationResponseValidator( - status, - body, - ) + ctx.body = actionsGetGithubActionsPermissionsOrganization.validator( + status, + body, + ) ctx.status = status return next() }, @@ -42486,7 +34372,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetGithubActionsPermissionsOrganization( input, - actionsSetGithubActionsPermissionsOrganizationResponder, + actionsSetGithubActionsPermissionsOrganization.responder, ctx, ) .catch((err) => { @@ -42496,11 +34382,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsSetGithubActionsPermissionsOrganizationResponseValidator( - status, - body, - ) + ctx.body = actionsSetGithubActionsPermissionsOrganization.validator( + status, + body, + ) ctx.status = status return next() }, @@ -42537,7 +34422,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListSelectedRepositoriesEnabledGithubActionsOrganization( input, - actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder, + actionsListSelectedRepositoriesEnabledGithubActionsOrganization.responder, ctx, ) .catch((err) => { @@ -42548,7 +34433,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponseValidator( + actionsListSelectedRepositoriesEnabledGithubActionsOrganization.validator( status, body, ) @@ -42585,7 +34470,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetSelectedRepositoriesEnabledGithubActionsOrganization( input, - actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder, + actionsSetSelectedRepositoriesEnabledGithubActionsOrganization.responder, ctx, ) .catch((err) => { @@ -42596,7 +34481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponseValidator( + actionsSetSelectedRepositoriesEnabledGithubActionsOrganization.validator( status, body, ) @@ -42626,7 +34511,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsEnableSelectedRepositoryGithubActionsOrganization( input, - actionsEnableSelectedRepositoryGithubActionsOrganizationResponder, + actionsEnableSelectedRepositoryGithubActionsOrganization.responder, ctx, ) .catch((err) => { @@ -42637,7 +34522,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsEnableSelectedRepositoryGithubActionsOrganizationResponseValidator( + actionsEnableSelectedRepositoryGithubActionsOrganization.validator( status, body, ) @@ -42667,7 +34552,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDisableSelectedRepositoryGithubActionsOrganization( input, - actionsDisableSelectedRepositoryGithubActionsOrganizationResponder, + actionsDisableSelectedRepositoryGithubActionsOrganization.responder, ctx, ) .catch((err) => { @@ -42678,7 +34563,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsDisableSelectedRepositoryGithubActionsOrganizationResponseValidator( + actionsDisableSelectedRepositoryGithubActionsOrganization.validator( status, body, ) @@ -42709,7 +34594,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetAllowedActionsOrganization( input, - actionsGetAllowedActionsOrganizationResponder, + actionsGetAllowedActionsOrganization.responder, ctx, ) .catch((err) => { @@ -42719,10 +34604,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetAllowedActionsOrganizationResponseValidator( - status, - body, - ) + ctx.body = actionsGetAllowedActionsOrganization.validator(status, body) ctx.status = status return next() }, @@ -42757,7 +34639,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetAllowedActionsOrganization( input, - actionsSetAllowedActionsOrganizationResponder, + actionsSetAllowedActionsOrganization.responder, ctx, ) .catch((err) => { @@ -42767,10 +34649,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsSetAllowedActionsOrganizationResponseValidator( - status, - body, - ) + ctx.body = actionsSetAllowedActionsOrganization.validator(status, body) ctx.status = status return next() }, @@ -42797,7 +34676,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetGithubActionsDefaultWorkflowPermissionsOrganization( input, - actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder, + actionsGetGithubActionsDefaultWorkflowPermissionsOrganization.responder, ctx, ) .catch((err) => { @@ -42808,7 +34687,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponseValidator( + actionsGetGithubActionsDefaultWorkflowPermissionsOrganization.validator( status, body, ) @@ -42845,7 +34724,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetGithubActionsDefaultWorkflowPermissionsOrganization( input, - actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder, + actionsSetGithubActionsDefaultWorkflowPermissionsOrganization.responder, ctx, ) .catch((err) => { @@ -42856,7 +34735,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponseValidator( + actionsSetGithubActionsDefaultWorkflowPermissionsOrganization.validator( status, body, ) @@ -42897,7 +34776,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListSelfHostedRunnerGroupsForOrg( input, - actionsListSelfHostedRunnerGroupsForOrgResponder, + actionsListSelfHostedRunnerGroupsForOrg.responder, ctx, ) .catch((err) => { @@ -42907,10 +34786,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListSelfHostedRunnerGroupsForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsListSelfHostedRunnerGroupsForOrg.validator(status, body) ctx.status = status return next() }, @@ -42956,7 +34832,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateSelfHostedRunnerGroupForOrg( input, - actionsCreateSelfHostedRunnerGroupForOrgResponder, + actionsCreateSelfHostedRunnerGroupForOrg.responder, ctx, ) .catch((err) => { @@ -42966,7 +34842,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateSelfHostedRunnerGroupForOrgResponseValidator( + ctx.body = actionsCreateSelfHostedRunnerGroupForOrg.validator( status, body, ) @@ -42998,7 +34874,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetSelfHostedRunnerGroupForOrg( input, - actionsGetSelfHostedRunnerGroupForOrgResponder, + actionsGetSelfHostedRunnerGroupForOrg.responder, ctx, ) .catch((err) => { @@ -43008,10 +34884,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetSelfHostedRunnerGroupForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsGetSelfHostedRunnerGroupForOrg.validator(status, body) ctx.status = status return next() }, @@ -43053,7 +34926,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsUpdateSelfHostedRunnerGroupForOrg( input, - actionsUpdateSelfHostedRunnerGroupForOrgResponder, + actionsUpdateSelfHostedRunnerGroupForOrg.responder, ctx, ) .catch((err) => { @@ -43063,7 +34936,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsUpdateSelfHostedRunnerGroupForOrgResponseValidator( + ctx.body = actionsUpdateSelfHostedRunnerGroupForOrg.validator( status, body, ) @@ -43095,7 +34968,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteSelfHostedRunnerGroupFromOrg( input, - actionsDeleteSelfHostedRunnerGroupFromOrgResponder, + actionsDeleteSelfHostedRunnerGroupFromOrg.responder, ctx, ) .catch((err) => { @@ -43105,7 +34978,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteSelfHostedRunnerGroupFromOrgResponseValidator( + ctx.body = actionsDeleteSelfHostedRunnerGroupFromOrg.validator( status, body, ) @@ -43146,7 +35019,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListGithubHostedRunnersInGroupForOrg( input, - actionsListGithubHostedRunnersInGroupForOrgResponder, + actionsListGithubHostedRunnersInGroupForOrg.responder, ctx, ) .catch((err) => { @@ -43156,7 +35029,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListGithubHostedRunnersInGroupForOrgResponseValidator( + ctx.body = actionsListGithubHostedRunnersInGroupForOrg.validator( status, body, ) @@ -43198,7 +35071,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListRepoAccessToSelfHostedRunnerGroupInOrg( input, - actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder, + actionsListRepoAccessToSelfHostedRunnerGroupInOrg.responder, ctx, ) .catch((err) => { @@ -43208,11 +35081,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsListRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator( - status, - body, - ) + ctx.body = actionsListRepoAccessToSelfHostedRunnerGroupInOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -43249,7 +35121,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetRepoAccessToSelfHostedRunnerGroupInOrg( input, - actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder, + actionsSetRepoAccessToSelfHostedRunnerGroupInOrg.responder, ctx, ) .catch((err) => { @@ -43259,11 +35131,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator( - status, - body, - ) + ctx.body = actionsSetRepoAccessToSelfHostedRunnerGroupInOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -43293,7 +35164,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsAddRepoAccessToSelfHostedRunnerGroupInOrg( input, - actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder, + actionsAddRepoAccessToSelfHostedRunnerGroupInOrg.responder, ctx, ) .catch((err) => { @@ -43303,11 +35174,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator( - status, - body, - ) + ctx.body = actionsAddRepoAccessToSelfHostedRunnerGroupInOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -43338,7 +35208,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg( input, - actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder, + actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.responder, ctx, ) .catch((err) => { @@ -43348,11 +35218,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponseValidator( - status, - body, - ) + ctx.body = actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -43390,7 +35259,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListSelfHostedRunnersInGroupForOrg( input, - actionsListSelfHostedRunnersInGroupForOrgResponder, + actionsListSelfHostedRunnersInGroupForOrg.responder, ctx, ) .catch((err) => { @@ -43400,7 +35269,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListSelfHostedRunnersInGroupForOrgResponseValidator( + ctx.body = actionsListSelfHostedRunnersInGroupForOrg.validator( status, body, ) @@ -43440,7 +35309,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetSelfHostedRunnersInGroupForOrg( input, - actionsSetSelfHostedRunnersInGroupForOrgResponder, + actionsSetSelfHostedRunnersInGroupForOrg.responder, ctx, ) .catch((err) => { @@ -43450,7 +35319,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsSetSelfHostedRunnersInGroupForOrgResponseValidator( + ctx.body = actionsSetSelfHostedRunnersInGroupForOrg.validator( status, body, ) @@ -43483,7 +35352,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsAddSelfHostedRunnerToGroupForOrg( input, - actionsAddSelfHostedRunnerToGroupForOrgResponder, + actionsAddSelfHostedRunnerToGroupForOrg.responder, ctx, ) .catch((err) => { @@ -43493,10 +35362,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsAddSelfHostedRunnerToGroupForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsAddSelfHostedRunnerToGroupForOrg.validator(status, body) ctx.status = status return next() }, @@ -43526,7 +35392,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsRemoveSelfHostedRunnerFromGroupForOrg( input, - actionsRemoveSelfHostedRunnerFromGroupForOrgResponder, + actionsRemoveSelfHostedRunnerFromGroupForOrg.responder, ctx, ) .catch((err) => { @@ -43536,7 +35402,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsRemoveSelfHostedRunnerFromGroupForOrgResponseValidator( + ctx.body = actionsRemoveSelfHostedRunnerFromGroupForOrg.validator( status, body, ) @@ -43577,7 +35443,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListSelfHostedRunnersForOrg( input, - actionsListSelfHostedRunnersForOrgResponder, + actionsListSelfHostedRunnersForOrg.responder, ctx, ) .catch((err) => { @@ -43587,10 +35453,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListSelfHostedRunnersForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsListSelfHostedRunnersForOrg.validator(status, body) ctx.status = status return next() }, @@ -43618,7 +35481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListRunnerApplicationsForOrg( input, - actionsListRunnerApplicationsForOrgResponder, + actionsListRunnerApplicationsForOrg.responder, ctx, ) .catch((err) => { @@ -43628,10 +35491,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListRunnerApplicationsForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsListRunnerApplicationsForOrg.validator(status, body) ctx.status = status return next() }, @@ -43670,7 +35530,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGenerateRunnerJitconfigForOrg( input, - actionsGenerateRunnerJitconfigForOrgResponder, + actionsGenerateRunnerJitconfigForOrg.responder, ctx, ) .catch((err) => { @@ -43680,10 +35540,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGenerateRunnerJitconfigForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsGenerateRunnerJitconfigForOrg.validator(status, body) ctx.status = status return next() }, @@ -43711,7 +35568,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateRegistrationTokenForOrg( input, - actionsCreateRegistrationTokenForOrgResponder, + actionsCreateRegistrationTokenForOrg.responder, ctx, ) .catch((err) => { @@ -43721,10 +35578,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateRegistrationTokenForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsCreateRegistrationTokenForOrg.validator(status, body) ctx.status = status return next() }, @@ -43752,7 +35606,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateRemoveTokenForOrg( input, - actionsCreateRemoveTokenForOrgResponder, + actionsCreateRemoveTokenForOrg.responder, ctx, ) .catch((err) => { @@ -43762,7 +35616,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateRemoveTokenForOrgResponseValidator(status, body) + ctx.body = actionsCreateRemoveTokenForOrg.validator(status, body) ctx.status = status return next() }, @@ -43791,7 +35645,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetSelfHostedRunnerForOrg( input, - actionsGetSelfHostedRunnerForOrgResponder, + actionsGetSelfHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -43801,7 +35655,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetSelfHostedRunnerForOrgResponseValidator(status, body) + ctx.body = actionsGetSelfHostedRunnerForOrg.validator(status, body) ctx.status = status return next() }, @@ -43830,7 +35684,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteSelfHostedRunnerFromOrg( input, - actionsDeleteSelfHostedRunnerFromOrgResponder, + actionsDeleteSelfHostedRunnerFromOrg.responder, ctx, ) .catch((err) => { @@ -43840,10 +35694,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteSelfHostedRunnerFromOrgResponseValidator( - status, - body, - ) + ctx.body = actionsDeleteSelfHostedRunnerFromOrg.validator(status, body) ctx.status = status return next() }, @@ -43872,7 +35723,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListLabelsForSelfHostedRunnerForOrg( input, - actionsListLabelsForSelfHostedRunnerForOrgResponder, + actionsListLabelsForSelfHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -43882,7 +35733,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListLabelsForSelfHostedRunnerForOrgResponseValidator( + ctx.body = actionsListLabelsForSelfHostedRunnerForOrg.validator( status, body, ) @@ -43922,7 +35773,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsAddCustomLabelsToSelfHostedRunnerForOrg( input, - actionsAddCustomLabelsToSelfHostedRunnerForOrgResponder, + actionsAddCustomLabelsToSelfHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -43932,11 +35783,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsAddCustomLabelsToSelfHostedRunnerForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsAddCustomLabelsToSelfHostedRunnerForOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -43973,7 +35823,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetCustomLabelsForSelfHostedRunnerForOrg( input, - actionsSetCustomLabelsForSelfHostedRunnerForOrgResponder, + actionsSetCustomLabelsForSelfHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -43983,11 +35833,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsSetCustomLabelsForSelfHostedRunnerForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsSetCustomLabelsForSelfHostedRunnerForOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -44014,7 +35863,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg( input, - actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder, + actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -44025,7 +35874,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponseValidator( + actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg.validator( status, body, ) @@ -44059,7 +35908,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsRemoveCustomLabelFromSelfHostedRunnerForOrg( input, - actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder, + actionsRemoveCustomLabelFromSelfHostedRunnerForOrg.responder, ctx, ) .catch((err) => { @@ -44069,11 +35918,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponseValidator( - status, - body, - ) + ctx.body = actionsRemoveCustomLabelFromSelfHostedRunnerForOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -44106,7 +35954,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsListOrgSecrets(input, actionsListOrgSecretsResponder, ctx) + .actionsListOrgSecrets(input, actionsListOrgSecrets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44114,7 +35962,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListOrgSecretsResponseValidator(status, body) + ctx.body = actionsListOrgSecrets.validator(status, body) ctx.status = status return next() }, @@ -44138,7 +35986,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetOrgPublicKey(input, actionsGetOrgPublicKeyResponder, ctx) + .actionsGetOrgPublicKey(input, actionsGetOrgPublicKey.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44146,7 +35994,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetOrgPublicKeyResponseValidator(status, body) + ctx.body = actionsGetOrgPublicKey.validator(status, body) ctx.status = status return next() }, @@ -44173,7 +36021,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetOrgSecret(input, actionsGetOrgSecretResponder, ctx) + .actionsGetOrgSecret(input, actionsGetOrgSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44181,7 +36029,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetOrgSecretResponseValidator(status, body) + ctx.body = actionsGetOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -44227,7 +36075,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateOrUpdateOrgSecret( input, - actionsCreateOrUpdateOrgSecretResponder, + actionsCreateOrUpdateOrgSecret.responder, ctx, ) .catch((err) => { @@ -44237,7 +36085,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateOrUpdateOrgSecretResponseValidator(status, body) + ctx.body = actionsCreateOrUpdateOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -44264,7 +36112,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsDeleteOrgSecret(input, actionsDeleteOrgSecretResponder, ctx) + .actionsDeleteOrgSecret(input, actionsDeleteOrgSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44272,7 +36120,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteOrgSecretResponseValidator(status, body) + ctx.body = actionsDeleteOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -44310,7 +36158,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListSelectedReposForOrgSecret( input, - actionsListSelectedReposForOrgSecretResponder, + actionsListSelectedReposForOrgSecret.responder, ctx, ) .catch((err) => { @@ -44320,10 +36168,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListSelectedReposForOrgSecretResponseValidator( - status, - body, - ) + ctx.body = actionsListSelectedReposForOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -44360,7 +36205,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetSelectedReposForOrgSecret( input, - actionsSetSelectedReposForOrgSecretResponder, + actionsSetSelectedReposForOrgSecret.responder, ctx, ) .catch((err) => { @@ -44370,10 +36215,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsSetSelectedReposForOrgSecretResponseValidator( - status, - body, - ) + ctx.body = actionsSetSelectedReposForOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -44403,7 +36245,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsAddSelectedRepoToOrgSecret( input, - actionsAddSelectedRepoToOrgSecretResponder, + actionsAddSelectedRepoToOrgSecret.responder, ctx, ) .catch((err) => { @@ -44413,10 +36255,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsAddSelectedRepoToOrgSecretResponseValidator( - status, - body, - ) + ctx.body = actionsAddSelectedRepoToOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -44446,7 +36285,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsRemoveSelectedRepoFromOrgSecret( input, - actionsRemoveSelectedRepoFromOrgSecretResponder, + actionsRemoveSelectedRepoFromOrgSecret.responder, ctx, ) .catch((err) => { @@ -44456,10 +36295,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsRemoveSelectedRepoFromOrgSecretResponseValidator( - status, - body, - ) + ctx.body = actionsRemoveSelectedRepoFromOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -44492,7 +36328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsListOrgVariables(input, actionsListOrgVariablesResponder, ctx) + .actionsListOrgVariables(input, actionsListOrgVariables.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44500,7 +36336,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListOrgVariablesResponseValidator(status, body) + ctx.body = actionsListOrgVariables.validator(status, body) ctx.status = status return next() }, @@ -44535,7 +36371,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsCreateOrgVariable(input, actionsCreateOrgVariableResponder, ctx) + .actionsCreateOrgVariable( + input, + actionsCreateOrgVariable.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44543,7 +36383,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateOrgVariableResponseValidator(status, body) + ctx.body = actionsCreateOrgVariable.validator(status, body) ctx.status = status return next() }, @@ -44570,7 +36410,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetOrgVariable(input, actionsGetOrgVariableResponder, ctx) + .actionsGetOrgVariable(input, actionsGetOrgVariable.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44578,7 +36418,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetOrgVariableResponseValidator(status, body) + ctx.body = actionsGetOrgVariable.validator(status, body) ctx.status = status return next() }, @@ -44616,7 +36456,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsUpdateOrgVariable(input, actionsUpdateOrgVariableResponder, ctx) + .actionsUpdateOrgVariable( + input, + actionsUpdateOrgVariable.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44624,7 +36468,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsUpdateOrgVariableResponseValidator(status, body) + ctx.body = actionsUpdateOrgVariable.validator(status, body) ctx.status = status return next() }, @@ -44651,7 +36495,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsDeleteOrgVariable(input, actionsDeleteOrgVariableResponder, ctx) + .actionsDeleteOrgVariable( + input, + actionsDeleteOrgVariable.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44659,7 +36507,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteOrgVariableResponseValidator(status, body) + ctx.body = actionsDeleteOrgVariable.validator(status, body) ctx.status = status return next() }, @@ -44697,7 +36545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListSelectedReposForOrgVariable( input, - actionsListSelectedReposForOrgVariableResponder, + actionsListSelectedReposForOrgVariable.responder, ctx, ) .catch((err) => { @@ -44707,10 +36555,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListSelectedReposForOrgVariableResponseValidator( - status, - body, - ) + ctx.body = actionsListSelectedReposForOrgVariable.validator(status, body) ctx.status = status return next() }, @@ -44747,7 +36592,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetSelectedReposForOrgVariable( input, - actionsSetSelectedReposForOrgVariableResponder, + actionsSetSelectedReposForOrgVariable.responder, ctx, ) .catch((err) => { @@ -44757,10 +36602,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsSetSelectedReposForOrgVariableResponseValidator( - status, - body, - ) + ctx.body = actionsSetSelectedReposForOrgVariable.validator(status, body) ctx.status = status return next() }, @@ -44790,7 +36632,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsAddSelectedRepoToOrgVariable( input, - actionsAddSelectedRepoToOrgVariableResponder, + actionsAddSelectedRepoToOrgVariable.responder, ctx, ) .catch((err) => { @@ -44800,10 +36642,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsAddSelectedRepoToOrgVariableResponseValidator( - status, - body, - ) + ctx.body = actionsAddSelectedRepoToOrgVariable.validator(status, body) ctx.status = status return next() }, @@ -44833,7 +36672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsRemoveSelectedRepoFromOrgVariable( input, - actionsRemoveSelectedRepoFromOrgVariableResponder, + actionsRemoveSelectedRepoFromOrgVariable.responder, ctx, ) .catch((err) => { @@ -44843,7 +36682,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsRemoveSelectedRepoFromOrgVariableResponseValidator( + ctx.body = actionsRemoveSelectedRepoFromOrgVariable.validator( status, body, ) @@ -44884,7 +36723,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListAttestations(input, orgsListAttestationsResponder, ctx) + .orgsListAttestations(input, orgsListAttestations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44892,7 +36731,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListAttestationsResponseValidator(status, body) + ctx.body = orgsListAttestations.validator(status, body) ctx.status = status return next() }, @@ -44922,7 +36761,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListBlockedUsers(input, orgsListBlockedUsersResponder, ctx) + .orgsListBlockedUsers(input, orgsListBlockedUsers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44930,7 +36769,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListBlockedUsersResponseValidator(status, body) + ctx.body = orgsListBlockedUsers.validator(status, body) ctx.status = status return next() }) @@ -44956,7 +36795,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsCheckBlockedUser(input, orgsCheckBlockedUserResponder, ctx) + .orgsCheckBlockedUser(input, orgsCheckBlockedUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44964,7 +36803,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCheckBlockedUserResponseValidator(status, body) + ctx.body = orgsCheckBlockedUser.validator(status, body) ctx.status = status return next() }, @@ -44991,7 +36830,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsBlockUser(input, orgsBlockUserResponder, ctx) + .orgsBlockUser(input, orgsBlockUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44999,7 +36838,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsBlockUserResponseValidator(status, body) + ctx.body = orgsBlockUser.validator(status, body) ctx.status = status return next() }, @@ -45026,7 +36865,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsUnblockUser(input, orgsUnblockUserResponder, ctx) + .orgsUnblockUser(input, orgsUnblockUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45034,7 +36873,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsUnblockUserResponseValidator(status, body) + ctx.body = orgsUnblockUser.validator(status, body) ctx.status = status return next() }, @@ -45075,7 +36914,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .campaignsListOrgCampaigns( input, - campaignsListOrgCampaignsResponder, + campaignsListOrgCampaigns.responder, ctx, ) .catch((err) => { @@ -45085,7 +36924,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = campaignsListOrgCampaignsResponseValidator(status, body) + ctx.body = campaignsListOrgCampaigns.validator(status, body) ctx.status = status return next() }, @@ -45131,7 +36970,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .campaignsCreateCampaign(input, campaignsCreateCampaignResponder, ctx) + .campaignsCreateCampaign(input, campaignsCreateCampaign.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45139,7 +36978,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = campaignsCreateCampaignResponseValidator(status, body) + ctx.body = campaignsCreateCampaign.validator(status, body) ctx.status = status return next() }, @@ -45168,7 +37007,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .campaignsGetCampaignSummary( input, - campaignsGetCampaignSummaryResponder, + campaignsGetCampaignSummary.responder, ctx, ) .catch((err) => { @@ -45178,7 +37017,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = campaignsGetCampaignSummaryResponseValidator(status, body) + ctx.body = campaignsGetCampaignSummary.validator(status, body) ctx.status = status return next() }, @@ -45219,7 +37058,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .campaignsUpdateCampaign(input, campaignsUpdateCampaignResponder, ctx) + .campaignsUpdateCampaign(input, campaignsUpdateCampaign.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45227,7 +37066,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = campaignsUpdateCampaignResponseValidator(status, body) + ctx.body = campaignsUpdateCampaign.validator(status, body) ctx.status = status return next() }, @@ -45254,7 +37093,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .campaignsDeleteCampaign(input, campaignsDeleteCampaignResponder, ctx) + .campaignsDeleteCampaign(input, campaignsDeleteCampaign.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45262,7 +37101,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = campaignsDeleteCampaignResponseValidator(status, body) + ctx.body = campaignsDeleteCampaign.validator(status, body) ctx.status = status return next() }, @@ -45305,7 +37144,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningListAlertsForOrg( input, - codeScanningListAlertsForOrgResponder, + codeScanningListAlertsForOrg.responder, ctx, ) .catch((err) => { @@ -45315,7 +37154,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningListAlertsForOrgResponseValidator(status, body) + ctx.body = codeScanningListAlertsForOrg.validator(status, body) ctx.status = status return next() }, @@ -45354,7 +37193,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetConfigurationsForOrg( input, - codeSecurityGetConfigurationsForOrgResponder, + codeSecurityGetConfigurationsForOrg.responder, ctx, ) .catch((err) => { @@ -45364,10 +37203,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityGetConfigurationsForOrgResponseValidator( - status, - body, - ) + ctx.body = codeSecurityGetConfigurationsForOrg.validator(status, body) ctx.status = status return next() }, @@ -45484,7 +37320,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityCreateConfiguration( input, - codeSecurityCreateConfigurationResponder, + codeSecurityCreateConfiguration.responder, ctx, ) .catch((err) => { @@ -45494,7 +37330,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityCreateConfigurationResponseValidator(status, body) + ctx.body = codeSecurityCreateConfiguration.validator(status, body) ctx.status = status return next() }, @@ -45522,7 +37358,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetDefaultConfigurations( input, - codeSecurityGetDefaultConfigurationsResponder, + codeSecurityGetDefaultConfigurations.responder, ctx, ) .catch((err) => { @@ -45532,10 +37368,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityGetDefaultConfigurationsResponseValidator( - status, - body, - ) + ctx.body = codeSecurityGetDefaultConfigurations.validator(status, body) ctx.status = status return next() }, @@ -45571,7 +37404,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityDetachConfiguration( input, - codeSecurityDetachConfigurationResponder, + codeSecurityDetachConfiguration.responder, ctx, ) .catch((err) => { @@ -45581,7 +37414,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityDetachConfigurationResponseValidator(status, body) + ctx.body = codeSecurityDetachConfiguration.validator(status, body) ctx.status = status return next() }, @@ -45610,7 +37443,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetConfiguration( input, - codeSecurityGetConfigurationResponder, + codeSecurityGetConfiguration.responder, ctx, ) .catch((err) => { @@ -45620,7 +37453,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityGetConfigurationResponseValidator(status, body) + ctx.body = codeSecurityGetConfiguration.validator(status, body) ctx.status = status return next() }, @@ -45716,7 +37549,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityUpdateConfiguration( input, - codeSecurityUpdateConfigurationResponder, + codeSecurityUpdateConfiguration.responder, ctx, ) .catch((err) => { @@ -45726,7 +37559,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityUpdateConfigurationResponseValidator(status, body) + ctx.body = codeSecurityUpdateConfiguration.validator(status, body) ctx.status = status return next() }, @@ -45755,7 +37588,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityDeleteConfiguration( input, - codeSecurityDeleteConfigurationResponder, + codeSecurityDeleteConfiguration.responder, ctx, ) .catch((err) => { @@ -45765,7 +37598,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityDeleteConfigurationResponseValidator(status, body) + ctx.body = codeSecurityDeleteConfiguration.validator(status, body) ctx.status = status return next() }, @@ -45809,7 +37642,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityAttachConfiguration( input, - codeSecurityAttachConfigurationResponder, + codeSecurityAttachConfiguration.responder, ctx, ) .catch((err) => { @@ -45819,7 +37652,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityAttachConfigurationResponseValidator(status, body) + ctx.body = codeSecurityAttachConfiguration.validator(status, body) ctx.status = status return next() }, @@ -45858,7 +37691,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecuritySetConfigurationAsDefault( input, - codeSecuritySetConfigurationAsDefaultResponder, + codeSecuritySetConfigurationAsDefault.responder, ctx, ) .catch((err) => { @@ -45868,10 +37701,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecuritySetConfigurationAsDefaultResponseValidator( - status, - body, - ) + ctx.body = codeSecuritySetConfigurationAsDefault.validator(status, body) ctx.status = status return next() }, @@ -45911,7 +37741,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetRepositoriesForConfiguration( input, - codeSecurityGetRepositoriesForConfigurationResponder, + codeSecurityGetRepositoriesForConfiguration.responder, ctx, ) .catch((err) => { @@ -45921,7 +37751,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityGetRepositoriesForConfigurationResponseValidator( + ctx.body = codeSecurityGetRepositoriesForConfiguration.validator( status, body, ) @@ -45959,7 +37789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesListInOrganization( input, - codespacesListInOrganizationResponder, + codespacesListInOrganization.responder, ctx, ) .catch((err) => { @@ -45969,7 +37799,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesListInOrganizationResponseValidator(status, body) + ctx.body = codespacesListInOrganization.validator(status, body) ctx.status = status return next() }, @@ -46009,7 +37839,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesSetCodespacesAccess( input, - codespacesSetCodespacesAccessResponder, + codespacesSetCodespacesAccess.responder, ctx, ) .catch((err) => { @@ -46019,7 +37849,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesSetCodespacesAccessResponseValidator(status, body) + ctx.body = codespacesSetCodespacesAccess.validator(status, body) ctx.status = status return next() }, @@ -46055,7 +37885,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesSetCodespacesAccessUsers( input, - codespacesSetCodespacesAccessUsersResponder, + codespacesSetCodespacesAccessUsers.responder, ctx, ) .catch((err) => { @@ -46065,10 +37895,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesSetCodespacesAccessUsersResponseValidator( - status, - body, - ) + ctx.body = codespacesSetCodespacesAccessUsers.validator(status, body) ctx.status = status return next() }, @@ -46104,7 +37931,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesDeleteCodespacesAccessUsers( input, - codespacesDeleteCodespacesAccessUsersResponder, + codespacesDeleteCodespacesAccessUsers.responder, ctx, ) .catch((err) => { @@ -46114,10 +37941,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesDeleteCodespacesAccessUsersResponseValidator( - status, - body, - ) + ctx.body = codespacesDeleteCodespacesAccessUsers.validator(status, body) ctx.status = status return next() }, @@ -46150,7 +37974,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codespacesListOrgSecrets(input, codespacesListOrgSecretsResponder, ctx) + .codespacesListOrgSecrets( + input, + codespacesListOrgSecrets.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46158,7 +37986,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesListOrgSecretsResponseValidator(status, body) + ctx.body = codespacesListOrgSecrets.validator(status, body) ctx.status = status return next() }, @@ -46184,7 +38012,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesGetOrgPublicKey( input, - codespacesGetOrgPublicKeyResponder, + codespacesGetOrgPublicKey.responder, ctx, ) .catch((err) => { @@ -46194,7 +38022,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesGetOrgPublicKeyResponseValidator(status, body) + ctx.body = codespacesGetOrgPublicKey.validator(status, body) ctx.status = status return next() }, @@ -46221,7 +38049,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codespacesGetOrgSecret(input, codespacesGetOrgSecretResponder, ctx) + .codespacesGetOrgSecret(input, codespacesGetOrgSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46229,7 +38057,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesGetOrgSecretResponseValidator(status, body) + ctx.body = codespacesGetOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -46276,7 +38104,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesCreateOrUpdateOrgSecret( input, - codespacesCreateOrUpdateOrgSecretResponder, + codespacesCreateOrUpdateOrgSecret.responder, ctx, ) .catch((err) => { @@ -46286,10 +38114,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesCreateOrUpdateOrgSecretResponseValidator( - status, - body, - ) + ctx.body = codespacesCreateOrUpdateOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -46318,7 +38143,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesDeleteOrgSecret( input, - codespacesDeleteOrgSecretResponder, + codespacesDeleteOrgSecret.responder, ctx, ) .catch((err) => { @@ -46328,7 +38153,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesDeleteOrgSecretResponseValidator(status, body) + ctx.body = codespacesDeleteOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -46366,7 +38191,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesListSelectedReposForOrgSecret( input, - codespacesListSelectedReposForOrgSecretResponder, + codespacesListSelectedReposForOrgSecret.responder, ctx, ) .catch((err) => { @@ -46376,10 +38201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesListSelectedReposForOrgSecretResponseValidator( - status, - body, - ) + ctx.body = codespacesListSelectedReposForOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -46416,7 +38238,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesSetSelectedReposForOrgSecret( input, - codespacesSetSelectedReposForOrgSecretResponder, + codespacesSetSelectedReposForOrgSecret.responder, ctx, ) .catch((err) => { @@ -46426,10 +38248,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesSetSelectedReposForOrgSecretResponseValidator( - status, - body, - ) + ctx.body = codespacesSetSelectedReposForOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -46459,7 +38278,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesAddSelectedRepoToOrgSecret( input, - codespacesAddSelectedRepoToOrgSecretResponder, + codespacesAddSelectedRepoToOrgSecret.responder, ctx, ) .catch((err) => { @@ -46469,10 +38288,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesAddSelectedRepoToOrgSecretResponseValidator( - status, - body, - ) + ctx.body = codespacesAddSelectedRepoToOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -46502,7 +38318,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesRemoveSelectedRepoFromOrgSecret( input, - codespacesRemoveSelectedRepoFromOrgSecretResponder, + codespacesRemoveSelectedRepoFromOrgSecret.responder, ctx, ) .catch((err) => { @@ -46512,7 +38328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesRemoveSelectedRepoFromOrgSecretResponseValidator( + ctx.body = codespacesRemoveSelectedRepoFromOrgSecret.validator( status, body, ) @@ -46543,7 +38359,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .copilotGetCopilotOrganizationDetails( input, - copilotGetCopilotOrganizationDetailsResponder, + copilotGetCopilotOrganizationDetails.responder, ctx, ) .catch((err) => { @@ -46553,10 +38369,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotGetCopilotOrganizationDetailsResponseValidator( - status, - body, - ) + ctx.body = copilotGetCopilotOrganizationDetails.validator(status, body) ctx.status = status return next() }, @@ -46589,7 +38402,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .copilotListCopilotSeats(input, copilotListCopilotSeatsResponder, ctx) + .copilotListCopilotSeats(input, copilotListCopilotSeats.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46597,7 +38410,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotListCopilotSeatsResponseValidator(status, body) + ctx.body = copilotListCopilotSeats.validator(status, body) ctx.status = status return next() }, @@ -46633,7 +38446,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .copilotAddCopilotSeatsForTeams( input, - copilotAddCopilotSeatsForTeamsResponder, + copilotAddCopilotSeatsForTeams.responder, ctx, ) .catch((err) => { @@ -46643,7 +38456,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotAddCopilotSeatsForTeamsResponseValidator(status, body) + ctx.body = copilotAddCopilotSeatsForTeams.validator(status, body) ctx.status = status return next() }, @@ -46679,7 +38492,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .copilotCancelCopilotSeatAssignmentForTeams( input, - copilotCancelCopilotSeatAssignmentForTeamsResponder, + copilotCancelCopilotSeatAssignmentForTeams.responder, ctx, ) .catch((err) => { @@ -46689,7 +38502,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotCancelCopilotSeatAssignmentForTeamsResponseValidator( + ctx.body = copilotCancelCopilotSeatAssignmentForTeams.validator( status, body, ) @@ -46728,7 +38541,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .copilotAddCopilotSeatsForUsers( input, - copilotAddCopilotSeatsForUsersResponder, + copilotAddCopilotSeatsForUsers.responder, ctx, ) .catch((err) => { @@ -46738,7 +38551,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotAddCopilotSeatsForUsersResponseValidator(status, body) + ctx.body = copilotAddCopilotSeatsForUsers.validator(status, body) ctx.status = status return next() }, @@ -46774,7 +38587,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .copilotCancelCopilotSeatAssignmentForUsers( input, - copilotCancelCopilotSeatAssignmentForUsersResponder, + copilotCancelCopilotSeatAssignmentForUsers.responder, ctx, ) .catch((err) => { @@ -46784,7 +38597,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotCancelCopilotSeatAssignmentForUsersResponseValidator( + ctx.body = copilotCancelCopilotSeatAssignmentForUsers.validator( status, body, ) @@ -46826,7 +38639,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .copilotCopilotMetricsForOrganization( input, - copilotCopilotMetricsForOrganizationResponder, + copilotCopilotMetricsForOrganization.responder, ctx, ) .catch((err) => { @@ -46836,10 +38649,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotCopilotMetricsForOrganizationResponseValidator( - status, - body, - ) + ctx.body = copilotCopilotMetricsForOrganization.validator(status, body) ctx.status = status return next() }, @@ -46888,7 +38698,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotListAlertsForOrg( input, - dependabotListAlertsForOrgResponder, + dependabotListAlertsForOrg.responder, ctx, ) .catch((err) => { @@ -46898,7 +38708,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotListAlertsForOrgResponseValidator(status, body) + ctx.body = dependabotListAlertsForOrg.validator(status, body) ctx.status = status return next() }, @@ -46931,7 +38741,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .dependabotListOrgSecrets(input, dependabotListOrgSecretsResponder, ctx) + .dependabotListOrgSecrets( + input, + dependabotListOrgSecrets.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46939,7 +38753,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotListOrgSecretsResponseValidator(status, body) + ctx.body = dependabotListOrgSecrets.validator(status, body) ctx.status = status return next() }, @@ -46965,7 +38779,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotGetOrgPublicKey( input, - dependabotGetOrgPublicKeyResponder, + dependabotGetOrgPublicKey.responder, ctx, ) .catch((err) => { @@ -46975,7 +38789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotGetOrgPublicKeyResponseValidator(status, body) + ctx.body = dependabotGetOrgPublicKey.validator(status, body) ctx.status = status return next() }, @@ -47002,7 +38816,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .dependabotGetOrgSecret(input, dependabotGetOrgSecretResponder, ctx) + .dependabotGetOrgSecret(input, dependabotGetOrgSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47010,7 +38824,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotGetOrgSecretResponseValidator(status, body) + ctx.body = dependabotGetOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -47057,7 +38871,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotCreateOrUpdateOrgSecret( input, - dependabotCreateOrUpdateOrgSecretResponder, + dependabotCreateOrUpdateOrgSecret.responder, ctx, ) .catch((err) => { @@ -47067,10 +38881,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotCreateOrUpdateOrgSecretResponseValidator( - status, - body, - ) + ctx.body = dependabotCreateOrUpdateOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -47099,7 +38910,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotDeleteOrgSecret( input, - dependabotDeleteOrgSecretResponder, + dependabotDeleteOrgSecret.responder, ctx, ) .catch((err) => { @@ -47109,7 +38920,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotDeleteOrgSecretResponseValidator(status, body) + ctx.body = dependabotDeleteOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -47147,7 +38958,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotListSelectedReposForOrgSecret( input, - dependabotListSelectedReposForOrgSecretResponder, + dependabotListSelectedReposForOrgSecret.responder, ctx, ) .catch((err) => { @@ -47157,10 +38968,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotListSelectedReposForOrgSecretResponseValidator( - status, - body, - ) + ctx.body = dependabotListSelectedReposForOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -47197,7 +39005,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotSetSelectedReposForOrgSecret( input, - dependabotSetSelectedReposForOrgSecretResponder, + dependabotSetSelectedReposForOrgSecret.responder, ctx, ) .catch((err) => { @@ -47207,10 +39015,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotSetSelectedReposForOrgSecretResponseValidator( - status, - body, - ) + ctx.body = dependabotSetSelectedReposForOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -47240,7 +39045,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotAddSelectedRepoToOrgSecret( input, - dependabotAddSelectedRepoToOrgSecretResponder, + dependabotAddSelectedRepoToOrgSecret.responder, ctx, ) .catch((err) => { @@ -47250,10 +39055,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotAddSelectedRepoToOrgSecretResponseValidator( - status, - body, - ) + ctx.body = dependabotAddSelectedRepoToOrgSecret.validator(status, body) ctx.status = status return next() }, @@ -47283,7 +39085,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotRemoveSelectedRepoFromOrgSecret( input, - dependabotRemoveSelectedRepoFromOrgSecretResponder, + dependabotRemoveSelectedRepoFromOrgSecret.responder, ctx, ) .catch((err) => { @@ -47293,7 +39095,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotRemoveSelectedRepoFromOrgSecretResponseValidator( + ctx.body = dependabotRemoveSelectedRepoFromOrgSecret.validator( status, body, ) @@ -47323,7 +39125,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesListDockerMigrationConflictingPackagesForOrganization( input, - packagesListDockerMigrationConflictingPackagesForOrganizationResponder, + packagesListDockerMigrationConflictingPackagesForOrganization.responder, ctx, ) .catch((err) => { @@ -47334,7 +39136,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - packagesListDockerMigrationConflictingPackagesForOrganizationResponseValidator( + packagesListDockerMigrationConflictingPackagesForOrganization.validator( status, body, ) @@ -47372,7 +39174,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListPublicOrgEvents( input, - activityListPublicOrgEventsResponder, + activityListPublicOrgEvents.responder, ctx, ) .catch((err) => { @@ -47382,7 +39184,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListPublicOrgEventsResponseValidator(status, body) + ctx.body = activityListPublicOrgEvents.validator(status, body) ctx.status = status return next() }, @@ -47417,7 +39219,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListFailedInvitations( input, - orgsListFailedInvitationsResponder, + orgsListFailedInvitations.responder, ctx, ) .catch((err) => { @@ -47427,7 +39229,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListFailedInvitationsResponseValidator(status, body) + ctx.body = orgsListFailedInvitations.validator(status, body) ctx.status = status return next() }, @@ -47457,7 +39259,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListWebhooks(input, orgsListWebhooksResponder, ctx) + .orgsListWebhooks(input, orgsListWebhooks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47465,7 +39267,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListWebhooksResponseValidator(status, body) + ctx.body = orgsListWebhooks.validator(status, body) ctx.status = status return next() }) @@ -47503,7 +39305,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsCreateWebhook(input, orgsCreateWebhookResponder, ctx) + .orgsCreateWebhook(input, orgsCreateWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47511,7 +39313,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCreateWebhookResponseValidator(status, body) + ctx.body = orgsCreateWebhook.validator(status, body) ctx.status = status return next() }) @@ -47537,7 +39339,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsGetWebhook(input, orgsGetWebhookResponder, ctx) + .orgsGetWebhook(input, orgsGetWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47545,7 +39347,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetWebhookResponseValidator(status, body) + ctx.body = orgsGetWebhook.validator(status, body) ctx.status = status return next() }, @@ -47592,7 +39394,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsUpdateWebhook(input, orgsUpdateWebhookResponder, ctx) + .orgsUpdateWebhook(input, orgsUpdateWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47600,7 +39402,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsUpdateWebhookResponseValidator(status, body) + ctx.body = orgsUpdateWebhook.validator(status, body) ctx.status = status return next() }, @@ -47627,7 +39429,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsDeleteWebhook(input, orgsDeleteWebhookResponder, ctx) + .orgsDeleteWebhook(input, orgsDeleteWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47635,7 +39437,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsDeleteWebhookResponseValidator(status, body) + ctx.body = orgsDeleteWebhook.validator(status, body) ctx.status = status return next() }, @@ -47664,7 +39466,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsGetWebhookConfigForOrg( input, - orgsGetWebhookConfigForOrgResponder, + orgsGetWebhookConfigForOrg.responder, ctx, ) .catch((err) => { @@ -47674,7 +39476,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetWebhookConfigForOrgResponseValidator(status, body) + ctx.body = orgsGetWebhookConfigForOrg.validator(status, body) ctx.status = status return next() }, @@ -47716,7 +39518,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsUpdateWebhookConfigForOrg( input, - orgsUpdateWebhookConfigForOrgResponder, + orgsUpdateWebhookConfigForOrg.responder, ctx, ) .catch((err) => { @@ -47726,7 +39528,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsUpdateWebhookConfigForOrgResponseValidator(status, body) + ctx.body = orgsUpdateWebhookConfigForOrg.validator(status, body) ctx.status = status return next() }, @@ -47764,7 +39566,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListWebhookDeliveries( input, - orgsListWebhookDeliveriesResponder, + orgsListWebhookDeliveries.responder, ctx, ) .catch((err) => { @@ -47774,7 +39576,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListWebhookDeliveriesResponseValidator(status, body) + ctx.body = orgsListWebhookDeliveries.validator(status, body) ctx.status = status return next() }, @@ -47802,7 +39604,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsGetWebhookDelivery(input, orgsGetWebhookDeliveryResponder, ctx) + .orgsGetWebhookDelivery(input, orgsGetWebhookDelivery.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47810,7 +39612,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetWebhookDeliveryResponseValidator(status, body) + ctx.body = orgsGetWebhookDelivery.validator(status, body) ctx.status = status return next() }, @@ -47840,7 +39642,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsRedeliverWebhookDelivery( input, - orgsRedeliverWebhookDeliveryResponder, + orgsRedeliverWebhookDelivery.responder, ctx, ) .catch((err) => { @@ -47850,7 +39652,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRedeliverWebhookDeliveryResponseValidator(status, body) + ctx.body = orgsRedeliverWebhookDelivery.validator(status, body) ctx.status = status return next() }, @@ -47877,7 +39679,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsPingWebhook(input, orgsPingWebhookResponder, ctx) + .orgsPingWebhook(input, orgsPingWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47885,7 +39687,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsPingWebhookResponseValidator(status, body) + ctx.body = orgsPingWebhook.validator(status, body) ctx.status = status return next() }, @@ -47951,7 +39753,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .apiInsightsGetRouteStatsByActor( input, - apiInsightsGetRouteStatsByActorResponder, + apiInsightsGetRouteStatsByActor.responder, ctx, ) .catch((err) => { @@ -47961,7 +39763,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetRouteStatsByActorResponseValidator(status, body) + ctx.body = apiInsightsGetRouteStatsByActor.validator(status, body) ctx.status = status return next() }, @@ -48016,7 +39818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .apiInsightsGetSubjectStats( input, - apiInsightsGetSubjectStatsResponder, + apiInsightsGetSubjectStats.responder, ctx, ) .catch((err) => { @@ -48026,7 +39828,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetSubjectStatsResponseValidator(status, body) + ctx.body = apiInsightsGetSubjectStats.validator(status, body) ctx.status = status return next() }, @@ -48061,7 +39863,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .apiInsightsGetSummaryStats( input, - apiInsightsGetSummaryStatsResponder, + apiInsightsGetSummaryStats.responder, ctx, ) .catch((err) => { @@ -48071,7 +39873,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetSummaryStatsResponseValidator(status, body) + ctx.body = apiInsightsGetSummaryStats.validator(status, body) ctx.status = status return next() }, @@ -48109,7 +39911,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .apiInsightsGetSummaryStatsByUser( input, - apiInsightsGetSummaryStatsByUserResponder, + apiInsightsGetSummaryStatsByUser.responder, ctx, ) .catch((err) => { @@ -48119,7 +39921,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetSummaryStatsByUserResponseValidator(status, body) + ctx.body = apiInsightsGetSummaryStatsByUser.validator(status, body) ctx.status = status return next() }, @@ -48164,7 +39966,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .apiInsightsGetSummaryStatsByActor( input, - apiInsightsGetSummaryStatsByActorResponder, + apiInsightsGetSummaryStatsByActor.responder, ctx, ) .catch((err) => { @@ -48174,10 +39976,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetSummaryStatsByActorResponseValidator( - status, - body, - ) + ctx.body = apiInsightsGetSummaryStatsByActor.validator(status, body) ctx.status = status return next() }, @@ -48211,7 +40010,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .apiInsightsGetTimeStats(input, apiInsightsGetTimeStatsResponder, ctx) + .apiInsightsGetTimeStats(input, apiInsightsGetTimeStats.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48219,7 +40018,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetTimeStatsResponseValidator(status, body) + ctx.body = apiInsightsGetTimeStats.validator(status, body) ctx.status = status return next() }, @@ -48258,7 +40057,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .apiInsightsGetTimeStatsByUser( input, - apiInsightsGetTimeStatsByUserResponder, + apiInsightsGetTimeStatsByUser.responder, ctx, ) .catch((err) => { @@ -48268,7 +40067,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetTimeStatsByUserResponseValidator(status, body) + ctx.body = apiInsightsGetTimeStatsByUser.validator(status, body) ctx.status = status return next() }, @@ -48314,7 +40113,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .apiInsightsGetTimeStatsByActor( input, - apiInsightsGetTimeStatsByActorResponder, + apiInsightsGetTimeStatsByActor.responder, ctx, ) .catch((err) => { @@ -48324,7 +40123,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetTimeStatsByActorResponseValidator(status, body) + ctx.body = apiInsightsGetTimeStatsByActor.validator(status, body) ctx.status = status return next() }, @@ -48380,7 +40179,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .apiInsightsGetUserStats(input, apiInsightsGetUserStatsResponder, ctx) + .apiInsightsGetUserStats(input, apiInsightsGetUserStats.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48388,7 +40187,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = apiInsightsGetUserStatsResponseValidator(status, body) + ctx.body = apiInsightsGetUserStats.validator(status, body) ctx.status = status return next() }, @@ -48412,7 +40211,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsGetOrgInstallation(input, appsGetOrgInstallationResponder, ctx) + .appsGetOrgInstallation(input, appsGetOrgInstallation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48420,7 +40219,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetOrgInstallationResponseValidator(status, body) + ctx.body = appsGetOrgInstallation.validator(status, body) ctx.status = status return next() }, @@ -48453,7 +40252,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListAppInstallations(input, orgsListAppInstallationsResponder, ctx) + .orgsListAppInstallations( + input, + orgsListAppInstallations.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48461,7 +40264,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListAppInstallationsResponseValidator(status, body) + ctx.body = orgsListAppInstallations.validator(status, body) ctx.status = status return next() }, @@ -48489,7 +40292,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsGetRestrictionsForOrg( input, - interactionsGetRestrictionsForOrgResponder, + interactionsGetRestrictionsForOrg.responder, ctx, ) .catch((err) => { @@ -48499,10 +40302,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = interactionsGetRestrictionsForOrgResponseValidator( - status, - body, - ) + ctx.body = interactionsGetRestrictionsForOrg.validator(status, body) ctx.status = status return next() }, @@ -48536,7 +40336,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsSetRestrictionsForOrg( input, - interactionsSetRestrictionsForOrgResponder, + interactionsSetRestrictionsForOrg.responder, ctx, ) .catch((err) => { @@ -48546,10 +40346,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = interactionsSetRestrictionsForOrgResponseValidator( - status, - body, - ) + ctx.body = interactionsSetRestrictionsForOrg.validator(status, body) ctx.status = status return next() }, @@ -48577,7 +40374,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsRemoveRestrictionsForOrg( input, - interactionsRemoveRestrictionsForOrgResponder, + interactionsRemoveRestrictionsForOrg.responder, ctx, ) .catch((err) => { @@ -48587,10 +40384,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = interactionsRemoveRestrictionsForOrgResponseValidator( - status, - body, - ) + ctx.body = interactionsRemoveRestrictionsForOrg.validator(status, body) ctx.status = status return next() }, @@ -48639,7 +40433,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListPendingInvitations( input, - orgsListPendingInvitationsResponder, + orgsListPendingInvitations.responder, ctx, ) .catch((err) => { @@ -48649,7 +40443,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListPendingInvitationsResponseValidator(status, body) + ctx.body = orgsListPendingInvitations.validator(status, body) ctx.status = status return next() }, @@ -48689,7 +40483,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsCreateInvitation(input, orgsCreateInvitationResponder, ctx) + .orgsCreateInvitation(input, orgsCreateInvitation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48697,7 +40491,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCreateInvitationResponseValidator(status, body) + ctx.body = orgsCreateInvitation.validator(status, body) ctx.status = status return next() }, @@ -48724,7 +40518,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsCancelInvitation(input, orgsCancelInvitationResponder, ctx) + .orgsCancelInvitation(input, orgsCancelInvitation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48732,7 +40526,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCancelInvitationResponseValidator(status, body) + ctx.body = orgsCancelInvitation.validator(status, body) ctx.status = status return next() }, @@ -48768,7 +40562,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListInvitationTeams(input, orgsListInvitationTeamsResponder, ctx) + .orgsListInvitationTeams(input, orgsListInvitationTeams.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48776,7 +40570,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListInvitationTeamsResponseValidator(status, body) + ctx.body = orgsListInvitationTeams.validator(status, body) ctx.status = status return next() }, @@ -48800,7 +40594,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListIssueTypes(input, orgsListIssueTypesResponder, ctx) + .orgsListIssueTypes(input, orgsListIssueTypes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48808,7 +40602,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListIssueTypesResponseValidator(status, body) + ctx.body = orgsListIssueTypes.validator(status, body) ctx.status = status return next() }, @@ -48838,7 +40632,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsCreateIssueType(input, orgsCreateIssueTypeResponder, ctx) + .orgsCreateIssueType(input, orgsCreateIssueType.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48846,7 +40640,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCreateIssueTypeResponseValidator(status, body) + ctx.body = orgsCreateIssueType.validator(status, body) ctx.status = status return next() }, @@ -48879,7 +40673,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsUpdateIssueType(input, orgsUpdateIssueTypeResponder, ctx) + .orgsUpdateIssueType(input, orgsUpdateIssueType.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48887,7 +40681,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsUpdateIssueTypeResponseValidator(status, body) + ctx.body = orgsUpdateIssueType.validator(status, body) ctx.status = status return next() }, @@ -48914,7 +40708,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsDeleteIssueType(input, orgsDeleteIssueTypeResponder, ctx) + .orgsDeleteIssueType(input, orgsDeleteIssueType.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48922,7 +40716,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsDeleteIssueTypeResponseValidator(status, body) + ctx.body = orgsDeleteIssueType.validator(status, body) ctx.status = status return next() }, @@ -48965,7 +40759,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListForOrg(input, issuesListForOrgResponder, ctx) + .issuesListForOrg(input, issuesListForOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48973,7 +40767,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListForOrgResponseValidator(status, body) + ctx.body = issuesListForOrg.validator(status, body) ctx.status = status return next() }) @@ -49004,7 +40798,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListMembers(input, orgsListMembersResponder, ctx) + .orgsListMembers(input, orgsListMembers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49012,7 +40806,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListMembersResponseValidator(status, body) + ctx.body = orgsListMembers.validator(status, body) ctx.status = status return next() }) @@ -49040,7 +40834,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsCheckMembershipForUser( input, - orgsCheckMembershipForUserResponder, + orgsCheckMembershipForUser.responder, ctx, ) .catch((err) => { @@ -49050,7 +40844,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCheckMembershipForUserResponseValidator(status, body) + ctx.body = orgsCheckMembershipForUser.validator(status, body) ctx.status = status return next() }, @@ -49077,7 +40871,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsRemoveMember(input, orgsRemoveMemberResponder, ctx) + .orgsRemoveMember(input, orgsRemoveMember.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49085,7 +40879,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRemoveMemberResponseValidator(status, body) + ctx.body = orgsRemoveMember.validator(status, body) ctx.status = status return next() }, @@ -49123,7 +40917,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesGetCodespacesForUserInOrg( input, - codespacesGetCodespacesForUserInOrgResponder, + codespacesGetCodespacesForUserInOrg.responder, ctx, ) .catch((err) => { @@ -49133,10 +40927,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesGetCodespacesForUserInOrgResponseValidator( - status, - body, - ) + ctx.body = codespacesGetCodespacesForUserInOrg.validator(status, body) ctx.status = status return next() }, @@ -49166,7 +40957,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesDeleteFromOrganization( input, - codespacesDeleteFromOrganizationResponder, + codespacesDeleteFromOrganization.responder, ctx, ) .catch((err) => { @@ -49176,7 +40967,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesDeleteFromOrganizationResponseValidator(status, body) + ctx.body = codespacesDeleteFromOrganization.validator(status, body) ctx.status = status return next() }, @@ -49206,7 +40997,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesStopInOrganization( input, - codespacesStopInOrganizationResponder, + codespacesStopInOrganization.responder, ctx, ) .catch((err) => { @@ -49216,7 +41007,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesStopInOrganizationResponseValidator(status, body) + ctx.body = codespacesStopInOrganization.validator(status, body) ctx.status = status return next() }, @@ -49245,7 +41036,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .copilotGetCopilotSeatDetailsForUser( input, - copilotGetCopilotSeatDetailsForUserResponder, + copilotGetCopilotSeatDetailsForUser.responder, ctx, ) .catch((err) => { @@ -49255,10 +41046,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotGetCopilotSeatDetailsForUserResponseValidator( - status, - body, - ) + ctx.body = copilotGetCopilotSeatDetailsForUser.validator(status, body) ctx.status = status return next() }, @@ -49285,7 +41073,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsGetMembershipForUser(input, orgsGetMembershipForUserResponder, ctx) + .orgsGetMembershipForUser( + input, + orgsGetMembershipForUser.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49293,7 +41085,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetMembershipForUserResponseValidator(status, body) + ctx.body = orgsGetMembershipForUser.validator(status, body) ctx.status = status return next() }, @@ -49328,7 +41120,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsSetMembershipForUser(input, orgsSetMembershipForUserResponder, ctx) + .orgsSetMembershipForUser( + input, + orgsSetMembershipForUser.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49336,7 +41132,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsSetMembershipForUserResponseValidator(status, body) + ctx.body = orgsSetMembershipForUser.validator(status, body) ctx.status = status return next() }, @@ -49365,7 +41161,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsRemoveMembershipForUser( input, - orgsRemoveMembershipForUserResponder, + orgsRemoveMembershipForUser.responder, ctx, ) .catch((err) => { @@ -49375,7 +41171,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRemoveMembershipForUserResponseValidator(status, body) + ctx.body = orgsRemoveMembershipForUser.validator(status, body) ctx.status = status return next() }, @@ -49414,7 +41210,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .migrationsListForOrg(input, migrationsListForOrgResponder, ctx) + .migrationsListForOrg(input, migrationsListForOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49422,7 +41218,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsListForOrgResponseValidator(status, body) + ctx.body = migrationsListForOrg.validator(status, body) ctx.status = status return next() }, @@ -49462,7 +41258,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .migrationsStartForOrg(input, migrationsStartForOrgResponder, ctx) + .migrationsStartForOrg(input, migrationsStartForOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49470,7 +41266,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsStartForOrgResponseValidator(status, body) + ctx.body = migrationsStartForOrg.validator(status, body) ctx.status = status return next() }, @@ -49512,7 +41308,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsGetStatusForOrg( input, - migrationsGetStatusForOrgResponder, + migrationsGetStatusForOrg.responder, ctx, ) .catch((err) => { @@ -49522,7 +41318,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsGetStatusForOrgResponseValidator(status, body) + ctx.body = migrationsGetStatusForOrg.validator(status, body) ctx.status = status return next() }, @@ -49551,7 +41347,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsDownloadArchiveForOrg( input, - migrationsDownloadArchiveForOrgResponder, + migrationsDownloadArchiveForOrg.responder, ctx, ) .catch((err) => { @@ -49561,7 +41357,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsDownloadArchiveForOrgResponseValidator(status, body) + ctx.body = migrationsDownloadArchiveForOrg.validator(status, body) ctx.status = status return next() }, @@ -49590,7 +41386,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsDeleteArchiveForOrg( input, - migrationsDeleteArchiveForOrgResponder, + migrationsDeleteArchiveForOrg.responder, ctx, ) .catch((err) => { @@ -49600,7 +41396,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsDeleteArchiveForOrgResponseValidator(status, body) + ctx.body = migrationsDeleteArchiveForOrg.validator(status, body) ctx.status = status return next() }, @@ -49630,7 +41426,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsUnlockRepoForOrg( input, - migrationsUnlockRepoForOrgResponder, + migrationsUnlockRepoForOrg.responder, ctx, ) .catch((err) => { @@ -49640,7 +41436,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsUnlockRepoForOrgResponseValidator(status, body) + ctx.body = migrationsUnlockRepoForOrg.validator(status, body) ctx.status = status return next() }, @@ -49678,7 +41474,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsListReposForOrg( input, - migrationsListReposForOrgResponder, + migrationsListReposForOrg.responder, ctx, ) .catch((err) => { @@ -49688,7 +41484,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsListReposForOrgResponseValidator(status, body) + ctx.body = migrationsListReposForOrg.validator(status, body) ctx.status = status return next() }, @@ -49712,7 +41508,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListOrgRoles(input, orgsListOrgRolesResponder, ctx) + .orgsListOrgRoles(input, orgsListOrgRoles.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49720,7 +41516,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListOrgRolesResponseValidator(status, body) + ctx.body = orgsListOrgRoles.validator(status, body) ctx.status = status return next() }, @@ -49749,7 +41545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsRevokeAllOrgRolesTeam( input, - orgsRevokeAllOrgRolesTeamResponder, + orgsRevokeAllOrgRolesTeam.responder, ctx, ) .catch((err) => { @@ -49759,7 +41555,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRevokeAllOrgRolesTeamResponseValidator(status, body) + ctx.body = orgsRevokeAllOrgRolesTeam.validator(status, body) ctx.status = status return next() }, @@ -49787,7 +41583,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsAssignTeamToOrgRole(input, orgsAssignTeamToOrgRoleResponder, ctx) + .orgsAssignTeamToOrgRole(input, orgsAssignTeamToOrgRole.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49795,7 +41591,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsAssignTeamToOrgRoleResponseValidator(status, body) + ctx.body = orgsAssignTeamToOrgRole.validator(status, body) ctx.status = status return next() }, @@ -49823,7 +41619,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsRevokeOrgRoleTeam(input, orgsRevokeOrgRoleTeamResponder, ctx) + .orgsRevokeOrgRoleTeam(input, orgsRevokeOrgRoleTeam.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49831,7 +41627,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRevokeOrgRoleTeamResponseValidator(status, body) + ctx.body = orgsRevokeOrgRoleTeam.validator(status, body) ctx.status = status return next() }, @@ -49860,7 +41656,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsRevokeAllOrgRolesUser( input, - orgsRevokeAllOrgRolesUserResponder, + orgsRevokeAllOrgRolesUser.responder, ctx, ) .catch((err) => { @@ -49870,7 +41666,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRevokeAllOrgRolesUserResponseValidator(status, body) + ctx.body = orgsRevokeAllOrgRolesUser.validator(status, body) ctx.status = status return next() }, @@ -49898,7 +41694,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsAssignUserToOrgRole(input, orgsAssignUserToOrgRoleResponder, ctx) + .orgsAssignUserToOrgRole(input, orgsAssignUserToOrgRole.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49906,7 +41702,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsAssignUserToOrgRoleResponseValidator(status, body) + ctx.body = orgsAssignUserToOrgRole.validator(status, body) ctx.status = status return next() }, @@ -49934,7 +41730,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsRevokeOrgRoleUser(input, orgsRevokeOrgRoleUserResponder, ctx) + .orgsRevokeOrgRoleUser(input, orgsRevokeOrgRoleUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49942,7 +41738,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRevokeOrgRoleUserResponseValidator(status, body) + ctx.body = orgsRevokeOrgRoleUser.validator(status, body) ctx.status = status return next() }, @@ -49969,7 +41765,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsGetOrgRole(input, orgsGetOrgRoleResponder, ctx) + .orgsGetOrgRole(input, orgsGetOrgRole.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49977,7 +41773,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetOrgRoleResponseValidator(status, body) + ctx.body = orgsGetOrgRole.validator(status, body) ctx.status = status return next() }, @@ -50013,7 +41809,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListOrgRoleTeams(input, orgsListOrgRoleTeamsResponder, ctx) + .orgsListOrgRoleTeams(input, orgsListOrgRoleTeams.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50021,7 +41817,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListOrgRoleTeamsResponseValidator(status, body) + ctx.body = orgsListOrgRoleTeams.validator(status, body) ctx.status = status return next() }, @@ -50057,7 +41853,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListOrgRoleUsers(input, orgsListOrgRoleUsersResponder, ctx) + .orgsListOrgRoleUsers(input, orgsListOrgRoleUsers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50065,7 +41861,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListOrgRoleUsersResponseValidator(status, body) + ctx.body = orgsListOrgRoleUsers.validator(status, body) ctx.status = status return next() }, @@ -50101,7 +41897,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListOutsideCollaborators( input, - orgsListOutsideCollaboratorsResponder, + orgsListOutsideCollaborators.responder, ctx, ) .catch((err) => { @@ -50111,7 +41907,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListOutsideCollaboratorsResponseValidator(status, body) + ctx.body = orgsListOutsideCollaborators.validator(status, body) ctx.status = status return next() }, @@ -50148,7 +41944,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsConvertMemberToOutsideCollaborator( input, - orgsConvertMemberToOutsideCollaboratorResponder, + orgsConvertMemberToOutsideCollaborator.responder, ctx, ) .catch((err) => { @@ -50158,10 +41954,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsConvertMemberToOutsideCollaboratorResponseValidator( - status, - body, - ) + ctx.body = orgsConvertMemberToOutsideCollaborator.validator(status, body) ctx.status = status return next() }, @@ -50190,7 +41983,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsRemoveOutsideCollaborator( input, - orgsRemoveOutsideCollaboratorResponder, + orgsRemoveOutsideCollaborator.responder, ctx, ) .catch((err) => { @@ -50200,7 +41993,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRemoveOutsideCollaboratorResponseValidator(status, body) + ctx.body = orgsRemoveOutsideCollaborator.validator(status, body) ctx.status = status return next() }, @@ -50246,7 +42039,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesListPackagesForOrganization( input, - packagesListPackagesForOrganizationResponder, + packagesListPackagesForOrganization.responder, ctx, ) .catch((err) => { @@ -50256,10 +42049,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesListPackagesForOrganizationResponseValidator( - status, - body, - ) + ctx.body = packagesListPackagesForOrganization.validator(status, body) ctx.status = status return next() }, @@ -50296,7 +42086,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetPackageForOrganization( input, - packagesGetPackageForOrganizationResponder, + packagesGetPackageForOrganization.responder, ctx, ) .catch((err) => { @@ -50306,10 +42096,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesGetPackageForOrganizationResponseValidator( - status, - body, - ) + ctx.body = packagesGetPackageForOrganization.validator(status, body) ctx.status = status return next() }, @@ -50346,7 +42133,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesDeletePackageForOrg( input, - packagesDeletePackageForOrgResponder, + packagesDeletePackageForOrg.responder, ctx, ) .catch((err) => { @@ -50356,7 +42143,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesDeletePackageForOrgResponseValidator(status, body) + ctx.body = packagesDeletePackageForOrg.validator(status, body) ctx.status = status return next() }, @@ -50401,7 +42188,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesRestorePackageForOrg( input, - packagesRestorePackageForOrgResponder, + packagesRestorePackageForOrg.responder, ctx, ) .catch((err) => { @@ -50411,7 +42198,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesRestorePackageForOrgResponseValidator(status, body) + ctx.body = packagesRestorePackageForOrg.validator(status, body) ctx.status = status return next() }, @@ -50462,7 +42249,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetAllPackageVersionsForPackageOwnedByOrg( input, - packagesGetAllPackageVersionsForPackageOwnedByOrgResponder, + packagesGetAllPackageVersionsForPackageOwnedByOrg.responder, ctx, ) .catch((err) => { @@ -50472,11 +42259,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - packagesGetAllPackageVersionsForPackageOwnedByOrgResponseValidator( - status, - body, - ) + ctx.body = packagesGetAllPackageVersionsForPackageOwnedByOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -50514,7 +42300,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetPackageVersionForOrganization( input, - packagesGetPackageVersionForOrganizationResponder, + packagesGetPackageVersionForOrganization.responder, ctx, ) .catch((err) => { @@ -50524,7 +42310,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesGetPackageVersionForOrganizationResponseValidator( + ctx.body = packagesGetPackageVersionForOrganization.validator( status, body, ) @@ -50565,7 +42351,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesDeletePackageVersionForOrg( input, - packagesDeletePackageVersionForOrgResponder, + packagesDeletePackageVersionForOrg.responder, ctx, ) .catch((err) => { @@ -50575,10 +42361,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesDeletePackageVersionForOrgResponseValidator( - status, - body, - ) + ctx.body = packagesDeletePackageVersionForOrg.validator(status, body) ctx.status = status return next() }, @@ -50616,7 +42399,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesRestorePackageVersionForOrg( input, - packagesRestorePackageVersionForOrgResponder, + packagesRestorePackageVersionForOrg.responder, ctx, ) .catch((err) => { @@ -50626,10 +42409,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesRestorePackageVersionForOrgResponseValidator( - status, - body, - ) + ctx.body = packagesRestorePackageVersionForOrg.validator(status, body) ctx.status = status return next() }, @@ -50680,7 +42460,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListPatGrantRequests(input, orgsListPatGrantRequestsResponder, ctx) + .orgsListPatGrantRequests( + input, + orgsListPatGrantRequests.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50688,7 +42472,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListPatGrantRequestsResponseValidator(status, body) + ctx.body = orgsListPatGrantRequests.validator(status, body) ctx.status = status return next() }, @@ -50726,7 +42510,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsReviewPatGrantRequestsInBulk( input, - orgsReviewPatGrantRequestsInBulkResponder, + orgsReviewPatGrantRequestsInBulk.responder, ctx, ) .catch((err) => { @@ -50736,7 +42520,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsReviewPatGrantRequestsInBulkResponseValidator(status, body) + ctx.body = orgsReviewPatGrantRequestsInBulk.validator(status, body) ctx.status = status return next() }, @@ -50774,7 +42558,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsReviewPatGrantRequest( input, - orgsReviewPatGrantRequestResponder, + orgsReviewPatGrantRequest.responder, ctx, ) .catch((err) => { @@ -50784,7 +42568,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsReviewPatGrantRequestResponseValidator(status, body) + ctx.body = orgsReviewPatGrantRequest.validator(status, body) ctx.status = status return next() }, @@ -50822,7 +42606,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListPatGrantRequestRepositories( input, - orgsListPatGrantRequestRepositoriesResponder, + orgsListPatGrantRequestRepositories.responder, ctx, ) .catch((err) => { @@ -50832,10 +42616,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListPatGrantRequestRepositoriesResponseValidator( - status, - body, - ) + ctx.body = orgsListPatGrantRequestRepositories.validator(status, body) ctx.status = status return next() }, @@ -50886,7 +42667,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListPatGrants(input, orgsListPatGrantsResponder, ctx) + .orgsListPatGrants(input, orgsListPatGrants.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50894,7 +42675,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListPatGrantsResponseValidator(status, body) + ctx.body = orgsListPatGrants.validator(status, body) ctx.status = status return next() }, @@ -50927,7 +42708,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsUpdatePatAccesses(input, orgsUpdatePatAccessesResponder, ctx) + .orgsUpdatePatAccesses(input, orgsUpdatePatAccesses.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50935,7 +42716,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsUpdatePatAccessesResponseValidator(status, body) + ctx.body = orgsUpdatePatAccesses.validator(status, body) ctx.status = status return next() }, @@ -50968,7 +42749,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsUpdatePatAccess(input, orgsUpdatePatAccessResponder, ctx) + .orgsUpdatePatAccess(input, orgsUpdatePatAccess.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50976,7 +42757,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsUpdatePatAccessResponseValidator(status, body) + ctx.body = orgsUpdatePatAccess.validator(status, body) ctx.status = status return next() }, @@ -51014,7 +42795,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListPatGrantRepositories( input, - orgsListPatGrantRepositoriesResponder, + orgsListPatGrantRepositories.responder, ctx, ) .catch((err) => { @@ -51024,7 +42805,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListPatGrantRepositoriesResponseValidator(status, body) + ctx.body = orgsListPatGrantRepositories.validator(status, body) ctx.status = status return next() }, @@ -51061,7 +42842,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .privateRegistriesListOrgPrivateRegistries( input, - privateRegistriesListOrgPrivateRegistriesResponder, + privateRegistriesListOrgPrivateRegistries.responder, ctx, ) .catch((err) => { @@ -51071,7 +42852,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = privateRegistriesListOrgPrivateRegistriesResponseValidator( + ctx.body = privateRegistriesListOrgPrivateRegistries.validator( status, body, ) @@ -51121,7 +42902,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .privateRegistriesCreateOrgPrivateRegistry( input, - privateRegistriesCreateOrgPrivateRegistryResponder, + privateRegistriesCreateOrgPrivateRegistry.responder, ctx, ) .catch((err) => { @@ -51131,7 +42912,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = privateRegistriesCreateOrgPrivateRegistryResponseValidator( + ctx.body = privateRegistriesCreateOrgPrivateRegistry.validator( status, body, ) @@ -51162,7 +42943,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .privateRegistriesGetOrgPublicKey( input, - privateRegistriesGetOrgPublicKeyResponder, + privateRegistriesGetOrgPublicKey.responder, ctx, ) .catch((err) => { @@ -51172,7 +42953,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = privateRegistriesGetOrgPublicKeyResponseValidator(status, body) + ctx.body = privateRegistriesGetOrgPublicKey.validator(status, body) ctx.status = status return next() }, @@ -51201,7 +42982,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .privateRegistriesGetOrgPrivateRegistry( input, - privateRegistriesGetOrgPrivateRegistryResponder, + privateRegistriesGetOrgPrivateRegistry.responder, ctx, ) .catch((err) => { @@ -51211,10 +42992,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = privateRegistriesGetOrgPrivateRegistryResponseValidator( - status, - body, - ) + ctx.body = privateRegistriesGetOrgPrivateRegistry.validator(status, body) ctx.status = status return next() }, @@ -51263,7 +43041,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .privateRegistriesUpdateOrgPrivateRegistry( input, - privateRegistriesUpdateOrgPrivateRegistryResponder, + privateRegistriesUpdateOrgPrivateRegistry.responder, ctx, ) .catch((err) => { @@ -51273,7 +43051,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = privateRegistriesUpdateOrgPrivateRegistryResponseValidator( + ctx.body = privateRegistriesUpdateOrgPrivateRegistry.validator( status, body, ) @@ -51305,7 +43083,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .privateRegistriesDeleteOrgPrivateRegistry( input, - privateRegistriesDeleteOrgPrivateRegistryResponder, + privateRegistriesDeleteOrgPrivateRegistry.responder, ctx, ) .catch((err) => { @@ -51315,7 +43093,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = privateRegistriesDeleteOrgPrivateRegistryResponseValidator( + ctx.body = privateRegistriesDeleteOrgPrivateRegistry.validator( status, body, ) @@ -51349,7 +43127,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsListForOrg(input, projectsListForOrgResponder, ctx) + .projectsListForOrg(input, projectsListForOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51357,7 +43135,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsListForOrgResponseValidator(status, body) + ctx.body = projectsListForOrg.validator(status, body) ctx.status = status return next() }) @@ -51389,7 +43167,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsCreateForOrg(input, projectsCreateForOrgResponder, ctx) + .projectsCreateForOrg(input, projectsCreateForOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51397,7 +43175,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsCreateForOrgResponseValidator(status, body) + ctx.body = projectsCreateForOrg.validator(status, body) ctx.status = status return next() }, @@ -51423,7 +43201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsGetAllCustomProperties( input, - orgsGetAllCustomPropertiesResponder, + orgsGetAllCustomProperties.responder, ctx, ) .catch((err) => { @@ -51433,7 +43211,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetAllCustomPropertiesResponseValidator(status, body) + ctx.body = orgsGetAllCustomProperties.validator(status, body) ctx.status = status return next() }, @@ -51469,7 +43247,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsCreateOrUpdateCustomProperties( input, - orgsCreateOrUpdateCustomPropertiesResponder, + orgsCreateOrUpdateCustomProperties.responder, ctx, ) .catch((err) => { @@ -51479,10 +43257,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCreateOrUpdateCustomPropertiesResponseValidator( - status, - body, - ) + ctx.body = orgsCreateOrUpdateCustomProperties.validator(status, body) ctx.status = status return next() }, @@ -51509,7 +43284,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsGetCustomProperty(input, orgsGetCustomPropertyResponder, ctx) + .orgsGetCustomProperty(input, orgsGetCustomProperty.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51517,7 +43292,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetCustomPropertyResponseValidator(status, body) + ctx.body = orgsGetCustomProperty.validator(status, body) ctx.status = status return next() }, @@ -51553,7 +43328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsCreateOrUpdateCustomProperty( input, - orgsCreateOrUpdateCustomPropertyResponder, + orgsCreateOrUpdateCustomProperty.responder, ctx, ) .catch((err) => { @@ -51563,7 +43338,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCreateOrUpdateCustomPropertyResponseValidator(status, body) + ctx.body = orgsCreateOrUpdateCustomProperty.validator(status, body) ctx.status = status return next() }, @@ -51590,7 +43365,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsRemoveCustomProperty(input, orgsRemoveCustomPropertyResponder, ctx) + .orgsRemoveCustomProperty( + input, + orgsRemoveCustomProperty.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51598,7 +43377,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRemoveCustomPropertyResponseValidator(status, body) + ctx.body = orgsRemoveCustomProperty.validator(status, body) ctx.status = status return next() }, @@ -51636,7 +43415,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListCustomPropertiesValuesForRepos( input, - orgsListCustomPropertiesValuesForReposResponder, + orgsListCustomPropertiesValuesForRepos.responder, ctx, ) .catch((err) => { @@ -51646,10 +43425,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListCustomPropertiesValuesForReposResponseValidator( - status, - body, - ) + ctx.body = orgsListCustomPropertiesValuesForRepos.validator(status, body) ctx.status = status return next() }, @@ -51686,7 +43462,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsCreateOrUpdateCustomPropertiesValuesForRepos( input, - orgsCreateOrUpdateCustomPropertiesValuesForReposResponder, + orgsCreateOrUpdateCustomPropertiesValuesForRepos.responder, ctx, ) .catch((err) => { @@ -51696,11 +43472,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - orgsCreateOrUpdateCustomPropertiesValuesForReposResponseValidator( - status, - body, - ) + ctx.body = orgsCreateOrUpdateCustomPropertiesValuesForRepos.validator( + status, + body, + ) ctx.status = status return next() }, @@ -51733,7 +43508,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListPublicMembers(input, orgsListPublicMembersResponder, ctx) + .orgsListPublicMembers(input, orgsListPublicMembers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51741,7 +43516,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListPublicMembersResponseValidator(status, body) + ctx.body = orgsListPublicMembers.validator(status, body) ctx.status = status return next() }, @@ -51770,7 +43545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsCheckPublicMembershipForUser( input, - orgsCheckPublicMembershipForUserResponder, + orgsCheckPublicMembershipForUser.responder, ctx, ) .catch((err) => { @@ -51780,7 +43555,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsCheckPublicMembershipForUserResponseValidator(status, body) + ctx.body = orgsCheckPublicMembershipForUser.validator(status, body) ctx.status = status return next() }, @@ -51809,7 +43584,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsSetPublicMembershipForAuthenticatedUser( input, - orgsSetPublicMembershipForAuthenticatedUserResponder, + orgsSetPublicMembershipForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -51819,7 +43594,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsSetPublicMembershipForAuthenticatedUserResponseValidator( + ctx.body = orgsSetPublicMembershipForAuthenticatedUser.validator( status, body, ) @@ -51851,7 +43626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsRemovePublicMembershipForAuthenticatedUser( input, - orgsRemovePublicMembershipForAuthenticatedUserResponder, + orgsRemovePublicMembershipForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -51861,11 +43636,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - orgsRemovePublicMembershipForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = orgsRemovePublicMembershipForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -51904,7 +43678,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListForOrg(input, reposListForOrgResponder, ctx) + .reposListForOrg(input, reposListForOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51912,7 +43686,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListForOrgResponseValidator(status, body) + ctx.body = reposListForOrg.validator(status, body) ctx.status = status return next() }) @@ -51968,7 +43742,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateInOrg(input, reposCreateInOrgResponder, ctx) + .reposCreateInOrg(input, reposCreateInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51976,7 +43750,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateInOrgResponseValidator(status, body) + ctx.body = reposCreateInOrg.validator(status, body) ctx.status = status return next() }) @@ -52009,7 +43783,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetOrgRulesets(input, reposGetOrgRulesetsResponder, ctx) + .reposGetOrgRulesets(input, reposGetOrgRulesets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52017,7 +43791,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetOrgRulesetsResponseValidator(status, body) + ctx.body = reposGetOrgRulesets.validator(status, body) ctx.status = status return next() }, @@ -52057,7 +43831,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateOrgRuleset(input, reposCreateOrgRulesetResponder, ctx) + .reposCreateOrgRuleset(input, reposCreateOrgRuleset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52065,7 +43839,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateOrgRulesetResponseValidator(status, body) + ctx.body = reposCreateOrgRuleset.validator(status, body) ctx.status = status return next() }, @@ -52109,7 +43883,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetOrgRuleSuites(input, reposGetOrgRuleSuitesResponder, ctx) + .reposGetOrgRuleSuites(input, reposGetOrgRuleSuites.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52117,7 +43891,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetOrgRuleSuitesResponseValidator(status, body) + ctx.body = reposGetOrgRuleSuites.validator(status, body) ctx.status = status return next() }, @@ -52144,7 +43918,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetOrgRuleSuite(input, reposGetOrgRuleSuiteResponder, ctx) + .reposGetOrgRuleSuite(input, reposGetOrgRuleSuite.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52152,7 +43926,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetOrgRuleSuiteResponseValidator(status, body) + ctx.body = reposGetOrgRuleSuite.validator(status, body) ctx.status = status return next() }, @@ -52179,7 +43953,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetOrgRuleset(input, reposGetOrgRulesetResponder, ctx) + .reposGetOrgRuleset(input, reposGetOrgRuleset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52187,7 +43961,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetOrgRulesetResponseValidator(status, body) + ctx.body = reposGetOrgRuleset.validator(status, body) ctx.status = status return next() }, @@ -52229,7 +44003,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUpdateOrgRuleset(input, reposUpdateOrgRulesetResponder, ctx) + .reposUpdateOrgRuleset(input, reposUpdateOrgRuleset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52237,7 +44011,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateOrgRulesetResponseValidator(status, body) + ctx.body = reposUpdateOrgRuleset.validator(status, body) ctx.status = status return next() }, @@ -52264,7 +44038,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteOrgRuleset(input, reposDeleteOrgRulesetResponder, ctx) + .reposDeleteOrgRuleset(input, reposDeleteOrgRuleset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52272,7 +44046,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteOrgRulesetResponseValidator(status, body) + ctx.body = reposDeleteOrgRuleset.validator(status, body) ctx.status = status return next() }, @@ -52308,7 +44082,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsGetOrgRulesetHistory(input, orgsGetOrgRulesetHistoryResponder, ctx) + .orgsGetOrgRulesetHistory( + input, + orgsGetOrgRulesetHistory.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52316,7 +44094,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetOrgRulesetHistoryResponseValidator(status, body) + ctx.body = orgsGetOrgRulesetHistory.validator(status, body) ctx.status = status return next() }, @@ -52344,7 +44122,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsGetOrgRulesetVersion(input, orgsGetOrgRulesetVersionResponder, ctx) + .orgsGetOrgRulesetVersion( + input, + orgsGetOrgRulesetVersion.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -52352,7 +44134,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetOrgRulesetVersionResponseValidator(status, body) + ctx.body = orgsGetOrgRulesetVersion.validator(status, body) ctx.status = status return next() }, @@ -52399,7 +44181,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .secretScanningListAlertsForOrg( input, - secretScanningListAlertsForOrgResponder, + secretScanningListAlertsForOrg.responder, ctx, ) .catch((err) => { @@ -52409,7 +44191,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = secretScanningListAlertsForOrgResponseValidator(status, body) + ctx.body = secretScanningListAlertsForOrg.validator(status, body) ctx.status = status return next() }, @@ -52453,7 +44235,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesListOrgRepositoryAdvisories( input, - securityAdvisoriesListOrgRepositoryAdvisoriesResponder, + securityAdvisoriesListOrgRepositoryAdvisories.responder, ctx, ) .catch((err) => { @@ -52463,7 +44245,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = securityAdvisoriesListOrgRepositoryAdvisoriesResponseValidator( + ctx.body = securityAdvisoriesListOrgRepositoryAdvisories.validator( status, body, ) @@ -52492,7 +44274,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListSecurityManagerTeams( input, - orgsListSecurityManagerTeamsResponder, + orgsListSecurityManagerTeams.responder, ctx, ) .catch((err) => { @@ -52502,7 +44284,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListSecurityManagerTeamsResponseValidator(status, body) + ctx.body = orgsListSecurityManagerTeams.validator(status, body) ctx.status = status return next() }, @@ -52531,7 +44313,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsAddSecurityManagerTeam( input, - orgsAddSecurityManagerTeamResponder, + orgsAddSecurityManagerTeam.responder, ctx, ) .catch((err) => { @@ -52541,7 +44323,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsAddSecurityManagerTeamResponseValidator(status, body) + ctx.body = orgsAddSecurityManagerTeam.validator(status, body) ctx.status = status return next() }, @@ -52570,7 +44352,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsRemoveSecurityManagerTeam( input, - orgsRemoveSecurityManagerTeamResponder, + orgsRemoveSecurityManagerTeam.responder, ctx, ) .catch((err) => { @@ -52580,7 +44362,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsRemoveSecurityManagerTeamResponseValidator(status, body) + ctx.body = orgsRemoveSecurityManagerTeam.validator(status, body) ctx.status = status return next() }, @@ -52608,7 +44390,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .billingGetGithubActionsBillingOrg( input, - billingGetGithubActionsBillingOrgResponder, + billingGetGithubActionsBillingOrg.responder, ctx, ) .catch((err) => { @@ -52618,10 +44400,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = billingGetGithubActionsBillingOrgResponseValidator( - status, - body, - ) + ctx.body = billingGetGithubActionsBillingOrg.validator(status, body) ctx.status = status return next() }, @@ -52649,7 +44428,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .billingGetGithubPackagesBillingOrg( input, - billingGetGithubPackagesBillingOrgResponder, + billingGetGithubPackagesBillingOrg.responder, ctx, ) .catch((err) => { @@ -52659,10 +44438,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = billingGetGithubPackagesBillingOrgResponseValidator( - status, - body, - ) + ctx.body = billingGetGithubPackagesBillingOrg.validator(status, body) ctx.status = status return next() }, @@ -52690,7 +44466,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .billingGetSharedStorageBillingOrg( input, - billingGetSharedStorageBillingOrgResponder, + billingGetSharedStorageBillingOrg.responder, ctx, ) .catch((err) => { @@ -52700,10 +44476,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = billingGetSharedStorageBillingOrgResponseValidator( - status, - body, - ) + ctx.body = billingGetSharedStorageBillingOrg.validator(status, body) ctx.status = status return next() }, @@ -52740,7 +44513,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .hostedComputeListNetworkConfigurationsForOrg( input, - hostedComputeListNetworkConfigurationsForOrgResponder, + hostedComputeListNetworkConfigurationsForOrg.responder, ctx, ) .catch((err) => { @@ -52750,7 +44523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = hostedComputeListNetworkConfigurationsForOrgResponseValidator( + ctx.body = hostedComputeListNetworkConfigurationsForOrg.validator( status, body, ) @@ -52791,7 +44564,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .hostedComputeCreateNetworkConfigurationForOrg( input, - hostedComputeCreateNetworkConfigurationForOrgResponder, + hostedComputeCreateNetworkConfigurationForOrg.responder, ctx, ) .catch((err) => { @@ -52801,7 +44574,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = hostedComputeCreateNetworkConfigurationForOrgResponseValidator( + ctx.body = hostedComputeCreateNetworkConfigurationForOrg.validator( status, body, ) @@ -52833,7 +44606,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .hostedComputeGetNetworkConfigurationForOrg( input, - hostedComputeGetNetworkConfigurationForOrgResponder, + hostedComputeGetNetworkConfigurationForOrg.responder, ctx, ) .catch((err) => { @@ -52843,7 +44616,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = hostedComputeGetNetworkConfigurationForOrgResponseValidator( + ctx.body = hostedComputeGetNetworkConfigurationForOrg.validator( status, body, ) @@ -52885,7 +44658,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .hostedComputeUpdateNetworkConfigurationForOrg( input, - hostedComputeUpdateNetworkConfigurationForOrgResponder, + hostedComputeUpdateNetworkConfigurationForOrg.responder, ctx, ) .catch((err) => { @@ -52895,7 +44668,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = hostedComputeUpdateNetworkConfigurationForOrgResponseValidator( + ctx.body = hostedComputeUpdateNetworkConfigurationForOrg.validator( status, body, ) @@ -52927,7 +44700,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .hostedComputeDeleteNetworkConfigurationFromOrg( input, - hostedComputeDeleteNetworkConfigurationFromOrgResponder, + hostedComputeDeleteNetworkConfigurationFromOrg.responder, ctx, ) .catch((err) => { @@ -52937,11 +44710,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - hostedComputeDeleteNetworkConfigurationFromOrgResponseValidator( - status, - body, - ) + ctx.body = hostedComputeDeleteNetworkConfigurationFromOrg.validator( + status, + body, + ) ctx.status = status return next() }, @@ -52970,7 +44742,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .hostedComputeGetNetworkSettingsForOrg( input, - hostedComputeGetNetworkSettingsForOrgResponder, + hostedComputeGetNetworkSettingsForOrg.responder, ctx, ) .catch((err) => { @@ -52980,10 +44752,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = hostedComputeGetNetworkSettingsForOrgResponseValidator( - status, - body, - ) + ctx.body = hostedComputeGetNetworkSettingsForOrg.validator(status, body) ctx.status = status return next() }, @@ -53023,7 +44792,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .copilotCopilotMetricsForTeam( input, - copilotCopilotMetricsForTeamResponder, + copilotCopilotMetricsForTeam.responder, ctx, ) .catch((err) => { @@ -53033,7 +44802,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = copilotCopilotMetricsForTeamResponseValidator(status, body) + ctx.body = copilotCopilotMetricsForTeam.validator(status, body) ctx.status = status return next() }, @@ -53063,7 +44832,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsList(input, teamsListResponder, ctx) + .teamsList(input, teamsList.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53071,7 +44840,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListResponseValidator(status, body) + ctx.body = teamsList.validator(status, body) ctx.status = status return next() }) @@ -53108,7 +44877,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsCreate(input, teamsCreateResponder, ctx) + .teamsCreate(input, teamsCreate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53116,7 +44885,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCreateResponseValidator(status, body) + ctx.body = teamsCreate.validator(status, body) ctx.status = status return next() }) @@ -53142,7 +44911,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsGetByName(input, teamsGetByNameResponder, ctx) + .teamsGetByName(input, teamsGetByName.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53150,7 +44919,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetByNameResponseValidator(status, body) + ctx.body = teamsGetByName.validator(status, body) ctx.status = status return next() }, @@ -53194,7 +44963,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsUpdateInOrg(input, teamsUpdateInOrgResponder, ctx) + .teamsUpdateInOrg(input, teamsUpdateInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53202,7 +44971,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsUpdateInOrgResponseValidator(status, body) + ctx.body = teamsUpdateInOrg.validator(status, body) ctx.status = status return next() }, @@ -53229,7 +44998,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsDeleteInOrg(input, teamsDeleteInOrgResponder, ctx) + .teamsDeleteInOrg(input, teamsDeleteInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53237,7 +45006,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsDeleteInOrgResponseValidator(status, body) + ctx.body = teamsDeleteInOrg.validator(status, body) ctx.status = status return next() }, @@ -53277,7 +45046,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsListDiscussionsInOrg( input, - teamsListDiscussionsInOrgResponder, + teamsListDiscussionsInOrg.responder, ctx, ) .catch((err) => { @@ -53287,7 +45056,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListDiscussionsInOrgResponseValidator(status, body) + ctx.body = teamsListDiscussionsInOrg.validator(status, body) ctx.status = status return next() }, @@ -53326,7 +45095,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsCreateDiscussionInOrg( input, - teamsCreateDiscussionInOrgResponder, + teamsCreateDiscussionInOrg.responder, ctx, ) .catch((err) => { @@ -53336,7 +45105,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCreateDiscussionInOrgResponseValidator(status, body) + ctx.body = teamsCreateDiscussionInOrg.validator(status, body) ctx.status = status return next() }, @@ -53364,7 +45133,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsGetDiscussionInOrg(input, teamsGetDiscussionInOrgResponder, ctx) + .teamsGetDiscussionInOrg(input, teamsGetDiscussionInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53372,7 +45141,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetDiscussionInOrgResponseValidator(status, body) + ctx.body = teamsGetDiscussionInOrg.validator(status, body) ctx.status = status return next() }, @@ -53410,7 +45179,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsUpdateDiscussionInOrg( input, - teamsUpdateDiscussionInOrgResponder, + teamsUpdateDiscussionInOrg.responder, ctx, ) .catch((err) => { @@ -53420,7 +45189,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsUpdateDiscussionInOrgResponseValidator(status, body) + ctx.body = teamsUpdateDiscussionInOrg.validator(status, body) ctx.status = status return next() }, @@ -53450,7 +45219,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsDeleteDiscussionInOrg( input, - teamsDeleteDiscussionInOrgResponder, + teamsDeleteDiscussionInOrg.responder, ctx, ) .catch((err) => { @@ -53460,7 +45229,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsDeleteDiscussionInOrgResponseValidator(status, body) + ctx.body = teamsDeleteDiscussionInOrg.validator(status, body) ctx.status = status return next() }, @@ -53500,7 +45269,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsListDiscussionCommentsInOrg( input, - teamsListDiscussionCommentsInOrgResponder, + teamsListDiscussionCommentsInOrg.responder, ctx, ) .catch((err) => { @@ -53510,7 +45279,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListDiscussionCommentsInOrgResponseValidator(status, body) + ctx.body = teamsListDiscussionCommentsInOrg.validator(status, body) ctx.status = status return next() }, @@ -53548,7 +45317,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsCreateDiscussionCommentInOrg( input, - teamsCreateDiscussionCommentInOrgResponder, + teamsCreateDiscussionCommentInOrg.responder, ctx, ) .catch((err) => { @@ -53558,10 +45327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCreateDiscussionCommentInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsCreateDiscussionCommentInOrg.validator(status, body) ctx.status = status return next() }, @@ -53592,7 +45358,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsGetDiscussionCommentInOrg( input, - teamsGetDiscussionCommentInOrgResponder, + teamsGetDiscussionCommentInOrg.responder, ctx, ) .catch((err) => { @@ -53602,7 +45368,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetDiscussionCommentInOrgResponseValidator(status, body) + ctx.body = teamsGetDiscussionCommentInOrg.validator(status, body) ctx.status = status return next() }, @@ -53641,7 +45407,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsUpdateDiscussionCommentInOrg( input, - teamsUpdateDiscussionCommentInOrgResponder, + teamsUpdateDiscussionCommentInOrg.responder, ctx, ) .catch((err) => { @@ -53651,10 +45417,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsUpdateDiscussionCommentInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsUpdateDiscussionCommentInOrg.validator(status, body) ctx.status = status return next() }, @@ -53685,7 +45448,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsDeleteDiscussionCommentInOrg( input, - teamsDeleteDiscussionCommentInOrgResponder, + teamsDeleteDiscussionCommentInOrg.responder, ctx, ) .catch((err) => { @@ -53695,10 +45458,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsDeleteDiscussionCommentInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsDeleteDiscussionCommentInOrg.validator(status, body) ctx.status = status return next() }, @@ -53750,7 +45510,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsListForTeamDiscussionCommentInOrg( input, - reactionsListForTeamDiscussionCommentInOrgResponder, + reactionsListForTeamDiscussionCommentInOrg.responder, ctx, ) .catch((err) => { @@ -53760,7 +45520,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForTeamDiscussionCommentInOrgResponseValidator( + ctx.body = reactionsListForTeamDiscussionCommentInOrg.validator( status, body, ) @@ -53811,7 +45571,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsCreateForTeamDiscussionCommentInOrg( input, - reactionsCreateForTeamDiscussionCommentInOrgResponder, + reactionsCreateForTeamDiscussionCommentInOrg.responder, ctx, ) .catch((err) => { @@ -53821,7 +45581,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForTeamDiscussionCommentInOrgResponseValidator( + ctx.body = reactionsCreateForTeamDiscussionCommentInOrg.validator( status, body, ) @@ -53856,7 +45616,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsDeleteForTeamDiscussionComment( input, - reactionsDeleteForTeamDiscussionCommentResponder, + reactionsDeleteForTeamDiscussionComment.responder, ctx, ) .catch((err) => { @@ -53866,10 +45626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsDeleteForTeamDiscussionCommentResponseValidator( - status, - body, - ) + ctx.body = reactionsDeleteForTeamDiscussionComment.validator(status, body) ctx.status = status return next() }, @@ -53920,7 +45677,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsListForTeamDiscussionInOrg( input, - reactionsListForTeamDiscussionInOrgResponder, + reactionsListForTeamDiscussionInOrg.responder, ctx, ) .catch((err) => { @@ -53930,10 +45687,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForTeamDiscussionInOrgResponseValidator( - status, - body, - ) + ctx.body = reactionsListForTeamDiscussionInOrg.validator(status, body) ctx.status = status return next() }, @@ -53980,7 +45734,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsCreateForTeamDiscussionInOrg( input, - reactionsCreateForTeamDiscussionInOrgResponder, + reactionsCreateForTeamDiscussionInOrg.responder, ctx, ) .catch((err) => { @@ -53990,10 +45744,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForTeamDiscussionInOrgResponseValidator( - status, - body, - ) + ctx.body = reactionsCreateForTeamDiscussionInOrg.validator(status, body) ctx.status = status return next() }, @@ -54024,7 +45775,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsDeleteForTeamDiscussion( input, - reactionsDeleteForTeamDiscussionResponder, + reactionsDeleteForTeamDiscussion.responder, ctx, ) .catch((err) => { @@ -54034,7 +45785,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsDeleteForTeamDiscussionResponseValidator(status, body) + ctx.body = reactionsDeleteForTeamDiscussion.validator(status, body) ctx.status = status return next() }, @@ -54072,7 +45823,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsListPendingInvitationsInOrg( input, - teamsListPendingInvitationsInOrgResponder, + teamsListPendingInvitationsInOrg.responder, ctx, ) .catch((err) => { @@ -54082,7 +45833,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListPendingInvitationsInOrgResponseValidator(status, body) + ctx.body = teamsListPendingInvitationsInOrg.validator(status, body) ctx.status = status return next() }, @@ -54119,7 +45870,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsListMembersInOrg(input, teamsListMembersInOrgResponder, ctx) + .teamsListMembersInOrg(input, teamsListMembersInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54127,7 +45878,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListMembersInOrgResponseValidator(status, body) + ctx.body = teamsListMembersInOrg.validator(status, body) ctx.status = status return next() }, @@ -54157,7 +45908,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsGetMembershipForUserInOrg( input, - teamsGetMembershipForUserInOrgResponder, + teamsGetMembershipForUserInOrg.responder, ctx, ) .catch((err) => { @@ -54167,7 +45918,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetMembershipForUserInOrgResponseValidator(status, body) + ctx.body = teamsGetMembershipForUserInOrg.validator(status, body) ctx.status = status return next() }, @@ -54207,7 +45958,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsAddOrUpdateMembershipForUserInOrg( input, - teamsAddOrUpdateMembershipForUserInOrgResponder, + teamsAddOrUpdateMembershipForUserInOrg.responder, ctx, ) .catch((err) => { @@ -54217,10 +45968,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsAddOrUpdateMembershipForUserInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsAddOrUpdateMembershipForUserInOrg.validator(status, body) ctx.status = status return next() }, @@ -54250,7 +45998,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsRemoveMembershipForUserInOrg( input, - teamsRemoveMembershipForUserInOrgResponder, + teamsRemoveMembershipForUserInOrg.responder, ctx, ) .catch((err) => { @@ -54260,10 +46008,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsRemoveMembershipForUserInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsRemoveMembershipForUserInOrg.validator(status, body) ctx.status = status return next() }, @@ -54299,7 +46044,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsListProjectsInOrg(input, teamsListProjectsInOrgResponder, ctx) + .teamsListProjectsInOrg(input, teamsListProjectsInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54307,7 +46052,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListProjectsInOrgResponseValidator(status, body) + ctx.body = teamsListProjectsInOrg.validator(status, body) ctx.status = status return next() }, @@ -54337,7 +46082,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsCheckPermissionsForProjectInOrg( input, - teamsCheckPermissionsForProjectInOrgResponder, + teamsCheckPermissionsForProjectInOrg.responder, ctx, ) .catch((err) => { @@ -54347,10 +46092,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCheckPermissionsForProjectInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsCheckPermissionsForProjectInOrg.validator(status, body) ctx.status = status return next() }, @@ -54389,7 +46131,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsAddOrUpdateProjectPermissionsInOrg( input, - teamsAddOrUpdateProjectPermissionsInOrgResponder, + teamsAddOrUpdateProjectPermissionsInOrg.responder, ctx, ) .catch((err) => { @@ -54399,10 +46141,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsAddOrUpdateProjectPermissionsInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsAddOrUpdateProjectPermissionsInOrg.validator(status, body) ctx.status = status return next() }, @@ -54430,7 +46169,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsRemoveProjectInOrg(input, teamsRemoveProjectInOrgResponder, ctx) + .teamsRemoveProjectInOrg(input, teamsRemoveProjectInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54438,7 +46177,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsRemoveProjectInOrgResponseValidator(status, body) + ctx.body = teamsRemoveProjectInOrg.validator(status, body) ctx.status = status return next() }, @@ -54474,7 +46213,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsListReposInOrg(input, teamsListReposInOrgResponder, ctx) + .teamsListReposInOrg(input, teamsListReposInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54482,7 +46221,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListReposInOrgResponseValidator(status, body) + ctx.body = teamsListReposInOrg.validator(status, body) ctx.status = status return next() }, @@ -54513,7 +46252,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsCheckPermissionsForRepoInOrg( input, - teamsCheckPermissionsForRepoInOrgResponder, + teamsCheckPermissionsForRepoInOrg.responder, ctx, ) .catch((err) => { @@ -54523,10 +46262,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCheckPermissionsForRepoInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsCheckPermissionsForRepoInOrg.validator(status, body) ctx.status = status return next() }, @@ -54565,7 +46301,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsAddOrUpdateRepoPermissionsInOrg( input, - teamsAddOrUpdateRepoPermissionsInOrgResponder, + teamsAddOrUpdateRepoPermissionsInOrg.responder, ctx, ) .catch((err) => { @@ -54575,10 +46311,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsAddOrUpdateRepoPermissionsInOrgResponseValidator( - status, - body, - ) + ctx.body = teamsAddOrUpdateRepoPermissionsInOrg.validator(status, body) ctx.status = status return next() }, @@ -54607,7 +46340,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsRemoveRepoInOrg(input, teamsRemoveRepoInOrgResponder, ctx) + .teamsRemoveRepoInOrg(input, teamsRemoveRepoInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54615,7 +46348,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsRemoveRepoInOrgResponseValidator(status, body) + ctx.body = teamsRemoveRepoInOrg.validator(status, body) ctx.status = status return next() }, @@ -54651,7 +46384,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsListChildInOrg(input, teamsListChildInOrgResponder, ctx) + .teamsListChildInOrg(input, teamsListChildInOrg.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54659,7 +46392,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListChildInOrgResponseValidator(status, body) + ctx.body = teamsListChildInOrg.validator(status, body) ctx.status = status return next() }, @@ -54705,7 +46438,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsEnableOrDisableSecurityProductOnAllOrgRepos( input, - orgsEnableOrDisableSecurityProductOnAllOrgReposResponder, + orgsEnableOrDisableSecurityProductOnAllOrgRepos.responder, ctx, ) .catch((err) => { @@ -54715,11 +46448,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - orgsEnableOrDisableSecurityProductOnAllOrgReposResponseValidator( - status, - body, - ) + ctx.body = orgsEnableOrDisableSecurityProductOnAllOrgRepos.validator( + status, + body, + ) ctx.status = status return next() }, @@ -54743,7 +46475,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsGetCard(input, projectsGetCardResponder, ctx) + .projectsGetCard(input, projectsGetCard.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54751,7 +46483,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsGetCardResponseValidator(status, body) + ctx.body = projectsGetCard.validator(status, body) ctx.status = status return next() }, @@ -54786,7 +46518,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsUpdateCard(input, projectsUpdateCardResponder, ctx) + .projectsUpdateCard(input, projectsUpdateCard.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54794,7 +46526,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsUpdateCardResponseValidator(status, body) + ctx.body = projectsUpdateCard.validator(status, body) ctx.status = status return next() }, @@ -54818,7 +46550,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsDeleteCard(input, projectsDeleteCardResponder, ctx) + .projectsDeleteCard(input, projectsDeleteCard.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54826,7 +46558,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsDeleteCardResponseValidator(status, body) + ctx.body = projectsDeleteCard.validator(status, body) ctx.status = status return next() }, @@ -54859,7 +46591,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsMoveCard(input, projectsMoveCardResponder, ctx) + .projectsMoveCard(input, projectsMoveCard.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54867,7 +46599,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsMoveCardResponseValidator(status, body) + ctx.body = projectsMoveCard.validator(status, body) ctx.status = status return next() }, @@ -54893,7 +46625,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsGetColumn(input, projectsGetColumnResponder, ctx) + .projectsGetColumn(input, projectsGetColumn.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54901,7 +46633,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsGetColumnResponseValidator(status, body) + ctx.body = projectsGetColumn.validator(status, body) ctx.status = status return next() }, @@ -54933,7 +46665,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsUpdateColumn(input, projectsUpdateColumnResponder, ctx) + .projectsUpdateColumn(input, projectsUpdateColumn.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54941,7 +46673,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsUpdateColumnResponseValidator(status, body) + ctx.body = projectsUpdateColumn.validator(status, body) ctx.status = status return next() }, @@ -54967,7 +46699,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsDeleteColumn(input, projectsDeleteColumnResponder, ctx) + .projectsDeleteColumn(input, projectsDeleteColumn.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54975,7 +46707,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsDeleteColumnResponseValidator(status, body) + ctx.body = projectsDeleteColumn.validator(status, body) ctx.status = status return next() }, @@ -55014,7 +46746,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsListCards(input, projectsListCardsResponder, ctx) + .projectsListCards(input, projectsListCards.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55022,7 +46754,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsListCardsResponseValidator(status, body) + ctx.body = projectsListCards.validator(status, body) ctx.status = status return next() }, @@ -55057,7 +46789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsCreateCard(input, projectsCreateCardResponder, ctx) + .projectsCreateCard(input, projectsCreateCard.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55065,7 +46797,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsCreateCardResponseValidator(status, body) + ctx.body = projectsCreateCard.validator(status, body) ctx.status = status return next() }, @@ -55099,7 +46831,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsMoveColumn(input, projectsMoveColumnResponder, ctx) + .projectsMoveColumn(input, projectsMoveColumn.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55107,7 +46839,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsMoveColumnResponseValidator(status, body) + ctx.body = projectsMoveColumn.validator(status, body) ctx.status = status return next() }, @@ -55128,7 +46860,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsGet(input, projectsGetResponder, ctx) + .projectsGet(input, projectsGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55136,7 +46868,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsGetResponseValidator(status, body) + ctx.body = projectsGet.validator(status, body) ctx.status = status return next() }) @@ -55172,7 +46904,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsUpdate(input, projectsUpdateResponder, ctx) + .projectsUpdate(input, projectsUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55180,7 +46912,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsUpdateResponseValidator(status, body) + ctx.body = projectsUpdate.validator(status, body) ctx.status = status return next() }) @@ -55203,7 +46935,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsDelete(input, projectsDeleteResponder, ctx) + .projectsDelete(input, projectsDelete.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55211,7 +46943,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsDeleteResponseValidator(status, body) + ctx.body = projectsDelete.validator(status, body) ctx.status = status return next() }, @@ -55249,7 +46981,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .projectsListCollaborators( input, - projectsListCollaboratorsResponder, + projectsListCollaborators.responder, ctx, ) .catch((err) => { @@ -55259,7 +46991,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsListCollaboratorsResponseValidator(status, body) + ctx.body = projectsListCollaborators.validator(status, body) ctx.status = status return next() }, @@ -55300,7 +47032,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsAddCollaborator(input, projectsAddCollaboratorResponder, ctx) + .projectsAddCollaborator(input, projectsAddCollaborator.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55308,7 +47040,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsAddCollaboratorResponseValidator(status, body) + ctx.body = projectsAddCollaborator.validator(status, body) ctx.status = status return next() }, @@ -55337,7 +47069,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .projectsRemoveCollaborator( input, - projectsRemoveCollaboratorResponder, + projectsRemoveCollaborator.responder, ctx, ) .catch((err) => { @@ -55347,7 +47079,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsRemoveCollaboratorResponseValidator(status, body) + ctx.body = projectsRemoveCollaborator.validator(status, body) ctx.status = status return next() }, @@ -55376,7 +47108,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .projectsGetPermissionForUser( input, - projectsGetPermissionForUserResponder, + projectsGetPermissionForUser.responder, ctx, ) .catch((err) => { @@ -55386,7 +47118,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsGetPermissionForUserResponseValidator(status, body) + ctx.body = projectsGetPermissionForUser.validator(status, body) ctx.status = status return next() }, @@ -55421,7 +47153,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsListColumns(input, projectsListColumnsResponder, ctx) + .projectsListColumns(input, projectsListColumns.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55429,7 +47161,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsListColumnsResponseValidator(status, body) + ctx.body = projectsListColumns.validator(status, body) ctx.status = status return next() }, @@ -55461,7 +47193,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsCreateColumn(input, projectsCreateColumnResponder, ctx) + .projectsCreateColumn(input, projectsCreateColumn.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55469,7 +47201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsCreateColumnResponseValidator(status, body) + ctx.body = projectsCreateColumn.validator(status, body) ctx.status = status return next() }, @@ -55484,7 +47216,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .rateLimitGet(input, rateLimitGetResponder, ctx) + .rateLimitGet(input, rateLimitGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55492,7 +47224,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = rateLimitGetResponseValidator(status, body) + ctx.body = rateLimitGet.validator(status, body) ctx.status = status return next() }) @@ -55512,7 +47244,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGet(input, reposGetResponder, ctx) + .reposGet(input, reposGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55520,7 +47252,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetResponseValidator(status, body) + ctx.body = reposGet.validator(status, body) ctx.status = status return next() }) @@ -55602,7 +47334,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUpdate(input, reposUpdateResponder, ctx) + .reposUpdate(input, reposUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55610,7 +47342,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateResponseValidator(status, body) + ctx.body = reposUpdate.validator(status, body) ctx.status = status return next() }) @@ -55633,7 +47365,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDelete(input, reposDeleteResponder, ctx) + .reposDelete(input, reposDelete.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55641,7 +47373,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteResponseValidator(status, body) + ctx.body = reposDelete.validator(status, body) ctx.status = status return next() }) @@ -55679,7 +47411,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListArtifactsForRepo( input, - actionsListArtifactsForRepoResponder, + actionsListArtifactsForRepo.responder, ctx, ) .catch((err) => { @@ -55689,7 +47421,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListArtifactsForRepoResponseValidator(status, body) + ctx.body = actionsListArtifactsForRepo.validator(status, body) ctx.status = status return next() }, @@ -55717,7 +47449,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetArtifact(input, actionsGetArtifactResponder, ctx) + .actionsGetArtifact(input, actionsGetArtifact.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55725,7 +47457,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetArtifactResponseValidator(status, body) + ctx.body = actionsGetArtifact.validator(status, body) ctx.status = status return next() }, @@ -55753,7 +47485,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsDeleteArtifact(input, actionsDeleteArtifactResponder, ctx) + .actionsDeleteArtifact(input, actionsDeleteArtifact.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55761,7 +47493,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteArtifactResponseValidator(status, body) + ctx.body = actionsDeleteArtifact.validator(status, body) ctx.status = status return next() }, @@ -55790,7 +47522,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsDownloadArtifact(input, actionsDownloadArtifactResponder, ctx) + .actionsDownloadArtifact(input, actionsDownloadArtifact.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55798,7 +47530,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDownloadArtifactResponseValidator(status, body) + ctx.body = actionsDownloadArtifact.validator(status, body) ctx.status = status return next() }, @@ -55827,7 +47559,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetActionsCacheUsage( input, - actionsGetActionsCacheUsageResponder, + actionsGetActionsCacheUsage.responder, ctx, ) .catch((err) => { @@ -55837,7 +47569,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetActionsCacheUsageResponseValidator(status, body) + ctx.body = actionsGetActionsCacheUsage.validator(status, body) ctx.status = status return next() }, @@ -55882,7 +47614,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetActionsCacheList( input, - actionsGetActionsCacheListResponder, + actionsGetActionsCacheList.responder, ctx, ) .catch((err) => { @@ -55892,7 +47624,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetActionsCacheListResponseValidator(status, body) + ctx.body = actionsGetActionsCacheList.validator(status, body) ctx.status = status return next() }, @@ -55930,7 +47662,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteActionsCacheByKey( input, - actionsDeleteActionsCacheByKeyResponder, + actionsDeleteActionsCacheByKey.responder, ctx, ) .catch((err) => { @@ -55940,7 +47672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteActionsCacheByKeyResponseValidator(status, body) + ctx.body = actionsDeleteActionsCacheByKey.validator(status, body) ctx.status = status return next() }, @@ -55970,7 +47702,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteActionsCacheById( input, - actionsDeleteActionsCacheByIdResponder, + actionsDeleteActionsCacheById.responder, ctx, ) .catch((err) => { @@ -55980,7 +47712,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteActionsCacheByIdResponseValidator(status, body) + ctx.body = actionsDeleteActionsCacheById.validator(status, body) ctx.status = status return next() }, @@ -56010,7 +47742,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetJobForWorkflowRun( input, - actionsGetJobForWorkflowRunResponder, + actionsGetJobForWorkflowRun.responder, ctx, ) .catch((err) => { @@ -56020,7 +47752,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetJobForWorkflowRunResponseValidator(status, body) + ctx.body = actionsGetJobForWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -56050,7 +47782,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDownloadJobLogsForWorkflowRun( input, - actionsDownloadJobLogsForWorkflowRunResponder, + actionsDownloadJobLogsForWorkflowRun.responder, ctx, ) .catch((err) => { @@ -56060,10 +47792,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDownloadJobLogsForWorkflowRunResponseValidator( - status, - body, - ) + ctx.body = actionsDownloadJobLogsForWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -56104,7 +47833,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsReRunJobForWorkflowRun( input, - actionsReRunJobForWorkflowRunResponder, + actionsReRunJobForWorkflowRun.responder, ctx, ) .catch((err) => { @@ -56114,7 +47843,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsReRunJobForWorkflowRunResponseValidator(status, body) + ctx.body = actionsReRunJobForWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -56143,7 +47872,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetCustomOidcSubClaimForRepo( input, - actionsGetCustomOidcSubClaimForRepoResponder, + actionsGetCustomOidcSubClaimForRepo.responder, ctx, ) .catch((err) => { @@ -56153,10 +47882,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetCustomOidcSubClaimForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsGetCustomOidcSubClaimForRepo.validator(status, body) ctx.status = status return next() }, @@ -56194,7 +47920,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetCustomOidcSubClaimForRepo( input, - actionsSetCustomOidcSubClaimForRepoResponder, + actionsSetCustomOidcSubClaimForRepo.responder, ctx, ) .catch((err) => { @@ -56204,10 +47930,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsSetCustomOidcSubClaimForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsSetCustomOidcSubClaimForRepo.validator(status, body) ctx.status = status return next() }, @@ -56245,7 +47968,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListRepoOrganizationSecrets( input, - actionsListRepoOrganizationSecretsResponder, + actionsListRepoOrganizationSecrets.responder, ctx, ) .catch((err) => { @@ -56255,10 +47978,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListRepoOrganizationSecretsResponseValidator( - status, - body, - ) + ctx.body = actionsListRepoOrganizationSecrets.validator(status, body) ctx.status = status return next() }, @@ -56296,7 +48016,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListRepoOrganizationVariables( input, - actionsListRepoOrganizationVariablesResponder, + actionsListRepoOrganizationVariables.responder, ctx, ) .catch((err) => { @@ -56306,10 +48026,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListRepoOrganizationVariablesResponseValidator( - status, - body, - ) + ctx.body = actionsListRepoOrganizationVariables.validator(status, body) ctx.status = status return next() }, @@ -56338,7 +48055,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetGithubActionsPermissionsRepository( input, - actionsGetGithubActionsPermissionsRepositoryResponder, + actionsGetGithubActionsPermissionsRepository.responder, ctx, ) .catch((err) => { @@ -56348,7 +48065,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetGithubActionsPermissionsRepositoryResponseValidator( + ctx.body = actionsGetGithubActionsPermissionsRepository.validator( status, body, ) @@ -56389,7 +48106,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetGithubActionsPermissionsRepository( input, - actionsSetGithubActionsPermissionsRepositoryResponder, + actionsSetGithubActionsPermissionsRepository.responder, ctx, ) .catch((err) => { @@ -56399,7 +48116,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsSetGithubActionsPermissionsRepositoryResponseValidator( + ctx.body = actionsSetGithubActionsPermissionsRepository.validator( status, body, ) @@ -56431,7 +48148,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetWorkflowAccessToRepository( input, - actionsGetWorkflowAccessToRepositoryResponder, + actionsGetWorkflowAccessToRepository.responder, ctx, ) .catch((err) => { @@ -56441,10 +48158,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetWorkflowAccessToRepositoryResponseValidator( - status, - body, - ) + ctx.body = actionsGetWorkflowAccessToRepository.validator(status, body) ctx.status = status return next() }, @@ -56480,7 +48194,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetWorkflowAccessToRepository( input, - actionsSetWorkflowAccessToRepositoryResponder, + actionsSetWorkflowAccessToRepository.responder, ctx, ) .catch((err) => { @@ -56490,10 +48204,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsSetWorkflowAccessToRepositoryResponseValidator( - status, - body, - ) + ctx.body = actionsSetWorkflowAccessToRepository.validator(status, body) ctx.status = status return next() }, @@ -56522,7 +48233,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetAllowedActionsRepository( input, - actionsGetAllowedActionsRepositoryResponder, + actionsGetAllowedActionsRepository.responder, ctx, ) .catch((err) => { @@ -56532,10 +48243,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetAllowedActionsRepositoryResponseValidator( - status, - body, - ) + ctx.body = actionsGetAllowedActionsRepository.validator(status, body) ctx.status = status return next() }, @@ -56571,7 +48279,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetAllowedActionsRepository( input, - actionsSetAllowedActionsRepositoryResponder, + actionsSetAllowedActionsRepository.responder, ctx, ) .catch((err) => { @@ -56581,10 +48289,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsSetAllowedActionsRepositoryResponseValidator( - status, - body, - ) + ctx.body = actionsSetAllowedActionsRepository.validator(status, body) ctx.status = status return next() }, @@ -56611,7 +48316,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetGithubActionsDefaultWorkflowPermissionsRepository( input, - actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder, + actionsGetGithubActionsDefaultWorkflowPermissionsRepository.responder, ctx, ) .catch((err) => { @@ -56622,7 +48327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponseValidator( + actionsGetGithubActionsDefaultWorkflowPermissionsRepository.validator( status, body, ) @@ -56659,7 +48364,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetGithubActionsDefaultWorkflowPermissionsRepository( input, - actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder, + actionsSetGithubActionsDefaultWorkflowPermissionsRepository.responder, ctx, ) .catch((err) => { @@ -56670,7 +48375,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponseValidator( + actionsSetGithubActionsDefaultWorkflowPermissionsRepository.validator( status, body, ) @@ -56712,7 +48417,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListSelfHostedRunnersForRepo( input, - actionsListSelfHostedRunnersForRepoResponder, + actionsListSelfHostedRunnersForRepo.responder, ctx, ) .catch((err) => { @@ -56722,10 +48427,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListSelfHostedRunnersForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsListSelfHostedRunnersForRepo.validator(status, body) ctx.status = status return next() }, @@ -56754,7 +48456,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListRunnerApplicationsForRepo( input, - actionsListRunnerApplicationsForRepoResponder, + actionsListRunnerApplicationsForRepo.responder, ctx, ) .catch((err) => { @@ -56764,10 +48466,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListRunnerApplicationsForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsListRunnerApplicationsForRepo.validator(status, body) ctx.status = status return next() }, @@ -56807,7 +48506,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGenerateRunnerJitconfigForRepo( input, - actionsGenerateRunnerJitconfigForRepoResponder, + actionsGenerateRunnerJitconfigForRepo.responder, ctx, ) .catch((err) => { @@ -56817,10 +48516,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGenerateRunnerJitconfigForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsGenerateRunnerJitconfigForRepo.validator(status, body) ctx.status = status return next() }, @@ -56849,7 +48545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateRegistrationTokenForRepo( input, - actionsCreateRegistrationTokenForRepoResponder, + actionsCreateRegistrationTokenForRepo.responder, ctx, ) .catch((err) => { @@ -56859,10 +48555,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateRegistrationTokenForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsCreateRegistrationTokenForRepo.validator(status, body) ctx.status = status return next() }, @@ -56891,7 +48584,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateRemoveTokenForRepo( input, - actionsCreateRemoveTokenForRepoResponder, + actionsCreateRemoveTokenForRepo.responder, ctx, ) .catch((err) => { @@ -56901,7 +48594,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateRemoveTokenForRepoResponseValidator(status, body) + ctx.body = actionsCreateRemoveTokenForRepo.validator(status, body) ctx.status = status return next() }, @@ -56931,7 +48624,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetSelfHostedRunnerForRepo( input, - actionsGetSelfHostedRunnerForRepoResponder, + actionsGetSelfHostedRunnerForRepo.responder, ctx, ) .catch((err) => { @@ -56941,10 +48634,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetSelfHostedRunnerForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsGetSelfHostedRunnerForRepo.validator(status, body) ctx.status = status return next() }, @@ -56974,7 +48664,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteSelfHostedRunnerFromRepo( input, - actionsDeleteSelfHostedRunnerFromRepoResponder, + actionsDeleteSelfHostedRunnerFromRepo.responder, ctx, ) .catch((err) => { @@ -56984,10 +48674,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteSelfHostedRunnerFromRepoResponseValidator( - status, - body, - ) + ctx.body = actionsDeleteSelfHostedRunnerFromRepo.validator(status, body) ctx.status = status return next() }, @@ -57017,7 +48704,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListLabelsForSelfHostedRunnerForRepo( input, - actionsListLabelsForSelfHostedRunnerForRepoResponder, + actionsListLabelsForSelfHostedRunnerForRepo.responder, ctx, ) .catch((err) => { @@ -57027,7 +48714,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListLabelsForSelfHostedRunnerForRepoResponseValidator( + ctx.body = actionsListLabelsForSelfHostedRunnerForRepo.validator( status, body, ) @@ -57068,7 +48755,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsAddCustomLabelsToSelfHostedRunnerForRepo( input, - actionsAddCustomLabelsToSelfHostedRunnerForRepoResponder, + actionsAddCustomLabelsToSelfHostedRunnerForRepo.responder, ctx, ) .catch((err) => { @@ -57078,11 +48765,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsAddCustomLabelsToSelfHostedRunnerForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsAddCustomLabelsToSelfHostedRunnerForRepo.validator( + status, + body, + ) ctx.status = status return next() }, @@ -57120,7 +48806,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsSetCustomLabelsForSelfHostedRunnerForRepo( input, - actionsSetCustomLabelsForSelfHostedRunnerForRepoResponder, + actionsSetCustomLabelsForSelfHostedRunnerForRepo.responder, ctx, ) .catch((err) => { @@ -57130,11 +48816,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsSetCustomLabelsForSelfHostedRunnerForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsSetCustomLabelsForSelfHostedRunnerForRepo.validator( + status, + body, + ) ctx.status = status return next() }, @@ -57165,7 +48850,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo( input, - actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder, + actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.responder, ctx, ) .catch((err) => { @@ -57176,7 +48861,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponseValidator( + actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo.validator( status, body, ) @@ -57211,7 +48896,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsRemoveCustomLabelFromSelfHostedRunnerForRepo( input, - actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder, + actionsRemoveCustomLabelFromSelfHostedRunnerForRepo.responder, ctx, ) .catch((err) => { @@ -57221,11 +48906,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - actionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponseValidator( - status, - body, - ) + ctx.body = actionsRemoveCustomLabelFromSelfHostedRunnerForRepo.validator( + status, + body, + ) ctx.status = status return next() }, @@ -57288,7 +48972,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListWorkflowRunsForRepo( input, - actionsListWorkflowRunsForRepoResponder, + actionsListWorkflowRunsForRepo.responder, ctx, ) .catch((err) => { @@ -57298,7 +48982,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListWorkflowRunsForRepoResponseValidator(status, body) + ctx.body = actionsListWorkflowRunsForRepo.validator(status, body) ctx.status = status return next() }, @@ -57334,7 +49018,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetWorkflowRun(input, actionsGetWorkflowRunResponder, ctx) + .actionsGetWorkflowRun(input, actionsGetWorkflowRun.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57342,7 +49026,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetWorkflowRunResponseValidator(status, body) + ctx.body = actionsGetWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -57370,7 +49054,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsDeleteWorkflowRun(input, actionsDeleteWorkflowRunResponder, ctx) + .actionsDeleteWorkflowRun( + input, + actionsDeleteWorkflowRun.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57378,7 +49066,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteWorkflowRunResponseValidator(status, body) + ctx.body = actionsDeleteWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -57406,7 +49094,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetReviewsForRun(input, actionsGetReviewsForRunResponder, ctx) + .actionsGetReviewsForRun(input, actionsGetReviewsForRun.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57414,7 +49102,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetReviewsForRunResponseValidator(status, body) + ctx.body = actionsGetReviewsForRun.validator(status, body) ctx.status = status return next() }, @@ -57444,7 +49132,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsApproveWorkflowRun( input, - actionsApproveWorkflowRunResponder, + actionsApproveWorkflowRun.responder, ctx, ) .catch((err) => { @@ -57454,7 +49142,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsApproveWorkflowRunResponseValidator(status, body) + ctx.body = actionsApproveWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -57494,7 +49182,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListWorkflowRunArtifacts( input, - actionsListWorkflowRunArtifactsResponder, + actionsListWorkflowRunArtifacts.responder, ctx, ) .catch((err) => { @@ -57504,7 +49192,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListWorkflowRunArtifactsResponseValidator(status, body) + ctx.body = actionsListWorkflowRunArtifacts.validator(status, body) ctx.status = status return next() }, @@ -57543,7 +49231,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetWorkflowRunAttempt( input, - actionsGetWorkflowRunAttemptResponder, + actionsGetWorkflowRunAttempt.responder, ctx, ) .catch((err) => { @@ -57553,7 +49241,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetWorkflowRunAttemptResponseValidator(status, body) + ctx.body = actionsGetWorkflowRunAttempt.validator(status, body) ctx.status = status return next() }, @@ -57593,7 +49281,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListJobsForWorkflowRunAttempt( input, - actionsListJobsForWorkflowRunAttemptResponder, + actionsListJobsForWorkflowRunAttempt.responder, ctx, ) .catch((err) => { @@ -57603,10 +49291,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListJobsForWorkflowRunAttemptResponseValidator( - status, - body, - ) + ctx.body = actionsListJobsForWorkflowRunAttempt.validator(status, body) ctx.status = status return next() }, @@ -57637,7 +49322,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDownloadWorkflowRunAttemptLogs( input, - actionsDownloadWorkflowRunAttemptLogsResponder, + actionsDownloadWorkflowRunAttemptLogs.responder, ctx, ) .catch((err) => { @@ -57647,10 +49332,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDownloadWorkflowRunAttemptLogsResponseValidator( - status, - body, - ) + ctx.body = actionsDownloadWorkflowRunAttemptLogs.validator(status, body) ctx.status = status return next() }, @@ -57678,7 +49360,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsCancelWorkflowRun(input, actionsCancelWorkflowRunResponder, ctx) + .actionsCancelWorkflowRun( + input, + actionsCancelWorkflowRun.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57686,7 +49372,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCancelWorkflowRunResponseValidator(status, body) + ctx.body = actionsCancelWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -57725,7 +49411,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsReviewCustomGatesForRun( input, - actionsReviewCustomGatesForRunResponder, + actionsReviewCustomGatesForRun.responder, ctx, ) .catch((err) => { @@ -57735,7 +49421,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsReviewCustomGatesForRunResponseValidator(status, body) + ctx.body = actionsReviewCustomGatesForRun.validator(status, body) ctx.status = status return next() }, @@ -57765,7 +49451,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsForceCancelWorkflowRun( input, - actionsForceCancelWorkflowRunResponder, + actionsForceCancelWorkflowRun.responder, ctx, ) .catch((err) => { @@ -57775,7 +49461,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsForceCancelWorkflowRunResponseValidator(status, body) + ctx.body = actionsForceCancelWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -57815,7 +49501,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListJobsForWorkflowRun( input, - actionsListJobsForWorkflowRunResponder, + actionsListJobsForWorkflowRun.responder, ctx, ) .catch((err) => { @@ -57825,7 +49511,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListJobsForWorkflowRunResponseValidator(status, body) + ctx.body = actionsListJobsForWorkflowRun.validator(status, body) ctx.status = status return next() }, @@ -57855,7 +49541,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDownloadWorkflowRunLogs( input, - actionsDownloadWorkflowRunLogsResponder, + actionsDownloadWorkflowRunLogs.responder, ctx, ) .catch((err) => { @@ -57865,7 +49551,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDownloadWorkflowRunLogsResponseValidator(status, body) + ctx.body = actionsDownloadWorkflowRunLogs.validator(status, body) ctx.status = status return next() }, @@ -57895,7 +49581,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteWorkflowRunLogs( input, - actionsDeleteWorkflowRunLogsResponder, + actionsDeleteWorkflowRunLogs.responder, ctx, ) .catch((err) => { @@ -57905,7 +49591,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteWorkflowRunLogsResponseValidator(status, body) + ctx.body = actionsDeleteWorkflowRunLogs.validator(status, body) ctx.status = status return next() }, @@ -57935,7 +49621,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetPendingDeploymentsForRun( input, - actionsGetPendingDeploymentsForRunResponder, + actionsGetPendingDeploymentsForRun.responder, ctx, ) .catch((err) => { @@ -57945,10 +49631,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetPendingDeploymentsForRunResponseValidator( - status, - body, - ) + ctx.body = actionsGetPendingDeploymentsForRun.validator(status, body) ctx.status = status return next() }, @@ -57988,7 +49671,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsReviewPendingDeploymentsForRun( input, - actionsReviewPendingDeploymentsForRunResponder, + actionsReviewPendingDeploymentsForRun.responder, ctx, ) .catch((err) => { @@ -57998,10 +49681,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsReviewPendingDeploymentsForRunResponseValidator( - status, - body, - ) + ctx.body = actionsReviewPendingDeploymentsForRun.validator(status, body) ctx.status = status return next() }, @@ -58040,7 +49720,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsReRunWorkflow(input, actionsReRunWorkflowResponder, ctx) + .actionsReRunWorkflow(input, actionsReRunWorkflow.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58048,7 +49728,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsReRunWorkflowResponseValidator(status, body) + ctx.body = actionsReRunWorkflow.validator(status, body) ctx.status = status return next() }, @@ -58089,7 +49769,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsReRunWorkflowFailedJobs( input, - actionsReRunWorkflowFailedJobsResponder, + actionsReRunWorkflowFailedJobs.responder, ctx, ) .catch((err) => { @@ -58099,7 +49779,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsReRunWorkflowFailedJobsResponseValidator(status, body) + ctx.body = actionsReRunWorkflowFailedJobs.validator(status, body) ctx.status = status return next() }, @@ -58129,7 +49809,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetWorkflowRunUsage( input, - actionsGetWorkflowRunUsageResponder, + actionsGetWorkflowRunUsage.responder, ctx, ) .catch((err) => { @@ -58139,7 +49819,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetWorkflowRunUsageResponseValidator(status, body) + ctx.body = actionsGetWorkflowRunUsage.validator(status, body) ctx.status = status return next() }, @@ -58175,7 +49855,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsListRepoSecrets(input, actionsListRepoSecretsResponder, ctx) + .actionsListRepoSecrets(input, actionsListRepoSecrets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58183,7 +49863,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListRepoSecretsResponseValidator(status, body) + ctx.body = actionsListRepoSecrets.validator(status, body) ctx.status = status return next() }, @@ -58210,7 +49890,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetRepoPublicKey(input, actionsGetRepoPublicKeyResponder, ctx) + .actionsGetRepoPublicKey(input, actionsGetRepoPublicKey.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58218,7 +49898,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetRepoPublicKeyResponseValidator(status, body) + ctx.body = actionsGetRepoPublicKey.validator(status, body) ctx.status = status return next() }, @@ -58246,7 +49926,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetRepoSecret(input, actionsGetRepoSecretResponder, ctx) + .actionsGetRepoSecret(input, actionsGetRepoSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58254,7 +49934,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetRepoSecretResponseValidator(status, body) + ctx.body = actionsGetRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -58299,7 +49979,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateOrUpdateRepoSecret( input, - actionsCreateOrUpdateRepoSecretResponder, + actionsCreateOrUpdateRepoSecret.responder, ctx, ) .catch((err) => { @@ -58309,7 +49989,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateOrUpdateRepoSecretResponseValidator(status, body) + ctx.body = actionsCreateOrUpdateRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -58337,7 +50017,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsDeleteRepoSecret(input, actionsDeleteRepoSecretResponder, ctx) + .actionsDeleteRepoSecret(input, actionsDeleteRepoSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58345,7 +50025,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteRepoSecretResponseValidator(status, body) + ctx.body = actionsDeleteRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -58381,7 +50061,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsListRepoVariables(input, actionsListRepoVariablesResponder, ctx) + .actionsListRepoVariables( + input, + actionsListRepoVariables.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58389,7 +50073,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListRepoVariablesResponseValidator(status, body) + ctx.body = actionsListRepoVariables.validator(status, body) ctx.status = status return next() }, @@ -58427,7 +50111,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateRepoVariable( input, - actionsCreateRepoVariableResponder, + actionsCreateRepoVariable.responder, ctx, ) .catch((err) => { @@ -58437,7 +50121,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateRepoVariableResponseValidator(status, body) + ctx.body = actionsCreateRepoVariable.validator(status, body) ctx.status = status return next() }, @@ -58465,7 +50149,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetRepoVariable(input, actionsGetRepoVariableResponder, ctx) + .actionsGetRepoVariable(input, actionsGetRepoVariable.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58473,7 +50157,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetRepoVariableResponseValidator(status, body) + ctx.body = actionsGetRepoVariable.validator(status, body) ctx.status = status return next() }, @@ -58512,7 +50196,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsUpdateRepoVariable( input, - actionsUpdateRepoVariableResponder, + actionsUpdateRepoVariable.responder, ctx, ) .catch((err) => { @@ -58522,7 +50206,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsUpdateRepoVariableResponseValidator(status, body) + ctx.body = actionsUpdateRepoVariable.validator(status, body) ctx.status = status return next() }, @@ -58552,7 +50236,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteRepoVariable( input, - actionsDeleteRepoVariableResponder, + actionsDeleteRepoVariable.responder, ctx, ) .catch((err) => { @@ -58562,7 +50246,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteRepoVariableResponseValidator(status, body) + ctx.body = actionsDeleteRepoVariable.validator(status, body) ctx.status = status return next() }, @@ -58598,7 +50282,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsListRepoWorkflows(input, actionsListRepoWorkflowsResponder, ctx) + .actionsListRepoWorkflows( + input, + actionsListRepoWorkflows.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58606,7 +50294,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListRepoWorkflowsResponseValidator(status, body) + ctx.body = actionsListRepoWorkflows.validator(status, body) ctx.status = status return next() }, @@ -58634,7 +50322,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetWorkflow(input, actionsGetWorkflowResponder, ctx) + .actionsGetWorkflow(input, actionsGetWorkflow.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58642,7 +50330,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetWorkflowResponseValidator(status, body) + ctx.body = actionsGetWorkflow.validator(status, body) ctx.status = status return next() }, @@ -58670,7 +50358,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsDisableWorkflow(input, actionsDisableWorkflowResponder, ctx) + .actionsDisableWorkflow(input, actionsDisableWorkflow.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58678,7 +50366,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDisableWorkflowResponseValidator(status, body) + ctx.body = actionsDisableWorkflow.validator(status, body) ctx.status = status return next() }, @@ -58717,7 +50405,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateWorkflowDispatch( input, - actionsCreateWorkflowDispatchResponder, + actionsCreateWorkflowDispatch.responder, ctx, ) .catch((err) => { @@ -58727,7 +50415,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateWorkflowDispatchResponseValidator(status, body) + ctx.body = actionsCreateWorkflowDispatch.validator(status, body) ctx.status = status return next() }, @@ -58755,7 +50443,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsEnableWorkflow(input, actionsEnableWorkflowResponder, ctx) + .actionsEnableWorkflow(input, actionsEnableWorkflow.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58763,7 +50451,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsEnableWorkflowResponseValidator(status, body) + ctx.body = actionsEnableWorkflow.validator(status, body) ctx.status = status return next() }, @@ -58825,7 +50513,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsListWorkflowRuns(input, actionsListWorkflowRunsResponder, ctx) + .actionsListWorkflowRuns(input, actionsListWorkflowRuns.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58833,7 +50521,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListWorkflowRunsResponseValidator(status, body) + ctx.body = actionsListWorkflowRuns.validator(status, body) ctx.status = status return next() }, @@ -58861,7 +50549,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .actionsGetWorkflowUsage(input, actionsGetWorkflowUsageResponder, ctx) + .actionsGetWorkflowUsage(input, actionsGetWorkflowUsage.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58869,7 +50557,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetWorkflowUsageResponseValidator(status, body) + ctx.body = actionsGetWorkflowUsage.validator(status, body) ctx.status = status return next() }, @@ -58920,7 +50608,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListActivities(input, reposListActivitiesResponder, ctx) + .reposListActivities(input, reposListActivities.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58928,7 +50616,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListActivitiesResponseValidator(status, body) + ctx.body = reposListActivities.validator(status, body) ctx.status = status return next() }, @@ -58964,7 +50652,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListAssignees(input, issuesListAssigneesResponder, ctx) + .issuesListAssignees(input, issuesListAssignees.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58972,7 +50660,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListAssigneesResponseValidator(status, body) + ctx.body = issuesListAssignees.validator(status, body) ctx.status = status return next() }, @@ -59002,7 +50690,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .issuesCheckUserCanBeAssigned( input, - issuesCheckUserCanBeAssignedResponder, + issuesCheckUserCanBeAssigned.responder, ctx, ) .catch((err) => { @@ -59012,7 +50700,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesCheckUserCanBeAssignedResponseValidator(status, body) + ctx.body = issuesCheckUserCanBeAssigned.validator(status, body) ctx.status = status return next() }, @@ -59051,7 +50739,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateAttestation(input, reposCreateAttestationResponder, ctx) + .reposCreateAttestation(input, reposCreateAttestation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59059,7 +50747,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateAttestationResponseValidator(status, body) + ctx.body = reposCreateAttestation.validator(status, body) ctx.status = status return next() }, @@ -59098,7 +50786,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListAttestations(input, reposListAttestationsResponder, ctx) + .reposListAttestations(input, reposListAttestations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59106,7 +50794,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListAttestationsResponseValidator(status, body) + ctx.body = reposListAttestations.validator(status, body) ctx.status = status return next() }, @@ -59133,7 +50821,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListAutolinks(input, reposListAutolinksResponder, ctx) + .reposListAutolinks(input, reposListAutolinks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59141,7 +50829,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListAutolinksResponseValidator(status, body) + ctx.body = reposListAutolinks.validator(status, body) ctx.status = status return next() }, @@ -59178,7 +50866,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateAutolink(input, reposCreateAutolinkResponder, ctx) + .reposCreateAutolink(input, reposCreateAutolink.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59186,7 +50874,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateAutolinkResponseValidator(status, body) + ctx.body = reposCreateAutolink.validator(status, body) ctx.status = status return next() }, @@ -59214,7 +50902,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetAutolink(input, reposGetAutolinkResponder, ctx) + .reposGetAutolink(input, reposGetAutolink.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59222,7 +50910,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetAutolinkResponseValidator(status, body) + ctx.body = reposGetAutolink.validator(status, body) ctx.status = status return next() }, @@ -59250,7 +50938,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteAutolink(input, reposDeleteAutolinkResponder, ctx) + .reposDeleteAutolink(input, reposDeleteAutolink.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59258,7 +50946,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteAutolinkResponseValidator(status, body) + ctx.body = reposDeleteAutolink.validator(status, body) ctx.status = status return next() }, @@ -59287,7 +50975,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCheckAutomatedSecurityFixes( input, - reposCheckAutomatedSecurityFixesResponder, + reposCheckAutomatedSecurityFixes.responder, ctx, ) .catch((err) => { @@ -59297,7 +50985,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCheckAutomatedSecurityFixesResponseValidator(status, body) + ctx.body = reposCheckAutomatedSecurityFixes.validator(status, body) ctx.status = status return next() }, @@ -59326,7 +51014,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposEnableAutomatedSecurityFixes( input, - reposEnableAutomatedSecurityFixesResponder, + reposEnableAutomatedSecurityFixes.responder, ctx, ) .catch((err) => { @@ -59336,10 +51024,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposEnableAutomatedSecurityFixesResponseValidator( - status, - body, - ) + ctx.body = reposEnableAutomatedSecurityFixes.validator(status, body) ctx.status = status return next() }, @@ -59368,7 +51053,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDisableAutomatedSecurityFixes( input, - reposDisableAutomatedSecurityFixesResponder, + reposDisableAutomatedSecurityFixes.responder, ctx, ) .catch((err) => { @@ -59378,10 +51063,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDisableAutomatedSecurityFixesResponseValidator( - status, - body, - ) + ctx.body = reposDisableAutomatedSecurityFixes.validator(status, body) ctx.status = status return next() }, @@ -59418,7 +51100,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListBranches(input, reposListBranchesResponder, ctx) + .reposListBranches(input, reposListBranches.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59426,7 +51108,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListBranchesResponseValidator(status, body) + ctx.body = reposListBranches.validator(status, body) ctx.status = status return next() }, @@ -59454,7 +51136,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetBranch(input, reposGetBranchResponder, ctx) + .reposGetBranch(input, reposGetBranch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59462,7 +51144,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetBranchResponseValidator(status, body) + ctx.body = reposGetBranch.validator(status, body) ctx.status = status return next() }, @@ -59490,7 +51172,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetBranchProtection(input, reposGetBranchProtectionResponder, ctx) + .reposGetBranchProtection( + input, + reposGetBranchProtection.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59498,7 +51184,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetBranchProtectionResponseValidator(status, body) + ctx.body = reposGetBranchProtection.validator(status, body) ctx.status = status return next() }, @@ -59586,7 +51272,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposUpdateBranchProtection( input, - reposUpdateBranchProtectionResponder, + reposUpdateBranchProtection.responder, ctx, ) .catch((err) => { @@ -59596,7 +51282,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateBranchProtectionResponseValidator(status, body) + ctx.body = reposUpdateBranchProtection.validator(status, body) ctx.status = status return next() }, @@ -59626,7 +51312,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDeleteBranchProtection( input, - reposDeleteBranchProtectionResponder, + reposDeleteBranchProtection.responder, ctx, ) .catch((err) => { @@ -59636,7 +51322,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteBranchProtectionResponseValidator(status, body) + ctx.body = reposDeleteBranchProtection.validator(status, body) ctx.status = status return next() }, @@ -59666,7 +51352,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetAdminBranchProtection( input, - reposGetAdminBranchProtectionResponder, + reposGetAdminBranchProtection.responder, ctx, ) .catch((err) => { @@ -59676,7 +51362,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetAdminBranchProtectionResponseValidator(status, body) + ctx.body = reposGetAdminBranchProtection.validator(status, body) ctx.status = status return next() }, @@ -59706,7 +51392,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposSetAdminBranchProtection( input, - reposSetAdminBranchProtectionResponder, + reposSetAdminBranchProtection.responder, ctx, ) .catch((err) => { @@ -59716,7 +51402,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposSetAdminBranchProtectionResponseValidator(status, body) + ctx.body = reposSetAdminBranchProtection.validator(status, body) ctx.status = status return next() }, @@ -59746,7 +51432,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDeleteAdminBranchProtection( input, - reposDeleteAdminBranchProtectionResponder, + reposDeleteAdminBranchProtection.responder, ctx, ) .catch((err) => { @@ -59756,7 +51442,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteAdminBranchProtectionResponseValidator(status, body) + ctx.body = reposDeleteAdminBranchProtection.validator(status, body) ctx.status = status return next() }, @@ -59786,7 +51472,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetPullRequestReviewProtection( input, - reposGetPullRequestReviewProtectionResponder, + reposGetPullRequestReviewProtection.responder, ctx, ) .catch((err) => { @@ -59796,10 +51482,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetPullRequestReviewProtectionResponseValidator( - status, - body, - ) + ctx.body = reposGetPullRequestReviewProtection.validator(status, body) ctx.status = status return next() }, @@ -59856,7 +51539,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposUpdatePullRequestReviewProtection( input, - reposUpdatePullRequestReviewProtectionResponder, + reposUpdatePullRequestReviewProtection.responder, ctx, ) .catch((err) => { @@ -59866,10 +51549,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdatePullRequestReviewProtectionResponseValidator( - status, - body, - ) + ctx.body = reposUpdatePullRequestReviewProtection.validator(status, body) ctx.status = status return next() }, @@ -59899,7 +51579,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDeletePullRequestReviewProtection( input, - reposDeletePullRequestReviewProtectionResponder, + reposDeletePullRequestReviewProtection.responder, ctx, ) .catch((err) => { @@ -59909,10 +51589,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeletePullRequestReviewProtectionResponseValidator( - status, - body, - ) + ctx.body = reposDeletePullRequestReviewProtection.validator(status, body) ctx.status = status return next() }, @@ -59942,7 +51619,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetCommitSignatureProtection( input, - reposGetCommitSignatureProtectionResponder, + reposGetCommitSignatureProtection.responder, ctx, ) .catch((err) => { @@ -59952,10 +51629,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCommitSignatureProtectionResponseValidator( - status, - body, - ) + ctx.body = reposGetCommitSignatureProtection.validator(status, body) ctx.status = status return next() }, @@ -59985,7 +51659,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreateCommitSignatureProtection( input, - reposCreateCommitSignatureProtectionResponder, + reposCreateCommitSignatureProtection.responder, ctx, ) .catch((err) => { @@ -59995,10 +51669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateCommitSignatureProtectionResponseValidator( - status, - body, - ) + ctx.body = reposCreateCommitSignatureProtection.validator(status, body) ctx.status = status return next() }, @@ -60028,7 +51699,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDeleteCommitSignatureProtection( input, - reposDeleteCommitSignatureProtectionResponder, + reposDeleteCommitSignatureProtection.responder, ctx, ) .catch((err) => { @@ -60038,10 +51709,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteCommitSignatureProtectionResponseValidator( - status, - body, - ) + ctx.body = reposDeleteCommitSignatureProtection.validator(status, body) ctx.status = status return next() }, @@ -60071,7 +51739,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetStatusChecksProtection( input, - reposGetStatusChecksProtectionResponder, + reposGetStatusChecksProtection.responder, ctx, ) .catch((err) => { @@ -60081,7 +51749,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetStatusChecksProtectionResponseValidator(status, body) + ctx.body = reposGetStatusChecksProtection.validator(status, body) ctx.status = status return next() }, @@ -60130,7 +51798,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposUpdateStatusCheckProtection( input, - reposUpdateStatusCheckProtectionResponder, + reposUpdateStatusCheckProtection.responder, ctx, ) .catch((err) => { @@ -60140,7 +51808,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateStatusCheckProtectionResponseValidator(status, body) + ctx.body = reposUpdateStatusCheckProtection.validator(status, body) ctx.status = status return next() }, @@ -60170,7 +51838,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposRemoveStatusCheckProtection( input, - reposRemoveStatusCheckProtectionResponder, + reposRemoveStatusCheckProtection.responder, ctx, ) .catch((err) => { @@ -60180,7 +51848,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRemoveStatusCheckProtectionResponseValidator(status, body) + ctx.body = reposRemoveStatusCheckProtection.validator(status, body) ctx.status = status return next() }, @@ -60210,7 +51878,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetAllStatusCheckContexts( input, - reposGetAllStatusCheckContextsResponder, + reposGetAllStatusCheckContexts.responder, ctx, ) .catch((err) => { @@ -60220,7 +51888,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetAllStatusCheckContextsResponseValidator(status, body) + ctx.body = reposGetAllStatusCheckContexts.validator(status, body) ctx.status = status return next() }, @@ -60258,7 +51926,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposAddStatusCheckContexts( input, - reposAddStatusCheckContextsResponder, + reposAddStatusCheckContexts.responder, ctx, ) .catch((err) => { @@ -60268,7 +51936,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposAddStatusCheckContextsResponseValidator(status, body) + ctx.body = reposAddStatusCheckContexts.validator(status, body) ctx.status = status return next() }, @@ -60306,7 +51974,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposSetStatusCheckContexts( input, - reposSetStatusCheckContextsResponder, + reposSetStatusCheckContexts.responder, ctx, ) .catch((err) => { @@ -60316,7 +51984,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposSetStatusCheckContextsResponseValidator(status, body) + ctx.body = reposSetStatusCheckContexts.validator(status, body) ctx.status = status return next() }, @@ -60355,7 +52023,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposRemoveStatusCheckContexts( input, - reposRemoveStatusCheckContextsResponder, + reposRemoveStatusCheckContexts.responder, ctx, ) .catch((err) => { @@ -60365,7 +52033,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRemoveStatusCheckContextsResponseValidator(status, body) + ctx.body = reposRemoveStatusCheckContexts.validator(status, body) ctx.status = status return next() }, @@ -60395,7 +52063,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetAccessRestrictions( input, - reposGetAccessRestrictionsResponder, + reposGetAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60405,7 +52073,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetAccessRestrictionsResponseValidator(status, body) + ctx.body = reposGetAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60435,7 +52103,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDeleteAccessRestrictions( input, - reposDeleteAccessRestrictionsResponder, + reposDeleteAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60445,7 +52113,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteAccessRestrictionsResponseValidator(status, body) + ctx.body = reposDeleteAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60475,7 +52143,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetAppsWithAccessToProtectedBranch( input, - reposGetAppsWithAccessToProtectedBranchResponder, + reposGetAppsWithAccessToProtectedBranch.responder, ctx, ) .catch((err) => { @@ -60485,10 +52153,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetAppsWithAccessToProtectedBranchResponseValidator( - status, - body, - ) + ctx.body = reposGetAppsWithAccessToProtectedBranch.validator(status, body) ctx.status = status return next() }, @@ -60526,7 +52191,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposAddAppAccessRestrictions( input, - reposAddAppAccessRestrictionsResponder, + reposAddAppAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60536,7 +52201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposAddAppAccessRestrictionsResponseValidator(status, body) + ctx.body = reposAddAppAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60574,7 +52239,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposSetAppAccessRestrictions( input, - reposSetAppAccessRestrictionsResponder, + reposSetAppAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60584,7 +52249,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposSetAppAccessRestrictionsResponseValidator(status, body) + ctx.body = reposSetAppAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60622,7 +52287,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposRemoveAppAccessRestrictions( input, - reposRemoveAppAccessRestrictionsResponder, + reposRemoveAppAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60632,7 +52297,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRemoveAppAccessRestrictionsResponseValidator(status, body) + ctx.body = reposRemoveAppAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60662,7 +52327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetTeamsWithAccessToProtectedBranch( input, - reposGetTeamsWithAccessToProtectedBranchResponder, + reposGetTeamsWithAccessToProtectedBranch.responder, ctx, ) .catch((err) => { @@ -60672,7 +52337,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetTeamsWithAccessToProtectedBranchResponseValidator( + ctx.body = reposGetTeamsWithAccessToProtectedBranch.validator( status, body, ) @@ -60713,7 +52378,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposAddTeamAccessRestrictions( input, - reposAddTeamAccessRestrictionsResponder, + reposAddTeamAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60723,7 +52388,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposAddTeamAccessRestrictionsResponseValidator(status, body) + ctx.body = reposAddTeamAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60761,7 +52426,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposSetTeamAccessRestrictions( input, - reposSetTeamAccessRestrictionsResponder, + reposSetTeamAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60771,7 +52436,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposSetTeamAccessRestrictionsResponseValidator(status, body) + ctx.body = reposSetTeamAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60810,7 +52475,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposRemoveTeamAccessRestrictions( input, - reposRemoveTeamAccessRestrictionsResponder, + reposRemoveTeamAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60820,10 +52485,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRemoveTeamAccessRestrictionsResponseValidator( - status, - body, - ) + ctx.body = reposRemoveTeamAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60853,7 +52515,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetUsersWithAccessToProtectedBranch( input, - reposGetUsersWithAccessToProtectedBranchResponder, + reposGetUsersWithAccessToProtectedBranch.responder, ctx, ) .catch((err) => { @@ -60863,7 +52525,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetUsersWithAccessToProtectedBranchResponseValidator( + ctx.body = reposGetUsersWithAccessToProtectedBranch.validator( status, body, ) @@ -60904,7 +52566,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposAddUserAccessRestrictions( input, - reposAddUserAccessRestrictionsResponder, + reposAddUserAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60914,7 +52576,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposAddUserAccessRestrictionsResponseValidator(status, body) + ctx.body = reposAddUserAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -60952,7 +52614,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposSetUserAccessRestrictions( input, - reposSetUserAccessRestrictionsResponder, + reposSetUserAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -60962,7 +52624,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposSetUserAccessRestrictionsResponseValidator(status, body) + ctx.body = reposSetUserAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -61000,7 +52662,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposRemoveUserAccessRestrictions( input, - reposRemoveUserAccessRestrictionsResponder, + reposRemoveUserAccessRestrictions.responder, ctx, ) .catch((err) => { @@ -61010,10 +52672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRemoveUserAccessRestrictionsResponseValidator( - status, - body, - ) + ctx.body = reposRemoveUserAccessRestrictions.validator(status, body) ctx.status = status return next() }, @@ -61047,7 +52706,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposRenameBranch(input, reposRenameBranchResponder, ctx) + .reposRenameBranch(input, reposRenameBranch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61055,7 +52714,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRenameBranchResponseValidator(status, body) + ctx.body = reposRenameBranch.validator(status, body) ctx.status = status return next() }, @@ -61094,7 +52753,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksCreate(input, checksCreateResponder, ctx) + .checksCreate(input, checksCreate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61102,7 +52761,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksCreateResponseValidator(status, body) + ctx.body = checksCreate.validator(status, body) ctx.status = status return next() }, @@ -61130,7 +52789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksGet(input, checksGetResponder, ctx) + .checksGet(input, checksGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61138,7 +52797,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksGetResponseValidator(status, body) + ctx.body = checksGet.validator(status, body) ctx.status = status return next() }, @@ -61242,7 +52901,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksUpdate(input, checksUpdateResponder, ctx) + .checksUpdate(input, checksUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61250,7 +52909,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksUpdateResponseValidator(status, body) + ctx.body = checksUpdate.validator(status, body) ctx.status = status return next() }, @@ -61287,7 +52946,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksListAnnotations(input, checksListAnnotationsResponder, ctx) + .checksListAnnotations(input, checksListAnnotations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61295,7 +52954,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksListAnnotationsResponseValidator(status, body) + ctx.body = checksListAnnotations.validator(status, body) ctx.status = status return next() }, @@ -61323,7 +52982,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksRerequestRun(input, checksRerequestRunResponder, ctx) + .checksRerequestRun(input, checksRerequestRun.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61331,7 +52990,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksRerequestRunResponseValidator(status, body) + ctx.body = checksRerequestRun.validator(status, body) ctx.status = status return next() }, @@ -61364,7 +53023,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksCreateSuite(input, checksCreateSuiteResponder, ctx) + .checksCreateSuite(input, checksCreateSuite.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61372,7 +53031,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksCreateSuiteResponseValidator(status, body) + ctx.body = checksCreateSuite.validator(status, body) ctx.status = status return next() }, @@ -61416,7 +53075,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .checksSetSuitesPreferences( input, - checksSetSuitesPreferencesResponder, + checksSetSuitesPreferences.responder, ctx, ) .catch((err) => { @@ -61426,7 +53085,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksSetSuitesPreferencesResponseValidator(status, body) + ctx.body = checksSetSuitesPreferences.validator(status, body) ctx.status = status return next() }, @@ -61454,7 +53113,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksGetSuite(input, checksGetSuiteResponder, ctx) + .checksGetSuite(input, checksGetSuite.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61462,7 +53121,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksGetSuiteResponseValidator(status, body) + ctx.body = checksGetSuite.validator(status, body) ctx.status = status return next() }, @@ -61502,7 +53161,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksListForSuite(input, checksListForSuiteResponder, ctx) + .checksListForSuite(input, checksListForSuite.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61510,7 +53169,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksListForSuiteResponseValidator(status, body) + ctx.body = checksListForSuite.validator(status, body) ctx.status = status return next() }, @@ -61538,7 +53197,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksRerequestSuite(input, checksRerequestSuiteResponder, ctx) + .checksRerequestSuite(input, checksRerequestSuite.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61546,7 +53205,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksRerequestSuiteResponseValidator(status, body) + ctx.body = checksRerequestSuite.validator(status, body) ctx.status = status return next() }, @@ -61594,7 +53253,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningListAlertsForRepo( input, - codeScanningListAlertsForRepoResponder, + codeScanningListAlertsForRepo.responder, ctx, ) .catch((err) => { @@ -61604,7 +53263,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningListAlertsForRepoResponseValidator(status, body) + ctx.body = codeScanningListAlertsForRepo.validator(status, body) ctx.status = status return next() }, @@ -61632,7 +53291,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codeScanningGetAlert(input, codeScanningGetAlertResponder, ctx) + .codeScanningGetAlert(input, codeScanningGetAlert.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61640,7 +53299,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningGetAlertResponseValidator(status, body) + ctx.body = codeScanningGetAlert.validator(status, body) ctx.status = status return next() }, @@ -61679,7 +53338,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codeScanningUpdateAlert(input, codeScanningUpdateAlertResponder, ctx) + .codeScanningUpdateAlert(input, codeScanningUpdateAlert.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61687,7 +53346,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningUpdateAlertResponseValidator(status, body) + ctx.body = codeScanningUpdateAlert.validator(status, body) ctx.status = status return next() }, @@ -61715,7 +53374,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codeScanningGetAutofix(input, codeScanningGetAutofixResponder, ctx) + .codeScanningGetAutofix(input, codeScanningGetAutofix.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61723,7 +53382,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningGetAutofixResponseValidator(status, body) + ctx.body = codeScanningGetAutofix.validator(status, body) ctx.status = status return next() }, @@ -61753,7 +53412,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningCreateAutofix( input, - codeScanningCreateAutofixResponder, + codeScanningCreateAutofix.responder, ctx, ) .catch((err) => { @@ -61763,7 +53422,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningCreateAutofixResponseValidator(status, body) + ctx.body = codeScanningCreateAutofix.validator(status, body) ctx.status = status return next() }, @@ -61800,7 +53459,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningCommitAutofix( input, - codeScanningCommitAutofixResponder, + codeScanningCommitAutofix.responder, ctx, ) .catch((err) => { @@ -61810,7 +53469,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningCommitAutofixResponseValidator(status, body) + ctx.body = codeScanningCommitAutofix.validator(status, body) ctx.status = status return next() }, @@ -61851,7 +53510,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningListAlertInstances( input, - codeScanningListAlertInstancesResponder, + codeScanningListAlertInstances.responder, ctx, ) .catch((err) => { @@ -61861,7 +53520,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningListAlertInstancesResponseValidator(status, body) + ctx.body = codeScanningListAlertInstances.validator(status, body) ctx.status = status return next() }, @@ -61906,7 +53565,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningListRecentAnalyses( input, - codeScanningListRecentAnalysesResponder, + codeScanningListRecentAnalyses.responder, ctx, ) .catch((err) => { @@ -61916,7 +53575,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningListRecentAnalysesResponseValidator(status, body) + ctx.body = codeScanningListRecentAnalyses.validator(status, body) ctx.status = status return next() }, @@ -61944,7 +53603,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codeScanningGetAnalysis(input, codeScanningGetAnalysisResponder, ctx) + .codeScanningGetAnalysis(input, codeScanningGetAnalysis.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61952,7 +53611,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningGetAnalysisResponseValidator(status, body) + ctx.body = codeScanningGetAnalysis.validator(status, body) ctx.status = status return next() }, @@ -61990,7 +53649,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningDeleteAnalysis( input, - codeScanningDeleteAnalysisResponder, + codeScanningDeleteAnalysis.responder, ctx, ) .catch((err) => { @@ -62000,7 +53659,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningDeleteAnalysisResponseValidator(status, body) + ctx.body = codeScanningDeleteAnalysis.validator(status, body) ctx.status = status return next() }, @@ -62029,7 +53688,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningListCodeqlDatabases( input, - codeScanningListCodeqlDatabasesResponder, + codeScanningListCodeqlDatabases.responder, ctx, ) .catch((err) => { @@ -62039,7 +53698,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningListCodeqlDatabasesResponseValidator(status, body) + ctx.body = codeScanningListCodeqlDatabases.validator(status, body) ctx.status = status return next() }, @@ -62069,7 +53728,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningGetCodeqlDatabase( input, - codeScanningGetCodeqlDatabaseResponder, + codeScanningGetCodeqlDatabase.responder, ctx, ) .catch((err) => { @@ -62079,7 +53738,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningGetCodeqlDatabaseResponseValidator(status, body) + ctx.body = codeScanningGetCodeqlDatabase.validator(status, body) ctx.status = status return next() }, @@ -62109,7 +53768,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningDeleteCodeqlDatabase( input, - codeScanningDeleteCodeqlDatabaseResponder, + codeScanningDeleteCodeqlDatabase.responder, ctx, ) .catch((err) => { @@ -62119,7 +53778,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningDeleteCodeqlDatabaseResponseValidator(status, body) + ctx.body = codeScanningDeleteCodeqlDatabase.validator(status, body) ctx.status = status return next() }, @@ -62158,7 +53817,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningCreateVariantAnalysis( input, - codeScanningCreateVariantAnalysisResponder, + codeScanningCreateVariantAnalysis.responder, ctx, ) .catch((err) => { @@ -62168,10 +53827,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningCreateVariantAnalysisResponseValidator( - status, - body, - ) + ctx.body = codeScanningCreateVariantAnalysis.validator(status, body) ctx.status = status return next() }, @@ -62201,7 +53857,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningGetVariantAnalysis( input, - codeScanningGetVariantAnalysisResponder, + codeScanningGetVariantAnalysis.responder, ctx, ) .catch((err) => { @@ -62211,7 +53867,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningGetVariantAnalysisResponseValidator(status, body) + ctx.body = codeScanningGetVariantAnalysis.validator(status, body) ctx.status = status return next() }, @@ -62243,7 +53899,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningGetVariantAnalysisRepoTask( input, - codeScanningGetVariantAnalysisRepoTaskResponder, + codeScanningGetVariantAnalysisRepoTask.responder, ctx, ) .catch((err) => { @@ -62253,10 +53909,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningGetVariantAnalysisRepoTaskResponseValidator( - status, - body, - ) + ctx.body = codeScanningGetVariantAnalysisRepoTask.validator(status, body) ctx.status = status return next() }, @@ -62285,7 +53938,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningGetDefaultSetup( input, - codeScanningGetDefaultSetupResponder, + codeScanningGetDefaultSetup.responder, ctx, ) .catch((err) => { @@ -62295,7 +53948,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningGetDefaultSetupResponseValidator(status, body) + ctx.body = codeScanningGetDefaultSetup.validator(status, body) ctx.status = status return next() }, @@ -62331,7 +53984,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeScanningUpdateDefaultSetup( input, - codeScanningUpdateDefaultSetupResponder, + codeScanningUpdateDefaultSetup.responder, ctx, ) .catch((err) => { @@ -62341,7 +53994,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningUpdateDefaultSetupResponseValidator(status, body) + ctx.body = codeScanningUpdateDefaultSetup.validator(status, body) ctx.status = status return next() }, @@ -62382,7 +54035,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codeScanningUploadSarif(input, codeScanningUploadSarifResponder, ctx) + .codeScanningUploadSarif(input, codeScanningUploadSarif.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62390,7 +54043,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningUploadSarifResponseValidator(status, body) + ctx.body = codeScanningUploadSarif.validator(status, body) ctx.status = status return next() }, @@ -62418,7 +54071,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codeScanningGetSarif(input, codeScanningGetSarifResponder, ctx) + .codeScanningGetSarif(input, codeScanningGetSarif.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62426,7 +54079,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeScanningGetSarifResponseValidator(status, body) + ctx.body = codeScanningGetSarif.validator(status, body) ctx.status = status return next() }, @@ -62455,7 +54108,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codeSecurityGetConfigurationForRepository( input, - codeSecurityGetConfigurationForRepositoryResponder, + codeSecurityGetConfigurationForRepository.responder, ctx, ) .catch((err) => { @@ -62465,7 +54118,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codeSecurityGetConfigurationForRepositoryResponseValidator( + ctx.body = codeSecurityGetConfigurationForRepository.validator( status, body, ) @@ -62503,7 +54156,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCodeownersErrors(input, reposCodeownersErrorsResponder, ctx) + .reposCodeownersErrors(input, reposCodeownersErrors.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62511,7 +54164,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCodeownersErrorsResponseValidator(status, body) + ctx.body = reposCodeownersErrors.validator(status, body) ctx.status = status return next() }, @@ -62549,7 +54202,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesListInRepositoryForAuthenticatedUser( input, - codespacesListInRepositoryForAuthenticatedUserResponder, + codespacesListInRepositoryForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -62559,11 +54212,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codespacesListInRepositoryForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesListInRepositoryForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -62614,7 +54266,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesCreateWithRepoForAuthenticatedUser( input, - codespacesCreateWithRepoForAuthenticatedUserResponder, + codespacesCreateWithRepoForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -62624,7 +54276,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesCreateWithRepoForAuthenticatedUserResponseValidator( + ctx.body = codespacesCreateWithRepoForAuthenticatedUser.validator( status, body, ) @@ -62664,7 +54316,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesListDevcontainersInRepositoryForAuthenticatedUser( input, - codespacesListDevcontainersInRepositoryForAuthenticatedUserResponder, + codespacesListDevcontainersInRepositoryForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -62675,7 +54327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - codespacesListDevcontainersInRepositoryForAuthenticatedUserResponseValidator( + codespacesListDevcontainersInRepositoryForAuthenticatedUser.validator( status, body, ) @@ -62717,7 +54369,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesRepoMachinesForAuthenticatedUser( input, - codespacesRepoMachinesForAuthenticatedUserResponder, + codespacesRepoMachinesForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -62727,7 +54379,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesRepoMachinesForAuthenticatedUserResponseValidator( + ctx.body = codespacesRepoMachinesForAuthenticatedUser.validator( status, body, ) @@ -62768,7 +54420,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesPreFlightWithRepoForAuthenticatedUser( input, - codespacesPreFlightWithRepoForAuthenticatedUserResponder, + codespacesPreFlightWithRepoForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -62778,11 +54430,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codespacesPreFlightWithRepoForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesPreFlightWithRepoForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -62820,7 +54471,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesCheckPermissionsForDevcontainer( input, - codespacesCheckPermissionsForDevcontainerResponder, + codespacesCheckPermissionsForDevcontainer.responder, ctx, ) .catch((err) => { @@ -62830,7 +54481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesCheckPermissionsForDevcontainerResponseValidator( + ctx.body = codespacesCheckPermissionsForDevcontainer.validator( status, body, ) @@ -62871,7 +54522,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesListRepoSecrets( input, - codespacesListRepoSecretsResponder, + codespacesListRepoSecrets.responder, ctx, ) .catch((err) => { @@ -62881,7 +54532,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesListRepoSecretsResponseValidator(status, body) + ctx.body = codespacesListRepoSecrets.validator(status, body) ctx.status = status return next() }, @@ -62910,7 +54561,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesGetRepoPublicKey( input, - codespacesGetRepoPublicKeyResponder, + codespacesGetRepoPublicKey.responder, ctx, ) .catch((err) => { @@ -62920,7 +54571,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesGetRepoPublicKeyResponseValidator(status, body) + ctx.body = codespacesGetRepoPublicKey.validator(status, body) ctx.status = status return next() }, @@ -62948,7 +54599,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .codespacesGetRepoSecret(input, codespacesGetRepoSecretResponder, ctx) + .codespacesGetRepoSecret(input, codespacesGetRepoSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62956,7 +54607,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesGetRepoSecretResponseValidator(status, body) + ctx.body = codespacesGetRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -63002,7 +54653,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesCreateOrUpdateRepoSecret( input, - codespacesCreateOrUpdateRepoSecretResponder, + codespacesCreateOrUpdateRepoSecret.responder, ctx, ) .catch((err) => { @@ -63012,10 +54663,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesCreateOrUpdateRepoSecretResponseValidator( - status, - body, - ) + ctx.body = codespacesCreateOrUpdateRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -63045,7 +54693,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesDeleteRepoSecret( input, - codespacesDeleteRepoSecretResponder, + codespacesDeleteRepoSecret.responder, ctx, ) .catch((err) => { @@ -63055,7 +54703,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesDeleteRepoSecretResponseValidator(status, body) + ctx.body = codespacesDeleteRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -63095,7 +54743,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListCollaborators(input, reposListCollaboratorsResponder, ctx) + .reposListCollaborators(input, reposListCollaborators.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63103,7 +54751,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListCollaboratorsResponseValidator(status, body) + ctx.body = reposListCollaborators.validator(status, body) ctx.status = status return next() }, @@ -63131,7 +54779,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCheckCollaborator(input, reposCheckCollaboratorResponder, ctx) + .reposCheckCollaborator(input, reposCheckCollaborator.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63139,7 +54787,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCheckCollaboratorResponseValidator(status, body) + ctx.body = reposCheckCollaborator.validator(status, body) ctx.status = status return next() }, @@ -63175,7 +54823,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposAddCollaborator(input, reposAddCollaboratorResponder, ctx) + .reposAddCollaborator(input, reposAddCollaborator.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63183,7 +54831,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposAddCollaboratorResponseValidator(status, body) + ctx.body = reposAddCollaborator.validator(status, body) ctx.status = status return next() }, @@ -63211,7 +54859,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposRemoveCollaborator(input, reposRemoveCollaboratorResponder, ctx) + .reposRemoveCollaborator(input, reposRemoveCollaborator.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63219,7 +54867,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRemoveCollaboratorResponseValidator(status, body) + ctx.body = reposRemoveCollaborator.validator(status, body) ctx.status = status return next() }, @@ -63249,7 +54897,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetCollaboratorPermissionLevel( input, - reposGetCollaboratorPermissionLevelResponder, + reposGetCollaboratorPermissionLevel.responder, ctx, ) .catch((err) => { @@ -63259,10 +54907,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCollaboratorPermissionLevelResponseValidator( - status, - body, - ) + ctx.body = reposGetCollaboratorPermissionLevel.validator(status, body) ctx.status = status return next() }, @@ -63300,7 +54945,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListCommitCommentsForRepo( input, - reposListCommitCommentsForRepoResponder, + reposListCommitCommentsForRepo.responder, ctx, ) .catch((err) => { @@ -63310,7 +54955,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListCommitCommentsForRepoResponseValidator(status, body) + ctx.body = reposListCommitCommentsForRepo.validator(status, body) ctx.status = status return next() }, @@ -63338,7 +54983,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetCommitComment(input, reposGetCommitCommentResponder, ctx) + .reposGetCommitComment(input, reposGetCommitComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63346,7 +54991,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCommitCommentResponseValidator(status, body) + ctx.body = reposGetCommitComment.validator(status, body) ctx.status = status return next() }, @@ -63380,7 +55025,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUpdateCommitComment(input, reposUpdateCommitCommentResponder, ctx) + .reposUpdateCommitComment( + input, + reposUpdateCommitComment.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63388,7 +55037,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateCommitCommentResponseValidator(status, body) + ctx.body = reposUpdateCommitComment.validator(status, body) ctx.status = status return next() }, @@ -63416,7 +55065,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteCommitComment(input, reposDeleteCommitCommentResponder, ctx) + .reposDeleteCommitComment( + input, + reposDeleteCommitComment.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63424,7 +55077,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteCommitCommentResponseValidator(status, body) + ctx.body = reposDeleteCommitComment.validator(status, body) ctx.status = status return next() }, @@ -63475,7 +55128,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsListForCommitComment( input, - reactionsListForCommitCommentResponder, + reactionsListForCommitComment.responder, ctx, ) .catch((err) => { @@ -63485,7 +55138,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForCommitCommentResponseValidator(status, body) + ctx.body = reactionsListForCommitComment.validator(status, body) ctx.status = status return next() }, @@ -63532,7 +55185,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsCreateForCommitComment( input, - reactionsCreateForCommitCommentResponder, + reactionsCreateForCommitComment.responder, ctx, ) .catch((err) => { @@ -63542,7 +55195,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForCommitCommentResponseValidator(status, body) + ctx.body = reactionsCreateForCommitComment.validator(status, body) ctx.status = status return next() }, @@ -63573,7 +55226,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsDeleteForCommitComment( input, - reactionsDeleteForCommitCommentResponder, + reactionsDeleteForCommitComment.responder, ctx, ) .catch((err) => { @@ -63583,7 +55236,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsDeleteForCommitCommentResponseValidator(status, body) + ctx.body = reactionsDeleteForCommitComment.validator(status, body) ctx.status = status return next() }, @@ -63625,7 +55278,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListCommits(input, reposListCommitsResponder, ctx) + .reposListCommits(input, reposListCommits.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63633,7 +55286,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListCommitsResponseValidator(status, body) + ctx.body = reposListCommits.validator(status, body) ctx.status = status return next() }, @@ -63663,7 +55316,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListBranchesForHeadCommit( input, - reposListBranchesForHeadCommitResponder, + reposListBranchesForHeadCommit.responder, ctx, ) .catch((err) => { @@ -63673,7 +55326,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListBranchesForHeadCommitResponseValidator(status, body) + ctx.body = reposListBranchesForHeadCommit.validator(status, body) ctx.status = status return next() }, @@ -63712,7 +55365,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListCommentsForCommit( input, - reposListCommentsForCommitResponder, + reposListCommentsForCommit.responder, ctx, ) .catch((err) => { @@ -63722,7 +55375,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListCommentsForCommitResponseValidator(status, body) + ctx.body = reposListCommentsForCommit.validator(status, body) ctx.status = status return next() }, @@ -63761,7 +55414,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateCommitComment(input, reposCreateCommitCommentResponder, ctx) + .reposCreateCommitComment( + input, + reposCreateCommitComment.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63769,7 +55426,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateCommitCommentResponseValidator(status, body) + ctx.body = reposCreateCommitComment.validator(status, body) ctx.status = status return next() }, @@ -63808,7 +55465,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListPullRequestsAssociatedWithCommit( input, - reposListPullRequestsAssociatedWithCommitResponder, + reposListPullRequestsAssociatedWithCommit.responder, ctx, ) .catch((err) => { @@ -63818,7 +55475,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListPullRequestsAssociatedWithCommitResponseValidator( + ctx.body = reposListPullRequestsAssociatedWithCommit.validator( status, body, ) @@ -63858,7 +55515,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetCommit(input, reposGetCommitResponder, ctx) + .reposGetCommit(input, reposGetCommit.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63866,7 +55523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCommitResponseValidator(status, body) + ctx.body = reposGetCommit.validator(status, body) ctx.status = status return next() }, @@ -63907,7 +55564,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksListForRef(input, checksListForRefResponder, ctx) + .checksListForRef(input, checksListForRef.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63915,7 +55572,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksListForRefResponseValidator(status, body) + ctx.body = checksListForRef.validator(status, body) ctx.status = status return next() }, @@ -63954,7 +55611,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .checksListSuitesForRef(input, checksListSuitesForRefResponder, ctx) + .checksListSuitesForRef(input, checksListSuitesForRef.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63962,7 +55619,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = checksListSuitesForRefResponseValidator(status, body) + ctx.body = checksListSuitesForRef.validator(status, body) ctx.status = status return next() }, @@ -64001,7 +55658,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetCombinedStatusForRef( input, - reposGetCombinedStatusForRefResponder, + reposGetCombinedStatusForRef.responder, ctx, ) .catch((err) => { @@ -64011,7 +55668,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCombinedStatusForRefResponseValidator(status, body) + ctx.body = reposGetCombinedStatusForRef.validator(status, body) ctx.status = status return next() }, @@ -64050,7 +55707,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListCommitStatusesForRef( input, - reposListCommitStatusesForRefResponder, + reposListCommitStatusesForRef.responder, ctx, ) .catch((err) => { @@ -64060,7 +55717,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListCommitStatusesForRefResponseValidator(status, body) + ctx.body = reposListCommitStatusesForRef.validator(status, body) ctx.status = status return next() }, @@ -64089,7 +55746,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetCommunityProfileMetrics( input, - reposGetCommunityProfileMetricsResponder, + reposGetCommunityProfileMetrics.responder, ctx, ) .catch((err) => { @@ -64099,7 +55756,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCommunityProfileMetricsResponseValidator(status, body) + ctx.body = reposGetCommunityProfileMetrics.validator(status, body) ctx.status = status return next() }, @@ -64136,7 +55793,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCompareCommits(input, reposCompareCommitsResponder, ctx) + .reposCompareCommits(input, reposCompareCommits.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64144,7 +55801,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCompareCommitsResponseValidator(status, body) + ctx.body = reposCompareCommits.validator(status, body) ctx.status = status return next() }, @@ -64178,7 +55835,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetContent(input, reposGetContentResponder, ctx) + .reposGetContent(input, reposGetContent.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64186,7 +55843,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetContentResponseValidator(status, body) + ctx.body = reposGetContent.validator(status, body) ctx.status = status return next() }, @@ -64241,7 +55898,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreateOrUpdateFileContents( input, - reposCreateOrUpdateFileContentsResponder, + reposCreateOrUpdateFileContents.responder, ctx, ) .catch((err) => { @@ -64251,7 +55908,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateOrUpdateFileContentsResponseValidator(status, body) + ctx.body = reposCreateOrUpdateFileContents.validator(status, body) ctx.status = status return next() }, @@ -64295,7 +55952,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteFile(input, reposDeleteFileResponder, ctx) + .reposDeleteFile(input, reposDeleteFile.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64303,7 +55960,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteFileResponseValidator(status, body) + ctx.body = reposDeleteFile.validator(status, body) ctx.status = status return next() }, @@ -64340,7 +55997,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListContributors(input, reposListContributorsResponder, ctx) + .reposListContributors(input, reposListContributors.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64348,7 +56005,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListContributorsResponseValidator(status, body) + ctx.body = reposListContributors.validator(status, body) ctx.status = status return next() }, @@ -64402,7 +56059,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotListAlertsForRepo( input, - dependabotListAlertsForRepoResponder, + dependabotListAlertsForRepo.responder, ctx, ) .catch((err) => { @@ -64412,7 +56069,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotListAlertsForRepoResponseValidator(status, body) + ctx.body = dependabotListAlertsForRepo.validator(status, body) ctx.status = status return next() }, @@ -64440,7 +56097,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .dependabotGetAlert(input, dependabotGetAlertResponder, ctx) + .dependabotGetAlert(input, dependabotGetAlert.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64448,7 +56105,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotGetAlertResponseValidator(status, body) + ctx.body = dependabotGetAlert.validator(status, body) ctx.status = status return next() }, @@ -64494,7 +56151,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .dependabotUpdateAlert(input, dependabotUpdateAlertResponder, ctx) + .dependabotUpdateAlert(input, dependabotUpdateAlert.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64502,7 +56159,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotUpdateAlertResponseValidator(status, body) + ctx.body = dependabotUpdateAlert.validator(status, body) ctx.status = status return next() }, @@ -64540,7 +56197,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotListRepoSecrets( input, - dependabotListRepoSecretsResponder, + dependabotListRepoSecrets.responder, ctx, ) .catch((err) => { @@ -64550,7 +56207,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotListRepoSecretsResponseValidator(status, body) + ctx.body = dependabotListRepoSecrets.validator(status, body) ctx.status = status return next() }, @@ -64579,7 +56236,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotGetRepoPublicKey( input, - dependabotGetRepoPublicKeyResponder, + dependabotGetRepoPublicKey.responder, ctx, ) .catch((err) => { @@ -64589,7 +56246,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotGetRepoPublicKeyResponseValidator(status, body) + ctx.body = dependabotGetRepoPublicKey.validator(status, body) ctx.status = status return next() }, @@ -64617,7 +56274,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .dependabotGetRepoSecret(input, dependabotGetRepoSecretResponder, ctx) + .dependabotGetRepoSecret(input, dependabotGetRepoSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64625,7 +56282,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotGetRepoSecretResponseValidator(status, body) + ctx.body = dependabotGetRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -64671,7 +56328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotCreateOrUpdateRepoSecret( input, - dependabotCreateOrUpdateRepoSecretResponder, + dependabotCreateOrUpdateRepoSecret.responder, ctx, ) .catch((err) => { @@ -64681,10 +56338,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotCreateOrUpdateRepoSecretResponseValidator( - status, - body, - ) + ctx.body = dependabotCreateOrUpdateRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -64714,7 +56368,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependabotDeleteRepoSecret( input, - dependabotDeleteRepoSecretResponder, + dependabotDeleteRepoSecret.responder, ctx, ) .catch((err) => { @@ -64724,7 +56378,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependabotDeleteRepoSecretResponseValidator(status, body) + ctx.body = dependabotDeleteRepoSecret.validator(status, body) ctx.status = status return next() }, @@ -64760,7 +56414,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .dependencyGraphDiffRange(input, dependencyGraphDiffRangeResponder, ctx) + .dependencyGraphDiffRange( + input, + dependencyGraphDiffRange.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64768,7 +56426,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependencyGraphDiffRangeResponseValidator(status, body) + ctx.body = dependencyGraphDiffRange.validator(status, body) ctx.status = status return next() }, @@ -64797,7 +56455,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependencyGraphExportSbom( input, - dependencyGraphExportSbomResponder, + dependencyGraphExportSbom.responder, ctx, ) .catch((err) => { @@ -64807,7 +56465,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependencyGraphExportSbomResponseValidator(status, body) + ctx.body = dependencyGraphExportSbom.validator(status, body) ctx.status = status return next() }, @@ -64842,7 +56500,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .dependencyGraphCreateRepositorySnapshot( input, - dependencyGraphCreateRepositorySnapshotResponder, + dependencyGraphCreateRepositorySnapshot.responder, ctx, ) .catch((err) => { @@ -64852,10 +56510,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = dependencyGraphCreateRepositorySnapshotResponseValidator( - status, - body, - ) + ctx.body = dependencyGraphCreateRepositorySnapshot.validator(status, body) ctx.status = status return next() }, @@ -64895,7 +56550,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListDeployments(input, reposListDeploymentsResponder, ctx) + .reposListDeployments(input, reposListDeployments.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64903,7 +56558,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListDeploymentsResponseValidator(status, body) + ctx.body = reposListDeployments.validator(status, body) ctx.status = status return next() }, @@ -64948,7 +56603,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateDeployment(input, reposCreateDeploymentResponder, ctx) + .reposCreateDeployment(input, reposCreateDeployment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64956,7 +56611,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateDeploymentResponseValidator(status, body) + ctx.body = reposCreateDeployment.validator(status, body) ctx.status = status return next() }, @@ -64984,7 +56639,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetDeployment(input, reposGetDeploymentResponder, ctx) + .reposGetDeployment(input, reposGetDeployment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64992,7 +56647,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetDeploymentResponseValidator(status, body) + ctx.body = reposGetDeployment.validator(status, body) ctx.status = status return next() }, @@ -65020,7 +56675,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteDeployment(input, reposDeleteDeploymentResponder, ctx) + .reposDeleteDeployment(input, reposDeleteDeployment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65028,7 +56683,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteDeploymentResponseValidator(status, body) + ctx.body = reposDeleteDeployment.validator(status, body) ctx.status = status return next() }, @@ -65067,7 +56722,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListDeploymentStatuses( input, - reposListDeploymentStatusesResponder, + reposListDeploymentStatuses.responder, ctx, ) .catch((err) => { @@ -65077,7 +56732,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListDeploymentStatusesResponseValidator(status, body) + ctx.body = reposListDeploymentStatuses.validator(status, body) ctx.status = status return next() }, @@ -65129,7 +56784,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreateDeploymentStatus( input, - reposCreateDeploymentStatusResponder, + reposCreateDeploymentStatus.responder, ctx, ) .catch((err) => { @@ -65139,7 +56794,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateDeploymentStatusResponseValidator(status, body) + ctx.body = reposCreateDeploymentStatus.validator(status, body) ctx.status = status return next() }, @@ -65168,7 +56823,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetDeploymentStatus(input, reposGetDeploymentStatusResponder, ctx) + .reposGetDeploymentStatus( + input, + reposGetDeploymentStatus.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65176,7 +56835,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetDeploymentStatusResponseValidator(status, body) + ctx.body = reposGetDeploymentStatus.validator(status, body) ctx.status = status return next() }, @@ -65212,7 +56871,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateDispatchEvent(input, reposCreateDispatchEventResponder, ctx) + .reposCreateDispatchEvent( + input, + reposCreateDispatchEvent.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65220,7 +56883,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateDispatchEventResponseValidator(status, body) + ctx.body = reposCreateDispatchEvent.validator(status, body) ctx.status = status return next() }, @@ -65256,7 +56919,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetAllEnvironments(input, reposGetAllEnvironmentsResponder, ctx) + .reposGetAllEnvironments(input, reposGetAllEnvironments.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65264,7 +56927,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetAllEnvironmentsResponseValidator(status, body) + ctx.body = reposGetAllEnvironments.validator(status, body) ctx.status = status return next() }, @@ -65292,7 +56955,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetEnvironment(input, reposGetEnvironmentResponder, ctx) + .reposGetEnvironment(input, reposGetEnvironment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65300,7 +56963,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetEnvironmentResponseValidator(status, body) + ctx.body = reposGetEnvironment.validator(status, body) ctx.status = status return next() }, @@ -65352,7 +57015,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreateOrUpdateEnvironment( input, - reposCreateOrUpdateEnvironmentResponder, + reposCreateOrUpdateEnvironment.responder, ctx, ) .catch((err) => { @@ -65362,7 +57025,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateOrUpdateEnvironmentResponseValidator(status, body) + ctx.body = reposCreateOrUpdateEnvironment.validator(status, body) ctx.status = status return next() }, @@ -65390,7 +57053,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteAnEnvironment(input, reposDeleteAnEnvironmentResponder, ctx) + .reposDeleteAnEnvironment( + input, + reposDeleteAnEnvironment.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65398,7 +57065,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteAnEnvironmentResponseValidator(status, body) + ctx.body = reposDeleteAnEnvironment.validator(status, body) ctx.status = status return next() }, @@ -65437,7 +57104,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListDeploymentBranchPolicies( input, - reposListDeploymentBranchPoliciesResponder, + reposListDeploymentBranchPolicies.responder, ctx, ) .catch((err) => { @@ -65447,10 +57114,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListDeploymentBranchPoliciesResponseValidator( - status, - body, - ) + ctx.body = reposListDeploymentBranchPolicies.validator(status, body) ctx.status = status return next() }, @@ -65487,7 +57151,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreateDeploymentBranchPolicy( input, - reposCreateDeploymentBranchPolicyResponder, + reposCreateDeploymentBranchPolicy.responder, ctx, ) .catch((err) => { @@ -65497,10 +57161,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateDeploymentBranchPolicyResponseValidator( - status, - body, - ) + ctx.body = reposCreateDeploymentBranchPolicy.validator(status, body) ctx.status = status return next() }, @@ -65531,7 +57192,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetDeploymentBranchPolicy( input, - reposGetDeploymentBranchPolicyResponder, + reposGetDeploymentBranchPolicy.responder, ctx, ) .catch((err) => { @@ -65541,7 +57202,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetDeploymentBranchPolicyResponseValidator(status, body) + ctx.body = reposGetDeploymentBranchPolicy.validator(status, body) ctx.status = status return next() }, @@ -65579,7 +57240,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposUpdateDeploymentBranchPolicy( input, - reposUpdateDeploymentBranchPolicyResponder, + reposUpdateDeploymentBranchPolicy.responder, ctx, ) .catch((err) => { @@ -65589,10 +57250,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateDeploymentBranchPolicyResponseValidator( - status, - body, - ) + ctx.body = reposUpdateDeploymentBranchPolicy.validator(status, body) ctx.status = status return next() }, @@ -65623,7 +57281,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDeleteDeploymentBranchPolicy( input, - reposDeleteDeploymentBranchPolicyResponder, + reposDeleteDeploymentBranchPolicy.responder, ctx, ) .catch((err) => { @@ -65633,10 +57291,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteDeploymentBranchPolicyResponseValidator( - status, - body, - ) + ctx.body = reposDeleteDeploymentBranchPolicy.validator(status, body) ctx.status = status return next() }, @@ -65666,7 +57321,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetAllDeploymentProtectionRules( input, - reposGetAllDeploymentProtectionRulesResponder, + reposGetAllDeploymentProtectionRules.responder, ctx, ) .catch((err) => { @@ -65676,10 +57331,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetAllDeploymentProtectionRulesResponseValidator( - status, - body, - ) + ctx.body = reposGetAllDeploymentProtectionRules.validator(status, body) ctx.status = status return next() }, @@ -65717,7 +57369,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreateDeploymentProtectionRule( input, - reposCreateDeploymentProtectionRuleResponder, + reposCreateDeploymentProtectionRule.responder, ctx, ) .catch((err) => { @@ -65727,10 +57379,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateDeploymentProtectionRuleResponseValidator( - status, - body, - ) + ctx.body = reposCreateDeploymentProtectionRule.validator(status, body) ctx.status = status return next() }, @@ -65769,7 +57418,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListCustomDeploymentRuleIntegrations( input, - reposListCustomDeploymentRuleIntegrationsResponder, + reposListCustomDeploymentRuleIntegrations.responder, ctx, ) .catch((err) => { @@ -65779,7 +57428,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListCustomDeploymentRuleIntegrationsResponseValidator( + ctx.body = reposListCustomDeploymentRuleIntegrations.validator( status, body, ) @@ -65813,7 +57462,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetCustomDeploymentProtectionRule( input, - reposGetCustomDeploymentProtectionRuleResponder, + reposGetCustomDeploymentProtectionRule.responder, ctx, ) .catch((err) => { @@ -65823,10 +57472,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCustomDeploymentProtectionRuleResponseValidator( - status, - body, - ) + ctx.body = reposGetCustomDeploymentProtectionRule.validator(status, body) ctx.status = status return next() }, @@ -65857,7 +57503,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDisableDeploymentProtectionRule( input, - reposDisableDeploymentProtectionRuleResponder, + reposDisableDeploymentProtectionRule.responder, ctx, ) .catch((err) => { @@ -65867,10 +57513,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDisableDeploymentProtectionRuleResponseValidator( - status, - body, - ) + ctx.body = reposDisableDeploymentProtectionRule.validator(status, body) ctx.status = status return next() }, @@ -65909,7 +57552,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListEnvironmentSecrets( input, - actionsListEnvironmentSecretsResponder, + actionsListEnvironmentSecrets.responder, ctx, ) .catch((err) => { @@ -65919,7 +57562,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListEnvironmentSecretsResponseValidator(status, body) + ctx.body = actionsListEnvironmentSecrets.validator(status, body) ctx.status = status return next() }, @@ -65949,7 +57592,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetEnvironmentPublicKey( input, - actionsGetEnvironmentPublicKeyResponder, + actionsGetEnvironmentPublicKey.responder, ctx, ) .catch((err) => { @@ -65959,7 +57602,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetEnvironmentPublicKeyResponseValidator(status, body) + ctx.body = actionsGetEnvironmentPublicKey.validator(status, body) ctx.status = status return next() }, @@ -65990,7 +57633,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetEnvironmentSecret( input, - actionsGetEnvironmentSecretResponder, + actionsGetEnvironmentSecret.responder, ctx, ) .catch((err) => { @@ -66000,7 +57643,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetEnvironmentSecretResponseValidator(status, body) + ctx.body = actionsGetEnvironmentSecret.validator(status, body) ctx.status = status return next() }, @@ -66046,7 +57689,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateOrUpdateEnvironmentSecret( input, - actionsCreateOrUpdateEnvironmentSecretResponder, + actionsCreateOrUpdateEnvironmentSecret.responder, ctx, ) .catch((err) => { @@ -66056,10 +57699,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateOrUpdateEnvironmentSecretResponseValidator( - status, - body, - ) + ctx.body = actionsCreateOrUpdateEnvironmentSecret.validator(status, body) ctx.status = status return next() }, @@ -66090,7 +57730,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteEnvironmentSecret( input, - actionsDeleteEnvironmentSecretResponder, + actionsDeleteEnvironmentSecret.responder, ctx, ) .catch((err) => { @@ -66100,7 +57740,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteEnvironmentSecretResponseValidator(status, body) + ctx.body = actionsDeleteEnvironmentSecret.validator(status, body) ctx.status = status return next() }, @@ -66139,7 +57779,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsListEnvironmentVariables( input, - actionsListEnvironmentVariablesResponder, + actionsListEnvironmentVariables.responder, ctx, ) .catch((err) => { @@ -66149,7 +57789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsListEnvironmentVariablesResponseValidator(status, body) + ctx.body = actionsListEnvironmentVariables.validator(status, body) ctx.status = status return next() }, @@ -66188,7 +57828,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsCreateEnvironmentVariable( input, - actionsCreateEnvironmentVariableResponder, + actionsCreateEnvironmentVariable.responder, ctx, ) .catch((err) => { @@ -66198,7 +57838,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsCreateEnvironmentVariableResponseValidator(status, body) + ctx.body = actionsCreateEnvironmentVariable.validator(status, body) ctx.status = status return next() }, @@ -66229,7 +57869,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsGetEnvironmentVariable( input, - actionsGetEnvironmentVariableResponder, + actionsGetEnvironmentVariable.responder, ctx, ) .catch((err) => { @@ -66239,7 +57879,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsGetEnvironmentVariableResponseValidator(status, body) + ctx.body = actionsGetEnvironmentVariable.validator(status, body) ctx.status = status return next() }, @@ -66279,7 +57919,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsUpdateEnvironmentVariable( input, - actionsUpdateEnvironmentVariableResponder, + actionsUpdateEnvironmentVariable.responder, ctx, ) .catch((err) => { @@ -66289,7 +57929,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsUpdateEnvironmentVariableResponseValidator(status, body) + ctx.body = actionsUpdateEnvironmentVariable.validator(status, body) ctx.status = status return next() }, @@ -66320,7 +57960,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .actionsDeleteEnvironmentVariable( input, - actionsDeleteEnvironmentVariableResponder, + actionsDeleteEnvironmentVariable.responder, ctx, ) .catch((err) => { @@ -66330,7 +57970,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = actionsDeleteEnvironmentVariableResponseValidator(status, body) + ctx.body = actionsDeleteEnvironmentVariable.validator(status, body) ctx.status = status return next() }, @@ -66366,7 +58006,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .activityListRepoEvents(input, activityListRepoEventsResponder, ctx) + .activityListRepoEvents(input, activityListRepoEvents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66374,7 +58014,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListRepoEventsResponseValidator(status, body) + ctx.body = activityListRepoEvents.validator(status, body) ctx.status = status return next() }, @@ -66414,7 +58054,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListForks(input, reposListForksResponder, ctx) + .reposListForks(input, reposListForks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66422,7 +58062,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListForksResponseValidator(status, body) + ctx.body = reposListForks.validator(status, body) ctx.status = status return next() }, @@ -66462,7 +58102,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateFork(input, reposCreateForkResponder, ctx) + .reposCreateFork(input, reposCreateFork.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66470,7 +58110,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateForkResponseValidator(status, body) + ctx.body = reposCreateFork.validator(status, body) ctx.status = status return next() }, @@ -66506,7 +58146,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitCreateBlob(input, gitCreateBlobResponder, ctx) + .gitCreateBlob(input, gitCreateBlob.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66514,7 +58154,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitCreateBlobResponseValidator(status, body) + ctx.body = gitCreateBlob.validator(status, body) ctx.status = status return next() }, @@ -66542,7 +58182,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitGetBlob(input, gitGetBlobResponder, ctx) + .gitGetBlob(input, gitGetBlob.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66550,7 +58190,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitGetBlobResponseValidator(status, body) + ctx.body = gitGetBlob.validator(status, body) ctx.status = status return next() }, @@ -66602,7 +58242,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitCreateCommit(input, gitCreateCommitResponder, ctx) + .gitCreateCommit(input, gitCreateCommit.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66610,7 +58250,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitCreateCommitResponseValidator(status, body) + ctx.body = gitCreateCommit.validator(status, body) ctx.status = status return next() }, @@ -66638,7 +58278,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitGetCommit(input, gitGetCommitResponder, ctx) + .gitGetCommit(input, gitGetCommit.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66646,7 +58286,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitGetCommitResponseValidator(status, body) + ctx.body = gitGetCommit.validator(status, body) ctx.status = status return next() }, @@ -66674,7 +58314,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitListMatchingRefs(input, gitListMatchingRefsResponder, ctx) + .gitListMatchingRefs(input, gitListMatchingRefs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66682,7 +58322,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitListMatchingRefsResponseValidator(status, body) + ctx.body = gitListMatchingRefs.validator(status, body) ctx.status = status return next() }, @@ -66710,7 +58350,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitGetRef(input, gitGetRefResponder, ctx) + .gitGetRef(input, gitGetRef.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66718,7 +58358,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitGetRefResponseValidator(status, body) + ctx.body = gitGetRef.validator(status, body) ctx.status = status return next() }, @@ -66751,7 +58391,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitCreateRef(input, gitCreateRefResponder, ctx) + .gitCreateRef(input, gitCreateRef.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66759,7 +58399,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitCreateRefResponseValidator(status, body) + ctx.body = gitCreateRef.validator(status, body) ctx.status = status return next() }, @@ -66796,7 +58436,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitUpdateRef(input, gitUpdateRefResponder, ctx) + .gitUpdateRef(input, gitUpdateRef.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66804,7 +58444,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitUpdateRefResponseValidator(status, body) + ctx.body = gitUpdateRef.validator(status, body) ctx.status = status return next() }, @@ -66832,7 +58472,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitDeleteRef(input, gitDeleteRefResponder, ctx) + .gitDeleteRef(input, gitDeleteRef.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66840,7 +58480,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitDeleteRefResponseValidator(status, body) + ctx.body = gitDeleteRef.validator(status, body) ctx.status = status return next() }, @@ -66885,7 +58525,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitCreateTag(input, gitCreateTagResponder, ctx) + .gitCreateTag(input, gitCreateTag.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66893,7 +58533,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitCreateTagResponseValidator(status, body) + ctx.body = gitCreateTag.validator(status, body) ctx.status = status return next() }, @@ -66921,7 +58561,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitGetTag(input, gitGetTagResponder, ctx) + .gitGetTag(input, gitGetTag.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66929,7 +58569,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitGetTagResponseValidator(status, body) + ctx.body = gitGetTag.validator(status, body) ctx.status = status return next() }, @@ -66975,7 +58615,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitCreateTree(input, gitCreateTreeResponder, ctx) + .gitCreateTree(input, gitCreateTree.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66983,7 +58623,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitCreateTreeResponseValidator(status, body) + ctx.body = gitCreateTree.validator(status, body) ctx.status = status return next() }, @@ -67017,7 +58657,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gitGetTree(input, gitGetTreeResponder, ctx) + .gitGetTree(input, gitGetTree.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67025,7 +58665,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gitGetTreeResponseValidator(status, body) + ctx.body = gitGetTree.validator(status, body) ctx.status = status return next() }, @@ -67061,7 +58701,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListWebhooks(input, reposListWebhooksResponder, ctx) + .reposListWebhooks(input, reposListWebhooks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67069,7 +58709,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListWebhooksResponseValidator(status, body) + ctx.body = reposListWebhooks.validator(status, body) ctx.status = status return next() }, @@ -67117,7 +58757,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateWebhook(input, reposCreateWebhookResponder, ctx) + .reposCreateWebhook(input, reposCreateWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67125,7 +58765,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateWebhookResponseValidator(status, body) + ctx.body = reposCreateWebhook.validator(status, body) ctx.status = status return next() }, @@ -67153,7 +58793,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetWebhook(input, reposGetWebhookResponder, ctx) + .reposGetWebhook(input, reposGetWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67161,7 +58801,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetWebhookResponseValidator(status, body) + ctx.body = reposGetWebhook.validator(status, body) ctx.status = status return next() }, @@ -67201,7 +58841,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUpdateWebhook(input, reposUpdateWebhookResponder, ctx) + .reposUpdateWebhook(input, reposUpdateWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67209,7 +58849,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateWebhookResponseValidator(status, body) + ctx.body = reposUpdateWebhook.validator(status, body) ctx.status = status return next() }, @@ -67237,7 +58877,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteWebhook(input, reposDeleteWebhookResponder, ctx) + .reposDeleteWebhook(input, reposDeleteWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67245,7 +58885,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteWebhookResponseValidator(status, body) + ctx.body = reposDeleteWebhook.validator(status, body) ctx.status = status return next() }, @@ -67275,7 +58915,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetWebhookConfigForRepo( input, - reposGetWebhookConfigForRepoResponder, + reposGetWebhookConfigForRepo.responder, ctx, ) .catch((err) => { @@ -67285,7 +58925,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetWebhookConfigForRepoResponseValidator(status, body) + ctx.body = reposGetWebhookConfigForRepo.validator(status, body) ctx.status = status return next() }, @@ -67328,7 +58968,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposUpdateWebhookConfigForRepo( input, - reposUpdateWebhookConfigForRepoResponder, + reposUpdateWebhookConfigForRepo.responder, ctx, ) .catch((err) => { @@ -67338,7 +58978,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateWebhookConfigForRepoResponseValidator(status, body) + ctx.body = reposUpdateWebhookConfigForRepo.validator(status, body) ctx.status = status return next() }, @@ -67377,7 +59017,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListWebhookDeliveries( input, - reposListWebhookDeliveriesResponder, + reposListWebhookDeliveries.responder, ctx, ) .catch((err) => { @@ -67387,7 +59027,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListWebhookDeliveriesResponseValidator(status, body) + ctx.body = reposListWebhookDeliveries.validator(status, body) ctx.status = status return next() }, @@ -67416,7 +59056,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetWebhookDelivery(input, reposGetWebhookDeliveryResponder, ctx) + .reposGetWebhookDelivery(input, reposGetWebhookDelivery.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67424,7 +59064,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetWebhookDeliveryResponseValidator(status, body) + ctx.body = reposGetWebhookDelivery.validator(status, body) ctx.status = status return next() }, @@ -67455,7 +59095,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposRedeliverWebhookDelivery( input, - reposRedeliverWebhookDeliveryResponder, + reposRedeliverWebhookDelivery.responder, ctx, ) .catch((err) => { @@ -67465,7 +59105,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRedeliverWebhookDeliveryResponseValidator(status, body) + ctx.body = reposRedeliverWebhookDelivery.validator(status, body) ctx.status = status return next() }, @@ -67493,7 +59133,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposPingWebhook(input, reposPingWebhookResponder, ctx) + .reposPingWebhook(input, reposPingWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67501,7 +59141,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposPingWebhookResponseValidator(status, body) + ctx.body = reposPingWebhook.validator(status, body) ctx.status = status return next() }, @@ -67529,7 +59169,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposTestPushWebhook(input, reposTestPushWebhookResponder, ctx) + .reposTestPushWebhook(input, reposTestPushWebhook.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67537,7 +59177,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposTestPushWebhookResponseValidator(status, body) + ctx.body = reposTestPushWebhook.validator(status, body) ctx.status = status return next() }, @@ -67566,7 +59206,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsGetImportStatus( input, - migrationsGetImportStatusResponder, + migrationsGetImportStatus.responder, ctx, ) .catch((err) => { @@ -67576,7 +59216,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsGetImportStatusResponseValidator(status, body) + ctx.body = migrationsGetImportStatus.validator(status, body) ctx.status = status return next() }, @@ -67615,7 +59255,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .migrationsStartImport(input, migrationsStartImportResponder, ctx) + .migrationsStartImport(input, migrationsStartImport.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67623,7 +59263,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsStartImportResponseValidator(status, body) + ctx.body = migrationsStartImport.validator(status, body) ctx.status = status return next() }, @@ -67664,7 +59304,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .migrationsUpdateImport(input, migrationsUpdateImportResponder, ctx) + .migrationsUpdateImport(input, migrationsUpdateImport.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67672,7 +59312,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsUpdateImportResponseValidator(status, body) + ctx.body = migrationsUpdateImport.validator(status, body) ctx.status = status return next() }, @@ -67699,7 +59339,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .migrationsCancelImport(input, migrationsCancelImportResponder, ctx) + .migrationsCancelImport(input, migrationsCancelImport.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67707,7 +59347,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsCancelImportResponseValidator(status, body) + ctx.body = migrationsCancelImport.validator(status, body) ctx.status = status return next() }, @@ -67744,7 +59384,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsGetCommitAuthors( input, - migrationsGetCommitAuthorsResponder, + migrationsGetCommitAuthors.responder, ctx, ) .catch((err) => { @@ -67754,7 +59394,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsGetCommitAuthorsResponseValidator(status, body) + ctx.body = migrationsGetCommitAuthors.validator(status, body) ctx.status = status return next() }, @@ -67792,7 +59432,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsMapCommitAuthor( input, - migrationsMapCommitAuthorResponder, + migrationsMapCommitAuthor.responder, ctx, ) .catch((err) => { @@ -67802,7 +59442,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsMapCommitAuthorResponseValidator(status, body) + ctx.body = migrationsMapCommitAuthor.validator(status, body) ctx.status = status return next() }, @@ -67829,7 +59469,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .migrationsGetLargeFiles(input, migrationsGetLargeFilesResponder, ctx) + .migrationsGetLargeFiles(input, migrationsGetLargeFiles.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67837,7 +59477,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsGetLargeFilesResponseValidator(status, body) + ctx.body = migrationsGetLargeFiles.validator(status, body) ctx.status = status return next() }, @@ -67874,7 +59514,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsSetLfsPreference( input, - migrationsSetLfsPreferenceResponder, + migrationsSetLfsPreference.responder, ctx, ) .catch((err) => { @@ -67884,7 +59524,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsSetLfsPreferenceResponseValidator(status, body) + ctx.body = migrationsSetLfsPreference.validator(status, body) ctx.status = status return next() }, @@ -67911,7 +59551,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsGetRepoInstallation(input, appsGetRepoInstallationResponder, ctx) + .appsGetRepoInstallation(input, appsGetRepoInstallation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -67919,7 +59559,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetRepoInstallationResponseValidator(status, body) + ctx.body = appsGetRepoInstallation.validator(status, body) ctx.status = status return next() }, @@ -67948,7 +59588,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsGetRestrictionsForRepo( input, - interactionsGetRestrictionsForRepoResponder, + interactionsGetRestrictionsForRepo.responder, ctx, ) .catch((err) => { @@ -67958,10 +59598,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = interactionsGetRestrictionsForRepoResponseValidator( - status, - body, - ) + ctx.body = interactionsGetRestrictionsForRepo.validator(status, body) ctx.status = status return next() }, @@ -67996,7 +59633,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsSetRestrictionsForRepo( input, - interactionsSetRestrictionsForRepoResponder, + interactionsSetRestrictionsForRepo.responder, ctx, ) .catch((err) => { @@ -68006,10 +59643,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = interactionsSetRestrictionsForRepoResponseValidator( - status, - body, - ) + ctx.body = interactionsSetRestrictionsForRepo.validator(status, body) ctx.status = status return next() }, @@ -68038,7 +59672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsRemoveRestrictionsForRepo( input, - interactionsRemoveRestrictionsForRepoResponder, + interactionsRemoveRestrictionsForRepo.responder, ctx, ) .catch((err) => { @@ -68048,10 +59682,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = interactionsRemoveRestrictionsForRepoResponseValidator( - status, - body, - ) + ctx.body = interactionsRemoveRestrictionsForRepo.validator(status, body) ctx.status = status return next() }, @@ -68087,7 +59718,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListInvitations(input, reposListInvitationsResponder, ctx) + .reposListInvitations(input, reposListInvitations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68095,7 +59726,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListInvitationsResponseValidator(status, body) + ctx.body = reposListInvitations.validator(status, body) ctx.status = status return next() }, @@ -68135,7 +59766,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUpdateInvitation(input, reposUpdateInvitationResponder, ctx) + .reposUpdateInvitation(input, reposUpdateInvitation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68143,7 +59774,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateInvitationResponseValidator(status, body) + ctx.body = reposUpdateInvitation.validator(status, body) ctx.status = status return next() }, @@ -68171,7 +59802,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteInvitation(input, reposDeleteInvitationResponder, ctx) + .reposDeleteInvitation(input, reposDeleteInvitation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68179,7 +59810,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteInvitationResponseValidator(status, body) + ctx.body = reposDeleteInvitation.validator(status, body) ctx.status = status return next() }, @@ -68228,7 +59859,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListForRepo(input, issuesListForRepoResponder, ctx) + .issuesListForRepo(input, issuesListForRepo.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68236,7 +59867,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListForRepoResponseValidator(status, body) + ctx.body = issuesListForRepo.validator(status, body) ctx.status = status return next() }, @@ -68289,7 +59920,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesCreate(input, issuesCreateResponder, ctx) + .issuesCreate(input, issuesCreate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68297,7 +59928,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesCreateResponseValidator(status, body) + ctx.body = issuesCreate.validator(status, body) ctx.status = status return next() }, @@ -68338,7 +59969,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .issuesListCommentsForRepo( input, - issuesListCommentsForRepoResponder, + issuesListCommentsForRepo.responder, ctx, ) .catch((err) => { @@ -68348,7 +59979,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListCommentsForRepoResponseValidator(status, body) + ctx.body = issuesListCommentsForRepo.validator(status, body) ctx.status = status return next() }, @@ -68376,7 +60007,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesGetComment(input, issuesGetCommentResponder, ctx) + .issuesGetComment(input, issuesGetComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68384,7 +60015,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesGetCommentResponseValidator(status, body) + ctx.body = issuesGetComment.validator(status, body) ctx.status = status return next() }, @@ -68418,7 +60049,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesUpdateComment(input, issuesUpdateCommentResponder, ctx) + .issuesUpdateComment(input, issuesUpdateComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68426,7 +60057,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesUpdateCommentResponseValidator(status, body) + ctx.body = issuesUpdateComment.validator(status, body) ctx.status = status return next() }, @@ -68454,7 +60085,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesDeleteComment(input, issuesDeleteCommentResponder, ctx) + .issuesDeleteComment(input, issuesDeleteComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68462,7 +60093,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesDeleteCommentResponseValidator(status, body) + ctx.body = issuesDeleteComment.validator(status, body) ctx.status = status return next() }, @@ -68513,7 +60144,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsListForIssueComment( input, - reactionsListForIssueCommentResponder, + reactionsListForIssueComment.responder, ctx, ) .catch((err) => { @@ -68523,7 +60154,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForIssueCommentResponseValidator(status, body) + ctx.body = reactionsListForIssueComment.validator(status, body) ctx.status = status return next() }, @@ -68570,7 +60201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsCreateForIssueComment( input, - reactionsCreateForIssueCommentResponder, + reactionsCreateForIssueComment.responder, ctx, ) .catch((err) => { @@ -68580,7 +60211,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForIssueCommentResponseValidator(status, body) + ctx.body = reactionsCreateForIssueComment.validator(status, body) ctx.status = status return next() }, @@ -68611,7 +60242,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsDeleteForIssueComment( input, - reactionsDeleteForIssueCommentResponder, + reactionsDeleteForIssueComment.responder, ctx, ) .catch((err) => { @@ -68621,7 +60252,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsDeleteForIssueCommentResponseValidator(status, body) + ctx.body = reactionsDeleteForIssueComment.validator(status, body) ctx.status = status return next() }, @@ -68657,7 +60288,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListEventsForRepo(input, issuesListEventsForRepoResponder, ctx) + .issuesListEventsForRepo(input, issuesListEventsForRepo.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68665,7 +60296,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListEventsForRepoResponseValidator(status, body) + ctx.body = issuesListEventsForRepo.validator(status, body) ctx.status = status return next() }, @@ -68693,7 +60324,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesGetEvent(input, issuesGetEventResponder, ctx) + .issuesGetEvent(input, issuesGetEvent.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68701,7 +60332,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesGetEventResponseValidator(status, body) + ctx.body = issuesGetEvent.validator(status, body) ctx.status = status return next() }, @@ -68729,7 +60360,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesGet(input, issuesGetResponder, ctx) + .issuesGet(input, issuesGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68737,7 +60368,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesGetResponseValidator(status, body) + ctx.body = issuesGet.validator(status, body) ctx.status = status return next() }, @@ -68798,7 +60429,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesUpdate(input, issuesUpdateResponder, ctx) + .issuesUpdate(input, issuesUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68806,7 +60437,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesUpdateResponseValidator(status, body) + ctx.body = issuesUpdate.validator(status, body) ctx.status = status return next() }, @@ -68842,7 +60473,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesAddAssignees(input, issuesAddAssigneesResponder, ctx) + .issuesAddAssignees(input, issuesAddAssignees.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68850,7 +60481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesAddAssigneesResponseValidator(status, body) + ctx.body = issuesAddAssignees.validator(status, body) ctx.status = status return next() }, @@ -68886,7 +60517,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesRemoveAssignees(input, issuesRemoveAssigneesResponder, ctx) + .issuesRemoveAssignees(input, issuesRemoveAssignees.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68894,7 +60525,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesRemoveAssigneesResponseValidator(status, body) + ctx.body = issuesRemoveAssignees.validator(status, body) ctx.status = status return next() }, @@ -68925,7 +60556,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .issuesCheckUserCanBeAssignedToIssue( input, - issuesCheckUserCanBeAssignedToIssueResponder, + issuesCheckUserCanBeAssignedToIssue.responder, ctx, ) .catch((err) => { @@ -68935,10 +60566,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesCheckUserCanBeAssignedToIssueResponseValidator( - status, - body, - ) + ctx.body = issuesCheckUserCanBeAssignedToIssue.validator(status, body) ctx.status = status return next() }, @@ -68976,7 +60604,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListComments(input, issuesListCommentsResponder, ctx) + .issuesListComments(input, issuesListComments.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -68984,7 +60612,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListCommentsResponseValidator(status, body) + ctx.body = issuesListComments.validator(status, body) ctx.status = status return next() }, @@ -69018,7 +60646,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesCreateComment(input, issuesCreateCommentResponder, ctx) + .issuesCreateComment(input, issuesCreateComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69026,7 +60654,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesCreateCommentResponseValidator(status, body) + ctx.body = issuesCreateComment.validator(status, body) ctx.status = status return next() }, @@ -69063,7 +60691,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListEvents(input, issuesListEventsResponder, ctx) + .issuesListEvents(input, issuesListEvents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69071,7 +60699,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListEventsResponseValidator(status, body) + ctx.body = issuesListEvents.validator(status, body) ctx.status = status return next() }, @@ -69108,7 +60736,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListLabelsOnIssue(input, issuesListLabelsOnIssueResponder, ctx) + .issuesListLabelsOnIssue(input, issuesListLabelsOnIssue.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69116,7 +60744,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListLabelsOnIssueResponseValidator(status, body) + ctx.body = issuesListLabelsOnIssue.validator(status, body) ctx.status = status return next() }, @@ -69163,7 +60791,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesAddLabels(input, issuesAddLabelsResponder, ctx) + .issuesAddLabels(input, issuesAddLabels.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69171,7 +60799,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesAddLabelsResponseValidator(status, body) + ctx.body = issuesAddLabels.validator(status, body) ctx.status = status return next() }, @@ -69218,7 +60846,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesSetLabels(input, issuesSetLabelsResponder, ctx) + .issuesSetLabels(input, issuesSetLabels.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69226,7 +60854,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesSetLabelsResponseValidator(status, body) + ctx.body = issuesSetLabels.validator(status, body) ctx.status = status return next() }, @@ -69254,7 +60882,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesRemoveAllLabels(input, issuesRemoveAllLabelsResponder, ctx) + .issuesRemoveAllLabels(input, issuesRemoveAllLabels.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69262,7 +60890,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesRemoveAllLabelsResponseValidator(status, body) + ctx.body = issuesRemoveAllLabels.validator(status, body) ctx.status = status return next() }, @@ -69291,7 +60919,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesRemoveLabel(input, issuesRemoveLabelResponder, ctx) + .issuesRemoveLabel(input, issuesRemoveLabel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69299,7 +60927,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesRemoveLabelResponseValidator(status, body) + ctx.body = issuesRemoveLabel.validator(status, body) ctx.status = status return next() }, @@ -69340,7 +60968,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesLock(input, issuesLockResponder, ctx) + .issuesLock(input, issuesLock.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69348,7 +60976,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesLockResponseValidator(status, body) + ctx.body = issuesLock.validator(status, body) ctx.status = status return next() }, @@ -69376,7 +61004,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesUnlock(input, issuesUnlockResponder, ctx) + .issuesUnlock(input, issuesUnlock.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69384,7 +61012,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesUnlockResponseValidator(status, body) + ctx.body = issuesUnlock.validator(status, body) ctx.status = status return next() }, @@ -69433,7 +61061,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reactionsListForIssue(input, reactionsListForIssueResponder, ctx) + .reactionsListForIssue(input, reactionsListForIssue.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69441,7 +61069,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForIssueResponseValidator(status, body) + ctx.body = reactionsListForIssue.validator(status, body) ctx.status = status return next() }, @@ -69486,7 +61114,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reactionsCreateForIssue(input, reactionsCreateForIssueResponder, ctx) + .reactionsCreateForIssue(input, reactionsCreateForIssue.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69494,7 +61122,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForIssueResponseValidator(status, body) + ctx.body = reactionsCreateForIssue.validator(status, body) ctx.status = status return next() }, @@ -69523,7 +61151,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reactionsDeleteForIssue(input, reactionsDeleteForIssueResponder, ctx) + .reactionsDeleteForIssue(input, reactionsDeleteForIssue.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69531,7 +61159,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsDeleteForIssueResponseValidator(status, body) + ctx.body = reactionsDeleteForIssue.validator(status, body) ctx.status = status return next() }, @@ -69567,7 +61195,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesRemoveSubIssue(input, issuesRemoveSubIssueResponder, ctx) + .issuesRemoveSubIssue(input, issuesRemoveSubIssue.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69575,7 +61203,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesRemoveSubIssueResponseValidator(status, body) + ctx.body = issuesRemoveSubIssue.validator(status, body) ctx.status = status return next() }, @@ -69612,7 +61240,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListSubIssues(input, issuesListSubIssuesResponder, ctx) + .issuesListSubIssues(input, issuesListSubIssues.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69620,7 +61248,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListSubIssuesResponseValidator(status, body) + ctx.body = issuesListSubIssues.validator(status, body) ctx.status = status return next() }, @@ -69657,7 +61285,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesAddSubIssue(input, issuesAddSubIssueResponder, ctx) + .issuesAddSubIssue(input, issuesAddSubIssue.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69665,7 +61293,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesAddSubIssueResponseValidator(status, body) + ctx.body = issuesAddSubIssue.validator(status, body) ctx.status = status return next() }, @@ -69705,7 +61333,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .issuesReprioritizeSubIssue( input, - issuesReprioritizeSubIssueResponder, + issuesReprioritizeSubIssue.responder, ctx, ) .catch((err) => { @@ -69715,7 +61343,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesReprioritizeSubIssueResponseValidator(status, body) + ctx.body = issuesReprioritizeSubIssue.validator(status, body) ctx.status = status return next() }, @@ -69754,7 +61382,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .issuesListEventsForTimeline( input, - issuesListEventsForTimelineResponder, + issuesListEventsForTimeline.responder, ctx, ) .catch((err) => { @@ -69764,7 +61392,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListEventsForTimelineResponseValidator(status, body) + ctx.body = issuesListEventsForTimeline.validator(status, body) ctx.status = status return next() }, @@ -69800,7 +61428,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListDeployKeys(input, reposListDeployKeysResponder, ctx) + .reposListDeployKeys(input, reposListDeployKeys.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69808,7 +61436,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListDeployKeysResponseValidator(status, body) + ctx.body = reposListDeployKeys.validator(status, body) ctx.status = status return next() }, @@ -69845,7 +61473,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateDeployKey(input, reposCreateDeployKeyResponder, ctx) + .reposCreateDeployKey(input, reposCreateDeployKey.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69853,7 +61481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateDeployKeyResponseValidator(status, body) + ctx.body = reposCreateDeployKey.validator(status, body) ctx.status = status return next() }, @@ -69881,7 +61509,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetDeployKey(input, reposGetDeployKeyResponder, ctx) + .reposGetDeployKey(input, reposGetDeployKey.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69889,7 +61517,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetDeployKeyResponseValidator(status, body) + ctx.body = reposGetDeployKey.validator(status, body) ctx.status = status return next() }, @@ -69917,7 +61545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteDeployKey(input, reposDeleteDeployKeyResponder, ctx) + .reposDeleteDeployKey(input, reposDeleteDeployKey.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69925,7 +61553,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteDeployKeyResponseValidator(status, body) + ctx.body = reposDeleteDeployKey.validator(status, body) ctx.status = status return next() }, @@ -69961,7 +61589,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListLabelsForRepo(input, issuesListLabelsForRepoResponder, ctx) + .issuesListLabelsForRepo(input, issuesListLabelsForRepo.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69969,7 +61597,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListLabelsForRepoResponseValidator(status, body) + ctx.body = issuesListLabelsForRepo.validator(status, body) ctx.status = status return next() }, @@ -70006,7 +61634,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesCreateLabel(input, issuesCreateLabelResponder, ctx) + .issuesCreateLabel(input, issuesCreateLabel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70014,7 +61642,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesCreateLabelResponseValidator(status, body) + ctx.body = issuesCreateLabel.validator(status, body) ctx.status = status return next() }, @@ -70042,7 +61670,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesGetLabel(input, issuesGetLabelResponder, ctx) + .issuesGetLabel(input, issuesGetLabel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70050,7 +61678,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesGetLabelResponseValidator(status, body) + ctx.body = issuesGetLabel.validator(status, body) ctx.status = status return next() }, @@ -70090,7 +61718,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesUpdateLabel(input, issuesUpdateLabelResponder, ctx) + .issuesUpdateLabel(input, issuesUpdateLabel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70098,7 +61726,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesUpdateLabelResponseValidator(status, body) + ctx.body = issuesUpdateLabel.validator(status, body) ctx.status = status return next() }, @@ -70126,7 +61754,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesDeleteLabel(input, issuesDeleteLabelResponder, ctx) + .issuesDeleteLabel(input, issuesDeleteLabel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70134,7 +61762,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesDeleteLabelResponseValidator(status, body) + ctx.body = issuesDeleteLabel.validator(status, body) ctx.status = status return next() }, @@ -70161,7 +61789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListLanguages(input, reposListLanguagesResponder, ctx) + .reposListLanguages(input, reposListLanguages.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70169,7 +61797,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListLanguagesResponseValidator(status, body) + ctx.body = reposListLanguages.validator(status, body) ctx.status = status return next() }, @@ -70204,7 +61832,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .licensesGetForRepo(input, licensesGetForRepoResponder, ctx) + .licensesGetForRepo(input, licensesGetForRepo.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70212,7 +61840,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = licensesGetForRepoResponseValidator(status, body) + ctx.body = licensesGetForRepo.validator(status, body) ctx.status = status return next() }, @@ -70245,7 +61873,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposMergeUpstream(input, reposMergeUpstreamResponder, ctx) + .reposMergeUpstream(input, reposMergeUpstream.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70253,7 +61881,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposMergeUpstreamResponseValidator(status, body) + ctx.body = reposMergeUpstream.validator(status, body) ctx.status = status return next() }, @@ -70287,7 +61915,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposMerge(input, reposMergeResponder, ctx) + .reposMerge(input, reposMerge.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70295,7 +61923,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposMergeResponseValidator(status, body) + ctx.body = reposMerge.validator(status, body) ctx.status = status return next() }) @@ -70333,7 +61961,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesListMilestones(input, issuesListMilestonesResponder, ctx) + .issuesListMilestones(input, issuesListMilestones.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70341,7 +61969,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListMilestonesResponseValidator(status, body) + ctx.body = issuesListMilestones.validator(status, body) ctx.status = status return next() }, @@ -70379,7 +62007,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesCreateMilestone(input, issuesCreateMilestoneResponder, ctx) + .issuesCreateMilestone(input, issuesCreateMilestone.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70387,7 +62015,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesCreateMilestoneResponseValidator(status, body) + ctx.body = issuesCreateMilestone.validator(status, body) ctx.status = status return next() }, @@ -70415,7 +62043,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesGetMilestone(input, issuesGetMilestoneResponder, ctx) + .issuesGetMilestone(input, issuesGetMilestone.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70423,7 +62051,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesGetMilestoneResponseValidator(status, body) + ctx.body = issuesGetMilestone.validator(status, body) ctx.status = status return next() }, @@ -70464,7 +62092,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesUpdateMilestone(input, issuesUpdateMilestoneResponder, ctx) + .issuesUpdateMilestone(input, issuesUpdateMilestone.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70472,7 +62100,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesUpdateMilestoneResponseValidator(status, body) + ctx.body = issuesUpdateMilestone.validator(status, body) ctx.status = status return next() }, @@ -70500,7 +62128,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .issuesDeleteMilestone(input, issuesDeleteMilestoneResponder, ctx) + .issuesDeleteMilestone(input, issuesDeleteMilestone.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70508,7 +62136,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesDeleteMilestoneResponseValidator(status, body) + ctx.body = issuesDeleteMilestone.validator(status, body) ctx.status = status return next() }, @@ -70547,7 +62175,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .issuesListLabelsForMilestone( input, - issuesListLabelsForMilestoneResponder, + issuesListLabelsForMilestone.responder, ctx, ) .catch((err) => { @@ -70557,7 +62185,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListLabelsForMilestoneResponseValidator(status, body) + ctx.body = issuesListLabelsForMilestone.validator(status, body) ctx.status = status return next() }, @@ -70600,7 +62228,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListRepoNotificationsForAuthenticatedUser( input, - activityListRepoNotificationsForAuthenticatedUserResponder, + activityListRepoNotificationsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -70610,11 +62238,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - activityListRepoNotificationsForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = activityListRepoNotificationsForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -70651,7 +62278,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityMarkRepoNotificationsAsRead( input, - activityMarkRepoNotificationsAsReadResponder, + activityMarkRepoNotificationsAsRead.responder, ctx, ) .catch((err) => { @@ -70661,10 +62288,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityMarkRepoNotificationsAsReadResponseValidator( - status, - body, - ) + ctx.body = activityMarkRepoNotificationsAsRead.validator(status, body) ctx.status = status return next() }, @@ -70691,7 +62315,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetPages(input, reposGetPagesResponder, ctx) + .reposGetPages(input, reposGetPages.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70699,7 +62323,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetPagesResponseValidator(status, body) + ctx.body = reposGetPages.validator(status, body) ctx.status = status return next() }, @@ -70742,7 +62366,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreatePagesSite(input, reposCreatePagesSiteResponder, ctx) + .reposCreatePagesSite(input, reposCreatePagesSite.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70750,7 +62374,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreatePagesSiteResponseValidator(status, body) + ctx.body = reposCreatePagesSite.validator(status, body) ctx.status = status return next() }, @@ -70795,7 +62419,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposUpdateInformationAboutPagesSite( input, - reposUpdateInformationAboutPagesSiteResponder, + reposUpdateInformationAboutPagesSite.responder, ctx, ) .catch((err) => { @@ -70805,10 +62429,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateInformationAboutPagesSiteResponseValidator( - status, - body, - ) + ctx.body = reposUpdateInformationAboutPagesSite.validator(status, body) ctx.status = status return next() }, @@ -70835,7 +62456,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeletePagesSite(input, reposDeletePagesSiteResponder, ctx) + .reposDeletePagesSite(input, reposDeletePagesSite.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70843,7 +62464,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeletePagesSiteResponseValidator(status, body) + ctx.body = reposDeletePagesSite.validator(status, body) ctx.status = status return next() }, @@ -70879,7 +62500,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListPagesBuilds(input, reposListPagesBuildsResponder, ctx) + .reposListPagesBuilds(input, reposListPagesBuilds.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70887,7 +62508,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListPagesBuildsResponseValidator(status, body) + ctx.body = reposListPagesBuilds.validator(status, body) ctx.status = status return next() }, @@ -70914,7 +62535,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposRequestPagesBuild(input, reposRequestPagesBuildResponder, ctx) + .reposRequestPagesBuild(input, reposRequestPagesBuild.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70922,7 +62543,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposRequestPagesBuildResponseValidator(status, body) + ctx.body = reposRequestPagesBuild.validator(status, body) ctx.status = status return next() }, @@ -70949,7 +62570,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetLatestPagesBuild(input, reposGetLatestPagesBuildResponder, ctx) + .reposGetLatestPagesBuild( + input, + reposGetLatestPagesBuild.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70957,7 +62582,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetLatestPagesBuildResponseValidator(status, body) + ctx.body = reposGetLatestPagesBuild.validator(status, body) ctx.status = status return next() }, @@ -70985,7 +62610,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetPagesBuild(input, reposGetPagesBuildResponder, ctx) + .reposGetPagesBuild(input, reposGetPagesBuild.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70993,7 +62618,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetPagesBuildResponseValidator(status, body) + ctx.body = reposGetPagesBuild.validator(status, body) ctx.status = status return next() }, @@ -71034,7 +62659,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreatePagesDeployment( input, - reposCreatePagesDeploymentResponder, + reposCreatePagesDeployment.responder, ctx, ) .catch((err) => { @@ -71044,7 +62669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreatePagesDeploymentResponseValidator(status, body) + ctx.body = reposCreatePagesDeployment.validator(status, body) ctx.status = status return next() }, @@ -71072,7 +62697,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetPagesDeployment(input, reposGetPagesDeploymentResponder, ctx) + .reposGetPagesDeployment(input, reposGetPagesDeployment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71080,7 +62705,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetPagesDeploymentResponseValidator(status, body) + ctx.body = reposGetPagesDeployment.validator(status, body) ctx.status = status return next() }, @@ -71110,7 +62735,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCancelPagesDeployment( input, - reposCancelPagesDeploymentResponder, + reposCancelPagesDeployment.responder, ctx, ) .catch((err) => { @@ -71120,7 +62745,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCancelPagesDeploymentResponseValidator(status, body) + ctx.body = reposCancelPagesDeployment.validator(status, body) ctx.status = status return next() }, @@ -71147,7 +62772,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetPagesHealthCheck(input, reposGetPagesHealthCheckResponder, ctx) + .reposGetPagesHealthCheck( + input, + reposGetPagesHealthCheck.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71155,7 +62784,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetPagesHealthCheckResponseValidator(status, body) + ctx.body = reposGetPagesHealthCheck.validator(status, body) ctx.status = status return next() }, @@ -71184,7 +62813,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCheckPrivateVulnerabilityReporting( input, - reposCheckPrivateVulnerabilityReportingResponder, + reposCheckPrivateVulnerabilityReporting.responder, ctx, ) .catch((err) => { @@ -71194,10 +62823,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCheckPrivateVulnerabilityReportingResponseValidator( - status, - body, - ) + ctx.body = reposCheckPrivateVulnerabilityReporting.validator(status, body) ctx.status = status return next() }, @@ -71226,7 +62852,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposEnablePrivateVulnerabilityReporting( input, - reposEnablePrivateVulnerabilityReportingResponder, + reposEnablePrivateVulnerabilityReporting.responder, ctx, ) .catch((err) => { @@ -71236,7 +62862,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposEnablePrivateVulnerabilityReportingResponseValidator( + ctx.body = reposEnablePrivateVulnerabilityReporting.validator( status, body, ) @@ -71268,7 +62894,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDisablePrivateVulnerabilityReporting( input, - reposDisablePrivateVulnerabilityReportingResponder, + reposDisablePrivateVulnerabilityReporting.responder, ctx, ) .catch((err) => { @@ -71278,7 +62904,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDisablePrivateVulnerabilityReportingResponseValidator( + ctx.body = reposDisablePrivateVulnerabilityReporting.validator( status, body, ) @@ -71318,7 +62944,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsListForRepo(input, projectsListForRepoResponder, ctx) + .projectsListForRepo(input, projectsListForRepo.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71326,7 +62952,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsListForRepoResponseValidator(status, body) + ctx.body = projectsListForRepo.validator(status, body) ctx.status = status return next() }, @@ -71362,7 +62988,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsCreateForRepo(input, projectsCreateForRepoResponder, ctx) + .projectsCreateForRepo(input, projectsCreateForRepo.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71370,7 +62996,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsCreateForRepoResponseValidator(status, body) + ctx.body = projectsCreateForRepo.validator(status, body) ctx.status = status return next() }, @@ -71399,7 +63025,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetCustomPropertiesValues( input, - reposGetCustomPropertiesValuesResponder, + reposGetCustomPropertiesValues.responder, ctx, ) .catch((err) => { @@ -71409,7 +63035,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCustomPropertiesValuesResponseValidator(status, body) + ctx.body = reposGetCustomPropertiesValues.validator(status, body) ctx.status = status return next() }, @@ -71446,7 +63072,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreateOrUpdateCustomPropertiesValues( input, - reposCreateOrUpdateCustomPropertiesValuesResponder, + reposCreateOrUpdateCustomPropertiesValues.responder, ctx, ) .catch((err) => { @@ -71456,7 +63082,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateOrUpdateCustomPropertiesValuesResponseValidator( + ctx.body = reposCreateOrUpdateCustomPropertiesValues.validator( status, body, ) @@ -71497,7 +63123,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsList(input, pullsListResponder, ctx) + .pullsList(input, pullsList.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71505,7 +63131,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsListResponseValidator(status, body) + ctx.body = pullsList.validator(status, body) ctx.status = status return next() }) @@ -71543,7 +63169,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsCreate(input, pullsCreateResponder, ctx) + .pullsCreate(input, pullsCreate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71551,7 +63177,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsCreateResponseValidator(status, body) + ctx.body = pullsCreate.validator(status, body) ctx.status = status return next() }) @@ -71591,7 +63217,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .pullsListReviewCommentsForRepo( input, - pullsListReviewCommentsForRepoResponder, + pullsListReviewCommentsForRepo.responder, ctx, ) .catch((err) => { @@ -71601,7 +63227,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsListReviewCommentsForRepoResponseValidator(status, body) + ctx.body = pullsListReviewCommentsForRepo.validator(status, body) ctx.status = status return next() }, @@ -71629,7 +63255,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsGetReviewComment(input, pullsGetReviewCommentResponder, ctx) + .pullsGetReviewComment(input, pullsGetReviewComment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71637,7 +63263,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsGetReviewCommentResponseValidator(status, body) + ctx.body = pullsGetReviewComment.validator(status, body) ctx.status = status return next() }, @@ -71671,7 +63297,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsUpdateReviewComment(input, pullsUpdateReviewCommentResponder, ctx) + .pullsUpdateReviewComment( + input, + pullsUpdateReviewComment.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71679,7 +63309,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsUpdateReviewCommentResponseValidator(status, body) + ctx.body = pullsUpdateReviewComment.validator(status, body) ctx.status = status return next() }, @@ -71707,7 +63337,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsDeleteReviewComment(input, pullsDeleteReviewCommentResponder, ctx) + .pullsDeleteReviewComment( + input, + pullsDeleteReviewComment.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71715,7 +63349,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsDeleteReviewCommentResponseValidator(status, body) + ctx.body = pullsDeleteReviewComment.validator(status, body) ctx.status = status return next() }, @@ -71766,7 +63400,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsListForPullRequestReviewComment( input, - reactionsListForPullRequestReviewCommentResponder, + reactionsListForPullRequestReviewComment.responder, ctx, ) .catch((err) => { @@ -71776,7 +63410,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForPullRequestReviewCommentResponseValidator( + ctx.body = reactionsListForPullRequestReviewComment.validator( status, body, ) @@ -71826,7 +63460,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsCreateForPullRequestReviewComment( input, - reactionsCreateForPullRequestReviewCommentResponder, + reactionsCreateForPullRequestReviewComment.responder, ctx, ) .catch((err) => { @@ -71836,7 +63470,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForPullRequestReviewCommentResponseValidator( + ctx.body = reactionsCreateForPullRequestReviewComment.validator( status, body, ) @@ -71870,7 +63504,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsDeleteForPullRequestComment( input, - reactionsDeleteForPullRequestCommentResponder, + reactionsDeleteForPullRequestComment.responder, ctx, ) .catch((err) => { @@ -71880,10 +63514,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsDeleteForPullRequestCommentResponseValidator( - status, - body, - ) + ctx.body = reactionsDeleteForPullRequestComment.validator(status, body) ctx.status = status return next() }, @@ -71911,7 +63542,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsGet(input, pullsGetResponder, ctx) + .pullsGet(input, pullsGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71919,7 +63550,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsGetResponseValidator(status, body) + ctx.body = pullsGet.validator(status, body) ctx.status = status return next() }, @@ -71961,7 +63592,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsUpdate(input, pullsUpdateResponder, ctx) + .pullsUpdate(input, pullsUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71969,7 +63600,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsUpdateResponseValidator(status, body) + ctx.body = pullsUpdate.validator(status, body) ctx.status = status return next() }, @@ -72020,7 +63651,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesCreateWithPrForAuthenticatedUser( input, - codespacesCreateWithPrForAuthenticatedUserResponder, + codespacesCreateWithPrForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -72030,7 +63661,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesCreateWithPrForAuthenticatedUserResponseValidator( + ctx.body = codespacesCreateWithPrForAuthenticatedUser.validator( status, body, ) @@ -72073,7 +63704,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsListReviewComments(input, pullsListReviewCommentsResponder, ctx) + .pullsListReviewComments(input, pullsListReviewComments.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72081,7 +63712,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsListReviewCommentsResponseValidator(status, body) + ctx.body = pullsListReviewComments.validator(status, body) ctx.status = status return next() }, @@ -72126,7 +63757,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsCreateReviewComment(input, pullsCreateReviewCommentResponder, ctx) + .pullsCreateReviewComment( + input, + pullsCreateReviewComment.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72134,7 +63769,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsCreateReviewCommentResponseValidator(status, body) + ctx.body = pullsCreateReviewComment.validator(status, body) ctx.status = status return next() }, @@ -72173,7 +63808,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .pullsCreateReplyForReviewComment( input, - pullsCreateReplyForReviewCommentResponder, + pullsCreateReplyForReviewComment.responder, ctx, ) .catch((err) => { @@ -72183,7 +63818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsCreateReplyForReviewCommentResponseValidator(status, body) + ctx.body = pullsCreateReplyForReviewComment.validator(status, body) ctx.status = status return next() }, @@ -72220,7 +63855,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsListCommits(input, pullsListCommitsResponder, ctx) + .pullsListCommits(input, pullsListCommits.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72228,7 +63863,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsListCommitsResponseValidator(status, body) + ctx.body = pullsListCommits.validator(status, body) ctx.status = status return next() }, @@ -72265,7 +63900,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsListFiles(input, pullsListFilesResponder, ctx) + .pullsListFiles(input, pullsListFiles.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72273,7 +63908,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsListFilesResponseValidator(status, body) + ctx.body = pullsListFiles.validator(status, body) ctx.status = status return next() }, @@ -72301,7 +63936,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsCheckIfMerged(input, pullsCheckIfMergedResponder, ctx) + .pullsCheckIfMerged(input, pullsCheckIfMerged.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72309,7 +63944,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsCheckIfMergedResponseValidator(status, body) + ctx.body = pullsCheckIfMerged.validator(status, body) ctx.status = status return next() }, @@ -72351,7 +63986,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsMerge(input, pullsMergeResponder, ctx) + .pullsMerge(input, pullsMerge.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72359,7 +63994,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsMergeResponseValidator(status, body) + ctx.body = pullsMerge.validator(status, body) ctx.status = status return next() }, @@ -72389,7 +64024,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .pullsListRequestedReviewers( input, - pullsListRequestedReviewersResponder, + pullsListRequestedReviewers.responder, ctx, ) .catch((err) => { @@ -72399,7 +64034,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsListRequestedReviewersResponseValidator(status, body) + ctx.body = pullsListRequestedReviewers.validator(status, body) ctx.status = status return next() }, @@ -72438,7 +64073,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsRequestReviewers(input, pullsRequestReviewersResponder, ctx) + .pullsRequestReviewers(input, pullsRequestReviewers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72446,7 +64081,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsRequestReviewersResponseValidator(status, body) + ctx.body = pullsRequestReviewers.validator(status, body) ctx.status = status return next() }, @@ -72485,7 +64120,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .pullsRemoveRequestedReviewers( input, - pullsRemoveRequestedReviewersResponder, + pullsRemoveRequestedReviewers.responder, ctx, ) .catch((err) => { @@ -72495,7 +64130,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsRemoveRequestedReviewersResponseValidator(status, body) + ctx.body = pullsRemoveRequestedReviewers.validator(status, body) ctx.status = status return next() }, @@ -72532,7 +64167,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsListReviews(input, pullsListReviewsResponder, ctx) + .pullsListReviews(input, pullsListReviews.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72540,7 +64175,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsListReviewsResponseValidator(status, body) + ctx.body = pullsListReviews.validator(status, body) ctx.status = status return next() }, @@ -72593,7 +64228,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsCreateReview(input, pullsCreateReviewResponder, ctx) + .pullsCreateReview(input, pullsCreateReview.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72601,7 +64236,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsCreateReviewResponseValidator(status, body) + ctx.body = pullsCreateReview.validator(status, body) ctx.status = status return next() }, @@ -72630,7 +64265,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsGetReview(input, pullsGetReviewResponder, ctx) + .pullsGetReview(input, pullsGetReview.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72638,7 +64273,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsGetReviewResponseValidator(status, body) + ctx.body = pullsGetReview.validator(status, body) ctx.status = status return next() }, @@ -72673,7 +64308,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsUpdateReview(input, pullsUpdateReviewResponder, ctx) + .pullsUpdateReview(input, pullsUpdateReview.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72681,7 +64316,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsUpdateReviewResponseValidator(status, body) + ctx.body = pullsUpdateReview.validator(status, body) ctx.status = status return next() }, @@ -72710,7 +64345,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsDeletePendingReview(input, pullsDeletePendingReviewResponder, ctx) + .pullsDeletePendingReview( + input, + pullsDeletePendingReview.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72718,7 +64357,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsDeletePendingReviewResponseValidator(status, body) + ctx.body = pullsDeletePendingReview.validator(status, body) ctx.status = status return next() }, @@ -72758,7 +64397,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .pullsListCommentsForReview( input, - pullsListCommentsForReviewResponder, + pullsListCommentsForReview.responder, ctx, ) .catch((err) => { @@ -72768,7 +64407,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsListCommentsForReviewResponseValidator(status, body) + ctx.body = pullsListCommentsForReview.validator(status, body) ctx.status = status return next() }, @@ -72806,7 +64445,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsDismissReview(input, pullsDismissReviewResponder, ctx) + .pullsDismissReview(input, pullsDismissReview.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72814,7 +64453,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsDismissReviewResponseValidator(status, body) + ctx.body = pullsDismissReview.validator(status, body) ctx.status = status return next() }, @@ -72852,7 +64491,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsSubmitReview(input, pullsSubmitReviewResponder, ctx) + .pullsSubmitReview(input, pullsSubmitReview.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72860,7 +64499,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsSubmitReviewResponseValidator(status, body) + ctx.body = pullsSubmitReview.validator(status, body) ctx.status = status return next() }, @@ -72897,7 +64536,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .pullsUpdateBranch(input, pullsUpdateBranchResponder, ctx) + .pullsUpdateBranch(input, pullsUpdateBranch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72905,7 +64544,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pullsUpdateBranchResponseValidator(status, body) + ctx.body = pullsUpdateBranch.validator(status, body) ctx.status = status return next() }, @@ -72938,7 +64577,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetReadme(input, reposGetReadmeResponder, ctx) + .reposGetReadme(input, reposGetReadme.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -72946,7 +64585,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetReadmeResponseValidator(status, body) + ctx.body = reposGetReadme.validator(status, body) ctx.status = status return next() }, @@ -72984,7 +64623,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetReadmeInDirectory( input, - reposGetReadmeInDirectoryResponder, + reposGetReadmeInDirectory.responder, ctx, ) .catch((err) => { @@ -72994,7 +64633,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetReadmeInDirectoryResponseValidator(status, body) + ctx.body = reposGetReadmeInDirectory.validator(status, body) ctx.status = status return next() }, @@ -73030,7 +64669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListReleases(input, reposListReleasesResponder, ctx) + .reposListReleases(input, reposListReleases.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73038,7 +64677,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListReleasesResponseValidator(status, body) + ctx.body = reposListReleases.validator(status, body) ctx.status = status return next() }, @@ -73081,7 +64720,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateRelease(input, reposCreateReleaseResponder, ctx) + .reposCreateRelease(input, reposCreateRelease.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73089,7 +64728,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateReleaseResponseValidator(status, body) + ctx.body = reposCreateRelease.validator(status, body) ctx.status = status return next() }, @@ -73117,7 +64756,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetReleaseAsset(input, reposGetReleaseAssetResponder, ctx) + .reposGetReleaseAsset(input, reposGetReleaseAsset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73125,7 +64764,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetReleaseAssetResponseValidator(status, body) + ctx.body = reposGetReleaseAsset.validator(status, body) ctx.status = status return next() }, @@ -73165,7 +64804,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUpdateReleaseAsset(input, reposUpdateReleaseAssetResponder, ctx) + .reposUpdateReleaseAsset(input, reposUpdateReleaseAsset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73173,7 +64812,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateReleaseAssetResponseValidator(status, body) + ctx.body = reposUpdateReleaseAsset.validator(status, body) ctx.status = status return next() }, @@ -73201,7 +64840,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteReleaseAsset(input, reposDeleteReleaseAssetResponder, ctx) + .reposDeleteReleaseAsset(input, reposDeleteReleaseAsset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73209,7 +64848,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteReleaseAssetResponseValidator(status, body) + ctx.body = reposDeleteReleaseAsset.validator(status, body) ctx.status = status return next() }, @@ -73249,7 +64888,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGenerateReleaseNotes( input, - reposGenerateReleaseNotesResponder, + reposGenerateReleaseNotes.responder, ctx, ) .catch((err) => { @@ -73259,7 +64898,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGenerateReleaseNotesResponseValidator(status, body) + ctx.body = reposGenerateReleaseNotes.validator(status, body) ctx.status = status return next() }, @@ -73286,7 +64925,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetLatestRelease(input, reposGetLatestReleaseResponder, ctx) + .reposGetLatestRelease(input, reposGetLatestRelease.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73294,7 +64933,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetLatestReleaseResponseValidator(status, body) + ctx.body = reposGetLatestRelease.validator(status, body) ctx.status = status return next() }, @@ -73322,7 +64961,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetReleaseByTag(input, reposGetReleaseByTagResponder, ctx) + .reposGetReleaseByTag(input, reposGetReleaseByTag.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73330,7 +64969,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetReleaseByTagResponseValidator(status, body) + ctx.body = reposGetReleaseByTag.validator(status, body) ctx.status = status return next() }, @@ -73358,7 +64997,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetRelease(input, reposGetReleaseResponder, ctx) + .reposGetRelease(input, reposGetRelease.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73366,7 +65005,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetReleaseResponseValidator(status, body) + ctx.body = reposGetRelease.validator(status, body) ctx.status = status return next() }, @@ -73414,7 +65053,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUpdateRelease(input, reposUpdateReleaseResponder, ctx) + .reposUpdateRelease(input, reposUpdateRelease.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73422,7 +65061,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateReleaseResponseValidator(status, body) + ctx.body = reposUpdateRelease.validator(status, body) ctx.status = status return next() }, @@ -73450,7 +65089,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteRelease(input, reposDeleteReleaseResponder, ctx) + .reposDeleteRelease(input, reposDeleteRelease.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73458,7 +65097,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteReleaseResponseValidator(status, body) + ctx.body = reposDeleteRelease.validator(status, body) ctx.status = status return next() }, @@ -73495,7 +65134,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListReleaseAssets(input, reposListReleaseAssetsResponder, ctx) + .reposListReleaseAssets(input, reposListReleaseAssets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73503,7 +65142,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListReleaseAssetsResponseValidator(status, body) + ctx.body = reposListReleaseAssets.validator(status, body) ctx.status = status return next() }, @@ -73546,7 +65185,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUploadReleaseAsset(input, reposUploadReleaseAssetResponder, ctx) + .reposUploadReleaseAsset(input, reposUploadReleaseAsset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73554,7 +65193,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUploadReleaseAssetResponseValidator(status, body) + ctx.body = reposUploadReleaseAsset.validator(status, body) ctx.status = status return next() }, @@ -73594,7 +65233,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reactionsListForRelease(input, reactionsListForReleaseResponder, ctx) + .reactionsListForRelease(input, reactionsListForRelease.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73602,7 +65241,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForReleaseResponseValidator(status, body) + ctx.body = reactionsListForRelease.validator(status, body) ctx.status = status return next() }, @@ -73640,7 +65279,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsCreateForRelease( input, - reactionsCreateForReleaseResponder, + reactionsCreateForRelease.responder, ctx, ) .catch((err) => { @@ -73650,7 +65289,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForReleaseResponseValidator(status, body) + ctx.body = reactionsCreateForRelease.validator(status, body) ctx.status = status return next() }, @@ -73681,7 +65320,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsDeleteForRelease( input, - reactionsDeleteForReleaseResponder, + reactionsDeleteForRelease.responder, ctx, ) .catch((err) => { @@ -73691,7 +65330,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsDeleteForReleaseResponseValidator(status, body) + ctx.body = reactionsDeleteForRelease.validator(status, body) ctx.status = status return next() }, @@ -73728,7 +65367,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetBranchRules(input, reposGetBranchRulesResponder, ctx) + .reposGetBranchRules(input, reposGetBranchRules.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73736,7 +65375,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetBranchRulesResponseValidator(status, body) + ctx.body = reposGetBranchRules.validator(status, body) ctx.status = status return next() }, @@ -73774,7 +65413,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetRepoRulesets(input, reposGetRepoRulesetsResponder, ctx) + .reposGetRepoRulesets(input, reposGetRepoRulesets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73782,7 +65421,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetRepoRulesetsResponseValidator(status, body) + ctx.body = reposGetRepoRulesets.validator(status, body) ctx.status = status return next() }, @@ -73822,7 +65461,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateRepoRuleset(input, reposCreateRepoRulesetResponder, ctx) + .reposCreateRepoRuleset(input, reposCreateRepoRuleset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73830,7 +65469,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateRepoRulesetResponseValidator(status, body) + ctx.body = reposCreateRepoRuleset.validator(status, body) ctx.status = status return next() }, @@ -73876,7 +65515,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetRepoRuleSuites(input, reposGetRepoRuleSuitesResponder, ctx) + .reposGetRepoRuleSuites(input, reposGetRepoRuleSuites.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73884,7 +65523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetRepoRuleSuitesResponseValidator(status, body) + ctx.body = reposGetRepoRuleSuites.validator(status, body) ctx.status = status return next() }, @@ -73912,7 +65551,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetRepoRuleSuite(input, reposGetRepoRuleSuiteResponder, ctx) + .reposGetRepoRuleSuite(input, reposGetRepoRuleSuite.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73920,7 +65559,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetRepoRuleSuiteResponseValidator(status, body) + ctx.body = reposGetRepoRuleSuite.validator(status, body) ctx.status = status return next() }, @@ -73956,7 +65595,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetRepoRuleset(input, reposGetRepoRulesetResponder, ctx) + .reposGetRepoRuleset(input, reposGetRepoRuleset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73964,7 +65603,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetRepoRulesetResponseValidator(status, body) + ctx.body = reposGetRepoRuleset.validator(status, body) ctx.status = status return next() }, @@ -74007,7 +65646,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposUpdateRepoRuleset(input, reposUpdateRepoRulesetResponder, ctx) + .reposUpdateRepoRuleset(input, reposUpdateRepoRuleset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74015,7 +65654,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposUpdateRepoRulesetResponseValidator(status, body) + ctx.body = reposUpdateRepoRuleset.validator(status, body) ctx.status = status return next() }, @@ -74043,7 +65682,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteRepoRuleset(input, reposDeleteRepoRulesetResponder, ctx) + .reposDeleteRepoRuleset(input, reposDeleteRepoRuleset.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74051,7 +65690,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteRepoRulesetResponseValidator(status, body) + ctx.body = reposDeleteRepoRuleset.validator(status, body) ctx.status = status return next() }, @@ -74090,7 +65729,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetRepoRulesetHistory( input, - reposGetRepoRulesetHistoryResponder, + reposGetRepoRulesetHistory.responder, ctx, ) .catch((err) => { @@ -74100,7 +65739,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetRepoRulesetHistoryResponseValidator(status, body) + ctx.body = reposGetRepoRulesetHistory.validator(status, body) ctx.status = status return next() }, @@ -74131,7 +65770,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetRepoRulesetVersion( input, - reposGetRepoRulesetVersionResponder, + reposGetRepoRulesetVersion.responder, ctx, ) .catch((err) => { @@ -74141,7 +65780,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetRepoRulesetVersionResponseValidator(status, body) + ctx.body = reposGetRepoRulesetVersion.validator(status, body) ctx.status = status return next() }, @@ -74189,7 +65828,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .secretScanningListAlertsForRepo( input, - secretScanningListAlertsForRepoResponder, + secretScanningListAlertsForRepo.responder, ctx, ) .catch((err) => { @@ -74199,7 +65838,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = secretScanningListAlertsForRepoResponseValidator(status, body) + ctx.body = secretScanningListAlertsForRepo.validator(status, body) ctx.status = status return next() }, @@ -74227,7 +65866,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .secretScanningGetAlert(input, secretScanningGetAlertResponder, ctx) + .secretScanningGetAlert(input, secretScanningGetAlert.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74235,7 +65874,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = secretScanningGetAlertResponseValidator(status, body) + ctx.body = secretScanningGetAlert.validator(status, body) ctx.status = status return next() }, @@ -74275,7 +65914,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .secretScanningUpdateAlert( input, - secretScanningUpdateAlertResponder, + secretScanningUpdateAlert.responder, ctx, ) .catch((err) => { @@ -74285,7 +65924,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = secretScanningUpdateAlertResponseValidator(status, body) + ctx.body = secretScanningUpdateAlert.validator(status, body) ctx.status = status return next() }, @@ -74324,7 +65963,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .secretScanningListLocationsForAlert( input, - secretScanningListLocationsForAlertResponder, + secretScanningListLocationsForAlert.responder, ctx, ) .catch((err) => { @@ -74334,10 +65973,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = secretScanningListLocationsForAlertResponseValidator( - status, - body, - ) + ctx.body = secretScanningListLocationsForAlert.validator(status, body) ctx.status = status return next() }, @@ -74375,7 +66011,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .secretScanningCreatePushProtectionBypass( input, - secretScanningCreatePushProtectionBypassResponder, + secretScanningCreatePushProtectionBypass.responder, ctx, ) .catch((err) => { @@ -74385,7 +66021,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = secretScanningCreatePushProtectionBypassResponseValidator( + ctx.body = secretScanningCreatePushProtectionBypass.validator( status, body, ) @@ -74417,7 +66053,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .secretScanningGetScanHistory( input, - secretScanningGetScanHistoryResponder, + secretScanningGetScanHistory.responder, ctx, ) .catch((err) => { @@ -74427,7 +66063,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = secretScanningGetScanHistoryResponseValidator(status, body) + ctx.body = secretScanningGetScanHistory.validator(status, body) ctx.status = status return next() }, @@ -74472,7 +66108,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesListRepositoryAdvisories( input, - securityAdvisoriesListRepositoryAdvisoriesResponder, + securityAdvisoriesListRepositoryAdvisories.responder, ctx, ) .catch((err) => { @@ -74482,7 +66118,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = securityAdvisoriesListRepositoryAdvisoriesResponseValidator( + ctx.body = securityAdvisoriesListRepositoryAdvisories.validator( status, body, ) @@ -74521,7 +66157,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesCreateRepositoryAdvisory( input, - securityAdvisoriesCreateRepositoryAdvisoryResponder, + securityAdvisoriesCreateRepositoryAdvisory.responder, ctx, ) .catch((err) => { @@ -74531,7 +66167,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = securityAdvisoriesCreateRepositoryAdvisoryResponseValidator( + ctx.body = securityAdvisoriesCreateRepositoryAdvisory.validator( status, body, ) @@ -74568,7 +66204,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesCreatePrivateVulnerabilityReport( input, - securityAdvisoriesCreatePrivateVulnerabilityReportResponder, + securityAdvisoriesCreatePrivateVulnerabilityReport.responder, ctx, ) .catch((err) => { @@ -74578,11 +66214,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - securityAdvisoriesCreatePrivateVulnerabilityReportResponseValidator( - status, - body, - ) + ctx.body = securityAdvisoriesCreatePrivateVulnerabilityReport.validator( + status, + body, + ) ctx.status = status return next() }, @@ -74612,7 +66247,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesGetRepositoryAdvisory( input, - securityAdvisoriesGetRepositoryAdvisoryResponder, + securityAdvisoriesGetRepositoryAdvisory.responder, ctx, ) .catch((err) => { @@ -74622,10 +66257,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = securityAdvisoriesGetRepositoryAdvisoryResponseValidator( - status, - body, - ) + ctx.body = securityAdvisoriesGetRepositoryAdvisory.validator(status, body) ctx.status = status return next() }, @@ -74662,7 +66294,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesUpdateRepositoryAdvisory( input, - securityAdvisoriesUpdateRepositoryAdvisoryResponder, + securityAdvisoriesUpdateRepositoryAdvisory.responder, ctx, ) .catch((err) => { @@ -74672,7 +66304,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = securityAdvisoriesUpdateRepositoryAdvisoryResponseValidator( + ctx.body = securityAdvisoriesUpdateRepositoryAdvisory.validator( status, body, ) @@ -74702,7 +66334,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesCreateRepositoryAdvisoryCveRequest( input, - securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder, + securityAdvisoriesCreateRepositoryAdvisoryCveRequest.responder, ctx, ) .catch((err) => { @@ -74712,11 +66344,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - securityAdvisoriesCreateRepositoryAdvisoryCveRequestResponseValidator( - status, - body, - ) + ctx.body = securityAdvisoriesCreateRepositoryAdvisoryCveRequest.validator( + status, + body, + ) ctx.status = status return next() }, @@ -74746,7 +66377,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .securityAdvisoriesCreateFork( input, - securityAdvisoriesCreateForkResponder, + securityAdvisoriesCreateFork.responder, ctx, ) .catch((err) => { @@ -74756,7 +66387,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = securityAdvisoriesCreateForkResponseValidator(status, body) + ctx.body = securityAdvisoriesCreateFork.validator(status, body) ctx.status = status return next() }, @@ -74794,7 +66425,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListStargazersForRepo( input, - activityListStargazersForRepoResponder, + activityListStargazersForRepo.responder, ctx, ) .catch((err) => { @@ -74804,7 +66435,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListStargazersForRepoResponseValidator(status, body) + ctx.body = activityListStargazersForRepo.validator(status, body) ctx.status = status return next() }, @@ -74833,7 +66464,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetCodeFrequencyStats( input, - reposGetCodeFrequencyStatsResponder, + reposGetCodeFrequencyStats.responder, ctx, ) .catch((err) => { @@ -74843,7 +66474,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCodeFrequencyStatsResponseValidator(status, body) + ctx.body = reposGetCodeFrequencyStats.validator(status, body) ctx.status = status return next() }, @@ -74872,7 +66503,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetCommitActivityStats( input, - reposGetCommitActivityStatsResponder, + reposGetCommitActivityStats.responder, ctx, ) .catch((err) => { @@ -74882,7 +66513,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetCommitActivityStatsResponseValidator(status, body) + ctx.body = reposGetCommitActivityStats.validator(status, body) ctx.status = status return next() }, @@ -74911,7 +66542,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetContributorsStats( input, - reposGetContributorsStatsResponder, + reposGetContributorsStats.responder, ctx, ) .catch((err) => { @@ -74921,7 +66552,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetContributorsStatsResponseValidator(status, body) + ctx.body = reposGetContributorsStats.validator(status, body) ctx.status = status return next() }, @@ -74950,7 +66581,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposGetParticipationStats( input, - reposGetParticipationStatsResponder, + reposGetParticipationStats.responder, ctx, ) .catch((err) => { @@ -74960,7 +66591,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetParticipationStatsResponseValidator(status, body) + ctx.body = reposGetParticipationStats.validator(status, body) ctx.status = status return next() }, @@ -74987,7 +66618,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetPunchCardStats(input, reposGetPunchCardStatsResponder, ctx) + .reposGetPunchCardStats(input, reposGetPunchCardStats.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74995,7 +66626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetPunchCardStatsResponseValidator(status, body) + ctx.body = reposGetPunchCardStats.validator(status, body) ctx.status = status return next() }, @@ -75034,7 +66665,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateCommitStatus(input, reposCreateCommitStatusResponder, ctx) + .reposCreateCommitStatus(input, reposCreateCommitStatus.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75042,7 +66673,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateCommitStatusResponseValidator(status, body) + ctx.body = reposCreateCommitStatus.validator(status, body) ctx.status = status return next() }, @@ -75080,7 +66711,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListWatchersForRepo( input, - activityListWatchersForRepoResponder, + activityListWatchersForRepo.responder, ctx, ) .catch((err) => { @@ -75090,7 +66721,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListWatchersForRepoResponseValidator(status, body) + ctx.body = activityListWatchersForRepo.validator(status, body) ctx.status = status return next() }, @@ -75119,7 +66750,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityGetRepoSubscription( input, - activityGetRepoSubscriptionResponder, + activityGetRepoSubscription.responder, ctx, ) .catch((err) => { @@ -75129,7 +66760,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityGetRepoSubscriptionResponseValidator(status, body) + ctx.body = activityGetRepoSubscription.validator(status, body) ctx.status = status return next() }, @@ -75169,7 +66800,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activitySetRepoSubscription( input, - activitySetRepoSubscriptionResponder, + activitySetRepoSubscription.responder, ctx, ) .catch((err) => { @@ -75179,7 +66810,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activitySetRepoSubscriptionResponseValidator(status, body) + ctx.body = activitySetRepoSubscription.validator(status, body) ctx.status = status return next() }, @@ -75208,7 +66839,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityDeleteRepoSubscription( input, - activityDeleteRepoSubscriptionResponder, + activityDeleteRepoSubscription.responder, ctx, ) .catch((err) => { @@ -75218,7 +66849,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityDeleteRepoSubscriptionResponseValidator(status, body) + ctx.body = activityDeleteRepoSubscription.validator(status, body) ctx.status = status return next() }, @@ -75251,7 +66882,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListTags(input, reposListTagsResponder, ctx) + .reposListTags(input, reposListTags.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75259,7 +66890,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListTagsResponseValidator(status, body) + ctx.body = reposListTags.validator(status, body) ctx.status = status return next() }) @@ -75285,7 +66916,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListTagProtection(input, reposListTagProtectionResponder, ctx) + .reposListTagProtection(input, reposListTagProtection.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75293,7 +66924,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListTagProtectionResponseValidator(status, body) + ctx.body = reposListTagProtection.validator(status, body) ctx.status = status return next() }, @@ -75326,7 +66957,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateTagProtection(input, reposCreateTagProtectionResponder, ctx) + .reposCreateTagProtection( + input, + reposCreateTagProtection.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75334,7 +66969,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateTagProtectionResponseValidator(status, body) + ctx.body = reposCreateTagProtection.validator(status, body) ctx.status = status return next() }, @@ -75362,7 +66997,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposDeleteTagProtection(input, reposDeleteTagProtectionResponder, ctx) + .reposDeleteTagProtection( + input, + reposDeleteTagProtection.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75370,7 +67009,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeleteTagProtectionResponseValidator(status, body) + ctx.body = reposDeleteTagProtection.validator(status, body) ctx.status = status return next() }, @@ -75400,7 +67039,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDownloadTarballArchive( input, - reposDownloadTarballArchiveResponder, + reposDownloadTarballArchive.responder, ctx, ) .catch((err) => { @@ -75410,7 +67049,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDownloadTarballArchiveResponseValidator(status, body) + ctx.body = reposDownloadTarballArchive.validator(status, body) ctx.status = status return next() }, @@ -75446,7 +67085,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListTeams(input, reposListTeamsResponder, ctx) + .reposListTeams(input, reposListTeams.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75454,7 +67093,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListTeamsResponseValidator(status, body) + ctx.body = reposListTeams.validator(status, body) ctx.status = status return next() }, @@ -75490,7 +67129,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetAllTopics(input, reposGetAllTopicsResponder, ctx) + .reposGetAllTopics(input, reposGetAllTopics.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75498,7 +67137,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetAllTopicsResponseValidator(status, body) + ctx.body = reposGetAllTopics.validator(status, body) ctx.status = status return next() }, @@ -75533,7 +67172,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposReplaceAllTopics(input, reposReplaceAllTopicsResponder, ctx) + .reposReplaceAllTopics(input, reposReplaceAllTopics.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75541,7 +67180,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposReplaceAllTopicsResponseValidator(status, body) + ctx.body = reposReplaceAllTopics.validator(status, body) ctx.status = status return next() }, @@ -75576,7 +67215,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetClones(input, reposGetClonesResponder, ctx) + .reposGetClones(input, reposGetClones.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75584,7 +67223,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetClonesResponseValidator(status, body) + ctx.body = reposGetClones.validator(status, body) ctx.status = status return next() }, @@ -75611,7 +67250,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetTopPaths(input, reposGetTopPathsResponder, ctx) + .reposGetTopPaths(input, reposGetTopPaths.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75619,7 +67258,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetTopPathsResponseValidator(status, body) + ctx.body = reposGetTopPaths.validator(status, body) ctx.status = status return next() }, @@ -75646,7 +67285,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetTopReferrers(input, reposGetTopReferrersResponder, ctx) + .reposGetTopReferrers(input, reposGetTopReferrers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75654,7 +67293,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetTopReferrersResponseValidator(status, body) + ctx.body = reposGetTopReferrers.validator(status, body) ctx.status = status return next() }, @@ -75689,7 +67328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposGetViews(input, reposGetViewsResponder, ctx) + .reposGetViews(input, reposGetViews.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75697,7 +67336,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposGetViewsResponseValidator(status, body) + ctx.body = reposGetViews.validator(status, body) ctx.status = status return next() }, @@ -75734,7 +67373,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposTransfer(input, reposTransferResponder, ctx) + .reposTransfer(input, reposTransfer.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75742,7 +67381,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposTransferResponseValidator(status, body) + ctx.body = reposTransfer.validator(status, body) ctx.status = status return next() }, @@ -75771,7 +67410,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCheckVulnerabilityAlerts( input, - reposCheckVulnerabilityAlertsResponder, + reposCheckVulnerabilityAlerts.responder, ctx, ) .catch((err) => { @@ -75781,7 +67420,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCheckVulnerabilityAlertsResponseValidator(status, body) + ctx.body = reposCheckVulnerabilityAlerts.validator(status, body) ctx.status = status return next() }, @@ -75810,7 +67449,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposEnableVulnerabilityAlerts( input, - reposEnableVulnerabilityAlertsResponder, + reposEnableVulnerabilityAlerts.responder, ctx, ) .catch((err) => { @@ -75820,7 +67459,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposEnableVulnerabilityAlertsResponseValidator(status, body) + ctx.body = reposEnableVulnerabilityAlerts.validator(status, body) ctx.status = status return next() }, @@ -75849,7 +67488,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDisableVulnerabilityAlerts( input, - reposDisableVulnerabilityAlertsResponder, + reposDisableVulnerabilityAlerts.responder, ctx, ) .catch((err) => { @@ -75859,7 +67498,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDisableVulnerabilityAlertsResponseValidator(status, body) + ctx.body = reposDisableVulnerabilityAlerts.validator(status, body) ctx.status = status return next() }, @@ -75889,7 +67528,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDownloadZipballArchive( input, - reposDownloadZipballArchiveResponder, + reposDownloadZipballArchive.responder, ctx, ) .catch((err) => { @@ -75899,7 +67538,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDownloadZipballArchiveResponseValidator(status, body) + ctx.body = reposDownloadZipballArchive.validator(status, body) ctx.status = status return next() }, @@ -75938,7 +67577,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposCreateUsingTemplate(input, reposCreateUsingTemplateResponder, ctx) + .reposCreateUsingTemplate( + input, + reposCreateUsingTemplate.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75946,7 +67589,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateUsingTemplateResponseValidator(status, body) + ctx.body = reposCreateUsingTemplate.validator(status, body) ctx.status = status return next() }, @@ -75969,7 +67612,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListPublic(input, reposListPublicResponder, ctx) + .reposListPublic(input, reposListPublic.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -75977,7 +67620,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListPublicResponseValidator(status, body) + ctx.body = reposListPublic.validator(status, body) ctx.status = status return next() }) @@ -76003,7 +67646,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .searchCode(input, searchCodeResponder, ctx) + .searchCode(input, searchCode.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76011,7 +67654,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = searchCodeResponseValidator(status, body) + ctx.body = searchCode.validator(status, body) ctx.status = status return next() }) @@ -76037,7 +67680,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .searchCommits(input, searchCommitsResponder, ctx) + .searchCommits(input, searchCommits.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76045,7 +67688,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = searchCommitsResponseValidator(status, body) + ctx.body = searchCommits.validator(status, body) ctx.status = status return next() }) @@ -76091,7 +67734,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .searchIssuesAndPullRequests( input, - searchIssuesAndPullRequestsResponder, + searchIssuesAndPullRequests.responder, ctx, ) .catch((err) => { @@ -76101,7 +67744,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = searchIssuesAndPullRequestsResponseValidator(status, body) + ctx.body = searchIssuesAndPullRequests.validator(status, body) ctx.status = status return next() }, @@ -76129,7 +67772,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .searchLabels(input, searchLabelsResponder, ctx) + .searchLabels(input, searchLabels.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76137,7 +67780,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = searchLabelsResponseValidator(status, body) + ctx.body = searchLabels.validator(status, body) ctx.status = status return next() }) @@ -76165,7 +67808,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .searchRepos(input, searchReposResponder, ctx) + .searchRepos(input, searchRepos.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76173,7 +67816,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = searchReposResponseValidator(status, body) + ctx.body = searchRepos.validator(status, body) ctx.status = status return next() }) @@ -76197,7 +67840,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .searchTopics(input, searchTopicsResponder, ctx) + .searchTopics(input, searchTopics.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76205,7 +67848,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = searchTopicsResponseValidator(status, body) + ctx.body = searchTopics.validator(status, body) ctx.status = status return next() }) @@ -76231,7 +67874,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .searchUsers(input, searchUsersResponder, ctx) + .searchUsers(input, searchUsers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76239,7 +67882,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = searchUsersResponseValidator(status, body) + ctx.body = searchUsers.validator(status, body) ctx.status = status return next() }) @@ -76259,7 +67902,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsGetLegacy(input, teamsGetLegacyResponder, ctx) + .teamsGetLegacy(input, teamsGetLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76267,7 +67910,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetLegacyResponseValidator(status, body) + ctx.body = teamsGetLegacy.validator(status, body) ctx.status = status return next() }) @@ -76302,7 +67945,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsUpdateLegacy(input, teamsUpdateLegacyResponder, ctx) + .teamsUpdateLegacy(input, teamsUpdateLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76310,7 +67953,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsUpdateLegacyResponseValidator(status, body) + ctx.body = teamsUpdateLegacy.validator(status, body) ctx.status = status return next() }) @@ -76330,7 +67973,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsDeleteLegacy(input, teamsDeleteLegacyResponder, ctx) + .teamsDeleteLegacy(input, teamsDeleteLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76338,7 +67981,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsDeleteLegacyResponseValidator(status, body) + ctx.body = teamsDeleteLegacy.validator(status, body) ctx.status = status return next() }) @@ -76375,7 +68018,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsListDiscussionsLegacy( input, - teamsListDiscussionsLegacyResponder, + teamsListDiscussionsLegacy.responder, ctx, ) .catch((err) => { @@ -76385,7 +68028,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListDiscussionsLegacyResponseValidator(status, body) + ctx.body = teamsListDiscussionsLegacy.validator(status, body) ctx.status = status return next() }, @@ -76423,7 +68066,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsCreateDiscussionLegacy( input, - teamsCreateDiscussionLegacyResponder, + teamsCreateDiscussionLegacy.responder, ctx, ) .catch((err) => { @@ -76433,7 +68076,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCreateDiscussionLegacyResponseValidator(status, body) + ctx.body = teamsCreateDiscussionLegacy.validator(status, body) ctx.status = status return next() }, @@ -76460,7 +68103,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsGetDiscussionLegacy(input, teamsGetDiscussionLegacyResponder, ctx) + .teamsGetDiscussionLegacy( + input, + teamsGetDiscussionLegacy.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -76468,7 +68115,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetDiscussionLegacyResponseValidator(status, body) + ctx.body = teamsGetDiscussionLegacy.validator(status, body) ctx.status = status return next() }, @@ -76505,7 +68152,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsUpdateDiscussionLegacy( input, - teamsUpdateDiscussionLegacyResponder, + teamsUpdateDiscussionLegacy.responder, ctx, ) .catch((err) => { @@ -76515,7 +68162,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsUpdateDiscussionLegacyResponseValidator(status, body) + ctx.body = teamsUpdateDiscussionLegacy.validator(status, body) ctx.status = status return next() }, @@ -76544,7 +68191,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsDeleteDiscussionLegacy( input, - teamsDeleteDiscussionLegacyResponder, + teamsDeleteDiscussionLegacy.responder, ctx, ) .catch((err) => { @@ -76554,7 +68201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsDeleteDiscussionLegacyResponseValidator(status, body) + ctx.body = teamsDeleteDiscussionLegacy.validator(status, body) ctx.status = status return next() }, @@ -76593,7 +68240,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsListDiscussionCommentsLegacy( input, - teamsListDiscussionCommentsLegacyResponder, + teamsListDiscussionCommentsLegacy.responder, ctx, ) .catch((err) => { @@ -76603,10 +68250,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListDiscussionCommentsLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsListDiscussionCommentsLegacy.validator(status, body) ctx.status = status return next() }, @@ -76643,7 +68287,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsCreateDiscussionCommentLegacy( input, - teamsCreateDiscussionCommentLegacyResponder, + teamsCreateDiscussionCommentLegacy.responder, ctx, ) .catch((err) => { @@ -76653,10 +68297,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCreateDiscussionCommentLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsCreateDiscussionCommentLegacy.validator(status, body) ctx.status = status return next() }, @@ -76686,7 +68327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsGetDiscussionCommentLegacy( input, - teamsGetDiscussionCommentLegacyResponder, + teamsGetDiscussionCommentLegacy.responder, ctx, ) .catch((err) => { @@ -76696,7 +68337,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetDiscussionCommentLegacyResponseValidator(status, body) + ctx.body = teamsGetDiscussionCommentLegacy.validator(status, body) ctx.status = status return next() }, @@ -76734,7 +68375,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsUpdateDiscussionCommentLegacy( input, - teamsUpdateDiscussionCommentLegacyResponder, + teamsUpdateDiscussionCommentLegacy.responder, ctx, ) .catch((err) => { @@ -76744,10 +68385,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsUpdateDiscussionCommentLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsUpdateDiscussionCommentLegacy.validator(status, body) ctx.status = status return next() }, @@ -76777,7 +68415,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsDeleteDiscussionCommentLegacy( input, - teamsDeleteDiscussionCommentLegacyResponder, + teamsDeleteDiscussionCommentLegacy.responder, ctx, ) .catch((err) => { @@ -76787,10 +68425,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsDeleteDiscussionCommentLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsDeleteDiscussionCommentLegacy.validator(status, body) ctx.status = status return next() }, @@ -76841,7 +68476,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsListForTeamDiscussionCommentLegacy( input, - reactionsListForTeamDiscussionCommentLegacyResponder, + reactionsListForTeamDiscussionCommentLegacy.responder, ctx, ) .catch((err) => { @@ -76851,7 +68486,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForTeamDiscussionCommentLegacyResponseValidator( + ctx.body = reactionsListForTeamDiscussionCommentLegacy.validator( status, body, ) @@ -76901,7 +68536,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsCreateForTeamDiscussionCommentLegacy( input, - reactionsCreateForTeamDiscussionCommentLegacyResponder, + reactionsCreateForTeamDiscussionCommentLegacy.responder, ctx, ) .catch((err) => { @@ -76911,7 +68546,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForTeamDiscussionCommentLegacyResponseValidator( + ctx.body = reactionsCreateForTeamDiscussionCommentLegacy.validator( status, body, ) @@ -76964,7 +68599,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsListForTeamDiscussionLegacy( input, - reactionsListForTeamDiscussionLegacyResponder, + reactionsListForTeamDiscussionLegacy.responder, ctx, ) .catch((err) => { @@ -76974,10 +68609,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsListForTeamDiscussionLegacyResponseValidator( - status, - body, - ) + ctx.body = reactionsListForTeamDiscussionLegacy.validator(status, body) ctx.status = status return next() }, @@ -77023,7 +68655,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reactionsCreateForTeamDiscussionLegacy( input, - reactionsCreateForTeamDiscussionLegacyResponder, + reactionsCreateForTeamDiscussionLegacy.responder, ctx, ) .catch((err) => { @@ -77033,10 +68665,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reactionsCreateForTeamDiscussionLegacyResponseValidator( - status, - body, - ) + ctx.body = reactionsCreateForTeamDiscussionLegacy.validator(status, body) ctx.status = status return next() }, @@ -77073,7 +68702,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsListPendingInvitationsLegacy( input, - teamsListPendingInvitationsLegacyResponder, + teamsListPendingInvitationsLegacy.responder, ctx, ) .catch((err) => { @@ -77083,10 +68712,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListPendingInvitationsLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsListPendingInvitationsLegacy.validator(status, body) ctx.status = status return next() }, @@ -77122,7 +68748,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsListMembersLegacy(input, teamsListMembersLegacyResponder, ctx) + .teamsListMembersLegacy(input, teamsListMembersLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77130,7 +68756,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListMembersLegacyResponseValidator(status, body) + ctx.body = teamsListMembersLegacy.validator(status, body) ctx.status = status return next() }, @@ -77157,7 +68783,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsGetMemberLegacy(input, teamsGetMemberLegacyResponder, ctx) + .teamsGetMemberLegacy(input, teamsGetMemberLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77165,7 +68791,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetMemberLegacyResponseValidator(status, body) + ctx.body = teamsGetMemberLegacy.validator(status, body) ctx.status = status return next() }, @@ -77192,7 +68818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsAddMemberLegacy(input, teamsAddMemberLegacyResponder, ctx) + .teamsAddMemberLegacy(input, teamsAddMemberLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77200,7 +68826,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsAddMemberLegacyResponseValidator(status, body) + ctx.body = teamsAddMemberLegacy.validator(status, body) ctx.status = status return next() }, @@ -77227,7 +68853,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsRemoveMemberLegacy(input, teamsRemoveMemberLegacyResponder, ctx) + .teamsRemoveMemberLegacy(input, teamsRemoveMemberLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77235,7 +68861,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsRemoveMemberLegacyResponseValidator(status, body) + ctx.body = teamsRemoveMemberLegacy.validator(status, body) ctx.status = status return next() }, @@ -77264,7 +68890,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsGetMembershipForUserLegacy( input, - teamsGetMembershipForUserLegacyResponder, + teamsGetMembershipForUserLegacy.responder, ctx, ) .catch((err) => { @@ -77274,7 +68900,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsGetMembershipForUserLegacyResponseValidator(status, body) + ctx.body = teamsGetMembershipForUserLegacy.validator(status, body) ctx.status = status return next() }, @@ -77313,7 +68939,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsAddOrUpdateMembershipForUserLegacy( input, - teamsAddOrUpdateMembershipForUserLegacyResponder, + teamsAddOrUpdateMembershipForUserLegacy.responder, ctx, ) .catch((err) => { @@ -77323,10 +68949,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsAddOrUpdateMembershipForUserLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsAddOrUpdateMembershipForUserLegacy.validator(status, body) ctx.status = status return next() }, @@ -77355,7 +68978,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsRemoveMembershipForUserLegacy( input, - teamsRemoveMembershipForUserLegacyResponder, + teamsRemoveMembershipForUserLegacy.responder, ctx, ) .catch((err) => { @@ -77365,10 +68988,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsRemoveMembershipForUserLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsRemoveMembershipForUserLegacy.validator(status, body) ctx.status = status return next() }, @@ -77403,7 +69023,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsListProjectsLegacy(input, teamsListProjectsLegacyResponder, ctx) + .teamsListProjectsLegacy(input, teamsListProjectsLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77411,7 +69031,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListProjectsLegacyResponseValidator(status, body) + ctx.body = teamsListProjectsLegacy.validator(status, body) ctx.status = status return next() }, @@ -77440,7 +69060,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsCheckPermissionsForProjectLegacy( input, - teamsCheckPermissionsForProjectLegacyResponder, + teamsCheckPermissionsForProjectLegacy.responder, ctx, ) .catch((err) => { @@ -77450,10 +69070,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCheckPermissionsForProjectLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsCheckPermissionsForProjectLegacy.validator(status, body) ctx.status = status return next() }, @@ -77490,7 +69107,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsAddOrUpdateProjectPermissionsLegacy( input, - teamsAddOrUpdateProjectPermissionsLegacyResponder, + teamsAddOrUpdateProjectPermissionsLegacy.responder, ctx, ) .catch((err) => { @@ -77500,7 +69117,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsAddOrUpdateProjectPermissionsLegacyResponseValidator( + ctx.body = teamsAddOrUpdateProjectPermissionsLegacy.validator( status, body, ) @@ -77530,7 +69147,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsRemoveProjectLegacy(input, teamsRemoveProjectLegacyResponder, ctx) + .teamsRemoveProjectLegacy( + input, + teamsRemoveProjectLegacy.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77538,7 +69159,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsRemoveProjectLegacyResponseValidator(status, body) + ctx.body = teamsRemoveProjectLegacy.validator(status, body) ctx.status = status return next() }, @@ -77573,7 +69194,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsListReposLegacy(input, teamsListReposLegacyResponder, ctx) + .teamsListReposLegacy(input, teamsListReposLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77581,7 +69202,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListReposLegacyResponseValidator(status, body) + ctx.body = teamsListReposLegacy.validator(status, body) ctx.status = status return next() }, @@ -77611,7 +69232,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsCheckPermissionsForRepoLegacy( input, - teamsCheckPermissionsForRepoLegacyResponder, + teamsCheckPermissionsForRepoLegacy.responder, ctx, ) .catch((err) => { @@ -77621,10 +69242,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsCheckPermissionsForRepoLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsCheckPermissionsForRepoLegacy.validator(status, body) ctx.status = status return next() }, @@ -77662,7 +69280,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsAddOrUpdateRepoPermissionsLegacy( input, - teamsAddOrUpdateRepoPermissionsLegacyResponder, + teamsAddOrUpdateRepoPermissionsLegacy.responder, ctx, ) .catch((err) => { @@ -77672,10 +69290,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsAddOrUpdateRepoPermissionsLegacyResponseValidator( - status, - body, - ) + ctx.body = teamsAddOrUpdateRepoPermissionsLegacy.validator(status, body) ctx.status = status return next() }, @@ -77703,7 +69318,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsRemoveRepoLegacy(input, teamsRemoveRepoLegacyResponder, ctx) + .teamsRemoveRepoLegacy(input, teamsRemoveRepoLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77711,7 +69326,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsRemoveRepoLegacyResponseValidator(status, body) + ctx.body = teamsRemoveRepoLegacy.validator(status, body) ctx.status = status return next() }, @@ -77746,7 +69361,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .teamsListChildLegacy(input, teamsListChildLegacyResponder, ctx) + .teamsListChildLegacy(input, teamsListChildLegacy.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77754,7 +69369,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListChildLegacyResponseValidator(status, body) + ctx.body = teamsListChildLegacy.validator(status, body) ctx.status = status return next() }, @@ -77769,7 +69384,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersGetAuthenticated(input, usersGetAuthenticatedResponder, ctx) + .usersGetAuthenticated(input, usersGetAuthenticated.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77777,7 +69392,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersGetAuthenticatedResponseValidator(status, body) + ctx.body = usersGetAuthenticated.validator(status, body) ctx.status = status return next() }) @@ -77808,7 +69423,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersUpdateAuthenticated(input, usersUpdateAuthenticatedResponder, ctx) + .usersUpdateAuthenticated(input, usersUpdateAuthenticated.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77816,7 +69431,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersUpdateAuthenticatedResponseValidator(status, body) + ctx.body = usersUpdateAuthenticated.validator(status, body) ctx.status = status return next() }) @@ -77844,7 +69459,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListBlockedByAuthenticatedUser( input, - usersListBlockedByAuthenticatedUserResponder, + usersListBlockedByAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -77854,10 +69469,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListBlockedByAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersListBlockedByAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -77881,7 +69493,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersCheckBlocked(input, usersCheckBlockedResponder, ctx) + .usersCheckBlocked(input, usersCheckBlocked.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77889,7 +69501,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersCheckBlockedResponseValidator(status, body) + ctx.body = usersCheckBlocked.validator(status, body) ctx.status = status return next() }, @@ -77910,7 +69522,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersBlock(input, usersBlockResponder, ctx) + .usersBlock(input, usersBlock.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77918,7 +69530,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersBlockResponseValidator(status, body) + ctx.body = usersBlock.validator(status, body) ctx.status = status return next() }) @@ -77938,7 +69550,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersUnblock(input, usersUnblockResponder, ctx) + .usersUnblock(input, usersUnblock.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -77946,7 +69558,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersUnblockResponseValidator(status, body) + ctx.body = usersUnblock.validator(status, body) ctx.status = status return next() }) @@ -77975,7 +69587,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesListForAuthenticatedUser( input, - codespacesListForAuthenticatedUserResponder, + codespacesListForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -77985,10 +69597,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesListForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesListForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78045,7 +69654,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesCreateForAuthenticatedUser( input, - codespacesCreateForAuthenticatedUserResponder, + codespacesCreateForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78055,10 +69664,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesCreateForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesCreateForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78087,7 +69693,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesListSecretsForAuthenticatedUser( input, - codespacesListSecretsForAuthenticatedUserResponder, + codespacesListSecretsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78097,7 +69703,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesListSecretsForAuthenticatedUserResponseValidator( + ctx.body = codespacesListSecretsForAuthenticatedUser.validator( status, body, ) @@ -78120,7 +69726,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesGetPublicKeyForAuthenticatedUser( input, - codespacesGetPublicKeyForAuthenticatedUserResponder, + codespacesGetPublicKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78130,7 +69736,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesGetPublicKeyForAuthenticatedUserResponseValidator( + ctx.body = codespacesGetPublicKeyForAuthenticatedUser.validator( status, body, ) @@ -78161,7 +69767,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesGetSecretForAuthenticatedUser( input, - codespacesGetSecretForAuthenticatedUserResponder, + codespacesGetSecretForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78171,10 +69777,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesGetSecretForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesGetSecretForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78222,7 +69825,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesCreateOrUpdateSecretForAuthenticatedUser( input, - codespacesCreateOrUpdateSecretForAuthenticatedUserResponder, + codespacesCreateOrUpdateSecretForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78232,11 +69835,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codespacesCreateOrUpdateSecretForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesCreateOrUpdateSecretForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -78264,7 +69866,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesDeleteSecretForAuthenticatedUser( input, - codespacesDeleteSecretForAuthenticatedUserResponder, + codespacesDeleteSecretForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78274,7 +69876,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesDeleteSecretForAuthenticatedUserResponseValidator( + ctx.body = codespacesDeleteSecretForAuthenticatedUser.validator( status, body, ) @@ -78304,7 +69906,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesListRepositoriesForSecretForAuthenticatedUser( input, - codespacesListRepositoriesForSecretForAuthenticatedUserResponder, + codespacesListRepositoriesForSecretForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78315,7 +69917,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - codespacesListRepositoriesForSecretForAuthenticatedUserResponseValidator( + codespacesListRepositoriesForSecretForAuthenticatedUser.validator( status, body, ) @@ -78352,7 +69954,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesSetRepositoriesForSecretForAuthenticatedUser( input, - codespacesSetRepositoriesForSecretForAuthenticatedUserResponder, + codespacesSetRepositoriesForSecretForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78363,7 +69965,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - codespacesSetRepositoriesForSecretForAuthenticatedUserResponseValidator( + codespacesSetRepositoriesForSecretForAuthenticatedUser.validator( status, body, ) @@ -78393,7 +69995,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesAddRepositoryForSecretForAuthenticatedUser( input, - codespacesAddRepositoryForSecretForAuthenticatedUserResponder, + codespacesAddRepositoryForSecretForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78403,11 +70005,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codespacesAddRepositoryForSecretForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesAddRepositoryForSecretForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -78434,7 +70035,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesRemoveRepositoryForSecretForAuthenticatedUser( input, - codespacesRemoveRepositoryForSecretForAuthenticatedUserResponder, + codespacesRemoveRepositoryForSecretForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78445,7 +70046,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - codespacesRemoveRepositoryForSecretForAuthenticatedUserResponseValidator( + codespacesRemoveRepositoryForSecretForAuthenticatedUser.validator( status, body, ) @@ -78476,7 +70077,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesGetForAuthenticatedUser( input, - codespacesGetForAuthenticatedUserResponder, + codespacesGetForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78486,10 +70087,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesGetForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesGetForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78529,7 +70127,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesUpdateForAuthenticatedUser( input, - codespacesUpdateForAuthenticatedUserResponder, + codespacesUpdateForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78539,10 +70137,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesUpdateForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesUpdateForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78570,7 +70165,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesDeleteForAuthenticatedUser( input, - codespacesDeleteForAuthenticatedUserResponder, + codespacesDeleteForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78580,10 +70175,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesDeleteForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesDeleteForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78611,7 +70203,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesExportForAuthenticatedUser( input, - codespacesExportForAuthenticatedUserResponder, + codespacesExportForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78621,10 +70213,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesExportForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesExportForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78653,7 +70242,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesGetExportDetailsForAuthenticatedUser( input, - codespacesGetExportDetailsForAuthenticatedUserResponder, + codespacesGetExportDetailsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78663,11 +70252,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codespacesGetExportDetailsForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesGetExportDetailsForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -78695,7 +70283,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesCodespaceMachinesForAuthenticatedUser( input, - codespacesCodespaceMachinesForAuthenticatedUserResponder, + codespacesCodespaceMachinesForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78705,11 +70293,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - codespacesCodespaceMachinesForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesCodespaceMachinesForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -78746,7 +70333,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesPublishForAuthenticatedUser( input, - codespacesPublishForAuthenticatedUserResponder, + codespacesPublishForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78756,10 +70343,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesPublishForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesPublishForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78787,7 +70371,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesStartForAuthenticatedUser( input, - codespacesStartForAuthenticatedUserResponder, + codespacesStartForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78797,10 +70381,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesStartForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesStartForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78828,7 +70409,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .codespacesStopForAuthenticatedUser( input, - codespacesStopForAuthenticatedUserResponder, + codespacesStopForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78838,10 +70419,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = codespacesStopForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = codespacesStopForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78861,7 +70439,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesListDockerMigrationConflictingPackagesForAuthenticatedUser( input, - packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder, + packagesListDockerMigrationConflictingPackagesForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78872,7 +70450,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - packagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponseValidator( + packagesListDockerMigrationConflictingPackagesForAuthenticatedUser.validator( status, body, ) @@ -78903,7 +70481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersSetPrimaryEmailVisibilityForAuthenticatedUser( input, - usersSetPrimaryEmailVisibilityForAuthenticatedUserResponder, + usersSetPrimaryEmailVisibilityForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78913,11 +70491,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - usersSetPrimaryEmailVisibilityForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersSetPrimaryEmailVisibilityForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -78946,7 +70523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListEmailsForAuthenticatedUser( input, - usersListEmailsForAuthenticatedUserResponder, + usersListEmailsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -78956,10 +70533,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListEmailsForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersListEmailsForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -78991,7 +70565,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersAddEmailForAuthenticatedUser( input, - usersAddEmailForAuthenticatedUserResponder, + usersAddEmailForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79001,10 +70575,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersAddEmailForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersAddEmailForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79034,7 +70605,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersDeleteEmailForAuthenticatedUser( input, - usersDeleteEmailForAuthenticatedUserResponder, + usersDeleteEmailForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79044,10 +70615,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersDeleteEmailForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersDeleteEmailForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79076,7 +70644,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListFollowersForAuthenticatedUser( input, - usersListFollowersForAuthenticatedUserResponder, + usersListFollowersForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79086,10 +70654,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListFollowersForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersListFollowersForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79118,7 +70683,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListFollowedByAuthenticatedUser( input, - usersListFollowedByAuthenticatedUserResponder, + usersListFollowedByAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79128,10 +70693,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListFollowedByAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersListFollowedByAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79159,7 +70721,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersCheckPersonIsFollowedByAuthenticated( input, - usersCheckPersonIsFollowedByAuthenticatedResponder, + usersCheckPersonIsFollowedByAuthenticated.responder, ctx, ) .catch((err) => { @@ -79169,7 +70731,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersCheckPersonIsFollowedByAuthenticatedResponseValidator( + ctx.body = usersCheckPersonIsFollowedByAuthenticated.validator( status, body, ) @@ -79193,7 +70755,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersFollow(input, usersFollowResponder, ctx) + .usersFollow(input, usersFollow.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79201,7 +70763,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersFollowResponseValidator(status, body) + ctx.body = usersFollow.validator(status, body) ctx.status = status return next() }) @@ -79224,7 +70786,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersUnfollow(input, usersUnfollowResponder, ctx) + .usersUnfollow(input, usersUnfollow.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -79232,7 +70794,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersUnfollowResponseValidator(status, body) + ctx.body = usersUnfollow.validator(status, body) ctx.status = status return next() }, @@ -79261,7 +70823,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListGpgKeysForAuthenticatedUser( input, - usersListGpgKeysForAuthenticatedUserResponder, + usersListGpgKeysForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79271,10 +70833,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListGpgKeysForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersListGpgKeysForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79303,7 +70862,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersCreateGpgKeyForAuthenticatedUser( input, - usersCreateGpgKeyForAuthenticatedUserResponder, + usersCreateGpgKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79313,10 +70872,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersCreateGpgKeyForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersCreateGpgKeyForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79344,7 +70900,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersGetGpgKeyForAuthenticatedUser( input, - usersGetGpgKeyForAuthenticatedUserResponder, + usersGetGpgKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79354,10 +70910,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersGetGpgKeyForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersGetGpgKeyForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79385,7 +70938,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersDeleteGpgKeyForAuthenticatedUser( input, - usersDeleteGpgKeyForAuthenticatedUserResponder, + usersDeleteGpgKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79395,10 +70948,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersDeleteGpgKeyForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = usersDeleteGpgKeyForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79427,7 +70977,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsListInstallationsForAuthenticatedUser( input, - appsListInstallationsForAuthenticatedUserResponder, + appsListInstallationsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79437,7 +70987,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListInstallationsForAuthenticatedUserResponseValidator( + ctx.body = appsListInstallationsForAuthenticatedUser.validator( status, body, ) @@ -79477,7 +71027,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsListInstallationReposForAuthenticatedUser( input, - appsListInstallationReposForAuthenticatedUserResponder, + appsListInstallationReposForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79487,7 +71037,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListInstallationReposForAuthenticatedUserResponseValidator( + ctx.body = appsListInstallationReposForAuthenticatedUser.validator( status, body, ) @@ -79519,7 +71069,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsAddRepoToInstallationForAuthenticatedUser( input, - appsAddRepoToInstallationForAuthenticatedUserResponder, + appsAddRepoToInstallationForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79529,7 +71079,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsAddRepoToInstallationForAuthenticatedUserResponseValidator( + ctx.body = appsAddRepoToInstallationForAuthenticatedUser.validator( status, body, ) @@ -79562,7 +71112,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsRemoveRepoFromInstallationForAuthenticatedUser( input, - appsRemoveRepoFromInstallationForAuthenticatedUserResponder, + appsRemoveRepoFromInstallationForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79572,11 +71122,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - appsRemoveRepoFromInstallationForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = appsRemoveRepoFromInstallationForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -79596,7 +71145,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsGetRestrictionsForAuthenticatedUser( input, - interactionsGetRestrictionsForAuthenticatedUserResponder, + interactionsGetRestrictionsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79606,11 +71155,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - interactionsGetRestrictionsForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = interactionsGetRestrictionsForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -79637,7 +71185,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsSetRestrictionsForAuthenticatedUser( input, - interactionsSetRestrictionsForAuthenticatedUserResponder, + interactionsSetRestrictionsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79647,11 +71195,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - interactionsSetRestrictionsForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = interactionsSetRestrictionsForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -79671,7 +71218,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .interactionsRemoveRestrictionsForAuthenticatedUser( input, - interactionsRemoveRestrictionsForAuthenticatedUserResponder, + interactionsRemoveRestrictionsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79681,11 +71228,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - interactionsRemoveRestrictionsForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = interactionsRemoveRestrictionsForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -79726,7 +71272,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .issuesListForAuthenticatedUser( input, - issuesListForAuthenticatedUserResponder, + issuesListForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79736,7 +71282,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = issuesListForAuthenticatedUserResponseValidator(status, body) + ctx.body = issuesListForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -79765,7 +71311,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListPublicSshKeysForAuthenticatedUser( input, - usersListPublicSshKeysForAuthenticatedUserResponder, + usersListPublicSshKeysForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79775,7 +71321,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListPublicSshKeysForAuthenticatedUserResponseValidator( + ctx.body = usersListPublicSshKeysForAuthenticatedUser.validator( status, body, ) @@ -79811,7 +71357,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersCreatePublicSshKeyForAuthenticatedUser( input, - usersCreatePublicSshKeyForAuthenticatedUserResponder, + usersCreatePublicSshKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79821,7 +71367,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersCreatePublicSshKeyForAuthenticatedUserResponseValidator( + ctx.body = usersCreatePublicSshKeyForAuthenticatedUser.validator( status, body, ) @@ -79852,7 +71398,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersGetPublicSshKeyForAuthenticatedUser( input, - usersGetPublicSshKeyForAuthenticatedUserResponder, + usersGetPublicSshKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79862,7 +71408,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersGetPublicSshKeyForAuthenticatedUserResponseValidator( + ctx.body = usersGetPublicSshKeyForAuthenticatedUser.validator( status, body, ) @@ -79893,7 +71439,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersDeletePublicSshKeyForAuthenticatedUser( input, - usersDeletePublicSshKeyForAuthenticatedUserResponder, + usersDeletePublicSshKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79903,7 +71449,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersDeletePublicSshKeyForAuthenticatedUserResponseValidator( + ctx.body = usersDeletePublicSshKeyForAuthenticatedUser.validator( status, body, ) @@ -79935,7 +71481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsListSubscriptionsForAuthenticatedUser( input, - appsListSubscriptionsForAuthenticatedUserResponder, + appsListSubscriptionsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -79945,7 +71491,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsListSubscriptionsForAuthenticatedUserResponseValidator( + ctx.body = appsListSubscriptionsForAuthenticatedUser.validator( status, body, ) @@ -79977,7 +71523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .appsListSubscriptionsForAuthenticatedUserStubbed( input, - appsListSubscriptionsForAuthenticatedUserStubbedResponder, + appsListSubscriptionsForAuthenticatedUserStubbed.responder, ctx, ) .catch((err) => { @@ -79987,11 +71533,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - appsListSubscriptionsForAuthenticatedUserStubbedResponseValidator( - status, - body, - ) + ctx.body = appsListSubscriptionsForAuthenticatedUserStubbed.validator( + status, + body, + ) ctx.status = status return next() }, @@ -80021,7 +71566,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListMembershipsForAuthenticatedUser( input, - orgsListMembershipsForAuthenticatedUserResponder, + orgsListMembershipsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80031,10 +71576,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListMembershipsForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = orgsListMembershipsForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80062,7 +71604,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsGetMembershipForAuthenticatedUser( input, - orgsGetMembershipForAuthenticatedUserResponder, + orgsGetMembershipForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80072,10 +71614,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsGetMembershipForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = orgsGetMembershipForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80111,7 +71650,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsUpdateMembershipForAuthenticatedUser( input, - orgsUpdateMembershipForAuthenticatedUserResponder, + orgsUpdateMembershipForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80121,7 +71660,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsUpdateMembershipForAuthenticatedUserResponseValidator( + ctx.body = orgsUpdateMembershipForAuthenticatedUser.validator( status, body, ) @@ -80153,7 +71692,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsListForAuthenticatedUser( input, - migrationsListForAuthenticatedUserResponder, + migrationsListForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80163,10 +71702,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsListForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = migrationsListForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80202,7 +71738,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsStartForAuthenticatedUser( input, - migrationsStartForAuthenticatedUserResponder, + migrationsStartForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80212,10 +71748,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsStartForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = migrationsStartForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80256,7 +71789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsGetStatusForAuthenticatedUser( input, - migrationsGetStatusForAuthenticatedUserResponder, + migrationsGetStatusForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80266,10 +71799,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsGetStatusForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = migrationsGetStatusForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80297,7 +71827,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsGetArchiveForAuthenticatedUser( input, - migrationsGetArchiveForAuthenticatedUserResponder, + migrationsGetArchiveForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80307,7 +71837,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsGetArchiveForAuthenticatedUserResponseValidator( + ctx.body = migrationsGetArchiveForAuthenticatedUser.validator( status, body, ) @@ -80338,7 +71868,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsDeleteArchiveForAuthenticatedUser( input, - migrationsDeleteArchiveForAuthenticatedUserResponder, + migrationsDeleteArchiveForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80348,7 +71878,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsDeleteArchiveForAuthenticatedUserResponseValidator( + ctx.body = migrationsDeleteArchiveForAuthenticatedUser.validator( status, body, ) @@ -80380,7 +71910,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsUnlockRepoForAuthenticatedUser( input, - migrationsUnlockRepoForAuthenticatedUserResponder, + migrationsUnlockRepoForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80390,7 +71920,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsUnlockRepoForAuthenticatedUserResponseValidator( + ctx.body = migrationsUnlockRepoForAuthenticatedUser.validator( status, body, ) @@ -80430,7 +71960,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .migrationsListReposForAuthenticatedUser( input, - migrationsListReposForAuthenticatedUserResponder, + migrationsListReposForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80440,10 +71970,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = migrationsListReposForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = migrationsListReposForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80472,7 +71999,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .orgsListForAuthenticatedUser( input, - orgsListForAuthenticatedUserResponder, + orgsListForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80482,7 +72009,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListForAuthenticatedUserResponseValidator(status, body) + ctx.body = orgsListForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80520,7 +72047,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesListPackagesForAuthenticatedUser( input, - packagesListPackagesForAuthenticatedUserResponder, + packagesListPackagesForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80530,7 +72057,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesListPackagesForAuthenticatedUserResponseValidator( + ctx.body = packagesListPackagesForAuthenticatedUser.validator( status, body, ) @@ -80569,7 +72096,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetPackageForAuthenticatedUser( input, - packagesGetPackageForAuthenticatedUserResponder, + packagesGetPackageForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80579,10 +72106,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesGetPackageForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = packagesGetPackageForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80618,7 +72142,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesDeletePackageForAuthenticatedUser( input, - packagesDeletePackageForAuthenticatedUserResponder, + packagesDeletePackageForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80628,7 +72152,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesDeletePackageForAuthenticatedUserResponseValidator( + ctx.body = packagesDeletePackageForAuthenticatedUser.validator( status, body, ) @@ -80675,7 +72199,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesRestorePackageForAuthenticatedUser( input, - packagesRestorePackageForAuthenticatedUserResponder, + packagesRestorePackageForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80685,7 +72209,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesRestorePackageForAuthenticatedUserResponseValidator( + ctx.body = packagesRestorePackageForAuthenticatedUser.validator( status, body, ) @@ -80736,7 +72260,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser( input, - packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder, + packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80747,7 +72271,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponseValidator( + packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.validator( status, body, ) @@ -80787,7 +72311,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetPackageVersionForAuthenticatedUser( input, - packagesGetPackageVersionForAuthenticatedUserResponder, + packagesGetPackageVersionForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80797,7 +72321,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesGetPackageVersionForAuthenticatedUserResponseValidator( + ctx.body = packagesGetPackageVersionForAuthenticatedUser.validator( status, body, ) @@ -80837,7 +72361,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesDeletePackageVersionForAuthenticatedUser( input, - packagesDeletePackageVersionForAuthenticatedUserResponder, + packagesDeletePackageVersionForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80847,11 +72371,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - packagesDeletePackageVersionForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = packagesDeletePackageVersionForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -80890,7 +72413,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesRestorePackageVersionForAuthenticatedUser( input, - packagesRestorePackageVersionForAuthenticatedUserResponder, + packagesRestorePackageVersionForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80900,11 +72423,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - packagesRestorePackageVersionForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = packagesRestorePackageVersionForAuthenticatedUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -80933,7 +72455,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .projectsCreateForAuthenticatedUser( input, - projectsCreateForAuthenticatedUserResponder, + projectsCreateForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80943,10 +72465,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsCreateForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = projectsCreateForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -80975,7 +72494,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListPublicEmailsForAuthenticatedUser( input, - usersListPublicEmailsForAuthenticatedUserResponder, + usersListPublicEmailsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -80985,7 +72504,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListPublicEmailsForAuthenticatedUserResponseValidator( + ctx.body = usersListPublicEmailsForAuthenticatedUser.validator( status, body, ) @@ -81033,7 +72552,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListForAuthenticatedUser( input, - reposListForAuthenticatedUserResponder, + reposListForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81043,7 +72562,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListForAuthenticatedUserResponseValidator(status, body) + ctx.body = reposListForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -81097,7 +72616,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposCreateForAuthenticatedUser( input, - reposCreateForAuthenticatedUserResponder, + reposCreateForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81107,7 +72626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposCreateForAuthenticatedUserResponseValidator(status, body) + ctx.body = reposCreateForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -81136,7 +72655,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposListInvitationsForAuthenticatedUser( input, - reposListInvitationsForAuthenticatedUserResponder, + reposListInvitationsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81146,7 +72665,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListInvitationsForAuthenticatedUserResponseValidator( + ctx.body = reposListInvitationsForAuthenticatedUser.validator( status, body, ) @@ -81177,7 +72696,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposAcceptInvitationForAuthenticatedUser( input, - reposAcceptInvitationForAuthenticatedUserResponder, + reposAcceptInvitationForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81187,7 +72706,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposAcceptInvitationForAuthenticatedUserResponseValidator( + ctx.body = reposAcceptInvitationForAuthenticatedUser.validator( status, body, ) @@ -81218,7 +72737,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .reposDeclineInvitationForAuthenticatedUser( input, - reposDeclineInvitationForAuthenticatedUserResponder, + reposDeclineInvitationForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81228,7 +72747,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposDeclineInvitationForAuthenticatedUserResponseValidator( + ctx.body = reposDeclineInvitationForAuthenticatedUser.validator( status, body, ) @@ -81260,7 +72779,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListSocialAccountsForAuthenticatedUser( input, - usersListSocialAccountsForAuthenticatedUserResponder, + usersListSocialAccountsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81270,7 +72789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListSocialAccountsForAuthenticatedUserResponseValidator( + ctx.body = usersListSocialAccountsForAuthenticatedUser.validator( status, body, ) @@ -81301,7 +72820,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersAddSocialAccountForAuthenticatedUser( input, - usersAddSocialAccountForAuthenticatedUserResponder, + usersAddSocialAccountForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81311,7 +72830,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersAddSocialAccountForAuthenticatedUserResponseValidator( + ctx.body = usersAddSocialAccountForAuthenticatedUser.validator( status, body, ) @@ -81342,7 +72861,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersDeleteSocialAccountForAuthenticatedUser( input, - usersDeleteSocialAccountForAuthenticatedUserResponder, + usersDeleteSocialAccountForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81352,7 +72871,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersDeleteSocialAccountForAuthenticatedUserResponseValidator( + ctx.body = usersDeleteSocialAccountForAuthenticatedUser.validator( status, body, ) @@ -81384,7 +72903,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListSshSigningKeysForAuthenticatedUser( input, - usersListSshSigningKeysForAuthenticatedUserResponder, + usersListSshSigningKeysForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81394,7 +72913,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListSshSigningKeysForAuthenticatedUserResponseValidator( + ctx.body = usersListSshSigningKeysForAuthenticatedUser.validator( status, body, ) @@ -81432,7 +72951,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersCreateSshSigningKeyForAuthenticatedUser( input, - usersCreateSshSigningKeyForAuthenticatedUserResponder, + usersCreateSshSigningKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81442,7 +72961,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersCreateSshSigningKeyForAuthenticatedUserResponseValidator( + ctx.body = usersCreateSshSigningKeyForAuthenticatedUser.validator( status, body, ) @@ -81473,7 +72992,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersGetSshSigningKeyForAuthenticatedUser( input, - usersGetSshSigningKeyForAuthenticatedUserResponder, + usersGetSshSigningKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81483,7 +73002,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersGetSshSigningKeyForAuthenticatedUserResponseValidator( + ctx.body = usersGetSshSigningKeyForAuthenticatedUser.validator( status, body, ) @@ -81514,7 +73033,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersDeleteSshSigningKeyForAuthenticatedUser( input, - usersDeleteSshSigningKeyForAuthenticatedUserResponder, + usersDeleteSshSigningKeyForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81524,7 +73043,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersDeleteSshSigningKeyForAuthenticatedUserResponseValidator( + ctx.body = usersDeleteSshSigningKeyForAuthenticatedUser.validator( status, body, ) @@ -81558,7 +73077,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListReposStarredByAuthenticatedUser( input, - activityListReposStarredByAuthenticatedUserResponder, + activityListReposStarredByAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81568,7 +73087,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListReposStarredByAuthenticatedUserResponseValidator( + ctx.body = activityListReposStarredByAuthenticatedUser.validator( status, body, ) @@ -81600,7 +73119,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityCheckRepoIsStarredByAuthenticatedUser( input, - activityCheckRepoIsStarredByAuthenticatedUserResponder, + activityCheckRepoIsStarredByAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81610,7 +73129,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityCheckRepoIsStarredByAuthenticatedUserResponseValidator( + ctx.body = activityCheckRepoIsStarredByAuthenticatedUser.validator( status, body, ) @@ -81642,7 +73161,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityStarRepoForAuthenticatedUser( input, - activityStarRepoForAuthenticatedUserResponder, + activityStarRepoForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81652,10 +73171,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityStarRepoForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = activityStarRepoForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -81684,7 +73200,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityUnstarRepoForAuthenticatedUser( input, - activityUnstarRepoForAuthenticatedUserResponder, + activityUnstarRepoForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81694,10 +73210,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityUnstarRepoForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = activityUnstarRepoForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -81726,7 +73239,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListWatchedReposForAuthenticatedUser( input, - activityListWatchedReposForAuthenticatedUserResponder, + activityListWatchedReposForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81736,7 +73249,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListWatchedReposForAuthenticatedUserResponseValidator( + ctx.body = activityListWatchedReposForAuthenticatedUser.validator( status, body, ) @@ -81768,7 +73281,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .teamsListForAuthenticatedUser( input, - teamsListForAuthenticatedUserResponder, + teamsListForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81778,7 +73291,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = teamsListForAuthenticatedUserResponseValidator(status, body) + ctx.body = teamsListForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -81799,7 +73312,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersGetById(input, usersGetByIdResponder, ctx) + .usersGetById(input, usersGetById.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81807,7 +73320,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersGetByIdResponseValidator(status, body) + ctx.body = usersGetById.validator(status, body) ctx.status = status return next() }) @@ -81830,7 +73343,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersList(input, usersListResponder, ctx) + .usersList(input, usersList.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81838,7 +73351,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListResponseValidator(status, body) + ctx.body = usersList.validator(status, body) ctx.status = status return next() }) @@ -81858,7 +73371,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersGetByUsername(input, usersGetByUsernameResponder, ctx) + .usersGetByUsername(input, usersGetByUsername.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81866,7 +73379,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersGetByUsernameResponseValidator(status, body) + ctx.body = usersGetByUsername.validator(status, body) ctx.status = status return next() }) @@ -81903,7 +73416,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersListAttestations(input, usersListAttestationsResponder, ctx) + .usersListAttestations(input, usersListAttestations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -81911,7 +73424,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListAttestationsResponseValidator(status, body) + ctx.body = usersListAttestations.validator(status, body) ctx.status = status return next() }, @@ -81938,7 +73451,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesListDockerMigrationConflictingPackagesForUser( input, - packagesListDockerMigrationConflictingPackagesForUserResponder, + packagesListDockerMigrationConflictingPackagesForUser.responder, ctx, ) .catch((err) => { @@ -81949,7 +73462,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - packagesListDockerMigrationConflictingPackagesForUserResponseValidator( + packagesListDockerMigrationConflictingPackagesForUser.validator( status, body, ) @@ -81989,7 +73502,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListEventsForAuthenticatedUser( input, - activityListEventsForAuthenticatedUserResponder, + activityListEventsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -81999,10 +73512,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListEventsForAuthenticatedUserResponseValidator( - status, - body, - ) + ctx.body = activityListEventsForAuthenticatedUser.validator(status, body) ctx.status = status return next() }, @@ -82040,7 +73550,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListOrgEventsForAuthenticatedUser( input, - activityListOrgEventsForAuthenticatedUserResponder, + activityListOrgEventsForAuthenticatedUser.responder, ctx, ) .catch((err) => { @@ -82050,7 +73560,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListOrgEventsForAuthenticatedUserResponseValidator( + ctx.body = activityListOrgEventsForAuthenticatedUser.validator( status, body, ) @@ -82090,7 +73600,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListPublicEventsForUser( input, - activityListPublicEventsForUserResponder, + activityListPublicEventsForUser.responder, ctx, ) .catch((err) => { @@ -82100,7 +73610,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListPublicEventsForUserResponseValidator(status, body) + ctx.body = activityListPublicEventsForUser.validator(status, body) ctx.status = status return next() }, @@ -82137,7 +73647,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListFollowersForUser( input, - usersListFollowersForUserResponder, + usersListFollowersForUser.responder, ctx, ) .catch((err) => { @@ -82147,7 +73657,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListFollowersForUserResponseValidator(status, body) + ctx.body = usersListFollowersForUser.validator(status, body) ctx.status = status return next() }, @@ -82184,7 +73694,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListFollowingForUser( input, - usersListFollowingForUserResponder, + usersListFollowingForUser.responder, ctx, ) .catch((err) => { @@ -82194,7 +73704,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListFollowingForUserResponseValidator(status, body) + ctx.body = usersListFollowingForUser.validator(status, body) ctx.status = status return next() }, @@ -82223,7 +73733,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersCheckFollowingForUser( input, - usersCheckFollowingForUserResponder, + usersCheckFollowingForUser.responder, ctx, ) .catch((err) => { @@ -82233,7 +73743,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersCheckFollowingForUserResponseValidator(status, body) + ctx.body = usersCheckFollowingForUser.validator(status, body) ctx.status = status return next() }, @@ -82267,7 +73777,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .gistsListForUser(input, gistsListForUserResponder, ctx) + .gistsListForUser(input, gistsListForUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82275,7 +73785,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = gistsListForUserResponseValidator(status, body) + ctx.body = gistsListForUser.validator(status, body) ctx.status = status return next() }, @@ -82308,7 +73818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersListGpgKeysForUser(input, usersListGpgKeysForUserResponder, ctx) + .usersListGpgKeysForUser(input, usersListGpgKeysForUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82316,7 +73826,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListGpgKeysForUserResponseValidator(status, body) + ctx.body = usersListGpgKeysForUser.validator(status, body) ctx.status = status return next() }, @@ -82351,7 +73861,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .usersGetContextForUser(input, usersGetContextForUserResponder, ctx) + .usersGetContextForUser(input, usersGetContextForUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82359,7 +73869,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersGetContextForUserResponseValidator(status, body) + ctx.body = usersGetContextForUser.validator(status, body) ctx.status = status return next() }, @@ -82383,7 +73893,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .appsGetUserInstallation(input, appsGetUserInstallationResponder, ctx) + .appsGetUserInstallation(input, appsGetUserInstallation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82391,7 +73901,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = appsGetUserInstallationResponseValidator(status, body) + ctx.body = appsGetUserInstallation.validator(status, body) ctx.status = status return next() }, @@ -82428,7 +73938,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListPublicKeysForUser( input, - usersListPublicKeysForUserResponder, + usersListPublicKeysForUser.responder, ctx, ) .catch((err) => { @@ -82438,7 +73948,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListPublicKeysForUserResponseValidator(status, body) + ctx.body = usersListPublicKeysForUser.validator(status, body) ctx.status = status return next() }, @@ -82468,7 +73978,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .orgsListForUser(input, orgsListForUserResponder, ctx) + .orgsListForUser(input, orgsListForUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82476,7 +73986,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = orgsListForUserResponseValidator(status, body) + ctx.body = orgsListForUser.validator(status, body) ctx.status = status return next() }) @@ -82521,7 +74031,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesListPackagesForUser( input, - packagesListPackagesForUserResponder, + packagesListPackagesForUser.responder, ctx, ) .catch((err) => { @@ -82531,7 +74041,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesListPackagesForUserResponseValidator(status, body) + ctx.body = packagesListPackagesForUser.validator(status, body) ctx.status = status return next() }, @@ -82568,7 +74078,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetPackageForUser( input, - packagesGetPackageForUserResponder, + packagesGetPackageForUser.responder, ctx, ) .catch((err) => { @@ -82578,7 +74088,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesGetPackageForUserResponseValidator(status, body) + ctx.body = packagesGetPackageForUser.validator(status, body) ctx.status = status return next() }, @@ -82615,7 +74125,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesDeletePackageForUser( input, - packagesDeletePackageForUserResponder, + packagesDeletePackageForUser.responder, ctx, ) .catch((err) => { @@ -82625,7 +74135,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesDeletePackageForUserResponseValidator(status, body) + ctx.body = packagesDeletePackageForUser.validator(status, body) ctx.status = status return next() }, @@ -82670,7 +74180,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesRestorePackageForUser( input, - packagesRestorePackageForUserResponder, + packagesRestorePackageForUser.responder, ctx, ) .catch((err) => { @@ -82680,7 +74190,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesRestorePackageForUserResponseValidator(status, body) + ctx.body = packagesRestorePackageForUser.validator(status, body) ctx.status = status return next() }, @@ -82718,7 +74228,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetAllPackageVersionsForPackageOwnedByUser( input, - packagesGetAllPackageVersionsForPackageOwnedByUserResponder, + packagesGetAllPackageVersionsForPackageOwnedByUser.responder, ctx, ) .catch((err) => { @@ -82728,11 +74238,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - packagesGetAllPackageVersionsForPackageOwnedByUserResponseValidator( - status, - body, - ) + ctx.body = packagesGetAllPackageVersionsForPackageOwnedByUser.validator( + status, + body, + ) ctx.status = status return next() }, @@ -82770,7 +74279,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesGetPackageVersionForUser( input, - packagesGetPackageVersionForUserResponder, + packagesGetPackageVersionForUser.responder, ctx, ) .catch((err) => { @@ -82780,7 +74289,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesGetPackageVersionForUserResponseValidator(status, body) + ctx.body = packagesGetPackageVersionForUser.validator(status, body) ctx.status = status return next() }, @@ -82818,7 +74327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesDeletePackageVersionForUser( input, - packagesDeletePackageVersionForUserResponder, + packagesDeletePackageVersionForUser.responder, ctx, ) .catch((err) => { @@ -82828,10 +74337,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesDeletePackageVersionForUserResponseValidator( - status, - body, - ) + ctx.body = packagesDeletePackageVersionForUser.validator(status, body) ctx.status = status return next() }, @@ -82869,7 +74375,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .packagesRestorePackageVersionForUser( input, - packagesRestorePackageVersionForUserResponder, + packagesRestorePackageVersionForUser.responder, ctx, ) .catch((err) => { @@ -82879,10 +74385,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = packagesRestorePackageVersionForUserResponseValidator( - status, - body, - ) + ctx.body = packagesRestorePackageVersionForUser.validator(status, body) ctx.status = status return next() }, @@ -82916,7 +74419,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .projectsListForUser(input, projectsListForUserResponder, ctx) + .projectsListForUser(input, projectsListForUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -82924,7 +74427,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = projectsListForUserResponseValidator(status, body) + ctx.body = projectsListForUser.validator(status, body) ctx.status = status return next() }, @@ -82961,7 +74464,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListReceivedEventsForUser( input, - activityListReceivedEventsForUserResponder, + activityListReceivedEventsForUser.responder, ctx, ) .catch((err) => { @@ -82971,10 +74474,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListReceivedEventsForUserResponseValidator( - status, - body, - ) + ctx.body = activityListReceivedEventsForUser.validator(status, body) ctx.status = status return next() }, @@ -83011,7 +74511,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListReceivedPublicEventsForUser( input, - activityListReceivedPublicEventsForUserResponder, + activityListReceivedPublicEventsForUser.responder, ctx, ) .catch((err) => { @@ -83021,10 +74521,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListReceivedPublicEventsForUserResponseValidator( - status, - body, - ) + ctx.body = activityListReceivedPublicEventsForUser.validator(status, body) ctx.status = status return next() }, @@ -83063,7 +74560,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .reposListForUser(input, reposListForUserResponder, ctx) + .reposListForUser(input, reposListForUser.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83071,7 +74568,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = reposListForUserResponseValidator(status, body) + ctx.body = reposListForUser.validator(status, body) ctx.status = status return next() }, @@ -83099,7 +74596,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .billingGetGithubActionsBillingUser( input, - billingGetGithubActionsBillingUserResponder, + billingGetGithubActionsBillingUser.responder, ctx, ) .catch((err) => { @@ -83109,10 +74606,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = billingGetGithubActionsBillingUserResponseValidator( - status, - body, - ) + ctx.body = billingGetGithubActionsBillingUser.validator(status, body) ctx.status = status return next() }, @@ -83140,7 +74634,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .billingGetGithubPackagesBillingUser( input, - billingGetGithubPackagesBillingUserResponder, + billingGetGithubPackagesBillingUser.responder, ctx, ) .catch((err) => { @@ -83150,10 +74644,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = billingGetGithubPackagesBillingUserResponseValidator( - status, - body, - ) + ctx.body = billingGetGithubPackagesBillingUser.validator(status, body) ctx.status = status return next() }, @@ -83181,7 +74672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .billingGetSharedStorageBillingUser( input, - billingGetSharedStorageBillingUserResponder, + billingGetSharedStorageBillingUser.responder, ctx, ) .catch((err) => { @@ -83191,10 +74682,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = billingGetSharedStorageBillingUserResponseValidator( - status, - body, - ) + ctx.body = billingGetSharedStorageBillingUser.validator(status, body) ctx.status = status return next() }, @@ -83231,7 +74719,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListSocialAccountsForUser( input, - usersListSocialAccountsForUserResponder, + usersListSocialAccountsForUser.responder, ctx, ) .catch((err) => { @@ -83241,7 +74729,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListSocialAccountsForUserResponseValidator(status, body) + ctx.body = usersListSocialAccountsForUser.validator(status, body) ctx.status = status return next() }, @@ -83278,7 +74766,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .usersListSshSigningKeysForUser( input, - usersListSshSigningKeysForUserResponder, + usersListSshSigningKeysForUser.responder, ctx, ) .catch((err) => { @@ -83288,7 +74776,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = usersListSshSigningKeysForUserResponseValidator(status, body) + ctx.body = usersListSshSigningKeysForUser.validator(status, body) ctx.status = status return next() }, @@ -83327,7 +74815,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListReposStarredByUser( input, - activityListReposStarredByUserResponder, + activityListReposStarredByUser.responder, ctx, ) .catch((err) => { @@ -83337,7 +74825,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListReposStarredByUserResponseValidator(status, body) + ctx.body = activityListReposStarredByUser.validator(status, body) ctx.status = status return next() }, @@ -83374,7 +74862,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .activityListReposWatchedByUser( input, - activityListReposWatchedByUserResponder, + activityListReposWatchedByUser.responder, ctx, ) .catch((err) => { @@ -83384,7 +74872,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = activityListReposWatchedByUserResponseValidator(status, body) + ctx.body = activityListReposWatchedByUser.validator(status, body) ctx.status = status return next() }, @@ -83399,7 +74887,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .metaGetAllVersions(input, metaGetAllVersionsResponder, ctx) + .metaGetAllVersions(input, metaGetAllVersions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83407,7 +74895,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = metaGetAllVersionsResponseValidator(status, body) + ctx.body = metaGetAllVersions.validator(status, body) ctx.status = status return next() }) @@ -83421,7 +74909,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .metaGetZen(input, metaGetZenResponder, ctx) + .metaGetZen(input, metaGetZen.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -83429,7 +74917,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = metaGetZenResponseValidator(status, body) + ctx.body = metaGetZen.validator(status, body) ctx.status = status return next() }) diff --git a/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts b/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts index 2733c0755..6d1cf786a 100644 --- a/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts +++ b/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts @@ -108,31 +108,25 @@ import { Response, ServerConfig, StatusCode, - r, + b, startServer, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const getServiceStatusResponder = { +const getServiceStatus = b((r) => ({ with200: r.with200<{ statusString: string - }>, - withDefault: r.withDefault, + }>(z.object({ statusString: z.string() })), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type GetServiceStatusResponder = typeof getServiceStatusResponder & +type GetServiceStatusResponder = (typeof getServiceStatus)["responder"] & KoaRuntimeResponder -const getServiceStatusResponseValidator = responseValidationFactory( - [["200", z.object({ statusString: z.string() })]], - s_Azure_Core_Foundations_ErrorResponse, -) - export type GetServiceStatus = ( params: Params< void, @@ -153,8 +147,8 @@ export type GetServiceStatus = ( | Response > -const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder = - { +const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus = b( + (r) => ({ with200: r.with200< | { error?: t_Azure_Core_Foundations_Error @@ -167,38 +161,32 @@ const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusRespon id: string status: t_Azure_Core_Foundations_OperationState } - >, - withDefault: r.withDefault, + >( + z.union([ + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: s_Widget.optional(), + }), + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + }), + ]), + ), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, - } + }), +) type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder = - typeof widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder & + (typeof widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus)["responder"] & KoaRuntimeResponder -const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: s_Widget.optional(), - }), - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - }), - ]), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - export type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus = ( params: Params< @@ -228,23 +216,17 @@ export type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus | Response > -const widgetsCreateOrUpdateWidgetResponder = { - with200: r.with200, - with201: r.with201, - withDefault: r.withDefault, +const widgetsCreateOrUpdateWidget = b((r) => ({ + with200: r.with200(s_Widget), + with201: r.with201(s_Widget), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type WidgetsCreateOrUpdateWidgetResponder = - typeof widgetsCreateOrUpdateWidgetResponder & KoaRuntimeResponder - -const widgetsCreateOrUpdateWidgetResponseValidator = responseValidationFactory( - [ - ["200", s_Widget], - ["201", s_Widget], - ], - s_Azure_Core_Foundations_ErrorResponse, -) + (typeof widgetsCreateOrUpdateWidget)["responder"] & KoaRuntimeResponder export type WidgetsCreateOrUpdateWidget = ( params: Params< @@ -262,20 +244,17 @@ export type WidgetsCreateOrUpdateWidget = ( | Response > -const widgetsGetWidgetResponder = { - with200: r.with200, - withDefault: r.withDefault, +const widgetsGetWidget = b((r) => ({ + with200: r.with200(s_Widget), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type WidgetsGetWidgetResponder = typeof widgetsGetWidgetResponder & +type WidgetsGetWidgetResponder = (typeof widgetsGetWidget)["responder"] & KoaRuntimeResponder -const widgetsGetWidgetResponseValidator = responseValidationFactory( - [["200", s_Widget]], - s_Azure_Core_Foundations_ErrorResponse, -) - export type WidgetsGetWidget = ( params: Params< t_WidgetsGetWidgetParamSchema, @@ -291,33 +270,27 @@ export type WidgetsGetWidget = ( | Response > -const widgetsDeleteWidgetResponder = { +const widgetsDeleteWidget = b((r) => ({ with202: r.with202<{ error?: t_Azure_Core_Foundations_Error id: string status: t_Azure_Core_Foundations_OperationState - }>, - withDefault: r.withDefault, + }>( + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + }), + ), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type WidgetsDeleteWidgetResponder = typeof widgetsDeleteWidgetResponder & +type WidgetsDeleteWidgetResponder = (typeof widgetsDeleteWidget)["responder"] & KoaRuntimeResponder -const widgetsDeleteWidgetResponseValidator = responseValidationFactory( - [ - [ - "202", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, -) - export type WidgetsDeleteWidget = ( params: Params< t_WidgetsDeleteWidgetParamSchema, @@ -340,20 +313,17 @@ export type WidgetsDeleteWidget = ( | Response > -const widgetsListWidgetsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const widgetsListWidgets = b((r) => ({ + with200: r.with200(s_PagedWidget), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type WidgetsListWidgetsResponder = typeof widgetsListWidgetsResponder & +type WidgetsListWidgetsResponder = (typeof widgetsListWidgets)["responder"] & KoaRuntimeResponder -const widgetsListWidgetsResponseValidator = responseValidationFactory( - [["200", s_PagedWidget]], - s_Azure_Core_Foundations_ErrorResponse, -) - export type WidgetsListWidgets = ( params: Params< void, @@ -369,20 +339,17 @@ export type WidgetsListWidgets = ( | Response > -const widgetsGetAnalyticsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const widgetsGetAnalytics = b((r) => ({ + with200: r.with200(s_WidgetAnalytics), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type WidgetsGetAnalyticsResponder = typeof widgetsGetAnalyticsResponder & +type WidgetsGetAnalyticsResponder = (typeof widgetsGetAnalytics)["responder"] & KoaRuntimeResponder -const widgetsGetAnalyticsResponseValidator = responseValidationFactory( - [["200", s_WidgetAnalytics]], - s_Azure_Core_Foundations_ErrorResponse, -) - export type WidgetsGetAnalytics = ( params: Params< t_WidgetsGetAnalyticsParamSchema, @@ -398,23 +365,17 @@ export type WidgetsGetAnalytics = ( | Response > -const widgetsUpdateAnalyticsResponder = { - with200: r.with200, - with201: r.with201, - withDefault: r.withDefault, +const widgetsUpdateAnalytics = b((r) => ({ + with200: r.with200(s_WidgetAnalytics), + with201: r.with201(s_WidgetAnalytics), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type WidgetsUpdateAnalyticsResponder = typeof widgetsUpdateAnalyticsResponder & - KoaRuntimeResponder - -const widgetsUpdateAnalyticsResponseValidator = responseValidationFactory( - [ - ["200", s_WidgetAnalytics], - ["201", s_WidgetAnalytics], - ], - s_Azure_Core_Foundations_ErrorResponse, -) +type WidgetsUpdateAnalyticsResponder = + (typeof widgetsUpdateAnalytics)["responder"] & KoaRuntimeResponder export type WidgetsUpdateAnalytics = ( params: Params< @@ -432,34 +393,28 @@ export type WidgetsUpdateAnalytics = ( | Response > -const widgetsGetRepairStatusResponder = { +const widgetsGetRepairStatus = b((r) => ({ with200: r.with200<{ error?: t_Azure_Core_Foundations_Error id: string result?: t_WidgetRepairRequest status: t_Azure_Core_Foundations_OperationState - }>, - withDefault: r.withDefault, + }>( + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: s_WidgetRepairRequest.optional(), + }), + ), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type WidgetsGetRepairStatusResponder = typeof widgetsGetRepairStatusResponder & - KoaRuntimeResponder - -const widgetsGetRepairStatusResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: s_WidgetRepairRequest.optional(), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, -) +type WidgetsGetRepairStatusResponder = + (typeof widgetsGetRepairStatus)["responder"] & KoaRuntimeResponder export type WidgetsGetRepairStatus = ( params: Params< @@ -484,7 +439,7 @@ export type WidgetsGetRepairStatus = ( | Response > -const widgetsScheduleRepairsResponder = { +const widgetsScheduleRepairs = b((r) => ({ with202: r.with202<{ error?: t_Azure_Core_Foundations_Error id: string @@ -496,36 +451,30 @@ const widgetsScheduleRepairsResponder = { updatedDateTime: string } status: t_Azure_Core_Foundations_OperationState - }>, - withDefault: r.withDefault, + }>( + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: z + .object({ + requestState: s_WidgetRepairState, + scheduledDateTime: z.string().datetime({ offset: true }), + createdDateTime: z.string().datetime({ offset: true }), + updatedDateTime: z.string().datetime({ offset: true }), + completedDateTime: z.string().datetime({ offset: true }), + }) + .optional(), + }), + ), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type WidgetsScheduleRepairsResponder = typeof widgetsScheduleRepairsResponder & - KoaRuntimeResponder - -const widgetsScheduleRepairsResponseValidator = responseValidationFactory( - [ - [ - "202", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: z - .object({ - requestState: s_WidgetRepairState, - scheduledDateTime: z.string().datetime({ offset: true }), - createdDateTime: z.string().datetime({ offset: true }), - updatedDateTime: z.string().datetime({ offset: true }), - completedDateTime: z.string().datetime({ offset: true }), - }) - .optional(), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, -) +type WidgetsScheduleRepairsResponder = + (typeof widgetsScheduleRepairs)["responder"] & KoaRuntimeResponder export type WidgetsScheduleRepairs = ( params: Params< @@ -556,35 +505,29 @@ export type WidgetsScheduleRepairs = ( | Response > -const widgetPartsGetWidgetPartOperationStatusResponder = { +const widgetPartsGetWidgetPartOperationStatus = b((r) => ({ with200: r.with200<{ error?: t_Azure_Core_Foundations_Error id: string result?: t_WidgetPart status: t_Azure_Core_Foundations_OperationState - }>, - withDefault: r.withDefault, + }>( + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: s_WidgetPart.optional(), + }), + ), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type WidgetPartsGetWidgetPartOperationStatusResponder = - typeof widgetPartsGetWidgetPartOperationStatusResponder & KoaRuntimeResponder - -const widgetPartsGetWidgetPartOperationStatusResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: s_WidgetPart.optional(), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) + (typeof widgetPartsGetWidgetPartOperationStatus)["responder"] & + KoaRuntimeResponder export type WidgetPartsGetWidgetPartOperationStatus = ( params: Params< @@ -609,19 +552,16 @@ export type WidgetPartsGetWidgetPartOperationStatus = ( | Response > -const widgetPartsCreateWidgetPartResponder = { - with201: r.with201, - withDefault: r.withDefault, +const widgetPartsCreateWidgetPart = b((r) => ({ + with201: r.with201(z.undefined()), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type WidgetPartsCreateWidgetPartResponder = - typeof widgetPartsCreateWidgetPartResponder & KoaRuntimeResponder - -const widgetPartsCreateWidgetPartResponseValidator = responseValidationFactory( - [["201", z.undefined()]], - s_Azure_Core_Foundations_ErrorResponse, -) + (typeof widgetPartsCreateWidgetPart)["responder"] & KoaRuntimeResponder export type WidgetPartsCreateWidgetPart = ( params: Params< @@ -638,19 +578,16 @@ export type WidgetPartsCreateWidgetPart = ( | Response > -const widgetPartsListWidgetPartsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const widgetPartsListWidgetParts = b((r) => ({ + with200: r.with200(s_PagedWidgetPart), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type WidgetPartsListWidgetPartsResponder = - typeof widgetPartsListWidgetPartsResponder & KoaRuntimeResponder - -const widgetPartsListWidgetPartsResponseValidator = responseValidationFactory( - [["200", s_PagedWidgetPart]], - s_Azure_Core_Foundations_ErrorResponse, -) + (typeof widgetPartsListWidgetParts)["responder"] & KoaRuntimeResponder export type WidgetPartsListWidgetParts = ( params: Params< @@ -667,19 +604,16 @@ export type WidgetPartsListWidgetParts = ( | Response > -const widgetPartsGetWidgetPartResponder = { - with200: r.with200, - withDefault: r.withDefault, +const widgetPartsGetWidgetPart = b((r) => ({ + with200: r.with200(s_WidgetPart), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type WidgetPartsGetWidgetPartResponder = - typeof widgetPartsGetWidgetPartResponder & KoaRuntimeResponder - -const widgetPartsGetWidgetPartResponseValidator = responseValidationFactory( - [["200", s_WidgetPart]], - s_Azure_Core_Foundations_ErrorResponse, -) + (typeof widgetPartsGetWidgetPart)["responder"] & KoaRuntimeResponder export type WidgetPartsGetWidgetPart = ( params: Params< @@ -696,19 +630,16 @@ export type WidgetPartsGetWidgetPart = ( | Response > -const widgetPartsDeleteWidgetPartResponder = { - with204: r.with204, - withDefault: r.withDefault, +const widgetPartsDeleteWidgetPart = b((r) => ({ + with204: r.with204(z.undefined()), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type WidgetPartsDeleteWidgetPartResponder = - typeof widgetPartsDeleteWidgetPartResponder & KoaRuntimeResponder - -const widgetPartsDeleteWidgetPartResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - s_Azure_Core_Foundations_ErrorResponse, -) + (typeof widgetPartsDeleteWidgetPart)["responder"] & KoaRuntimeResponder export type WidgetPartsDeleteWidgetPart = ( params: Params< @@ -725,32 +656,26 @@ export type WidgetPartsDeleteWidgetPart = ( | Response > -const widgetPartsReorderPartsResponder = { +const widgetPartsReorderParts = b((r) => ({ with202: r.with202<{ error?: t_Azure_Core_Foundations_Error id: string status: t_Azure_Core_Foundations_OperationState - }>, - withDefault: r.withDefault, + }>( + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + }), + ), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type WidgetPartsReorderPartsResponder = - typeof widgetPartsReorderPartsResponder & KoaRuntimeResponder - -const widgetPartsReorderPartsResponseValidator = responseValidationFactory( - [ - [ - "202", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, -) + (typeof widgetPartsReorderParts)["responder"] & KoaRuntimeResponder export type WidgetPartsReorderParts = ( params: Params< @@ -774,37 +699,30 @@ export type WidgetPartsReorderParts = ( | Response > -const manufacturersGetManufacturerOperationStatusResponder = { +const manufacturersGetManufacturerOperationStatus = b((r) => ({ with200: r.with200<{ error?: t_Azure_Core_Foundations_Error id: string result?: t_Manufacturer status: t_Azure_Core_Foundations_OperationState - }>, - withDefault: r.withDefault, + }>( + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + result: s_Manufacturer.optional(), + }), + ), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type ManufacturersGetManufacturerOperationStatusResponder = - typeof manufacturersGetManufacturerOperationStatusResponder & + (typeof manufacturersGetManufacturerOperationStatus)["responder"] & KoaRuntimeResponder -const manufacturersGetManufacturerOperationStatusResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - result: s_Manufacturer.optional(), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) - export type ManufacturersGetManufacturerOperationStatus = ( params: Params< t_ManufacturersGetManufacturerOperationStatusParamSchema, @@ -828,24 +746,18 @@ export type ManufacturersGetManufacturerOperationStatus = ( | Response > -const manufacturersCreateOrReplaceManufacturerResponder = { - with200: r.with200, - with201: r.with201, - withDefault: r.withDefault, +const manufacturersCreateOrReplaceManufacturer = b((r) => ({ + with200: r.with200(s_Manufacturer), + with201: r.with201(s_Manufacturer), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type ManufacturersCreateOrReplaceManufacturerResponder = - typeof manufacturersCreateOrReplaceManufacturerResponder & KoaRuntimeResponder - -const manufacturersCreateOrReplaceManufacturerResponseValidator = - responseValidationFactory( - [ - ["200", s_Manufacturer], - ["201", s_Manufacturer], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) + (typeof manufacturersCreateOrReplaceManufacturer)["responder"] & + KoaRuntimeResponder export type ManufacturersCreateOrReplaceManufacturer = ( params: Params< @@ -863,19 +775,16 @@ export type ManufacturersCreateOrReplaceManufacturer = ( | Response > -const manufacturersGetManufacturerResponder = { - with200: r.with200, - withDefault: r.withDefault, +const manufacturersGetManufacturer = b((r) => ({ + with200: r.with200(s_Manufacturer), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type ManufacturersGetManufacturerResponder = - typeof manufacturersGetManufacturerResponder & KoaRuntimeResponder - -const manufacturersGetManufacturerResponseValidator = responseValidationFactory( - [["200", s_Manufacturer]], - s_Azure_Core_Foundations_ErrorResponse, -) + (typeof manufacturersGetManufacturer)["responder"] & KoaRuntimeResponder export type ManufacturersGetManufacturer = ( params: Params< @@ -892,33 +801,26 @@ export type ManufacturersGetManufacturer = ( | Response > -const manufacturersDeleteManufacturerResponder = { +const manufacturersDeleteManufacturer = b((r) => ({ with202: r.with202<{ error?: t_Azure_Core_Foundations_Error id: string status: t_Azure_Core_Foundations_OperationState - }>, - withDefault: r.withDefault, + }>( + z.object({ + id: z.string(), + status: s_Azure_Core_Foundations_OperationState, + error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), + }), + ), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type ManufacturersDeleteManufacturerResponder = - typeof manufacturersDeleteManufacturerResponder & KoaRuntimeResponder - -const manufacturersDeleteManufacturerResponseValidator = - responseValidationFactory( - [ - [ - "202", - z.object({ - id: z.string(), - status: s_Azure_Core_Foundations_OperationState, - error: z.lazy(() => s_Azure_Core_Foundations_Error.optional()), - }), - ], - ], - s_Azure_Core_Foundations_ErrorResponse, - ) + (typeof manufacturersDeleteManufacturer)["responder"] & KoaRuntimeResponder export type ManufacturersDeleteManufacturer = ( params: Params< @@ -942,20 +844,16 @@ export type ManufacturersDeleteManufacturer = ( | Response > -const manufacturersListManufacturersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const manufacturersListManufacturers = b((r) => ({ + with200: r.with200(s_PagedManufacturer), + withDefault: r.withDefault( + s_Azure_Core_Foundations_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type ManufacturersListManufacturersResponder = - typeof manufacturersListManufacturersResponder & KoaRuntimeResponder - -const manufacturersListManufacturersResponseValidator = - responseValidationFactory( - [["200", s_PagedManufacturer]], - s_Azure_Core_Foundations_ErrorResponse, - ) + (typeof manufacturersListManufacturers)["responder"] & KoaRuntimeResponder export type ManufacturersListManufacturers = ( params: Params< @@ -1024,7 +922,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getServiceStatus(input, getServiceStatusResponder, ctx) + .getServiceStatus(input, getServiceStatus.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1032,7 +930,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getServiceStatusResponseValidator(status, body) + ctx.body = getServiceStatus.validator(status, body) ctx.status = status return next() }) @@ -1065,7 +963,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus( input, - widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder, + widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus.responder, ctx, ) .catch((err) => { @@ -1076,7 +974,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponseValidator( + widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus.validator( status, body, ) @@ -1135,7 +1033,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .widgetsCreateOrUpdateWidget( input, - widgetsCreateOrUpdateWidgetResponder, + widgetsCreateOrUpdateWidget.responder, ctx, ) .catch((err) => { @@ -1145,7 +1043,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetsCreateOrUpdateWidgetResponseValidator(status, body) + ctx.body = widgetsCreateOrUpdateWidget.validator(status, body) ctx.status = status return next() }, @@ -1186,7 +1084,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetsGetWidget(input, widgetsGetWidgetResponder, ctx) + .widgetsGetWidget(input, widgetsGetWidget.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1194,7 +1092,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetsGetWidgetResponseValidator(status, body) + ctx.body = widgetsGetWidget.validator(status, body) ctx.status = status return next() }) @@ -1239,7 +1137,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetsDeleteWidget(input, widgetsDeleteWidgetResponder, ctx) + .widgetsDeleteWidget(input, widgetsDeleteWidget.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1247,7 +1145,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetsDeleteWidgetResponseValidator(status, body) + ctx.body = widgetsDeleteWidget.validator(status, body) ctx.status = status return next() }, @@ -1287,7 +1185,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetsListWidgets(input, widgetsListWidgetsResponder, ctx) + .widgetsListWidgets(input, widgetsListWidgets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1295,7 +1193,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetsListWidgetsResponseValidator(status, body) + ctx.body = widgetsListWidgets.validator(status, body) ctx.status = status return next() }) @@ -1338,7 +1236,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetsGetAnalytics(input, widgetsGetAnalyticsResponder, ctx) + .widgetsGetAnalytics(input, widgetsGetAnalytics.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1346,7 +1244,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetsGetAnalyticsResponseValidator(status, body) + ctx.body = widgetsGetAnalytics.validator(status, body) ctx.status = status return next() }, @@ -1398,7 +1296,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetsUpdateAnalytics(input, widgetsUpdateAnalyticsResponder, ctx) + .widgetsUpdateAnalytics(input, widgetsUpdateAnalytics.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1406,7 +1304,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetsUpdateAnalyticsResponseValidator(status, body) + ctx.body = widgetsUpdateAnalytics.validator(status, body) ctx.status = status return next() }, @@ -1441,7 +1339,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetsGetRepairStatus(input, widgetsGetRepairStatusResponder, ctx) + .widgetsGetRepairStatus(input, widgetsGetRepairStatus.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1449,7 +1347,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetsGetRepairStatusResponseValidator(status, body) + ctx.body = widgetsGetRepairStatus.validator(status, body) ctx.status = status return next() }, @@ -1497,7 +1395,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetsScheduleRepairs(input, widgetsScheduleRepairsResponder, ctx) + .widgetsScheduleRepairs(input, widgetsScheduleRepairs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1505,7 +1403,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetsScheduleRepairsResponseValidator(status, body) + ctx.body = widgetsScheduleRepairs.validator(status, body) ctx.status = status return next() }, @@ -1543,7 +1441,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .widgetPartsGetWidgetPartOperationStatus( input, - widgetPartsGetWidgetPartOperationStatusResponder, + widgetPartsGetWidgetPartOperationStatus.responder, ctx, ) .catch((err) => { @@ -1553,10 +1451,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetPartsGetWidgetPartOperationStatusResponseValidator( - status, - body, - ) + ctx.body = widgetPartsGetWidgetPartOperationStatus.validator(status, body) ctx.status = status return next() }, @@ -1612,7 +1507,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .widgetPartsCreateWidgetPart( input, - widgetPartsCreateWidgetPartResponder, + widgetPartsCreateWidgetPart.responder, ctx, ) .catch((err) => { @@ -1622,7 +1517,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetPartsCreateWidgetPartResponseValidator(status, body) + ctx.body = widgetPartsCreateWidgetPart.validator(status, body) ctx.status = status return next() }, @@ -1666,7 +1561,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .widgetPartsListWidgetParts( input, - widgetPartsListWidgetPartsResponder, + widgetPartsListWidgetParts.responder, ctx, ) .catch((err) => { @@ -1676,7 +1571,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetPartsListWidgetPartsResponseValidator(status, body) + ctx.body = widgetPartsListWidgetParts.validator(status, body) ctx.status = status return next() }, @@ -1723,7 +1618,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetPartsGetWidgetPart(input, widgetPartsGetWidgetPartResponder, ctx) + .widgetPartsGetWidgetPart( + input, + widgetPartsGetWidgetPart.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1731,7 +1630,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetPartsGetWidgetPartResponseValidator(status, body) + ctx.body = widgetPartsGetWidgetPart.validator(status, body) ctx.status = status return next() }, @@ -1782,7 +1681,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .widgetPartsDeleteWidgetPart( input, - widgetPartsDeleteWidgetPartResponder, + widgetPartsDeleteWidgetPart.responder, ctx, ) .catch((err) => { @@ -1792,7 +1691,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetPartsDeleteWidgetPartResponseValidator(status, body) + ctx.body = widgetPartsDeleteWidgetPart.validator(status, body) ctx.status = status return next() }, @@ -1842,7 +1741,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .widgetPartsReorderParts(input, widgetPartsReorderPartsResponder, ctx) + .widgetPartsReorderParts(input, widgetPartsReorderParts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1850,7 +1749,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = widgetPartsReorderPartsResponseValidator(status, body) + ctx.body = widgetPartsReorderParts.validator(status, body) ctx.status = status return next() }, @@ -1887,7 +1786,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .manufacturersGetManufacturerOperationStatus( input, - manufacturersGetManufacturerOperationStatusResponder, + manufacturersGetManufacturerOperationStatus.responder, ctx, ) .catch((err) => { @@ -1897,7 +1796,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = manufacturersGetManufacturerOperationStatusResponseValidator( + ctx.body = manufacturersGetManufacturerOperationStatus.validator( status, body, ) @@ -1956,7 +1855,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .manufacturersCreateOrReplaceManufacturer( input, - manufacturersCreateOrReplaceManufacturerResponder, + manufacturersCreateOrReplaceManufacturer.responder, ctx, ) .catch((err) => { @@ -1966,7 +1865,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = manufacturersCreateOrReplaceManufacturerResponseValidator( + ctx.body = manufacturersCreateOrReplaceManufacturer.validator( status, body, ) @@ -2017,7 +1916,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .manufacturersGetManufacturer( input, - manufacturersGetManufacturerResponder, + manufacturersGetManufacturer.responder, ctx, ) .catch((err) => { @@ -2027,7 +1926,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = manufacturersGetManufacturerResponseValidator(status, body) + ctx.body = manufacturersGetManufacturer.validator(status, body) ctx.status = status return next() }, @@ -2077,7 +1976,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .manufacturersDeleteManufacturer( input, - manufacturersDeleteManufacturerResponder, + manufacturersDeleteManufacturer.responder, ctx, ) .catch((err) => { @@ -2087,7 +1986,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = manufacturersDeleteManufacturerResponseValidator(status, body) + ctx.body = manufacturersDeleteManufacturer.validator(status, body) ctx.status = status return next() }, @@ -2123,7 +2022,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .manufacturersListManufacturers( input, - manufacturersListManufacturersResponder, + manufacturersListManufacturers.responder, ctx, ) .catch((err) => { @@ -2133,7 +2032,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = manufacturersListManufacturersResponseValidator(status, body) + ctx.body = manufacturersListManufacturers.validator(status, body) ctx.status = status return next() }, diff --git a/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts b/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts index e80016a21..fea400daa 100644 --- a/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts +++ b/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts @@ -51,29 +51,23 @@ import { Response, ServerConfig, StatusCode, - r, + b, startServer, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const operationsListResponder = { - with200: r.with200, - withDefault: r.withDefault, +const operationsList = b((r) => ({ + with200: r.with200(s_OperationListResult), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type OperationsListResponder = typeof operationsListResponder & +type OperationsListResponder = (typeof operationsList)["responder"] & KoaRuntimeResponder -const operationsListResponseValidator = responseValidationFactory( - [["200", s_OperationListResult]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) - export type OperationsList = ( params: Params, respond: OperationsListResponder, @@ -84,18 +78,16 @@ export type OperationsList = ( | Response > -const employeesGetResponder = { - with200: r.with200, - withDefault: r.withDefault, +const employeesGet = b((r) => ({ + with200: r.with200(s_Employee), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} - -type EmployeesGetResponder = typeof employeesGetResponder & KoaRuntimeResponder +})) -const employeesGetResponseValidator = responseValidationFactory( - [["200", s_Employee]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) +type EmployeesGetResponder = (typeof employeesGet)["responder"] & + KoaRuntimeResponder export type EmployeesGet = ( params: Params< @@ -112,23 +104,17 @@ export type EmployeesGet = ( | Response > -const employeesCreateOrUpdateResponder = { - with200: r.with200, - with201: r.with201, - withDefault: r.withDefault, +const employeesCreateOrUpdate = b((r) => ({ + with200: r.with200(s_Employee), + with201: r.with201(s_Employee), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type EmployeesCreateOrUpdateResponder = - typeof employeesCreateOrUpdateResponder & KoaRuntimeResponder - -const employeesCreateOrUpdateResponseValidator = responseValidationFactory( - [ - ["200", s_Employee], - ["201", s_Employee], - ], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) + (typeof employeesCreateOrUpdate)["responder"] & KoaRuntimeResponder export type EmployeesCreateOrUpdate = ( params: Params< @@ -146,20 +132,17 @@ export type EmployeesCreateOrUpdate = ( | Response > -const employeesUpdateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const employeesUpdate = b((r) => ({ + with200: r.with200(s_Employee), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type EmployeesUpdateResponder = typeof employeesUpdateResponder & +type EmployeesUpdateResponder = (typeof employeesUpdate)["responder"] & KoaRuntimeResponder -const employeesUpdateResponseValidator = responseValidationFactory( - [["200", s_Employee]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) - export type EmployeesUpdate = ( params: Params< t_EmployeesUpdateParamSchema, @@ -175,24 +158,18 @@ export type EmployeesUpdate = ( | Response > -const employeesDeleteResponder = { - with202: r.with202, - with204: r.with204, - withDefault: r.withDefault, +const employeesDelete = b((r) => ({ + with202: r.with202(z.undefined()), + with204: r.with204(z.undefined()), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type EmployeesDeleteResponder = typeof employeesDeleteResponder & +type EmployeesDeleteResponder = (typeof employeesDelete)["responder"] & KoaRuntimeResponder -const employeesDeleteResponseValidator = responseValidationFactory( - [ - ["202", z.undefined()], - ["204", z.undefined()], - ], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) - export type EmployeesDelete = ( params: Params< t_EmployeesDeleteParamSchema, @@ -209,23 +186,17 @@ export type EmployeesDelete = ( | Response > -const employeesCheckExistenceResponder = { - with204: r.with204, - with404: r.with404, - withDefault: r.withDefault, +const employeesCheckExistence = b((r) => ({ + with204: r.with204(z.undefined()), + with404: r.with404(z.undefined()), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type EmployeesCheckExistenceResponder = - typeof employeesCheckExistenceResponder & KoaRuntimeResponder - -const employeesCheckExistenceResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["404", z.undefined()], - ], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) + (typeof employeesCheckExistence)["responder"] & KoaRuntimeResponder export type EmployeesCheckExistence = ( params: Params< @@ -243,19 +214,16 @@ export type EmployeesCheckExistence = ( | Response > -const employeesListByResourceGroupResponder = { - with200: r.with200, - withDefault: r.withDefault, +const employeesListByResourceGroup = b((r) => ({ + with200: r.with200(s_EmployeeListResult), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type EmployeesListByResourceGroupResponder = - typeof employeesListByResourceGroupResponder & KoaRuntimeResponder - -const employeesListByResourceGroupResponseValidator = responseValidationFactory( - [["200", s_EmployeeListResult]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) + (typeof employeesListByResourceGroup)["responder"] & KoaRuntimeResponder export type EmployeesListByResourceGroup = ( params: Params< @@ -272,19 +240,16 @@ export type EmployeesListByResourceGroup = ( | Response > -const employeesListBySubscriptionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const employeesListBySubscription = b((r) => ({ + with200: r.with200(s_EmployeeListResult), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} +})) type EmployeesListBySubscriptionResponder = - typeof employeesListBySubscriptionResponder & KoaRuntimeResponder - -const employeesListBySubscriptionResponseValidator = responseValidationFactory( - [["200", s_EmployeeListResult]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) + (typeof employeesListBySubscription)["responder"] & KoaRuntimeResponder export type EmployeesListBySubscription = ( params: Params< @@ -301,20 +266,17 @@ export type EmployeesListBySubscription = ( | Response > -const employeesMoveResponder = { - with200: r.with200, - withDefault: r.withDefault, +const employeesMove = b((r) => ({ + with200: r.with200(s_MoveResponse), + withDefault: r.withDefault( + s_Azure_ResourceManager_CommonTypes_ErrorResponse, + ), withStatus: r.withStatus, -} +})) -type EmployeesMoveResponder = typeof employeesMoveResponder & +type EmployeesMoveResponder = (typeof employeesMove)["responder"] & KoaRuntimeResponder -const employeesMoveResponseValidator = responseValidationFactory( - [["200", s_MoveResponse]], - s_Azure_ResourceManager_CommonTypes_ErrorResponse, -) - export type EmployeesMove = ( params: Params< t_EmployeesMoveParamSchema, @@ -365,7 +327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .operationsList(input, operationsListResponder, ctx) + .operationsList(input, operationsList.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -373,7 +335,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = operationsListResponseValidator(status, body) + ctx.body = operationsList.validator(status, body) ctx.status = status return next() }, @@ -411,7 +373,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .employeesGet(input, employeesGetResponder, ctx) + .employeesGet(input, employeesGet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -419,7 +381,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = employeesGetResponseValidator(status, body) + ctx.body = employeesGet.validator(status, body) ctx.status = status return next() }, @@ -465,7 +427,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .employeesCreateOrUpdate(input, employeesCreateOrUpdateResponder, ctx) + .employeesCreateOrUpdate(input, employeesCreateOrUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -473,7 +435,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = employeesCreateOrUpdateResponseValidator(status, body) + ctx.body = employeesCreateOrUpdate.validator(status, body) ctx.status = status return next() }, @@ -519,7 +481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .employeesUpdate(input, employeesUpdateResponder, ctx) + .employeesUpdate(input, employeesUpdate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -527,7 +489,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = employeesUpdateResponseValidator(status, body) + ctx.body = employeesUpdate.validator(status, body) ctx.status = status return next() }, @@ -567,7 +529,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .employeesDelete(input, employeesDeleteResponder, ctx) + .employeesDelete(input, employeesDelete.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -575,7 +537,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = employeesDeleteResponseValidator(status, body) + ctx.body = employeesDelete.validator(status, body) ctx.status = status return next() }, @@ -615,7 +577,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .employeesCheckExistence(input, employeesCheckExistenceResponder, ctx) + .employeesCheckExistence(input, employeesCheckExistence.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -623,7 +585,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = employeesCheckExistenceResponseValidator(status, body) + ctx.body = employeesCheckExistence.validator(status, body) ctx.status = status return next() }, @@ -664,7 +626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .employeesListByResourceGroup( input, - employeesListByResourceGroupResponder, + employeesListByResourceGroup.responder, ctx, ) .catch((err) => { @@ -674,7 +636,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = employeesListByResourceGroupResponseValidator(status, body) + ctx.body = employeesListByResourceGroup.validator(status, body) ctx.status = status return next() }, @@ -710,7 +672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .employeesListBySubscription( input, - employeesListBySubscriptionResponder, + employeesListBySubscription.responder, ctx, ) .catch((err) => { @@ -720,7 +682,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = employeesListBySubscriptionResponseValidator(status, body) + ctx.body = employeesListBySubscription.validator(status, body) ctx.status = status return next() }, @@ -766,7 +728,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .employeesMove(input, employeesMoveResponder, ctx) + .employeesMove(input, employeesMove.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -774,7 +736,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = employeesMoveResponseValidator(status, body) + ctx.body = employeesMove.validator(status, body) ctx.status = status return next() }, diff --git a/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts index fe22163c6..7855b1573 100644 --- a/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts @@ -78,38 +78,25 @@ import { Params, Response, ServerConfig, - r, + b, startServer, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const createAppAuthenticatorEnrollmentResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const createAppAuthenticatorEnrollment = b((r) => ({ + with200: r.with200( + s_AppAuthenticatorEnrollment, + ), + with400: r.with400(s_Error), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) type CreateAppAuthenticatorEnrollmentResponder = - typeof createAppAuthenticatorEnrollmentResponder & KoaRuntimeResponder - -const createAppAuthenticatorEnrollmentResponseValidator = - responseValidationFactory( - [ - ["200", s_AppAuthenticatorEnrollment], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) + (typeof createAppAuthenticatorEnrollment)["responder"] & KoaRuntimeResponder export type CreateAppAuthenticatorEnrollment = ( params: Params< @@ -129,27 +116,17 @@ export type CreateAppAuthenticatorEnrollment = ( | Response<404, t_Error> > -const verifyAppAuthenticatorPushNotificationChallengeResponder = { - with200: r.with200, - with204: r.with204, - with400: r.with400, +const verifyAppAuthenticatorPushNotificationChallenge = b((r) => ({ + with200: r.with200(z.undefined()), + with204: r.with204(z.undefined()), + with400: r.with400(z.undefined()), withStatus: r.withStatus, -} +})) type VerifyAppAuthenticatorPushNotificationChallengeResponder = - typeof verifyAppAuthenticatorPushNotificationChallengeResponder & + (typeof verifyAppAuthenticatorPushNotificationChallenge)["responder"] & KoaRuntimeResponder -const verifyAppAuthenticatorPushNotificationChallengeResponseValidator = - responseValidationFactory( - [ - ["200", z.undefined()], - ["204", z.undefined()], - ["400", z.undefined()], - ], - undefined, - ) - export type VerifyAppAuthenticatorPushNotificationChallenge = ( params: Params< t_VerifyAppAuthenticatorPushNotificationChallengeParamSchema, @@ -166,27 +143,18 @@ export type VerifyAppAuthenticatorPushNotificationChallenge = ( | Response<400, void> > -const updateAppAuthenticatorEnrollmentResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const updateAppAuthenticatorEnrollment = b((r) => ({ + with200: r.with200( + s_AppAuthenticatorEnrollment, + ), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) type UpdateAppAuthenticatorEnrollmentResponder = - typeof updateAppAuthenticatorEnrollmentResponder & KoaRuntimeResponder - -const updateAppAuthenticatorEnrollmentResponseValidator = - responseValidationFactory( - [ - ["200", s_AppAuthenticatorEnrollment], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) + (typeof updateAppAuthenticatorEnrollment)["responder"] & KoaRuntimeResponder export type UpdateAppAuthenticatorEnrollment = ( params: Params< @@ -205,27 +173,16 @@ export type UpdateAppAuthenticatorEnrollment = ( | Response<404, t_Error> > -const deleteAppAuthenticatorEnrollmentResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const deleteAppAuthenticatorEnrollment = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) type DeleteAppAuthenticatorEnrollmentResponder = - typeof deleteAppAuthenticatorEnrollmentResponder & KoaRuntimeResponder - -const deleteAppAuthenticatorEnrollmentResponseValidator = - responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, - ) + (typeof deleteAppAuthenticatorEnrollment)["responder"] & KoaRuntimeResponder export type DeleteAppAuthenticatorEnrollment = ( params: Params< @@ -244,25 +201,18 @@ export type DeleteAppAuthenticatorEnrollment = ( | Response<404, t_Error> > -const listAppAuthenticatorPendingPushNotificationChallengesResponder = { - with200: r.with200, - with401: r.with401, +const listAppAuthenticatorPendingPushNotificationChallenges = b((r) => ({ + with200: r.with200( + z.array(s_PushNotificationChallenge), + ), + with401: r.with401(s_Error), withStatus: r.withStatus, -} +})) type ListAppAuthenticatorPendingPushNotificationChallengesResponder = - typeof listAppAuthenticatorPendingPushNotificationChallengesResponder & + (typeof listAppAuthenticatorPendingPushNotificationChallenges)["responder"] & KoaRuntimeResponder -const listAppAuthenticatorPendingPushNotificationChallengesResponseValidator = - responseValidationFactory( - [ - ["200", z.array(s_PushNotificationChallenge)], - ["401", s_Error], - ], - undefined, - ) - export type ListAppAuthenticatorPendingPushNotificationChallenges = ( params: Params< t_ListAppAuthenticatorPendingPushNotificationChallengesParamSchema, @@ -278,25 +228,16 @@ export type ListAppAuthenticatorPendingPushNotificationChallenges = ( | Response<401, t_Error> > -const listAuthenticatorsResponder = { - with200: r.with200, - with403: r.with403, - with429: r.with429, +const listAuthenticators = b((r) => ({ + with200: r.with200(z.array(s_Authenticator)), + with403: r.with403(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type ListAuthenticatorsResponder = typeof listAuthenticatorsResponder & +type ListAuthenticatorsResponder = (typeof listAuthenticators)["responder"] & KoaRuntimeResponder -const listAuthenticatorsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_Authenticator)], - ["403", s_Error], - ["429", s_Error], - ], - undefined, -) - export type ListAuthenticators = ( params: Params, respond: ListAuthenticatorsResponder, @@ -308,27 +249,17 @@ export type ListAuthenticators = ( | Response<429, t_Error> > -const getAuthenticatorResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with429: r.with429, +const getAuthenticator = b((r) => ({ + with200: r.with200(s_Authenticator), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type GetAuthenticatorResponder = typeof getAuthenticatorResponder & +type GetAuthenticatorResponder = (typeof getAuthenticator)["responder"] & KoaRuntimeResponder -const getAuthenticatorResponseValidator = responseValidationFactory( - [ - ["200", s_Authenticator], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, -) - export type GetAuthenticator = ( params: Params< t_GetAuthenticatorParamSchema, @@ -346,27 +277,19 @@ export type GetAuthenticator = ( | Response<429, t_Error> > -const listEnrollmentsResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with429: r.with429, +const listEnrollments = b((r) => ({ + with200: r.with200( + z.array(s_AuthenticatorEnrollment), + ), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type ListEnrollmentsResponder = typeof listEnrollmentsResponder & +type ListEnrollmentsResponder = (typeof listEnrollments)["responder"] & KoaRuntimeResponder -const listEnrollmentsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_AuthenticatorEnrollment)], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, -) - export type ListEnrollments = ( params: Params, respond: ListEnrollmentsResponder, @@ -379,27 +302,17 @@ export type ListEnrollments = ( | Response<429, t_Error> > -const getEnrollmentResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with429: r.with429, +const getEnrollment = b((r) => ({ + with200: r.with200(s_AuthenticatorEnrollment), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type GetEnrollmentResponder = typeof getEnrollmentResponder & +type GetEnrollmentResponder = (typeof getEnrollment)["responder"] & KoaRuntimeResponder -const getEnrollmentResponseValidator = responseValidationFactory( - [ - ["200", s_AuthenticatorEnrollment], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, -) - export type GetEnrollment = ( params: Params, respond: GetEnrollmentResponder, @@ -412,27 +325,17 @@ export type GetEnrollment = ( | Response<429, t_Error> > -const updateEnrollmentResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const updateEnrollment = b((r) => ({ + with200: r.with200(s_AuthenticatorEnrollment), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) -type UpdateEnrollmentResponder = typeof updateEnrollmentResponder & +type UpdateEnrollmentResponder = (typeof updateEnrollment)["responder"] & KoaRuntimeResponder -const updateEnrollmentResponseValidator = responseValidationFactory( - [ - ["200", s_AuthenticatorEnrollment], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, -) - export type UpdateEnrollment = ( params: Params< t_UpdateEnrollmentParamSchema, @@ -450,21 +353,14 @@ export type UpdateEnrollment = ( | Response<404, t_Error> > -const listEmailsResponder = { - with200: r.with200, - with401: r.with401, +const listEmails = b((r) => ({ + with200: r.with200(z.array(s_Email)), + with401: r.with401(s_Error), withStatus: r.withStatus, -} - -type ListEmailsResponder = typeof listEmailsResponder & KoaRuntimeResponder +})) -const listEmailsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_Email)], - ["401", s_Error], - ], - undefined, -) +type ListEmailsResponder = (typeof listEmails)["responder"] & + KoaRuntimeResponder export type ListEmails = ( params: Params, @@ -476,27 +372,17 @@ export type ListEmails = ( | Response<401, t_Error> > -const createEmailResponder = { - with201: r.with201, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with409: r.with409, +const createEmail = b((r) => ({ + with201: r.with201(s_Email), + with400: r.with400(s_Error), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with409: r.with409(s_Error), withStatus: r.withStatus, -} - -type CreateEmailResponder = typeof createEmailResponder & KoaRuntimeResponder +})) -const createEmailResponseValidator = responseValidationFactory( - [ - ["201", s_Email], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["409", s_Error], - ], - undefined, -) +type CreateEmailResponder = (typeof createEmail)["responder"] & + KoaRuntimeResponder export type CreateEmail = ( params: Params, @@ -511,21 +397,13 @@ export type CreateEmail = ( | Response<409, t_Error> > -const getEmailResponder = { - with200: r.with200, - with401: r.with401, +const getEmail = b((r) => ({ + with200: r.with200(s_Email), + with401: r.with401(s_Error), withStatus: r.withStatus, -} +})) -type GetEmailResponder = typeof getEmailResponder & KoaRuntimeResponder - -const getEmailResponseValidator = responseValidationFactory( - [ - ["200", s_Email], - ["401", s_Error], - ], - undefined, -) +type GetEmailResponder = (typeof getEmail)["responder"] & KoaRuntimeResponder export type GetEmail = ( params: Params, @@ -535,25 +413,16 @@ export type GetEmail = ( KoaRuntimeResponse | Response<200, t_Email> | Response<401, t_Error> > -const deleteEmailResponder = { - with204: r.with204, - with400: r.with400, - with401: r.with401, - with404: r.with404, +const deleteEmail = b((r) => ({ + with204: r.with204(z.undefined()), + with400: r.with400(s_Error), + with401: r.with401(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} - -type DeleteEmailResponder = typeof deleteEmailResponder & KoaRuntimeResponder +})) -const deleteEmailResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_Error], - ["401", s_Error], - ["404", s_Error], - ], - undefined, -) +type DeleteEmailResponder = (typeof deleteEmail)["responder"] & + KoaRuntimeResponder export type DeleteEmail = ( params: Params, @@ -567,7 +436,7 @@ export type DeleteEmail = ( | Response<404, t_Error> > -const sendEmailChallengeResponder = { +const sendEmailChallenge = b((r) => ({ with201: r.with201<{ _links: { poll: { @@ -589,44 +458,33 @@ const sendEmailChallengeResponder = { email: string } status: "VERIFIED" | "UNVERIFIED" - }>, - with401: r.with401, - with403: r.with403, - with404: r.with404, + }>( + z.object({ + id: z.string().min(1), + status: z.enum(["VERIFIED", "UNVERIFIED"]), + expiresAt: z.string().min(1), + profile: z.object({ email: z.string().min(1) }), + _links: z.object({ + verify: z.object({ + href: z.string().min(1), + hints: z.object({ allow: z.array(z.enum(["POST"])) }), + }), + poll: z.object({ + href: z.string().min(1), + hints: z.object({ allow: z.array(z.enum(["GET"])) }), + }), + }), + }), + ), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) -type SendEmailChallengeResponder = typeof sendEmailChallengeResponder & +type SendEmailChallengeResponder = (typeof sendEmailChallenge)["responder"] & KoaRuntimeResponder -const sendEmailChallengeResponseValidator = responseValidationFactory( - [ - [ - "201", - z.object({ - id: z.string().min(1), - status: z.enum(["VERIFIED", "UNVERIFIED"]), - expiresAt: z.string().min(1), - profile: z.object({ email: z.string().min(1) }), - _links: z.object({ - verify: z.object({ - href: z.string().min(1), - hints: z.object({ allow: z.array(z.enum(["POST"])) }), - }), - poll: z.object({ - href: z.string().min(1), - hints: z.object({ allow: z.array(z.enum(["GET"])) }), - }), - }), - }), - ], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, -) - export type SendEmailChallenge = ( params: Params< t_SendEmailChallengeParamSchema, @@ -668,7 +526,7 @@ export type SendEmailChallenge = ( | Response<404, t_Error> > -const pollChallengeForEmailMagicLinkResponder = { +const pollChallengeForEmailMagicLink = b((r) => ({ with200: r.with200<{ _links: { poll: { @@ -690,46 +548,35 @@ const pollChallengeForEmailMagicLinkResponder = { email: string } status: "VERIFIED" | "UNVERIFIED" - }>, - with401: r.with401, - with404: r.with404, + }>( + z.object({ + id: z.string().min(1), + status: z.enum(["VERIFIED", "UNVERIFIED"]), + expiresAt: z.string().min(1), + profile: z.object({ email: z.string().min(1) }), + _links: z.object({ + verify: z.object({ + href: z.string().min(1), + hints: z.object({ + allow: z.array(z.enum(["DELETE", "GET", "POST", "PUT"])), + }), + }), + poll: z.object({ + href: z.string().min(1), + hints: z.object({ + allow: z.array(z.enum(["DELETE", "GET", "POST", "PUT"])), + }), + }), + }), + }), + ), + with401: r.with401(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) type PollChallengeForEmailMagicLinkResponder = - typeof pollChallengeForEmailMagicLinkResponder & KoaRuntimeResponder - -const pollChallengeForEmailMagicLinkResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string().min(1), - status: z.enum(["VERIFIED", "UNVERIFIED"]), - expiresAt: z.string().min(1), - profile: z.object({ email: z.string().min(1) }), - _links: z.object({ - verify: z.object({ - href: z.string().min(1), - hints: z.object({ - allow: z.array(z.enum(["DELETE", "GET", "POST", "PUT"])), - }), - }), - poll: z.object({ - href: z.string().min(1), - hints: z.object({ - allow: z.array(z.enum(["DELETE", "GET", "POST", "PUT"])), - }), - }), - }), - }), - ], - ["401", s_Error], - ["404", s_Error], - ], - undefined, - ) + (typeof pollChallengeForEmailMagicLink)["responder"] & KoaRuntimeResponder export type PollChallengeForEmailMagicLink = ( params: Params, @@ -766,27 +613,17 @@ export type PollChallengeForEmailMagicLink = ( | Response<404, t_Error> > -const verifyEmailOtpResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const verifyEmailOtp = b((r) => ({ + with200: r.with200(z.undefined()), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) -type VerifyEmailOtpResponder = typeof verifyEmailOtpResponder & +type VerifyEmailOtpResponder = (typeof verifyEmailOtp)["responder"] & KoaRuntimeResponder -const verifyEmailOtpResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, -) - export type VerifyEmailOtp = ( params: Params< t_VerifyEmailOtpParamSchema, @@ -804,22 +641,14 @@ export type VerifyEmailOtp = ( | Response<404, t_Error> > -const listOktaApplicationsResponder = { - with200: r.with200, - with400: r.with400, +const listOktaApplications = b((r) => ({ + with200: r.with200(z.array(s_OktaApplication)), + with400: r.with400(s_Error), withStatus: r.withStatus, -} +})) -type ListOktaApplicationsResponder = typeof listOktaApplicationsResponder & - KoaRuntimeResponder - -const listOktaApplicationsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_OktaApplication)], - ["400", s_Error], - ], - undefined, -) +type ListOktaApplicationsResponder = + (typeof listOktaApplications)["responder"] & KoaRuntimeResponder export type ListOktaApplications = ( params: Params, @@ -831,23 +660,15 @@ export type ListOktaApplications = ( | Response<400, t_Error> > -const getOrganizationResponder = { - with200: r.with200, - with401: r.with401, +const getOrganization = b((r) => ({ + with200: r.with200(s_Organization), + with401: r.with401(s_Error), withStatus: r.withStatus, -} +})) -type GetOrganizationResponder = typeof getOrganizationResponder & +type GetOrganizationResponder = (typeof getOrganization)["responder"] & KoaRuntimeResponder -const getOrganizationResponseValidator = responseValidationFactory( - [ - ["200", s_Organization], - ["401", s_Error], - ], - undefined, -) - export type GetOrganization = ( params: Params, respond: GetOrganizationResponder, @@ -858,21 +679,14 @@ export type GetOrganization = ( | Response<401, t_Error> > -const getPasswordResponder = { - with200: r.with200, - with401: r.with401, +const getPassword = b((r) => ({ + with200: r.with200(s_PasswordResponse), + with401: r.with401(s_Error), withStatus: r.withStatus, -} - -type GetPasswordResponder = typeof getPasswordResponder & KoaRuntimeResponder +})) -const getPasswordResponseValidator = responseValidationFactory( - [ - ["200", s_PasswordResponse], - ["401", s_Error], - ], - undefined, -) +type GetPasswordResponder = (typeof getPassword)["responder"] & + KoaRuntimeResponder export type GetPassword = ( params: Params, @@ -884,27 +698,17 @@ export type GetPassword = ( | Response<401, t_Error> > -const createPasswordResponder = { - with201: r.with201, - with400: r.with400, - with401: r.with401, - with403: r.with403, +const createPassword = b((r) => ({ + with201: r.with201(s_PasswordResponse), + with400: r.with400(s_Error), + with401: r.with401(s_Error), + with403: r.with403(s_Error), withStatus: r.withStatus, -} +})) -type CreatePasswordResponder = typeof createPasswordResponder & +type CreatePasswordResponder = (typeof createPassword)["responder"] & KoaRuntimeResponder -const createPasswordResponseValidator = responseValidationFactory( - [ - ["201", s_PasswordResponse], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ], - undefined, -) - export type CreatePassword = ( params: Params, respond: CreatePasswordResponder, @@ -917,27 +721,17 @@ export type CreatePassword = ( | Response<403, t_Error> > -const replacePasswordResponder = { - with201: r.with201, - with400: r.with400, - with401: r.with401, - with403: r.with403, +const replacePassword = b((r) => ({ + with201: r.with201(s_PasswordResponse), + with400: r.with400(s_Error), + with401: r.with401(s_Error), + with403: r.with403(s_Error), withStatus: r.withStatus, -} +})) -type ReplacePasswordResponder = typeof replacePasswordResponder & +type ReplacePasswordResponder = (typeof replacePassword)["responder"] & KoaRuntimeResponder -const replacePasswordResponseValidator = responseValidationFactory( - [ - ["201", s_PasswordResponse], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ], - undefined, -) - export type ReplacePassword = ( params: Params, respond: ReplacePasswordResponder, @@ -950,25 +744,16 @@ export type ReplacePassword = ( | Response<403, t_Error> > -const deletePasswordResponder = { - with204: r.with204, - with401: r.with401, - with404: r.with404, +const deletePassword = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) -type DeletePasswordResponder = typeof deletePasswordResponder & +type DeletePasswordResponder = (typeof deletePassword)["responder"] & KoaRuntimeResponder -const deletePasswordResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_Error], - ["404", s_Error], - ], - undefined, -) - export type DeletePassword = ( params: Params, respond: DeletePasswordResponder, @@ -980,21 +765,14 @@ export type DeletePassword = ( | Response<404, t_Error> > -const listPhonesResponder = { - with200: r.with200, - with401: r.with401, +const listPhones = b((r) => ({ + with200: r.with200(z.array(s_Phone)), + with401: r.with401(s_Error), withStatus: r.withStatus, -} +})) -type ListPhonesResponder = typeof listPhonesResponder & KoaRuntimeResponder - -const listPhonesResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_Phone)], - ["401", s_Error], - ], - undefined, -) +type ListPhonesResponder = (typeof listPhones)["responder"] & + KoaRuntimeResponder export type ListPhones = ( params: Params, @@ -1006,29 +784,18 @@ export type ListPhones = ( | Response<401, t_Error> > -const createPhoneResponder = { - with201: r.with201, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with409: r.with409, - with500: r.with500, +const createPhone = b((r) => ({ + with201: r.with201(s_Phone), + with400: r.with400(s_Error), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with409: r.with409(s_Error), + with500: r.with500(s_Error), withStatus: r.withStatus, -} +})) -type CreatePhoneResponder = typeof createPhoneResponder & KoaRuntimeResponder - -const createPhoneResponseValidator = responseValidationFactory( - [ - ["201", s_Phone], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["409", s_Error], - ["500", s_Error], - ], - undefined, -) +type CreatePhoneResponder = (typeof createPhone)["responder"] & + KoaRuntimeResponder export type CreatePhone = ( params: Params, @@ -1044,23 +811,14 @@ export type CreatePhone = ( | Response<500, t_Error> > -const getPhoneResponder = { - with200: r.with200, - with401: r.with401, - with404: r.with404, +const getPhone = b((r) => ({ + with200: r.with200(s_Phone), + with401: r.with401(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) -type GetPhoneResponder = typeof getPhoneResponder & KoaRuntimeResponder - -const getPhoneResponseValidator = responseValidationFactory( - [ - ["200", s_Phone], - ["401", s_Error], - ["404", s_Error], - ], - undefined, -) +type GetPhoneResponder = (typeof getPhone)["responder"] & KoaRuntimeResponder export type GetPhone = ( params: Params, @@ -1073,25 +831,16 @@ export type GetPhone = ( | Response<404, t_Error> > -const deletePhoneResponder = { - with204: r.with204, - with401: r.with401, - with403: r.with403, - with404: r.with404, +const deletePhone = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) -type DeletePhoneResponder = typeof deletePhoneResponder & KoaRuntimeResponder - -const deletePhoneResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ], - undefined, -) +type DeletePhoneResponder = (typeof deletePhone)["responder"] & + KoaRuntimeResponder export type DeletePhone = ( params: Params, @@ -1105,7 +854,7 @@ export type DeletePhone = ( | Response<404, t_Error> > -const sendPhoneChallengeResponder = { +const sendPhoneChallenge = b((r) => ({ with200: r.with200<{ _links?: { verify?: { @@ -1115,44 +864,31 @@ const sendPhoneChallengeResponder = { href: string } } - }>, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with500: r.with500, + }>( + z.object({ + _links: z + .object({ + verify: z + .object({ + href: z.string().min(1), + hints: z.object({ allow: z.array(z.enum(["GET"])) }), + }) + .optional(), + }) + .optional(), + }), + ), + with400: r.with400(s_Error), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with500: r.with500(s_Error), withStatus: r.withStatus, -} +})) -type SendPhoneChallengeResponder = typeof sendPhoneChallengeResponder & +type SendPhoneChallengeResponder = (typeof sendPhoneChallenge)["responder"] & KoaRuntimeResponder -const sendPhoneChallengeResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - _links: z - .object({ - verify: z - .object({ - href: z.string().min(1), - hints: z.object({ allow: z.array(z.enum(["GET"])) }), - }) - .optional(), - }) - .optional(), - }), - ], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ["500", s_Error], - ], - undefined, -) - export type SendPhoneChallenge = ( params: Params< t_SendPhoneChallengeParamSchema, @@ -1184,30 +920,18 @@ export type SendPhoneChallenge = ( | Response<500, t_Error> > -const verifyPhoneChallengeResponder = { - with204: r.with204, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with404: r.with404, - with409: r.with409, +const verifyPhoneChallenge = b((r) => ({ + with204: r.with204(z.undefined()), + with400: r.with400(s_Error), + with401: r.with401(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with409: r.with409(s_Error), withStatus: r.withStatus, -} +})) -type VerifyPhoneChallengeResponder = typeof verifyPhoneChallengeResponder & - KoaRuntimeResponder - -const verifyPhoneChallengeResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["400", s_Error], - ["401", s_Error], - ["403", s_Error], - ["404", s_Error], - ["409", s_Error], - ], - undefined, -) +type VerifyPhoneChallengeResponder = + (typeof verifyPhoneChallenge)["responder"] & KoaRuntimeResponder export type VerifyPhoneChallenge = ( params: Params< @@ -1228,21 +952,14 @@ export type VerifyPhoneChallenge = ( | Response<409, t_Error> > -const getProfileResponder = { - with200: r.with200, - with401: r.with401, +const getProfile = b((r) => ({ + with200: r.with200(s_Profile), + with401: r.with401(s_Error), withStatus: r.withStatus, -} +})) -type GetProfileResponder = typeof getProfileResponder & KoaRuntimeResponder - -const getProfileResponseValidator = responseValidationFactory( - [ - ["200", s_Profile], - ["401", s_Error], - ], - undefined, -) +type GetProfileResponder = (typeof getProfile)["responder"] & + KoaRuntimeResponder export type GetProfile = ( params: Params, @@ -1254,25 +971,16 @@ export type GetProfile = ( | Response<401, t_Error> > -const replaceProfileResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, +const replaceProfile = b((r) => ({ + with200: r.with200(s_Profile), + with400: r.with400(s_Error), + with401: r.with401(s_Error), withStatus: r.withStatus, -} +})) -type ReplaceProfileResponder = typeof replaceProfileResponder & +type ReplaceProfileResponder = (typeof replaceProfile)["responder"] & KoaRuntimeResponder -const replaceProfileResponseValidator = responseValidationFactory( - [ - ["200", s_Profile], - ["400", s_Error], - ["401", s_Error], - ], - undefined, -) - export type ReplaceProfile = ( params: Params, respond: ReplaceProfileResponder, @@ -1284,23 +992,15 @@ export type ReplaceProfile = ( | Response<401, t_Error> > -const getProfileSchemaResponder = { - with200: r.with200, - with401: r.with401, +const getProfileSchema = b((r) => ({ + with200: r.with200(s_Schema), + with401: r.with401(s_Error), withStatus: r.withStatus, -} +})) -type GetProfileSchemaResponder = typeof getProfileSchemaResponder & +type GetProfileSchemaResponder = (typeof getProfileSchema)["responder"] & KoaRuntimeResponder -const getProfileSchemaResponseValidator = responseValidationFactory( - [ - ["200", s_Schema], - ["401", s_Error], - ], - undefined, -) - export type GetProfileSchema = ( params: Params, respond: GetProfileSchemaResponder, @@ -1309,25 +1009,16 @@ export type GetProfileSchema = ( KoaRuntimeResponse | Response<200, t_Schema> | Response<401, t_Error> > -const deleteSessionsResponder = { - with204: r.with204, - with401: r.with401, - with404: r.with404, +const deleteSessions = b((r) => ({ + with204: r.with204(z.undefined()), + with401: r.with401(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) -type DeleteSessionsResponder = typeof deleteSessionsResponder & +type DeleteSessionsResponder = (typeof deleteSessions)["responder"] & KoaRuntimeResponder -const deleteSessionsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["401", s_Error], - ["404", s_Error], - ], - undefined, -) - export type DeleteSessions = ( params: Params, respond: DeleteSessionsResponder, @@ -1399,7 +1090,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .createAppAuthenticatorEnrollment( input, - createAppAuthenticatorEnrollmentResponder, + createAppAuthenticatorEnrollment.responder, ctx, ) .catch((err) => { @@ -1409,7 +1100,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = createAppAuthenticatorEnrollmentResponseValidator(status, body) + ctx.body = createAppAuthenticatorEnrollment.validator(status, body) ctx.status = status return next() }, @@ -1444,7 +1135,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .verifyAppAuthenticatorPushNotificationChallenge( input, - verifyAppAuthenticatorPushNotificationChallengeResponder, + verifyAppAuthenticatorPushNotificationChallenge.responder, ctx, ) .catch((err) => { @@ -1454,11 +1145,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - verifyAppAuthenticatorPushNotificationChallengeResponseValidator( - status, - body, - ) + ctx.body = verifyAppAuthenticatorPushNotificationChallenge.validator( + status, + body, + ) ctx.status = status return next() }, @@ -1493,7 +1183,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .updateAppAuthenticatorEnrollment( input, - updateAppAuthenticatorEnrollmentResponder, + updateAppAuthenticatorEnrollment.responder, ctx, ) .catch((err) => { @@ -1503,7 +1193,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = updateAppAuthenticatorEnrollmentResponseValidator(status, body) + ctx.body = updateAppAuthenticatorEnrollment.validator(status, body) ctx.status = status return next() }, @@ -1531,7 +1221,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteAppAuthenticatorEnrollment( input, - deleteAppAuthenticatorEnrollmentResponder, + deleteAppAuthenticatorEnrollment.responder, ctx, ) .catch((err) => { @@ -1541,7 +1231,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteAppAuthenticatorEnrollmentResponseValidator(status, body) + ctx.body = deleteAppAuthenticatorEnrollment.validator(status, body) ctx.status = status return next() }, @@ -1568,7 +1258,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .listAppAuthenticatorPendingPushNotificationChallenges( input, - listAppAuthenticatorPendingPushNotificationChallengesResponder, + listAppAuthenticatorPendingPushNotificationChallenges.responder, ctx, ) .catch((err) => { @@ -1579,7 +1269,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - listAppAuthenticatorPendingPushNotificationChallengesResponseValidator( + listAppAuthenticatorPendingPushNotificationChallenges.validator( status, body, ) @@ -1608,7 +1298,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .listAuthenticators(input, listAuthenticatorsResponder, ctx) + .listAuthenticators(input, listAuthenticators.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1616,7 +1306,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = listAuthenticatorsResponseValidator(status, body) + ctx.body = listAuthenticators.validator(status, body) ctx.status = status return next() }, @@ -1648,7 +1338,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getAuthenticator(input, getAuthenticatorResponder, ctx) + .getAuthenticator(input, getAuthenticator.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1656,7 +1346,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAuthenticatorResponseValidator(status, body) + ctx.body = getAuthenticator.validator(status, body) ctx.status = status return next() }, @@ -1680,7 +1370,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .listEnrollments(input, listEnrollmentsResponder, ctx) + .listEnrollments(input, listEnrollments.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1688,7 +1378,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = listEnrollmentsResponseValidator(status, body) + ctx.body = listEnrollments.validator(status, body) ctx.status = status return next() }, @@ -1715,7 +1405,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getEnrollment(input, getEnrollmentResponder, ctx) + .getEnrollment(input, getEnrollment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1723,7 +1413,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getEnrollmentResponseValidator(status, body) + ctx.body = getEnrollment.validator(status, body) ctx.status = status return next() }, @@ -1756,7 +1446,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .updateEnrollment(input, updateEnrollmentResponder, ctx) + .updateEnrollment(input, updateEnrollment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1764,7 +1454,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = updateEnrollmentResponseValidator(status, body) + ctx.body = updateEnrollment.validator(status, body) ctx.status = status return next() }, @@ -1779,7 +1469,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .listEmails(input, listEmailsResponder, ctx) + .listEmails(input, listEmails.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1787,7 +1477,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = listEmailsResponseValidator(status, body) + ctx.body = listEmails.validator(status, body) ctx.status = status return next() }) @@ -1812,7 +1502,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .createEmail(input, createEmailResponder, ctx) + .createEmail(input, createEmail.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1820,7 +1510,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = createEmailResponseValidator(status, body) + ctx.body = createEmail.validator(status, body) ctx.status = status return next() }) @@ -1840,7 +1530,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getEmail(input, getEmailResponder, ctx) + .getEmail(input, getEmail.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1848,7 +1538,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getEmailResponseValidator(status, body) + ctx.body = getEmail.validator(status, body) ctx.status = status return next() }) @@ -1871,7 +1561,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteEmail(input, deleteEmailResponder, ctx) + .deleteEmail(input, deleteEmail.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1879,7 +1569,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteEmailResponseValidator(status, body) + ctx.body = deleteEmail.validator(status, body) ctx.status = status return next() }, @@ -1909,7 +1599,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .sendEmailChallenge(input, sendEmailChallengeResponder, ctx) + .sendEmailChallenge(input, sendEmailChallenge.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1917,7 +1607,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = sendEmailChallengeResponseValidator(status, body) + ctx.body = sendEmailChallenge.validator(status, body) ctx.status = status return next() }, @@ -1946,7 +1636,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .pollChallengeForEmailMagicLink( input, - pollChallengeForEmailMagicLinkResponder, + pollChallengeForEmailMagicLink.responder, ctx, ) .catch((err) => { @@ -1956,7 +1646,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = pollChallengeForEmailMagicLinkResponseValidator(status, body) + ctx.body = pollChallengeForEmailMagicLink.validator(status, body) ctx.status = status return next() }, @@ -1989,7 +1679,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .verifyEmailOtp(input, verifyEmailOtpResponder, ctx) + .verifyEmailOtp(input, verifyEmailOtp.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1997,7 +1687,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = verifyEmailOtpResponseValidator(status, body) + ctx.body = verifyEmailOtp.validator(status, body) ctx.status = status return next() }, @@ -2015,7 +1705,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .listOktaApplications(input, listOktaApplicationsResponder, ctx) + .listOktaApplications(input, listOktaApplications.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2023,7 +1713,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = listOktaApplicationsResponseValidator(status, body) + ctx.body = listOktaApplications.validator(status, body) ctx.status = status return next() }, @@ -2041,7 +1731,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getOrganization(input, getOrganizationResponder, ctx) + .getOrganization(input, getOrganization.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2049,7 +1739,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getOrganizationResponseValidator(status, body) + ctx.body = getOrganization.validator(status, body) ctx.status = status return next() }, @@ -2064,7 +1754,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPassword(input, getPasswordResponder, ctx) + .getPassword(input, getPassword.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2072,7 +1762,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPasswordResponseValidator(status, body) + ctx.body = getPassword.validator(status, body) ctx.status = status return next() }) @@ -2097,7 +1787,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .createPassword(input, createPasswordResponder, ctx) + .createPassword(input, createPassword.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2105,7 +1795,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = createPasswordResponseValidator(status, body) + ctx.body = createPassword.validator(status, body) ctx.status = status return next() }, @@ -2131,7 +1821,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .replacePassword(input, replacePasswordResponder, ctx) + .replacePassword(input, replacePassword.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2139,7 +1829,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = replacePasswordResponseValidator(status, body) + ctx.body = replacePassword.validator(status, body) ctx.status = status return next() }, @@ -2157,7 +1847,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deletePassword(input, deletePasswordResponder, ctx) + .deletePassword(input, deletePassword.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2165,7 +1855,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deletePasswordResponseValidator(status, body) + ctx.body = deletePassword.validator(status, body) ctx.status = status return next() }, @@ -2180,7 +1870,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .listPhones(input, listPhonesResponder, ctx) + .listPhones(input, listPhones.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2188,7 +1878,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = listPhonesResponseValidator(status, body) + ctx.body = listPhones.validator(status, body) ctx.status = status return next() }) @@ -2212,7 +1902,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .createPhone(input, createPhoneResponder, ctx) + .createPhone(input, createPhone.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2220,7 +1910,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = createPhoneResponseValidator(status, body) + ctx.body = createPhone.validator(status, body) ctx.status = status return next() }) @@ -2240,7 +1930,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPhone(input, getPhoneResponder, ctx) + .getPhone(input, getPhone.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2248,7 +1938,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPhoneResponseValidator(status, body) + ctx.body = getPhone.validator(status, body) ctx.status = status return next() }) @@ -2271,7 +1961,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deletePhone(input, deletePhoneResponder, ctx) + .deletePhone(input, deletePhone.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2279,7 +1969,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deletePhoneResponseValidator(status, body) + ctx.body = deletePhone.validator(status, body) ctx.status = status return next() }, @@ -2312,7 +2002,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .sendPhoneChallenge(input, sendPhoneChallengeResponder, ctx) + .sendPhoneChallenge(input, sendPhoneChallenge.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2320,7 +2010,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = sendPhoneChallengeResponseValidator(status, body) + ctx.body = sendPhoneChallenge.validator(status, body) ctx.status = status return next() }, @@ -2352,7 +2042,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .verifyPhoneChallenge(input, verifyPhoneChallengeResponder, ctx) + .verifyPhoneChallenge(input, verifyPhoneChallenge.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2360,7 +2050,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = verifyPhoneChallengeResponseValidator(status, body) + ctx.body = verifyPhoneChallenge.validator(status, body) ctx.status = status return next() }, @@ -2375,7 +2065,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getProfile(input, getProfileResponder, ctx) + .getProfile(input, getProfile.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2383,7 +2073,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getProfileResponseValidator(status, body) + ctx.body = getProfile.validator(status, body) ctx.status = status return next() }) @@ -2405,7 +2095,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .replaceProfile(input, replaceProfileResponder, ctx) + .replaceProfile(input, replaceProfile.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2413,7 +2103,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = replaceProfileResponseValidator(status, body) + ctx.body = replaceProfile.validator(status, body) ctx.status = status return next() }) @@ -2430,7 +2120,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getProfileSchema(input, getProfileSchemaResponder, ctx) + .getProfileSchema(input, getProfileSchema.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2438,7 +2128,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getProfileSchemaResponseValidator(status, body) + ctx.body = getProfileSchema.validator(status, body) ctx.status = status return next() }, @@ -2456,7 +2146,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteSessions(input, deleteSessionsResponder, ctx) + .deleteSessions(input, deleteSessions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2464,7 +2154,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteSessionsResponseValidator(status, body) + ctx.body = deleteSessions.validator(status, body) ctx.status = status return next() }, diff --git a/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts index 7a4df2610..4aa693a34 100644 --- a/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts @@ -120,32 +120,20 @@ import { Params, Response, ServerConfig, - r, + b, startServer, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const getWellKnownOpenIdConfigurationResponder = { - with200: r.with200, - with400: r.with400, +const getWellKnownOpenIdConfiguration = b((r) => ({ + with200: r.with200(s_OidcMetadata), + with400: r.with400(s_Error), withStatus: r.withStatus, -} +})) type GetWellKnownOpenIdConfigurationResponder = - typeof getWellKnownOpenIdConfigurationResponder & KoaRuntimeResponder - -const getWellKnownOpenIdConfigurationResponseValidator = - responseValidationFactory( - [ - ["200", s_OidcMetadata], - ["400", s_Error], - ], - undefined, - ) + (typeof getWellKnownOpenIdConfiguration)["responder"] & KoaRuntimeResponder export type GetWellKnownOpenIdConfiguration = ( params: Params< @@ -162,17 +150,12 @@ export type GetWellKnownOpenIdConfiguration = ( | Response<400, t_Error> > -const authorizeResponder = { - with429: r.with429, +const authorize = b((r) => ({ + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type AuthorizeResponder = typeof authorizeResponder & KoaRuntimeResponder +})) -const authorizeResponseValidator = responseValidationFactory( - [["429", s_Error]], - undefined, -) +type AuthorizeResponder = (typeof authorize)["responder"] & KoaRuntimeResponder export type Authorize = ( params: Params, @@ -180,44 +163,32 @@ export type Authorize = ( ctx: RouterContext, ) => Promise | Response<429, t_Error>> -const authorizeWithPostResponder = { - with429: r.with429, +const authorizeWithPost = b((r) => ({ + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type AuthorizeWithPostResponder = typeof authorizeWithPostResponder & +type AuthorizeWithPostResponder = (typeof authorizeWithPost)["responder"] & KoaRuntimeResponder -const authorizeWithPostResponseValidator = responseValidationFactory( - [["429", s_Error]], - undefined, -) - export type AuthorizeWithPost = ( params: Params, respond: AuthorizeWithPostResponder, ctx: RouterContext, ) => Promise | Response<429, t_Error>> -const bcAuthorizeResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const bcAuthorize = b((r) => ({ + with200: r.with200( + s_BackchannelAuthorizeResponse, + ), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type BcAuthorizeResponder = typeof bcAuthorizeResponder & KoaRuntimeResponder +})) -const bcAuthorizeResponseValidator = responseValidationFactory( - [ - ["200", s_BackchannelAuthorizeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) +type BcAuthorizeResponder = (typeof bcAuthorize)["responder"] & + KoaRuntimeResponder export type BcAuthorize = ( params: Params, @@ -231,27 +202,16 @@ export type BcAuthorize = ( | Response<429, t_Error> > -const challengeResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with429: r.with429, +const challenge = b((r) => ({ + with200: r.with200(s_ChallengeResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with403: r.with403(s_OAuthError), + with429: r.with429(s_OAuthError), withStatus: r.withStatus, -} - -type ChallengeResponder = typeof challengeResponder & KoaRuntimeResponder +})) -const challengeResponseValidator = responseValidationFactory( - [ - ["200", s_ChallengeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_OAuthError], - ], - undefined, -) +type ChallengeResponder = (typeof challenge)["responder"] & KoaRuntimeResponder export type Challenge = ( params: Params, @@ -266,23 +226,15 @@ export type Challenge = ( | Response<429, t_OAuthError> > -const listClientsResponder = { - with200: r.with200, - with403: r.with403, - with429: r.with429, +const listClients = b((r) => ({ + with200: r.with200(z.array(s_Client)), + with403: r.with403(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type ListClientsResponder = typeof listClientsResponder & KoaRuntimeResponder +})) -const listClientsResponseValidator = responseValidationFactory( - [ - ["200", z.array(s_Client)], - ["403", s_Error], - ["429", s_Error], - ], - undefined, -) +type ListClientsResponder = (typeof listClients)["responder"] & + KoaRuntimeResponder export type ListClients = ( params: Params, @@ -295,25 +247,16 @@ export type ListClients = ( | Response<429, t_Error> > -const createClientResponder = { - with201: r.with201, - with400: r.with400, - with403: r.with403, - with429: r.with429, +const createClient = b((r) => ({ + with201: r.with201(s_Client), + with400: r.with400(s_Error), + with403: r.with403(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type CreateClientResponder = typeof createClientResponder & KoaRuntimeResponder +})) -const createClientResponseValidator = responseValidationFactory( - [ - ["201", s_Client], - ["400", s_Error], - ["403", s_Error], - ["429", s_Error], - ], - undefined, -) +type CreateClientResponder = (typeof createClient)["responder"] & + KoaRuntimeResponder export type CreateClient = ( params: Params, @@ -327,25 +270,15 @@ export type CreateClient = ( | Response<429, t_Error> > -const getClientResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with429: r.with429, +const getClient = b((r) => ({ + with200: r.with200(s_Client), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type GetClientResponder = typeof getClientResponder & KoaRuntimeResponder +})) -const getClientResponseValidator = responseValidationFactory( - [ - ["200", s_Client], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, -) +type GetClientResponder = (typeof getClient)["responder"] & KoaRuntimeResponder export type GetClient = ( params: Params, @@ -359,29 +292,18 @@ export type GetClient = ( | Response<429, t_Error> > -const replaceClientResponder = { - with200: r.with200, - with400: r.with400, - with403: r.with403, - with404: r.with404, - with429: r.with429, +const replaceClient = b((r) => ({ + with200: r.with200(s_Client), + with400: r.with400(s_Error), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type ReplaceClientResponder = typeof replaceClientResponder & +type ReplaceClientResponder = (typeof replaceClient)["responder"] & KoaRuntimeResponder -const replaceClientResponseValidator = responseValidationFactory( - [ - ["200", s_Client], - ["400", s_Error], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, -) - export type ReplaceClient = ( params: Params< t_ReplaceClientParamSchema, @@ -400,25 +322,16 @@ export type ReplaceClient = ( | Response<429, t_Error> > -const deleteClientResponder = { - with204: r.with204, - with403: r.with403, - with404: r.with404, - with429: r.with429, +const deleteClient = b((r) => ({ + with204: r.with204(z.undefined()), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type DeleteClientResponder = typeof deleteClientResponder & KoaRuntimeResponder +})) -const deleteClientResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, -) +type DeleteClientResponder = (typeof deleteClient)["responder"] & + KoaRuntimeResponder export type DeleteClient = ( params: Params, @@ -432,26 +345,16 @@ export type DeleteClient = ( | Response<429, t_Error> > -const generateNewClientSecretResponder = { - with200: r.with200, - with403: r.with403, - with404: r.with404, - with429: r.with429, +const generateNewClientSecret = b((r) => ({ + with200: r.with200(s_Client), + with403: r.with403(s_Error), + with404: r.with404(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) type GenerateNewClientSecretResponder = - typeof generateNewClientSecretResponder & KoaRuntimeResponder - -const generateNewClientSecretResponseValidator = responseValidationFactory( - [ - ["200", s_Client], - ["403", s_Error], - ["404", s_Error], - ["429", s_Error], - ], - undefined, -) + (typeof generateNewClientSecret)["responder"] & KoaRuntimeResponder export type GenerateNewClientSecret = ( params: Params, @@ -465,27 +368,17 @@ export type GenerateNewClientSecret = ( | Response<429, t_Error> > -const deviceAuthorizeResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const deviceAuthorize = b((r) => ({ + with200: r.with200(s_DeviceAuthorizeResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type DeviceAuthorizeResponder = typeof deviceAuthorizeResponder & +type DeviceAuthorizeResponder = (typeof deviceAuthorize)["responder"] & KoaRuntimeResponder -const deviceAuthorizeResponseValidator = responseValidationFactory( - [ - ["200", s_DeviceAuthorizeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) - export type DeviceAuthorize = ( params: Params, respond: DeviceAuthorizeResponder, @@ -498,26 +391,16 @@ export type DeviceAuthorize = ( | Response<429, t_Error> > -const globalTokenRevocationResponder = { - with204: r.with204, - with400: r.with400, - with403: r.with403, - with429: r.with429, +const globalTokenRevocation = b((r) => ({ + with204: r.with204(z.undefined()), + with400: r.with400(z.undefined()), + with403: r.with403(s_Error), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type GlobalTokenRevocationResponder = typeof globalTokenRevocationResponder & - KoaRuntimeResponder +})) -const globalTokenRevocationResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["400", z.undefined()], - ["403", s_Error], - ["429", s_Error], - ], - undefined, -) +type GlobalTokenRevocationResponder = + (typeof globalTokenRevocation)["responder"] & KoaRuntimeResponder export type GlobalTokenRevocation = ( params: Params, @@ -531,25 +414,16 @@ export type GlobalTokenRevocation = ( | Response<429, t_Error> > -const introspectResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const introspect = b((r) => ({ + with200: r.with200(s_IntrospectionResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type IntrospectResponder = typeof introspectResponder & KoaRuntimeResponder +})) -const introspectResponseValidator = responseValidationFactory( - [ - ["200", s_IntrospectionResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) +type IntrospectResponder = (typeof introspect)["responder"] & + KoaRuntimeResponder export type Introspect = ( params: Params, @@ -563,21 +437,13 @@ export type Introspect = ( | Response<429, t_Error> > -const oauthKeysResponder = { - with200: r.with200, - with429: r.with429, +const oauthKeys = b((r) => ({ + with200: r.with200(s_OAuthKeys), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type OauthKeysResponder = typeof oauthKeysResponder & KoaRuntimeResponder +})) -const oauthKeysResponseValidator = responseValidationFactory( - [ - ["200", s_OAuthKeys], - ["429", s_Error], - ], - undefined, -) +type OauthKeysResponder = (typeof oauthKeys)["responder"] & KoaRuntimeResponder export type OauthKeys = ( params: Params, @@ -589,21 +455,13 @@ export type OauthKeys = ( | Response<429, t_Error> > -const logoutResponder = { - with200: r.with200, - with429: r.with429, +const logout = b((r) => ({ + with200: r.with200(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type LogoutResponder = typeof logoutResponder & KoaRuntimeResponder +})) -const logoutResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["429", s_Error], - ], - undefined, -) +type LogoutResponder = (typeof logout)["responder"] & KoaRuntimeResponder export type Logout = ( params: Params, @@ -613,23 +471,15 @@ export type Logout = ( KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> > -const logoutWithPostResponder = { - with200: r.with200, - with429: r.with429, +const logoutWithPost = b((r) => ({ + with200: r.with200(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type LogoutWithPostResponder = typeof logoutWithPostResponder & +type LogoutWithPostResponder = (typeof logoutWithPost)["responder"] & KoaRuntimeResponder -const logoutWithPostResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["429", s_Error], - ], - undefined, -) - export type LogoutWithPost = ( params: Params, respond: LogoutWithPostResponder, @@ -638,29 +488,18 @@ export type LogoutWithPost = ( KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> > -const oobAuthenticateResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with429: r.with429, +const oobAuthenticate = b((r) => ({ + with200: r.with200(s_OobAuthenticateResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with403: r.with403(s_OAuthError), + with429: r.with429(s_OAuthError), withStatus: r.withStatus, -} +})) -type OobAuthenticateResponder = typeof oobAuthenticateResponder & +type OobAuthenticateResponder = (typeof oobAuthenticate)["responder"] & KoaRuntimeResponder -const oobAuthenticateResponseValidator = responseValidationFactory( - [ - ["200", s_OobAuthenticateResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_OAuthError], - ], - undefined, -) - export type OobAuthenticate = ( params: Params, respond: OobAuthenticateResponder, @@ -674,21 +513,14 @@ export type OobAuthenticate = ( | Response<429, t_OAuthError> > -const parOptionsResponder = { - with204: r.with204, - with429: r.with429, +const parOptions = b((r) => ({ + with204: r.with204(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type ParOptionsResponder = typeof parOptionsResponder & KoaRuntimeResponder +})) -const parOptionsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["429", s_Error], - ], - undefined, -) +type ParOptionsResponder = (typeof parOptions)["responder"] & + KoaRuntimeResponder export type ParOptions = ( params: Params, @@ -698,27 +530,16 @@ export type ParOptions = ( KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> > -const parResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with429: r.with429, +const par = b((r) => ({ + with200: r.with200(s_ParResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with403: r.with403(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type ParResponder = typeof parResponder & KoaRuntimeResponder +})) -const parResponseValidator = responseValidationFactory( - [ - ["200", s_ParResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_Error], - ], - undefined, -) +type ParResponder = (typeof par)["responder"] & KoaRuntimeResponder export type Par = ( params: Params, @@ -733,25 +554,15 @@ export type Par = ( | Response<429, t_Error> > -const revokeResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const revoke = b((r) => ({ + with200: r.with200(z.undefined()), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type RevokeResponder = typeof revokeResponder & KoaRuntimeResponder +})) -const revokeResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) +type RevokeResponder = (typeof revoke)["responder"] & KoaRuntimeResponder export type Revoke = ( params: Params, @@ -765,21 +576,14 @@ export type Revoke = ( | Response<429, t_Error> > -const tokenOptionsResponder = { - with204: r.with204, - with429: r.with429, +const tokenOptions = b((r) => ({ + with204: r.with204(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type TokenOptionsResponder = typeof tokenOptionsResponder & KoaRuntimeResponder - -const tokenOptionsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["429", s_Error], - ], - undefined, -) +type TokenOptionsResponder = (typeof tokenOptions)["responder"] & + KoaRuntimeResponder export type TokenOptions = ( params: Params, @@ -789,25 +593,15 @@ export type TokenOptions = ( KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> > -const tokenResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const token = b((r) => ({ + with200: r.with200(s_TokenResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type TokenResponder = typeof tokenResponder & KoaRuntimeResponder - -const tokenResponseValidator = responseValidationFactory( - [ - ["200", s_TokenResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) +type TokenResponder = (typeof token)["responder"] & KoaRuntimeResponder export type Token = ( params: Params, @@ -821,25 +615,15 @@ export type Token = ( | Response<429, t_Error> > -const userinfoResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with429: r.with429, +const userinfo = b((r) => ({ + with200: r.with200(s_UserInfo), + with401: r.with401(z.undefined()), + with403: r.with403(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} - -type UserinfoResponder = typeof userinfoResponder & KoaRuntimeResponder +})) -const userinfoResponseValidator = responseValidationFactory( - [ - ["200", s_UserInfo], - ["401", z.undefined()], - ["403", z.undefined()], - ["429", s_Error], - ], - undefined, -) +type UserinfoResponder = (typeof userinfo)["responder"] & KoaRuntimeResponder export type Userinfo = ( params: Params, @@ -853,25 +637,16 @@ export type Userinfo = ( | Response<429, t_Error> > -const getWellKnownOAuthConfigurationCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, +const getWellKnownOAuthConfigurationCustomAs = b((r) => ({ + with200: r.with200(s_OAuthMetadata), + with400: r.with400(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) type GetWellKnownOAuthConfigurationCustomAsResponder = - typeof getWellKnownOAuthConfigurationCustomAsResponder & KoaRuntimeResponder - -const getWellKnownOAuthConfigurationCustomAsResponseValidator = - responseValidationFactory( - [ - ["200", s_OAuthMetadata], - ["400", s_Error], - ["404", s_Error], - ], - undefined, - ) + (typeof getWellKnownOAuthConfigurationCustomAs)["responder"] & + KoaRuntimeResponder export type GetWellKnownOAuthConfigurationCustomAs = ( params: Params< @@ -889,25 +664,16 @@ export type GetWellKnownOAuthConfigurationCustomAs = ( | Response<404, t_Error> > -const getWellKnownOpenIdConfigurationCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with404: r.with404, +const getWellKnownOpenIdConfigurationCustomAs = b((r) => ({ + with200: r.with200(s_OidcMetadata), + with400: r.with400(s_Error), + with404: r.with404(s_Error), withStatus: r.withStatus, -} +})) type GetWellKnownOpenIdConfigurationCustomAsResponder = - typeof getWellKnownOpenIdConfigurationCustomAsResponder & KoaRuntimeResponder - -const getWellKnownOpenIdConfigurationCustomAsResponseValidator = - responseValidationFactory( - [ - ["200", s_OidcMetadata], - ["400", s_Error], - ["404", s_Error], - ], - undefined, - ) + (typeof getWellKnownOpenIdConfigurationCustomAs)["responder"] & + KoaRuntimeResponder export type GetWellKnownOpenIdConfigurationCustomAs = ( params: Params< @@ -925,19 +691,14 @@ export type GetWellKnownOpenIdConfigurationCustomAs = ( | Response<404, t_Error> > -const authorizeCustomAsResponder = { - with429: r.with429, +const authorizeCustomAs = b((r) => ({ + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type AuthorizeCustomAsResponder = typeof authorizeCustomAsResponder & +type AuthorizeCustomAsResponder = (typeof authorizeCustomAs)["responder"] & KoaRuntimeResponder -const authorizeCustomAsResponseValidator = responseValidationFactory( - [["429", s_Error]], - undefined, -) - export type AuthorizeCustomAs = ( params: Params< t_AuthorizeCustomAsParamSchema, @@ -949,18 +710,13 @@ export type AuthorizeCustomAs = ( ctx: RouterContext, ) => Promise | Response<429, t_Error>> -const authorizeCustomAsWithPostResponder = { - with429: r.with429, +const authorizeCustomAsWithPost = b((r) => ({ + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) type AuthorizeCustomAsWithPostResponder = - typeof authorizeCustomAsWithPostResponder & KoaRuntimeResponder - -const authorizeCustomAsWithPostResponseValidator = responseValidationFactory( - [["429", s_Error]], - undefined, -) + (typeof authorizeCustomAsWithPost)["responder"] & KoaRuntimeResponder export type AuthorizeCustomAsWithPost = ( params: Params< @@ -973,27 +729,19 @@ export type AuthorizeCustomAsWithPost = ( ctx: RouterContext, ) => Promise | Response<429, t_Error>> -const bcAuthorizeCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const bcAuthorizeCustomAs = b((r) => ({ + with200: r.with200( + s_BackchannelAuthorizeResponse, + ), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type BcAuthorizeCustomAsResponder = typeof bcAuthorizeCustomAsResponder & +type BcAuthorizeCustomAsResponder = (typeof bcAuthorizeCustomAs)["responder"] & KoaRuntimeResponder -const bcAuthorizeCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_BackchannelAuthorizeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) - export type BcAuthorizeCustomAs = ( params: Params< t_BcAuthorizeCustomAsParamSchema, @@ -1011,29 +759,18 @@ export type BcAuthorizeCustomAs = ( | Response<429, t_Error> > -const challengeCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with429: r.with429, +const challengeCustomAs = b((r) => ({ + with200: r.with200(s_ChallengeResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with403: r.with403(s_OAuthError), + with429: r.with429(s_OAuthError), withStatus: r.withStatus, -} +})) -type ChallengeCustomAsResponder = typeof challengeCustomAsResponder & +type ChallengeCustomAsResponder = (typeof challengeCustomAs)["responder"] & KoaRuntimeResponder -const challengeCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_ChallengeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_OAuthError], - ], - undefined, -) - export type ChallengeCustomAs = ( params: Params< t_ChallengeCustomAsParamSchema, @@ -1052,26 +789,16 @@ export type ChallengeCustomAs = ( | Response<429, t_OAuthError> > -const deviceAuthorizeCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const deviceAuthorizeCustomAs = b((r) => ({ + with200: r.with200(s_DeviceAuthorizeResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) type DeviceAuthorizeCustomAsResponder = - typeof deviceAuthorizeCustomAsResponder & KoaRuntimeResponder - -const deviceAuthorizeCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_DeviceAuthorizeResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) + (typeof deviceAuthorizeCustomAs)["responder"] & KoaRuntimeResponder export type DeviceAuthorizeCustomAs = ( params: Params< @@ -1090,27 +817,17 @@ export type DeviceAuthorizeCustomAs = ( | Response<429, t_Error> > -const introspectCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const introspectCustomAs = b((r) => ({ + with200: r.with200(s_IntrospectionResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type IntrospectCustomAsResponder = typeof introspectCustomAsResponder & +type IntrospectCustomAsResponder = (typeof introspectCustomAs)["responder"] & KoaRuntimeResponder -const introspectCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_IntrospectionResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) - export type IntrospectCustomAs = ( params: Params< t_IntrospectCustomAsParamSchema, @@ -1128,23 +845,15 @@ export type IntrospectCustomAs = ( | Response<429, t_Error> > -const oauthKeysCustomAsResponder = { - with200: r.with200, - with429: r.with429, +const oauthKeysCustomAs = b((r) => ({ + with200: r.with200(s_OAuthKeys), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type OauthKeysCustomAsResponder = typeof oauthKeysCustomAsResponder & +type OauthKeysCustomAsResponder = (typeof oauthKeysCustomAs)["responder"] & KoaRuntimeResponder -const oauthKeysCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_OAuthKeys], - ["429", s_Error], - ], - undefined, -) - export type OauthKeysCustomAs = ( params: Params, respond: OauthKeysCustomAsResponder, @@ -1155,23 +864,15 @@ export type OauthKeysCustomAs = ( | Response<429, t_Error> > -const logoutCustomAsResponder = { - with200: r.with200, - with429: r.with429, +const logoutCustomAs = b((r) => ({ + with200: r.with200(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type LogoutCustomAsResponder = typeof logoutCustomAsResponder & +type LogoutCustomAsResponder = (typeof logoutCustomAs)["responder"] & KoaRuntimeResponder -const logoutCustomAsResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["429", s_Error], - ], - undefined, -) - export type LogoutCustomAs = ( params: Params< t_LogoutCustomAsParamSchema, @@ -1185,22 +886,14 @@ export type LogoutCustomAs = ( KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> > -const logoutCustomAsWithPostResponder = { - with200: r.with200, - with429: r.with429, +const logoutCustomAsWithPost = b((r) => ({ + with200: r.with200(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type LogoutCustomAsWithPostResponder = typeof logoutCustomAsWithPostResponder & - KoaRuntimeResponder - -const logoutCustomAsWithPostResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["429", s_Error], - ], - undefined, -) +type LogoutCustomAsWithPostResponder = + (typeof logoutCustomAsWithPost)["responder"] & KoaRuntimeResponder export type LogoutCustomAsWithPost = ( params: Params< @@ -1215,28 +908,17 @@ export type LogoutCustomAsWithPost = ( KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> > -const oobAuthenticateCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with429: r.with429, +const oobAuthenticateCustomAs = b((r) => ({ + with200: r.with200(s_OobAuthenticateResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with403: r.with403(s_OAuthError), + with429: r.with429(s_OAuthError), withStatus: r.withStatus, -} +})) type OobAuthenticateCustomAsResponder = - typeof oobAuthenticateCustomAsResponder & KoaRuntimeResponder - -const oobAuthenticateCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_OobAuthenticateResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_OAuthError], - ], - undefined, -) + (typeof oobAuthenticateCustomAs)["responder"] & KoaRuntimeResponder export type OobAuthenticateCustomAs = ( params: Params< @@ -1256,23 +938,15 @@ export type OobAuthenticateCustomAs = ( | Response<429, t_OAuthError> > -const parOptionsCustomAsResponder = { - with204: r.with204, - with429: r.with429, +const parOptionsCustomAs = b((r) => ({ + with204: r.with204(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type ParOptionsCustomAsResponder = typeof parOptionsCustomAsResponder & +type ParOptionsCustomAsResponder = (typeof parOptionsCustomAs)["responder"] & KoaRuntimeResponder -const parOptionsCustomAsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["429", s_Error], - ], - undefined, -) - export type ParOptionsCustomAs = ( params: Params< t_ParOptionsCustomAsParamSchema, @@ -1286,27 +960,17 @@ export type ParOptionsCustomAs = ( KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> > -const parCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with403: r.with403, - with429: r.with429, +const parCustomAs = b((r) => ({ + with200: r.with200(s_ParResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with403: r.with403(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type ParCustomAsResponder = typeof parCustomAsResponder & KoaRuntimeResponder - -const parCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_ParResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["403", s_OAuthError], - ["429", s_Error], - ], - undefined, -) +type ParCustomAsResponder = (typeof parCustomAs)["responder"] & + KoaRuntimeResponder export type ParCustomAs = ( params: Params, @@ -1321,27 +985,17 @@ export type ParCustomAs = ( | Response<429, t_Error> > -const revokeCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const revokeCustomAs = b((r) => ({ + with200: r.with200(z.undefined()), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type RevokeCustomAsResponder = typeof revokeCustomAsResponder & +type RevokeCustomAsResponder = (typeof revokeCustomAs)["responder"] & KoaRuntimeResponder -const revokeCustomAsResponseValidator = responseValidationFactory( - [ - ["200", z.undefined()], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) - export type RevokeCustomAs = ( params: Params< t_RevokeCustomAsParamSchema, @@ -1359,22 +1013,14 @@ export type RevokeCustomAs = ( | Response<429, t_Error> > -const tokenOptionsCustomAsResponder = { - with204: r.with204, - with429: r.with429, +const tokenOptionsCustomAs = b((r) => ({ + with204: r.with204(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type TokenOptionsCustomAsResponder = typeof tokenOptionsCustomAsResponder & - KoaRuntimeResponder - -const tokenOptionsCustomAsResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["429", s_Error], - ], - undefined, -) +type TokenOptionsCustomAsResponder = + (typeof tokenOptionsCustomAs)["responder"] & KoaRuntimeResponder export type TokenOptionsCustomAs = ( params: Params< @@ -1389,27 +1035,17 @@ export type TokenOptionsCustomAs = ( KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> > -const tokenCustomAsResponder = { - with200: r.with200, - with400: r.with400, - with401: r.with401, - with429: r.with429, +const tokenCustomAs = b((r) => ({ + with200: r.with200(s_TokenResponse), + with400: r.with400(s_OAuthError), + with401: r.with401(s_OAuthError), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type TokenCustomAsResponder = typeof tokenCustomAsResponder & +type TokenCustomAsResponder = (typeof tokenCustomAs)["responder"] & KoaRuntimeResponder -const tokenCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_TokenResponse], - ["400", s_OAuthError], - ["401", s_OAuthError], - ["429", s_Error], - ], - undefined, -) - export type TokenCustomAs = ( params: Params< t_TokenCustomAsParamSchema, @@ -1427,27 +1063,17 @@ export type TokenCustomAs = ( | Response<429, t_Error> > -const userinfoCustomAsResponder = { - with200: r.with200, - with401: r.with401, - with403: r.with403, - with429: r.with429, +const userinfoCustomAs = b((r) => ({ + with200: r.with200(s_UserInfo), + with401: r.with401(z.undefined()), + with403: r.with403(z.undefined()), + with429: r.with429(s_Error), withStatus: r.withStatus, -} +})) -type UserinfoCustomAsResponder = typeof userinfoCustomAsResponder & +type UserinfoCustomAsResponder = (typeof userinfoCustomAs)["responder"] & KoaRuntimeResponder -const userinfoCustomAsResponseValidator = responseValidationFactory( - [ - ["200", s_UserInfo], - ["401", z.undefined()], - ["403", z.undefined()], - ["429", s_Error], - ], - undefined, -) - export type UserinfoCustomAs = ( params: Params, respond: UserinfoCustomAsResponder, @@ -1530,7 +1156,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getWellKnownOpenIdConfiguration( input, - getWellKnownOpenIdConfigurationResponder, + getWellKnownOpenIdConfiguration.responder, ctx, ) .catch((err) => { @@ -1540,7 +1166,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getWellKnownOpenIdConfigurationResponseValidator(status, body) + ctx.body = getWellKnownOpenIdConfiguration.validator(status, body) ctx.status = status return next() }, @@ -1582,7 +1208,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .authorize(input, authorizeResponder, ctx) + .authorize(input, authorize.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1590,7 +1216,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = authorizeResponseValidator(status, body) + ctx.body = authorize.validator(status, body) ctx.status = status return next() }) @@ -1613,7 +1239,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .authorizeWithPost(input, authorizeWithPostResponder, ctx) + .authorizeWithPost(input, authorizeWithPost.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1621,7 +1247,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = authorizeWithPostResponseValidator(status, body) + ctx.body = authorizeWithPost.validator(status, body) ctx.status = status return next() }, @@ -1642,7 +1268,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .bcAuthorize(input, bcAuthorizeResponder, ctx) + .bcAuthorize(input, bcAuthorize.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1650,7 +1276,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = bcAuthorizeResponseValidator(status, body) + ctx.body = bcAuthorize.validator(status, body) ctx.status = status return next() }) @@ -1670,7 +1296,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .challenge(input, challengeResponder, ctx) + .challenge(input, challenge.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1678,7 +1304,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = challengeResponseValidator(status, body) + ctx.body = challenge.validator(status, body) ctx.status = status return next() }) @@ -1702,7 +1328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .listClients(input, listClientsResponder, ctx) + .listClients(input, listClients.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1710,7 +1336,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = listClientsResponseValidator(status, body) + ctx.body = listClients.validator(status, body) ctx.status = status return next() }) @@ -1730,7 +1356,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .createClient(input, createClientResponder, ctx) + .createClient(input, createClient.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1738,7 +1364,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = createClientResponseValidator(status, body) + ctx.body = createClient.validator(status, body) ctx.status = status return next() }) @@ -1758,7 +1384,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getClient(input, getClientResponder, ctx) + .getClient(input, getClient.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1766,7 +1392,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getClientResponseValidator(status, body) + ctx.body = getClient.validator(status, body) ctx.status = status return next() }) @@ -1795,7 +1421,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .replaceClient(input, replaceClientResponder, ctx) + .replaceClient(input, replaceClient.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1803,7 +1429,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = replaceClientResponseValidator(status, body) + ctx.body = replaceClient.validator(status, body) ctx.status = status return next() }, @@ -1827,7 +1453,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteClient(input, deleteClientResponder, ctx) + .deleteClient(input, deleteClient.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1835,7 +1461,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteClientResponseValidator(status, body) + ctx.body = deleteClient.validator(status, body) ctx.status = status return next() }, @@ -1859,7 +1485,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .generateNewClientSecret(input, generateNewClientSecretResponder, ctx) + .generateNewClientSecret(input, generateNewClientSecret.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1867,7 +1493,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = generateNewClientSecretResponseValidator(status, body) + ctx.body = generateNewClientSecret.validator(status, body) ctx.status = status return next() }, @@ -1891,7 +1517,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deviceAuthorize(input, deviceAuthorizeResponder, ctx) + .deviceAuthorize(input, deviceAuthorize.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1899,7 +1525,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deviceAuthorizeResponseValidator(status, body) + ctx.body = deviceAuthorize.validator(status, body) ctx.status = status return next() }, @@ -1923,7 +1549,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .globalTokenRevocation(input, globalTokenRevocationResponder, ctx) + .globalTokenRevocation(input, globalTokenRevocation.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1931,7 +1557,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = globalTokenRevocationResponseValidator(status, body) + ctx.body = globalTokenRevocation.validator(status, body) ctx.status = status return next() }, @@ -1952,7 +1578,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .introspect(input, introspectResponder, ctx) + .introspect(input, introspect.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1960,7 +1586,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = introspectResponseValidator(status, body) + ctx.body = introspect.validator(status, body) ctx.status = status return next() }) @@ -1980,7 +1606,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .oauthKeys(input, oauthKeysResponder, ctx) + .oauthKeys(input, oauthKeys.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -1988,7 +1614,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = oauthKeysResponseValidator(status, body) + ctx.body = oauthKeys.validator(status, body) ctx.status = status return next() }) @@ -2012,7 +1638,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .logout(input, logoutResponder, ctx) + .logout(input, logout.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2020,7 +1646,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = logoutResponseValidator(status, body) + ctx.body = logout.validator(status, body) ctx.status = status return next() }) @@ -2040,7 +1666,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .logoutWithPost(input, logoutWithPostResponder, ctx) + .logoutWithPost(input, logoutWithPost.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2048,7 +1674,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = logoutWithPostResponseValidator(status, body) + ctx.body = logoutWithPost.validator(status, body) ctx.status = status return next() }) @@ -2071,7 +1697,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .oobAuthenticate(input, oobAuthenticateResponder, ctx) + .oobAuthenticate(input, oobAuthenticate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2079,7 +1705,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = oobAuthenticateResponseValidator(status, body) + ctx.body = oobAuthenticate.validator(status, body) ctx.status = status return next() }, @@ -2100,7 +1726,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .parOptions(input, parOptionsResponder, ctx) + .parOptions(input, parOptions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2108,7 +1734,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = parOptionsResponseValidator(status, body) + ctx.body = parOptions.validator(status, body) ctx.status = status return next() }) @@ -2128,7 +1754,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .par(input, parResponder, ctx) + .par(input, par.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2136,7 +1762,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = parResponseValidator(status, body) + ctx.body = par.validator(status, body) ctx.status = status return next() }) @@ -2156,7 +1782,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .revoke(input, revokeResponder, ctx) + .revoke(input, revoke.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2164,7 +1790,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = revokeResponseValidator(status, body) + ctx.body = revoke.validator(status, body) ctx.status = status return next() }) @@ -2184,7 +1810,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .tokenOptions(input, tokenOptionsResponder, ctx) + .tokenOptions(input, tokenOptions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2192,7 +1818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = tokenOptionsResponseValidator(status, body) + ctx.body = tokenOptions.validator(status, body) ctx.status = status return next() }) @@ -2212,7 +1838,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .token(input, tokenResponder, ctx) + .token(input, token.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2220,7 +1846,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = tokenResponseValidator(status, body) + ctx.body = token.validator(status, body) ctx.status = status return next() }) @@ -2234,7 +1860,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .userinfo(input, userinfoResponder, ctx) + .userinfo(input, userinfo.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2242,7 +1868,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = userinfoResponseValidator(status, body) + ctx.body = userinfo.validator(status, body) ctx.status = status return next() }) @@ -2277,7 +1903,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getWellKnownOAuthConfigurationCustomAs( input, - getWellKnownOAuthConfigurationCustomAsResponder, + getWellKnownOAuthConfigurationCustomAs.responder, ctx, ) .catch((err) => { @@ -2287,10 +1913,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getWellKnownOAuthConfigurationCustomAsResponseValidator( - status, - body, - ) + ctx.body = getWellKnownOAuthConfigurationCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2326,7 +1949,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getWellKnownOpenIdConfigurationCustomAs( input, - getWellKnownOpenIdConfigurationCustomAsResponder, + getWellKnownOpenIdConfigurationCustomAs.responder, ctx, ) .catch((err) => { @@ -2336,10 +1959,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getWellKnownOpenIdConfigurationCustomAsResponseValidator( - status, - body, - ) + ctx.body = getWellKnownOpenIdConfigurationCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2392,7 +2012,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .authorizeCustomAs(input, authorizeCustomAsResponder, ctx) + .authorizeCustomAs(input, authorizeCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2400,7 +2020,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = authorizeCustomAsResponseValidator(status, body) + ctx.body = authorizeCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2434,7 +2054,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .authorizeCustomAsWithPost( input, - authorizeCustomAsWithPostResponder, + authorizeCustomAsWithPost.responder, ctx, ) .catch((err) => { @@ -2444,7 +2064,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = authorizeCustomAsWithPostResponseValidator(status, body) + ctx.body = authorizeCustomAsWithPost.validator(status, body) ctx.status = status return next() }, @@ -2476,7 +2096,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .bcAuthorizeCustomAs(input, bcAuthorizeCustomAsResponder, ctx) + .bcAuthorizeCustomAs(input, bcAuthorizeCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2484,7 +2104,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = bcAuthorizeCustomAsResponseValidator(status, body) + ctx.body = bcAuthorizeCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2516,7 +2136,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .challengeCustomAs(input, challengeCustomAsResponder, ctx) + .challengeCustomAs(input, challengeCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2524,7 +2144,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = challengeCustomAsResponseValidator(status, body) + ctx.body = challengeCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2556,7 +2176,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deviceAuthorizeCustomAs(input, deviceAuthorizeCustomAsResponder, ctx) + .deviceAuthorizeCustomAs(input, deviceAuthorizeCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2564,7 +2184,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deviceAuthorizeCustomAsResponseValidator(status, body) + ctx.body = deviceAuthorizeCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2596,7 +2216,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .introspectCustomAs(input, introspectCustomAsResponder, ctx) + .introspectCustomAs(input, introspectCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2604,7 +2224,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = introspectCustomAsResponseValidator(status, body) + ctx.body = introspectCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2630,7 +2250,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .oauthKeysCustomAs(input, oauthKeysCustomAsResponder, ctx) + .oauthKeysCustomAs(input, oauthKeysCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2638,7 +2258,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = oauthKeysCustomAsResponseValidator(status, body) + ctx.body = oauthKeysCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2674,7 +2294,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .logoutCustomAs(input, logoutCustomAsResponder, ctx) + .logoutCustomAs(input, logoutCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2682,7 +2302,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = logoutCustomAsResponseValidator(status, body) + ctx.body = logoutCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2714,7 +2334,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .logoutCustomAsWithPost(input, logoutCustomAsWithPostResponder, ctx) + .logoutCustomAsWithPost(input, logoutCustomAsWithPost.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2722,7 +2342,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = logoutCustomAsWithPostResponseValidator(status, body) + ctx.body = logoutCustomAsWithPost.validator(status, body) ctx.status = status return next() }, @@ -2754,7 +2374,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .oobAuthenticateCustomAs(input, oobAuthenticateCustomAsResponder, ctx) + .oobAuthenticateCustomAs(input, oobAuthenticateCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2762,7 +2382,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = oobAuthenticateCustomAsResponseValidator(status, body) + ctx.body = oobAuthenticateCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2796,7 +2416,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .parOptionsCustomAs(input, parOptionsCustomAsResponder, ctx) + .parOptionsCustomAs(input, parOptionsCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2804,7 +2424,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = parOptionsCustomAsResponseValidator(status, body) + ctx.body = parOptionsCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2834,7 +2454,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .parCustomAs(input, parCustomAsResponder, ctx) + .parCustomAs(input, parCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2842,7 +2462,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = parCustomAsResponseValidator(status, body) + ctx.body = parCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2874,7 +2494,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .revokeCustomAs(input, revokeCustomAsResponder, ctx) + .revokeCustomAs(input, revokeCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2882,7 +2502,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = revokeCustomAsResponseValidator(status, body) + ctx.body = revokeCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2916,7 +2536,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .tokenOptionsCustomAs(input, tokenOptionsCustomAsResponder, ctx) + .tokenOptionsCustomAs(input, tokenOptionsCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2924,7 +2544,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = tokenOptionsCustomAsResponseValidator(status, body) + ctx.body = tokenOptionsCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2956,7 +2576,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .tokenCustomAs(input, tokenCustomAsResponder, ctx) + .tokenCustomAs(input, tokenCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2964,7 +2584,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = tokenCustomAsResponseValidator(status, body) + ctx.body = tokenCustomAs.validator(status, body) ctx.status = status return next() }, @@ -2990,7 +2610,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .userinfoCustomAs(input, userinfoCustomAsResponder, ctx) + .userinfoCustomAs(input, userinfoCustomAs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -2998,7 +2618,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = userinfoCustomAsResponseValidator(status, body) + ctx.body = userinfoCustomAs.validator(status, body) ctx.status = status return next() }, diff --git a/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts index 11b0c28e6..621138bc9 100644 --- a/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts @@ -23,27 +23,19 @@ import { Response, ServerConfig, StatusCode, - r, + b, startServer, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const findPetsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const findPets = b((r) => ({ + with200: r.with200(z.array(s_Pet)), + withDefault: r.withDefault(s_Error), withStatus: r.withStatus, -} - -type FindPetsResponder = typeof findPetsResponder & KoaRuntimeResponder +})) -const findPetsResponseValidator = responseValidationFactory( - [["200", z.array(s_Pet)]], - s_Error, -) +type FindPetsResponder = (typeof findPets)["responder"] & KoaRuntimeResponder export type FindPets = ( params: Params, @@ -55,18 +47,13 @@ export type FindPets = ( | Response > -const addPetResponder = { - with200: r.with200, - withDefault: r.withDefault, +const addPet = b((r) => ({ + with200: r.with200(s_Pet), + withDefault: r.withDefault(s_Error), withStatus: r.withStatus, -} - -type AddPetResponder = typeof addPetResponder & KoaRuntimeResponder +})) -const addPetResponseValidator = responseValidationFactory( - [["200", s_Pet]], - s_Error, -) +type AddPetResponder = (typeof addPet)["responder"] & KoaRuntimeResponder export type AddPet = ( params: Params, @@ -78,18 +65,14 @@ export type AddPet = ( | Response > -const findPetByIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const findPetById = b((r) => ({ + with200: r.with200(s_Pet), + withDefault: r.withDefault(s_Error), withStatus: r.withStatus, -} - -type FindPetByIdResponder = typeof findPetByIdResponder & KoaRuntimeResponder +})) -const findPetByIdResponseValidator = responseValidationFactory( - [["200", s_Pet]], - s_Error, -) +type FindPetByIdResponder = (typeof findPetById)["responder"] & + KoaRuntimeResponder export type FindPetById = ( params: Params, @@ -101,18 +84,13 @@ export type FindPetById = ( | Response > -const deletePetResponder = { - with204: r.with204, - withDefault: r.withDefault, +const deletePet = b((r) => ({ + with204: r.with204(z.undefined()), + withDefault: r.withDefault(s_Error), withStatus: r.withStatus, -} - -type DeletePetResponder = typeof deletePetResponder & KoaRuntimeResponder +})) -const deletePetResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - s_Error, -) +type DeletePetResponder = (typeof deletePet)["responder"] & KoaRuntimeResponder export type DeletePet = ( params: Params, @@ -157,7 +135,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .findPets(input, findPetsResponder, ctx) + .findPets(input, findPets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -165,7 +143,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = findPetsResponseValidator(status, body) + ctx.body = findPets.validator(status, body) ctx.status = status return next() }) @@ -185,7 +163,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .addPet(input, addPetResponder, ctx) + .addPet(input, addPet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -193,7 +171,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = addPetResponseValidator(status, body) + ctx.body = addPet.validator(status, body) ctx.status = status return next() }) @@ -213,7 +191,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .findPetById(input, findPetByIdResponder, ctx) + .findPetById(input, findPetById.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -221,7 +199,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = findPetByIdResponseValidator(status, body) + ctx.body = findPetById.validator(status, body) ctx.status = status return next() }) @@ -241,7 +219,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deletePet(input, deletePetResponder, ctx) + .deletePet(input, deletePet.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -249,7 +227,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deletePetResponseValidator(status, body) + ctx.body = deletePet.validator(status, body) ctx.status = status return next() }) diff --git a/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts index 4a6b13485..4e04ce32d 100644 --- a/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts @@ -1525,27 +1525,20 @@ import { Response, ServerConfig, StatusCode, - r, + b, startServer, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const getAccountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getAccount = b((r) => ({ + with200: r.with200(s_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetAccountResponder = typeof getAccountResponder & KoaRuntimeResponder +})) -const getAccountResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, -) +type GetAccountResponder = (typeof getAccount)["responder"] & + KoaRuntimeResponder export type GetAccount = ( params: Params< @@ -1562,20 +1555,15 @@ export type GetAccount = ( | Response > -const postAccountLinksResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountLinks = b((r) => ({ + with200: r.with200(s_account_link), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostAccountLinksResponder = typeof postAccountLinksResponder & +type PostAccountLinksResponder = (typeof postAccountLinks)["responder"] & KoaRuntimeResponder -const postAccountLinksResponseValidator = responseValidationFactory( - [["200", s_account_link]], - s_error, -) - export type PostAccountLinks = ( params: Params, respond: PostAccountLinksResponder, @@ -1586,20 +1574,15 @@ export type PostAccountLinks = ( | Response > -const postAccountSessionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountSessions = b((r) => ({ + with200: r.with200(s_account_session), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostAccountSessionsResponder = typeof postAccountSessionsResponder & +type PostAccountSessionsResponder = (typeof postAccountSessions)["responder"] & KoaRuntimeResponder -const postAccountSessionsResponseValidator = responseValidationFactory( - [["200", s_account_session]], - s_error, -) - export type PostAccountSessions = ( params: Params, respond: PostAccountSessionsResponder, @@ -1610,33 +1593,26 @@ export type PostAccountSessions = ( | Response > -const getAccountsResponder = { +const getAccounts = b((r) => ({ with200: r.with200<{ data: t_account[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_account)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/accounts")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetAccountsResponder = typeof getAccountsResponder & KoaRuntimeResponder - -const getAccountsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_account)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/accounts")), - }), - ], - ], - s_error, -) +type GetAccountsResponder = (typeof getAccounts)["responder"] & + KoaRuntimeResponder export type GetAccounts = ( params: Params< @@ -1661,18 +1637,14 @@ export type GetAccounts = ( | Response > -const postAccountsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccounts = b((r) => ({ + with200: r.with200(s_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostAccountsResponder = typeof postAccountsResponder & KoaRuntimeResponder - -const postAccountsResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, -) +type PostAccountsResponder = (typeof postAccounts)["responder"] & + KoaRuntimeResponder export type PostAccounts = ( params: Params, @@ -1684,19 +1656,14 @@ export type PostAccounts = ( | Response > -const deleteAccountsAccountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteAccountsAccount = b((r) => ({ + with200: r.with200(s_deleted_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type DeleteAccountsAccountResponder = typeof deleteAccountsAccountResponder & - KoaRuntimeResponder +})) -const deleteAccountsAccountResponseValidator = responseValidationFactory( - [["200", s_deleted_account]], - s_error, -) +type DeleteAccountsAccountResponder = + (typeof deleteAccountsAccount)["responder"] & KoaRuntimeResponder export type DeleteAccountsAccount = ( params: Params< @@ -1713,20 +1680,15 @@ export type DeleteAccountsAccount = ( | Response > -const getAccountsAccountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getAccountsAccount = b((r) => ({ + with200: r.with200(s_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetAccountsAccountResponder = typeof getAccountsAccountResponder & +type GetAccountsAccountResponder = (typeof getAccountsAccount)["responder"] & KoaRuntimeResponder -const getAccountsAccountResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, -) - export type GetAccountsAccount = ( params: Params< t_GetAccountsAccountParamSchema, @@ -1742,20 +1704,15 @@ export type GetAccountsAccount = ( | Response > -const postAccountsAccountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccount = b((r) => ({ + with200: r.with200(s_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostAccountsAccountResponder = typeof postAccountsAccountResponder & +type PostAccountsAccountResponder = (typeof postAccountsAccount)["responder"] & KoaRuntimeResponder -const postAccountsAccountResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, -) - export type PostAccountsAccount = ( params: Params< t_PostAccountsAccountParamSchema, @@ -1771,17 +1728,14 @@ export type PostAccountsAccount = ( | Response > -const postAccountsAccountBankAccountsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountBankAccounts = b((r) => ({ + with200: r.with200(s_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountBankAccountsResponder = - typeof postAccountsAccountBankAccountsResponder & KoaRuntimeResponder - -const postAccountsAccountBankAccountsResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) + (typeof postAccountsAccountBankAccounts)["responder"] & KoaRuntimeResponder export type PostAccountsAccountBankAccounts = ( params: Params< @@ -1798,17 +1752,15 @@ export type PostAccountsAccountBankAccounts = ( | Response > -const deleteAccountsAccountBankAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteAccountsAccountBankAccountsId = b((r) => ({ + with200: r.with200(s_deleted_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteAccountsAccountBankAccountsIdResponder = - typeof deleteAccountsAccountBankAccountsIdResponder & KoaRuntimeResponder - -const deleteAccountsAccountBankAccountsIdResponseValidator = - responseValidationFactory([["200", s_deleted_external_account]], s_error) + (typeof deleteAccountsAccountBankAccountsId)["responder"] & + KoaRuntimeResponder export type DeleteAccountsAccountBankAccountsId = ( params: Params< @@ -1825,17 +1777,14 @@ export type DeleteAccountsAccountBankAccountsId = ( | Response > -const getAccountsAccountBankAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getAccountsAccountBankAccountsId = b((r) => ({ + with200: r.with200(s_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountBankAccountsIdResponder = - typeof getAccountsAccountBankAccountsIdResponder & KoaRuntimeResponder - -const getAccountsAccountBankAccountsIdResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) + (typeof getAccountsAccountBankAccountsId)["responder"] & KoaRuntimeResponder export type GetAccountsAccountBankAccountsId = ( params: Params< @@ -1852,17 +1801,14 @@ export type GetAccountsAccountBankAccountsId = ( | Response > -const postAccountsAccountBankAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountBankAccountsId = b((r) => ({ + with200: r.with200(s_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountBankAccountsIdResponder = - typeof postAccountsAccountBankAccountsIdResponder & KoaRuntimeResponder - -const postAccountsAccountBankAccountsIdResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) + (typeof postAccountsAccountBankAccountsId)["responder"] & KoaRuntimeResponder export type PostAccountsAccountBankAccountsId = ( params: Params< @@ -1879,35 +1825,26 @@ export type PostAccountsAccountBankAccountsId = ( | Response > -const getAccountsAccountCapabilitiesResponder = { +const getAccountsAccountCapabilities = b((r) => ({ with200: r.with200<{ data: t_capability[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_capability)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountCapabilitiesResponder = - typeof getAccountsAccountCapabilitiesResponder & KoaRuntimeResponder - -const getAccountsAccountCapabilitiesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_capability)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getAccountsAccountCapabilities)["responder"] & KoaRuntimeResponder export type GetAccountsAccountCapabilities = ( params: Params< @@ -1932,17 +1869,15 @@ export type GetAccountsAccountCapabilities = ( | Response > -const getAccountsAccountCapabilitiesCapabilityResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getAccountsAccountCapabilitiesCapability = b((r) => ({ + with200: r.with200(s_capability), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountCapabilitiesCapabilityResponder = - typeof getAccountsAccountCapabilitiesCapabilityResponder & KoaRuntimeResponder - -const getAccountsAccountCapabilitiesCapabilityResponseValidator = - responseValidationFactory([["200", s_capability]], s_error) + (typeof getAccountsAccountCapabilitiesCapability)["responder"] & + KoaRuntimeResponder export type GetAccountsAccountCapabilitiesCapability = ( params: Params< @@ -1959,19 +1894,16 @@ export type GetAccountsAccountCapabilitiesCapability = ( | Response > -const postAccountsAccountCapabilitiesCapabilityResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountCapabilitiesCapability = b((r) => ({ + with200: r.with200(s_capability), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountCapabilitiesCapabilityResponder = - typeof postAccountsAccountCapabilitiesCapabilityResponder & + (typeof postAccountsAccountCapabilitiesCapability)["responder"] & KoaRuntimeResponder -const postAccountsAccountCapabilitiesCapabilityResponseValidator = - responseValidationFactory([["200", s_capability]], s_error) - export type PostAccountsAccountCapabilitiesCapability = ( params: Params< t_PostAccountsAccountCapabilitiesCapabilityParamSchema, @@ -1987,37 +1919,28 @@ export type PostAccountsAccountCapabilitiesCapability = ( | Response > -const getAccountsAccountExternalAccountsResponder = { +const getAccountsAccountExternalAccounts = b((r) => ({ with200: r.with200<{ data: (t_bank_account | t_card)[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array( + z.union([z.lazy(() => s_bank_account), z.lazy(() => s_card)]), + ), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountExternalAccountsResponder = - typeof getAccountsAccountExternalAccountsResponder & KoaRuntimeResponder - -const getAccountsAccountExternalAccountsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array( - z.union([z.lazy(() => s_bank_account), z.lazy(() => s_card)]), - ), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getAccountsAccountExternalAccounts)["responder"] & KoaRuntimeResponder export type GetAccountsAccountExternalAccounts = ( params: Params< @@ -2042,17 +1965,15 @@ export type GetAccountsAccountExternalAccounts = ( | Response > -const postAccountsAccountExternalAccountsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountExternalAccounts = b((r) => ({ + with200: r.with200(s_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountExternalAccountsResponder = - typeof postAccountsAccountExternalAccountsResponder & KoaRuntimeResponder - -const postAccountsAccountExternalAccountsResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) + (typeof postAccountsAccountExternalAccounts)["responder"] & + KoaRuntimeResponder export type PostAccountsAccountExternalAccounts = ( params: Params< @@ -2069,17 +1990,15 @@ export type PostAccountsAccountExternalAccounts = ( | Response > -const deleteAccountsAccountExternalAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteAccountsAccountExternalAccountsId = b((r) => ({ + with200: r.with200(s_deleted_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteAccountsAccountExternalAccountsIdResponder = - typeof deleteAccountsAccountExternalAccountsIdResponder & KoaRuntimeResponder - -const deleteAccountsAccountExternalAccountsIdResponseValidator = - responseValidationFactory([["200", s_deleted_external_account]], s_error) + (typeof deleteAccountsAccountExternalAccountsId)["responder"] & + KoaRuntimeResponder export type DeleteAccountsAccountExternalAccountsId = ( params: Params< @@ -2096,17 +2015,15 @@ export type DeleteAccountsAccountExternalAccountsId = ( | Response > -const getAccountsAccountExternalAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getAccountsAccountExternalAccountsId = b((r) => ({ + with200: r.with200(s_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountExternalAccountsIdResponder = - typeof getAccountsAccountExternalAccountsIdResponder & KoaRuntimeResponder - -const getAccountsAccountExternalAccountsIdResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) + (typeof getAccountsAccountExternalAccountsId)["responder"] & + KoaRuntimeResponder export type GetAccountsAccountExternalAccountsId = ( params: Params< @@ -2123,17 +2040,15 @@ export type GetAccountsAccountExternalAccountsId = ( | Response > -const postAccountsAccountExternalAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountExternalAccountsId = b((r) => ({ + with200: r.with200(s_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountExternalAccountsIdResponder = - typeof postAccountsAccountExternalAccountsIdResponder & KoaRuntimeResponder - -const postAccountsAccountExternalAccountsIdResponseValidator = - responseValidationFactory([["200", s_external_account]], s_error) + (typeof postAccountsAccountExternalAccountsId)["responder"] & + KoaRuntimeResponder export type PostAccountsAccountExternalAccountsId = ( params: Params< @@ -2150,17 +2065,14 @@ export type PostAccountsAccountExternalAccountsId = ( | Response > -const postAccountsAccountLoginLinksResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountLoginLinks = b((r) => ({ + with200: r.with200(s_login_link), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountLoginLinksResponder = - typeof postAccountsAccountLoginLinksResponder & KoaRuntimeResponder - -const postAccountsAccountLoginLinksResponseValidator = - responseValidationFactory([["200", s_login_link]], s_error) + (typeof postAccountsAccountLoginLinks)["responder"] & KoaRuntimeResponder export type PostAccountsAccountLoginLinks = ( params: Params< @@ -2177,34 +2089,26 @@ export type PostAccountsAccountLoginLinks = ( | Response > -const getAccountsAccountPeopleResponder = { +const getAccountsAccountPeople = b((r) => ({ with200: r.with200<{ data: t_person[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_person)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountPeopleResponder = - typeof getAccountsAccountPeopleResponder & KoaRuntimeResponder - -const getAccountsAccountPeopleResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_person)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getAccountsAccountPeople)["responder"] & KoaRuntimeResponder export type GetAccountsAccountPeople = ( params: Params< @@ -2229,19 +2133,14 @@ export type GetAccountsAccountPeople = ( | Response > -const postAccountsAccountPeopleResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountPeople = b((r) => ({ + with200: r.with200(s_person), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountPeopleResponder = - typeof postAccountsAccountPeopleResponder & KoaRuntimeResponder - -const postAccountsAccountPeopleResponseValidator = responseValidationFactory( - [["200", s_person]], - s_error, -) + (typeof postAccountsAccountPeople)["responder"] & KoaRuntimeResponder export type PostAccountsAccountPeople = ( params: Params< @@ -2258,17 +2157,14 @@ export type PostAccountsAccountPeople = ( | Response > -const deleteAccountsAccountPeoplePersonResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteAccountsAccountPeoplePerson = b((r) => ({ + with200: r.with200(s_deleted_person), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteAccountsAccountPeoplePersonResponder = - typeof deleteAccountsAccountPeoplePersonResponder & KoaRuntimeResponder - -const deleteAccountsAccountPeoplePersonResponseValidator = - responseValidationFactory([["200", s_deleted_person]], s_error) + (typeof deleteAccountsAccountPeoplePerson)["responder"] & KoaRuntimeResponder export type DeleteAccountsAccountPeoplePerson = ( params: Params< @@ -2285,17 +2181,14 @@ export type DeleteAccountsAccountPeoplePerson = ( | Response > -const getAccountsAccountPeoplePersonResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getAccountsAccountPeoplePerson = b((r) => ({ + with200: r.with200(s_person), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountPeoplePersonResponder = - typeof getAccountsAccountPeoplePersonResponder & KoaRuntimeResponder - -const getAccountsAccountPeoplePersonResponseValidator = - responseValidationFactory([["200", s_person]], s_error) + (typeof getAccountsAccountPeoplePerson)["responder"] & KoaRuntimeResponder export type GetAccountsAccountPeoplePerson = ( params: Params< @@ -2312,17 +2205,14 @@ export type GetAccountsAccountPeoplePerson = ( | Response > -const postAccountsAccountPeoplePersonResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountPeoplePerson = b((r) => ({ + with200: r.with200(s_person), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountPeoplePersonResponder = - typeof postAccountsAccountPeoplePersonResponder & KoaRuntimeResponder - -const postAccountsAccountPeoplePersonResponseValidator = - responseValidationFactory([["200", s_person]], s_error) + (typeof postAccountsAccountPeoplePerson)["responder"] & KoaRuntimeResponder export type PostAccountsAccountPeoplePerson = ( params: Params< @@ -2339,34 +2229,26 @@ export type PostAccountsAccountPeoplePerson = ( | Response > -const getAccountsAccountPersonsResponder = { +const getAccountsAccountPersons = b((r) => ({ with200: r.with200<{ data: t_person[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_person)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountPersonsResponder = - typeof getAccountsAccountPersonsResponder & KoaRuntimeResponder - -const getAccountsAccountPersonsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_person)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getAccountsAccountPersons)["responder"] & KoaRuntimeResponder export type GetAccountsAccountPersons = ( params: Params< @@ -2391,19 +2273,14 @@ export type GetAccountsAccountPersons = ( | Response > -const postAccountsAccountPersonsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountPersons = b((r) => ({ + with200: r.with200(s_person), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountPersonsResponder = - typeof postAccountsAccountPersonsResponder & KoaRuntimeResponder - -const postAccountsAccountPersonsResponseValidator = responseValidationFactory( - [["200", s_person]], - s_error, -) + (typeof postAccountsAccountPersons)["responder"] & KoaRuntimeResponder export type PostAccountsAccountPersons = ( params: Params< @@ -2420,17 +2297,14 @@ export type PostAccountsAccountPersons = ( | Response > -const deleteAccountsAccountPersonsPersonResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteAccountsAccountPersonsPerson = b((r) => ({ + with200: r.with200(s_deleted_person), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteAccountsAccountPersonsPersonResponder = - typeof deleteAccountsAccountPersonsPersonResponder & KoaRuntimeResponder - -const deleteAccountsAccountPersonsPersonResponseValidator = - responseValidationFactory([["200", s_deleted_person]], s_error) + (typeof deleteAccountsAccountPersonsPerson)["responder"] & KoaRuntimeResponder export type DeleteAccountsAccountPersonsPerson = ( params: Params< @@ -2447,17 +2321,14 @@ export type DeleteAccountsAccountPersonsPerson = ( | Response > -const getAccountsAccountPersonsPersonResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getAccountsAccountPersonsPerson = b((r) => ({ + with200: r.with200(s_person), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetAccountsAccountPersonsPersonResponder = - typeof getAccountsAccountPersonsPersonResponder & KoaRuntimeResponder - -const getAccountsAccountPersonsPersonResponseValidator = - responseValidationFactory([["200", s_person]], s_error) + (typeof getAccountsAccountPersonsPerson)["responder"] & KoaRuntimeResponder export type GetAccountsAccountPersonsPerson = ( params: Params< @@ -2474,17 +2345,14 @@ export type GetAccountsAccountPersonsPerson = ( | Response > -const postAccountsAccountPersonsPersonResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountPersonsPerson = b((r) => ({ + with200: r.with200(s_person), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountPersonsPersonResponder = - typeof postAccountsAccountPersonsPersonResponder & KoaRuntimeResponder - -const postAccountsAccountPersonsPersonResponseValidator = - responseValidationFactory([["200", s_person]], s_error) + (typeof postAccountsAccountPersonsPerson)["responder"] & KoaRuntimeResponder export type PostAccountsAccountPersonsPerson = ( params: Params< @@ -2501,19 +2369,14 @@ export type PostAccountsAccountPersonsPerson = ( | Response > -const postAccountsAccountRejectResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAccountsAccountReject = b((r) => ({ + with200: r.with200(s_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostAccountsAccountRejectResponder = - typeof postAccountsAccountRejectResponder & KoaRuntimeResponder - -const postAccountsAccountRejectResponseValidator = responseValidationFactory( - [["200", s_account]], - s_error, -) + (typeof postAccountsAccountReject)["responder"] & KoaRuntimeResponder export type PostAccountsAccountReject = ( params: Params< @@ -2530,35 +2393,27 @@ export type PostAccountsAccountReject = ( | Response > -const getApplePayDomainsResponder = { +const getApplePayDomains = b((r) => ({ with200: r.with200<{ data: t_apple_pay_domain[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_apple_pay_domain), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/apple_pay/domains")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetApplePayDomainsResponder = typeof getApplePayDomainsResponder & +type GetApplePayDomainsResponder = (typeof getApplePayDomains)["responder"] & KoaRuntimeResponder -const getApplePayDomainsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_apple_pay_domain), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/apple_pay/domains")), - }), - ], - ], - s_error, -) - export type GetApplePayDomains = ( params: Params< void, @@ -2582,20 +2437,15 @@ export type GetApplePayDomains = ( | Response > -const postApplePayDomainsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postApplePayDomains = b((r) => ({ + with200: r.with200(s_apple_pay_domain), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostApplePayDomainsResponder = typeof postApplePayDomainsResponder & +type PostApplePayDomainsResponder = (typeof postApplePayDomains)["responder"] & KoaRuntimeResponder -const postApplePayDomainsResponseValidator = responseValidationFactory( - [["200", s_apple_pay_domain]], - s_error, -) - export type PostApplePayDomains = ( params: Params, respond: PostApplePayDomainsResponder, @@ -2606,19 +2456,14 @@ export type PostApplePayDomains = ( | Response > -const deleteApplePayDomainsDomainResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteApplePayDomainsDomain = b((r) => ({ + with200: r.with200(s_deleted_apple_pay_domain), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteApplePayDomainsDomainResponder = - typeof deleteApplePayDomainsDomainResponder & KoaRuntimeResponder - -const deleteApplePayDomainsDomainResponseValidator = responseValidationFactory( - [["200", s_deleted_apple_pay_domain]], - s_error, -) + (typeof deleteApplePayDomainsDomain)["responder"] & KoaRuntimeResponder export type DeleteApplePayDomainsDomain = ( params: Params< @@ -2635,19 +2480,14 @@ export type DeleteApplePayDomainsDomain = ( | Response > -const getApplePayDomainsDomainResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getApplePayDomainsDomain = b((r) => ({ + with200: r.with200(s_apple_pay_domain), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetApplePayDomainsDomainResponder = - typeof getApplePayDomainsDomainResponder & KoaRuntimeResponder - -const getApplePayDomainsDomainResponseValidator = responseValidationFactory( - [["200", s_apple_pay_domain]], - s_error, -) + (typeof getApplePayDomainsDomain)["responder"] & KoaRuntimeResponder export type GetApplePayDomainsDomain = ( params: Params< @@ -2664,35 +2504,27 @@ export type GetApplePayDomainsDomain = ( | Response > -const getApplicationFeesResponder = { +const getApplicationFees = b((r) => ({ with200: r.with200<{ data: t_application_fee[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_application_fee)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/application_fees")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetApplicationFeesResponder = typeof getApplicationFeesResponder & +type GetApplicationFeesResponder = (typeof getApplicationFees)["responder"] & KoaRuntimeResponder -const getApplicationFeesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_application_fee)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/application_fees")), - }), - ], - ], - s_error, -) - export type GetApplicationFees = ( params: Params< void, @@ -2716,17 +2548,14 @@ export type GetApplicationFees = ( | Response > -const getApplicationFeesFeeRefundsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getApplicationFeesFeeRefundsId = b((r) => ({ + with200: r.with200(s_fee_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetApplicationFeesFeeRefundsIdResponder = - typeof getApplicationFeesFeeRefundsIdResponder & KoaRuntimeResponder - -const getApplicationFeesFeeRefundsIdResponseValidator = - responseValidationFactory([["200", s_fee_refund]], s_error) + (typeof getApplicationFeesFeeRefundsId)["responder"] & KoaRuntimeResponder export type GetApplicationFeesFeeRefundsId = ( params: Params< @@ -2743,17 +2572,14 @@ export type GetApplicationFeesFeeRefundsId = ( | Response > -const postApplicationFeesFeeRefundsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postApplicationFeesFeeRefundsId = b((r) => ({ + with200: r.with200(s_fee_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostApplicationFeesFeeRefundsIdResponder = - typeof postApplicationFeesFeeRefundsIdResponder & KoaRuntimeResponder - -const postApplicationFeesFeeRefundsIdResponseValidator = - responseValidationFactory([["200", s_fee_refund]], s_error) + (typeof postApplicationFeesFeeRefundsId)["responder"] & KoaRuntimeResponder export type PostApplicationFeesFeeRefundsId = ( params: Params< @@ -2770,19 +2596,14 @@ export type PostApplicationFeesFeeRefundsId = ( | Response > -const getApplicationFeesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getApplicationFeesId = b((r) => ({ + with200: r.with200(s_application_fee), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetApplicationFeesIdResponder = typeof getApplicationFeesIdResponder & - KoaRuntimeResponder - -const getApplicationFeesIdResponseValidator = responseValidationFactory( - [["200", s_application_fee]], - s_error, -) +type GetApplicationFeesIdResponder = + (typeof getApplicationFeesId)["responder"] & KoaRuntimeResponder export type GetApplicationFeesId = ( params: Params< @@ -2799,19 +2620,14 @@ export type GetApplicationFeesId = ( | Response > -const postApplicationFeesIdRefundResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postApplicationFeesIdRefund = b((r) => ({ + with200: r.with200(s_application_fee), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostApplicationFeesIdRefundResponder = - typeof postApplicationFeesIdRefundResponder & KoaRuntimeResponder - -const postApplicationFeesIdRefundResponseValidator = responseValidationFactory( - [["200", s_application_fee]], - s_error, -) + (typeof postApplicationFeesIdRefund)["responder"] & KoaRuntimeResponder export type PostApplicationFeesIdRefund = ( params: Params< @@ -2828,34 +2644,26 @@ export type PostApplicationFeesIdRefund = ( | Response > -const getApplicationFeesIdRefundsResponder = { +const getApplicationFeesIdRefunds = b((r) => ({ with200: r.with200<{ data: t_fee_refund[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_fee_refund)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetApplicationFeesIdRefundsResponder = - typeof getApplicationFeesIdRefundsResponder & KoaRuntimeResponder - -const getApplicationFeesIdRefundsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_fee_refund)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getApplicationFeesIdRefunds)["responder"] & KoaRuntimeResponder export type GetApplicationFeesIdRefunds = ( params: Params< @@ -2880,19 +2688,14 @@ export type GetApplicationFeesIdRefunds = ( | Response > -const postApplicationFeesIdRefundsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postApplicationFeesIdRefunds = b((r) => ({ + with200: r.with200(s_fee_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostApplicationFeesIdRefundsResponder = - typeof postApplicationFeesIdRefundsResponder & KoaRuntimeResponder - -const postApplicationFeesIdRefundsResponseValidator = responseValidationFactory( - [["200", s_fee_refund]], - s_error, -) + (typeof postApplicationFeesIdRefunds)["responder"] & KoaRuntimeResponder export type PostApplicationFeesIdRefunds = ( params: Params< @@ -2909,35 +2712,27 @@ export type PostApplicationFeesIdRefunds = ( | Response > -const getAppsSecretsResponder = { +const getAppsSecrets = b((r) => ({ with200: r.with200<{ data: t_apps_secret[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_apps_secret), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/apps/secrets")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetAppsSecretsResponder = typeof getAppsSecretsResponder & +type GetAppsSecretsResponder = (typeof getAppsSecrets)["responder"] & KoaRuntimeResponder -const getAppsSecretsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_apps_secret), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/apps/secrets")), - }), - ], - ], - s_error, -) - export type GetAppsSecrets = ( params: Params< void, @@ -2961,20 +2756,15 @@ export type GetAppsSecrets = ( | Response > -const postAppsSecretsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAppsSecrets = b((r) => ({ + with200: r.with200(s_apps_secret), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostAppsSecretsResponder = typeof postAppsSecretsResponder & +type PostAppsSecretsResponder = (typeof postAppsSecrets)["responder"] & KoaRuntimeResponder -const postAppsSecretsResponseValidator = responseValidationFactory( - [["200", s_apps_secret]], - s_error, -) - export type PostAppsSecrets = ( params: Params, respond: PostAppsSecretsResponder, @@ -2985,19 +2775,14 @@ export type PostAppsSecrets = ( | Response > -const postAppsSecretsDeleteResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postAppsSecretsDelete = b((r) => ({ + with200: r.with200(s_apps_secret), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostAppsSecretsDeleteResponder = typeof postAppsSecretsDeleteResponder & - KoaRuntimeResponder +})) -const postAppsSecretsDeleteResponseValidator = responseValidationFactory( - [["200", s_apps_secret]], - s_error, -) +type PostAppsSecretsDeleteResponder = + (typeof postAppsSecretsDelete)["responder"] & KoaRuntimeResponder export type PostAppsSecretsDelete = ( params: Params, @@ -3009,20 +2794,15 @@ export type PostAppsSecretsDelete = ( | Response > -const getAppsSecretsFindResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getAppsSecretsFind = b((r) => ({ + with200: r.with200(s_apps_secret), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetAppsSecretsFindResponder = typeof getAppsSecretsFindResponder & +type GetAppsSecretsFindResponder = (typeof getAppsSecretsFind)["responder"] & KoaRuntimeResponder -const getAppsSecretsFindResponseValidator = responseValidationFactory( - [["200", s_apps_secret]], - s_error, -) - export type GetAppsSecretsFind = ( params: Params< void, @@ -3038,18 +2818,14 @@ export type GetAppsSecretsFind = ( | Response > -const getBalanceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBalance = b((r) => ({ + with200: r.with200(s_balance), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetBalanceResponder = typeof getBalanceResponder & KoaRuntimeResponder - -const getBalanceResponseValidator = responseValidationFactory( - [["200", s_balance]], - s_error, -) +type GetBalanceResponder = (typeof getBalance)["responder"] & + KoaRuntimeResponder export type GetBalance = ( params: Params< @@ -3066,38 +2842,27 @@ export type GetBalance = ( | Response > -const getBalanceHistoryResponder = { +const getBalanceHistory = b((r) => ({ with200: r.with200<{ data: t_balance_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/balance_transactions")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetBalanceHistoryResponder = typeof getBalanceHistoryResponder & +type GetBalanceHistoryResponder = (typeof getBalanceHistory)["responder"] & KoaRuntimeResponder -const getBalanceHistoryResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/balance_transactions")), - }), - ], - ], - s_error, -) - export type GetBalanceHistory = ( params: Params< void, @@ -3121,20 +2886,15 @@ export type GetBalanceHistory = ( | Response > -const getBalanceHistoryIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBalanceHistoryId = b((r) => ({ + with200: r.with200(s_balance_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetBalanceHistoryIdResponder = typeof getBalanceHistoryIdResponder & +type GetBalanceHistoryIdResponder = (typeof getBalanceHistoryId)["responder"] & KoaRuntimeResponder -const getBalanceHistoryIdResponseValidator = responseValidationFactory( - [["200", s_balance_transaction]], - s_error, -) - export type GetBalanceHistoryId = ( params: Params< t_GetBalanceHistoryIdParamSchema, @@ -3150,37 +2910,26 @@ export type GetBalanceHistoryId = ( | Response > -const getBalanceTransactionsResponder = { +const getBalanceTransactions = b((r) => ({ with200: r.with200<{ data: t_balance_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/balance_transactions")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetBalanceTransactionsResponder = typeof getBalanceTransactionsResponder & - KoaRuntimeResponder +})) -const getBalanceTransactionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/balance_transactions")), - }), - ], - ], - s_error, -) +type GetBalanceTransactionsResponder = + (typeof getBalanceTransactions)["responder"] & KoaRuntimeResponder export type GetBalanceTransactions = ( params: Params< @@ -3205,19 +2954,14 @@ export type GetBalanceTransactions = ( | Response > -const getBalanceTransactionsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBalanceTransactionsId = b((r) => ({ + with200: r.with200(s_balance_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetBalanceTransactionsIdResponder = - typeof getBalanceTransactionsIdResponder & KoaRuntimeResponder - -const getBalanceTransactionsIdResponseValidator = responseValidationFactory( - [["200", s_balance_transaction]], - s_error, -) + (typeof getBalanceTransactionsId)["responder"] & KoaRuntimeResponder export type GetBalanceTransactionsId = ( params: Params< @@ -3234,35 +2978,27 @@ export type GetBalanceTransactionsId = ( | Response > -const getBillingAlertsResponder = { +const getBillingAlerts = b((r) => ({ with200: r.with200<{ data: t_billing_alert[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_billing_alert)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/billing/alerts")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetBillingAlertsResponder = typeof getBillingAlertsResponder & +type GetBillingAlertsResponder = (typeof getBillingAlerts)["responder"] & KoaRuntimeResponder -const getBillingAlertsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_billing_alert)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/billing/alerts")), - }), - ], - ], - s_error, -) - export type GetBillingAlerts = ( params: Params< void, @@ -3286,20 +3022,15 @@ export type GetBillingAlerts = ( | Response > -const postBillingAlertsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingAlerts = b((r) => ({ + with200: r.with200(s_billing_alert), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostBillingAlertsResponder = typeof postBillingAlertsResponder & +type PostBillingAlertsResponder = (typeof postBillingAlerts)["responder"] & KoaRuntimeResponder -const postBillingAlertsResponseValidator = responseValidationFactory( - [["200", s_billing_alert]], - s_error, -) - export type PostBillingAlerts = ( params: Params, respond: PostBillingAlertsResponder, @@ -3310,20 +3041,15 @@ export type PostBillingAlerts = ( | Response > -const getBillingAlertsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBillingAlertsId = b((r) => ({ + with200: r.with200(s_billing_alert), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetBillingAlertsIdResponder = typeof getBillingAlertsIdResponder & +type GetBillingAlertsIdResponder = (typeof getBillingAlertsId)["responder"] & KoaRuntimeResponder -const getBillingAlertsIdResponseValidator = responseValidationFactory( - [["200", s_billing_alert]], - s_error, -) - export type GetBillingAlertsId = ( params: Params< t_GetBillingAlertsIdParamSchema, @@ -3339,19 +3065,14 @@ export type GetBillingAlertsId = ( | Response > -const postBillingAlertsIdActivateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingAlertsIdActivate = b((r) => ({ + with200: r.with200(s_billing_alert), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingAlertsIdActivateResponder = - typeof postBillingAlertsIdActivateResponder & KoaRuntimeResponder - -const postBillingAlertsIdActivateResponseValidator = responseValidationFactory( - [["200", s_billing_alert]], - s_error, -) + (typeof postBillingAlertsIdActivate)["responder"] & KoaRuntimeResponder export type PostBillingAlertsIdActivate = ( params: Params< @@ -3368,19 +3089,14 @@ export type PostBillingAlertsIdActivate = ( | Response > -const postBillingAlertsIdArchiveResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingAlertsIdArchive = b((r) => ({ + with200: r.with200(s_billing_alert), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingAlertsIdArchiveResponder = - typeof postBillingAlertsIdArchiveResponder & KoaRuntimeResponder - -const postBillingAlertsIdArchiveResponseValidator = responseValidationFactory( - [["200", s_billing_alert]], - s_error, -) + (typeof postBillingAlertsIdArchive)["responder"] & KoaRuntimeResponder export type PostBillingAlertsIdArchive = ( params: Params< @@ -3397,17 +3113,14 @@ export type PostBillingAlertsIdArchive = ( | Response > -const postBillingAlertsIdDeactivateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingAlertsIdDeactivate = b((r) => ({ + with200: r.with200(s_billing_alert), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingAlertsIdDeactivateResponder = - typeof postBillingAlertsIdDeactivateResponder & KoaRuntimeResponder - -const postBillingAlertsIdDeactivateResponseValidator = - responseValidationFactory([["200", s_billing_alert]], s_error) + (typeof postBillingAlertsIdDeactivate)["responder"] & KoaRuntimeResponder export type PostBillingAlertsIdDeactivate = ( params: Params< @@ -3424,20 +3137,16 @@ export type PostBillingAlertsIdDeactivate = ( | Response > -const getBillingCreditBalanceSummaryResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBillingCreditBalanceSummary = b((r) => ({ + with200: r.with200( + s_billing_credit_balance_summary, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetBillingCreditBalanceSummaryResponder = - typeof getBillingCreditBalanceSummaryResponder & KoaRuntimeResponder - -const getBillingCreditBalanceSummaryResponseValidator = - responseValidationFactory( - [["200", s_billing_credit_balance_summary]], - s_error, - ) + (typeof getBillingCreditBalanceSummary)["responder"] & KoaRuntimeResponder export type GetBillingCreditBalanceSummary = ( params: Params< @@ -3454,38 +3163,27 @@ export type GetBillingCreditBalanceSummary = ( | Response > -const getBillingCreditBalanceTransactionsResponder = { +const getBillingCreditBalanceTransactions = b((r) => ({ with200: r.with200<{ data: t_billing_credit_balance_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_billing_credit_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/billing/credit_grants")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetBillingCreditBalanceTransactionsResponder = - typeof getBillingCreditBalanceTransactionsResponder & KoaRuntimeResponder - -const getBillingCreditBalanceTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_billing_credit_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/billing/credit_grants")), - }), - ], - ], - s_error, - ) + (typeof getBillingCreditBalanceTransactions)["responder"] & + KoaRuntimeResponder export type GetBillingCreditBalanceTransactions = ( params: Params< @@ -3510,20 +3208,17 @@ export type GetBillingCreditBalanceTransactions = ( | Response > -const getBillingCreditBalanceTransactionsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBillingCreditBalanceTransactionsId = b((r) => ({ + with200: r.with200( + s_billing_credit_balance_transaction, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetBillingCreditBalanceTransactionsIdResponder = - typeof getBillingCreditBalanceTransactionsIdResponder & KoaRuntimeResponder - -const getBillingCreditBalanceTransactionsIdResponseValidator = - responseValidationFactory( - [["200", s_billing_credit_balance_transaction]], - s_error, - ) + (typeof getBillingCreditBalanceTransactionsId)["responder"] & + KoaRuntimeResponder export type GetBillingCreditBalanceTransactionsId = ( params: Params< @@ -3540,37 +3235,26 @@ export type GetBillingCreditBalanceTransactionsId = ( | Response > -const getBillingCreditGrantsResponder = { +const getBillingCreditGrants = b((r) => ({ with200: r.with200<{ data: t_billing_credit_grant[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_billing_credit_grant)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/billing/credit_grants")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetBillingCreditGrantsResponder = typeof getBillingCreditGrantsResponder & - KoaRuntimeResponder +})) -const getBillingCreditGrantsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_billing_credit_grant)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/billing/credit_grants")), - }), - ], - ], - s_error, -) +type GetBillingCreditGrantsResponder = + (typeof getBillingCreditGrants)["responder"] & KoaRuntimeResponder export type GetBillingCreditGrants = ( params: Params< @@ -3595,19 +3279,14 @@ export type GetBillingCreditGrants = ( | Response > -const postBillingCreditGrantsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingCreditGrants = b((r) => ({ + with200: r.with200(s_billing_credit_grant), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingCreditGrantsResponder = - typeof postBillingCreditGrantsResponder & KoaRuntimeResponder - -const postBillingCreditGrantsResponseValidator = responseValidationFactory( - [["200", s_billing_credit_grant]], - s_error, -) + (typeof postBillingCreditGrants)["responder"] & KoaRuntimeResponder export type PostBillingCreditGrants = ( params: Params, @@ -3619,19 +3298,14 @@ export type PostBillingCreditGrants = ( | Response > -const getBillingCreditGrantsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBillingCreditGrantsId = b((r) => ({ + with200: r.with200(s_billing_credit_grant), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetBillingCreditGrantsIdResponder = - typeof getBillingCreditGrantsIdResponder & KoaRuntimeResponder - -const getBillingCreditGrantsIdResponseValidator = responseValidationFactory( - [["200", s_billing_credit_grant]], - s_error, -) + (typeof getBillingCreditGrantsId)["responder"] & KoaRuntimeResponder export type GetBillingCreditGrantsId = ( params: Params< @@ -3648,19 +3322,14 @@ export type GetBillingCreditGrantsId = ( | Response > -const postBillingCreditGrantsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingCreditGrantsId = b((r) => ({ + with200: r.with200(s_billing_credit_grant), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingCreditGrantsIdResponder = - typeof postBillingCreditGrantsIdResponder & KoaRuntimeResponder - -const postBillingCreditGrantsIdResponseValidator = responseValidationFactory( - [["200", s_billing_credit_grant]], - s_error, -) + (typeof postBillingCreditGrantsId)["responder"] & KoaRuntimeResponder export type PostBillingCreditGrantsId = ( params: Params< @@ -3677,17 +3346,14 @@ export type PostBillingCreditGrantsId = ( | Response > -const postBillingCreditGrantsIdExpireResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingCreditGrantsIdExpire = b((r) => ({ + with200: r.with200(s_billing_credit_grant), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingCreditGrantsIdExpireResponder = - typeof postBillingCreditGrantsIdExpireResponder & KoaRuntimeResponder - -const postBillingCreditGrantsIdExpireResponseValidator = - responseValidationFactory([["200", s_billing_credit_grant]], s_error) + (typeof postBillingCreditGrantsIdExpire)["responder"] & KoaRuntimeResponder export type PostBillingCreditGrantsIdExpire = ( params: Params< @@ -3704,17 +3370,14 @@ export type PostBillingCreditGrantsIdExpire = ( | Response > -const postBillingCreditGrantsIdVoidResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingCreditGrantsIdVoid = b((r) => ({ + with200: r.with200(s_billing_credit_grant), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingCreditGrantsIdVoidResponder = - typeof postBillingCreditGrantsIdVoidResponder & KoaRuntimeResponder - -const postBillingCreditGrantsIdVoidResponseValidator = - responseValidationFactory([["200", s_billing_credit_grant]], s_error) + (typeof postBillingCreditGrantsIdVoid)["responder"] & KoaRuntimeResponder export type PostBillingCreditGrantsIdVoid = ( params: Params< @@ -3731,20 +3394,16 @@ export type PostBillingCreditGrantsIdVoid = ( | Response > -const postBillingMeterEventAdjustmentsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingMeterEventAdjustments = b((r) => ({ + with200: r.with200( + s_billing_meter_event_adjustment, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingMeterEventAdjustmentsResponder = - typeof postBillingMeterEventAdjustmentsResponder & KoaRuntimeResponder - -const postBillingMeterEventAdjustmentsResponseValidator = - responseValidationFactory( - [["200", s_billing_meter_event_adjustment]], - s_error, - ) + (typeof postBillingMeterEventAdjustments)["responder"] & KoaRuntimeResponder export type PostBillingMeterEventAdjustments = ( params: Params< @@ -3761,19 +3420,14 @@ export type PostBillingMeterEventAdjustments = ( | Response > -const postBillingMeterEventsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingMeterEvents = b((r) => ({ + with200: r.with200(s_billing_meter_event), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostBillingMeterEventsResponder = typeof postBillingMeterEventsResponder & - KoaRuntimeResponder +})) -const postBillingMeterEventsResponseValidator = responseValidationFactory( - [["200", s_billing_meter_event]], - s_error, -) +type PostBillingMeterEventsResponder = + (typeof postBillingMeterEvents)["responder"] & KoaRuntimeResponder export type PostBillingMeterEvents = ( params: Params, @@ -3785,35 +3439,27 @@ export type PostBillingMeterEvents = ( | Response > -const getBillingMetersResponder = { +const getBillingMeters = b((r) => ({ with200: r.with200<{ data: t_billing_meter[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_billing_meter), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/billing/meters")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetBillingMetersResponder = typeof getBillingMetersResponder & +type GetBillingMetersResponder = (typeof getBillingMeters)["responder"] & KoaRuntimeResponder -const getBillingMetersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_billing_meter), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/billing/meters")), - }), - ], - ], - s_error, -) - export type GetBillingMeters = ( params: Params< void, @@ -3837,20 +3483,15 @@ export type GetBillingMeters = ( | Response > -const postBillingMetersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingMeters = b((r) => ({ + with200: r.with200(s_billing_meter), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostBillingMetersResponder = typeof postBillingMetersResponder & +type PostBillingMetersResponder = (typeof postBillingMeters)["responder"] & KoaRuntimeResponder -const postBillingMetersResponseValidator = responseValidationFactory( - [["200", s_billing_meter]], - s_error, -) - export type PostBillingMeters = ( params: Params, respond: PostBillingMetersResponder, @@ -3861,20 +3502,15 @@ export type PostBillingMeters = ( | Response > -const getBillingMetersIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBillingMetersId = b((r) => ({ + with200: r.with200(s_billing_meter), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetBillingMetersIdResponder = typeof getBillingMetersIdResponder & +type GetBillingMetersIdResponder = (typeof getBillingMetersId)["responder"] & KoaRuntimeResponder -const getBillingMetersIdResponseValidator = responseValidationFactory( - [["200", s_billing_meter]], - s_error, -) - export type GetBillingMetersId = ( params: Params< t_GetBillingMetersIdParamSchema, @@ -3890,20 +3526,15 @@ export type GetBillingMetersId = ( | Response > -const postBillingMetersIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingMetersId = b((r) => ({ + with200: r.with200(s_billing_meter), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostBillingMetersIdResponder = typeof postBillingMetersIdResponder & +type PostBillingMetersIdResponder = (typeof postBillingMetersId)["responder"] & KoaRuntimeResponder -const postBillingMetersIdResponseValidator = responseValidationFactory( - [["200", s_billing_meter]], - s_error, -) - export type PostBillingMetersId = ( params: Params< t_PostBillingMetersIdParamSchema, @@ -3919,17 +3550,14 @@ export type PostBillingMetersId = ( | Response > -const postBillingMetersIdDeactivateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingMetersIdDeactivate = b((r) => ({ + with200: r.with200(s_billing_meter), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingMetersIdDeactivateResponder = - typeof postBillingMetersIdDeactivateResponder & KoaRuntimeResponder - -const postBillingMetersIdDeactivateResponseValidator = - responseValidationFactory([["200", s_billing_meter]], s_error) + (typeof postBillingMetersIdDeactivate)["responder"] & KoaRuntimeResponder export type PostBillingMetersIdDeactivate = ( params: Params< @@ -3946,38 +3574,29 @@ export type PostBillingMetersIdDeactivate = ( | Response > -const getBillingMetersIdEventSummariesResponder = { +const getBillingMetersIdEventSummaries = b((r) => ({ with200: r.with200<{ data: t_billing_meter_event_summary[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_billing_meter_event_summary), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/billing/meters/[^/]+/event_summaries")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetBillingMetersIdEventSummariesResponder = - typeof getBillingMetersIdEventSummariesResponder & KoaRuntimeResponder - -const getBillingMetersIdEventSummariesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_billing_meter_event_summary), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/billing/meters/[^/]+/event_summaries")), - }), - ], - ], - s_error, - ) + (typeof getBillingMetersIdEventSummaries)["responder"] & KoaRuntimeResponder export type GetBillingMetersIdEventSummaries = ( params: Params< @@ -4002,17 +3621,14 @@ export type GetBillingMetersIdEventSummaries = ( | Response > -const postBillingMetersIdReactivateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingMetersIdReactivate = b((r) => ({ + with200: r.with200(s_billing_meter), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingMetersIdReactivateResponder = - typeof postBillingMetersIdReactivateResponder & KoaRuntimeResponder - -const postBillingMetersIdReactivateResponseValidator = - responseValidationFactory([["200", s_billing_meter]], s_error) + (typeof postBillingMetersIdReactivate)["responder"] & KoaRuntimeResponder export type PostBillingMetersIdReactivate = ( params: Params< @@ -4029,38 +3645,29 @@ export type PostBillingMetersIdReactivate = ( | Response > -const getBillingPortalConfigurationsResponder = { +const getBillingPortalConfigurations = b((r) => ({ with200: r.with200<{ data: t_billing_portal_configuration[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_billing_portal_configuration), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/billing_portal/configurations")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetBillingPortalConfigurationsResponder = - typeof getBillingPortalConfigurationsResponder & KoaRuntimeResponder - -const getBillingPortalConfigurationsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_billing_portal_configuration), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/billing_portal/configurations")), - }), - ], - ], - s_error, - ) + (typeof getBillingPortalConfigurations)["responder"] & KoaRuntimeResponder export type GetBillingPortalConfigurations = ( params: Params< @@ -4085,17 +3692,16 @@ export type GetBillingPortalConfigurations = ( | Response > -const postBillingPortalConfigurationsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingPortalConfigurations = b((r) => ({ + with200: r.with200( + s_billing_portal_configuration, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingPortalConfigurationsResponder = - typeof postBillingPortalConfigurationsResponder & KoaRuntimeResponder - -const postBillingPortalConfigurationsResponseValidator = - responseValidationFactory([["200", s_billing_portal_configuration]], s_error) + (typeof postBillingPortalConfigurations)["responder"] & KoaRuntimeResponder export type PostBillingPortalConfigurations = ( params: Params, @@ -4107,19 +3713,18 @@ export type PostBillingPortalConfigurations = ( | Response > -const getBillingPortalConfigurationsConfigurationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getBillingPortalConfigurationsConfiguration = b((r) => ({ + with200: r.with200( + s_billing_portal_configuration, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetBillingPortalConfigurationsConfigurationResponder = - typeof getBillingPortalConfigurationsConfigurationResponder & + (typeof getBillingPortalConfigurationsConfiguration)["responder"] & KoaRuntimeResponder -const getBillingPortalConfigurationsConfigurationResponseValidator = - responseValidationFactory([["200", s_billing_portal_configuration]], s_error) - export type GetBillingPortalConfigurationsConfiguration = ( params: Params< t_GetBillingPortalConfigurationsConfigurationParamSchema, @@ -4135,19 +3740,18 @@ export type GetBillingPortalConfigurationsConfiguration = ( | Response > -const postBillingPortalConfigurationsConfigurationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingPortalConfigurationsConfiguration = b((r) => ({ + with200: r.with200( + s_billing_portal_configuration, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingPortalConfigurationsConfigurationResponder = - typeof postBillingPortalConfigurationsConfigurationResponder & + (typeof postBillingPortalConfigurationsConfiguration)["responder"] & KoaRuntimeResponder -const postBillingPortalConfigurationsConfigurationResponseValidator = - responseValidationFactory([["200", s_billing_portal_configuration]], s_error) - export type PostBillingPortalConfigurationsConfiguration = ( params: Params< t_PostBillingPortalConfigurationsConfigurationParamSchema, @@ -4163,19 +3767,14 @@ export type PostBillingPortalConfigurationsConfiguration = ( | Response > -const postBillingPortalSessionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postBillingPortalSessions = b((r) => ({ + with200: r.with200(s_billing_portal_session), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostBillingPortalSessionsResponder = - typeof postBillingPortalSessionsResponder & KoaRuntimeResponder - -const postBillingPortalSessionsResponseValidator = responseValidationFactory( - [["200", s_billing_portal_session]], - s_error, -) + (typeof postBillingPortalSessions)["responder"] & KoaRuntimeResponder export type PostBillingPortalSessions = ( params: Params, @@ -4187,33 +3786,26 @@ export type PostBillingPortalSessions = ( | Response > -const getChargesResponder = { +const getCharges = b((r) => ({ with200: r.with200<{ data: t_charge[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_charge)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/charges")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetChargesResponder = typeof getChargesResponder & KoaRuntimeResponder - -const getChargesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_charge)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/charges")), - }), - ], - ], - s_error, -) +type GetChargesResponder = (typeof getCharges)["responder"] & + KoaRuntimeResponder export type GetCharges = ( params: Params< @@ -4238,18 +3830,14 @@ export type GetCharges = ( | Response > -const postChargesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCharges = b((r) => ({ + with200: r.with200(s_charge), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostChargesResponder = typeof postChargesResponder & KoaRuntimeResponder - -const postChargesResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, -) +type PostChargesResponder = (typeof postCharges)["responder"] & + KoaRuntimeResponder export type PostCharges = ( params: Params, @@ -4261,7 +3849,7 @@ export type PostCharges = ( | Response > -const getChargesSearchResponder = { +const getChargesSearch = b((r) => ({ with200: r.with200<{ data: t_charge[] has_more: boolean @@ -4269,31 +3857,23 @@ const getChargesSearchResponder = { object: "search_result" total_count?: number url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_charge)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetChargesSearchResponder = typeof getChargesSearchResponder & +type GetChargesSearchResponder = (typeof getChargesSearch)["responder"] & KoaRuntimeResponder -const getChargesSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_charge)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetChargesSearch = ( params: Params< void, @@ -4319,20 +3899,15 @@ export type GetChargesSearch = ( | Response > -const getChargesChargeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getChargesCharge = b((r) => ({ + with200: r.with200(s_charge), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetChargesChargeResponder = typeof getChargesChargeResponder & +type GetChargesChargeResponder = (typeof getChargesCharge)["responder"] & KoaRuntimeResponder -const getChargesChargeResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, -) - export type GetChargesCharge = ( params: Params< t_GetChargesChargeParamSchema, @@ -4348,20 +3923,15 @@ export type GetChargesCharge = ( | Response > -const postChargesChargeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postChargesCharge = b((r) => ({ + with200: r.with200(s_charge), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostChargesChargeResponder = typeof postChargesChargeResponder & +type PostChargesChargeResponder = (typeof postChargesCharge)["responder"] & KoaRuntimeResponder -const postChargesChargeResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, -) - export type PostChargesCharge = ( params: Params< t_PostChargesChargeParamSchema, @@ -4377,19 +3947,14 @@ export type PostChargesCharge = ( | Response > -const postChargesChargeCaptureResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postChargesChargeCapture = b((r) => ({ + with200: r.with200(s_charge), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostChargesChargeCaptureResponder = - typeof postChargesChargeCaptureResponder & KoaRuntimeResponder - -const postChargesChargeCaptureResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, -) + (typeof postChargesChargeCapture)["responder"] & KoaRuntimeResponder export type PostChargesChargeCapture = ( params: Params< @@ -4406,19 +3971,14 @@ export type PostChargesChargeCapture = ( | Response > -const getChargesChargeDisputeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getChargesChargeDispute = b((r) => ({ + with200: r.with200(s_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetChargesChargeDisputeResponder = - typeof getChargesChargeDisputeResponder & KoaRuntimeResponder - -const getChargesChargeDisputeResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, -) + (typeof getChargesChargeDispute)["responder"] & KoaRuntimeResponder export type GetChargesChargeDispute = ( params: Params< @@ -4435,19 +3995,14 @@ export type GetChargesChargeDispute = ( | Response > -const postChargesChargeDisputeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postChargesChargeDispute = b((r) => ({ + with200: r.with200(s_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostChargesChargeDisputeResponder = - typeof postChargesChargeDisputeResponder & KoaRuntimeResponder - -const postChargesChargeDisputeResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, -) + (typeof postChargesChargeDispute)["responder"] & KoaRuntimeResponder export type PostChargesChargeDispute = ( params: Params< @@ -4464,17 +4019,14 @@ export type PostChargesChargeDispute = ( | Response > -const postChargesChargeDisputeCloseResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postChargesChargeDisputeClose = b((r) => ({ + with200: r.with200(s_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostChargesChargeDisputeCloseResponder = - typeof postChargesChargeDisputeCloseResponder & KoaRuntimeResponder - -const postChargesChargeDisputeCloseResponseValidator = - responseValidationFactory([["200", s_dispute]], s_error) + (typeof postChargesChargeDisputeClose)["responder"] & KoaRuntimeResponder export type PostChargesChargeDisputeClose = ( params: Params< @@ -4491,19 +4043,14 @@ export type PostChargesChargeDisputeClose = ( | Response > -const postChargesChargeRefundResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postChargesChargeRefund = b((r) => ({ + with200: r.with200(s_charge), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostChargesChargeRefundResponder = - typeof postChargesChargeRefundResponder & KoaRuntimeResponder - -const postChargesChargeRefundResponseValidator = responseValidationFactory( - [["200", s_charge]], - s_error, -) + (typeof postChargesChargeRefund)["responder"] & KoaRuntimeResponder export type PostChargesChargeRefund = ( params: Params< @@ -4520,34 +4067,26 @@ export type PostChargesChargeRefund = ( | Response > -const getChargesChargeRefundsResponder = { +const getChargesChargeRefunds = b((r) => ({ with200: r.with200<{ data: t_refund[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_refund)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetChargesChargeRefundsResponder = - typeof getChargesChargeRefundsResponder & KoaRuntimeResponder - -const getChargesChargeRefundsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_refund)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getChargesChargeRefunds)["responder"] & KoaRuntimeResponder export type GetChargesChargeRefunds = ( params: Params< @@ -4572,19 +4111,14 @@ export type GetChargesChargeRefunds = ( | Response > -const postChargesChargeRefundsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postChargesChargeRefunds = b((r) => ({ + with200: r.with200(s_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostChargesChargeRefundsResponder = - typeof postChargesChargeRefundsResponder & KoaRuntimeResponder - -const postChargesChargeRefundsResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, -) + (typeof postChargesChargeRefunds)["responder"] & KoaRuntimeResponder export type PostChargesChargeRefunds = ( params: Params< @@ -4601,17 +4135,14 @@ export type PostChargesChargeRefunds = ( | Response > -const getChargesChargeRefundsRefundResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getChargesChargeRefundsRefund = b((r) => ({ + with200: r.with200(s_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetChargesChargeRefundsRefundResponder = - typeof getChargesChargeRefundsRefundResponder & KoaRuntimeResponder - -const getChargesChargeRefundsRefundResponseValidator = - responseValidationFactory([["200", s_refund]], s_error) + (typeof getChargesChargeRefundsRefund)["responder"] & KoaRuntimeResponder export type GetChargesChargeRefundsRefund = ( params: Params< @@ -4628,17 +4159,14 @@ export type GetChargesChargeRefundsRefund = ( | Response > -const postChargesChargeRefundsRefundResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postChargesChargeRefundsRefund = b((r) => ({ + with200: r.with200(s_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostChargesChargeRefundsRefundResponder = - typeof postChargesChargeRefundsRefundResponder & KoaRuntimeResponder - -const postChargesChargeRefundsRefundResponseValidator = - responseValidationFactory([["200", s_refund]], s_error) + (typeof postChargesChargeRefundsRefund)["responder"] & KoaRuntimeResponder export type PostChargesChargeRefundsRefund = ( params: Params< @@ -4655,35 +4183,27 @@ export type PostChargesChargeRefundsRefund = ( | Response > -const getCheckoutSessionsResponder = { +const getCheckoutSessions = b((r) => ({ with200: r.with200<{ data: t_checkout_session[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_checkout_session)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetCheckoutSessionsResponder = typeof getCheckoutSessionsResponder & +type GetCheckoutSessionsResponder = (typeof getCheckoutSessions)["responder"] & KoaRuntimeResponder -const getCheckoutSessionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_checkout_session)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetCheckoutSessions = ( params: Params< void, @@ -4707,19 +4227,14 @@ export type GetCheckoutSessions = ( | Response > -const postCheckoutSessionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCheckoutSessions = b((r) => ({ + with200: r.with200(s_checkout_session), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostCheckoutSessionsResponder = typeof postCheckoutSessionsResponder & - KoaRuntimeResponder - -const postCheckoutSessionsResponseValidator = responseValidationFactory( - [["200", s_checkout_session]], - s_error, -) +type PostCheckoutSessionsResponder = + (typeof postCheckoutSessions)["responder"] & KoaRuntimeResponder export type PostCheckoutSessions = ( params: Params< @@ -4736,19 +4251,14 @@ export type PostCheckoutSessions = ( | Response > -const getCheckoutSessionsSessionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCheckoutSessionsSession = b((r) => ({ + with200: r.with200(s_checkout_session), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCheckoutSessionsSessionResponder = - typeof getCheckoutSessionsSessionResponder & KoaRuntimeResponder - -const getCheckoutSessionsSessionResponseValidator = responseValidationFactory( - [["200", s_checkout_session]], - s_error, -) + (typeof getCheckoutSessionsSession)["responder"] & KoaRuntimeResponder export type GetCheckoutSessionsSession = ( params: Params< @@ -4765,19 +4275,14 @@ export type GetCheckoutSessionsSession = ( | Response > -const postCheckoutSessionsSessionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCheckoutSessionsSession = b((r) => ({ + with200: r.with200(s_checkout_session), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCheckoutSessionsSessionResponder = - typeof postCheckoutSessionsSessionResponder & KoaRuntimeResponder - -const postCheckoutSessionsSessionResponseValidator = responseValidationFactory( - [["200", s_checkout_session]], - s_error, -) + (typeof postCheckoutSessionsSession)["responder"] & KoaRuntimeResponder export type PostCheckoutSessionsSession = ( params: Params< @@ -4794,17 +4299,14 @@ export type PostCheckoutSessionsSession = ( | Response > -const postCheckoutSessionsSessionExpireResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCheckoutSessionsSessionExpire = b((r) => ({ + with200: r.with200(s_checkout_session), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCheckoutSessionsSessionExpireResponder = - typeof postCheckoutSessionsSessionExpireResponder & KoaRuntimeResponder - -const postCheckoutSessionsSessionExpireResponseValidator = - responseValidationFactory([["200", s_checkout_session]], s_error) + (typeof postCheckoutSessionsSessionExpire)["responder"] & KoaRuntimeResponder export type PostCheckoutSessionsSessionExpire = ( params: Params< @@ -4821,35 +4323,27 @@ export type PostCheckoutSessionsSessionExpire = ( | Response > -const getCheckoutSessionsSessionLineItemsResponder = { +const getCheckoutSessionsSessionLineItems = b((r) => ({ with200: r.with200<{ data: t_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCheckoutSessionsSessionLineItemsResponder = - typeof getCheckoutSessionsSessionLineItemsResponder & KoaRuntimeResponder - -const getCheckoutSessionsSessionLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getCheckoutSessionsSessionLineItems)["responder"] & + KoaRuntimeResponder export type GetCheckoutSessionsSessionLineItems = ( params: Params< @@ -4874,35 +4368,27 @@ export type GetCheckoutSessionsSessionLineItems = ( | Response > -const getClimateOrdersResponder = { +const getClimateOrders = b((r) => ({ with200: r.with200<{ data: t_climate_order[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_climate_order), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/climate/orders")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetClimateOrdersResponder = typeof getClimateOrdersResponder & +type GetClimateOrdersResponder = (typeof getClimateOrders)["responder"] & KoaRuntimeResponder -const getClimateOrdersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_climate_order), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/climate/orders")), - }), - ], - ], - s_error, -) - export type GetClimateOrders = ( params: Params< void, @@ -4926,20 +4412,15 @@ export type GetClimateOrders = ( | Response > -const postClimateOrdersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postClimateOrders = b((r) => ({ + with200: r.with200(s_climate_order), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostClimateOrdersResponder = typeof postClimateOrdersResponder & +type PostClimateOrdersResponder = (typeof postClimateOrders)["responder"] & KoaRuntimeResponder -const postClimateOrdersResponseValidator = responseValidationFactory( - [["200", s_climate_order]], - s_error, -) - export type PostClimateOrders = ( params: Params, respond: PostClimateOrdersResponder, @@ -4950,19 +4431,14 @@ export type PostClimateOrders = ( | Response > -const getClimateOrdersOrderResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getClimateOrdersOrder = b((r) => ({ + with200: r.with200(s_climate_order), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetClimateOrdersOrderResponder = typeof getClimateOrdersOrderResponder & - KoaRuntimeResponder - -const getClimateOrdersOrderResponseValidator = responseValidationFactory( - [["200", s_climate_order]], - s_error, -) +type GetClimateOrdersOrderResponder = + (typeof getClimateOrdersOrder)["responder"] & KoaRuntimeResponder export type GetClimateOrdersOrder = ( params: Params< @@ -4979,19 +4455,14 @@ export type GetClimateOrdersOrder = ( | Response > -const postClimateOrdersOrderResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postClimateOrdersOrder = b((r) => ({ + with200: r.with200(s_climate_order), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostClimateOrdersOrderResponder = typeof postClimateOrdersOrderResponder & - KoaRuntimeResponder - -const postClimateOrdersOrderResponseValidator = responseValidationFactory( - [["200", s_climate_order]], - s_error, -) +type PostClimateOrdersOrderResponder = + (typeof postClimateOrdersOrder)["responder"] & KoaRuntimeResponder export type PostClimateOrdersOrder = ( params: Params< @@ -5008,19 +4479,14 @@ export type PostClimateOrdersOrder = ( | Response > -const postClimateOrdersOrderCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postClimateOrdersOrderCancel = b((r) => ({ + with200: r.with200(s_climate_order), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostClimateOrdersOrderCancelResponder = - typeof postClimateOrdersOrderCancelResponder & KoaRuntimeResponder - -const postClimateOrdersOrderCancelResponseValidator = responseValidationFactory( - [["200", s_climate_order]], - s_error, -) + (typeof postClimateOrdersOrderCancel)["responder"] & KoaRuntimeResponder export type PostClimateOrdersOrderCancel = ( params: Params< @@ -5037,35 +4503,27 @@ export type PostClimateOrdersOrderCancel = ( | Response > -const getClimateProductsResponder = { +const getClimateProducts = b((r) => ({ with200: r.with200<{ data: t_climate_product[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_climate_product), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/climate/products")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetClimateProductsResponder = typeof getClimateProductsResponder & +type GetClimateProductsResponder = (typeof getClimateProducts)["responder"] & KoaRuntimeResponder -const getClimateProductsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_climate_product), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/climate/products")), - }), - ], - ], - s_error, -) - export type GetClimateProducts = ( params: Params< void, @@ -5089,19 +4547,14 @@ export type GetClimateProducts = ( | Response > -const getClimateProductsProductResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getClimateProductsProduct = b((r) => ({ + with200: r.with200(s_climate_product), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetClimateProductsProductResponder = - typeof getClimateProductsProductResponder & KoaRuntimeResponder - -const getClimateProductsProductResponseValidator = responseValidationFactory( - [["200", s_climate_product]], - s_error, -) + (typeof getClimateProductsProduct)["responder"] & KoaRuntimeResponder export type GetClimateProductsProduct = ( params: Params< @@ -5118,35 +4571,27 @@ export type GetClimateProductsProduct = ( | Response > -const getClimateSuppliersResponder = { +const getClimateSuppliers = b((r) => ({ with200: r.with200<{ data: t_climate_supplier[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_climate_supplier), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/climate/suppliers")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetClimateSuppliersResponder = typeof getClimateSuppliersResponder & +type GetClimateSuppliersResponder = (typeof getClimateSuppliers)["responder"] & KoaRuntimeResponder -const getClimateSuppliersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_climate_supplier), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/climate/suppliers")), - }), - ], - ], - s_error, -) - export type GetClimateSuppliers = ( params: Params< void, @@ -5170,19 +4615,14 @@ export type GetClimateSuppliers = ( | Response > -const getClimateSuppliersSupplierResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getClimateSuppliersSupplier = b((r) => ({ + with200: r.with200(s_climate_supplier), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetClimateSuppliersSupplierResponder = - typeof getClimateSuppliersSupplierResponder & KoaRuntimeResponder - -const getClimateSuppliersSupplierResponseValidator = responseValidationFactory( - [["200", s_climate_supplier]], - s_error, -) + (typeof getClimateSuppliersSupplier)["responder"] & KoaRuntimeResponder export type GetClimateSuppliersSupplier = ( params: Params< @@ -5199,17 +4639,15 @@ export type GetClimateSuppliersSupplier = ( | Response > -const getConfirmationTokensConfirmationTokenResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getConfirmationTokensConfirmationToken = b((r) => ({ + with200: r.with200(s_confirmation_token), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetConfirmationTokensConfirmationTokenResponder = - typeof getConfirmationTokensConfirmationTokenResponder & KoaRuntimeResponder - -const getConfirmationTokensConfirmationTokenResponseValidator = - responseValidationFactory([["200", s_confirmation_token]], s_error) + (typeof getConfirmationTokensConfirmationToken)["responder"] & + KoaRuntimeResponder export type GetConfirmationTokensConfirmationToken = ( params: Params< @@ -5226,35 +4664,27 @@ export type GetConfirmationTokensConfirmationToken = ( | Response > -const getCountrySpecsResponder = { +const getCountrySpecs = b((r) => ({ with200: r.with200<{ data: t_country_spec[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_country_spec), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/country_specs")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetCountrySpecsResponder = typeof getCountrySpecsResponder & +type GetCountrySpecsResponder = (typeof getCountrySpecs)["responder"] & KoaRuntimeResponder -const getCountrySpecsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_country_spec), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/country_specs")), - }), - ], - ], - s_error, -) - export type GetCountrySpecs = ( params: Params< void, @@ -5278,19 +4708,14 @@ export type GetCountrySpecs = ( | Response > -const getCountrySpecsCountryResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCountrySpecsCountry = b((r) => ({ + with200: r.with200(s_country_spec), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetCountrySpecsCountryResponder = typeof getCountrySpecsCountryResponder & - KoaRuntimeResponder +})) -const getCountrySpecsCountryResponseValidator = responseValidationFactory( - [["200", s_country_spec]], - s_error, -) +type GetCountrySpecsCountryResponder = + (typeof getCountrySpecsCountry)["responder"] & KoaRuntimeResponder export type GetCountrySpecsCountry = ( params: Params< @@ -5307,33 +4732,26 @@ export type GetCountrySpecsCountry = ( | Response > -const getCouponsResponder = { +const getCoupons = b((r) => ({ with200: r.with200<{ data: t_coupon[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_coupon), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/coupons")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetCouponsResponder = typeof getCouponsResponder & KoaRuntimeResponder +})) -const getCouponsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_coupon), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/coupons")), - }), - ], - ], - s_error, -) +type GetCouponsResponder = (typeof getCoupons)["responder"] & + KoaRuntimeResponder export type GetCoupons = ( params: Params< @@ -5358,18 +4776,14 @@ export type GetCoupons = ( | Response > -const postCouponsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCoupons = b((r) => ({ + with200: r.with200(s_coupon), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostCouponsResponder = typeof postCouponsResponder & KoaRuntimeResponder +})) -const postCouponsResponseValidator = responseValidationFactory( - [["200", s_coupon]], - s_error, -) +type PostCouponsResponder = (typeof postCoupons)["responder"] & + KoaRuntimeResponder export type PostCoupons = ( params: Params, @@ -5381,20 +4795,15 @@ export type PostCoupons = ( | Response > -const deleteCouponsCouponResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteCouponsCoupon = b((r) => ({ + with200: r.with200(s_deleted_coupon), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type DeleteCouponsCouponResponder = typeof deleteCouponsCouponResponder & +type DeleteCouponsCouponResponder = (typeof deleteCouponsCoupon)["responder"] & KoaRuntimeResponder -const deleteCouponsCouponResponseValidator = responseValidationFactory( - [["200", s_deleted_coupon]], - s_error, -) - export type DeleteCouponsCoupon = ( params: Params< t_DeleteCouponsCouponParamSchema, @@ -5410,20 +4819,15 @@ export type DeleteCouponsCoupon = ( | Response > -const getCouponsCouponResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCouponsCoupon = b((r) => ({ + with200: r.with200(s_coupon), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetCouponsCouponResponder = typeof getCouponsCouponResponder & +type GetCouponsCouponResponder = (typeof getCouponsCoupon)["responder"] & KoaRuntimeResponder -const getCouponsCouponResponseValidator = responseValidationFactory( - [["200", s_coupon]], - s_error, -) - export type GetCouponsCoupon = ( params: Params< t_GetCouponsCouponParamSchema, @@ -5439,20 +4843,15 @@ export type GetCouponsCoupon = ( | Response > -const postCouponsCouponResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCouponsCoupon = b((r) => ({ + with200: r.with200(s_coupon), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostCouponsCouponResponder = typeof postCouponsCouponResponder & +type PostCouponsCouponResponder = (typeof postCouponsCoupon)["responder"] & KoaRuntimeResponder -const postCouponsCouponResponseValidator = responseValidationFactory( - [["200", s_coupon]], - s_error, -) - export type PostCouponsCoupon = ( params: Params< t_PostCouponsCouponParamSchema, @@ -5468,35 +4867,27 @@ export type PostCouponsCoupon = ( | Response > -const getCreditNotesResponder = { +const getCreditNotes = b((r) => ({ with200: r.with200<{ data: t_credit_note[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_credit_note)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetCreditNotesResponder = typeof getCreditNotesResponder & +type GetCreditNotesResponder = (typeof getCreditNotes)["responder"] & KoaRuntimeResponder -const getCreditNotesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_credit_note)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetCreditNotes = ( params: Params< void, @@ -5520,20 +4911,15 @@ export type GetCreditNotes = ( | Response > -const postCreditNotesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCreditNotes = b((r) => ({ + with200: r.with200(s_credit_note), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostCreditNotesResponder = typeof postCreditNotesResponder & +type PostCreditNotesResponder = (typeof postCreditNotes)["responder"] & KoaRuntimeResponder -const postCreditNotesResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, -) - export type PostCreditNotes = ( params: Params, respond: PostCreditNotesResponder, @@ -5544,19 +4930,14 @@ export type PostCreditNotes = ( | Response > -const getCreditNotesPreviewResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCreditNotesPreview = b((r) => ({ + with200: r.with200(s_credit_note), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetCreditNotesPreviewResponder = typeof getCreditNotesPreviewResponder & - KoaRuntimeResponder - -const getCreditNotesPreviewResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, -) +type GetCreditNotesPreviewResponder = + (typeof getCreditNotesPreview)["responder"] & KoaRuntimeResponder export type GetCreditNotesPreview = ( params: Params< @@ -5573,34 +4954,26 @@ export type GetCreditNotesPreview = ( | Response > -const getCreditNotesPreviewLinesResponder = { +const getCreditNotesPreviewLines = b((r) => ({ with200: r.with200<{ data: t_credit_note_line_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_credit_note_line_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCreditNotesPreviewLinesResponder = - typeof getCreditNotesPreviewLinesResponder & KoaRuntimeResponder - -const getCreditNotesPreviewLinesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_credit_note_line_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getCreditNotesPreviewLines)["responder"] & KoaRuntimeResponder export type GetCreditNotesPreviewLines = ( params: Params< @@ -5625,35 +4998,26 @@ export type GetCreditNotesPreviewLines = ( | Response > -const getCreditNotesCreditNoteLinesResponder = { +const getCreditNotesCreditNoteLines = b((r) => ({ with200: r.with200<{ data: t_credit_note_line_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_credit_note_line_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCreditNotesCreditNoteLinesResponder = - typeof getCreditNotesCreditNoteLinesResponder & KoaRuntimeResponder - -const getCreditNotesCreditNoteLinesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_credit_note_line_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getCreditNotesCreditNoteLines)["responder"] & KoaRuntimeResponder export type GetCreditNotesCreditNoteLines = ( params: Params< @@ -5678,20 +5042,15 @@ export type GetCreditNotesCreditNoteLines = ( | Response > -const getCreditNotesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCreditNotesId = b((r) => ({ + with200: r.with200(s_credit_note), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetCreditNotesIdResponder = typeof getCreditNotesIdResponder & +type GetCreditNotesIdResponder = (typeof getCreditNotesId)["responder"] & KoaRuntimeResponder -const getCreditNotesIdResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, -) - export type GetCreditNotesId = ( params: Params< t_GetCreditNotesIdParamSchema, @@ -5707,20 +5066,15 @@ export type GetCreditNotesId = ( | Response > -const postCreditNotesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCreditNotesId = b((r) => ({ + with200: r.with200(s_credit_note), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostCreditNotesIdResponder = typeof postCreditNotesIdResponder & +type PostCreditNotesIdResponder = (typeof postCreditNotesId)["responder"] & KoaRuntimeResponder -const postCreditNotesIdResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, -) - export type PostCreditNotesId = ( params: Params< t_PostCreditNotesIdParamSchema, @@ -5736,19 +5090,14 @@ export type PostCreditNotesId = ( | Response > -const postCreditNotesIdVoidResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCreditNotesIdVoid = b((r) => ({ + with200: r.with200(s_credit_note), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostCreditNotesIdVoidResponder = typeof postCreditNotesIdVoidResponder & - KoaRuntimeResponder - -const postCreditNotesIdVoidResponseValidator = responseValidationFactory( - [["200", s_credit_note]], - s_error, -) +type PostCreditNotesIdVoidResponder = + (typeof postCreditNotesIdVoid)["responder"] & KoaRuntimeResponder export type PostCreditNotesIdVoid = ( params: Params< @@ -5765,19 +5114,14 @@ export type PostCreditNotesIdVoid = ( | Response > -const postCustomerSessionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomerSessions = b((r) => ({ + with200: r.with200(s_customer_session), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostCustomerSessionsResponder = typeof postCustomerSessionsResponder & - KoaRuntimeResponder - -const postCustomerSessionsResponseValidator = responseValidationFactory( - [["200", s_customer_session]], - s_error, -) +type PostCustomerSessionsResponder = + (typeof postCustomerSessions)["responder"] & KoaRuntimeResponder export type PostCustomerSessions = ( params: Params, @@ -5789,33 +5133,26 @@ export type PostCustomerSessions = ( | Response > -const getCustomersResponder = { +const getCustomers = b((r) => ({ with200: r.with200<{ data: t_customer[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_customer)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/customers")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetCustomersResponder = typeof getCustomersResponder & KoaRuntimeResponder - -const getCustomersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_customer)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/customers")), - }), - ], - ], - s_error, -) +type GetCustomersResponder = (typeof getCustomers)["responder"] & + KoaRuntimeResponder export type GetCustomers = ( params: Params< @@ -5840,20 +5177,15 @@ export type GetCustomers = ( | Response > -const postCustomersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomers = b((r) => ({ + with200: r.with200(s_customer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostCustomersResponder = typeof postCustomersResponder & +type PostCustomersResponder = (typeof postCustomers)["responder"] & KoaRuntimeResponder -const postCustomersResponseValidator = responseValidationFactory( - [["200", s_customer]], - s_error, -) - export type PostCustomers = ( params: Params, respond: PostCustomersResponder, @@ -5864,7 +5196,7 @@ export type PostCustomers = ( | Response > -const getCustomersSearchResponder = { +const getCustomersSearch = b((r) => ({ with200: r.with200<{ data: t_customer[] has_more: boolean @@ -5872,31 +5204,23 @@ const getCustomersSearchResponder = { object: "search_result" total_count?: number url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_customer)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetCustomersSearchResponder = typeof getCustomersSearchResponder & +type GetCustomersSearchResponder = (typeof getCustomersSearch)["responder"] & KoaRuntimeResponder -const getCustomersSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_customer)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetCustomersSearch = ( params: Params< void, @@ -5922,19 +5246,14 @@ export type GetCustomersSearch = ( | Response > -const deleteCustomersCustomerResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteCustomersCustomer = b((r) => ({ + with200: r.with200(s_deleted_customer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteCustomersCustomerResponder = - typeof deleteCustomersCustomerResponder & KoaRuntimeResponder - -const deleteCustomersCustomerResponseValidator = responseValidationFactory( - [["200", s_deleted_customer]], - s_error, -) + (typeof deleteCustomersCustomer)["responder"] & KoaRuntimeResponder export type DeleteCustomersCustomer = ( params: Params< @@ -5951,19 +5270,16 @@ export type DeleteCustomersCustomer = ( | Response > -const getCustomersCustomerResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomer = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_customer), s_deleted_customer]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetCustomersCustomerResponder = typeof getCustomersCustomerResponder & - KoaRuntimeResponder +})) -const getCustomersCustomerResponseValidator = responseValidationFactory( - [["200", z.union([z.lazy(() => s_customer), s_deleted_customer])]], - s_error, -) +type GetCustomersCustomerResponder = + (typeof getCustomersCustomer)["responder"] & KoaRuntimeResponder export type GetCustomersCustomer = ( params: Params< @@ -5980,19 +5296,14 @@ export type GetCustomersCustomer = ( | Response > -const postCustomersCustomerResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomer = b((r) => ({ + with200: r.with200(s_customer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostCustomersCustomerResponder = typeof postCustomersCustomerResponder & - KoaRuntimeResponder - -const postCustomersCustomerResponseValidator = responseValidationFactory( - [["200", s_customer]], - s_error, -) +type PostCustomersCustomerResponder = + (typeof postCustomersCustomer)["responder"] & KoaRuntimeResponder export type PostCustomersCustomer = ( params: Params< @@ -6009,35 +5320,27 @@ export type PostCustomersCustomer = ( | Response > -const getCustomersCustomerBalanceTransactionsResponder = { +const getCustomersCustomerBalanceTransactions = b((r) => ({ with200: r.with200<{ data: t_customer_balance_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_customer_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerBalanceTransactionsResponder = - typeof getCustomersCustomerBalanceTransactionsResponder & KoaRuntimeResponder - -const getCustomersCustomerBalanceTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_customer_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getCustomersCustomerBalanceTransactions)["responder"] & + KoaRuntimeResponder export type GetCustomersCustomerBalanceTransactions = ( params: Params< @@ -6062,17 +5365,17 @@ export type GetCustomersCustomerBalanceTransactions = ( | Response > -const postCustomersCustomerBalanceTransactionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerBalanceTransactions = b((r) => ({ + with200: r.with200( + s_customer_balance_transaction, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerBalanceTransactionsResponder = - typeof postCustomersCustomerBalanceTransactionsResponder & KoaRuntimeResponder - -const postCustomersCustomerBalanceTransactionsResponseValidator = - responseValidationFactory([["200", s_customer_balance_transaction]], s_error) + (typeof postCustomersCustomerBalanceTransactions)["responder"] & + KoaRuntimeResponder export type PostCustomersCustomerBalanceTransactions = ( params: Params< @@ -6089,19 +5392,18 @@ export type PostCustomersCustomerBalanceTransactions = ( | Response > -const getCustomersCustomerBalanceTransactionsTransactionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerBalanceTransactionsTransaction = b((r) => ({ + with200: r.with200( + s_customer_balance_transaction, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerBalanceTransactionsTransactionResponder = - typeof getCustomersCustomerBalanceTransactionsTransactionResponder & + (typeof getCustomersCustomerBalanceTransactionsTransaction)["responder"] & KoaRuntimeResponder -const getCustomersCustomerBalanceTransactionsTransactionResponseValidator = - responseValidationFactory([["200", s_customer_balance_transaction]], s_error) - export type GetCustomersCustomerBalanceTransactionsTransaction = ( params: Params< t_GetCustomersCustomerBalanceTransactionsTransactionParamSchema, @@ -6117,19 +5419,18 @@ export type GetCustomersCustomerBalanceTransactionsTransaction = ( | Response > -const postCustomersCustomerBalanceTransactionsTransactionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerBalanceTransactionsTransaction = b((r) => ({ + with200: r.with200( + s_customer_balance_transaction, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerBalanceTransactionsTransactionResponder = - typeof postCustomersCustomerBalanceTransactionsTransactionResponder & + (typeof postCustomersCustomerBalanceTransactionsTransaction)["responder"] & KoaRuntimeResponder -const postCustomersCustomerBalanceTransactionsTransactionResponseValidator = - responseValidationFactory([["200", s_customer_balance_transaction]], s_error) - export type PostCustomersCustomerBalanceTransactionsTransaction = ( params: Params< t_PostCustomersCustomerBalanceTransactionsTransactionParamSchema, @@ -6145,35 +5446,26 @@ export type PostCustomersCustomerBalanceTransactionsTransaction = ( | Response > -const getCustomersCustomerBankAccountsResponder = { +const getCustomersCustomerBankAccounts = b((r) => ({ with200: r.with200<{ data: t_bank_account[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_bank_account)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerBankAccountsResponder = - typeof getCustomersCustomerBankAccountsResponder & KoaRuntimeResponder - -const getCustomersCustomerBankAccountsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_bank_account)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getCustomersCustomerBankAccounts)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerBankAccounts = ( params: Params< @@ -6198,17 +5490,14 @@ export type GetCustomersCustomerBankAccounts = ( | Response > -const postCustomersCustomerBankAccountsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerBankAccounts = b((r) => ({ + with200: r.with200(s_payment_source), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerBankAccountsResponder = - typeof postCustomersCustomerBankAccountsResponder & KoaRuntimeResponder - -const postCustomersCustomerBankAccountsResponseValidator = - responseValidationFactory([["200", s_payment_source]], s_error) + (typeof postCustomersCustomerBankAccounts)["responder"] & KoaRuntimeResponder export type PostCustomersCustomerBankAccounts = ( params: Params< @@ -6225,25 +5514,17 @@ export type PostCustomersCustomerBankAccounts = ( | Response > -const deleteCustomersCustomerBankAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteCustomersCustomerBankAccountsId = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteCustomersCustomerBankAccountsIdResponder = - typeof deleteCustomersCustomerBankAccountsIdResponder & KoaRuntimeResponder - -const deleteCustomersCustomerBankAccountsIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), - ], - ], - s_error, - ) + (typeof deleteCustomersCustomerBankAccountsId)["responder"] & + KoaRuntimeResponder export type DeleteCustomersCustomerBankAccountsId = ( params: Params< @@ -6260,17 +5541,14 @@ export type DeleteCustomersCustomerBankAccountsId = ( | Response > -const getCustomersCustomerBankAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerBankAccountsId = b((r) => ({ + with200: r.with200(s_bank_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerBankAccountsIdResponder = - typeof getCustomersCustomerBankAccountsIdResponder & KoaRuntimeResponder - -const getCustomersCustomerBankAccountsIdResponseValidator = - responseValidationFactory([["200", s_bank_account]], s_error) + (typeof getCustomersCustomerBankAccountsId)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerBankAccountsId = ( params: Params< @@ -6287,25 +5565,17 @@ export type GetCustomersCustomerBankAccountsId = ( | Response > -const postCustomersCustomerBankAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerBankAccountsId = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerBankAccountsIdResponder = - typeof postCustomersCustomerBankAccountsIdResponder & KoaRuntimeResponder - -const postCustomersCustomerBankAccountsIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), - ], - ], - s_error, - ) + (typeof postCustomersCustomerBankAccountsId)["responder"] & + KoaRuntimeResponder export type PostCustomersCustomerBankAccountsId = ( params: Params< @@ -6322,19 +5592,16 @@ export type PostCustomersCustomerBankAccountsId = ( | Response > -const postCustomersCustomerBankAccountsIdVerifyResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerBankAccountsIdVerify = b((r) => ({ + with200: r.with200(s_bank_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerBankAccountsIdVerifyResponder = - typeof postCustomersCustomerBankAccountsIdVerifyResponder & + (typeof postCustomersCustomerBankAccountsIdVerify)["responder"] & KoaRuntimeResponder -const postCustomersCustomerBankAccountsIdVerifyResponseValidator = - responseValidationFactory([["200", s_bank_account]], s_error) - export type PostCustomersCustomerBankAccountsIdVerify = ( params: Params< t_PostCustomersCustomerBankAccountsIdVerifyParamSchema, @@ -6350,34 +5617,26 @@ export type PostCustomersCustomerBankAccountsIdVerify = ( | Response > -const getCustomersCustomerCardsResponder = { +const getCustomersCustomerCards = b((r) => ({ with200: r.with200<{ data: t_card[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_card)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerCardsResponder = - typeof getCustomersCustomerCardsResponder & KoaRuntimeResponder - -const getCustomersCustomerCardsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_card)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getCustomersCustomerCards)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerCards = ( params: Params< @@ -6402,19 +5661,14 @@ export type GetCustomersCustomerCards = ( | Response > -const postCustomersCustomerCardsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerCards = b((r) => ({ + with200: r.with200(s_payment_source), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerCardsResponder = - typeof postCustomersCustomerCardsResponder & KoaRuntimeResponder - -const postCustomersCustomerCardsResponseValidator = responseValidationFactory( - [["200", s_payment_source]], - s_error, -) + (typeof postCustomersCustomerCards)["responder"] & KoaRuntimeResponder export type PostCustomersCustomerCards = ( params: Params< @@ -6431,25 +5685,16 @@ export type PostCustomersCustomerCards = ( | Response > -const deleteCustomersCustomerCardsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteCustomersCustomerCardsId = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteCustomersCustomerCardsIdResponder = - typeof deleteCustomersCustomerCardsIdResponder & KoaRuntimeResponder - -const deleteCustomersCustomerCardsIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), - ], - ], - s_error, - ) + (typeof deleteCustomersCustomerCardsId)["responder"] & KoaRuntimeResponder export type DeleteCustomersCustomerCardsId = ( params: Params< @@ -6466,19 +5711,14 @@ export type DeleteCustomersCustomerCardsId = ( | Response > -const getCustomersCustomerCardsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerCardsId = b((r) => ({ + with200: r.with200(s_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerCardsIdResponder = - typeof getCustomersCustomerCardsIdResponder & KoaRuntimeResponder - -const getCustomersCustomerCardsIdResponseValidator = responseValidationFactory( - [["200", s_card]], - s_error, -) + (typeof getCustomersCustomerCardsId)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerCardsId = ( params: Params< @@ -6495,24 +5735,16 @@ export type GetCustomersCustomerCardsId = ( | Response > -const postCustomersCustomerCardsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerCardsId = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerCardsIdResponder = - typeof postCustomersCustomerCardsIdResponder & KoaRuntimeResponder - -const postCustomersCustomerCardsIdResponseValidator = responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), - ], - ], - s_error, -) + (typeof postCustomersCustomerCardsId)["responder"] & KoaRuntimeResponder export type PostCustomersCustomerCardsId = ( params: Params< @@ -6529,17 +5761,14 @@ export type PostCustomersCustomerCardsId = ( | Response > -const getCustomersCustomerCashBalanceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerCashBalance = b((r) => ({ + with200: r.with200(s_cash_balance), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerCashBalanceResponder = - typeof getCustomersCustomerCashBalanceResponder & KoaRuntimeResponder - -const getCustomersCustomerCashBalanceResponseValidator = - responseValidationFactory([["200", s_cash_balance]], s_error) + (typeof getCustomersCustomerCashBalance)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerCashBalance = ( params: Params< @@ -6556,17 +5785,14 @@ export type GetCustomersCustomerCashBalance = ( | Response > -const postCustomersCustomerCashBalanceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerCashBalance = b((r) => ({ + with200: r.with200(s_cash_balance), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerCashBalanceResponder = - typeof postCustomersCustomerCashBalanceResponder & KoaRuntimeResponder - -const postCustomersCustomerCashBalanceResponseValidator = - responseValidationFactory([["200", s_cash_balance]], s_error) + (typeof postCustomersCustomerCashBalance)["responder"] & KoaRuntimeResponder export type PostCustomersCustomerCashBalance = ( params: Params< @@ -6583,37 +5809,28 @@ export type PostCustomersCustomerCashBalance = ( | Response > -const getCustomersCustomerCashBalanceTransactionsResponder = { +const getCustomersCustomerCashBalanceTransactions = b((r) => ({ with200: r.with200<{ data: t_customer_cash_balance_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_customer_cash_balance_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerCashBalanceTransactionsResponder = - typeof getCustomersCustomerCashBalanceTransactionsResponder & + (typeof getCustomersCustomerCashBalanceTransactions)["responder"] & KoaRuntimeResponder -const getCustomersCustomerCashBalanceTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_customer_cash_balance_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - export type GetCustomersCustomerCashBalanceTransactions = ( params: Params< t_GetCustomersCustomerCashBalanceTransactionsParamSchema, @@ -6637,22 +5854,18 @@ export type GetCustomersCustomerCashBalanceTransactions = ( | Response > -const getCustomersCustomerCashBalanceTransactionsTransactionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerCashBalanceTransactionsTransaction = b((r) => ({ + with200: r.with200( + s_customer_cash_balance_transaction, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerCashBalanceTransactionsTransactionResponder = - typeof getCustomersCustomerCashBalanceTransactionsTransactionResponder & + (typeof getCustomersCustomerCashBalanceTransactionsTransaction)["responder"] & KoaRuntimeResponder -const getCustomersCustomerCashBalanceTransactionsTransactionResponseValidator = - responseValidationFactory( - [["200", s_customer_cash_balance_transaction]], - s_error, - ) - export type GetCustomersCustomerCashBalanceTransactionsTransaction = ( params: Params< t_GetCustomersCustomerCashBalanceTransactionsTransactionParamSchema, @@ -6669,17 +5882,14 @@ export type GetCustomersCustomerCashBalanceTransactionsTransaction = ( | Response > -const deleteCustomersCustomerDiscountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteCustomersCustomerDiscount = b((r) => ({ + with200: r.with200(s_deleted_discount), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteCustomersCustomerDiscountResponder = - typeof deleteCustomersCustomerDiscountResponder & KoaRuntimeResponder - -const deleteCustomersCustomerDiscountResponseValidator = - responseValidationFactory([["200", s_deleted_discount]], s_error) + (typeof deleteCustomersCustomerDiscount)["responder"] & KoaRuntimeResponder export type DeleteCustomersCustomerDiscount = ( params: Params< @@ -6696,19 +5906,14 @@ export type DeleteCustomersCustomerDiscount = ( | Response > -const getCustomersCustomerDiscountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerDiscount = b((r) => ({ + with200: r.with200(s_discount), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerDiscountResponder = - typeof getCustomersCustomerDiscountResponder & KoaRuntimeResponder - -const getCustomersCustomerDiscountResponseValidator = responseValidationFactory( - [["200", s_discount]], - s_error, -) + (typeof getCustomersCustomerDiscount)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerDiscount = ( params: Params< @@ -6725,17 +5930,15 @@ export type GetCustomersCustomerDiscount = ( | Response > -const postCustomersCustomerFundingInstructionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerFundingInstructions = b((r) => ({ + with200: r.with200(s_funding_instructions), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerFundingInstructionsResponder = - typeof postCustomersCustomerFundingInstructionsResponder & KoaRuntimeResponder - -const postCustomersCustomerFundingInstructionsResponseValidator = - responseValidationFactory([["200", s_funding_instructions]], s_error) + (typeof postCustomersCustomerFundingInstructions)["responder"] & + KoaRuntimeResponder export type PostCustomersCustomerFundingInstructions = ( params: Params< @@ -6752,35 +5955,26 @@ export type PostCustomersCustomerFundingInstructions = ( | Response > -const getCustomersCustomerPaymentMethodsResponder = { +const getCustomersCustomerPaymentMethods = b((r) => ({ with200: r.with200<{ data: t_payment_method[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_payment_method)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerPaymentMethodsResponder = - typeof getCustomersCustomerPaymentMethodsResponder & KoaRuntimeResponder - -const getCustomersCustomerPaymentMethodsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_method)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getCustomersCustomerPaymentMethods)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerPaymentMethods = ( params: Params< @@ -6805,19 +5999,16 @@ export type GetCustomersCustomerPaymentMethods = ( | Response > -const getCustomersCustomerPaymentMethodsPaymentMethodResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerPaymentMethodsPaymentMethod = b((r) => ({ + with200: r.with200(s_payment_method), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerPaymentMethodsPaymentMethodResponder = - typeof getCustomersCustomerPaymentMethodsPaymentMethodResponder & + (typeof getCustomersCustomerPaymentMethodsPaymentMethod)["responder"] & KoaRuntimeResponder -const getCustomersCustomerPaymentMethodsPaymentMethodResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) - export type GetCustomersCustomerPaymentMethodsPaymentMethod = ( params: Params< t_GetCustomersCustomerPaymentMethodsPaymentMethodParamSchema, @@ -6833,40 +6024,28 @@ export type GetCustomersCustomerPaymentMethodsPaymentMethod = ( | Response > -const getCustomersCustomerSourcesResponder = { +const getCustomersCustomerSources = b((r) => ({ with200: r.with200<{ data: (t_bank_account | t_card | t_source)[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array( + z.union([z.lazy(() => s_bank_account), z.lazy(() => s_card), s_source]), + ), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerSourcesResponder = - typeof getCustomersCustomerSourcesResponder & KoaRuntimeResponder - -const getCustomersCustomerSourcesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array( - z.union([ - z.lazy(() => s_bank_account), - z.lazy(() => s_card), - s_source, - ]), - ), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getCustomersCustomerSources)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerSources = ( params: Params< @@ -6891,19 +6070,14 @@ export type GetCustomersCustomerSources = ( | Response > -const postCustomersCustomerSourcesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerSources = b((r) => ({ + with200: r.with200(s_payment_source), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerSourcesResponder = - typeof postCustomersCustomerSourcesResponder & KoaRuntimeResponder - -const postCustomersCustomerSourcesResponseValidator = responseValidationFactory( - [["200", s_payment_source]], - s_error, -) + (typeof postCustomersCustomerSources)["responder"] & KoaRuntimeResponder export type PostCustomersCustomerSources = ( params: Params< @@ -6920,25 +6094,16 @@ export type PostCustomersCustomerSources = ( | Response > -const deleteCustomersCustomerSourcesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteCustomersCustomerSourcesId = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteCustomersCustomerSourcesIdResponder = - typeof deleteCustomersCustomerSourcesIdResponder & KoaRuntimeResponder - -const deleteCustomersCustomerSourcesIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_payment_source), s_deleted_payment_source]), - ], - ], - s_error, - ) + (typeof deleteCustomersCustomerSourcesId)["responder"] & KoaRuntimeResponder export type DeleteCustomersCustomerSourcesId = ( params: Params< @@ -6955,17 +6120,14 @@ export type DeleteCustomersCustomerSourcesId = ( | Response > -const getCustomersCustomerSourcesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerSourcesId = b((r) => ({ + with200: r.with200(s_payment_source), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerSourcesIdResponder = - typeof getCustomersCustomerSourcesIdResponder & KoaRuntimeResponder - -const getCustomersCustomerSourcesIdResponseValidator = - responseValidationFactory([["200", s_payment_source]], s_error) + (typeof getCustomersCustomerSourcesId)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerSourcesId = ( params: Params< @@ -6982,25 +6144,16 @@ export type GetCustomersCustomerSourcesId = ( | Response > -const postCustomersCustomerSourcesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerSourcesId = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerSourcesIdResponder = - typeof postCustomersCustomerSourcesIdResponder & KoaRuntimeResponder - -const postCustomersCustomerSourcesIdResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_card), z.lazy(() => s_bank_account), s_source]), - ], - ], - s_error, - ) + (typeof postCustomersCustomerSourcesId)["responder"] & KoaRuntimeResponder export type PostCustomersCustomerSourcesId = ( params: Params< @@ -7017,17 +6170,15 @@ export type PostCustomersCustomerSourcesId = ( | Response > -const postCustomersCustomerSourcesIdVerifyResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerSourcesIdVerify = b((r) => ({ + with200: r.with200(s_bank_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerSourcesIdVerifyResponder = - typeof postCustomersCustomerSourcesIdVerifyResponder & KoaRuntimeResponder - -const postCustomersCustomerSourcesIdVerifyResponseValidator = - responseValidationFactory([["200", s_bank_account]], s_error) + (typeof postCustomersCustomerSourcesIdVerify)["responder"] & + KoaRuntimeResponder export type PostCustomersCustomerSourcesIdVerify = ( params: Params< @@ -7044,35 +6195,26 @@ export type PostCustomersCustomerSourcesIdVerify = ( | Response > -const getCustomersCustomerSubscriptionsResponder = { +const getCustomersCustomerSubscriptions = b((r) => ({ with200: r.with200<{ data: t_subscription[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_subscription)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerSubscriptionsResponder = - typeof getCustomersCustomerSubscriptionsResponder & KoaRuntimeResponder - -const getCustomersCustomerSubscriptionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getCustomersCustomerSubscriptions)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerSubscriptions = ( params: Params< @@ -7097,17 +6239,14 @@ export type GetCustomersCustomerSubscriptions = ( | Response > -const postCustomersCustomerSubscriptionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerSubscriptions = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerSubscriptionsResponder = - typeof postCustomersCustomerSubscriptionsResponder & KoaRuntimeResponder - -const postCustomersCustomerSubscriptionsResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) + (typeof postCustomersCustomerSubscriptions)["responder"] & KoaRuntimeResponder export type PostCustomersCustomerSubscriptions = ( params: Params< @@ -7124,19 +6263,16 @@ export type PostCustomersCustomerSubscriptions = ( | Response > -const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteCustomersCustomerSubscriptionsSubscriptionExposedId = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = - typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder & + (typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"] & KoaRuntimeResponder -const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< t_DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdParamSchema, @@ -7153,19 +6289,16 @@ export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedId = ( | Response > -const getCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerSubscriptionsSubscriptionExposedId = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = - typeof getCustomersCustomerSubscriptionsSubscriptionExposedIdResponder & + (typeof getCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"] & KoaRuntimeResponder -const getCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - export type GetCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< t_GetCustomersCustomerSubscriptionsSubscriptionExposedIdParamSchema, @@ -7182,19 +6315,16 @@ export type GetCustomersCustomerSubscriptionsSubscriptionExposedId = ( | Response > -const postCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerSubscriptionsSubscriptionExposedId = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = - typeof postCustomersCustomerSubscriptionsSubscriptionExposedIdResponder & + (typeof postCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"] & KoaRuntimeResponder -const postCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) - export type PostCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< t_PostCustomersCustomerSubscriptionsSubscriptionExposedIdParamSchema, @@ -7211,20 +6341,18 @@ export type PostCustomersCustomerSubscriptionsSubscriptionExposedId = ( | Response > -const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = - { - with200: r.with200, - withDefault: r.withDefault, +const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = b( + (r) => ({ + with200: r.with200(s_deleted_discount), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, - } + }), +) type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = - typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder & + (typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount)["responder"] & KoaRuntimeResponder -const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponseValidator = - responseValidationFactory([["200", s_deleted_discount]], s_error) - export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( params: Params< @@ -7242,20 +6370,18 @@ export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = | Response > -const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = - { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = b( + (r) => ({ + with200: r.with200(s_discount), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, - } + }), +) type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = - typeof getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder & + (typeof getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount)["responder"] & KoaRuntimeResponder -const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponseValidator = - responseValidationFactory([["200", s_discount]], s_error) - export type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( params: Params< t_GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountParamSchema, @@ -7272,34 +6398,26 @@ export type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( | Response > -const getCustomersCustomerTaxIdsResponder = { +const getCustomersCustomerTaxIds = b((r) => ({ with200: r.with200<{ data: t_tax_id[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_tax_id)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerTaxIdsResponder = - typeof getCustomersCustomerTaxIdsResponder & KoaRuntimeResponder - -const getCustomersCustomerTaxIdsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_tax_id)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getCustomersCustomerTaxIds)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerTaxIds = ( params: Params< @@ -7324,19 +6442,14 @@ export type GetCustomersCustomerTaxIds = ( | Response > -const postCustomersCustomerTaxIdsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postCustomersCustomerTaxIds = b((r) => ({ + with200: r.with200(s_tax_id), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostCustomersCustomerTaxIdsResponder = - typeof postCustomersCustomerTaxIdsResponder & KoaRuntimeResponder - -const postCustomersCustomerTaxIdsResponseValidator = responseValidationFactory( - [["200", s_tax_id]], - s_error, -) + (typeof postCustomersCustomerTaxIds)["responder"] & KoaRuntimeResponder export type PostCustomersCustomerTaxIds = ( params: Params< @@ -7353,17 +6466,14 @@ export type PostCustomersCustomerTaxIds = ( | Response > -const deleteCustomersCustomerTaxIdsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteCustomersCustomerTaxIdsId = b((r) => ({ + with200: r.with200(s_deleted_tax_id), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteCustomersCustomerTaxIdsIdResponder = - typeof deleteCustomersCustomerTaxIdsIdResponder & KoaRuntimeResponder - -const deleteCustomersCustomerTaxIdsIdResponseValidator = - responseValidationFactory([["200", s_deleted_tax_id]], s_error) + (typeof deleteCustomersCustomerTaxIdsId)["responder"] & KoaRuntimeResponder export type DeleteCustomersCustomerTaxIdsId = ( params: Params< @@ -7380,19 +6490,14 @@ export type DeleteCustomersCustomerTaxIdsId = ( | Response > -const getCustomersCustomerTaxIdsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getCustomersCustomerTaxIdsId = b((r) => ({ + with200: r.with200(s_tax_id), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetCustomersCustomerTaxIdsIdResponder = - typeof getCustomersCustomerTaxIdsIdResponder & KoaRuntimeResponder - -const getCustomersCustomerTaxIdsIdResponseValidator = responseValidationFactory( - [["200", s_tax_id]], - s_error, -) + (typeof getCustomersCustomerTaxIdsId)["responder"] & KoaRuntimeResponder export type GetCustomersCustomerTaxIdsId = ( params: Params< @@ -7409,33 +6514,26 @@ export type GetCustomersCustomerTaxIdsId = ( | Response > -const getDisputesResponder = { +const getDisputes = b((r) => ({ with200: r.with200<{ data: t_dispute[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_dispute)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/disputes")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetDisputesResponder = typeof getDisputesResponder & KoaRuntimeResponder - -const getDisputesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_dispute)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/disputes")), - }), - ], - ], - s_error, -) +type GetDisputesResponder = (typeof getDisputes)["responder"] & + KoaRuntimeResponder export type GetDisputes = ( params: Params< @@ -7460,20 +6558,15 @@ export type GetDisputes = ( | Response > -const getDisputesDisputeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getDisputesDispute = b((r) => ({ + with200: r.with200(s_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetDisputesDisputeResponder = typeof getDisputesDisputeResponder & +type GetDisputesDisputeResponder = (typeof getDisputesDispute)["responder"] & KoaRuntimeResponder -const getDisputesDisputeResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, -) - export type GetDisputesDispute = ( params: Params< t_GetDisputesDisputeParamSchema, @@ -7489,20 +6582,15 @@ export type GetDisputesDispute = ( | Response > -const postDisputesDisputeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postDisputesDispute = b((r) => ({ + with200: r.with200(s_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostDisputesDisputeResponder = typeof postDisputesDisputeResponder & +type PostDisputesDisputeResponder = (typeof postDisputesDispute)["responder"] & KoaRuntimeResponder -const postDisputesDisputeResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, -) - export type PostDisputesDispute = ( params: Params< t_PostDisputesDisputeParamSchema, @@ -7518,19 +6606,14 @@ export type PostDisputesDispute = ( | Response > -const postDisputesDisputeCloseResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postDisputesDisputeClose = b((r) => ({ + with200: r.with200(s_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostDisputesDisputeCloseResponder = - typeof postDisputesDisputeCloseResponder & KoaRuntimeResponder - -const postDisputesDisputeCloseResponseValidator = responseValidationFactory( - [["200", s_dispute]], - s_error, -) + (typeof postDisputesDisputeClose)["responder"] & KoaRuntimeResponder export type PostDisputesDisputeClose = ( params: Params< @@ -7547,35 +6630,26 @@ export type PostDisputesDisputeClose = ( | Response > -const getEntitlementsActiveEntitlementsResponder = { +const getEntitlementsActiveEntitlements = b((r) => ({ with200: r.with200<{ data: t_entitlements_active_entitlement[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_entitlements_active_entitlement), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetEntitlementsActiveEntitlementsResponder = - typeof getEntitlementsActiveEntitlementsResponder & KoaRuntimeResponder - -const getEntitlementsActiveEntitlementsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_entitlements_active_entitlement), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getEntitlementsActiveEntitlements)["responder"] & KoaRuntimeResponder export type GetEntitlementsActiveEntitlements = ( params: Params< @@ -7600,20 +6674,17 @@ export type GetEntitlementsActiveEntitlements = ( | Response > -const getEntitlementsActiveEntitlementsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getEntitlementsActiveEntitlementsId = b((r) => ({ + with200: r.with200( + s_entitlements_active_entitlement, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetEntitlementsActiveEntitlementsIdResponder = - typeof getEntitlementsActiveEntitlementsIdResponder & KoaRuntimeResponder - -const getEntitlementsActiveEntitlementsIdResponseValidator = - responseValidationFactory( - [["200", s_entitlements_active_entitlement]], - s_error, - ) + (typeof getEntitlementsActiveEntitlementsId)["responder"] & + KoaRuntimeResponder export type GetEntitlementsActiveEntitlementsId = ( params: Params< @@ -7630,37 +6701,26 @@ export type GetEntitlementsActiveEntitlementsId = ( | Response > -const getEntitlementsFeaturesResponder = { +const getEntitlementsFeatures = b((r) => ({ with200: r.with200<{ data: t_entitlements_feature[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_entitlements_feature), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/entitlements/features")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetEntitlementsFeaturesResponder = - typeof getEntitlementsFeaturesResponder & KoaRuntimeResponder - -const getEntitlementsFeaturesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_entitlements_feature), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/entitlements/features")), - }), - ], - ], - s_error, -) + (typeof getEntitlementsFeatures)["responder"] & KoaRuntimeResponder export type GetEntitlementsFeatures = ( params: Params< @@ -7685,19 +6745,14 @@ export type GetEntitlementsFeatures = ( | Response > -const postEntitlementsFeaturesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postEntitlementsFeatures = b((r) => ({ + with200: r.with200(s_entitlements_feature), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostEntitlementsFeaturesResponder = - typeof postEntitlementsFeaturesResponder & KoaRuntimeResponder - -const postEntitlementsFeaturesResponseValidator = responseValidationFactory( - [["200", s_entitlements_feature]], - s_error, -) + (typeof postEntitlementsFeatures)["responder"] & KoaRuntimeResponder export type PostEntitlementsFeatures = ( params: Params, @@ -7709,19 +6764,14 @@ export type PostEntitlementsFeatures = ( | Response > -const getEntitlementsFeaturesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getEntitlementsFeaturesId = b((r) => ({ + with200: r.with200(s_entitlements_feature), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetEntitlementsFeaturesIdResponder = - typeof getEntitlementsFeaturesIdResponder & KoaRuntimeResponder - -const getEntitlementsFeaturesIdResponseValidator = responseValidationFactory( - [["200", s_entitlements_feature]], - s_error, -) + (typeof getEntitlementsFeaturesId)["responder"] & KoaRuntimeResponder export type GetEntitlementsFeaturesId = ( params: Params< @@ -7738,19 +6788,14 @@ export type GetEntitlementsFeaturesId = ( | Response > -const postEntitlementsFeaturesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postEntitlementsFeaturesId = b((r) => ({ + with200: r.with200(s_entitlements_feature), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostEntitlementsFeaturesIdResponder = - typeof postEntitlementsFeaturesIdResponder & KoaRuntimeResponder - -const postEntitlementsFeaturesIdResponseValidator = responseValidationFactory( - [["200", s_entitlements_feature]], - s_error, -) + (typeof postEntitlementsFeaturesId)["responder"] & KoaRuntimeResponder export type PostEntitlementsFeaturesId = ( params: Params< @@ -7767,20 +6812,15 @@ export type PostEntitlementsFeaturesId = ( | Response > -const postEphemeralKeysResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postEphemeralKeys = b((r) => ({ + with200: r.with200(s_ephemeral_key), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostEphemeralKeysResponder = typeof postEphemeralKeysResponder & +type PostEphemeralKeysResponder = (typeof postEphemeralKeys)["responder"] & KoaRuntimeResponder -const postEphemeralKeysResponseValidator = responseValidationFactory( - [["200", s_ephemeral_key]], - s_error, -) - export type PostEphemeralKeys = ( params: Params, respond: PostEphemeralKeysResponder, @@ -7791,19 +6831,14 @@ export type PostEphemeralKeys = ( | Response > -const deleteEphemeralKeysKeyResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteEphemeralKeysKey = b((r) => ({ + with200: r.with200(s_ephemeral_key), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type DeleteEphemeralKeysKeyResponder = typeof deleteEphemeralKeysKeyResponder & - KoaRuntimeResponder - -const deleteEphemeralKeysKeyResponseValidator = responseValidationFactory( - [["200", s_ephemeral_key]], - s_error, -) +type DeleteEphemeralKeysKeyResponder = + (typeof deleteEphemeralKeysKey)["responder"] & KoaRuntimeResponder export type DeleteEphemeralKeysKey = ( params: Params< @@ -7820,33 +6855,25 @@ export type DeleteEphemeralKeysKey = ( | Response > -const getEventsResponder = { +const getEvents = b((r) => ({ with200: r.with200<{ data: t_event[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_event), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/events")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetEventsResponder = typeof getEventsResponder & KoaRuntimeResponder - -const getEventsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_event), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/events")), - }), - ], - ], - s_error, -) +type GetEventsResponder = (typeof getEvents)["responder"] & KoaRuntimeResponder export type GetEvents = ( params: Params< @@ -7871,18 +6898,14 @@ export type GetEvents = ( | Response > -const getEventsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getEventsId = b((r) => ({ + with200: r.with200(s_event), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetEventsIdResponder = typeof getEventsIdResponder & KoaRuntimeResponder +})) -const getEventsIdResponseValidator = responseValidationFactory( - [["200", s_event]], - s_error, -) +type GetEventsIdResponder = (typeof getEventsId)["responder"] & + KoaRuntimeResponder export type GetEventsId = ( params: Params< @@ -7899,35 +6922,27 @@ export type GetEventsId = ( | Response > -const getExchangeRatesResponder = { +const getExchangeRates = b((r) => ({ with200: r.with200<{ data: t_exchange_rate[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_exchange_rate), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/exchange_rates")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetExchangeRatesResponder = typeof getExchangeRatesResponder & +type GetExchangeRatesResponder = (typeof getExchangeRates)["responder"] & KoaRuntimeResponder -const getExchangeRatesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_exchange_rate), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/exchange_rates")), - }), - ], - ], - s_error, -) - export type GetExchangeRates = ( params: Params< void, @@ -7951,19 +6966,14 @@ export type GetExchangeRates = ( | Response > -const getExchangeRatesRateIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getExchangeRatesRateId = b((r) => ({ + with200: r.with200(s_exchange_rate), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetExchangeRatesRateIdResponder = typeof getExchangeRatesRateIdResponder & - KoaRuntimeResponder +})) -const getExchangeRatesRateIdResponseValidator = responseValidationFactory( - [["200", s_exchange_rate]], - s_error, -) +type GetExchangeRatesRateIdResponder = + (typeof getExchangeRatesRateId)["responder"] & KoaRuntimeResponder export type GetExchangeRatesRateId = ( params: Params< @@ -7980,19 +6990,14 @@ export type GetExchangeRatesRateId = ( | Response > -const postExternalAccountsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postExternalAccountsId = b((r) => ({ + with200: r.with200(s_external_account), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostExternalAccountsIdResponder = typeof postExternalAccountsIdResponder & - KoaRuntimeResponder - -const postExternalAccountsIdResponseValidator = responseValidationFactory( - [["200", s_external_account]], - s_error, -) +type PostExternalAccountsIdResponder = + (typeof postExternalAccountsId)["responder"] & KoaRuntimeResponder export type PostExternalAccountsId = ( params: Params< @@ -8009,33 +7014,26 @@ export type PostExternalAccountsId = ( | Response > -const getFileLinksResponder = { +const getFileLinks = b((r) => ({ with200: r.with200<{ data: t_file_link[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_file_link)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/file_links")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetFileLinksResponder = typeof getFileLinksResponder & KoaRuntimeResponder +})) -const getFileLinksResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_file_link)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/file_links")), - }), - ], - ], - s_error, -) +type GetFileLinksResponder = (typeof getFileLinks)["responder"] & + KoaRuntimeResponder export type GetFileLinks = ( params: Params< @@ -8060,20 +7058,15 @@ export type GetFileLinks = ( | Response > -const postFileLinksResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postFileLinks = b((r) => ({ + with200: r.with200(s_file_link), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostFileLinksResponder = typeof postFileLinksResponder & +type PostFileLinksResponder = (typeof postFileLinks)["responder"] & KoaRuntimeResponder -const postFileLinksResponseValidator = responseValidationFactory( - [["200", s_file_link]], - s_error, -) - export type PostFileLinks = ( params: Params, respond: PostFileLinksResponder, @@ -8084,20 +7077,15 @@ export type PostFileLinks = ( | Response > -const getFileLinksLinkResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getFileLinksLink = b((r) => ({ + with200: r.with200(s_file_link), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetFileLinksLinkResponder = typeof getFileLinksLinkResponder & +type GetFileLinksLinkResponder = (typeof getFileLinksLink)["responder"] & KoaRuntimeResponder -const getFileLinksLinkResponseValidator = responseValidationFactory( - [["200", s_file_link]], - s_error, -) - export type GetFileLinksLink = ( params: Params< t_GetFileLinksLinkParamSchema, @@ -8113,20 +7101,15 @@ export type GetFileLinksLink = ( | Response > -const postFileLinksLinkResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postFileLinksLink = b((r) => ({ + with200: r.with200(s_file_link), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostFileLinksLinkResponder = typeof postFileLinksLinkResponder & +type PostFileLinksLinkResponder = (typeof postFileLinksLink)["responder"] & KoaRuntimeResponder -const postFileLinksLinkResponseValidator = responseValidationFactory( - [["200", s_file_link]], - s_error, -) - export type PostFileLinksLink = ( params: Params< t_PostFileLinksLinkParamSchema, @@ -8142,33 +7125,25 @@ export type PostFileLinksLink = ( | Response > -const getFilesResponder = { +const getFiles = b((r) => ({ with200: r.with200<{ data: t_file[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_file)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/files")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetFilesResponder = typeof getFilesResponder & KoaRuntimeResponder +})) -const getFilesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_file)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/files")), - }), - ], - ], - s_error, -) +type GetFilesResponder = (typeof getFiles)["responder"] & KoaRuntimeResponder export type GetFiles = ( params: Params< @@ -8193,18 +7168,13 @@ export type GetFiles = ( | Response > -const postFilesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postFiles = b((r) => ({ + with200: r.with200(s_file), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostFilesResponder = typeof postFilesResponder & KoaRuntimeResponder - -const postFilesResponseValidator = responseValidationFactory( - [["200", s_file]], - s_error, -) +type PostFilesResponder = (typeof postFiles)["responder"] & KoaRuntimeResponder export type PostFiles = ( params: Params, @@ -8216,18 +7186,14 @@ export type PostFiles = ( | Response > -const getFilesFileResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getFilesFile = b((r) => ({ + with200: r.with200(s_file), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetFilesFileResponder = typeof getFilesFileResponder & KoaRuntimeResponder - -const getFilesFileResponseValidator = responseValidationFactory( - [["200", s_file]], - s_error, -) +type GetFilesFileResponder = (typeof getFilesFile)["responder"] & + KoaRuntimeResponder export type GetFilesFile = ( params: Params< @@ -8244,38 +7210,29 @@ export type GetFilesFile = ( | Response > -const getFinancialConnectionsAccountsResponder = { +const getFinancialConnectionsAccounts = b((r) => ({ with200: r.with200<{ data: t_financial_connections_account[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_financial_connections_account)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/financial_connections/accounts")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetFinancialConnectionsAccountsResponder = - typeof getFinancialConnectionsAccountsResponder & KoaRuntimeResponder - -const getFinancialConnectionsAccountsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_financial_connections_account)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/financial_connections/accounts")), - }), - ], - ], - s_error, - ) + (typeof getFinancialConnectionsAccounts)["responder"] & KoaRuntimeResponder export type GetFinancialConnectionsAccounts = ( params: Params< @@ -8300,17 +7257,17 @@ export type GetFinancialConnectionsAccounts = ( | Response > -const getFinancialConnectionsAccountsAccountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getFinancialConnectionsAccountsAccount = b((r) => ({ + with200: r.with200( + s_financial_connections_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetFinancialConnectionsAccountsAccountResponder = - typeof getFinancialConnectionsAccountsAccountResponder & KoaRuntimeResponder - -const getFinancialConnectionsAccountsAccountResponseValidator = - responseValidationFactory([["200", s_financial_connections_account]], s_error) + (typeof getFinancialConnectionsAccountsAccount)["responder"] & + KoaRuntimeResponder export type GetFinancialConnectionsAccountsAccount = ( params: Params< @@ -8327,19 +7284,18 @@ export type GetFinancialConnectionsAccountsAccount = ( | Response > -const postFinancialConnectionsAccountsAccountDisconnectResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postFinancialConnectionsAccountsAccountDisconnect = b((r) => ({ + with200: r.with200( + s_financial_connections_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostFinancialConnectionsAccountsAccountDisconnectResponder = - typeof postFinancialConnectionsAccountsAccountDisconnectResponder & + (typeof postFinancialConnectionsAccountsAccountDisconnect)["responder"] & KoaRuntimeResponder -const postFinancialConnectionsAccountsAccountDisconnectResponseValidator = - responseValidationFactory([["200", s_financial_connections_account]], s_error) - export type PostFinancialConnectionsAccountsAccountDisconnect = ( params: Params< t_PostFinancialConnectionsAccountsAccountDisconnectParamSchema, @@ -8355,37 +7311,28 @@ export type PostFinancialConnectionsAccountsAccountDisconnect = ( | Response > -const getFinancialConnectionsAccountsAccountOwnersResponder = { +const getFinancialConnectionsAccountsAccountOwners = b((r) => ({ with200: r.with200<{ data: t_financial_connections_account_owner[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_financial_connections_account_owner), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetFinancialConnectionsAccountsAccountOwnersResponder = - typeof getFinancialConnectionsAccountsAccountOwnersResponder & + (typeof getFinancialConnectionsAccountsAccountOwners)["responder"] & KoaRuntimeResponder -const getFinancialConnectionsAccountsAccountOwnersResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_financial_connections_account_owner), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) - export type GetFinancialConnectionsAccountsAccountOwners = ( params: Params< t_GetFinancialConnectionsAccountsAccountOwnersParamSchema, @@ -8409,19 +7356,18 @@ export type GetFinancialConnectionsAccountsAccountOwners = ( | Response > -const postFinancialConnectionsAccountsAccountRefreshResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postFinancialConnectionsAccountsAccountRefresh = b((r) => ({ + with200: r.with200( + s_financial_connections_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostFinancialConnectionsAccountsAccountRefreshResponder = - typeof postFinancialConnectionsAccountsAccountRefreshResponder & + (typeof postFinancialConnectionsAccountsAccountRefresh)["responder"] & KoaRuntimeResponder -const postFinancialConnectionsAccountsAccountRefreshResponseValidator = - responseValidationFactory([["200", s_financial_connections_account]], s_error) - export type PostFinancialConnectionsAccountsAccountRefresh = ( params: Params< t_PostFinancialConnectionsAccountsAccountRefreshParamSchema, @@ -8437,19 +7383,18 @@ export type PostFinancialConnectionsAccountsAccountRefresh = ( | Response > -const postFinancialConnectionsAccountsAccountSubscribeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postFinancialConnectionsAccountsAccountSubscribe = b((r) => ({ + with200: r.with200( + s_financial_connections_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostFinancialConnectionsAccountsAccountSubscribeResponder = - typeof postFinancialConnectionsAccountsAccountSubscribeResponder & + (typeof postFinancialConnectionsAccountsAccountSubscribe)["responder"] & KoaRuntimeResponder -const postFinancialConnectionsAccountsAccountSubscribeResponseValidator = - responseValidationFactory([["200", s_financial_connections_account]], s_error) - export type PostFinancialConnectionsAccountsAccountSubscribe = ( params: Params< t_PostFinancialConnectionsAccountsAccountSubscribeParamSchema, @@ -8465,19 +7410,18 @@ export type PostFinancialConnectionsAccountsAccountSubscribe = ( | Response > -const postFinancialConnectionsAccountsAccountUnsubscribeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postFinancialConnectionsAccountsAccountUnsubscribe = b((r) => ({ + with200: r.with200( + s_financial_connections_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostFinancialConnectionsAccountsAccountUnsubscribeResponder = - typeof postFinancialConnectionsAccountsAccountUnsubscribeResponder & + (typeof postFinancialConnectionsAccountsAccountUnsubscribe)["responder"] & KoaRuntimeResponder -const postFinancialConnectionsAccountsAccountUnsubscribeResponseValidator = - responseValidationFactory([["200", s_financial_connections_account]], s_error) - export type PostFinancialConnectionsAccountsAccountUnsubscribe = ( params: Params< t_PostFinancialConnectionsAccountsAccountUnsubscribeParamSchema, @@ -8493,17 +7437,16 @@ export type PostFinancialConnectionsAccountsAccountUnsubscribe = ( | Response > -const postFinancialConnectionsSessionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postFinancialConnectionsSessions = b((r) => ({ + with200: r.with200( + s_financial_connections_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostFinancialConnectionsSessionsResponder = - typeof postFinancialConnectionsSessionsResponder & KoaRuntimeResponder - -const postFinancialConnectionsSessionsResponseValidator = - responseValidationFactory([["200", s_financial_connections_session]], s_error) + (typeof postFinancialConnectionsSessions)["responder"] & KoaRuntimeResponder export type PostFinancialConnectionsSessions = ( params: Params< @@ -8520,17 +7463,17 @@ export type PostFinancialConnectionsSessions = ( | Response > -const getFinancialConnectionsSessionsSessionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getFinancialConnectionsSessionsSession = b((r) => ({ + with200: r.with200( + s_financial_connections_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetFinancialConnectionsSessionsSessionResponder = - typeof getFinancialConnectionsSessionsSessionResponder & KoaRuntimeResponder - -const getFinancialConnectionsSessionsSessionResponseValidator = - responseValidationFactory([["200", s_financial_connections_session]], s_error) + (typeof getFinancialConnectionsSessionsSession)["responder"] & + KoaRuntimeResponder export type GetFinancialConnectionsSessionsSession = ( params: Params< @@ -8547,38 +7490,30 @@ export type GetFinancialConnectionsSessionsSession = ( | Response > -const getFinancialConnectionsTransactionsResponder = { +const getFinancialConnectionsTransactions = b((r) => ({ with200: r.with200<{ data: t_financial_connections_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_financial_connections_transaction), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/financial_connections/transactions")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetFinancialConnectionsTransactionsResponder = - typeof getFinancialConnectionsTransactionsResponder & KoaRuntimeResponder - -const getFinancialConnectionsTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_financial_connections_transaction), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/financial_connections/transactions")), - }), - ], - ], - s_error, - ) + (typeof getFinancialConnectionsTransactions)["responder"] & + KoaRuntimeResponder export type GetFinancialConnectionsTransactions = ( params: Params< @@ -8603,22 +7538,18 @@ export type GetFinancialConnectionsTransactions = ( | Response > -const getFinancialConnectionsTransactionsTransactionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getFinancialConnectionsTransactionsTransaction = b((r) => ({ + with200: r.with200( + s_financial_connections_transaction, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetFinancialConnectionsTransactionsTransactionResponder = - typeof getFinancialConnectionsTransactionsTransactionResponder & + (typeof getFinancialConnectionsTransactionsTransaction)["responder"] & KoaRuntimeResponder -const getFinancialConnectionsTransactionsTransactionResponseValidator = - responseValidationFactory( - [["200", s_financial_connections_transaction]], - s_error, - ) - export type GetFinancialConnectionsTransactionsTransaction = ( params: Params< t_GetFinancialConnectionsTransactionsTransactionParamSchema, @@ -8634,34 +7565,26 @@ export type GetFinancialConnectionsTransactionsTransaction = ( | Response > -const getForwardingRequestsResponder = { +const getForwardingRequests = b((r) => ({ with200: r.with200<{ data: t_forwarding_request[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_forwarding_request), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetForwardingRequestsResponder = typeof getForwardingRequestsResponder & - KoaRuntimeResponder +})) -const getForwardingRequestsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_forwarding_request), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) +type GetForwardingRequestsResponder = + (typeof getForwardingRequests)["responder"] & KoaRuntimeResponder export type GetForwardingRequests = ( params: Params< @@ -8686,19 +7609,14 @@ export type GetForwardingRequests = ( | Response > -const postForwardingRequestsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postForwardingRequests = b((r) => ({ + with200: r.with200(s_forwarding_request), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostForwardingRequestsResponder = typeof postForwardingRequestsResponder & - KoaRuntimeResponder +})) -const postForwardingRequestsResponseValidator = responseValidationFactory( - [["200", s_forwarding_request]], - s_error, -) +type PostForwardingRequestsResponder = + (typeof postForwardingRequests)["responder"] & KoaRuntimeResponder export type PostForwardingRequests = ( params: Params, @@ -8710,19 +7628,14 @@ export type PostForwardingRequests = ( | Response > -const getForwardingRequestsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getForwardingRequestsId = b((r) => ({ + with200: r.with200(s_forwarding_request), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetForwardingRequestsIdResponder = - typeof getForwardingRequestsIdResponder & KoaRuntimeResponder - -const getForwardingRequestsIdResponseValidator = responseValidationFactory( - [["200", s_forwarding_request]], - s_error, -) + (typeof getForwardingRequestsId)["responder"] & KoaRuntimeResponder export type GetForwardingRequestsId = ( params: Params< @@ -8739,38 +7652,29 @@ export type GetForwardingRequestsId = ( | Response > -const getIdentityVerificationReportsResponder = { +const getIdentityVerificationReports = b((r) => ({ with200: r.with200<{ data: t_identity_verification_report[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_identity_verification_report), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/identity/verification_reports")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIdentityVerificationReportsResponder = - typeof getIdentityVerificationReportsResponder & KoaRuntimeResponder - -const getIdentityVerificationReportsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_identity_verification_report), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/identity/verification_reports")), - }), - ], - ], - s_error, - ) + (typeof getIdentityVerificationReports)["responder"] & KoaRuntimeResponder export type GetIdentityVerificationReports = ( params: Params< @@ -8795,17 +7699,17 @@ export type GetIdentityVerificationReports = ( | Response > -const getIdentityVerificationReportsReportResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIdentityVerificationReportsReport = b((r) => ({ + with200: r.with200( + s_identity_verification_report, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIdentityVerificationReportsReportResponder = - typeof getIdentityVerificationReportsReportResponder & KoaRuntimeResponder - -const getIdentityVerificationReportsReportResponseValidator = - responseValidationFactory([["200", s_identity_verification_report]], s_error) + (typeof getIdentityVerificationReportsReport)["responder"] & + KoaRuntimeResponder export type GetIdentityVerificationReportsReport = ( params: Params< @@ -8822,38 +7726,29 @@ export type GetIdentityVerificationReportsReport = ( | Response > -const getIdentityVerificationSessionsResponder = { +const getIdentityVerificationSessions = b((r) => ({ with200: r.with200<{ data: t_identity_verification_session[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_identity_verification_session), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/identity/verification_sessions")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIdentityVerificationSessionsResponder = - typeof getIdentityVerificationSessionsResponder & KoaRuntimeResponder - -const getIdentityVerificationSessionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_identity_verification_session), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/identity/verification_sessions")), - }), - ], - ], - s_error, - ) + (typeof getIdentityVerificationSessions)["responder"] & KoaRuntimeResponder export type GetIdentityVerificationSessions = ( params: Params< @@ -8878,17 +7773,16 @@ export type GetIdentityVerificationSessions = ( | Response > -const postIdentityVerificationSessionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIdentityVerificationSessions = b((r) => ({ + with200: r.with200( + s_identity_verification_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIdentityVerificationSessionsResponder = - typeof postIdentityVerificationSessionsResponder & KoaRuntimeResponder - -const postIdentityVerificationSessionsResponseValidator = - responseValidationFactory([["200", s_identity_verification_session]], s_error) + (typeof postIdentityVerificationSessions)["responder"] & KoaRuntimeResponder export type PostIdentityVerificationSessions = ( params: Params< @@ -8905,17 +7799,17 @@ export type PostIdentityVerificationSessions = ( | Response > -const getIdentityVerificationSessionsSessionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIdentityVerificationSessionsSession = b((r) => ({ + with200: r.with200( + s_identity_verification_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIdentityVerificationSessionsSessionResponder = - typeof getIdentityVerificationSessionsSessionResponder & KoaRuntimeResponder - -const getIdentityVerificationSessionsSessionResponseValidator = - responseValidationFactory([["200", s_identity_verification_session]], s_error) + (typeof getIdentityVerificationSessionsSession)["responder"] & + KoaRuntimeResponder export type GetIdentityVerificationSessionsSession = ( params: Params< @@ -8932,17 +7826,17 @@ export type GetIdentityVerificationSessionsSession = ( | Response > -const postIdentityVerificationSessionsSessionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIdentityVerificationSessionsSession = b((r) => ({ + with200: r.with200( + s_identity_verification_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIdentityVerificationSessionsSessionResponder = - typeof postIdentityVerificationSessionsSessionResponder & KoaRuntimeResponder - -const postIdentityVerificationSessionsSessionResponseValidator = - responseValidationFactory([["200", s_identity_verification_session]], s_error) + (typeof postIdentityVerificationSessionsSession)["responder"] & + KoaRuntimeResponder export type PostIdentityVerificationSessionsSession = ( params: Params< @@ -8959,19 +7853,18 @@ export type PostIdentityVerificationSessionsSession = ( | Response > -const postIdentityVerificationSessionsSessionCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIdentityVerificationSessionsSessionCancel = b((r) => ({ + with200: r.with200( + s_identity_verification_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIdentityVerificationSessionsSessionCancelResponder = - typeof postIdentityVerificationSessionsSessionCancelResponder & + (typeof postIdentityVerificationSessionsSessionCancel)["responder"] & KoaRuntimeResponder -const postIdentityVerificationSessionsSessionCancelResponseValidator = - responseValidationFactory([["200", s_identity_verification_session]], s_error) - export type PostIdentityVerificationSessionsSessionCancel = ( params: Params< t_PostIdentityVerificationSessionsSessionCancelParamSchema, @@ -8987,19 +7880,18 @@ export type PostIdentityVerificationSessionsSessionCancel = ( | Response > -const postIdentityVerificationSessionsSessionRedactResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIdentityVerificationSessionsSessionRedact = b((r) => ({ + with200: r.with200( + s_identity_verification_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIdentityVerificationSessionsSessionRedactResponder = - typeof postIdentityVerificationSessionsSessionRedactResponder & + (typeof postIdentityVerificationSessionsSessionRedact)["responder"] & KoaRuntimeResponder -const postIdentityVerificationSessionsSessionRedactResponseValidator = - responseValidationFactory([["200", s_identity_verification_session]], s_error) - export type PostIdentityVerificationSessionsSessionRedact = ( params: Params< t_PostIdentityVerificationSessionsSessionRedactParamSchema, @@ -9015,35 +7907,27 @@ export type PostIdentityVerificationSessionsSessionRedact = ( | Response > -const getInvoicePaymentsResponder = { +const getInvoicePayments = b((r) => ({ with200: r.with200<{ data: t_invoice_payment[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_invoice_payment)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetInvoicePaymentsResponder = typeof getInvoicePaymentsResponder & +type GetInvoicePaymentsResponder = (typeof getInvoicePayments)["responder"] & KoaRuntimeResponder -const getInvoicePaymentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_invoice_payment)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetInvoicePayments = ( params: Params< void, @@ -9067,17 +7951,14 @@ export type GetInvoicePayments = ( | Response > -const getInvoicePaymentsInvoicePaymentResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getInvoicePaymentsInvoicePayment = b((r) => ({ + with200: r.with200(s_invoice_payment), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetInvoicePaymentsInvoicePaymentResponder = - typeof getInvoicePaymentsInvoicePaymentResponder & KoaRuntimeResponder - -const getInvoicePaymentsInvoicePaymentResponseValidator = - responseValidationFactory([["200", s_invoice_payment]], s_error) + (typeof getInvoicePaymentsInvoicePayment)["responder"] & KoaRuntimeResponder export type GetInvoicePaymentsInvoicePayment = ( params: Params< @@ -9094,34 +7975,26 @@ export type GetInvoicePaymentsInvoicePayment = ( | Response > -const getInvoiceRenderingTemplatesResponder = { +const getInvoiceRenderingTemplates = b((r) => ({ with200: r.with200<{ data: t_invoice_rendering_template[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_invoice_rendering_template), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetInvoiceRenderingTemplatesResponder = - typeof getInvoiceRenderingTemplatesResponder & KoaRuntimeResponder - -const getInvoiceRenderingTemplatesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_invoice_rendering_template), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getInvoiceRenderingTemplates)["responder"] & KoaRuntimeResponder export type GetInvoiceRenderingTemplates = ( params: Params< @@ -9146,17 +8019,17 @@ export type GetInvoiceRenderingTemplates = ( | Response > -const getInvoiceRenderingTemplatesTemplateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getInvoiceRenderingTemplatesTemplate = b((r) => ({ + with200: r.with200( + s_invoice_rendering_template, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetInvoiceRenderingTemplatesTemplateResponder = - typeof getInvoiceRenderingTemplatesTemplateResponder & KoaRuntimeResponder - -const getInvoiceRenderingTemplatesTemplateResponseValidator = - responseValidationFactory([["200", s_invoice_rendering_template]], s_error) + (typeof getInvoiceRenderingTemplatesTemplate)["responder"] & + KoaRuntimeResponder export type GetInvoiceRenderingTemplatesTemplate = ( params: Params< @@ -9173,19 +8046,18 @@ export type GetInvoiceRenderingTemplatesTemplate = ( | Response > -const postInvoiceRenderingTemplatesTemplateArchiveResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoiceRenderingTemplatesTemplateArchive = b((r) => ({ + with200: r.with200( + s_invoice_rendering_template, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoiceRenderingTemplatesTemplateArchiveResponder = - typeof postInvoiceRenderingTemplatesTemplateArchiveResponder & + (typeof postInvoiceRenderingTemplatesTemplateArchive)["responder"] & KoaRuntimeResponder -const postInvoiceRenderingTemplatesTemplateArchiveResponseValidator = - responseValidationFactory([["200", s_invoice_rendering_template]], s_error) - export type PostInvoiceRenderingTemplatesTemplateArchive = ( params: Params< t_PostInvoiceRenderingTemplatesTemplateArchiveParamSchema, @@ -9201,19 +8073,18 @@ export type PostInvoiceRenderingTemplatesTemplateArchive = ( | Response > -const postInvoiceRenderingTemplatesTemplateUnarchiveResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoiceRenderingTemplatesTemplateUnarchive = b((r) => ({ + with200: r.with200( + s_invoice_rendering_template, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoiceRenderingTemplatesTemplateUnarchiveResponder = - typeof postInvoiceRenderingTemplatesTemplateUnarchiveResponder & + (typeof postInvoiceRenderingTemplatesTemplateUnarchive)["responder"] & KoaRuntimeResponder -const postInvoiceRenderingTemplatesTemplateUnarchiveResponseValidator = - responseValidationFactory([["200", s_invoice_rendering_template]], s_error) - export type PostInvoiceRenderingTemplatesTemplateUnarchive = ( params: Params< t_PostInvoiceRenderingTemplatesTemplateUnarchiveParamSchema, @@ -9229,35 +8100,27 @@ export type PostInvoiceRenderingTemplatesTemplateUnarchive = ( | Response > -const getInvoiceitemsResponder = { +const getInvoiceitems = b((r) => ({ with200: r.with200<{ data: t_invoiceitem[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_invoiceitem)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/invoiceitems")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetInvoiceitemsResponder = typeof getInvoiceitemsResponder & +type GetInvoiceitemsResponder = (typeof getInvoiceitems)["responder"] & KoaRuntimeResponder -const getInvoiceitemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_invoiceitem)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/invoiceitems")), - }), - ], - ], - s_error, -) - export type GetInvoiceitems = ( params: Params< void, @@ -9281,20 +8144,15 @@ export type GetInvoiceitems = ( | Response > -const postInvoiceitemsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoiceitems = b((r) => ({ + with200: r.with200(s_invoiceitem), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostInvoiceitemsResponder = typeof postInvoiceitemsResponder & +type PostInvoiceitemsResponder = (typeof postInvoiceitems)["responder"] & KoaRuntimeResponder -const postInvoiceitemsResponseValidator = responseValidationFactory( - [["200", s_invoiceitem]], - s_error, -) - export type PostInvoiceitems = ( params: Params, respond: PostInvoiceitemsResponder, @@ -9305,17 +8163,14 @@ export type PostInvoiceitems = ( | Response > -const deleteInvoiceitemsInvoiceitemResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteInvoiceitemsInvoiceitem = b((r) => ({ + with200: r.with200(s_deleted_invoiceitem), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteInvoiceitemsInvoiceitemResponder = - typeof deleteInvoiceitemsInvoiceitemResponder & KoaRuntimeResponder - -const deleteInvoiceitemsInvoiceitemResponseValidator = - responseValidationFactory([["200", s_deleted_invoiceitem]], s_error) + (typeof deleteInvoiceitemsInvoiceitem)["responder"] & KoaRuntimeResponder export type DeleteInvoiceitemsInvoiceitem = ( params: Params< @@ -9332,19 +8187,14 @@ export type DeleteInvoiceitemsInvoiceitem = ( | Response > -const getInvoiceitemsInvoiceitemResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getInvoiceitemsInvoiceitem = b((r) => ({ + with200: r.with200(s_invoiceitem), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetInvoiceitemsInvoiceitemResponder = - typeof getInvoiceitemsInvoiceitemResponder & KoaRuntimeResponder - -const getInvoiceitemsInvoiceitemResponseValidator = responseValidationFactory( - [["200", s_invoiceitem]], - s_error, -) + (typeof getInvoiceitemsInvoiceitem)["responder"] & KoaRuntimeResponder export type GetInvoiceitemsInvoiceitem = ( params: Params< @@ -9361,19 +8211,14 @@ export type GetInvoiceitemsInvoiceitem = ( | Response > -const postInvoiceitemsInvoiceitemResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoiceitemsInvoiceitem = b((r) => ({ + with200: r.with200(s_invoiceitem), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoiceitemsInvoiceitemResponder = - typeof postInvoiceitemsInvoiceitemResponder & KoaRuntimeResponder - -const postInvoiceitemsInvoiceitemResponseValidator = responseValidationFactory( - [["200", s_invoiceitem]], - s_error, -) + (typeof postInvoiceitemsInvoiceitem)["responder"] & KoaRuntimeResponder export type PostInvoiceitemsInvoiceitem = ( params: Params< @@ -9390,33 +8235,26 @@ export type PostInvoiceitemsInvoiceitem = ( | Response > -const getInvoicesResponder = { +const getInvoices = b((r) => ({ with200: r.with200<{ data: t_invoice[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_invoice)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/invoices")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetInvoicesResponder = typeof getInvoicesResponder & KoaRuntimeResponder - -const getInvoicesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_invoice)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/invoices")), - }), - ], - ], - s_error, -) +type GetInvoicesResponder = (typeof getInvoices)["responder"] & + KoaRuntimeResponder export type GetInvoices = ( params: Params< @@ -9441,18 +8279,14 @@ export type GetInvoices = ( | Response > -const postInvoicesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoices = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostInvoicesResponder = typeof postInvoicesResponder & KoaRuntimeResponder - -const postInvoicesResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) +type PostInvoicesResponder = (typeof postInvoices)["responder"] & + KoaRuntimeResponder export type PostInvoices = ( params: Params, @@ -9464,19 +8298,14 @@ export type PostInvoices = ( | Response > -const postInvoicesCreatePreviewResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesCreatePreview = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesCreatePreviewResponder = - typeof postInvoicesCreatePreviewResponder & KoaRuntimeResponder - -const postInvoicesCreatePreviewResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) + (typeof postInvoicesCreatePreview)["responder"] & KoaRuntimeResponder export type PostInvoicesCreatePreview = ( params: Params< @@ -9493,7 +8322,7 @@ export type PostInvoicesCreatePreview = ( | Response > -const getInvoicesSearchResponder = { +const getInvoicesSearch = b((r) => ({ with200: r.with200<{ data: t_invoice[] has_more: boolean @@ -9501,31 +8330,23 @@ const getInvoicesSearchResponder = { object: "search_result" total_count?: number url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_invoice)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetInvoicesSearchResponder = typeof getInvoicesSearchResponder & +type GetInvoicesSearchResponder = (typeof getInvoicesSearch)["responder"] & KoaRuntimeResponder -const getInvoicesSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_invoice)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetInvoicesSearch = ( params: Params< void, @@ -9551,19 +8372,14 @@ export type GetInvoicesSearch = ( | Response > -const deleteInvoicesInvoiceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteInvoicesInvoice = b((r) => ({ + with200: r.with200(s_deleted_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type DeleteInvoicesInvoiceResponder = typeof deleteInvoicesInvoiceResponder & - KoaRuntimeResponder +})) -const deleteInvoicesInvoiceResponseValidator = responseValidationFactory( - [["200", s_deleted_invoice]], - s_error, -) +type DeleteInvoicesInvoiceResponder = + (typeof deleteInvoicesInvoice)["responder"] & KoaRuntimeResponder export type DeleteInvoicesInvoice = ( params: Params< @@ -9580,20 +8396,15 @@ export type DeleteInvoicesInvoice = ( | Response > -const getInvoicesInvoiceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getInvoicesInvoice = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetInvoicesInvoiceResponder = typeof getInvoicesInvoiceResponder & +type GetInvoicesInvoiceResponder = (typeof getInvoicesInvoice)["responder"] & KoaRuntimeResponder -const getInvoicesInvoiceResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) - export type GetInvoicesInvoice = ( params: Params< t_GetInvoicesInvoiceParamSchema, @@ -9609,20 +8420,15 @@ export type GetInvoicesInvoice = ( | Response > -const postInvoicesInvoiceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoice = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostInvoicesInvoiceResponder = typeof postInvoicesInvoiceResponder & +type PostInvoicesInvoiceResponder = (typeof postInvoicesInvoice)["responder"] & KoaRuntimeResponder -const postInvoicesInvoiceResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) - export type PostInvoicesInvoice = ( params: Params< t_PostInvoicesInvoiceParamSchema, @@ -9638,19 +8444,14 @@ export type PostInvoicesInvoice = ( | Response > -const postInvoicesInvoiceAddLinesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoiceAddLines = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesInvoiceAddLinesResponder = - typeof postInvoicesInvoiceAddLinesResponder & KoaRuntimeResponder - -const postInvoicesInvoiceAddLinesResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) + (typeof postInvoicesInvoiceAddLines)["responder"] & KoaRuntimeResponder export type PostInvoicesInvoiceAddLines = ( params: Params< @@ -9667,19 +8468,14 @@ export type PostInvoicesInvoiceAddLines = ( | Response > -const postInvoicesInvoiceFinalizeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoiceFinalize = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesInvoiceFinalizeResponder = - typeof postInvoicesInvoiceFinalizeResponder & KoaRuntimeResponder - -const postInvoicesInvoiceFinalizeResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) + (typeof postInvoicesInvoiceFinalize)["responder"] & KoaRuntimeResponder export type PostInvoicesInvoiceFinalize = ( params: Params< @@ -9696,34 +8492,26 @@ export type PostInvoicesInvoiceFinalize = ( | Response > -const getInvoicesInvoiceLinesResponder = { +const getInvoicesInvoiceLines = b((r) => ({ with200: r.with200<{ data: t_line_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_line_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetInvoicesInvoiceLinesResponder = - typeof getInvoicesInvoiceLinesResponder & KoaRuntimeResponder - -const getInvoicesInvoiceLinesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_line_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getInvoicesInvoiceLines)["responder"] & KoaRuntimeResponder export type GetInvoicesInvoiceLines = ( params: Params< @@ -9748,17 +8536,14 @@ export type GetInvoicesInvoiceLines = ( | Response > -const postInvoicesInvoiceLinesLineItemIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoiceLinesLineItemId = b((r) => ({ + with200: r.with200(s_line_item), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesInvoiceLinesLineItemIdResponder = - typeof postInvoicesInvoiceLinesLineItemIdResponder & KoaRuntimeResponder - -const postInvoicesInvoiceLinesLineItemIdResponseValidator = - responseValidationFactory([["200", s_line_item]], s_error) + (typeof postInvoicesInvoiceLinesLineItemId)["responder"] & KoaRuntimeResponder export type PostInvoicesInvoiceLinesLineItemId = ( params: Params< @@ -9775,17 +8560,15 @@ export type PostInvoicesInvoiceLinesLineItemId = ( | Response > -const postInvoicesInvoiceMarkUncollectibleResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoiceMarkUncollectible = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesInvoiceMarkUncollectibleResponder = - typeof postInvoicesInvoiceMarkUncollectibleResponder & KoaRuntimeResponder - -const postInvoicesInvoiceMarkUncollectibleResponseValidator = - responseValidationFactory([["200", s_invoice]], s_error) + (typeof postInvoicesInvoiceMarkUncollectible)["responder"] & + KoaRuntimeResponder export type PostInvoicesInvoiceMarkUncollectible = ( params: Params< @@ -9802,19 +8585,14 @@ export type PostInvoicesInvoiceMarkUncollectible = ( | Response > -const postInvoicesInvoicePayResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoicePay = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostInvoicesInvoicePayResponder = typeof postInvoicesInvoicePayResponder & - KoaRuntimeResponder - -const postInvoicesInvoicePayResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) +type PostInvoicesInvoicePayResponder = + (typeof postInvoicesInvoicePay)["responder"] & KoaRuntimeResponder export type PostInvoicesInvoicePay = ( params: Params< @@ -9831,17 +8609,14 @@ export type PostInvoicesInvoicePay = ( | Response > -const postInvoicesInvoiceRemoveLinesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoiceRemoveLines = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesInvoiceRemoveLinesResponder = - typeof postInvoicesInvoiceRemoveLinesResponder & KoaRuntimeResponder - -const postInvoicesInvoiceRemoveLinesResponseValidator = - responseValidationFactory([["200", s_invoice]], s_error) + (typeof postInvoicesInvoiceRemoveLines)["responder"] & KoaRuntimeResponder export type PostInvoicesInvoiceRemoveLines = ( params: Params< @@ -9858,19 +8633,14 @@ export type PostInvoicesInvoiceRemoveLines = ( | Response > -const postInvoicesInvoiceSendResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoiceSend = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesInvoiceSendResponder = - typeof postInvoicesInvoiceSendResponder & KoaRuntimeResponder - -const postInvoicesInvoiceSendResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) + (typeof postInvoicesInvoiceSend)["responder"] & KoaRuntimeResponder export type PostInvoicesInvoiceSend = ( params: Params< @@ -9887,17 +8657,14 @@ export type PostInvoicesInvoiceSend = ( | Response > -const postInvoicesInvoiceUpdateLinesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoiceUpdateLines = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesInvoiceUpdateLinesResponder = - typeof postInvoicesInvoiceUpdateLinesResponder & KoaRuntimeResponder - -const postInvoicesInvoiceUpdateLinesResponseValidator = - responseValidationFactory([["200", s_invoice]], s_error) + (typeof postInvoicesInvoiceUpdateLines)["responder"] & KoaRuntimeResponder export type PostInvoicesInvoiceUpdateLines = ( params: Params< @@ -9914,19 +8681,14 @@ export type PostInvoicesInvoiceUpdateLines = ( | Response > -const postInvoicesInvoiceVoidResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postInvoicesInvoiceVoid = b((r) => ({ + with200: r.with200(s_invoice), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostInvoicesInvoiceVoidResponder = - typeof postInvoicesInvoiceVoidResponder & KoaRuntimeResponder - -const postInvoicesInvoiceVoidResponseValidator = responseValidationFactory( - [["200", s_invoice]], - s_error, -) + (typeof postInvoicesInvoiceVoid)["responder"] & KoaRuntimeResponder export type PostInvoicesInvoiceVoid = ( params: Params< @@ -9943,37 +8705,29 @@ export type PostInvoicesInvoiceVoid = ( | Response > -const getIssuingAuthorizationsResponder = { +const getIssuingAuthorizations = b((r) => ({ with200: r.with200<{ data: t_issuing_authorization[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_issuing_authorization)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/issuing/authorizations")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingAuthorizationsResponder = - typeof getIssuingAuthorizationsResponder & KoaRuntimeResponder - -const getIssuingAuthorizationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_authorization)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/authorizations")), - }), - ], - ], - s_error, -) + (typeof getIssuingAuthorizations)["responder"] & KoaRuntimeResponder export type GetIssuingAuthorizations = ( params: Params< @@ -9998,17 +8752,15 @@ export type GetIssuingAuthorizations = ( | Response > -const getIssuingAuthorizationsAuthorizationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingAuthorizationsAuthorization = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingAuthorizationsAuthorizationResponder = - typeof getIssuingAuthorizationsAuthorizationResponder & KoaRuntimeResponder - -const getIssuingAuthorizationsAuthorizationResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) + (typeof getIssuingAuthorizationsAuthorization)["responder"] & + KoaRuntimeResponder export type GetIssuingAuthorizationsAuthorization = ( params: Params< @@ -10025,17 +8777,15 @@ export type GetIssuingAuthorizationsAuthorization = ( | Response > -const postIssuingAuthorizationsAuthorizationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingAuthorizationsAuthorization = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingAuthorizationsAuthorizationResponder = - typeof postIssuingAuthorizationsAuthorizationResponder & KoaRuntimeResponder - -const postIssuingAuthorizationsAuthorizationResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) + (typeof postIssuingAuthorizationsAuthorization)["responder"] & + KoaRuntimeResponder export type PostIssuingAuthorizationsAuthorization = ( params: Params< @@ -10052,19 +8802,16 @@ export type PostIssuingAuthorizationsAuthorization = ( | Response > -const postIssuingAuthorizationsAuthorizationApproveResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingAuthorizationsAuthorizationApprove = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingAuthorizationsAuthorizationApproveResponder = - typeof postIssuingAuthorizationsAuthorizationApproveResponder & + (typeof postIssuingAuthorizationsAuthorizationApprove)["responder"] & KoaRuntimeResponder -const postIssuingAuthorizationsAuthorizationApproveResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - export type PostIssuingAuthorizationsAuthorizationApprove = ( params: Params< t_PostIssuingAuthorizationsAuthorizationApproveParamSchema, @@ -10080,19 +8827,16 @@ export type PostIssuingAuthorizationsAuthorizationApprove = ( | Response > -const postIssuingAuthorizationsAuthorizationDeclineResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingAuthorizationsAuthorizationDecline = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingAuthorizationsAuthorizationDeclineResponder = - typeof postIssuingAuthorizationsAuthorizationDeclineResponder & + (typeof postIssuingAuthorizationsAuthorizationDecline)["responder"] & KoaRuntimeResponder -const postIssuingAuthorizationsAuthorizationDeclineResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - export type PostIssuingAuthorizationsAuthorizationDecline = ( params: Params< t_PostIssuingAuthorizationsAuthorizationDeclineParamSchema, @@ -10108,34 +8852,26 @@ export type PostIssuingAuthorizationsAuthorizationDecline = ( | Response > -const getIssuingCardholdersResponder = { +const getIssuingCardholders = b((r) => ({ with200: r.with200<{ data: t_issuing_cardholder[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_issuing_cardholder)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/issuing/cardholders")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetIssuingCardholdersResponder = typeof getIssuingCardholdersResponder & - KoaRuntimeResponder - -const getIssuingCardholdersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_cardholder)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/issuing/cardholders")), - }), - ], - ], - s_error, -) +type GetIssuingCardholdersResponder = + (typeof getIssuingCardholders)["responder"] & KoaRuntimeResponder export type GetIssuingCardholders = ( params: Params< @@ -10160,19 +8896,14 @@ export type GetIssuingCardholders = ( | Response > -const postIssuingCardholdersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingCardholders = b((r) => ({ + with200: r.with200(s_issuing_cardholder), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostIssuingCardholdersResponder = typeof postIssuingCardholdersResponder & - KoaRuntimeResponder - -const postIssuingCardholdersResponseValidator = responseValidationFactory( - [["200", s_issuing_cardholder]], - s_error, -) +type PostIssuingCardholdersResponder = + (typeof postIssuingCardholders)["responder"] & KoaRuntimeResponder export type PostIssuingCardholders = ( params: Params, @@ -10184,17 +8915,14 @@ export type PostIssuingCardholders = ( | Response > -const getIssuingCardholdersCardholderResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingCardholdersCardholder = b((r) => ({ + with200: r.with200(s_issuing_cardholder), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingCardholdersCardholderResponder = - typeof getIssuingCardholdersCardholderResponder & KoaRuntimeResponder - -const getIssuingCardholdersCardholderResponseValidator = - responseValidationFactory([["200", s_issuing_cardholder]], s_error) + (typeof getIssuingCardholdersCardholder)["responder"] & KoaRuntimeResponder export type GetIssuingCardholdersCardholder = ( params: Params< @@ -10211,17 +8939,14 @@ export type GetIssuingCardholdersCardholder = ( | Response > -const postIssuingCardholdersCardholderResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingCardholdersCardholder = b((r) => ({ + with200: r.with200(s_issuing_cardholder), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingCardholdersCardholderResponder = - typeof postIssuingCardholdersCardholderResponder & KoaRuntimeResponder - -const postIssuingCardholdersCardholderResponseValidator = - responseValidationFactory([["200", s_issuing_cardholder]], s_error) + (typeof postIssuingCardholdersCardholder)["responder"] & KoaRuntimeResponder export type PostIssuingCardholdersCardholder = ( params: Params< @@ -10238,35 +8963,27 @@ export type PostIssuingCardholdersCardholder = ( | Response > -const getIssuingCardsResponder = { +const getIssuingCards = b((r) => ({ with200: r.with200<{ data: t_issuing_card[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_issuing_card)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/issuing/cards")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetIssuingCardsResponder = typeof getIssuingCardsResponder & +type GetIssuingCardsResponder = (typeof getIssuingCards)["responder"] & KoaRuntimeResponder -const getIssuingCardsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_card)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/issuing/cards")), - }), - ], - ], - s_error, -) - export type GetIssuingCards = ( params: Params< void, @@ -10290,20 +9007,15 @@ export type GetIssuingCards = ( | Response > -const postIssuingCardsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingCards = b((r) => ({ + with200: r.with200(s_issuing_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostIssuingCardsResponder = typeof postIssuingCardsResponder & +type PostIssuingCardsResponder = (typeof postIssuingCards)["responder"] & KoaRuntimeResponder -const postIssuingCardsResponseValidator = responseValidationFactory( - [["200", s_issuing_card]], - s_error, -) - export type PostIssuingCards = ( params: Params, respond: PostIssuingCardsResponder, @@ -10314,20 +9026,15 @@ export type PostIssuingCards = ( | Response > -const getIssuingCardsCardResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingCardsCard = b((r) => ({ + with200: r.with200(s_issuing_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetIssuingCardsCardResponder = typeof getIssuingCardsCardResponder & +type GetIssuingCardsCardResponder = (typeof getIssuingCardsCard)["responder"] & KoaRuntimeResponder -const getIssuingCardsCardResponseValidator = responseValidationFactory( - [["200", s_issuing_card]], - s_error, -) - export type GetIssuingCardsCard = ( params: Params< t_GetIssuingCardsCardParamSchema, @@ -10343,19 +9050,14 @@ export type GetIssuingCardsCard = ( | Response > -const postIssuingCardsCardResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingCardsCard = b((r) => ({ + with200: r.with200(s_issuing_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostIssuingCardsCardResponder = typeof postIssuingCardsCardResponder & - KoaRuntimeResponder - -const postIssuingCardsCardResponseValidator = responseValidationFactory( - [["200", s_issuing_card]], - s_error, -) +type PostIssuingCardsCardResponder = + (typeof postIssuingCardsCard)["responder"] & KoaRuntimeResponder export type PostIssuingCardsCard = ( params: Params< @@ -10372,35 +9074,27 @@ export type PostIssuingCardsCard = ( | Response > -const getIssuingDisputesResponder = { +const getIssuingDisputes = b((r) => ({ with200: r.with200<{ data: t_issuing_dispute[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_issuing_dispute)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/issuing/disputes")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetIssuingDisputesResponder = typeof getIssuingDisputesResponder & +type GetIssuingDisputesResponder = (typeof getIssuingDisputes)["responder"] & KoaRuntimeResponder -const getIssuingDisputesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_dispute)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/issuing/disputes")), - }), - ], - ], - s_error, -) - export type GetIssuingDisputes = ( params: Params< void, @@ -10424,20 +9118,15 @@ export type GetIssuingDisputes = ( | Response > -const postIssuingDisputesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingDisputes = b((r) => ({ + with200: r.with200(s_issuing_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostIssuingDisputesResponder = typeof postIssuingDisputesResponder & +type PostIssuingDisputesResponder = (typeof postIssuingDisputes)["responder"] & KoaRuntimeResponder -const postIssuingDisputesResponseValidator = responseValidationFactory( - [["200", s_issuing_dispute]], - s_error, -) - export type PostIssuingDisputes = ( params: Params, respond: PostIssuingDisputesResponder, @@ -10448,19 +9137,14 @@ export type PostIssuingDisputes = ( | Response > -const getIssuingDisputesDisputeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingDisputesDispute = b((r) => ({ + with200: r.with200(s_issuing_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingDisputesDisputeResponder = - typeof getIssuingDisputesDisputeResponder & KoaRuntimeResponder - -const getIssuingDisputesDisputeResponseValidator = responseValidationFactory( - [["200", s_issuing_dispute]], - s_error, -) + (typeof getIssuingDisputesDispute)["responder"] & KoaRuntimeResponder export type GetIssuingDisputesDispute = ( params: Params< @@ -10477,19 +9161,14 @@ export type GetIssuingDisputesDispute = ( | Response > -const postIssuingDisputesDisputeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingDisputesDispute = b((r) => ({ + with200: r.with200(s_issuing_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingDisputesDisputeResponder = - typeof postIssuingDisputesDisputeResponder & KoaRuntimeResponder - -const postIssuingDisputesDisputeResponseValidator = responseValidationFactory( - [["200", s_issuing_dispute]], - s_error, -) + (typeof postIssuingDisputesDispute)["responder"] & KoaRuntimeResponder export type PostIssuingDisputesDispute = ( params: Params< @@ -10506,17 +9185,14 @@ export type PostIssuingDisputesDispute = ( | Response > -const postIssuingDisputesDisputeSubmitResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingDisputesDisputeSubmit = b((r) => ({ + with200: r.with200(s_issuing_dispute), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingDisputesDisputeSubmitResponder = - typeof postIssuingDisputesDisputeSubmitResponder & KoaRuntimeResponder - -const postIssuingDisputesDisputeSubmitResponseValidator = - responseValidationFactory([["200", s_issuing_dispute]], s_error) + (typeof postIssuingDisputesDisputeSubmit)["responder"] & KoaRuntimeResponder export type PostIssuingDisputesDisputeSubmit = ( params: Params< @@ -10533,38 +9209,29 @@ export type PostIssuingDisputesDisputeSubmit = ( | Response > -const getIssuingPersonalizationDesignsResponder = { +const getIssuingPersonalizationDesigns = b((r) => ({ with200: r.with200<{ data: t_issuing_personalization_design[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_issuing_personalization_design)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/issuing/personalization_designs")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingPersonalizationDesignsResponder = - typeof getIssuingPersonalizationDesignsResponder & KoaRuntimeResponder - -const getIssuingPersonalizationDesignsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_personalization_design)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/personalization_designs")), - }), - ], - ], - s_error, - ) + (typeof getIssuingPersonalizationDesigns)["responder"] & KoaRuntimeResponder export type GetIssuingPersonalizationDesigns = ( params: Params< @@ -10589,20 +9256,16 @@ export type GetIssuingPersonalizationDesigns = ( | Response > -const postIssuingPersonalizationDesignsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingPersonalizationDesigns = b((r) => ({ + with200: r.with200( + s_issuing_personalization_design, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingPersonalizationDesignsResponder = - typeof postIssuingPersonalizationDesignsResponder & KoaRuntimeResponder - -const postIssuingPersonalizationDesignsResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) + (typeof postIssuingPersonalizationDesigns)["responder"] & KoaRuntimeResponder export type PostIssuingPersonalizationDesigns = ( params: Params< @@ -10619,22 +9282,18 @@ export type PostIssuingPersonalizationDesigns = ( | Response > -const getIssuingPersonalizationDesignsPersonalizationDesignResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingPersonalizationDesignsPersonalizationDesign = b((r) => ({ + with200: r.with200( + s_issuing_personalization_design, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingPersonalizationDesignsPersonalizationDesignResponder = - typeof getIssuingPersonalizationDesignsPersonalizationDesignResponder & + (typeof getIssuingPersonalizationDesignsPersonalizationDesign)["responder"] & KoaRuntimeResponder -const getIssuingPersonalizationDesignsPersonalizationDesignResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - export type GetIssuingPersonalizationDesignsPersonalizationDesign = ( params: Params< t_GetIssuingPersonalizationDesignsPersonalizationDesignParamSchema, @@ -10651,22 +9310,18 @@ export type GetIssuingPersonalizationDesignsPersonalizationDesign = ( | Response > -const postIssuingPersonalizationDesignsPersonalizationDesignResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingPersonalizationDesignsPersonalizationDesign = b((r) => ({ + with200: r.with200( + s_issuing_personalization_design, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingPersonalizationDesignsPersonalizationDesignResponder = - typeof postIssuingPersonalizationDesignsPersonalizationDesignResponder & + (typeof postIssuingPersonalizationDesignsPersonalizationDesign)["responder"] & KoaRuntimeResponder -const postIssuingPersonalizationDesignsPersonalizationDesignResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - export type PostIssuingPersonalizationDesignsPersonalizationDesign = ( params: Params< t_PostIssuingPersonalizationDesignsPersonalizationDesignParamSchema, @@ -10683,37 +9338,29 @@ export type PostIssuingPersonalizationDesignsPersonalizationDesign = ( | Response > -const getIssuingPhysicalBundlesResponder = { +const getIssuingPhysicalBundles = b((r) => ({ with200: r.with200<{ data: t_issuing_physical_bundle[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_issuing_physical_bundle), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/issuing/physical_bundles")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingPhysicalBundlesResponder = - typeof getIssuingPhysicalBundlesResponder & KoaRuntimeResponder - -const getIssuingPhysicalBundlesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_issuing_physical_bundle), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/physical_bundles")), - }), - ], - ], - s_error, -) + (typeof getIssuingPhysicalBundles)["responder"] & KoaRuntimeResponder export type GetIssuingPhysicalBundles = ( params: Params< @@ -10738,17 +9385,15 @@ export type GetIssuingPhysicalBundles = ( | Response > -const getIssuingPhysicalBundlesPhysicalBundleResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingPhysicalBundlesPhysicalBundle = b((r) => ({ + with200: r.with200(s_issuing_physical_bundle), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingPhysicalBundlesPhysicalBundleResponder = - typeof getIssuingPhysicalBundlesPhysicalBundleResponder & KoaRuntimeResponder - -const getIssuingPhysicalBundlesPhysicalBundleResponseValidator = - responseValidationFactory([["200", s_issuing_physical_bundle]], s_error) + (typeof getIssuingPhysicalBundlesPhysicalBundle)["responder"] & + KoaRuntimeResponder export type GetIssuingPhysicalBundlesPhysicalBundle = ( params: Params< @@ -10765,17 +9410,14 @@ export type GetIssuingPhysicalBundlesPhysicalBundle = ( | Response > -const getIssuingSettlementsSettlementResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingSettlementsSettlement = b((r) => ({ + with200: r.with200(s_issuing_settlement), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingSettlementsSettlementResponder = - typeof getIssuingSettlementsSettlementResponder & KoaRuntimeResponder - -const getIssuingSettlementsSettlementResponseValidator = - responseValidationFactory([["200", s_issuing_settlement]], s_error) + (typeof getIssuingSettlementsSettlement)["responder"] & KoaRuntimeResponder export type GetIssuingSettlementsSettlement = ( params: Params< @@ -10792,17 +9434,14 @@ export type GetIssuingSettlementsSettlement = ( | Response > -const postIssuingSettlementsSettlementResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingSettlementsSettlement = b((r) => ({ + with200: r.with200(s_issuing_settlement), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingSettlementsSettlementResponder = - typeof postIssuingSettlementsSettlementResponder & KoaRuntimeResponder - -const postIssuingSettlementsSettlementResponseValidator = - responseValidationFactory([["200", s_issuing_settlement]], s_error) + (typeof postIssuingSettlementsSettlement)["responder"] & KoaRuntimeResponder export type PostIssuingSettlementsSettlement = ( params: Params< @@ -10819,35 +9458,27 @@ export type PostIssuingSettlementsSettlement = ( | Response > -const getIssuingTokensResponder = { +const getIssuingTokens = b((r) => ({ with200: r.with200<{ data: t_issuing_token[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_issuing_token)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetIssuingTokensResponder = typeof getIssuingTokensResponder & +type GetIssuingTokensResponder = (typeof getIssuingTokens)["responder"] & KoaRuntimeResponder -const getIssuingTokensResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_token)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetIssuingTokens = ( params: Params< void, @@ -10871,19 +9502,14 @@ export type GetIssuingTokens = ( | Response > -const getIssuingTokensTokenResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingTokensToken = b((r) => ({ + with200: r.with200(s_issuing_token), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetIssuingTokensTokenResponder = typeof getIssuingTokensTokenResponder & - KoaRuntimeResponder - -const getIssuingTokensTokenResponseValidator = responseValidationFactory( - [["200", s_issuing_token]], - s_error, -) +type GetIssuingTokensTokenResponder = + (typeof getIssuingTokensToken)["responder"] & KoaRuntimeResponder export type GetIssuingTokensToken = ( params: Params< @@ -10900,19 +9526,14 @@ export type GetIssuingTokensToken = ( | Response > -const postIssuingTokensTokenResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingTokensToken = b((r) => ({ + with200: r.with200(s_issuing_token), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostIssuingTokensTokenResponder = typeof postIssuingTokensTokenResponder & - KoaRuntimeResponder - -const postIssuingTokensTokenResponseValidator = responseValidationFactory( - [["200", s_issuing_token]], - s_error, -) +type PostIssuingTokensTokenResponder = + (typeof postIssuingTokensToken)["responder"] & KoaRuntimeResponder export type PostIssuingTokensToken = ( params: Params< @@ -10929,37 +9550,26 @@ export type PostIssuingTokensToken = ( | Response > -const getIssuingTransactionsResponder = { +const getIssuingTransactions = b((r) => ({ with200: r.with200<{ data: t_issuing_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_issuing_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/issuing/transactions")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetIssuingTransactionsResponder = typeof getIssuingTransactionsResponder & - KoaRuntimeResponder +})) -const getIssuingTransactionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_issuing_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/issuing/transactions")), - }), - ], - ], - s_error, -) +type GetIssuingTransactionsResponder = + (typeof getIssuingTransactions)["responder"] & KoaRuntimeResponder export type GetIssuingTransactions = ( params: Params< @@ -10984,17 +9594,14 @@ export type GetIssuingTransactions = ( | Response > -const getIssuingTransactionsTransactionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getIssuingTransactionsTransaction = b((r) => ({ + with200: r.with200(s_issuing_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetIssuingTransactionsTransactionResponder = - typeof getIssuingTransactionsTransactionResponder & KoaRuntimeResponder - -const getIssuingTransactionsTransactionResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) + (typeof getIssuingTransactionsTransaction)["responder"] & KoaRuntimeResponder export type GetIssuingTransactionsTransaction = ( params: Params< @@ -11011,17 +9618,14 @@ export type GetIssuingTransactionsTransaction = ( | Response > -const postIssuingTransactionsTransactionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postIssuingTransactionsTransaction = b((r) => ({ + with200: r.with200(s_issuing_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostIssuingTransactionsTransactionResponder = - typeof postIssuingTransactionsTransactionResponder & KoaRuntimeResponder - -const postIssuingTransactionsTransactionResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) + (typeof postIssuingTransactionsTransaction)["responder"] & KoaRuntimeResponder export type PostIssuingTransactionsTransaction = ( params: Params< @@ -11038,19 +9642,16 @@ export type PostIssuingTransactionsTransaction = ( | Response > -const postLinkAccountSessionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postLinkAccountSessions = b((r) => ({ + with200: r.with200( + s_financial_connections_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostLinkAccountSessionsResponder = - typeof postLinkAccountSessionsResponder & KoaRuntimeResponder - -const postLinkAccountSessionsResponseValidator = responseValidationFactory( - [["200", s_financial_connections_session]], - s_error, -) + (typeof postLinkAccountSessions)["responder"] & KoaRuntimeResponder export type PostLinkAccountSessions = ( params: Params, @@ -11062,17 +9663,16 @@ export type PostLinkAccountSessions = ( | Response > -const getLinkAccountSessionsSessionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getLinkAccountSessionsSession = b((r) => ({ + with200: r.with200( + s_financial_connections_session, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetLinkAccountSessionsSessionResponder = - typeof getLinkAccountSessionsSessionResponder & KoaRuntimeResponder - -const getLinkAccountSessionsSessionResponseValidator = - responseValidationFactory([["200", s_financial_connections_session]], s_error) + (typeof getLinkAccountSessionsSession)["responder"] & KoaRuntimeResponder export type GetLinkAccountSessionsSession = ( params: Params< @@ -11089,38 +9689,30 @@ export type GetLinkAccountSessionsSession = ( | Response > -const getLinkedAccountsResponder = { +const getLinkedAccounts = b((r) => ({ with200: r.with200<{ data: t_financial_connections_account[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_financial_connections_account)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/financial_connections/accounts")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetLinkedAccountsResponder = typeof getLinkedAccountsResponder & +type GetLinkedAccountsResponder = (typeof getLinkedAccounts)["responder"] & KoaRuntimeResponder -const getLinkedAccountsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_financial_connections_account)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/financial_connections/accounts")), - }), - ], - ], - s_error, -) - export type GetLinkedAccounts = ( params: Params< void, @@ -11144,19 +9736,16 @@ export type GetLinkedAccounts = ( | Response > -const getLinkedAccountsAccountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getLinkedAccountsAccount = b((r) => ({ + with200: r.with200( + s_financial_connections_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetLinkedAccountsAccountResponder = - typeof getLinkedAccountsAccountResponder & KoaRuntimeResponder - -const getLinkedAccountsAccountResponseValidator = responseValidationFactory( - [["200", s_financial_connections_account]], - s_error, -) + (typeof getLinkedAccountsAccount)["responder"] & KoaRuntimeResponder export type GetLinkedAccountsAccount = ( params: Params< @@ -11173,17 +9762,17 @@ export type GetLinkedAccountsAccount = ( | Response > -const postLinkedAccountsAccountDisconnectResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postLinkedAccountsAccountDisconnect = b((r) => ({ + with200: r.with200( + s_financial_connections_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostLinkedAccountsAccountDisconnectResponder = - typeof postLinkedAccountsAccountDisconnectResponder & KoaRuntimeResponder - -const postLinkedAccountsAccountDisconnectResponseValidator = - responseValidationFactory([["200", s_financial_connections_account]], s_error) + (typeof postLinkedAccountsAccountDisconnect)["responder"] & + KoaRuntimeResponder export type PostLinkedAccountsAccountDisconnect = ( params: Params< @@ -11200,35 +9789,26 @@ export type PostLinkedAccountsAccountDisconnect = ( | Response > -const getLinkedAccountsAccountOwnersResponder = { +const getLinkedAccountsAccountOwners = b((r) => ({ with200: r.with200<{ data: t_financial_connections_account_owner[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_financial_connections_account_owner), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetLinkedAccountsAccountOwnersResponder = - typeof getLinkedAccountsAccountOwnersResponder & KoaRuntimeResponder - -const getLinkedAccountsAccountOwnersResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_financial_connections_account_owner), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getLinkedAccountsAccountOwners)["responder"] & KoaRuntimeResponder export type GetLinkedAccountsAccountOwners = ( params: Params< @@ -11253,17 +9833,16 @@ export type GetLinkedAccountsAccountOwners = ( | Response > -const postLinkedAccountsAccountRefreshResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postLinkedAccountsAccountRefresh = b((r) => ({ + with200: r.with200( + s_financial_connections_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostLinkedAccountsAccountRefreshResponder = - typeof postLinkedAccountsAccountRefreshResponder & KoaRuntimeResponder - -const postLinkedAccountsAccountRefreshResponseValidator = - responseValidationFactory([["200", s_financial_connections_account]], s_error) + (typeof postLinkedAccountsAccountRefresh)["responder"] & KoaRuntimeResponder export type PostLinkedAccountsAccountRefresh = ( params: Params< @@ -11280,20 +9859,15 @@ export type PostLinkedAccountsAccountRefresh = ( | Response > -const getMandatesMandateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getMandatesMandate = b((r) => ({ + with200: r.with200(s_mandate), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetMandatesMandateResponder = typeof getMandatesMandateResponder & +type GetMandatesMandateResponder = (typeof getMandatesMandate)["responder"] & KoaRuntimeResponder -const getMandatesMandateResponseValidator = responseValidationFactory( - [["200", s_mandate]], - s_error, -) - export type GetMandatesMandate = ( params: Params< t_GetMandatesMandateParamSchema, @@ -11309,35 +9883,27 @@ export type GetMandatesMandate = ( | Response > -const getPaymentIntentsResponder = { +const getPaymentIntents = b((r) => ({ with200: r.with200<{ data: t_payment_intent[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_payment_intent)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/payment_intents")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetPaymentIntentsResponder = typeof getPaymentIntentsResponder & +type GetPaymentIntentsResponder = (typeof getPaymentIntents)["responder"] & KoaRuntimeResponder -const getPaymentIntentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_intent)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/payment_intents")), - }), - ], - ], - s_error, -) - export type GetPaymentIntents = ( params: Params< void, @@ -11361,20 +9927,15 @@ export type GetPaymentIntents = ( | Response > -const postPaymentIntentsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentIntents = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPaymentIntentsResponder = typeof postPaymentIntentsResponder & +type PostPaymentIntentsResponder = (typeof postPaymentIntents)["responder"] & KoaRuntimeResponder -const postPaymentIntentsResponseValidator = responseValidationFactory( - [["200", s_payment_intent]], - s_error, -) - export type PostPaymentIntents = ( params: Params, respond: PostPaymentIntentsResponder, @@ -11385,7 +9946,7 @@ export type PostPaymentIntents = ( | Response > -const getPaymentIntentsSearchResponder = { +const getPaymentIntentsSearch = b((r) => ({ with200: r.with200<{ data: t_payment_intent[] has_more: boolean @@ -11393,30 +9954,22 @@ const getPaymentIntentsSearchResponder = { object: "search_result" total_count?: number url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_payment_intent)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentIntentsSearchResponder = - typeof getPaymentIntentsSearchResponder & KoaRuntimeResponder - -const getPaymentIntentsSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_intent)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getPaymentIntentsSearch)["responder"] & KoaRuntimeResponder export type GetPaymentIntentsSearch = ( params: Params< @@ -11443,19 +9996,14 @@ export type GetPaymentIntentsSearch = ( | Response > -const getPaymentIntentsIntentResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPaymentIntentsIntent = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentIntentsIntentResponder = - typeof getPaymentIntentsIntentResponder & KoaRuntimeResponder - -const getPaymentIntentsIntentResponseValidator = responseValidationFactory( - [["200", s_payment_intent]], - s_error, -) + (typeof getPaymentIntentsIntent)["responder"] & KoaRuntimeResponder export type GetPaymentIntentsIntent = ( params: Params< @@ -11472,19 +10020,14 @@ export type GetPaymentIntentsIntent = ( | Response > -const postPaymentIntentsIntentResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentIntentsIntent = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentIntentsIntentResponder = - typeof postPaymentIntentsIntentResponder & KoaRuntimeResponder - -const postPaymentIntentsIntentResponseValidator = responseValidationFactory( - [["200", s_payment_intent]], - s_error, -) + (typeof postPaymentIntentsIntent)["responder"] & KoaRuntimeResponder export type PostPaymentIntentsIntent = ( params: Params< @@ -11501,19 +10044,16 @@ export type PostPaymentIntentsIntent = ( | Response > -const postPaymentIntentsIntentApplyCustomerBalanceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentIntentsIntentApplyCustomerBalance = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentIntentsIntentApplyCustomerBalanceResponder = - typeof postPaymentIntentsIntentApplyCustomerBalanceResponder & + (typeof postPaymentIntentsIntentApplyCustomerBalance)["responder"] & KoaRuntimeResponder -const postPaymentIntentsIntentApplyCustomerBalanceResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - export type PostPaymentIntentsIntentApplyCustomerBalance = ( params: Params< t_PostPaymentIntentsIntentApplyCustomerBalanceParamSchema, @@ -11529,17 +10069,14 @@ export type PostPaymentIntentsIntentApplyCustomerBalance = ( | Response > -const postPaymentIntentsIntentCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentIntentsIntentCancel = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentIntentsIntentCancelResponder = - typeof postPaymentIntentsIntentCancelResponder & KoaRuntimeResponder - -const postPaymentIntentsIntentCancelResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) + (typeof postPaymentIntentsIntentCancel)["responder"] & KoaRuntimeResponder export type PostPaymentIntentsIntentCancel = ( params: Params< @@ -11556,17 +10093,14 @@ export type PostPaymentIntentsIntentCancel = ( | Response > -const postPaymentIntentsIntentCaptureResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentIntentsIntentCapture = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentIntentsIntentCaptureResponder = - typeof postPaymentIntentsIntentCaptureResponder & KoaRuntimeResponder - -const postPaymentIntentsIntentCaptureResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) + (typeof postPaymentIntentsIntentCapture)["responder"] & KoaRuntimeResponder export type PostPaymentIntentsIntentCapture = ( params: Params< @@ -11583,17 +10117,14 @@ export type PostPaymentIntentsIntentCapture = ( | Response > -const postPaymentIntentsIntentConfirmResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentIntentsIntentConfirm = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentIntentsIntentConfirmResponder = - typeof postPaymentIntentsIntentConfirmResponder & KoaRuntimeResponder - -const postPaymentIntentsIntentConfirmResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) + (typeof postPaymentIntentsIntentConfirm)["responder"] & KoaRuntimeResponder export type PostPaymentIntentsIntentConfirm = ( params: Params< @@ -11610,19 +10141,16 @@ export type PostPaymentIntentsIntentConfirm = ( | Response > -const postPaymentIntentsIntentIncrementAuthorizationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentIntentsIntentIncrementAuthorization = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentIntentsIntentIncrementAuthorizationResponder = - typeof postPaymentIntentsIntentIncrementAuthorizationResponder & + (typeof postPaymentIntentsIntentIncrementAuthorization)["responder"] & KoaRuntimeResponder -const postPaymentIntentsIntentIncrementAuthorizationResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - export type PostPaymentIntentsIntentIncrementAuthorization = ( params: Params< t_PostPaymentIntentsIntentIncrementAuthorizationParamSchema, @@ -11638,19 +10166,16 @@ export type PostPaymentIntentsIntentIncrementAuthorization = ( | Response > -const postPaymentIntentsIntentVerifyMicrodepositsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentIntentsIntentVerifyMicrodeposits = b((r) => ({ + with200: r.with200(s_payment_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentIntentsIntentVerifyMicrodepositsResponder = - typeof postPaymentIntentsIntentVerifyMicrodepositsResponder & + (typeof postPaymentIntentsIntentVerifyMicrodeposits)["responder"] & KoaRuntimeResponder -const postPaymentIntentsIntentVerifyMicrodepositsResponseValidator = - responseValidationFactory([["200", s_payment_intent]], s_error) - export type PostPaymentIntentsIntentVerifyMicrodeposits = ( params: Params< t_PostPaymentIntentsIntentVerifyMicrodepositsParamSchema, @@ -11666,35 +10191,27 @@ export type PostPaymentIntentsIntentVerifyMicrodeposits = ( | Response > -const getPaymentLinksResponder = { +const getPaymentLinks = b((r) => ({ with200: r.with200<{ data: t_payment_link[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_payment_link)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/payment_links")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetPaymentLinksResponder = typeof getPaymentLinksResponder & +type GetPaymentLinksResponder = (typeof getPaymentLinks)["responder"] & KoaRuntimeResponder -const getPaymentLinksResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_link)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/payment_links")), - }), - ], - ], - s_error, -) - export type GetPaymentLinks = ( params: Params< void, @@ -11718,20 +10235,15 @@ export type GetPaymentLinks = ( | Response > -const postPaymentLinksResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentLinks = b((r) => ({ + with200: r.with200(s_payment_link), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPaymentLinksResponder = typeof postPaymentLinksResponder & +type PostPaymentLinksResponder = (typeof postPaymentLinks)["responder"] & KoaRuntimeResponder -const postPaymentLinksResponseValidator = responseValidationFactory( - [["200", s_payment_link]], - s_error, -) - export type PostPaymentLinks = ( params: Params, respond: PostPaymentLinksResponder, @@ -11742,19 +10254,14 @@ export type PostPaymentLinks = ( | Response > -const getPaymentLinksPaymentLinkResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPaymentLinksPaymentLink = b((r) => ({ + with200: r.with200(s_payment_link), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentLinksPaymentLinkResponder = - typeof getPaymentLinksPaymentLinkResponder & KoaRuntimeResponder - -const getPaymentLinksPaymentLinkResponseValidator = responseValidationFactory( - [["200", s_payment_link]], - s_error, -) + (typeof getPaymentLinksPaymentLink)["responder"] & KoaRuntimeResponder export type GetPaymentLinksPaymentLink = ( params: Params< @@ -11771,19 +10278,14 @@ export type GetPaymentLinksPaymentLink = ( | Response > -const postPaymentLinksPaymentLinkResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentLinksPaymentLink = b((r) => ({ + with200: r.with200(s_payment_link), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentLinksPaymentLinkResponder = - typeof postPaymentLinksPaymentLinkResponder & KoaRuntimeResponder - -const postPaymentLinksPaymentLinkResponseValidator = responseValidationFactory( - [["200", s_payment_link]], - s_error, -) + (typeof postPaymentLinksPaymentLink)["responder"] & KoaRuntimeResponder export type PostPaymentLinksPaymentLink = ( params: Params< @@ -11800,35 +10302,27 @@ export type PostPaymentLinksPaymentLink = ( | Response > -const getPaymentLinksPaymentLinkLineItemsResponder = { +const getPaymentLinksPaymentLinkLineItems = b((r) => ({ with200: r.with200<{ data: t_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentLinksPaymentLinkLineItemsResponder = - typeof getPaymentLinksPaymentLinkLineItemsResponder & KoaRuntimeResponder - -const getPaymentLinksPaymentLinkLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getPaymentLinksPaymentLinkLineItems)["responder"] & + KoaRuntimeResponder export type GetPaymentLinksPaymentLinkLineItems = ( params: Params< @@ -11853,38 +10347,29 @@ export type GetPaymentLinksPaymentLinkLineItems = ( | Response > -const getPaymentMethodConfigurationsResponder = { +const getPaymentMethodConfigurations = b((r) => ({ with200: r.with200<{ data: t_payment_method_configuration[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_payment_method_configuration), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/payment_method_configurations")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentMethodConfigurationsResponder = - typeof getPaymentMethodConfigurationsResponder & KoaRuntimeResponder - -const getPaymentMethodConfigurationsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_payment_method_configuration), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/payment_method_configurations")), - }), - ], - ], - s_error, - ) + (typeof getPaymentMethodConfigurations)["responder"] & KoaRuntimeResponder export type GetPaymentMethodConfigurations = ( params: Params< @@ -11909,17 +10394,16 @@ export type GetPaymentMethodConfigurations = ( | Response > -const postPaymentMethodConfigurationsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethodConfigurations = b((r) => ({ + with200: r.with200( + s_payment_method_configuration, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentMethodConfigurationsResponder = - typeof postPaymentMethodConfigurationsResponder & KoaRuntimeResponder - -const postPaymentMethodConfigurationsResponseValidator = - responseValidationFactory([["200", s_payment_method_configuration]], s_error) + (typeof postPaymentMethodConfigurations)["responder"] & KoaRuntimeResponder export type PostPaymentMethodConfigurations = ( params: Params< @@ -11936,19 +10420,18 @@ export type PostPaymentMethodConfigurations = ( | Response > -const getPaymentMethodConfigurationsConfigurationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPaymentMethodConfigurationsConfiguration = b((r) => ({ + with200: r.with200( + s_payment_method_configuration, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentMethodConfigurationsConfigurationResponder = - typeof getPaymentMethodConfigurationsConfigurationResponder & + (typeof getPaymentMethodConfigurationsConfiguration)["responder"] & KoaRuntimeResponder -const getPaymentMethodConfigurationsConfigurationResponseValidator = - responseValidationFactory([["200", s_payment_method_configuration]], s_error) - export type GetPaymentMethodConfigurationsConfiguration = ( params: Params< t_GetPaymentMethodConfigurationsConfigurationParamSchema, @@ -11964,19 +10447,18 @@ export type GetPaymentMethodConfigurationsConfiguration = ( | Response > -const postPaymentMethodConfigurationsConfigurationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethodConfigurationsConfiguration = b((r) => ({ + with200: r.with200( + s_payment_method_configuration, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentMethodConfigurationsConfigurationResponder = - typeof postPaymentMethodConfigurationsConfigurationResponder & + (typeof postPaymentMethodConfigurationsConfiguration)["responder"] & KoaRuntimeResponder -const postPaymentMethodConfigurationsConfigurationResponseValidator = - responseValidationFactory([["200", s_payment_method_configuration]], s_error) - export type PostPaymentMethodConfigurationsConfiguration = ( params: Params< t_PostPaymentMethodConfigurationsConfigurationParamSchema, @@ -11992,37 +10474,29 @@ export type PostPaymentMethodConfigurationsConfiguration = ( | Response > -const getPaymentMethodDomainsResponder = { +const getPaymentMethodDomains = b((r) => ({ with200: r.with200<{ data: t_payment_method_domain[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_payment_method_domain), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/payment_method_domains")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentMethodDomainsResponder = - typeof getPaymentMethodDomainsResponder & KoaRuntimeResponder - -const getPaymentMethodDomainsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_payment_method_domain), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/payment_method_domains")), - }), - ], - ], - s_error, -) + (typeof getPaymentMethodDomains)["responder"] & KoaRuntimeResponder export type GetPaymentMethodDomains = ( params: Params< @@ -12047,19 +10521,14 @@ export type GetPaymentMethodDomains = ( | Response > -const postPaymentMethodDomainsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethodDomains = b((r) => ({ + with200: r.with200(s_payment_method_domain), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentMethodDomainsResponder = - typeof postPaymentMethodDomainsResponder & KoaRuntimeResponder - -const postPaymentMethodDomainsResponseValidator = responseValidationFactory( - [["200", s_payment_method_domain]], - s_error, -) + (typeof postPaymentMethodDomains)["responder"] & KoaRuntimeResponder export type PostPaymentMethodDomains = ( params: Params, @@ -12071,19 +10540,16 @@ export type PostPaymentMethodDomains = ( | Response > -const getPaymentMethodDomainsPaymentMethodDomainResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPaymentMethodDomainsPaymentMethodDomain = b((r) => ({ + with200: r.with200(s_payment_method_domain), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentMethodDomainsPaymentMethodDomainResponder = - typeof getPaymentMethodDomainsPaymentMethodDomainResponder & + (typeof getPaymentMethodDomainsPaymentMethodDomain)["responder"] & KoaRuntimeResponder -const getPaymentMethodDomainsPaymentMethodDomainResponseValidator = - responseValidationFactory([["200", s_payment_method_domain]], s_error) - export type GetPaymentMethodDomainsPaymentMethodDomain = ( params: Params< t_GetPaymentMethodDomainsPaymentMethodDomainParamSchema, @@ -12099,19 +10565,16 @@ export type GetPaymentMethodDomainsPaymentMethodDomain = ( | Response > -const postPaymentMethodDomainsPaymentMethodDomainResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethodDomainsPaymentMethodDomain = b((r) => ({ + with200: r.with200(s_payment_method_domain), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentMethodDomainsPaymentMethodDomainResponder = - typeof postPaymentMethodDomainsPaymentMethodDomainResponder & + (typeof postPaymentMethodDomainsPaymentMethodDomain)["responder"] & KoaRuntimeResponder -const postPaymentMethodDomainsPaymentMethodDomainResponseValidator = - responseValidationFactory([["200", s_payment_method_domain]], s_error) - export type PostPaymentMethodDomainsPaymentMethodDomain = ( params: Params< t_PostPaymentMethodDomainsPaymentMethodDomainParamSchema, @@ -12127,19 +10590,16 @@ export type PostPaymentMethodDomainsPaymentMethodDomain = ( | Response > -const postPaymentMethodDomainsPaymentMethodDomainValidateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethodDomainsPaymentMethodDomainValidate = b((r) => ({ + with200: r.with200(s_payment_method_domain), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentMethodDomainsPaymentMethodDomainValidateResponder = - typeof postPaymentMethodDomainsPaymentMethodDomainValidateResponder & + (typeof postPaymentMethodDomainsPaymentMethodDomainValidate)["responder"] & KoaRuntimeResponder -const postPaymentMethodDomainsPaymentMethodDomainValidateResponseValidator = - responseValidationFactory([["200", s_payment_method_domain]], s_error) - export type PostPaymentMethodDomainsPaymentMethodDomainValidate = ( params: Params< t_PostPaymentMethodDomainsPaymentMethodDomainValidateParamSchema, @@ -12155,35 +10615,27 @@ export type PostPaymentMethodDomainsPaymentMethodDomainValidate = ( | Response > -const getPaymentMethodsResponder = { +const getPaymentMethods = b((r) => ({ with200: r.with200<{ data: t_payment_method[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_payment_method)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/payment_methods")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetPaymentMethodsResponder = typeof getPaymentMethodsResponder & +type GetPaymentMethodsResponder = (typeof getPaymentMethods)["responder"] & KoaRuntimeResponder -const getPaymentMethodsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payment_method)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/payment_methods")), - }), - ], - ], - s_error, -) - export type GetPaymentMethods = ( params: Params< void, @@ -12207,20 +10659,15 @@ export type GetPaymentMethods = ( | Response > -const postPaymentMethodsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethods = b((r) => ({ + with200: r.with200(s_payment_method), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPaymentMethodsResponder = typeof postPaymentMethodsResponder & +type PostPaymentMethodsResponder = (typeof postPaymentMethods)["responder"] & KoaRuntimeResponder -const postPaymentMethodsResponseValidator = responseValidationFactory( - [["200", s_payment_method]], - s_error, -) - export type PostPaymentMethods = ( params: Params, respond: PostPaymentMethodsResponder, @@ -12231,17 +10678,14 @@ export type PostPaymentMethods = ( | Response > -const getPaymentMethodsPaymentMethodResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPaymentMethodsPaymentMethod = b((r) => ({ + with200: r.with200(s_payment_method), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPaymentMethodsPaymentMethodResponder = - typeof getPaymentMethodsPaymentMethodResponder & KoaRuntimeResponder - -const getPaymentMethodsPaymentMethodResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) + (typeof getPaymentMethodsPaymentMethod)["responder"] & KoaRuntimeResponder export type GetPaymentMethodsPaymentMethod = ( params: Params< @@ -12258,17 +10702,14 @@ export type GetPaymentMethodsPaymentMethod = ( | Response > -const postPaymentMethodsPaymentMethodResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethodsPaymentMethod = b((r) => ({ + with200: r.with200(s_payment_method), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentMethodsPaymentMethodResponder = - typeof postPaymentMethodsPaymentMethodResponder & KoaRuntimeResponder - -const postPaymentMethodsPaymentMethodResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) + (typeof postPaymentMethodsPaymentMethod)["responder"] & KoaRuntimeResponder export type PostPaymentMethodsPaymentMethod = ( params: Params< @@ -12285,17 +10726,15 @@ export type PostPaymentMethodsPaymentMethod = ( | Response > -const postPaymentMethodsPaymentMethodAttachResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethodsPaymentMethodAttach = b((r) => ({ + with200: r.with200(s_payment_method), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentMethodsPaymentMethodAttachResponder = - typeof postPaymentMethodsPaymentMethodAttachResponder & KoaRuntimeResponder - -const postPaymentMethodsPaymentMethodAttachResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) + (typeof postPaymentMethodsPaymentMethodAttach)["responder"] & + KoaRuntimeResponder export type PostPaymentMethodsPaymentMethodAttach = ( params: Params< @@ -12312,17 +10751,15 @@ export type PostPaymentMethodsPaymentMethodAttach = ( | Response > -const postPaymentMethodsPaymentMethodDetachResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPaymentMethodsPaymentMethodDetach = b((r) => ({ + with200: r.with200(s_payment_method), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPaymentMethodsPaymentMethodDetachResponder = - typeof postPaymentMethodsPaymentMethodDetachResponder & KoaRuntimeResponder - -const postPaymentMethodsPaymentMethodDetachResponseValidator = - responseValidationFactory([["200", s_payment_method]], s_error) + (typeof postPaymentMethodsPaymentMethodDetach)["responder"] & + KoaRuntimeResponder export type PostPaymentMethodsPaymentMethodDetach = ( params: Params< @@ -12339,33 +10776,26 @@ export type PostPaymentMethodsPaymentMethodDetach = ( | Response > -const getPayoutsResponder = { +const getPayouts = b((r) => ({ with200: r.with200<{ data: t_payout[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_payout)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/payouts")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetPayoutsResponder = typeof getPayoutsResponder & KoaRuntimeResponder +})) -const getPayoutsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_payout)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/payouts")), - }), - ], - ], - s_error, -) +type GetPayoutsResponder = (typeof getPayouts)["responder"] & + KoaRuntimeResponder export type GetPayouts = ( params: Params< @@ -12390,18 +10820,14 @@ export type GetPayouts = ( | Response > -const postPayoutsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPayouts = b((r) => ({ + with200: r.with200(s_payout), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPayoutsResponder = typeof postPayoutsResponder & KoaRuntimeResponder - -const postPayoutsResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, -) +type PostPayoutsResponder = (typeof postPayouts)["responder"] & + KoaRuntimeResponder export type PostPayouts = ( params: Params, @@ -12413,20 +10839,15 @@ export type PostPayouts = ( | Response > -const getPayoutsPayoutResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPayoutsPayout = b((r) => ({ + with200: r.with200(s_payout), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetPayoutsPayoutResponder = typeof getPayoutsPayoutResponder & +type GetPayoutsPayoutResponder = (typeof getPayoutsPayout)["responder"] & KoaRuntimeResponder -const getPayoutsPayoutResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, -) - export type GetPayoutsPayout = ( params: Params< t_GetPayoutsPayoutParamSchema, @@ -12442,20 +10863,15 @@ export type GetPayoutsPayout = ( | Response > -const postPayoutsPayoutResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPayoutsPayout = b((r) => ({ + with200: r.with200(s_payout), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPayoutsPayoutResponder = typeof postPayoutsPayoutResponder & +type PostPayoutsPayoutResponder = (typeof postPayoutsPayout)["responder"] & KoaRuntimeResponder -const postPayoutsPayoutResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, -) - export type PostPayoutsPayout = ( params: Params< t_PostPayoutsPayoutParamSchema, @@ -12471,19 +10887,14 @@ export type PostPayoutsPayout = ( | Response > -const postPayoutsPayoutCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPayoutsPayoutCancel = b((r) => ({ + with200: r.with200(s_payout), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPayoutsPayoutCancelResponder = - typeof postPayoutsPayoutCancelResponder & KoaRuntimeResponder - -const postPayoutsPayoutCancelResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, -) + (typeof postPayoutsPayoutCancel)["responder"] & KoaRuntimeResponder export type PostPayoutsPayoutCancel = ( params: Params< @@ -12500,19 +10911,14 @@ export type PostPayoutsPayoutCancel = ( | Response > -const postPayoutsPayoutReverseResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPayoutsPayoutReverse = b((r) => ({ + with200: r.with200(s_payout), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPayoutsPayoutReverseResponder = - typeof postPayoutsPayoutReverseResponder & KoaRuntimeResponder - -const postPayoutsPayoutReverseResponseValidator = responseValidationFactory( - [["200", s_payout]], - s_error, -) + (typeof postPayoutsPayoutReverse)["responder"] & KoaRuntimeResponder export type PostPayoutsPayoutReverse = ( params: Params< @@ -12529,33 +10935,25 @@ export type PostPayoutsPayoutReverse = ( | Response > -const getPlansResponder = { +const getPlans = b((r) => ({ with200: r.with200<{ data: t_plan[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_plan)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/plans")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetPlansResponder = typeof getPlansResponder & KoaRuntimeResponder - -const getPlansResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_plan)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/plans")), - }), - ], - ], - s_error, -) +type GetPlansResponder = (typeof getPlans)["responder"] & KoaRuntimeResponder export type GetPlans = ( params: Params< @@ -12580,18 +10978,13 @@ export type GetPlans = ( | Response > -const postPlansResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPlans = b((r) => ({ + with200: r.with200(s_plan), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPlansResponder = typeof postPlansResponder & KoaRuntimeResponder - -const postPlansResponseValidator = responseValidationFactory( - [["200", s_plan]], - s_error, -) +type PostPlansResponder = (typeof postPlans)["responder"] & KoaRuntimeResponder export type PostPlans = ( params: Params, @@ -12603,20 +10996,15 @@ export type PostPlans = ( | Response > -const deletePlansPlanResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deletePlansPlan = b((r) => ({ + with200: r.with200(s_deleted_plan), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type DeletePlansPlanResponder = typeof deletePlansPlanResponder & +type DeletePlansPlanResponder = (typeof deletePlansPlan)["responder"] & KoaRuntimeResponder -const deletePlansPlanResponseValidator = responseValidationFactory( - [["200", s_deleted_plan]], - s_error, -) - export type DeletePlansPlan = ( params: Params< t_DeletePlansPlanParamSchema, @@ -12632,18 +11020,14 @@ export type DeletePlansPlan = ( | Response > -const getPlansPlanResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPlansPlan = b((r) => ({ + with200: r.with200(s_plan), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetPlansPlanResponder = typeof getPlansPlanResponder & KoaRuntimeResponder +})) -const getPlansPlanResponseValidator = responseValidationFactory( - [["200", s_plan]], - s_error, -) +type GetPlansPlanResponder = (typeof getPlansPlan)["responder"] & + KoaRuntimeResponder export type GetPlansPlan = ( params: Params< @@ -12660,20 +11044,15 @@ export type GetPlansPlan = ( | Response > -const postPlansPlanResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPlansPlan = b((r) => ({ + with200: r.with200(s_plan), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPlansPlanResponder = typeof postPlansPlanResponder & +type PostPlansPlanResponder = (typeof postPlansPlan)["responder"] & KoaRuntimeResponder -const postPlansPlanResponseValidator = responseValidationFactory( - [["200", s_plan]], - s_error, -) - export type PostPlansPlan = ( params: Params< t_PostPlansPlanParamSchema, @@ -12689,33 +11068,25 @@ export type PostPlansPlan = ( | Response > -const getPricesResponder = { +const getPrices = b((r) => ({ with200: r.with200<{ data: t_price[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_price)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/prices")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetPricesResponder = typeof getPricesResponder & KoaRuntimeResponder +})) -const getPricesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_price)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/prices")), - }), - ], - ], - s_error, -) +type GetPricesResponder = (typeof getPrices)["responder"] & KoaRuntimeResponder export type GetPrices = ( params: Params< @@ -12740,18 +11111,14 @@ export type GetPrices = ( | Response > -const postPricesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPrices = b((r) => ({ + with200: r.with200(s_price), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostPricesResponder = typeof postPricesResponder & KoaRuntimeResponder +})) -const postPricesResponseValidator = responseValidationFactory( - [["200", s_price]], - s_error, -) +type PostPricesResponder = (typeof postPrices)["responder"] & + KoaRuntimeResponder export type PostPrices = ( params: Params, @@ -12763,7 +11130,7 @@ export type PostPrices = ( | Response > -const getPricesSearchResponder = { +const getPricesSearch = b((r) => ({ with200: r.with200<{ data: t_price[] has_more: boolean @@ -12771,31 +11138,23 @@ const getPricesSearchResponder = { object: "search_result" total_count?: number url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_price)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetPricesSearchResponder = typeof getPricesSearchResponder & +type GetPricesSearchResponder = (typeof getPricesSearch)["responder"] & KoaRuntimeResponder -const getPricesSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_price)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetPricesSearch = ( params: Params< void, @@ -12821,20 +11180,15 @@ export type GetPricesSearch = ( | Response > -const getPricesPriceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPricesPrice = b((r) => ({ + with200: r.with200(s_price), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetPricesPriceResponder = typeof getPricesPriceResponder & +type GetPricesPriceResponder = (typeof getPricesPrice)["responder"] & KoaRuntimeResponder -const getPricesPriceResponseValidator = responseValidationFactory( - [["200", s_price]], - s_error, -) - export type GetPricesPrice = ( params: Params< t_GetPricesPriceParamSchema, @@ -12850,20 +11204,15 @@ export type GetPricesPrice = ( | Response > -const postPricesPriceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPricesPrice = b((r) => ({ + with200: r.with200(s_price), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPricesPriceResponder = typeof postPricesPriceResponder & +type PostPricesPriceResponder = (typeof postPricesPrice)["responder"] & KoaRuntimeResponder -const postPricesPriceResponseValidator = responseValidationFactory( - [["200", s_price]], - s_error, -) - export type PostPricesPrice = ( params: Params< t_PostPricesPriceParamSchema, @@ -12879,33 +11228,26 @@ export type PostPricesPrice = ( | Response > -const getProductsResponder = { +const getProducts = b((r) => ({ with200: r.with200<{ data: t_product[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_product)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/products")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetProductsResponder = typeof getProductsResponder & KoaRuntimeResponder +})) -const getProductsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_product)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/products")), - }), - ], - ], - s_error, -) +type GetProductsResponder = (typeof getProducts)["responder"] & + KoaRuntimeResponder export type GetProducts = ( params: Params< @@ -12930,18 +11272,14 @@ export type GetProducts = ( | Response > -const postProductsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postProducts = b((r) => ({ + with200: r.with200(s_product), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostProductsResponder = typeof postProductsResponder & KoaRuntimeResponder - -const postProductsResponseValidator = responseValidationFactory( - [["200", s_product]], - s_error, -) +type PostProductsResponder = (typeof postProducts)["responder"] & + KoaRuntimeResponder export type PostProducts = ( params: Params, @@ -12953,7 +11291,7 @@ export type PostProducts = ( | Response > -const getProductsSearchResponder = { +const getProductsSearch = b((r) => ({ with200: r.with200<{ data: t_product[] has_more: boolean @@ -12961,31 +11299,23 @@ const getProductsSearchResponder = { object: "search_result" total_count?: number url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_product)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetProductsSearchResponder = typeof getProductsSearchResponder & +type GetProductsSearchResponder = (typeof getProductsSearch)["responder"] & KoaRuntimeResponder -const getProductsSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_product)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetProductsSearch = ( params: Params< void, @@ -13011,20 +11341,15 @@ export type GetProductsSearch = ( | Response > -const deleteProductsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteProductsId = b((r) => ({ + with200: r.with200(s_deleted_product), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type DeleteProductsIdResponder = typeof deleteProductsIdResponder & +type DeleteProductsIdResponder = (typeof deleteProductsId)["responder"] & KoaRuntimeResponder -const deleteProductsIdResponseValidator = responseValidationFactory( - [["200", s_deleted_product]], - s_error, -) - export type DeleteProductsId = ( params: Params< t_DeleteProductsIdParamSchema, @@ -13040,20 +11365,15 @@ export type DeleteProductsId = ( | Response > -const getProductsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getProductsId = b((r) => ({ + with200: r.with200(s_product), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetProductsIdResponder = typeof getProductsIdResponder & +type GetProductsIdResponder = (typeof getProductsId)["responder"] & KoaRuntimeResponder -const getProductsIdResponseValidator = responseValidationFactory( - [["200", s_product]], - s_error, -) - export type GetProductsId = ( params: Params< t_GetProductsIdParamSchema, @@ -13069,20 +11389,15 @@ export type GetProductsId = ( | Response > -const postProductsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postProductsId = b((r) => ({ + with200: r.with200(s_product), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostProductsIdResponder = typeof postProductsIdResponder & +type PostProductsIdResponder = (typeof postProductsId)["responder"] & KoaRuntimeResponder -const postProductsIdResponseValidator = responseValidationFactory( - [["200", s_product]], - s_error, -) - export type PostProductsId = ( params: Params< t_PostProductsIdParamSchema, @@ -13098,34 +11413,26 @@ export type PostProductsId = ( | Response > -const getProductsProductFeaturesResponder = { +const getProductsProductFeatures = b((r) => ({ with200: r.with200<{ data: t_product_feature[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_product_feature), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetProductsProductFeaturesResponder = - typeof getProductsProductFeaturesResponder & KoaRuntimeResponder - -const getProductsProductFeaturesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_product_feature), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getProductsProductFeatures)["responder"] & KoaRuntimeResponder export type GetProductsProductFeatures = ( params: Params< @@ -13150,19 +11457,14 @@ export type GetProductsProductFeatures = ( | Response > -const postProductsProductFeaturesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postProductsProductFeatures = b((r) => ({ + with200: r.with200(s_product_feature), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostProductsProductFeaturesResponder = - typeof postProductsProductFeaturesResponder & KoaRuntimeResponder - -const postProductsProductFeaturesResponseValidator = responseValidationFactory( - [["200", s_product_feature]], - s_error, -) + (typeof postProductsProductFeatures)["responder"] & KoaRuntimeResponder export type PostProductsProductFeatures = ( params: Params< @@ -13179,17 +11481,14 @@ export type PostProductsProductFeatures = ( | Response > -const deleteProductsProductFeaturesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteProductsProductFeaturesId = b((r) => ({ + with200: r.with200(s_deleted_product_feature), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteProductsProductFeaturesIdResponder = - typeof deleteProductsProductFeaturesIdResponder & KoaRuntimeResponder - -const deleteProductsProductFeaturesIdResponseValidator = - responseValidationFactory([["200", s_deleted_product_feature]], s_error) + (typeof deleteProductsProductFeaturesId)["responder"] & KoaRuntimeResponder export type DeleteProductsProductFeaturesId = ( params: Params< @@ -13206,19 +11505,14 @@ export type DeleteProductsProductFeaturesId = ( | Response > -const getProductsProductFeaturesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getProductsProductFeaturesId = b((r) => ({ + with200: r.with200(s_product_feature), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetProductsProductFeaturesIdResponder = - typeof getProductsProductFeaturesIdResponder & KoaRuntimeResponder - -const getProductsProductFeaturesIdResponseValidator = responseValidationFactory( - [["200", s_product_feature]], - s_error, -) + (typeof getProductsProductFeaturesId)["responder"] & KoaRuntimeResponder export type GetProductsProductFeaturesId = ( params: Params< @@ -13235,35 +11529,27 @@ export type GetProductsProductFeaturesId = ( | Response > -const getPromotionCodesResponder = { +const getPromotionCodes = b((r) => ({ with200: r.with200<{ data: t_promotion_code[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_promotion_code)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/promotion_codes")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetPromotionCodesResponder = typeof getPromotionCodesResponder & +type GetPromotionCodesResponder = (typeof getPromotionCodes)["responder"] & KoaRuntimeResponder -const getPromotionCodesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_promotion_code)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/promotion_codes")), - }), - ], - ], - s_error, -) - export type GetPromotionCodes = ( params: Params< void, @@ -13287,20 +11573,15 @@ export type GetPromotionCodes = ( | Response > -const postPromotionCodesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPromotionCodes = b((r) => ({ + with200: r.with200(s_promotion_code), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostPromotionCodesResponder = typeof postPromotionCodesResponder & +type PostPromotionCodesResponder = (typeof postPromotionCodes)["responder"] & KoaRuntimeResponder -const postPromotionCodesResponseValidator = responseValidationFactory( - [["200", s_promotion_code]], - s_error, -) - export type PostPromotionCodes = ( params: Params, respond: PostPromotionCodesResponder, @@ -13311,17 +11592,14 @@ export type PostPromotionCodes = ( | Response > -const getPromotionCodesPromotionCodeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getPromotionCodesPromotionCode = b((r) => ({ + with200: r.with200(s_promotion_code), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetPromotionCodesPromotionCodeResponder = - typeof getPromotionCodesPromotionCodeResponder & KoaRuntimeResponder - -const getPromotionCodesPromotionCodeResponseValidator = - responseValidationFactory([["200", s_promotion_code]], s_error) + (typeof getPromotionCodesPromotionCode)["responder"] & KoaRuntimeResponder export type GetPromotionCodesPromotionCode = ( params: Params< @@ -13338,17 +11616,14 @@ export type GetPromotionCodesPromotionCode = ( | Response > -const postPromotionCodesPromotionCodeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postPromotionCodesPromotionCode = b((r) => ({ + with200: r.with200(s_promotion_code), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostPromotionCodesPromotionCodeResponder = - typeof postPromotionCodesPromotionCodeResponder & KoaRuntimeResponder - -const postPromotionCodesPromotionCodeResponseValidator = - responseValidationFactory([["200", s_promotion_code]], s_error) + (typeof postPromotionCodesPromotionCode)["responder"] & KoaRuntimeResponder export type PostPromotionCodesPromotionCode = ( params: Params< @@ -13365,33 +11640,25 @@ export type PostPromotionCodesPromotionCode = ( | Response > -const getQuotesResponder = { +const getQuotes = b((r) => ({ with200: r.with200<{ data: t_quote[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_quote)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/quotes")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetQuotesResponder = typeof getQuotesResponder & KoaRuntimeResponder - -const getQuotesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_quote)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/quotes")), - }), - ], - ], - s_error, -) +type GetQuotesResponder = (typeof getQuotes)["responder"] & KoaRuntimeResponder export type GetQuotes = ( params: Params< @@ -13416,18 +11683,14 @@ export type GetQuotes = ( | Response > -const postQuotesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postQuotes = b((r) => ({ + with200: r.with200(s_quote), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostQuotesResponder = typeof postQuotesResponder & KoaRuntimeResponder - -const postQuotesResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, -) +type PostQuotesResponder = (typeof postQuotes)["responder"] & + KoaRuntimeResponder export type PostQuotes = ( params: Params, @@ -13439,20 +11702,15 @@ export type PostQuotes = ( | Response > -const getQuotesQuoteResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getQuotesQuote = b((r) => ({ + with200: r.with200(s_quote), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetQuotesQuoteResponder = typeof getQuotesQuoteResponder & +type GetQuotesQuoteResponder = (typeof getQuotesQuote)["responder"] & KoaRuntimeResponder -const getQuotesQuoteResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, -) - export type GetQuotesQuote = ( params: Params< t_GetQuotesQuoteParamSchema, @@ -13468,20 +11726,15 @@ export type GetQuotesQuote = ( | Response > -const postQuotesQuoteResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postQuotesQuote = b((r) => ({ + with200: r.with200(s_quote), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostQuotesQuoteResponder = typeof postQuotesQuoteResponder & +type PostQuotesQuoteResponder = (typeof postQuotesQuote)["responder"] & KoaRuntimeResponder -const postQuotesQuoteResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, -) - export type PostQuotesQuote = ( params: Params< t_PostQuotesQuoteParamSchema, @@ -13497,19 +11750,14 @@ export type PostQuotesQuote = ( | Response > -const postQuotesQuoteAcceptResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postQuotesQuoteAccept = b((r) => ({ + with200: r.with200(s_quote), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostQuotesQuoteAcceptResponder = typeof postQuotesQuoteAcceptResponder & - KoaRuntimeResponder - -const postQuotesQuoteAcceptResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, -) +type PostQuotesQuoteAcceptResponder = + (typeof postQuotesQuoteAccept)["responder"] & KoaRuntimeResponder export type PostQuotesQuoteAccept = ( params: Params< @@ -13526,19 +11774,14 @@ export type PostQuotesQuoteAccept = ( | Response > -const postQuotesQuoteCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postQuotesQuoteCancel = b((r) => ({ + with200: r.with200(s_quote), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostQuotesQuoteCancelResponder = typeof postQuotesQuoteCancelResponder & - KoaRuntimeResponder - -const postQuotesQuoteCancelResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, -) +type PostQuotesQuoteCancelResponder = + (typeof postQuotesQuoteCancel)["responder"] & KoaRuntimeResponder export type PostQuotesQuoteCancel = ( params: Params< @@ -13555,35 +11798,27 @@ export type PostQuotesQuoteCancel = ( | Response > -const getQuotesQuoteComputedUpfrontLineItemsResponder = { +const getQuotesQuoteComputedUpfrontLineItems = b((r) => ({ with200: r.with200<{ data: t_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetQuotesQuoteComputedUpfrontLineItemsResponder = - typeof getQuotesQuoteComputedUpfrontLineItemsResponder & KoaRuntimeResponder - -const getQuotesQuoteComputedUpfrontLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getQuotesQuoteComputedUpfrontLineItems)["responder"] & + KoaRuntimeResponder export type GetQuotesQuoteComputedUpfrontLineItems = ( params: Params< @@ -13608,19 +11843,14 @@ export type GetQuotesQuoteComputedUpfrontLineItems = ( | Response > -const postQuotesQuoteFinalizeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postQuotesQuoteFinalize = b((r) => ({ + with200: r.with200(s_quote), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostQuotesQuoteFinalizeResponder = - typeof postQuotesQuoteFinalizeResponder & KoaRuntimeResponder - -const postQuotesQuoteFinalizeResponseValidator = responseValidationFactory( - [["200", s_quote]], - s_error, -) + (typeof postQuotesQuoteFinalize)["responder"] & KoaRuntimeResponder export type PostQuotesQuoteFinalize = ( params: Params< @@ -13637,34 +11867,26 @@ export type PostQuotesQuoteFinalize = ( | Response > -const getQuotesQuoteLineItemsResponder = { +const getQuotesQuoteLineItems = b((r) => ({ with200: r.with200<{ data: t_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetQuotesQuoteLineItemsResponder = - typeof getQuotesQuoteLineItemsResponder & KoaRuntimeResponder - -const getQuotesQuoteLineItemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getQuotesQuoteLineItems)["responder"] & KoaRuntimeResponder export type GetQuotesQuoteLineItems = ( params: Params< @@ -13689,20 +11911,15 @@ export type GetQuotesQuoteLineItems = ( | Response > -const getQuotesQuotePdfResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getQuotesQuotePdf = b((r) => ({ + with200: r.with200(z.string()), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetQuotesQuotePdfResponder = typeof getQuotesQuotePdfResponder & +type GetQuotesQuotePdfResponder = (typeof getQuotesQuotePdf)["responder"] & KoaRuntimeResponder -const getQuotesQuotePdfResponseValidator = responseValidationFactory( - [["200", z.string()]], - s_error, -) - export type GetQuotesQuotePdf = ( params: Params< t_GetQuotesQuotePdfParamSchema, @@ -13718,37 +11935,29 @@ export type GetQuotesQuotePdf = ( | Response > -const getRadarEarlyFraudWarningsResponder = { +const getRadarEarlyFraudWarnings = b((r) => ({ with200: r.with200<{ data: t_radar_early_fraud_warning[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_radar_early_fraud_warning)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/radar/early_fraud_warnings")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetRadarEarlyFraudWarningsResponder = - typeof getRadarEarlyFraudWarningsResponder & KoaRuntimeResponder - -const getRadarEarlyFraudWarningsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_radar_early_fraud_warning)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/radar/early_fraud_warnings")), - }), - ], - ], - s_error, -) + (typeof getRadarEarlyFraudWarnings)["responder"] & KoaRuntimeResponder export type GetRadarEarlyFraudWarnings = ( params: Params< @@ -13773,19 +11982,16 @@ export type GetRadarEarlyFraudWarnings = ( | Response > -const getRadarEarlyFraudWarningsEarlyFraudWarningResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getRadarEarlyFraudWarningsEarlyFraudWarning = b((r) => ({ + with200: r.with200(s_radar_early_fraud_warning), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetRadarEarlyFraudWarningsEarlyFraudWarningResponder = - typeof getRadarEarlyFraudWarningsEarlyFraudWarningResponder & + (typeof getRadarEarlyFraudWarningsEarlyFraudWarning)["responder"] & KoaRuntimeResponder -const getRadarEarlyFraudWarningsEarlyFraudWarningResponseValidator = - responseValidationFactory([["200", s_radar_early_fraud_warning]], s_error) - export type GetRadarEarlyFraudWarningsEarlyFraudWarning = ( params: Params< t_GetRadarEarlyFraudWarningsEarlyFraudWarningParamSchema, @@ -13801,37 +12007,29 @@ export type GetRadarEarlyFraudWarningsEarlyFraudWarning = ( | Response > -const getRadarValueListItemsResponder = { +const getRadarValueListItems = b((r) => ({ with200: r.with200<{ data: t_radar_value_list_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_radar_value_list_item), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/radar/value_list_items")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetRadarValueListItemsResponder = typeof getRadarValueListItemsResponder & - KoaRuntimeResponder - -const getRadarValueListItemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_radar_value_list_item), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/radar/value_list_items")), - }), - ], - ], - s_error, -) +type GetRadarValueListItemsResponder = + (typeof getRadarValueListItems)["responder"] & KoaRuntimeResponder export type GetRadarValueListItems = ( params: Params< @@ -13856,19 +12054,14 @@ export type GetRadarValueListItems = ( | Response > -const postRadarValueListItemsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postRadarValueListItems = b((r) => ({ + with200: r.with200(s_radar_value_list_item), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostRadarValueListItemsResponder = - typeof postRadarValueListItemsResponder & KoaRuntimeResponder - -const postRadarValueListItemsResponseValidator = responseValidationFactory( - [["200", s_radar_value_list_item]], - s_error, -) + (typeof postRadarValueListItems)["responder"] & KoaRuntimeResponder export type PostRadarValueListItems = ( params: Params, @@ -13880,17 +12073,16 @@ export type PostRadarValueListItems = ( | Response > -const deleteRadarValueListItemsItemResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteRadarValueListItemsItem = b((r) => ({ + with200: r.with200( + s_deleted_radar_value_list_item, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteRadarValueListItemsItemResponder = - typeof deleteRadarValueListItemsItemResponder & KoaRuntimeResponder - -const deleteRadarValueListItemsItemResponseValidator = - responseValidationFactory([["200", s_deleted_radar_value_list_item]], s_error) + (typeof deleteRadarValueListItemsItem)["responder"] & KoaRuntimeResponder export type DeleteRadarValueListItemsItem = ( params: Params< @@ -13907,19 +12099,14 @@ export type DeleteRadarValueListItemsItem = ( | Response > -const getRadarValueListItemsItemResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getRadarValueListItemsItem = b((r) => ({ + with200: r.with200(s_radar_value_list_item), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetRadarValueListItemsItemResponder = - typeof getRadarValueListItemsItemResponder & KoaRuntimeResponder - -const getRadarValueListItemsItemResponseValidator = responseValidationFactory( - [["200", s_radar_value_list_item]], - s_error, -) + (typeof getRadarValueListItemsItem)["responder"] & KoaRuntimeResponder export type GetRadarValueListItemsItem = ( params: Params< @@ -13936,35 +12123,27 @@ export type GetRadarValueListItemsItem = ( | Response > -const getRadarValueListsResponder = { +const getRadarValueLists = b((r) => ({ with200: r.with200<{ data: t_radar_value_list[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_radar_value_list), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/radar/value_lists")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetRadarValueListsResponder = typeof getRadarValueListsResponder & +type GetRadarValueListsResponder = (typeof getRadarValueLists)["responder"] & KoaRuntimeResponder -const getRadarValueListsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_radar_value_list), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/radar/value_lists")), - }), - ], - ], - s_error, -) - export type GetRadarValueLists = ( params: Params< void, @@ -13988,20 +12167,15 @@ export type GetRadarValueLists = ( | Response > -const postRadarValueListsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postRadarValueLists = b((r) => ({ + with200: r.with200(s_radar_value_list), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostRadarValueListsResponder = typeof postRadarValueListsResponder & +type PostRadarValueListsResponder = (typeof postRadarValueLists)["responder"] & KoaRuntimeResponder -const postRadarValueListsResponseValidator = responseValidationFactory( - [["200", s_radar_value_list]], - s_error, -) - export type PostRadarValueLists = ( params: Params, respond: PostRadarValueListsResponder, @@ -14012,17 +12186,14 @@ export type PostRadarValueLists = ( | Response > -const deleteRadarValueListsValueListResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteRadarValueListsValueList = b((r) => ({ + with200: r.with200(s_deleted_radar_value_list), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteRadarValueListsValueListResponder = - typeof deleteRadarValueListsValueListResponder & KoaRuntimeResponder - -const deleteRadarValueListsValueListResponseValidator = - responseValidationFactory([["200", s_deleted_radar_value_list]], s_error) + (typeof deleteRadarValueListsValueList)["responder"] & KoaRuntimeResponder export type DeleteRadarValueListsValueList = ( params: Params< @@ -14039,19 +12210,14 @@ export type DeleteRadarValueListsValueList = ( | Response > -const getRadarValueListsValueListResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getRadarValueListsValueList = b((r) => ({ + with200: r.with200(s_radar_value_list), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetRadarValueListsValueListResponder = - typeof getRadarValueListsValueListResponder & KoaRuntimeResponder - -const getRadarValueListsValueListResponseValidator = responseValidationFactory( - [["200", s_radar_value_list]], - s_error, -) + (typeof getRadarValueListsValueList)["responder"] & KoaRuntimeResponder export type GetRadarValueListsValueList = ( params: Params< @@ -14068,19 +12234,14 @@ export type GetRadarValueListsValueList = ( | Response > -const postRadarValueListsValueListResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postRadarValueListsValueList = b((r) => ({ + with200: r.with200(s_radar_value_list), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostRadarValueListsValueListResponder = - typeof postRadarValueListsValueListResponder & KoaRuntimeResponder - -const postRadarValueListsValueListResponseValidator = responseValidationFactory( - [["200", s_radar_value_list]], - s_error, -) + (typeof postRadarValueListsValueList)["responder"] & KoaRuntimeResponder export type PostRadarValueListsValueList = ( params: Params< @@ -14097,33 +12258,26 @@ export type PostRadarValueListsValueList = ( | Response > -const getRefundsResponder = { +const getRefunds = b((r) => ({ with200: r.with200<{ data: t_refund[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_refund)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/refunds")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetRefundsResponder = typeof getRefundsResponder & KoaRuntimeResponder - -const getRefundsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_refund)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/refunds")), - }), - ], - ], - s_error, -) +type GetRefundsResponder = (typeof getRefunds)["responder"] & + KoaRuntimeResponder export type GetRefunds = ( params: Params< @@ -14148,18 +12302,14 @@ export type GetRefunds = ( | Response > -const postRefundsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postRefunds = b((r) => ({ + with200: r.with200(s_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostRefundsResponder = typeof postRefundsResponder & KoaRuntimeResponder +})) -const postRefundsResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, -) +type PostRefundsResponder = (typeof postRefunds)["responder"] & + KoaRuntimeResponder export type PostRefunds = ( params: Params, @@ -14171,20 +12321,15 @@ export type PostRefunds = ( | Response > -const getRefundsRefundResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getRefundsRefund = b((r) => ({ + with200: r.with200(s_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetRefundsRefundResponder = typeof getRefundsRefundResponder & +type GetRefundsRefundResponder = (typeof getRefundsRefund)["responder"] & KoaRuntimeResponder -const getRefundsRefundResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, -) - export type GetRefundsRefund = ( params: Params< t_GetRefundsRefundParamSchema, @@ -14200,20 +12345,15 @@ export type GetRefundsRefund = ( | Response > -const postRefundsRefundResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postRefundsRefund = b((r) => ({ + with200: r.with200(s_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostRefundsRefundResponder = typeof postRefundsRefundResponder & +type PostRefundsRefundResponder = (typeof postRefundsRefund)["responder"] & KoaRuntimeResponder -const postRefundsRefundResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, -) - export type PostRefundsRefund = ( params: Params< t_PostRefundsRefundParamSchema, @@ -14229,19 +12369,14 @@ export type PostRefundsRefund = ( | Response > -const postRefundsRefundCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postRefundsRefundCancel = b((r) => ({ + with200: r.with200(s_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostRefundsRefundCancelResponder = - typeof postRefundsRefundCancelResponder & KoaRuntimeResponder - -const postRefundsRefundCancelResponseValidator = responseValidationFactory( - [["200", s_refund]], - s_error, -) + (typeof postRefundsRefundCancel)["responder"] & KoaRuntimeResponder export type PostRefundsRefundCancel = ( params: Params< @@ -14258,37 +12393,26 @@ export type PostRefundsRefundCancel = ( | Response > -const getReportingReportRunsResponder = { +const getReportingReportRuns = b((r) => ({ with200: r.with200<{ data: t_reporting_report_run[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_reporting_report_run)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/reporting/report_runs")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetReportingReportRunsResponder = typeof getReportingReportRunsResponder & - KoaRuntimeResponder - -const getReportingReportRunsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_reporting_report_run)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/reporting/report_runs")), - }), - ], - ], - s_error, -) +type GetReportingReportRunsResponder = + (typeof getReportingReportRuns)["responder"] & KoaRuntimeResponder export type GetReportingReportRuns = ( params: Params< @@ -14313,19 +12437,14 @@ export type GetReportingReportRuns = ( | Response > -const postReportingReportRunsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postReportingReportRuns = b((r) => ({ + with200: r.with200(s_reporting_report_run), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostReportingReportRunsResponder = - typeof postReportingReportRunsResponder & KoaRuntimeResponder - -const postReportingReportRunsResponseValidator = responseValidationFactory( - [["200", s_reporting_report_run]], - s_error, -) + (typeof postReportingReportRuns)["responder"] & KoaRuntimeResponder export type PostReportingReportRuns = ( params: Params, @@ -14337,17 +12456,14 @@ export type PostReportingReportRuns = ( | Response > -const getReportingReportRunsReportRunResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getReportingReportRunsReportRun = b((r) => ({ + with200: r.with200(s_reporting_report_run), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetReportingReportRunsReportRunResponder = - typeof getReportingReportRunsReportRunResponder & KoaRuntimeResponder - -const getReportingReportRunsReportRunResponseValidator = - responseValidationFactory([["200", s_reporting_report_run]], s_error) + (typeof getReportingReportRunsReportRun)["responder"] & KoaRuntimeResponder export type GetReportingReportRunsReportRun = ( params: Params< @@ -14364,34 +12480,26 @@ export type GetReportingReportRunsReportRun = ( | Response > -const getReportingReportTypesResponder = { +const getReportingReportTypes = b((r) => ({ with200: r.with200<{ data: t_reporting_report_type[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_reporting_report_type), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetReportingReportTypesResponder = - typeof getReportingReportTypesResponder & KoaRuntimeResponder - -const getReportingReportTypesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_reporting_report_type), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getReportingReportTypes)["responder"] & KoaRuntimeResponder export type GetReportingReportTypes = ( params: Params< @@ -14416,17 +12524,14 @@ export type GetReportingReportTypes = ( | Response > -const getReportingReportTypesReportTypeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getReportingReportTypesReportType = b((r) => ({ + with200: r.with200(s_reporting_report_type), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetReportingReportTypesReportTypeResponder = - typeof getReportingReportTypesReportTypeResponder & KoaRuntimeResponder - -const getReportingReportTypesReportTypeResponseValidator = - responseValidationFactory([["200", s_reporting_report_type]], s_error) + (typeof getReportingReportTypesReportType)["responder"] & KoaRuntimeResponder export type GetReportingReportTypesReportType = ( params: Params< @@ -14443,33 +12548,26 @@ export type GetReportingReportTypesReportType = ( | Response > -const getReviewsResponder = { +const getReviews = b((r) => ({ with200: r.with200<{ data: t_review[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_review)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetReviewsResponder = typeof getReviewsResponder & KoaRuntimeResponder - -const getReviewsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_review)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) +type GetReviewsResponder = (typeof getReviews)["responder"] & + KoaRuntimeResponder export type GetReviews = ( params: Params< @@ -14494,20 +12592,15 @@ export type GetReviews = ( | Response > -const getReviewsReviewResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getReviewsReview = b((r) => ({ + with200: r.with200(s_review), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetReviewsReviewResponder = typeof getReviewsReviewResponder & +type GetReviewsReviewResponder = (typeof getReviewsReview)["responder"] & KoaRuntimeResponder -const getReviewsReviewResponseValidator = responseValidationFactory( - [["200", s_review]], - s_error, -) - export type GetReviewsReview = ( params: Params< t_GetReviewsReviewParamSchema, @@ -14523,19 +12616,14 @@ export type GetReviewsReview = ( | Response > -const postReviewsReviewApproveResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postReviewsReviewApprove = b((r) => ({ + with200: r.with200(s_review), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostReviewsReviewApproveResponder = - typeof postReviewsReviewApproveResponder & KoaRuntimeResponder - -const postReviewsReviewApproveResponseValidator = responseValidationFactory( - [["200", s_review]], - s_error, -) + (typeof postReviewsReviewApprove)["responder"] & KoaRuntimeResponder export type PostReviewsReviewApprove = ( params: Params< @@ -14552,35 +12640,27 @@ export type PostReviewsReviewApprove = ( | Response > -const getSetupAttemptsResponder = { +const getSetupAttempts = b((r) => ({ with200: r.with200<{ data: t_setup_attempt[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_setup_attempt)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/setup_attempts")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetSetupAttemptsResponder = typeof getSetupAttemptsResponder & +type GetSetupAttemptsResponder = (typeof getSetupAttempts)["responder"] & KoaRuntimeResponder -const getSetupAttemptsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_setup_attempt)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/setup_attempts")), - }), - ], - ], - s_error, -) - export type GetSetupAttempts = ( params: Params< void, @@ -14604,35 +12684,27 @@ export type GetSetupAttempts = ( | Response > -const getSetupIntentsResponder = { +const getSetupIntents = b((r) => ({ with200: r.with200<{ data: t_setup_intent[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_setup_intent)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/setup_intents")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetSetupIntentsResponder = typeof getSetupIntentsResponder & +type GetSetupIntentsResponder = (typeof getSetupIntents)["responder"] & KoaRuntimeResponder -const getSetupIntentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_setup_intent)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/setup_intents")), - }), - ], - ], - s_error, -) - export type GetSetupIntents = ( params: Params< void, @@ -14656,20 +12728,15 @@ export type GetSetupIntents = ( | Response > -const postSetupIntentsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSetupIntents = b((r) => ({ + with200: r.with200(s_setup_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostSetupIntentsResponder = typeof postSetupIntentsResponder & +type PostSetupIntentsResponder = (typeof postSetupIntents)["responder"] & KoaRuntimeResponder -const postSetupIntentsResponseValidator = responseValidationFactory( - [["200", s_setup_intent]], - s_error, -) - export type PostSetupIntents = ( params: Params, respond: PostSetupIntentsResponder, @@ -14680,19 +12747,14 @@ export type PostSetupIntents = ( | Response > -const getSetupIntentsIntentResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getSetupIntentsIntent = b((r) => ({ + with200: r.with200(s_setup_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetSetupIntentsIntentResponder = typeof getSetupIntentsIntentResponder & - KoaRuntimeResponder - -const getSetupIntentsIntentResponseValidator = responseValidationFactory( - [["200", s_setup_intent]], - s_error, -) +type GetSetupIntentsIntentResponder = + (typeof getSetupIntentsIntent)["responder"] & KoaRuntimeResponder export type GetSetupIntentsIntent = ( params: Params< @@ -14709,19 +12771,14 @@ export type GetSetupIntentsIntent = ( | Response > -const postSetupIntentsIntentResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSetupIntentsIntent = b((r) => ({ + with200: r.with200(s_setup_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostSetupIntentsIntentResponder = typeof postSetupIntentsIntentResponder & - KoaRuntimeResponder - -const postSetupIntentsIntentResponseValidator = responseValidationFactory( - [["200", s_setup_intent]], - s_error, -) +type PostSetupIntentsIntentResponder = + (typeof postSetupIntentsIntent)["responder"] & KoaRuntimeResponder export type PostSetupIntentsIntent = ( params: Params< @@ -14738,19 +12795,14 @@ export type PostSetupIntentsIntent = ( | Response > -const postSetupIntentsIntentCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSetupIntentsIntentCancel = b((r) => ({ + with200: r.with200(s_setup_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSetupIntentsIntentCancelResponder = - typeof postSetupIntentsIntentCancelResponder & KoaRuntimeResponder - -const postSetupIntentsIntentCancelResponseValidator = responseValidationFactory( - [["200", s_setup_intent]], - s_error, -) + (typeof postSetupIntentsIntentCancel)["responder"] & KoaRuntimeResponder export type PostSetupIntentsIntentCancel = ( params: Params< @@ -14767,17 +12819,14 @@ export type PostSetupIntentsIntentCancel = ( | Response > -const postSetupIntentsIntentConfirmResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSetupIntentsIntentConfirm = b((r) => ({ + with200: r.with200(s_setup_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSetupIntentsIntentConfirmResponder = - typeof postSetupIntentsIntentConfirmResponder & KoaRuntimeResponder - -const postSetupIntentsIntentConfirmResponseValidator = - responseValidationFactory([["200", s_setup_intent]], s_error) + (typeof postSetupIntentsIntentConfirm)["responder"] & KoaRuntimeResponder export type PostSetupIntentsIntentConfirm = ( params: Params< @@ -14794,19 +12843,16 @@ export type PostSetupIntentsIntentConfirm = ( | Response > -const postSetupIntentsIntentVerifyMicrodepositsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSetupIntentsIntentVerifyMicrodeposits = b((r) => ({ + with200: r.with200(s_setup_intent), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSetupIntentsIntentVerifyMicrodepositsResponder = - typeof postSetupIntentsIntentVerifyMicrodepositsResponder & + (typeof postSetupIntentsIntentVerifyMicrodeposits)["responder"] & KoaRuntimeResponder -const postSetupIntentsIntentVerifyMicrodepositsResponseValidator = - responseValidationFactory([["200", s_setup_intent]], s_error) - export type PostSetupIntentsIntentVerifyMicrodeposits = ( params: Params< t_PostSetupIntentsIntentVerifyMicrodepositsParamSchema, @@ -14822,35 +12868,27 @@ export type PostSetupIntentsIntentVerifyMicrodeposits = ( | Response > -const getShippingRatesResponder = { +const getShippingRates = b((r) => ({ with200: r.with200<{ data: t_shipping_rate[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_shipping_rate), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/shipping_rates")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetShippingRatesResponder = typeof getShippingRatesResponder & +type GetShippingRatesResponder = (typeof getShippingRates)["responder"] & KoaRuntimeResponder -const getShippingRatesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_shipping_rate), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/shipping_rates")), - }), - ], - ], - s_error, -) - export type GetShippingRates = ( params: Params< void, @@ -14874,20 +12912,15 @@ export type GetShippingRates = ( | Response > -const postShippingRatesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postShippingRates = b((r) => ({ + with200: r.with200(s_shipping_rate), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostShippingRatesResponder = typeof postShippingRatesResponder & +type PostShippingRatesResponder = (typeof postShippingRates)["responder"] & KoaRuntimeResponder -const postShippingRatesResponseValidator = responseValidationFactory( - [["200", s_shipping_rate]], - s_error, -) - export type PostShippingRates = ( params: Params, respond: PostShippingRatesResponder, @@ -14898,17 +12931,14 @@ export type PostShippingRates = ( | Response > -const getShippingRatesShippingRateTokenResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getShippingRatesShippingRateToken = b((r) => ({ + with200: r.with200(s_shipping_rate), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetShippingRatesShippingRateTokenResponder = - typeof getShippingRatesShippingRateTokenResponder & KoaRuntimeResponder - -const getShippingRatesShippingRateTokenResponseValidator = - responseValidationFactory([["200", s_shipping_rate]], s_error) + (typeof getShippingRatesShippingRateToken)["responder"] & KoaRuntimeResponder export type GetShippingRatesShippingRateToken = ( params: Params< @@ -14925,17 +12955,14 @@ export type GetShippingRatesShippingRateToken = ( | Response > -const postShippingRatesShippingRateTokenResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postShippingRatesShippingRateToken = b((r) => ({ + with200: r.with200(s_shipping_rate), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostShippingRatesShippingRateTokenResponder = - typeof postShippingRatesShippingRateTokenResponder & KoaRuntimeResponder - -const postShippingRatesShippingRateTokenResponseValidator = - responseValidationFactory([["200", s_shipping_rate]], s_error) + (typeof postShippingRatesShippingRateToken)["responder"] & KoaRuntimeResponder export type PostShippingRatesShippingRateToken = ( params: Params< @@ -14952,19 +12979,14 @@ export type PostShippingRatesShippingRateToken = ( | Response > -const postSigmaSavedQueriesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSigmaSavedQueriesId = b((r) => ({ + with200: r.with200(s_sigma_sigma_api_query), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSigmaSavedQueriesIdResponder = - typeof postSigmaSavedQueriesIdResponder & KoaRuntimeResponder - -const postSigmaSavedQueriesIdResponseValidator = responseValidationFactory( - [["200", s_sigma_sigma_api_query]], - s_error, -) + (typeof postSigmaSavedQueriesId)["responder"] & KoaRuntimeResponder export type PostSigmaSavedQueriesId = ( params: Params< @@ -14981,37 +13003,29 @@ export type PostSigmaSavedQueriesId = ( | Response > -const getSigmaScheduledQueryRunsResponder = { +const getSigmaScheduledQueryRuns = b((r) => ({ with200: r.with200<{ data: t_scheduled_query_run[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_scheduled_query_run)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/sigma/scheduled_query_runs")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSigmaScheduledQueryRunsResponder = - typeof getSigmaScheduledQueryRunsResponder & KoaRuntimeResponder - -const getSigmaScheduledQueryRunsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_scheduled_query_run)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/sigma/scheduled_query_runs")), - }), - ], - ], - s_error, -) + (typeof getSigmaScheduledQueryRuns)["responder"] & KoaRuntimeResponder export type GetSigmaScheduledQueryRuns = ( params: Params< @@ -15036,19 +13050,16 @@ export type GetSigmaScheduledQueryRuns = ( | Response > -const getSigmaScheduledQueryRunsScheduledQueryRunResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getSigmaScheduledQueryRunsScheduledQueryRun = b((r) => ({ + with200: r.with200(s_scheduled_query_run), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSigmaScheduledQueryRunsScheduledQueryRunResponder = - typeof getSigmaScheduledQueryRunsScheduledQueryRunResponder & + (typeof getSigmaScheduledQueryRunsScheduledQueryRun)["responder"] & KoaRuntimeResponder -const getSigmaScheduledQueryRunsScheduledQueryRunResponseValidator = - responseValidationFactory([["200", s_scheduled_query_run]], s_error) - export type GetSigmaScheduledQueryRunsScheduledQueryRun = ( params: Params< t_GetSigmaScheduledQueryRunsScheduledQueryRunParamSchema, @@ -15064,18 +13075,14 @@ export type GetSigmaScheduledQueryRunsScheduledQueryRun = ( | Response > -const postSourcesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSources = b((r) => ({ + with200: r.with200(s_source), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostSourcesResponder = typeof postSourcesResponder & KoaRuntimeResponder - -const postSourcesResponseValidator = responseValidationFactory( - [["200", s_source]], - s_error, -) +type PostSourcesResponder = (typeof postSources)["responder"] & + KoaRuntimeResponder export type PostSources = ( params: Params, @@ -15087,20 +13094,15 @@ export type PostSources = ( | Response > -const getSourcesSourceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getSourcesSource = b((r) => ({ + with200: r.with200(s_source), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetSourcesSourceResponder = typeof getSourcesSourceResponder & +type GetSourcesSourceResponder = (typeof getSourcesSource)["responder"] & KoaRuntimeResponder -const getSourcesSourceResponseValidator = responseValidationFactory( - [["200", s_source]], - s_error, -) - export type GetSourcesSource = ( params: Params< t_GetSourcesSourceParamSchema, @@ -15116,20 +13118,15 @@ export type GetSourcesSource = ( | Response > -const postSourcesSourceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSourcesSource = b((r) => ({ + with200: r.with200(s_source), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostSourcesSourceResponder = typeof postSourcesSourceResponder & +type PostSourcesSourceResponder = (typeof postSourcesSource)["responder"] & KoaRuntimeResponder -const postSourcesSourceResponseValidator = responseValidationFactory( - [["200", s_source]], - s_error, -) - export type PostSourcesSource = ( params: Params< t_PostSourcesSourceParamSchema, @@ -15145,19 +13142,18 @@ export type PostSourcesSource = ( | Response > -const getSourcesSourceMandateNotificationsMandateNotificationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getSourcesSourceMandateNotificationsMandateNotification = b((r) => ({ + with200: r.with200( + s_source_mandate_notification, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSourcesSourceMandateNotificationsMandateNotificationResponder = - typeof getSourcesSourceMandateNotificationsMandateNotificationResponder & + (typeof getSourcesSourceMandateNotificationsMandateNotification)["responder"] & KoaRuntimeResponder -const getSourcesSourceMandateNotificationsMandateNotificationResponseValidator = - responseValidationFactory([["200", s_source_mandate_notification]], s_error) - export type GetSourcesSourceMandateNotificationsMandateNotification = ( params: Params< t_GetSourcesSourceMandateNotificationsMandateNotificationParamSchema, @@ -15174,35 +13170,26 @@ export type GetSourcesSourceMandateNotificationsMandateNotification = ( | Response > -const getSourcesSourceSourceTransactionsResponder = { +const getSourcesSourceSourceTransactions = b((r) => ({ with200: r.with200<{ data: t_source_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_source_transaction), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSourcesSourceSourceTransactionsResponder = - typeof getSourcesSourceSourceTransactionsResponder & KoaRuntimeResponder - -const getSourcesSourceSourceTransactionsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_source_transaction), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, - ) + (typeof getSourcesSourceSourceTransactions)["responder"] & KoaRuntimeResponder export type GetSourcesSourceSourceTransactions = ( params: Params< @@ -15227,19 +13214,16 @@ export type GetSourcesSourceSourceTransactions = ( | Response > -const getSourcesSourceSourceTransactionsSourceTransactionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getSourcesSourceSourceTransactionsSourceTransaction = b((r) => ({ + with200: r.with200(s_source_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSourcesSourceSourceTransactionsSourceTransactionResponder = - typeof getSourcesSourceSourceTransactionsSourceTransactionResponder & + (typeof getSourcesSourceSourceTransactionsSourceTransaction)["responder"] & KoaRuntimeResponder -const getSourcesSourceSourceTransactionsSourceTransactionResponseValidator = - responseValidationFactory([["200", s_source_transaction]], s_error) - export type GetSourcesSourceSourceTransactionsSourceTransaction = ( params: Params< t_GetSourcesSourceSourceTransactionsSourceTransactionParamSchema, @@ -15255,19 +13239,14 @@ export type GetSourcesSourceSourceTransactionsSourceTransaction = ( | Response > -const postSourcesSourceVerifyResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSourcesSourceVerify = b((r) => ({ + with200: r.with200(s_source), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSourcesSourceVerifyResponder = - typeof postSourcesSourceVerifyResponder & KoaRuntimeResponder - -const postSourcesSourceVerifyResponseValidator = responseValidationFactory( - [["200", s_source]], - s_error, -) + (typeof postSourcesSourceVerify)["responder"] & KoaRuntimeResponder export type PostSourcesSourceVerify = ( params: Params< @@ -15284,34 +13263,26 @@ export type PostSourcesSourceVerify = ( | Response > -const getSubscriptionItemsResponder = { +const getSubscriptionItems = b((r) => ({ with200: r.with200<{ data: t_subscription_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_subscription_item)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/subscription_items")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetSubscriptionItemsResponder = typeof getSubscriptionItemsResponder & - KoaRuntimeResponder - -const getSubscriptionItemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription_item)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/subscription_items")), - }), - ], - ], - s_error, -) +type GetSubscriptionItemsResponder = + (typeof getSubscriptionItems)["responder"] & KoaRuntimeResponder export type GetSubscriptionItems = ( params: Params< @@ -15336,19 +13307,14 @@ export type GetSubscriptionItems = ( | Response > -const postSubscriptionItemsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptionItems = b((r) => ({ + with200: r.with200(s_subscription_item), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostSubscriptionItemsResponder = typeof postSubscriptionItemsResponder & - KoaRuntimeResponder +})) -const postSubscriptionItemsResponseValidator = responseValidationFactory( - [["200", s_subscription_item]], - s_error, -) +type PostSubscriptionItemsResponder = + (typeof postSubscriptionItems)["responder"] & KoaRuntimeResponder export type PostSubscriptionItems = ( params: Params, @@ -15360,19 +13326,14 @@ export type PostSubscriptionItems = ( | Response > -const deleteSubscriptionItemsItemResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteSubscriptionItemsItem = b((r) => ({ + with200: r.with200(s_deleted_subscription_item), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteSubscriptionItemsItemResponder = - typeof deleteSubscriptionItemsItemResponder & KoaRuntimeResponder - -const deleteSubscriptionItemsItemResponseValidator = responseValidationFactory( - [["200", s_deleted_subscription_item]], - s_error, -) + (typeof deleteSubscriptionItemsItem)["responder"] & KoaRuntimeResponder export type DeleteSubscriptionItemsItem = ( params: Params< @@ -15389,19 +13350,14 @@ export type DeleteSubscriptionItemsItem = ( | Response > -const getSubscriptionItemsItemResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getSubscriptionItemsItem = b((r) => ({ + with200: r.with200(s_subscription_item), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSubscriptionItemsItemResponder = - typeof getSubscriptionItemsItemResponder & KoaRuntimeResponder - -const getSubscriptionItemsItemResponseValidator = responseValidationFactory( - [["200", s_subscription_item]], - s_error, -) + (typeof getSubscriptionItemsItem)["responder"] & KoaRuntimeResponder export type GetSubscriptionItemsItem = ( params: Params< @@ -15418,19 +13374,14 @@ export type GetSubscriptionItemsItem = ( | Response > -const postSubscriptionItemsItemResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptionItemsItem = b((r) => ({ + with200: r.with200(s_subscription_item), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSubscriptionItemsItemResponder = - typeof postSubscriptionItemsItemResponder & KoaRuntimeResponder - -const postSubscriptionItemsItemResponseValidator = responseValidationFactory( - [["200", s_subscription_item]], - s_error, -) + (typeof postSubscriptionItemsItem)["responder"] & KoaRuntimeResponder export type PostSubscriptionItemsItem = ( params: Params< @@ -15447,37 +13398,29 @@ export type PostSubscriptionItemsItem = ( | Response > -const getSubscriptionSchedulesResponder = { +const getSubscriptionSchedules = b((r) => ({ with200: r.with200<{ data: t_subscription_schedule[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_subscription_schedule)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/subscription_schedules")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSubscriptionSchedulesResponder = - typeof getSubscriptionSchedulesResponder & KoaRuntimeResponder - -const getSubscriptionSchedulesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription_schedule)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/subscription_schedules")), - }), - ], - ], - s_error, -) + (typeof getSubscriptionSchedules)["responder"] & KoaRuntimeResponder export type GetSubscriptionSchedules = ( params: Params< @@ -15502,19 +13445,14 @@ export type GetSubscriptionSchedules = ( | Response > -const postSubscriptionSchedulesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptionSchedules = b((r) => ({ + with200: r.with200(s_subscription_schedule), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSubscriptionSchedulesResponder = - typeof postSubscriptionSchedulesResponder & KoaRuntimeResponder - -const postSubscriptionSchedulesResponseValidator = responseValidationFactory( - [["200", s_subscription_schedule]], - s_error, -) + (typeof postSubscriptionSchedules)["responder"] & KoaRuntimeResponder export type PostSubscriptionSchedules = ( params: Params< @@ -15531,17 +13469,14 @@ export type PostSubscriptionSchedules = ( | Response > -const getSubscriptionSchedulesScheduleResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getSubscriptionSchedulesSchedule = b((r) => ({ + with200: r.with200(s_subscription_schedule), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSubscriptionSchedulesScheduleResponder = - typeof getSubscriptionSchedulesScheduleResponder & KoaRuntimeResponder - -const getSubscriptionSchedulesScheduleResponseValidator = - responseValidationFactory([["200", s_subscription_schedule]], s_error) + (typeof getSubscriptionSchedulesSchedule)["responder"] & KoaRuntimeResponder export type GetSubscriptionSchedulesSchedule = ( params: Params< @@ -15558,17 +13493,14 @@ export type GetSubscriptionSchedulesSchedule = ( | Response > -const postSubscriptionSchedulesScheduleResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptionSchedulesSchedule = b((r) => ({ + with200: r.with200(s_subscription_schedule), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSubscriptionSchedulesScheduleResponder = - typeof postSubscriptionSchedulesScheduleResponder & KoaRuntimeResponder - -const postSubscriptionSchedulesScheduleResponseValidator = - responseValidationFactory([["200", s_subscription_schedule]], s_error) + (typeof postSubscriptionSchedulesSchedule)["responder"] & KoaRuntimeResponder export type PostSubscriptionSchedulesSchedule = ( params: Params< @@ -15585,17 +13517,15 @@ export type PostSubscriptionSchedulesSchedule = ( | Response > -const postSubscriptionSchedulesScheduleCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptionSchedulesScheduleCancel = b((r) => ({ + with200: r.with200(s_subscription_schedule), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSubscriptionSchedulesScheduleCancelResponder = - typeof postSubscriptionSchedulesScheduleCancelResponder & KoaRuntimeResponder - -const postSubscriptionSchedulesScheduleCancelResponseValidator = - responseValidationFactory([["200", s_subscription_schedule]], s_error) + (typeof postSubscriptionSchedulesScheduleCancel)["responder"] & + KoaRuntimeResponder export type PostSubscriptionSchedulesScheduleCancel = ( params: Params< @@ -15612,17 +13542,15 @@ export type PostSubscriptionSchedulesScheduleCancel = ( | Response > -const postSubscriptionSchedulesScheduleReleaseResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptionSchedulesScheduleRelease = b((r) => ({ + with200: r.with200(s_subscription_schedule), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSubscriptionSchedulesScheduleReleaseResponder = - typeof postSubscriptionSchedulesScheduleReleaseResponder & KoaRuntimeResponder - -const postSubscriptionSchedulesScheduleReleaseResponseValidator = - responseValidationFactory([["200", s_subscription_schedule]], s_error) + (typeof postSubscriptionSchedulesScheduleRelease)["responder"] & + KoaRuntimeResponder export type PostSubscriptionSchedulesScheduleRelease = ( params: Params< @@ -15639,35 +13567,27 @@ export type PostSubscriptionSchedulesScheduleRelease = ( | Response > -const getSubscriptionsResponder = { +const getSubscriptions = b((r) => ({ with200: r.with200<{ data: t_subscription[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_subscription)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/subscriptions")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetSubscriptionsResponder = typeof getSubscriptionsResponder & +type GetSubscriptionsResponder = (typeof getSubscriptions)["responder"] & KoaRuntimeResponder -const getSubscriptionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/subscriptions")), - }), - ], - ], - s_error, -) - export type GetSubscriptions = ( params: Params< void, @@ -15691,20 +13611,15 @@ export type GetSubscriptions = ( | Response > -const postSubscriptionsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptions = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostSubscriptionsResponder = typeof postSubscriptionsResponder & +type PostSubscriptionsResponder = (typeof postSubscriptions)["responder"] & KoaRuntimeResponder -const postSubscriptionsResponseValidator = responseValidationFactory( - [["200", s_subscription]], - s_error, -) - export type PostSubscriptions = ( params: Params, respond: PostSubscriptionsResponder, @@ -15715,7 +13630,7 @@ export type PostSubscriptions = ( | Response > -const getSubscriptionsSearchResponder = { +const getSubscriptionsSearch = b((r) => ({ with200: r.with200<{ data: t_subscription[] has_more: boolean @@ -15723,30 +13638,22 @@ const getSubscriptionsSearchResponder = { object: "search_result" total_count?: number url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_subscription)), + has_more: PermissiveBoolean, + next_page: z.string().max(5000).nullable().optional(), + object: z.enum(["search_result"]), + total_count: z.coerce.number().optional(), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetSubscriptionsSearchResponder = typeof getSubscriptionsSearchResponder & - KoaRuntimeResponder +})) -const getSubscriptionsSearchResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_subscription)), - has_more: PermissiveBoolean, - next_page: z.string().max(5000).nullable().optional(), - object: z.enum(["search_result"]), - total_count: z.coerce.number().optional(), - url: z.string().max(5000), - }), - ], - ], - s_error, -) +type GetSubscriptionsSearchResponder = + (typeof getSubscriptionsSearch)["responder"] & KoaRuntimeResponder export type GetSubscriptionsSearch = ( params: Params< @@ -15773,17 +13680,15 @@ export type GetSubscriptionsSearch = ( | Response > -const deleteSubscriptionsSubscriptionExposedIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteSubscriptionsSubscriptionExposedId = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteSubscriptionsSubscriptionExposedIdResponder = - typeof deleteSubscriptionsSubscriptionExposedIdResponder & KoaRuntimeResponder - -const deleteSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) + (typeof deleteSubscriptionsSubscriptionExposedId)["responder"] & + KoaRuntimeResponder export type DeleteSubscriptionsSubscriptionExposedId = ( params: Params< @@ -15800,17 +13705,15 @@ export type DeleteSubscriptionsSubscriptionExposedId = ( | Response > -const getSubscriptionsSubscriptionExposedIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getSubscriptionsSubscriptionExposedId = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetSubscriptionsSubscriptionExposedIdResponder = - typeof getSubscriptionsSubscriptionExposedIdResponder & KoaRuntimeResponder - -const getSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) + (typeof getSubscriptionsSubscriptionExposedId)["responder"] & + KoaRuntimeResponder export type GetSubscriptionsSubscriptionExposedId = ( params: Params< @@ -15827,17 +13730,15 @@ export type GetSubscriptionsSubscriptionExposedId = ( | Response > -const postSubscriptionsSubscriptionExposedIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptionsSubscriptionExposedId = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSubscriptionsSubscriptionExposedIdResponder = - typeof postSubscriptionsSubscriptionExposedIdResponder & KoaRuntimeResponder - -const postSubscriptionsSubscriptionExposedIdResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) + (typeof postSubscriptionsSubscriptionExposedId)["responder"] & + KoaRuntimeResponder export type PostSubscriptionsSubscriptionExposedId = ( params: Params< @@ -15854,19 +13755,16 @@ export type PostSubscriptionsSubscriptionExposedId = ( | Response > -const deleteSubscriptionsSubscriptionExposedIdDiscountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteSubscriptionsSubscriptionExposedIdDiscount = b((r) => ({ + with200: r.with200(s_deleted_discount), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteSubscriptionsSubscriptionExposedIdDiscountResponder = - typeof deleteSubscriptionsSubscriptionExposedIdDiscountResponder & + (typeof deleteSubscriptionsSubscriptionExposedIdDiscount)["responder"] & KoaRuntimeResponder -const deleteSubscriptionsSubscriptionExposedIdDiscountResponseValidator = - responseValidationFactory([["200", s_deleted_discount]], s_error) - export type DeleteSubscriptionsSubscriptionExposedIdDiscount = ( params: Params< t_DeleteSubscriptionsSubscriptionExposedIdDiscountParamSchema, @@ -15882,17 +13780,15 @@ export type DeleteSubscriptionsSubscriptionExposedIdDiscount = ( | Response > -const postSubscriptionsSubscriptionResumeResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postSubscriptionsSubscriptionResume = b((r) => ({ + with200: r.with200(s_subscription), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostSubscriptionsSubscriptionResumeResponder = - typeof postSubscriptionsSubscriptionResumeResponder & KoaRuntimeResponder - -const postSubscriptionsSubscriptionResumeResponseValidator = - responseValidationFactory([["200", s_subscription]], s_error) + (typeof postSubscriptionsSubscriptionResume)["responder"] & + KoaRuntimeResponder export type PostSubscriptionsSubscriptionResume = ( params: Params< @@ -15909,20 +13805,15 @@ export type PostSubscriptionsSubscriptionResume = ( | Response > -const postTaxCalculationsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxCalculations = b((r) => ({ + with200: r.with200(s_tax_calculation), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTaxCalculationsResponder = typeof postTaxCalculationsResponder & +type PostTaxCalculationsResponder = (typeof postTaxCalculations)["responder"] & KoaRuntimeResponder -const postTaxCalculationsResponseValidator = responseValidationFactory( - [["200", s_tax_calculation]], - s_error, -) - export type PostTaxCalculations = ( params: Params, respond: PostTaxCalculationsResponder, @@ -15933,17 +13824,14 @@ export type PostTaxCalculations = ( | Response > -const getTaxCalculationsCalculationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTaxCalculationsCalculation = b((r) => ({ + with200: r.with200(s_tax_calculation), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTaxCalculationsCalculationResponder = - typeof getTaxCalculationsCalculationResponder & KoaRuntimeResponder - -const getTaxCalculationsCalculationResponseValidator = - responseValidationFactory([["200", s_tax_calculation]], s_error) + (typeof getTaxCalculationsCalculation)["responder"] & KoaRuntimeResponder export type GetTaxCalculationsCalculation = ( params: Params< @@ -15960,38 +13848,30 @@ export type GetTaxCalculationsCalculation = ( | Response > -const getTaxCalculationsCalculationLineItemsResponder = { +const getTaxCalculationsCalculationLineItems = b((r) => ({ with200: r.with200<{ data: t_tax_calculation_line_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_tax_calculation_line_item), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/tax/calculations/[^/]+/line_items")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTaxCalculationsCalculationLineItemsResponder = - typeof getTaxCalculationsCalculationLineItemsResponder & KoaRuntimeResponder - -const getTaxCalculationsCalculationLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_calculation_line_item), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/tax/calculations/[^/]+/line_items")), - }), - ], - ], - s_error, - ) + (typeof getTaxCalculationsCalculationLineItems)["responder"] & + KoaRuntimeResponder export type GetTaxCalculationsCalculationLineItems = ( params: Params< @@ -16016,35 +13896,27 @@ export type GetTaxCalculationsCalculationLineItems = ( | Response > -const getTaxRegistrationsResponder = { +const getTaxRegistrations = b((r) => ({ with200: r.with200<{ data: t_tax_registration[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_tax_registration), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/tax/registrations")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTaxRegistrationsResponder = typeof getTaxRegistrationsResponder & +type GetTaxRegistrationsResponder = (typeof getTaxRegistrations)["responder"] & KoaRuntimeResponder -const getTaxRegistrationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_registration), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/tax/registrations")), - }), - ], - ], - s_error, -) - export type GetTaxRegistrations = ( params: Params< void, @@ -16068,19 +13940,14 @@ export type GetTaxRegistrations = ( | Response > -const postTaxRegistrationsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxRegistrations = b((r) => ({ + with200: r.with200(s_tax_registration), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostTaxRegistrationsResponder = typeof postTaxRegistrationsResponder & - KoaRuntimeResponder +})) -const postTaxRegistrationsResponseValidator = responseValidationFactory( - [["200", s_tax_registration]], - s_error, -) +type PostTaxRegistrationsResponder = + (typeof postTaxRegistrations)["responder"] & KoaRuntimeResponder export type PostTaxRegistrations = ( params: Params, @@ -16092,19 +13959,14 @@ export type PostTaxRegistrations = ( | Response > -const getTaxRegistrationsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTaxRegistrationsId = b((r) => ({ + with200: r.with200(s_tax_registration), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetTaxRegistrationsIdResponder = typeof getTaxRegistrationsIdResponder & - KoaRuntimeResponder +})) -const getTaxRegistrationsIdResponseValidator = responseValidationFactory( - [["200", s_tax_registration]], - s_error, -) +type GetTaxRegistrationsIdResponder = + (typeof getTaxRegistrationsId)["responder"] & KoaRuntimeResponder export type GetTaxRegistrationsId = ( params: Params< @@ -16121,19 +13983,14 @@ export type GetTaxRegistrationsId = ( | Response > -const postTaxRegistrationsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxRegistrationsId = b((r) => ({ + with200: r.with200(s_tax_registration), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTaxRegistrationsIdResponder = typeof postTaxRegistrationsIdResponder & - KoaRuntimeResponder - -const postTaxRegistrationsIdResponseValidator = responseValidationFactory( - [["200", s_tax_registration]], - s_error, -) +type PostTaxRegistrationsIdResponder = + (typeof postTaxRegistrationsId)["responder"] & KoaRuntimeResponder export type PostTaxRegistrationsId = ( params: Params< @@ -16150,20 +14007,15 @@ export type PostTaxRegistrationsId = ( | Response > -const getTaxSettingsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTaxSettings = b((r) => ({ + with200: r.with200(s_tax_settings), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTaxSettingsResponder = typeof getTaxSettingsResponder & +type GetTaxSettingsResponder = (typeof getTaxSettings)["responder"] & KoaRuntimeResponder -const getTaxSettingsResponseValidator = responseValidationFactory( - [["200", s_tax_settings]], - s_error, -) - export type GetTaxSettings = ( params: Params< void, @@ -16179,20 +14031,15 @@ export type GetTaxSettings = ( | Response > -const postTaxSettingsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxSettings = b((r) => ({ + with200: r.with200(s_tax_settings), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTaxSettingsResponder = typeof postTaxSettingsResponder & +type PostTaxSettingsResponder = (typeof postTaxSettings)["responder"] & KoaRuntimeResponder -const postTaxSettingsResponseValidator = responseValidationFactory( - [["200", s_tax_settings]], - s_error, -) - export type PostTaxSettings = ( params: Params, respond: PostTaxSettingsResponder, @@ -16203,17 +14050,15 @@ export type PostTaxSettings = ( | Response > -const postTaxTransactionsCreateFromCalculationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxTransactionsCreateFromCalculation = b((r) => ({ + with200: r.with200(s_tax_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTaxTransactionsCreateFromCalculationResponder = - typeof postTaxTransactionsCreateFromCalculationResponder & KoaRuntimeResponder - -const postTaxTransactionsCreateFromCalculationResponseValidator = - responseValidationFactory([["200", s_tax_transaction]], s_error) + (typeof postTaxTransactionsCreateFromCalculation)["responder"] & + KoaRuntimeResponder export type PostTaxTransactionsCreateFromCalculation = ( params: Params< @@ -16230,17 +14075,14 @@ export type PostTaxTransactionsCreateFromCalculation = ( | Response > -const postTaxTransactionsCreateReversalResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxTransactionsCreateReversal = b((r) => ({ + with200: r.with200(s_tax_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTaxTransactionsCreateReversalResponder = - typeof postTaxTransactionsCreateReversalResponder & KoaRuntimeResponder - -const postTaxTransactionsCreateReversalResponseValidator = - responseValidationFactory([["200", s_tax_transaction]], s_error) + (typeof postTaxTransactionsCreateReversal)["responder"] & KoaRuntimeResponder export type PostTaxTransactionsCreateReversal = ( params: Params< @@ -16257,17 +14099,14 @@ export type PostTaxTransactionsCreateReversal = ( | Response > -const getTaxTransactionsTransactionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTaxTransactionsTransaction = b((r) => ({ + with200: r.with200(s_tax_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTaxTransactionsTransactionResponder = - typeof getTaxTransactionsTransactionResponder & KoaRuntimeResponder - -const getTaxTransactionsTransactionResponseValidator = - responseValidationFactory([["200", s_tax_transaction]], s_error) + (typeof getTaxTransactionsTransaction)["responder"] & KoaRuntimeResponder export type GetTaxTransactionsTransaction = ( params: Params< @@ -16284,38 +14123,30 @@ export type GetTaxTransactionsTransaction = ( | Response > -const getTaxTransactionsTransactionLineItemsResponder = { +const getTaxTransactionsTransactionLineItems = b((r) => ({ with200: r.with200<{ data: t_tax_transaction_line_item[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_tax_transaction_line_item), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/tax/transactions/[^/]+/line_items")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTaxTransactionsTransactionLineItemsResponder = - typeof getTaxTransactionsTransactionLineItemsResponder & KoaRuntimeResponder - -const getTaxTransactionsTransactionLineItemsResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_transaction_line_item), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/tax/transactions/[^/]+/line_items")), - }), - ], - ], - s_error, - ) + (typeof getTaxTransactionsTransactionLineItems)["responder"] & + KoaRuntimeResponder export type GetTaxTransactionsTransactionLineItems = ( params: Params< @@ -16340,33 +14171,26 @@ export type GetTaxTransactionsTransactionLineItems = ( | Response > -const getTaxCodesResponder = { +const getTaxCodes = b((r) => ({ with200: r.with200<{ data: t_tax_code[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_tax_code), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTaxCodesResponder = typeof getTaxCodesResponder & KoaRuntimeResponder - -const getTaxCodesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_code), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) +type GetTaxCodesResponder = (typeof getTaxCodes)["responder"] & + KoaRuntimeResponder export type GetTaxCodes = ( params: Params< @@ -16391,20 +14215,15 @@ export type GetTaxCodes = ( | Response > -const getTaxCodesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTaxCodesId = b((r) => ({ + with200: r.with200(s_tax_code), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTaxCodesIdResponder = typeof getTaxCodesIdResponder & +type GetTaxCodesIdResponder = (typeof getTaxCodesId)["responder"] & KoaRuntimeResponder -const getTaxCodesIdResponseValidator = responseValidationFactory( - [["200", s_tax_code]], - s_error, -) - export type GetTaxCodesId = ( params: Params< t_GetTaxCodesIdParamSchema, @@ -16420,33 +14239,25 @@ export type GetTaxCodesId = ( | Response > -const getTaxIdsResponder = { +const getTaxIds = b((r) => ({ with200: r.with200<{ data: t_tax_id[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_tax_id)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetTaxIdsResponder = typeof getTaxIdsResponder & KoaRuntimeResponder +})) -const getTaxIdsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_tax_id)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) +type GetTaxIdsResponder = (typeof getTaxIds)["responder"] & KoaRuntimeResponder export type GetTaxIds = ( params: Params< @@ -16471,18 +14282,14 @@ export type GetTaxIds = ( | Response > -const postTaxIdsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxIds = b((r) => ({ + with200: r.with200(s_tax_id), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostTaxIdsResponder = typeof postTaxIdsResponder & KoaRuntimeResponder +})) -const postTaxIdsResponseValidator = responseValidationFactory( - [["200", s_tax_id]], - s_error, -) +type PostTaxIdsResponder = (typeof postTaxIds)["responder"] & + KoaRuntimeResponder export type PostTaxIds = ( params: Params, @@ -16494,20 +14301,15 @@ export type PostTaxIds = ( | Response > -const deleteTaxIdsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteTaxIdsId = b((r) => ({ + with200: r.with200(s_deleted_tax_id), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type DeleteTaxIdsIdResponder = typeof deleteTaxIdsIdResponder & +type DeleteTaxIdsIdResponder = (typeof deleteTaxIdsId)["responder"] & KoaRuntimeResponder -const deleteTaxIdsIdResponseValidator = responseValidationFactory( - [["200", s_deleted_tax_id]], - s_error, -) - export type DeleteTaxIdsId = ( params: Params< t_DeleteTaxIdsIdParamSchema, @@ -16523,18 +14325,14 @@ export type DeleteTaxIdsId = ( | Response > -const getTaxIdsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTaxIdsId = b((r) => ({ + with200: r.with200(s_tax_id), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTaxIdsIdResponder = typeof getTaxIdsIdResponder & KoaRuntimeResponder - -const getTaxIdsIdResponseValidator = responseValidationFactory( - [["200", s_tax_id]], - s_error, -) +type GetTaxIdsIdResponder = (typeof getTaxIdsId)["responder"] & + KoaRuntimeResponder export type GetTaxIdsId = ( params: Params< @@ -16551,33 +14349,26 @@ export type GetTaxIdsId = ( | Response > -const getTaxRatesResponder = { +const getTaxRates = b((r) => ({ with200: r.with200<{ data: t_tax_rate[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_tax_rate), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/tax_rates")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetTaxRatesResponder = typeof getTaxRatesResponder & KoaRuntimeResponder +})) -const getTaxRatesResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_tax_rate), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/tax_rates")), - }), - ], - ], - s_error, -) +type GetTaxRatesResponder = (typeof getTaxRates)["responder"] & + KoaRuntimeResponder export type GetTaxRates = ( params: Params< @@ -16602,18 +14393,14 @@ export type GetTaxRates = ( | Response > -const postTaxRatesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxRates = b((r) => ({ + with200: r.with200(s_tax_rate), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostTaxRatesResponder = typeof postTaxRatesResponder & KoaRuntimeResponder +})) -const postTaxRatesResponseValidator = responseValidationFactory( - [["200", s_tax_rate]], - s_error, -) +type PostTaxRatesResponder = (typeof postTaxRates)["responder"] & + KoaRuntimeResponder export type PostTaxRates = ( params: Params, @@ -16625,20 +14412,15 @@ export type PostTaxRates = ( | Response > -const getTaxRatesTaxRateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTaxRatesTaxRate = b((r) => ({ + with200: r.with200(s_tax_rate), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTaxRatesTaxRateResponder = typeof getTaxRatesTaxRateResponder & +type GetTaxRatesTaxRateResponder = (typeof getTaxRatesTaxRate)["responder"] & KoaRuntimeResponder -const getTaxRatesTaxRateResponseValidator = responseValidationFactory( - [["200", s_tax_rate]], - s_error, -) - export type GetTaxRatesTaxRate = ( params: Params< t_GetTaxRatesTaxRateParamSchema, @@ -16654,20 +14436,15 @@ export type GetTaxRatesTaxRate = ( | Response > -const postTaxRatesTaxRateResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTaxRatesTaxRate = b((r) => ({ + with200: r.with200(s_tax_rate), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTaxRatesTaxRateResponder = typeof postTaxRatesTaxRateResponder & +type PostTaxRatesTaxRateResponder = (typeof postTaxRatesTaxRate)["responder"] & KoaRuntimeResponder -const postTaxRatesTaxRateResponseValidator = responseValidationFactory( - [["200", s_tax_rate]], - s_error, -) - export type PostTaxRatesTaxRate = ( params: Params< t_PostTaxRatesTaxRateParamSchema, @@ -16683,37 +14460,29 @@ export type PostTaxRatesTaxRate = ( | Response > -const getTerminalConfigurationsResponder = { +const getTerminalConfigurations = b((r) => ({ with200: r.with200<{ data: t_terminal_configuration[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_terminal_configuration)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/terminal/configurations")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTerminalConfigurationsResponder = - typeof getTerminalConfigurationsResponder & KoaRuntimeResponder - -const getTerminalConfigurationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_terminal_configuration)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/terminal/configurations")), - }), - ], - ], - s_error, -) + (typeof getTerminalConfigurations)["responder"] & KoaRuntimeResponder export type GetTerminalConfigurations = ( params: Params< @@ -16738,19 +14507,14 @@ export type GetTerminalConfigurations = ( | Response > -const postTerminalConfigurationsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalConfigurations = b((r) => ({ + with200: r.with200(s_terminal_configuration), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalConfigurationsResponder = - typeof postTerminalConfigurationsResponder & KoaRuntimeResponder - -const postTerminalConfigurationsResponseValidator = responseValidationFactory( - [["200", s_terminal_configuration]], - s_error, -) + (typeof postTerminalConfigurations)["responder"] & KoaRuntimeResponder export type PostTerminalConfigurations = ( params: Params< @@ -16767,22 +14531,18 @@ export type PostTerminalConfigurations = ( | Response > -const deleteTerminalConfigurationsConfigurationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteTerminalConfigurationsConfiguration = b((r) => ({ + with200: r.with200( + s_deleted_terminal_configuration, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteTerminalConfigurationsConfigurationResponder = - typeof deleteTerminalConfigurationsConfigurationResponder & + (typeof deleteTerminalConfigurationsConfiguration)["responder"] & KoaRuntimeResponder -const deleteTerminalConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [["200", s_deleted_terminal_configuration]], - s_error, - ) - export type DeleteTerminalConfigurationsConfiguration = ( params: Params< t_DeleteTerminalConfigurationsConfigurationParamSchema, @@ -16798,30 +14558,22 @@ export type DeleteTerminalConfigurationsConfiguration = ( | Response > -const getTerminalConfigurationsConfigurationResponder = { +const getTerminalConfigurationsConfiguration = b((r) => ({ with200: r.with200< t_terminal_configuration | t_deleted_terminal_configuration - >, - withDefault: r.withDefault, + >( + z.union([ + z.lazy(() => s_terminal_configuration), + s_deleted_terminal_configuration, + ]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTerminalConfigurationsConfigurationResponder = - typeof getTerminalConfigurationsConfigurationResponder & KoaRuntimeResponder - -const getTerminalConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.lazy(() => s_terminal_configuration), - s_deleted_terminal_configuration, - ]), - ], - ], - s_error, - ) + (typeof getTerminalConfigurationsConfiguration)["responder"] & + KoaRuntimeResponder export type GetTerminalConfigurationsConfiguration = ( params: Params< @@ -16838,30 +14590,22 @@ export type GetTerminalConfigurationsConfiguration = ( | Response > -const postTerminalConfigurationsConfigurationResponder = { +const postTerminalConfigurationsConfiguration = b((r) => ({ with200: r.with200< t_terminal_configuration | t_deleted_terminal_configuration - >, - withDefault: r.withDefault, + >( + z.union([ + z.lazy(() => s_terminal_configuration), + s_deleted_terminal_configuration, + ]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalConfigurationsConfigurationResponder = - typeof postTerminalConfigurationsConfigurationResponder & KoaRuntimeResponder - -const postTerminalConfigurationsConfigurationResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.union([ - z.lazy(() => s_terminal_configuration), - s_deleted_terminal_configuration, - ]), - ], - ], - s_error, - ) + (typeof postTerminalConfigurationsConfiguration)["responder"] & + KoaRuntimeResponder export type PostTerminalConfigurationsConfiguration = ( params: Params< @@ -16878,19 +14622,14 @@ export type PostTerminalConfigurationsConfiguration = ( | Response > -const postTerminalConnectionTokensResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalConnectionTokens = b((r) => ({ + with200: r.with200(s_terminal_connection_token), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalConnectionTokensResponder = - typeof postTerminalConnectionTokensResponder & KoaRuntimeResponder - -const postTerminalConnectionTokensResponseValidator = responseValidationFactory( - [["200", s_terminal_connection_token]], - s_error, -) + (typeof postTerminalConnectionTokens)["responder"] & KoaRuntimeResponder export type PostTerminalConnectionTokens = ( params: Params< @@ -16907,34 +14646,26 @@ export type PostTerminalConnectionTokens = ( | Response > -const getTerminalLocationsResponder = { +const getTerminalLocations = b((r) => ({ with200: r.with200<{ data: t_terminal_location[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_terminal_location), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/terminal/locations")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTerminalLocationsResponder = typeof getTerminalLocationsResponder & - KoaRuntimeResponder - -const getTerminalLocationsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_terminal_location), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/terminal/locations")), - }), - ], - ], - s_error, -) +type GetTerminalLocationsResponder = + (typeof getTerminalLocations)["responder"] & KoaRuntimeResponder export type GetTerminalLocations = ( params: Params< @@ -16959,19 +14690,14 @@ export type GetTerminalLocations = ( | Response > -const postTerminalLocationsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalLocations = b((r) => ({ + with200: r.with200(s_terminal_location), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTerminalLocationsResponder = typeof postTerminalLocationsResponder & - KoaRuntimeResponder - -const postTerminalLocationsResponseValidator = responseValidationFactory( - [["200", s_terminal_location]], - s_error, -) +type PostTerminalLocationsResponder = + (typeof postTerminalLocations)["responder"] & KoaRuntimeResponder export type PostTerminalLocations = ( params: Params, @@ -16983,17 +14709,14 @@ export type PostTerminalLocations = ( | Response > -const deleteTerminalLocationsLocationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteTerminalLocationsLocation = b((r) => ({ + with200: r.with200(s_deleted_terminal_location), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteTerminalLocationsLocationResponder = - typeof deleteTerminalLocationsLocationResponder & KoaRuntimeResponder - -const deleteTerminalLocationsLocationResponseValidator = - responseValidationFactory([["200", s_deleted_terminal_location]], s_error) + (typeof deleteTerminalLocationsLocation)["responder"] & KoaRuntimeResponder export type DeleteTerminalLocationsLocation = ( params: Params< @@ -17010,19 +14733,16 @@ export type DeleteTerminalLocationsLocation = ( | Response > -const getTerminalLocationsLocationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTerminalLocationsLocation = b((r) => ({ + with200: r.with200( + z.union([s_terminal_location, s_deleted_terminal_location]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTerminalLocationsLocationResponder = - typeof getTerminalLocationsLocationResponder & KoaRuntimeResponder - -const getTerminalLocationsLocationResponseValidator = responseValidationFactory( - [["200", z.union([s_terminal_location, s_deleted_terminal_location])]], - s_error, -) + (typeof getTerminalLocationsLocation)["responder"] & KoaRuntimeResponder export type GetTerminalLocationsLocation = ( params: Params< @@ -17039,20 +14759,16 @@ export type GetTerminalLocationsLocation = ( | Response > -const postTerminalLocationsLocationResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalLocationsLocation = b((r) => ({ + with200: r.with200( + z.union([s_terminal_location, s_deleted_terminal_location]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalLocationsLocationResponder = - typeof postTerminalLocationsLocationResponder & KoaRuntimeResponder - -const postTerminalLocationsLocationResponseValidator = - responseValidationFactory( - [["200", z.union([s_terminal_location, s_deleted_terminal_location])]], - s_error, - ) + (typeof postTerminalLocationsLocation)["responder"] & KoaRuntimeResponder export type PostTerminalLocationsLocation = ( params: Params< @@ -17069,35 +14785,27 @@ export type PostTerminalLocationsLocation = ( | Response > -const getTerminalReadersResponder = { +const getTerminalReaders = b((r) => ({ with200: r.with200<{ data: t_terminal_reader[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_terminal_reader)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTerminalReadersResponder = typeof getTerminalReadersResponder & +type GetTerminalReadersResponder = (typeof getTerminalReaders)["responder"] & KoaRuntimeResponder -const getTerminalReadersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_terminal_reader)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) - export type GetTerminalReaders = ( params: Params< void, @@ -17121,20 +14829,15 @@ export type GetTerminalReaders = ( | Response > -const postTerminalReadersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalReaders = b((r) => ({ + with200: r.with200(s_terminal_reader), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTerminalReadersResponder = typeof postTerminalReadersResponder & +type PostTerminalReadersResponder = (typeof postTerminalReaders)["responder"] & KoaRuntimeResponder -const postTerminalReadersResponseValidator = responseValidationFactory( - [["200", s_terminal_reader]], - s_error, -) - export type PostTerminalReaders = ( params: Params, respond: PostTerminalReadersResponder, @@ -17145,19 +14848,14 @@ export type PostTerminalReaders = ( | Response > -const deleteTerminalReadersReaderResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteTerminalReadersReader = b((r) => ({ + with200: r.with200(s_deleted_terminal_reader), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteTerminalReadersReaderResponder = - typeof deleteTerminalReadersReaderResponder & KoaRuntimeResponder - -const deleteTerminalReadersReaderResponseValidator = responseValidationFactory( - [["200", s_deleted_terminal_reader]], - s_error, -) + (typeof deleteTerminalReadersReader)["responder"] & KoaRuntimeResponder export type DeleteTerminalReadersReader = ( params: Params< @@ -17174,24 +14872,16 @@ export type DeleteTerminalReadersReader = ( | Response > -const getTerminalReadersReaderResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTerminalReadersReader = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_terminal_reader), s_deleted_terminal_reader]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTerminalReadersReaderResponder = - typeof getTerminalReadersReaderResponder & KoaRuntimeResponder - -const getTerminalReadersReaderResponseValidator = responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_terminal_reader), s_deleted_terminal_reader]), - ], - ], - s_error, -) + (typeof getTerminalReadersReader)["responder"] & KoaRuntimeResponder export type GetTerminalReadersReader = ( params: Params< @@ -17208,24 +14898,16 @@ export type GetTerminalReadersReader = ( | Response > -const postTerminalReadersReaderResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalReadersReader = b((r) => ({ + with200: r.with200( + z.union([z.lazy(() => s_terminal_reader), s_deleted_terminal_reader]), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalReadersReaderResponder = - typeof postTerminalReadersReaderResponder & KoaRuntimeResponder - -const postTerminalReadersReaderResponseValidator = responseValidationFactory( - [ - [ - "200", - z.union([z.lazy(() => s_terminal_reader), s_deleted_terminal_reader]), - ], - ], - s_error, -) + (typeof postTerminalReadersReader)["responder"] & KoaRuntimeResponder export type PostTerminalReadersReader = ( params: Params< @@ -17242,17 +14924,15 @@ export type PostTerminalReadersReader = ( | Response > -const postTerminalReadersReaderCancelActionResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalReadersReaderCancelAction = b((r) => ({ + with200: r.with200(s_terminal_reader), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalReadersReaderCancelActionResponder = - typeof postTerminalReadersReaderCancelActionResponder & KoaRuntimeResponder - -const postTerminalReadersReaderCancelActionResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) + (typeof postTerminalReadersReaderCancelAction)["responder"] & + KoaRuntimeResponder export type PostTerminalReadersReaderCancelAction = ( params: Params< @@ -17269,19 +14949,16 @@ export type PostTerminalReadersReaderCancelAction = ( | Response > -const postTerminalReadersReaderProcessPaymentIntentResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalReadersReaderProcessPaymentIntent = b((r) => ({ + with200: r.with200(s_terminal_reader), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalReadersReaderProcessPaymentIntentResponder = - typeof postTerminalReadersReaderProcessPaymentIntentResponder & + (typeof postTerminalReadersReaderProcessPaymentIntent)["responder"] & KoaRuntimeResponder -const postTerminalReadersReaderProcessPaymentIntentResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - export type PostTerminalReadersReaderProcessPaymentIntent = ( params: Params< t_PostTerminalReadersReaderProcessPaymentIntentParamSchema, @@ -17297,19 +14974,16 @@ export type PostTerminalReadersReaderProcessPaymentIntent = ( | Response > -const postTerminalReadersReaderProcessSetupIntentResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalReadersReaderProcessSetupIntent = b((r) => ({ + with200: r.with200(s_terminal_reader), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalReadersReaderProcessSetupIntentResponder = - typeof postTerminalReadersReaderProcessSetupIntentResponder & + (typeof postTerminalReadersReaderProcessSetupIntent)["responder"] & KoaRuntimeResponder -const postTerminalReadersReaderProcessSetupIntentResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - export type PostTerminalReadersReaderProcessSetupIntent = ( params: Params< t_PostTerminalReadersReaderProcessSetupIntentParamSchema, @@ -17325,17 +14999,15 @@ export type PostTerminalReadersReaderProcessSetupIntent = ( | Response > -const postTerminalReadersReaderRefundPaymentResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalReadersReaderRefundPayment = b((r) => ({ + with200: r.with200(s_terminal_reader), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalReadersReaderRefundPaymentResponder = - typeof postTerminalReadersReaderRefundPaymentResponder & KoaRuntimeResponder - -const postTerminalReadersReaderRefundPaymentResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) + (typeof postTerminalReadersReaderRefundPayment)["responder"] & + KoaRuntimeResponder export type PostTerminalReadersReaderRefundPayment = ( params: Params< @@ -17352,19 +15024,16 @@ export type PostTerminalReadersReaderRefundPayment = ( | Response > -const postTerminalReadersReaderSetReaderDisplayResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTerminalReadersReaderSetReaderDisplay = b((r) => ({ + with200: r.with200(s_terminal_reader), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTerminalReadersReaderSetReaderDisplayResponder = - typeof postTerminalReadersReaderSetReaderDisplayResponder & + (typeof postTerminalReadersReaderSetReaderDisplay)["responder"] & KoaRuntimeResponder -const postTerminalReadersReaderSetReaderDisplayResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - export type PostTerminalReadersReaderSetReaderDisplay = ( params: Params< t_PostTerminalReadersReaderSetReaderDisplayParamSchema, @@ -17380,17 +15049,14 @@ export type PostTerminalReadersReaderSetReaderDisplay = ( | Response > -const postTestHelpersConfirmationTokensResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersConfirmationTokens = b((r) => ({ + with200: r.with200(s_confirmation_token), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersConfirmationTokensResponder = - typeof postTestHelpersConfirmationTokensResponder & KoaRuntimeResponder - -const postTestHelpersConfirmationTokensResponseValidator = - responseValidationFactory([["200", s_confirmation_token]], s_error) + (typeof postTestHelpersConfirmationTokens)["responder"] & KoaRuntimeResponder export type PostTestHelpersConfirmationTokens = ( params: Params< @@ -17407,22 +15073,18 @@ export type PostTestHelpersConfirmationTokens = ( | Response > -const postTestHelpersCustomersCustomerFundCashBalanceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersCustomersCustomerFundCashBalance = b((r) => ({ + with200: r.with200( + s_customer_cash_balance_transaction, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersCustomersCustomerFundCashBalanceResponder = - typeof postTestHelpersCustomersCustomerFundCashBalanceResponder & + (typeof postTestHelpersCustomersCustomerFundCashBalance)["responder"] & KoaRuntimeResponder -const postTestHelpersCustomersCustomerFundCashBalanceResponseValidator = - responseValidationFactory( - [["200", s_customer_cash_balance_transaction]], - s_error, - ) - export type PostTestHelpersCustomersCustomerFundCashBalance = ( params: Params< t_PostTestHelpersCustomersCustomerFundCashBalanceParamSchema, @@ -17438,17 +15100,15 @@ export type PostTestHelpersCustomersCustomerFundCashBalance = ( | Response > -const postTestHelpersIssuingAuthorizationsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingAuthorizations = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingAuthorizationsResponder = - typeof postTestHelpersIssuingAuthorizationsResponder & KoaRuntimeResponder - -const postTestHelpersIssuingAuthorizationsResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) + (typeof postTestHelpersIssuingAuthorizations)["responder"] & + KoaRuntimeResponder export type PostTestHelpersIssuingAuthorizations = ( params: Params< @@ -17465,19 +15125,16 @@ export type PostTestHelpersIssuingAuthorizations = ( | Response > -const postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingAuthorizationsAuthorizationCapture = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder = - typeof postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder & + (typeof postTestHelpersIssuingAuthorizationsAuthorizationCapture)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - export type PostTestHelpersIssuingAuthorizationsAuthorizationCapture = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationCaptureParamSchema, @@ -17494,19 +15151,16 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationCapture = ( | Response > -const postTestHelpersIssuingAuthorizationsAuthorizationExpireResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingAuthorizationsAuthorizationExpire = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingAuthorizationsAuthorizationExpireResponder = - typeof postTestHelpersIssuingAuthorizationsAuthorizationExpireResponder & + (typeof postTestHelpersIssuingAuthorizationsAuthorizationExpire)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingAuthorizationsAuthorizationExpireResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - export type PostTestHelpersIssuingAuthorizationsAuthorizationExpire = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationExpireParamSchema, @@ -17523,20 +15177,18 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationExpire = ( | Response > -const postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder = - { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount = b( + (r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, - } + }), +) type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder = - typeof postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder & + (typeof postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - export type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountParamSchema, @@ -17552,20 +15204,17 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount = ( | Response > -const postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder = - { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond = + b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, - } + })) type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder = - typeof postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder & + (typeof postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - export type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond = ( params: Params< @@ -17582,19 +15231,16 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesResp | Response > -const postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingAuthorizationsAuthorizationIncrement = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder = - typeof postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder & + (typeof postTestHelpersIssuingAuthorizationsAuthorizationIncrement)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - export type PostTestHelpersIssuingAuthorizationsAuthorizationIncrement = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationIncrementParamSchema, @@ -17610,19 +15256,16 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationIncrement = ( | Response > -const postTestHelpersIssuingAuthorizationsAuthorizationReverseResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingAuthorizationsAuthorizationReverse = b((r) => ({ + with200: r.with200(s_issuing_authorization), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingAuthorizationsAuthorizationReverseResponder = - typeof postTestHelpersIssuingAuthorizationsAuthorizationReverseResponder & + (typeof postTestHelpersIssuingAuthorizationsAuthorizationReverse)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingAuthorizationsAuthorizationReverseResponseValidator = - responseValidationFactory([["200", s_issuing_authorization]], s_error) - export type PostTestHelpersIssuingAuthorizationsAuthorizationReverse = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationReverseParamSchema, @@ -17639,19 +15282,16 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationReverse = ( | Response > -const postTestHelpersIssuingCardsCardShippingDeliverResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingCardsCardShippingDeliver = b((r) => ({ + with200: r.with200(s_issuing_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingCardsCardShippingDeliverResponder = - typeof postTestHelpersIssuingCardsCardShippingDeliverResponder & + (typeof postTestHelpersIssuingCardsCardShippingDeliver)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingCardsCardShippingDeliverResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - export type PostTestHelpersIssuingCardsCardShippingDeliver = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingDeliverParamSchema, @@ -17667,19 +15307,16 @@ export type PostTestHelpersIssuingCardsCardShippingDeliver = ( | Response > -const postTestHelpersIssuingCardsCardShippingFailResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingCardsCardShippingFail = b((r) => ({ + with200: r.with200(s_issuing_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingCardsCardShippingFailResponder = - typeof postTestHelpersIssuingCardsCardShippingFailResponder & + (typeof postTestHelpersIssuingCardsCardShippingFail)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingCardsCardShippingFailResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - export type PostTestHelpersIssuingCardsCardShippingFail = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingFailParamSchema, @@ -17695,19 +15332,16 @@ export type PostTestHelpersIssuingCardsCardShippingFail = ( | Response > -const postTestHelpersIssuingCardsCardShippingReturnResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingCardsCardShippingReturn = b((r) => ({ + with200: r.with200(s_issuing_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingCardsCardShippingReturnResponder = - typeof postTestHelpersIssuingCardsCardShippingReturnResponder & + (typeof postTestHelpersIssuingCardsCardShippingReturn)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingCardsCardShippingReturnResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - export type PostTestHelpersIssuingCardsCardShippingReturn = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingReturnParamSchema, @@ -17723,19 +15357,16 @@ export type PostTestHelpersIssuingCardsCardShippingReturn = ( | Response > -const postTestHelpersIssuingCardsCardShippingShipResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingCardsCardShippingShip = b((r) => ({ + with200: r.with200(s_issuing_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingCardsCardShippingShipResponder = - typeof postTestHelpersIssuingCardsCardShippingShipResponder & + (typeof postTestHelpersIssuingCardsCardShippingShip)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingCardsCardShippingShipResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - export type PostTestHelpersIssuingCardsCardShippingShip = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingShipParamSchema, @@ -17751,19 +15382,16 @@ export type PostTestHelpersIssuingCardsCardShippingShip = ( | Response > -const postTestHelpersIssuingCardsCardShippingSubmitResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingCardsCardShippingSubmit = b((r) => ({ + with200: r.with200(s_issuing_card), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingCardsCardShippingSubmitResponder = - typeof postTestHelpersIssuingCardsCardShippingSubmitResponder & + (typeof postTestHelpersIssuingCardsCardShippingSubmit)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingCardsCardShippingSubmitResponseValidator = - responseValidationFactory([["200", s_issuing_card]], s_error) - export type PostTestHelpersIssuingCardsCardShippingSubmit = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingSubmitParamSchema, @@ -17779,23 +15407,19 @@ export type PostTestHelpersIssuingCardsCardShippingSubmit = ( | Response > -const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder = - { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate = + b((r) => ({ + with200: r.with200( + s_issuing_personalization_design, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, - } + })) type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder = - typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder & + (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate = ( params: Params< @@ -17813,23 +15437,19 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignAct | Response > -const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder = - { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate = + b((r) => ({ + with200: r.with200( + s_issuing_personalization_design, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, - } + })) type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder = - typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder & + (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate = ( params: Params< @@ -17847,23 +15467,19 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDea | Response > -const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder = - { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject = + b((r) => ({ + with200: r.with200( + s_issuing_personalization_design, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, - } + })) type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder = - typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder & + (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponseValidator = - responseValidationFactory( - [["200", s_issuing_personalization_design]], - s_error, - ) - export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject = ( params: Params< @@ -17880,17 +15496,14 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRej | Response > -const postTestHelpersIssuingSettlementsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingSettlements = b((r) => ({ + with200: r.with200(s_issuing_settlement), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingSettlementsResponder = - typeof postTestHelpersIssuingSettlementsResponder & KoaRuntimeResponder - -const postTestHelpersIssuingSettlementsResponseValidator = - responseValidationFactory([["200", s_issuing_settlement]], s_error) + (typeof postTestHelpersIssuingSettlements)["responder"] & KoaRuntimeResponder export type PostTestHelpersIssuingSettlements = ( params: Params< @@ -17907,19 +15520,16 @@ export type PostTestHelpersIssuingSettlements = ( | Response > -const postTestHelpersIssuingSettlementsSettlementCompleteResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingSettlementsSettlementComplete = b((r) => ({ + with200: r.with200(s_issuing_settlement), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingSettlementsSettlementCompleteResponder = - typeof postTestHelpersIssuingSettlementsSettlementCompleteResponder & + (typeof postTestHelpersIssuingSettlementsSettlementComplete)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingSettlementsSettlementCompleteResponseValidator = - responseValidationFactory([["200", s_issuing_settlement]], s_error) - export type PostTestHelpersIssuingSettlementsSettlementComplete = ( params: Params< t_PostTestHelpersIssuingSettlementsSettlementCompleteParamSchema, @@ -17935,19 +15545,16 @@ export type PostTestHelpersIssuingSettlementsSettlementComplete = ( | Response > -const postTestHelpersIssuingTransactionsCreateForceCaptureResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingTransactionsCreateForceCapture = b((r) => ({ + with200: r.with200(s_issuing_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingTransactionsCreateForceCaptureResponder = - typeof postTestHelpersIssuingTransactionsCreateForceCaptureResponder & + (typeof postTestHelpersIssuingTransactionsCreateForceCapture)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingTransactionsCreateForceCaptureResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) - export type PostTestHelpersIssuingTransactionsCreateForceCapture = ( params: Params< void, @@ -17963,19 +15570,16 @@ export type PostTestHelpersIssuingTransactionsCreateForceCapture = ( | Response > -const postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingTransactionsCreateUnlinkedRefund = b((r) => ({ + with200: r.with200(s_issuing_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder = - typeof postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder & + (typeof postTestHelpersIssuingTransactionsCreateUnlinkedRefund)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) - export type PostTestHelpersIssuingTransactionsCreateUnlinkedRefund = ( params: Params< void, @@ -17991,19 +15595,16 @@ export type PostTestHelpersIssuingTransactionsCreateUnlinkedRefund = ( | Response > -const postTestHelpersIssuingTransactionsTransactionRefundResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersIssuingTransactionsTransactionRefund = b((r) => ({ + with200: r.with200(s_issuing_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersIssuingTransactionsTransactionRefundResponder = - typeof postTestHelpersIssuingTransactionsTransactionRefundResponder & + (typeof postTestHelpersIssuingTransactionsTransactionRefund)["responder"] & KoaRuntimeResponder -const postTestHelpersIssuingTransactionsTransactionRefundResponseValidator = - responseValidationFactory([["200", s_issuing_transaction]], s_error) - export type PostTestHelpersIssuingTransactionsTransactionRefund = ( params: Params< t_PostTestHelpersIssuingTransactionsTransactionRefundParamSchema, @@ -18019,17 +15620,14 @@ export type PostTestHelpersIssuingTransactionsTransactionRefund = ( | Response > -const postTestHelpersRefundsRefundExpireResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersRefundsRefundExpire = b((r) => ({ + with200: r.with200(s_refund), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersRefundsRefundExpireResponder = - typeof postTestHelpersRefundsRefundExpireResponder & KoaRuntimeResponder - -const postTestHelpersRefundsRefundExpireResponseValidator = - responseValidationFactory([["200", s_refund]], s_error) + (typeof postTestHelpersRefundsRefundExpire)["responder"] & KoaRuntimeResponder export type PostTestHelpersRefundsRefundExpire = ( params: Params< @@ -18046,19 +15644,16 @@ export type PostTestHelpersRefundsRefundExpire = ( | Response > -const postTestHelpersTerminalReadersReaderPresentPaymentMethodResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTerminalReadersReaderPresentPaymentMethod = b((r) => ({ + with200: r.with200(s_terminal_reader), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTerminalReadersReaderPresentPaymentMethodResponder = - typeof postTestHelpersTerminalReadersReaderPresentPaymentMethodResponder & + (typeof postTestHelpersTerminalReadersReaderPresentPaymentMethod)["responder"] & KoaRuntimeResponder -const postTestHelpersTerminalReadersReaderPresentPaymentMethodResponseValidator = - responseValidationFactory([["200", s_terminal_reader]], s_error) - export type PostTestHelpersTerminalReadersReaderPresentPaymentMethod = ( params: Params< t_PostTestHelpersTerminalReadersReaderPresentPaymentMethodParamSchema, @@ -18075,37 +15670,29 @@ export type PostTestHelpersTerminalReadersReaderPresentPaymentMethod = ( | Response > -const getTestHelpersTestClocksResponder = { +const getTestHelpersTestClocks = b((r) => ({ with200: r.with200<{ data: t_test_helpers_test_clock[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_test_helpers_test_clock), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/test_helpers/test_clocks")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTestHelpersTestClocksResponder = - typeof getTestHelpersTestClocksResponder & KoaRuntimeResponder - -const getTestHelpersTestClocksResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_test_helpers_test_clock), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/test_helpers/test_clocks")), - }), - ], - ], - s_error, -) + (typeof getTestHelpersTestClocks)["responder"] & KoaRuntimeResponder export type GetTestHelpersTestClocks = ( params: Params< @@ -18130,19 +15717,14 @@ export type GetTestHelpersTestClocks = ( | Response > -const postTestHelpersTestClocksResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTestClocks = b((r) => ({ + with200: r.with200(s_test_helpers_test_clock), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTestClocksResponder = - typeof postTestHelpersTestClocksResponder & KoaRuntimeResponder - -const postTestHelpersTestClocksResponseValidator = responseValidationFactory( - [["200", s_test_helpers_test_clock]], - s_error, -) + (typeof postTestHelpersTestClocks)["responder"] & KoaRuntimeResponder export type PostTestHelpersTestClocks = ( params: Params, @@ -18154,20 +15736,17 @@ export type PostTestHelpersTestClocks = ( | Response > -const deleteTestHelpersTestClocksTestClockResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteTestHelpersTestClocksTestClock = b((r) => ({ + with200: r.with200( + s_deleted_test_helpers_test_clock, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteTestHelpersTestClocksTestClockResponder = - typeof deleteTestHelpersTestClocksTestClockResponder & KoaRuntimeResponder - -const deleteTestHelpersTestClocksTestClockResponseValidator = - responseValidationFactory( - [["200", s_deleted_test_helpers_test_clock]], - s_error, - ) + (typeof deleteTestHelpersTestClocksTestClock)["responder"] & + KoaRuntimeResponder export type DeleteTestHelpersTestClocksTestClock = ( params: Params< @@ -18184,17 +15763,14 @@ export type DeleteTestHelpersTestClocksTestClock = ( | Response > -const getTestHelpersTestClocksTestClockResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTestHelpersTestClocksTestClock = b((r) => ({ + with200: r.with200(s_test_helpers_test_clock), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTestHelpersTestClocksTestClockResponder = - typeof getTestHelpersTestClocksTestClockResponder & KoaRuntimeResponder - -const getTestHelpersTestClocksTestClockResponseValidator = - responseValidationFactory([["200", s_test_helpers_test_clock]], s_error) + (typeof getTestHelpersTestClocksTestClock)["responder"] & KoaRuntimeResponder export type GetTestHelpersTestClocksTestClock = ( params: Params< @@ -18211,19 +15787,16 @@ export type GetTestHelpersTestClocksTestClock = ( | Response > -const postTestHelpersTestClocksTestClockAdvanceResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTestClocksTestClockAdvance = b((r) => ({ + with200: r.with200(s_test_helpers_test_clock), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTestClocksTestClockAdvanceResponder = - typeof postTestHelpersTestClocksTestClockAdvanceResponder & + (typeof postTestHelpersTestClocksTestClockAdvance)["responder"] & KoaRuntimeResponder -const postTestHelpersTestClocksTestClockAdvanceResponseValidator = - responseValidationFactory([["200", s_test_helpers_test_clock]], s_error) - export type PostTestHelpersTestClocksTestClockAdvance = ( params: Params< t_PostTestHelpersTestClocksTestClockAdvanceParamSchema, @@ -18239,19 +15812,16 @@ export type PostTestHelpersTestClocksTestClockAdvance = ( | Response > -const postTestHelpersTreasuryInboundTransfersIdFailResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryInboundTransfersIdFail = b((r) => ({ + with200: r.with200(s_treasury_inbound_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryInboundTransfersIdFailResponder = - typeof postTestHelpersTreasuryInboundTransfersIdFailResponder & + (typeof postTestHelpersTreasuryInboundTransfersIdFail)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryInboundTransfersIdFailResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - export type PostTestHelpersTreasuryInboundTransfersIdFail = ( params: Params< t_PostTestHelpersTreasuryInboundTransfersIdFailParamSchema, @@ -18267,19 +15837,16 @@ export type PostTestHelpersTreasuryInboundTransfersIdFail = ( | Response > -const postTestHelpersTreasuryInboundTransfersIdReturnResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryInboundTransfersIdReturn = b((r) => ({ + with200: r.with200(s_treasury_inbound_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryInboundTransfersIdReturnResponder = - typeof postTestHelpersTreasuryInboundTransfersIdReturnResponder & + (typeof postTestHelpersTreasuryInboundTransfersIdReturn)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryInboundTransfersIdReturnResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - export type PostTestHelpersTreasuryInboundTransfersIdReturn = ( params: Params< t_PostTestHelpersTreasuryInboundTransfersIdReturnParamSchema, @@ -18295,19 +15862,16 @@ export type PostTestHelpersTreasuryInboundTransfersIdReturn = ( | Response > -const postTestHelpersTreasuryInboundTransfersIdSucceedResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryInboundTransfersIdSucceed = b((r) => ({ + with200: r.with200(s_treasury_inbound_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryInboundTransfersIdSucceedResponder = - typeof postTestHelpersTreasuryInboundTransfersIdSucceedResponder & + (typeof postTestHelpersTreasuryInboundTransfersIdSucceed)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryInboundTransfersIdSucceedResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - export type PostTestHelpersTreasuryInboundTransfersIdSucceed = ( params: Params< t_PostTestHelpersTreasuryInboundTransfersIdSucceedParamSchema, @@ -18323,19 +15887,16 @@ export type PostTestHelpersTreasuryInboundTransfersIdSucceed = ( | Response > -const postTestHelpersTreasuryOutboundPaymentsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryOutboundPaymentsId = b((r) => ({ + with200: r.with200(s_treasury_outbound_payment), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryOutboundPaymentsIdResponder = - typeof postTestHelpersTreasuryOutboundPaymentsIdResponder & + (typeof postTestHelpersTreasuryOutboundPaymentsId)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryOutboundPaymentsIdResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - export type PostTestHelpersTreasuryOutboundPaymentsId = ( params: Params< t_PostTestHelpersTreasuryOutboundPaymentsIdParamSchema, @@ -18351,19 +15912,16 @@ export type PostTestHelpersTreasuryOutboundPaymentsId = ( | Response > -const postTestHelpersTreasuryOutboundPaymentsIdFailResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryOutboundPaymentsIdFail = b((r) => ({ + with200: r.with200(s_treasury_outbound_payment), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryOutboundPaymentsIdFailResponder = - typeof postTestHelpersTreasuryOutboundPaymentsIdFailResponder & + (typeof postTestHelpersTreasuryOutboundPaymentsIdFail)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryOutboundPaymentsIdFailResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - export type PostTestHelpersTreasuryOutboundPaymentsIdFail = ( params: Params< t_PostTestHelpersTreasuryOutboundPaymentsIdFailParamSchema, @@ -18379,19 +15937,16 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdFail = ( | Response > -const postTestHelpersTreasuryOutboundPaymentsIdPostResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryOutboundPaymentsIdPost = b((r) => ({ + with200: r.with200(s_treasury_outbound_payment), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryOutboundPaymentsIdPostResponder = - typeof postTestHelpersTreasuryOutboundPaymentsIdPostResponder & + (typeof postTestHelpersTreasuryOutboundPaymentsIdPost)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryOutboundPaymentsIdPostResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - export type PostTestHelpersTreasuryOutboundPaymentsIdPost = ( params: Params< t_PostTestHelpersTreasuryOutboundPaymentsIdPostParamSchema, @@ -18407,19 +15962,16 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdPost = ( | Response > -const postTestHelpersTreasuryOutboundPaymentsIdReturnResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryOutboundPaymentsIdReturn = b((r) => ({ + with200: r.with200(s_treasury_outbound_payment), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryOutboundPaymentsIdReturnResponder = - typeof postTestHelpersTreasuryOutboundPaymentsIdReturnResponder & + (typeof postTestHelpersTreasuryOutboundPaymentsIdReturn)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryOutboundPaymentsIdReturnResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) - export type PostTestHelpersTreasuryOutboundPaymentsIdReturn = ( params: Params< t_PostTestHelpersTreasuryOutboundPaymentsIdReturnParamSchema, @@ -18435,19 +15987,18 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdReturn = ( | Response > -const postTestHelpersTreasuryOutboundTransfersOutboundTransferResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryOutboundTransfersOutboundTransfer = b((r) => ({ + with200: r.with200( + s_treasury_outbound_transfer, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryOutboundTransfersOutboundTransferResponder = - typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferResponder & + (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransfer)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryOutboundTransfersOutboundTransferResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - export type PostTestHelpersTreasuryOutboundTransfersOutboundTransfer = ( params: Params< t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferParamSchema, @@ -18463,19 +16014,18 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransfer = ( | Response > -const postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryOutboundTransfersOutboundTransferFail = b((r) => ({ + with200: r.with200( + s_treasury_outbound_transfer, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder = - typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder & + (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferFail)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail = ( params: Params< t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailParamSchema, @@ -18492,19 +16042,18 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail = ( | Response > -const postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryOutboundTransfersOutboundTransferPost = b((r) => ({ + with200: r.with200( + s_treasury_outbound_transfer, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder = - typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder & + (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferPost)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost = ( params: Params< t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostParamSchema, @@ -18521,20 +16070,20 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost = ( | Response > -const postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder = - { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = b( + (r) => ({ + with200: r.with200( + s_treasury_outbound_transfer, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, - } + }), +) type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder = - typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder & + (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn)["responder"] & KoaRuntimeResponder -const postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = ( params: Params< t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnParamSchema, @@ -18551,17 +16100,15 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = ( | Response > -const postTestHelpersTreasuryReceivedCreditsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryReceivedCredits = b((r) => ({ + with200: r.with200(s_treasury_received_credit), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryReceivedCreditsResponder = - typeof postTestHelpersTreasuryReceivedCreditsResponder & KoaRuntimeResponder - -const postTestHelpersTreasuryReceivedCreditsResponseValidator = - responseValidationFactory([["200", s_treasury_received_credit]], s_error) + (typeof postTestHelpersTreasuryReceivedCredits)["responder"] & + KoaRuntimeResponder export type PostTestHelpersTreasuryReceivedCredits = ( params: Params< @@ -18578,17 +16125,15 @@ export type PostTestHelpersTreasuryReceivedCredits = ( | Response > -const postTestHelpersTreasuryReceivedDebitsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTestHelpersTreasuryReceivedDebits = b((r) => ({ + with200: r.with200(s_treasury_received_debit), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTestHelpersTreasuryReceivedDebitsResponder = - typeof postTestHelpersTreasuryReceivedDebitsResponder & KoaRuntimeResponder - -const postTestHelpersTreasuryReceivedDebitsResponseValidator = - responseValidationFactory([["200", s_treasury_received_debit]], s_error) + (typeof postTestHelpersTreasuryReceivedDebits)["responder"] & + KoaRuntimeResponder export type PostTestHelpersTreasuryReceivedDebits = ( params: Params< @@ -18605,18 +16150,14 @@ export type PostTestHelpersTreasuryReceivedDebits = ( | Response > -const postTokensResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTokens = b((r) => ({ + with200: r.with200(s_token), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostTokensResponder = typeof postTokensResponder & KoaRuntimeResponder +})) -const postTokensResponseValidator = responseValidationFactory( - [["200", s_token]], - s_error, -) +type PostTokensResponder = (typeof postTokens)["responder"] & + KoaRuntimeResponder export type PostTokens = ( params: Params, @@ -18628,20 +16169,15 @@ export type PostTokens = ( | Response > -const getTokensTokenResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTokensToken = b((r) => ({ + with200: r.with200(s_token), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTokensTokenResponder = typeof getTokensTokenResponder & +type GetTokensTokenResponder = (typeof getTokensToken)["responder"] & KoaRuntimeResponder -const getTokensTokenResponseValidator = responseValidationFactory( - [["200", s_token]], - s_error, -) - export type GetTokensToken = ( params: Params< t_GetTokensTokenParamSchema, @@ -18657,33 +16193,25 @@ export type GetTokensToken = ( | Response > -const getTopupsResponder = { +const getTopups = b((r) => ({ with200: r.with200<{ data: t_topup[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_topup)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/topups")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTopupsResponder = typeof getTopupsResponder & KoaRuntimeResponder - -const getTopupsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_topup)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/topups")), - }), - ], - ], - s_error, -) +type GetTopupsResponder = (typeof getTopups)["responder"] & KoaRuntimeResponder export type GetTopups = ( params: Params< @@ -18708,18 +16236,14 @@ export type GetTopups = ( | Response > -const postTopupsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTopups = b((r) => ({ + with200: r.with200(s_topup), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTopupsResponder = typeof postTopupsResponder & KoaRuntimeResponder - -const postTopupsResponseValidator = responseValidationFactory( - [["200", s_topup]], - s_error, -) +type PostTopupsResponder = (typeof postTopups)["responder"] & + KoaRuntimeResponder export type PostTopups = ( params: Params, @@ -18731,20 +16255,15 @@ export type PostTopups = ( | Response > -const getTopupsTopupResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTopupsTopup = b((r) => ({ + with200: r.with200(s_topup), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTopupsTopupResponder = typeof getTopupsTopupResponder & +type GetTopupsTopupResponder = (typeof getTopupsTopup)["responder"] & KoaRuntimeResponder -const getTopupsTopupResponseValidator = responseValidationFactory( - [["200", s_topup]], - s_error, -) - export type GetTopupsTopup = ( params: Params< t_GetTopupsTopupParamSchema, @@ -18760,20 +16279,15 @@ export type GetTopupsTopup = ( | Response > -const postTopupsTopupResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTopupsTopup = b((r) => ({ + with200: r.with200(s_topup), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTopupsTopupResponder = typeof postTopupsTopupResponder & +type PostTopupsTopupResponder = (typeof postTopupsTopup)["responder"] & KoaRuntimeResponder -const postTopupsTopupResponseValidator = responseValidationFactory( - [["200", s_topup]], - s_error, -) - export type PostTopupsTopup = ( params: Params< t_PostTopupsTopupParamSchema, @@ -18789,19 +16303,14 @@ export type PostTopupsTopup = ( | Response > -const postTopupsTopupCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTopupsTopupCancel = b((r) => ({ + with200: r.with200(s_topup), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTopupsTopupCancelResponder = typeof postTopupsTopupCancelResponder & - KoaRuntimeResponder - -const postTopupsTopupCancelResponseValidator = responseValidationFactory( - [["200", s_topup]], - s_error, -) +type PostTopupsTopupCancelResponder = + (typeof postTopupsTopupCancel)["responder"] & KoaRuntimeResponder export type PostTopupsTopupCancel = ( params: Params< @@ -18818,33 +16327,26 @@ export type PostTopupsTopupCancel = ( | Response > -const getTransfersResponder = { +const getTransfers = b((r) => ({ with200: r.with200<{ data: t_transfer[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_transfer)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/transfers")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetTransfersResponder = typeof getTransfersResponder & KoaRuntimeResponder - -const getTransfersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_transfer)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/transfers")), - }), - ], - ], - s_error, -) +type GetTransfersResponder = (typeof getTransfers)["responder"] & + KoaRuntimeResponder export type GetTransfers = ( params: Params< @@ -18869,20 +16371,15 @@ export type GetTransfers = ( | Response > -const postTransfersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTransfers = b((r) => ({ + with200: r.with200(s_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostTransfersResponder = typeof postTransfersResponder & +type PostTransfersResponder = (typeof postTransfers)["responder"] & KoaRuntimeResponder -const postTransfersResponseValidator = responseValidationFactory( - [["200", s_transfer]], - s_error, -) - export type PostTransfers = ( params: Params, respond: PostTransfersResponder, @@ -18893,34 +16390,26 @@ export type PostTransfers = ( | Response > -const getTransfersIdReversalsResponder = { +const getTransfersIdReversals = b((r) => ({ with200: r.with200<{ data: t_transfer_reversal[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_transfer_reversal)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTransfersIdReversalsResponder = - typeof getTransfersIdReversalsResponder & KoaRuntimeResponder - -const getTransfersIdReversalsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_transfer_reversal)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getTransfersIdReversals)["responder"] & KoaRuntimeResponder export type GetTransfersIdReversals = ( params: Params< @@ -18945,19 +16434,14 @@ export type GetTransfersIdReversals = ( | Response > -const postTransfersIdReversalsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTransfersIdReversals = b((r) => ({ + with200: r.with200(s_transfer_reversal), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTransfersIdReversalsResponder = - typeof postTransfersIdReversalsResponder & KoaRuntimeResponder - -const postTransfersIdReversalsResponseValidator = responseValidationFactory( - [["200", s_transfer_reversal]], - s_error, -) + (typeof postTransfersIdReversals)["responder"] & KoaRuntimeResponder export type PostTransfersIdReversals = ( params: Params< @@ -18974,19 +16458,14 @@ export type PostTransfersIdReversals = ( | Response > -const getTransfersTransferResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTransfersTransfer = b((r) => ({ + with200: r.with200(s_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type GetTransfersTransferResponder = typeof getTransfersTransferResponder & - KoaRuntimeResponder +})) -const getTransfersTransferResponseValidator = responseValidationFactory( - [["200", s_transfer]], - s_error, -) +type GetTransfersTransferResponder = + (typeof getTransfersTransfer)["responder"] & KoaRuntimeResponder export type GetTransfersTransfer = ( params: Params< @@ -19003,19 +16482,14 @@ export type GetTransfersTransfer = ( | Response > -const postTransfersTransferResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTransfersTransfer = b((r) => ({ + with200: r.with200(s_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} - -type PostTransfersTransferResponder = typeof postTransfersTransferResponder & - KoaRuntimeResponder +})) -const postTransfersTransferResponseValidator = responseValidationFactory( - [["200", s_transfer]], - s_error, -) +type PostTransfersTransferResponder = + (typeof postTransfersTransfer)["responder"] & KoaRuntimeResponder export type PostTransfersTransfer = ( params: Params< @@ -19032,17 +16506,14 @@ export type PostTransfersTransfer = ( | Response > -const getTransfersTransferReversalsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTransfersTransferReversalsId = b((r) => ({ + with200: r.with200(s_transfer_reversal), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTransfersTransferReversalsIdResponder = - typeof getTransfersTransferReversalsIdResponder & KoaRuntimeResponder - -const getTransfersTransferReversalsIdResponseValidator = - responseValidationFactory([["200", s_transfer_reversal]], s_error) + (typeof getTransfersTransferReversalsId)["responder"] & KoaRuntimeResponder export type GetTransfersTransferReversalsId = ( params: Params< @@ -19059,17 +16530,14 @@ export type GetTransfersTransferReversalsId = ( | Response > -const postTransfersTransferReversalsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTransfersTransferReversalsId = b((r) => ({ + with200: r.with200(s_transfer_reversal), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTransfersTransferReversalsIdResponder = - typeof postTransfersTransferReversalsIdResponder & KoaRuntimeResponder - -const postTransfersTransferReversalsIdResponseValidator = - responseValidationFactory([["200", s_transfer_reversal]], s_error) + (typeof postTransfersTransferReversalsId)["responder"] & KoaRuntimeResponder export type PostTransfersTransferReversalsId = ( params: Params< @@ -19086,34 +16554,26 @@ export type PostTransfersTransferReversalsId = ( | Response > -const getTreasuryCreditReversalsResponder = { +const getTreasuryCreditReversals = b((r) => ({ with200: r.with200<{ data: t_treasury_credit_reversal[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_credit_reversal)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryCreditReversalsResponder = - typeof getTreasuryCreditReversalsResponder & KoaRuntimeResponder - -const getTreasuryCreditReversalsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_credit_reversal)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getTreasuryCreditReversals)["responder"] & KoaRuntimeResponder export type GetTreasuryCreditReversals = ( params: Params< @@ -19138,19 +16598,14 @@ export type GetTreasuryCreditReversals = ( | Response > -const postTreasuryCreditReversalsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryCreditReversals = b((r) => ({ + with200: r.with200(s_treasury_credit_reversal), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryCreditReversalsResponder = - typeof postTreasuryCreditReversalsResponder & KoaRuntimeResponder - -const postTreasuryCreditReversalsResponseValidator = responseValidationFactory( - [["200", s_treasury_credit_reversal]], - s_error, -) + (typeof postTreasuryCreditReversals)["responder"] & KoaRuntimeResponder export type PostTreasuryCreditReversals = ( params: Params, @@ -19162,17 +16617,15 @@ export type PostTreasuryCreditReversals = ( | Response > -const getTreasuryCreditReversalsCreditReversalResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryCreditReversalsCreditReversal = b((r) => ({ + with200: r.with200(s_treasury_credit_reversal), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryCreditReversalsCreditReversalResponder = - typeof getTreasuryCreditReversalsCreditReversalResponder & KoaRuntimeResponder - -const getTreasuryCreditReversalsCreditReversalResponseValidator = - responseValidationFactory([["200", s_treasury_credit_reversal]], s_error) + (typeof getTreasuryCreditReversalsCreditReversal)["responder"] & + KoaRuntimeResponder export type GetTreasuryCreditReversalsCreditReversal = ( params: Params< @@ -19189,34 +16642,26 @@ export type GetTreasuryCreditReversalsCreditReversal = ( | Response > -const getTreasuryDebitReversalsResponder = { +const getTreasuryDebitReversals = b((r) => ({ with200: r.with200<{ data: t_treasury_debit_reversal[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_debit_reversal)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryDebitReversalsResponder = - typeof getTreasuryDebitReversalsResponder & KoaRuntimeResponder - -const getTreasuryDebitReversalsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_debit_reversal)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getTreasuryDebitReversals)["responder"] & KoaRuntimeResponder export type GetTreasuryDebitReversals = ( params: Params< @@ -19241,19 +16686,14 @@ export type GetTreasuryDebitReversals = ( | Response > -const postTreasuryDebitReversalsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryDebitReversals = b((r) => ({ + with200: r.with200(s_treasury_debit_reversal), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryDebitReversalsResponder = - typeof postTreasuryDebitReversalsResponder & KoaRuntimeResponder - -const postTreasuryDebitReversalsResponseValidator = responseValidationFactory( - [["200", s_treasury_debit_reversal]], - s_error, -) + (typeof postTreasuryDebitReversals)["responder"] & KoaRuntimeResponder export type PostTreasuryDebitReversals = ( params: Params, @@ -19265,17 +16705,15 @@ export type PostTreasuryDebitReversals = ( | Response > -const getTreasuryDebitReversalsDebitReversalResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryDebitReversalsDebitReversal = b((r) => ({ + with200: r.with200(s_treasury_debit_reversal), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryDebitReversalsDebitReversalResponder = - typeof getTreasuryDebitReversalsDebitReversalResponder & KoaRuntimeResponder - -const getTreasuryDebitReversalsDebitReversalResponseValidator = - responseValidationFactory([["200", s_treasury_debit_reversal]], s_error) + (typeof getTreasuryDebitReversalsDebitReversal)["responder"] & + KoaRuntimeResponder export type GetTreasuryDebitReversalsDebitReversal = ( params: Params< @@ -19292,37 +16730,29 @@ export type GetTreasuryDebitReversalsDebitReversal = ( | Response > -const getTreasuryFinancialAccountsResponder = { +const getTreasuryFinancialAccounts = b((r) => ({ with200: r.with200<{ data: t_treasury_financial_account[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_treasury_financial_account), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/treasury/financial_accounts")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryFinancialAccountsResponder = - typeof getTreasuryFinancialAccountsResponder & KoaRuntimeResponder - -const getTreasuryFinancialAccountsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_treasury_financial_account), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/treasury/financial_accounts")), - }), - ], - ], - s_error, -) + (typeof getTreasuryFinancialAccounts)["responder"] & KoaRuntimeResponder export type GetTreasuryFinancialAccounts = ( params: Params< @@ -19347,17 +16777,16 @@ export type GetTreasuryFinancialAccounts = ( | Response > -const postTreasuryFinancialAccountsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryFinancialAccounts = b((r) => ({ + with200: r.with200( + s_treasury_financial_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryFinancialAccountsResponder = - typeof postTreasuryFinancialAccountsResponder & KoaRuntimeResponder - -const postTreasuryFinancialAccountsResponseValidator = - responseValidationFactory([["200", s_treasury_financial_account]], s_error) + (typeof postTreasuryFinancialAccounts)["responder"] & KoaRuntimeResponder export type PostTreasuryFinancialAccounts = ( params: Params, @@ -19369,19 +16798,18 @@ export type PostTreasuryFinancialAccounts = ( | Response > -const getTreasuryFinancialAccountsFinancialAccountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryFinancialAccountsFinancialAccount = b((r) => ({ + with200: r.with200( + s_treasury_financial_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryFinancialAccountsFinancialAccountResponder = - typeof getTreasuryFinancialAccountsFinancialAccountResponder & + (typeof getTreasuryFinancialAccountsFinancialAccount)["responder"] & KoaRuntimeResponder -const getTreasuryFinancialAccountsFinancialAccountResponseValidator = - responseValidationFactory([["200", s_treasury_financial_account]], s_error) - export type GetTreasuryFinancialAccountsFinancialAccount = ( params: Params< t_GetTreasuryFinancialAccountsFinancialAccountParamSchema, @@ -19397,19 +16825,18 @@ export type GetTreasuryFinancialAccountsFinancialAccount = ( | Response > -const postTreasuryFinancialAccountsFinancialAccountResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryFinancialAccountsFinancialAccount = b((r) => ({ + with200: r.with200( + s_treasury_financial_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryFinancialAccountsFinancialAccountResponder = - typeof postTreasuryFinancialAccountsFinancialAccountResponder & + (typeof postTreasuryFinancialAccountsFinancialAccount)["responder"] & KoaRuntimeResponder -const postTreasuryFinancialAccountsFinancialAccountResponseValidator = - responseValidationFactory([["200", s_treasury_financial_account]], s_error) - export type PostTreasuryFinancialAccountsFinancialAccount = ( params: Params< t_PostTreasuryFinancialAccountsFinancialAccountParamSchema, @@ -19425,19 +16852,18 @@ export type PostTreasuryFinancialAccountsFinancialAccount = ( | Response > -const postTreasuryFinancialAccountsFinancialAccountCloseResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryFinancialAccountsFinancialAccountClose = b((r) => ({ + with200: r.with200( + s_treasury_financial_account, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryFinancialAccountsFinancialAccountCloseResponder = - typeof postTreasuryFinancialAccountsFinancialAccountCloseResponder & + (typeof postTreasuryFinancialAccountsFinancialAccountClose)["responder"] & KoaRuntimeResponder -const postTreasuryFinancialAccountsFinancialAccountCloseResponseValidator = - responseValidationFactory([["200", s_treasury_financial_account]], s_error) - export type PostTreasuryFinancialAccountsFinancialAccountClose = ( params: Params< t_PostTreasuryFinancialAccountsFinancialAccountCloseParamSchema, @@ -19453,22 +16879,18 @@ export type PostTreasuryFinancialAccountsFinancialAccountClose = ( | Response > -const getTreasuryFinancialAccountsFinancialAccountFeaturesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryFinancialAccountsFinancialAccountFeatures = b((r) => ({ + with200: r.with200( + s_treasury_financial_account_features, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryFinancialAccountsFinancialAccountFeaturesResponder = - typeof getTreasuryFinancialAccountsFinancialAccountFeaturesResponder & + (typeof getTreasuryFinancialAccountsFinancialAccountFeatures)["responder"] & KoaRuntimeResponder -const getTreasuryFinancialAccountsFinancialAccountFeaturesResponseValidator = - responseValidationFactory( - [["200", s_treasury_financial_account_features]], - s_error, - ) - export type GetTreasuryFinancialAccountsFinancialAccountFeatures = ( params: Params< t_GetTreasuryFinancialAccountsFinancialAccountFeaturesParamSchema, @@ -19485,22 +16907,18 @@ export type GetTreasuryFinancialAccountsFinancialAccountFeatures = ( | Response > -const postTreasuryFinancialAccountsFinancialAccountFeaturesResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryFinancialAccountsFinancialAccountFeatures = b((r) => ({ + with200: r.with200( + s_treasury_financial_account_features, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryFinancialAccountsFinancialAccountFeaturesResponder = - typeof postTreasuryFinancialAccountsFinancialAccountFeaturesResponder & + (typeof postTreasuryFinancialAccountsFinancialAccountFeatures)["responder"] & KoaRuntimeResponder -const postTreasuryFinancialAccountsFinancialAccountFeaturesResponseValidator = - responseValidationFactory( - [["200", s_treasury_financial_account_features]], - s_error, - ) - export type PostTreasuryFinancialAccountsFinancialAccountFeatures = ( params: Params< t_PostTreasuryFinancialAccountsFinancialAccountFeaturesParamSchema, @@ -19517,34 +16935,26 @@ export type PostTreasuryFinancialAccountsFinancialAccountFeatures = ( | Response > -const getTreasuryInboundTransfersResponder = { +const getTreasuryInboundTransfers = b((r) => ({ with200: r.with200<{ data: t_treasury_inbound_transfer[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_inbound_transfer)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryInboundTransfersResponder = - typeof getTreasuryInboundTransfersResponder & KoaRuntimeResponder - -const getTreasuryInboundTransfersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_inbound_transfer)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getTreasuryInboundTransfers)["responder"] & KoaRuntimeResponder export type GetTreasuryInboundTransfers = ( params: Params< @@ -19569,19 +16979,14 @@ export type GetTreasuryInboundTransfers = ( | Response > -const postTreasuryInboundTransfersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryInboundTransfers = b((r) => ({ + with200: r.with200(s_treasury_inbound_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryInboundTransfersResponder = - typeof postTreasuryInboundTransfersResponder & KoaRuntimeResponder - -const postTreasuryInboundTransfersResponseValidator = responseValidationFactory( - [["200", s_treasury_inbound_transfer]], - s_error, -) + (typeof postTreasuryInboundTransfers)["responder"] & KoaRuntimeResponder export type PostTreasuryInboundTransfers = ( params: Params, @@ -19593,17 +16998,14 @@ export type PostTreasuryInboundTransfers = ( | Response > -const getTreasuryInboundTransfersIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryInboundTransfersId = b((r) => ({ + with200: r.with200(s_treasury_inbound_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryInboundTransfersIdResponder = - typeof getTreasuryInboundTransfersIdResponder & KoaRuntimeResponder - -const getTreasuryInboundTransfersIdResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) + (typeof getTreasuryInboundTransfersId)["responder"] & KoaRuntimeResponder export type GetTreasuryInboundTransfersId = ( params: Params< @@ -19620,19 +17022,16 @@ export type GetTreasuryInboundTransfersId = ( | Response > -const postTreasuryInboundTransfersInboundTransferCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryInboundTransfersInboundTransferCancel = b((r) => ({ + with200: r.with200(s_treasury_inbound_transfer), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryInboundTransfersInboundTransferCancelResponder = - typeof postTreasuryInboundTransfersInboundTransferCancelResponder & + (typeof postTreasuryInboundTransfersInboundTransferCancel)["responder"] & KoaRuntimeResponder -const postTreasuryInboundTransfersInboundTransferCancelResponseValidator = - responseValidationFactory([["200", s_treasury_inbound_transfer]], s_error) - export type PostTreasuryInboundTransfersInboundTransferCancel = ( params: Params< t_PostTreasuryInboundTransfersInboundTransferCancelParamSchema, @@ -19648,37 +17047,29 @@ export type PostTreasuryInboundTransfersInboundTransferCancel = ( | Response > -const getTreasuryOutboundPaymentsResponder = { +const getTreasuryOutboundPayments = b((r) => ({ with200: r.with200<{ data: t_treasury_outbound_payment[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_outbound_payment)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/treasury/outbound_payments")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryOutboundPaymentsResponder = - typeof getTreasuryOutboundPaymentsResponder & KoaRuntimeResponder - -const getTreasuryOutboundPaymentsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_outbound_payment)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/treasury/outbound_payments")), - }), - ], - ], - s_error, -) + (typeof getTreasuryOutboundPayments)["responder"] & KoaRuntimeResponder export type GetTreasuryOutboundPayments = ( params: Params< @@ -19703,19 +17094,14 @@ export type GetTreasuryOutboundPayments = ( | Response > -const postTreasuryOutboundPaymentsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryOutboundPayments = b((r) => ({ + with200: r.with200(s_treasury_outbound_payment), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryOutboundPaymentsResponder = - typeof postTreasuryOutboundPaymentsResponder & KoaRuntimeResponder - -const postTreasuryOutboundPaymentsResponseValidator = responseValidationFactory( - [["200", s_treasury_outbound_payment]], - s_error, -) + (typeof postTreasuryOutboundPayments)["responder"] & KoaRuntimeResponder export type PostTreasuryOutboundPayments = ( params: Params, @@ -19727,17 +17113,14 @@ export type PostTreasuryOutboundPayments = ( | Response > -const getTreasuryOutboundPaymentsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryOutboundPaymentsId = b((r) => ({ + with200: r.with200(s_treasury_outbound_payment), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryOutboundPaymentsIdResponder = - typeof getTreasuryOutboundPaymentsIdResponder & KoaRuntimeResponder - -const getTreasuryOutboundPaymentsIdResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) + (typeof getTreasuryOutboundPaymentsId)["responder"] & KoaRuntimeResponder export type GetTreasuryOutboundPaymentsId = ( params: Params< @@ -19754,17 +17137,15 @@ export type GetTreasuryOutboundPaymentsId = ( | Response > -const postTreasuryOutboundPaymentsIdCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryOutboundPaymentsIdCancel = b((r) => ({ + with200: r.with200(s_treasury_outbound_payment), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryOutboundPaymentsIdCancelResponder = - typeof postTreasuryOutboundPaymentsIdCancelResponder & KoaRuntimeResponder - -const postTreasuryOutboundPaymentsIdCancelResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_payment]], s_error) + (typeof postTreasuryOutboundPaymentsIdCancel)["responder"] & + KoaRuntimeResponder export type PostTreasuryOutboundPaymentsIdCancel = ( params: Params< @@ -19781,34 +17162,26 @@ export type PostTreasuryOutboundPaymentsIdCancel = ( | Response > -const getTreasuryOutboundTransfersResponder = { +const getTreasuryOutboundTransfers = b((r) => ({ with200: r.with200<{ data: t_treasury_outbound_transfer[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_outbound_transfer)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryOutboundTransfersResponder = - typeof getTreasuryOutboundTransfersResponder & KoaRuntimeResponder - -const getTreasuryOutboundTransfersResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_outbound_transfer)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getTreasuryOutboundTransfers)["responder"] & KoaRuntimeResponder export type GetTreasuryOutboundTransfers = ( params: Params< @@ -19833,17 +17206,16 @@ export type GetTreasuryOutboundTransfers = ( | Response > -const postTreasuryOutboundTransfersResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryOutboundTransfers = b((r) => ({ + with200: r.with200( + s_treasury_outbound_transfer, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryOutboundTransfersResponder = - typeof postTreasuryOutboundTransfersResponder & KoaRuntimeResponder - -const postTreasuryOutboundTransfersResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) + (typeof postTreasuryOutboundTransfers)["responder"] & KoaRuntimeResponder export type PostTreasuryOutboundTransfers = ( params: Params, @@ -19855,19 +17227,18 @@ export type PostTreasuryOutboundTransfers = ( | Response > -const getTreasuryOutboundTransfersOutboundTransferResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryOutboundTransfersOutboundTransfer = b((r) => ({ + with200: r.with200( + s_treasury_outbound_transfer, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryOutboundTransfersOutboundTransferResponder = - typeof getTreasuryOutboundTransfersOutboundTransferResponder & + (typeof getTreasuryOutboundTransfersOutboundTransfer)["responder"] & KoaRuntimeResponder -const getTreasuryOutboundTransfersOutboundTransferResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - export type GetTreasuryOutboundTransfersOutboundTransfer = ( params: Params< t_GetTreasuryOutboundTransfersOutboundTransferParamSchema, @@ -19883,19 +17254,18 @@ export type GetTreasuryOutboundTransfersOutboundTransfer = ( | Response > -const postTreasuryOutboundTransfersOutboundTransferCancelResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postTreasuryOutboundTransfersOutboundTransferCancel = b((r) => ({ + with200: r.with200( + s_treasury_outbound_transfer, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostTreasuryOutboundTransfersOutboundTransferCancelResponder = - typeof postTreasuryOutboundTransfersOutboundTransferCancelResponder & + (typeof postTreasuryOutboundTransfersOutboundTransferCancel)["responder"] & KoaRuntimeResponder -const postTreasuryOutboundTransfersOutboundTransferCancelResponseValidator = - responseValidationFactory([["200", s_treasury_outbound_transfer]], s_error) - export type PostTreasuryOutboundTransfersOutboundTransferCancel = ( params: Params< t_PostTreasuryOutboundTransfersOutboundTransferCancelParamSchema, @@ -19911,34 +17281,26 @@ export type PostTreasuryOutboundTransfersOutboundTransferCancel = ( | Response > -const getTreasuryReceivedCreditsResponder = { +const getTreasuryReceivedCredits = b((r) => ({ with200: r.with200<{ data: t_treasury_received_credit[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_received_credit)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryReceivedCreditsResponder = - typeof getTreasuryReceivedCreditsResponder & KoaRuntimeResponder - -const getTreasuryReceivedCreditsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_received_credit)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getTreasuryReceivedCredits)["responder"] & KoaRuntimeResponder export type GetTreasuryReceivedCredits = ( params: Params< @@ -19963,19 +17325,14 @@ export type GetTreasuryReceivedCredits = ( | Response > -const getTreasuryReceivedCreditsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryReceivedCreditsId = b((r) => ({ + with200: r.with200(s_treasury_received_credit), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryReceivedCreditsIdResponder = - typeof getTreasuryReceivedCreditsIdResponder & KoaRuntimeResponder - -const getTreasuryReceivedCreditsIdResponseValidator = responseValidationFactory( - [["200", s_treasury_received_credit]], - s_error, -) + (typeof getTreasuryReceivedCreditsId)["responder"] & KoaRuntimeResponder export type GetTreasuryReceivedCreditsId = ( params: Params< @@ -19992,34 +17349,26 @@ export type GetTreasuryReceivedCreditsId = ( | Response > -const getTreasuryReceivedDebitsResponder = { +const getTreasuryReceivedDebits = b((r) => ({ with200: r.with200<{ data: t_treasury_received_debit[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_received_debit)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryReceivedDebitsResponder = - typeof getTreasuryReceivedDebitsResponder & KoaRuntimeResponder - -const getTreasuryReceivedDebitsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_received_debit)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getTreasuryReceivedDebits)["responder"] & KoaRuntimeResponder export type GetTreasuryReceivedDebits = ( params: Params< @@ -20044,19 +17393,14 @@ export type GetTreasuryReceivedDebits = ( | Response > -const getTreasuryReceivedDebitsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryReceivedDebitsId = b((r) => ({ + with200: r.with200(s_treasury_received_debit), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryReceivedDebitsIdResponder = - typeof getTreasuryReceivedDebitsIdResponder & KoaRuntimeResponder - -const getTreasuryReceivedDebitsIdResponseValidator = responseValidationFactory( - [["200", s_treasury_received_debit]], - s_error, -) + (typeof getTreasuryReceivedDebitsId)["responder"] & KoaRuntimeResponder export type GetTreasuryReceivedDebitsId = ( params: Params< @@ -20073,38 +17417,29 @@ export type GetTreasuryReceivedDebitsId = ( | Response > -const getTreasuryTransactionEntriesResponder = { +const getTreasuryTransactionEntries = b((r) => ({ with200: r.with200<{ data: t_treasury_transaction_entry[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_transaction_entry)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z + .string() + .max(5000) + .regex(new RegExp("^/v1/treasury/transaction_entries")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryTransactionEntriesResponder = - typeof getTreasuryTransactionEntriesResponder & KoaRuntimeResponder - -const getTreasuryTransactionEntriesResponseValidator = - responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_transaction_entry)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z - .string() - .max(5000) - .regex(new RegExp("^/v1/treasury/transaction_entries")), - }), - ], - ], - s_error, - ) + (typeof getTreasuryTransactionEntries)["responder"] & KoaRuntimeResponder export type GetTreasuryTransactionEntries = ( params: Params< @@ -20129,17 +17464,16 @@ export type GetTreasuryTransactionEntries = ( | Response > -const getTreasuryTransactionEntriesIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryTransactionEntriesId = b((r) => ({ + with200: r.with200( + s_treasury_transaction_entry, + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryTransactionEntriesIdResponder = - typeof getTreasuryTransactionEntriesIdResponder & KoaRuntimeResponder - -const getTreasuryTransactionEntriesIdResponseValidator = - responseValidationFactory([["200", s_treasury_transaction_entry]], s_error) + (typeof getTreasuryTransactionEntriesId)["responder"] & KoaRuntimeResponder export type GetTreasuryTransactionEntriesId = ( params: Params< @@ -20156,34 +17490,26 @@ export type GetTreasuryTransactionEntriesId = ( | Response > -const getTreasuryTransactionsResponder = { +const getTreasuryTransactions = b((r) => ({ with200: r.with200<{ data: t_treasury_transaction[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(z.lazy(() => s_treasury_transaction)), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryTransactionsResponder = - typeof getTreasuryTransactionsResponder & KoaRuntimeResponder - -const getTreasuryTransactionsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(z.lazy(() => s_treasury_transaction)), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000), - }), - ], - ], - s_error, -) + (typeof getTreasuryTransactions)["responder"] & KoaRuntimeResponder export type GetTreasuryTransactions = ( params: Params< @@ -20208,19 +17534,14 @@ export type GetTreasuryTransactions = ( | Response > -const getTreasuryTransactionsIdResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getTreasuryTransactionsId = b((r) => ({ + with200: r.with200(s_treasury_transaction), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetTreasuryTransactionsIdResponder = - typeof getTreasuryTransactionsIdResponder & KoaRuntimeResponder - -const getTreasuryTransactionsIdResponseValidator = responseValidationFactory( - [["200", s_treasury_transaction]], - s_error, -) + (typeof getTreasuryTransactionsId)["responder"] & KoaRuntimeResponder export type GetTreasuryTransactionsId = ( params: Params< @@ -20237,35 +17558,27 @@ export type GetTreasuryTransactionsId = ( | Response > -const getWebhookEndpointsResponder = { +const getWebhookEndpoints = b((r) => ({ with200: r.with200<{ data: t_webhook_endpoint[] has_more: boolean object: "list" url: string - }>, - withDefault: r.withDefault, + }>( + z.object({ + data: z.array(s_webhook_endpoint), + has_more: PermissiveBoolean, + object: z.enum(["list"]), + url: z.string().max(5000).regex(new RegExp("^/v1/webhook_endpoints")), + }), + ), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type GetWebhookEndpointsResponder = typeof getWebhookEndpointsResponder & +type GetWebhookEndpointsResponder = (typeof getWebhookEndpoints)["responder"] & KoaRuntimeResponder -const getWebhookEndpointsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - data: z.array(s_webhook_endpoint), - has_more: PermissiveBoolean, - object: z.enum(["list"]), - url: z.string().max(5000).regex(new RegExp("^/v1/webhook_endpoints")), - }), - ], - ], - s_error, -) - export type GetWebhookEndpoints = ( params: Params< void, @@ -20289,19 +17602,14 @@ export type GetWebhookEndpoints = ( | Response > -const postWebhookEndpointsResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postWebhookEndpoints = b((r) => ({ + with200: r.with200(s_webhook_endpoint), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) -type PostWebhookEndpointsResponder = typeof postWebhookEndpointsResponder & - KoaRuntimeResponder - -const postWebhookEndpointsResponseValidator = responseValidationFactory( - [["200", s_webhook_endpoint]], - s_error, -) +type PostWebhookEndpointsResponder = + (typeof postWebhookEndpoints)["responder"] & KoaRuntimeResponder export type PostWebhookEndpoints = ( params: Params, @@ -20313,17 +17621,15 @@ export type PostWebhookEndpoints = ( | Response > -const deleteWebhookEndpointsWebhookEndpointResponder = { - with200: r.with200, - withDefault: r.withDefault, +const deleteWebhookEndpointsWebhookEndpoint = b((r) => ({ + with200: r.with200(s_deleted_webhook_endpoint), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type DeleteWebhookEndpointsWebhookEndpointResponder = - typeof deleteWebhookEndpointsWebhookEndpointResponder & KoaRuntimeResponder - -const deleteWebhookEndpointsWebhookEndpointResponseValidator = - responseValidationFactory([["200", s_deleted_webhook_endpoint]], s_error) + (typeof deleteWebhookEndpointsWebhookEndpoint)["responder"] & + KoaRuntimeResponder export type DeleteWebhookEndpointsWebhookEndpoint = ( params: Params< @@ -20340,17 +17646,14 @@ export type DeleteWebhookEndpointsWebhookEndpoint = ( | Response > -const getWebhookEndpointsWebhookEndpointResponder = { - with200: r.with200, - withDefault: r.withDefault, +const getWebhookEndpointsWebhookEndpoint = b((r) => ({ + with200: r.with200(s_webhook_endpoint), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type GetWebhookEndpointsWebhookEndpointResponder = - typeof getWebhookEndpointsWebhookEndpointResponder & KoaRuntimeResponder - -const getWebhookEndpointsWebhookEndpointResponseValidator = - responseValidationFactory([["200", s_webhook_endpoint]], s_error) + (typeof getWebhookEndpointsWebhookEndpoint)["responder"] & KoaRuntimeResponder export type GetWebhookEndpointsWebhookEndpoint = ( params: Params< @@ -20367,17 +17670,15 @@ export type GetWebhookEndpointsWebhookEndpoint = ( | Response > -const postWebhookEndpointsWebhookEndpointResponder = { - with200: r.with200, - withDefault: r.withDefault, +const postWebhookEndpointsWebhookEndpoint = b((r) => ({ + with200: r.with200(s_webhook_endpoint), + withDefault: r.withDefault(s_error), withStatus: r.withStatus, -} +})) type PostWebhookEndpointsWebhookEndpointResponder = - typeof postWebhookEndpointsWebhookEndpointResponder & KoaRuntimeResponder - -const postWebhookEndpointsWebhookEndpointResponseValidator = - responseValidationFactory([["200", s_webhook_endpoint]], s_error) + (typeof postWebhookEndpointsWebhookEndpoint)["responder"] & + KoaRuntimeResponder export type PostWebhookEndpointsWebhookEndpoint = ( params: Params< @@ -20991,7 +18292,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getAccount(input, getAccountResponder, ctx) + .getAccount(input, getAccount.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -20999,7 +18300,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountResponseValidator(status, body) + ctx.body = getAccount.validator(status, body) ctx.status = status return next() }) @@ -21032,7 +18333,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postAccountLinks(input, postAccountLinksResponder, ctx) + .postAccountLinks(input, postAccountLinks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21040,7 +18341,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountLinksResponseValidator(status, body) + ctx.body = postAccountLinks.validator(status, body) ctx.status = status return next() }) @@ -21231,7 +18532,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postAccountSessions(input, postAccountSessionsResponder, ctx) + .postAccountSessions(input, postAccountSessions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21239,7 +18540,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountSessionsResponseValidator(status, body) + ctx.body = postAccountSessions.validator(status, body) ctx.status = status return next() }, @@ -21287,7 +18588,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getAccounts(input, getAccountsResponder, ctx) + .getAccounts(input, getAccounts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21295,7 +18596,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsResponseValidator(status, body) + ctx.body = getAccounts.validator(status, body) ctx.status = status return next() }) @@ -21926,7 +19227,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postAccounts(input, postAccountsResponder, ctx) + .postAccounts(input, postAccounts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21934,7 +19235,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsResponseValidator(status, body) + ctx.body = postAccounts.validator(status, body) ctx.status = status return next() }) @@ -21965,7 +19266,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteAccountsAccount(input, deleteAccountsAccountResponder, ctx) + .deleteAccountsAccount(input, deleteAccountsAccount.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -21973,7 +19274,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteAccountsAccountResponseValidator(status, body) + ctx.body = deleteAccountsAccount.validator(status, body) ctx.status = status return next() }, @@ -22018,7 +19319,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getAccountsAccount(input, getAccountsAccountResponder, ctx) + .getAccountsAccount(input, getAccountsAccount.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22026,7 +19327,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountResponseValidator(status, body) + ctx.body = getAccountsAccount.validator(status, body) ctx.status = status return next() }, @@ -22632,7 +19933,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postAccountsAccount(input, postAccountsAccountResponder, ctx) + .postAccountsAccount(input, postAccountsAccount.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -22640,7 +19941,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountResponseValidator(status, body) + ctx.body = postAccountsAccount.validator(status, body) ctx.status = status return next() }, @@ -22705,7 +20006,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountBankAccounts( input, - postAccountsAccountBankAccountsResponder, + postAccountsAccountBankAccounts.responder, ctx, ) .catch((err) => { @@ -22715,7 +20016,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountBankAccountsResponseValidator(status, body) + ctx.body = postAccountsAccountBankAccounts.validator(status, body) ctx.status = status return next() }, @@ -22750,7 +20051,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteAccountsAccountBankAccountsId( input, - deleteAccountsAccountBankAccountsIdResponder, + deleteAccountsAccountBankAccountsId.responder, ctx, ) .catch((err) => { @@ -22760,10 +20061,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteAccountsAccountBankAccountsIdResponseValidator( - status, - body, - ) + ctx.body = deleteAccountsAccountBankAccountsId.validator(status, body) ctx.status = status return next() }, @@ -22811,7 +20109,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getAccountsAccountBankAccountsId( input, - getAccountsAccountBankAccountsIdResponder, + getAccountsAccountBankAccountsId.responder, ctx, ) .catch((err) => { @@ -22821,7 +20119,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountBankAccountsIdResponseValidator(status, body) + ctx.body = getAccountsAccountBankAccountsId.validator(status, body) ctx.status = status return next() }, @@ -22881,7 +20179,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountBankAccountsId( input, - postAccountsAccountBankAccountsIdResponder, + postAccountsAccountBankAccountsId.responder, ctx, ) .catch((err) => { @@ -22891,10 +20189,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountBankAccountsIdResponseValidator( - status, - body, - ) + ctx.body = postAccountsAccountBankAccountsId.validator(status, body) ctx.status = status return next() }, @@ -22941,7 +20236,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getAccountsAccountCapabilities( input, - getAccountsAccountCapabilitiesResponder, + getAccountsAccountCapabilities.responder, ctx, ) .catch((err) => { @@ -22951,7 +20246,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountCapabilitiesResponseValidator(status, body) + ctx.body = getAccountsAccountCapabilities.validator(status, body) ctx.status = status return next() }, @@ -23001,7 +20296,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getAccountsAccountCapabilitiesCapability( input, - getAccountsAccountCapabilitiesCapabilityResponder, + getAccountsAccountCapabilitiesCapability.responder, ctx, ) .catch((err) => { @@ -23011,7 +20306,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountCapabilitiesCapabilityResponseValidator( + ctx.body = getAccountsAccountCapabilitiesCapability.validator( status, body, ) @@ -23054,7 +20349,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountCapabilitiesCapability( input, - postAccountsAccountCapabilitiesCapabilityResponder, + postAccountsAccountCapabilitiesCapability.responder, ctx, ) .catch((err) => { @@ -23064,7 +20359,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountCapabilitiesCapabilityResponseValidator( + ctx.body = postAccountsAccountCapabilitiesCapability.validator( status, body, ) @@ -23118,7 +20413,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getAccountsAccountExternalAccounts( input, - getAccountsAccountExternalAccountsResponder, + getAccountsAccountExternalAccounts.responder, ctx, ) .catch((err) => { @@ -23128,10 +20423,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountExternalAccountsResponseValidator( - status, - body, - ) + ctx.body = getAccountsAccountExternalAccounts.validator(status, body) ctx.status = status return next() }, @@ -23196,7 +20488,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountExternalAccounts( input, - postAccountsAccountExternalAccountsResponder, + postAccountsAccountExternalAccounts.responder, ctx, ) .catch((err) => { @@ -23206,10 +20498,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountExternalAccountsResponseValidator( - status, - body, - ) + ctx.body = postAccountsAccountExternalAccounts.validator(status, body) ctx.status = status return next() }, @@ -23246,7 +20535,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteAccountsAccountExternalAccountsId( input, - deleteAccountsAccountExternalAccountsIdResponder, + deleteAccountsAccountExternalAccountsId.responder, ctx, ) .catch((err) => { @@ -23256,10 +20545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteAccountsAccountExternalAccountsIdResponseValidator( - status, - body, - ) + ctx.body = deleteAccountsAccountExternalAccountsId.validator(status, body) ctx.status = status return next() }, @@ -23307,7 +20593,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getAccountsAccountExternalAccountsId( input, - getAccountsAccountExternalAccountsIdResponder, + getAccountsAccountExternalAccountsId.responder, ctx, ) .catch((err) => { @@ -23317,10 +20603,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountExternalAccountsIdResponseValidator( - status, - body, - ) + ctx.body = getAccountsAccountExternalAccountsId.validator(status, body) ctx.status = status return next() }, @@ -23380,7 +20663,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountExternalAccountsId( input, - postAccountsAccountExternalAccountsIdResponder, + postAccountsAccountExternalAccountsId.responder, ctx, ) .catch((err) => { @@ -23390,10 +20673,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountExternalAccountsIdResponseValidator( - status, - body, - ) + ctx.body = postAccountsAccountExternalAccountsId.validator(status, body) ctx.status = status return next() }, @@ -23429,7 +20709,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountLoginLinks( input, - postAccountsAccountLoginLinksResponder, + postAccountsAccountLoginLinks.responder, ctx, ) .catch((err) => { @@ -23439,7 +20719,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountLoginLinksResponseValidator(status, body) + ctx.body = postAccountsAccountLoginLinks.validator(status, body) ctx.status = status return next() }, @@ -23497,7 +20777,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getAccountsAccountPeople(input, getAccountsAccountPeopleResponder, ctx) + .getAccountsAccountPeople( + input, + getAccountsAccountPeople.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -23505,7 +20789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountPeopleResponseValidator(status, body) + ctx.body = getAccountsAccountPeople.validator(status, body) ctx.status = status return next() }, @@ -23683,7 +20967,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountPeople( input, - postAccountsAccountPeopleResponder, + postAccountsAccountPeople.responder, ctx, ) .catch((err) => { @@ -23693,7 +20977,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountPeopleResponseValidator(status, body) + ctx.body = postAccountsAccountPeople.validator(status, body) ctx.status = status return next() }, @@ -23728,7 +21012,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteAccountsAccountPeoplePerson( input, - deleteAccountsAccountPeoplePersonResponder, + deleteAccountsAccountPeoplePerson.responder, ctx, ) .catch((err) => { @@ -23738,10 +21022,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteAccountsAccountPeoplePersonResponseValidator( - status, - body, - ) + ctx.body = deleteAccountsAccountPeoplePerson.validator(status, body) ctx.status = status return next() }, @@ -23789,7 +21070,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getAccountsAccountPeoplePerson( input, - getAccountsAccountPeoplePersonResponder, + getAccountsAccountPeoplePerson.responder, ctx, ) .catch((err) => { @@ -23799,7 +21080,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountPeoplePersonResponseValidator(status, body) + ctx.body = getAccountsAccountPeoplePerson.validator(status, body) ctx.status = status return next() }, @@ -23978,7 +21259,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountPeoplePerson( input, - postAccountsAccountPeoplePersonResponder, + postAccountsAccountPeoplePerson.responder, ctx, ) .catch((err) => { @@ -23988,7 +21269,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountPeoplePersonResponseValidator(status, body) + ctx.body = postAccountsAccountPeoplePerson.validator(status, body) ctx.status = status return next() }, @@ -24048,7 +21329,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getAccountsAccountPersons( input, - getAccountsAccountPersonsResponder, + getAccountsAccountPersons.responder, ctx, ) .catch((err) => { @@ -24058,7 +21339,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountPersonsResponseValidator(status, body) + ctx.body = getAccountsAccountPersons.validator(status, body) ctx.status = status return next() }, @@ -24236,7 +21517,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountPersons( input, - postAccountsAccountPersonsResponder, + postAccountsAccountPersons.responder, ctx, ) .catch((err) => { @@ -24246,7 +21527,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountPersonsResponseValidator(status, body) + ctx.body = postAccountsAccountPersons.validator(status, body) ctx.status = status return next() }, @@ -24281,7 +21562,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteAccountsAccountPersonsPerson( input, - deleteAccountsAccountPersonsPersonResponder, + deleteAccountsAccountPersonsPerson.responder, ctx, ) .catch((err) => { @@ -24291,10 +21572,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteAccountsAccountPersonsPersonResponseValidator( - status, - body, - ) + ctx.body = deleteAccountsAccountPersonsPerson.validator(status, body) ctx.status = status return next() }, @@ -24342,7 +21620,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getAccountsAccountPersonsPerson( input, - getAccountsAccountPersonsPersonResponder, + getAccountsAccountPersonsPerson.responder, ctx, ) .catch((err) => { @@ -24352,7 +21630,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAccountsAccountPersonsPersonResponseValidator(status, body) + ctx.body = getAccountsAccountPersonsPerson.validator(status, body) ctx.status = status return next() }, @@ -24531,7 +21809,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountPersonsPerson( input, - postAccountsAccountPersonsPersonResponder, + postAccountsAccountPersonsPerson.responder, ctx, ) .catch((err) => { @@ -24541,7 +21819,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountPersonsPersonResponseValidator(status, body) + ctx.body = postAccountsAccountPersonsPerson.validator(status, body) ctx.status = status return next() }, @@ -24578,7 +21856,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postAccountsAccountReject( input, - postAccountsAccountRejectResponder, + postAccountsAccountReject.responder, ctx, ) .catch((err) => { @@ -24588,7 +21866,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAccountsAccountRejectResponseValidator(status, body) + ctx.body = postAccountsAccountReject.validator(status, body) ctx.status = status return next() }, @@ -24629,7 +21907,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getApplePayDomains(input, getApplePayDomainsResponder, ctx) + .getApplePayDomains(input, getApplePayDomains.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24637,7 +21915,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getApplePayDomainsResponseValidator(status, body) + ctx.body = getApplePayDomains.validator(status, body) ctx.status = status return next() }, @@ -24664,7 +21942,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postApplePayDomains(input, postApplePayDomainsResponder, ctx) + .postApplePayDomains(input, postApplePayDomains.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24672,7 +21950,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postApplePayDomainsResponseValidator(status, body) + ctx.body = postApplePayDomains.validator(status, body) ctx.status = status return next() }, @@ -24706,7 +21984,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteApplePayDomainsDomain( input, - deleteApplePayDomainsDomainResponder, + deleteApplePayDomainsDomain.responder, ctx, ) .catch((err) => { @@ -24716,7 +21994,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteApplePayDomainsDomainResponseValidator(status, body) + ctx.body = deleteApplePayDomainsDomain.validator(status, body) ctx.status = status return next() }, @@ -24761,7 +22039,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getApplePayDomainsDomain(input, getApplePayDomainsDomainResponder, ctx) + .getApplePayDomainsDomain( + input, + getApplePayDomainsDomain.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24769,7 +22051,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getApplePayDomainsDomainResponseValidator(status, body) + ctx.body = getApplePayDomainsDomain.validator(status, body) ctx.status = status return next() }, @@ -24821,7 +22103,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getApplicationFees(input, getApplicationFeesResponder, ctx) + .getApplicationFees(input, getApplicationFees.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24829,7 +22111,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getApplicationFeesResponseValidator(status, body) + ctx.body = getApplicationFees.validator(status, body) ctx.status = status return next() }, @@ -24877,7 +22159,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getApplicationFeesFeeRefundsId( input, - getApplicationFeesFeeRefundsIdResponder, + getApplicationFeesFeeRefundsId.responder, ctx, ) .catch((err) => { @@ -24887,7 +22169,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getApplicationFeesFeeRefundsIdResponseValidator(status, body) + ctx.body = getApplicationFeesFeeRefundsId.validator(status, body) ctx.status = status return next() }, @@ -24927,7 +22209,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postApplicationFeesFeeRefundsId( input, - postApplicationFeesFeeRefundsIdResponder, + postApplicationFeesFeeRefundsId.responder, ctx, ) .catch((err) => { @@ -24937,7 +22219,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postApplicationFeesFeeRefundsIdResponseValidator(status, body) + ctx.body = postApplicationFeesFeeRefundsId.validator(status, body) ctx.status = status return next() }, @@ -24980,7 +22262,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getApplicationFeesId(input, getApplicationFeesIdResponder, ctx) + .getApplicationFeesId(input, getApplicationFeesId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -24988,7 +22270,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getApplicationFeesIdResponseValidator(status, body) + ctx.body = getApplicationFeesId.validator(status, body) ctx.status = status return next() }, @@ -25028,7 +22310,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postApplicationFeesIdRefund( input, - postApplicationFeesIdRefundResponder, + postApplicationFeesIdRefund.responder, ctx, ) .catch((err) => { @@ -25038,7 +22320,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postApplicationFeesIdRefundResponseValidator(status, body) + ctx.body = postApplicationFeesIdRefund.validator(status, body) ctx.status = status return next() }, @@ -25088,7 +22370,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getApplicationFeesIdRefunds( input, - getApplicationFeesIdRefundsResponder, + getApplicationFeesIdRefunds.responder, ctx, ) .catch((err) => { @@ -25098,7 +22380,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getApplicationFeesIdRefundsResponseValidator(status, body) + ctx.body = getApplicationFeesIdRefunds.validator(status, body) ctx.status = status return next() }, @@ -25138,7 +22420,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postApplicationFeesIdRefunds( input, - postApplicationFeesIdRefundsResponder, + postApplicationFeesIdRefunds.responder, ctx, ) .catch((err) => { @@ -25148,7 +22430,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postApplicationFeesIdRefundsResponseValidator(status, body) + ctx.body = postApplicationFeesIdRefunds.validator(status, body) ctx.status = status return next() }, @@ -25189,7 +22471,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getAppsSecrets(input, getAppsSecretsResponder, ctx) + .getAppsSecrets(input, getAppsSecrets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25197,7 +22479,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAppsSecretsResponseValidator(status, body) + ctx.body = getAppsSecrets.validator(status, body) ctx.status = status return next() }) @@ -25226,7 +22508,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postAppsSecrets(input, postAppsSecretsResponder, ctx) + .postAppsSecrets(input, postAppsSecrets.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25234,7 +22516,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAppsSecretsResponseValidator(status, body) + ctx.body = postAppsSecrets.validator(status, body) ctx.status = status return next() }) @@ -25264,7 +22546,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postAppsSecretsDelete(input, postAppsSecretsDeleteResponder, ctx) + .postAppsSecretsDelete(input, postAppsSecretsDelete.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25272,7 +22554,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postAppsSecretsDeleteResponseValidator(status, body) + ctx.body = postAppsSecretsDelete.validator(status, body) ctx.status = status return next() }, @@ -25314,7 +22596,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getAppsSecretsFind(input, getAppsSecretsFindResponder, ctx) + .getAppsSecretsFind(input, getAppsSecretsFind.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25322,7 +22604,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getAppsSecretsFindResponseValidator(status, body) + ctx.body = getAppsSecretsFind.validator(status, body) ctx.status = status return next() }, @@ -25356,7 +22638,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBalance(input, getBalanceResponder, ctx) + .getBalance(input, getBalance.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25364,7 +22646,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBalanceResponseValidator(status, body) + ctx.body = getBalance.validator(status, body) ctx.status = status return next() }) @@ -25415,7 +22697,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBalanceHistory(input, getBalanceHistoryResponder, ctx) + .getBalanceHistory(input, getBalanceHistory.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25423,7 +22705,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBalanceHistoryResponseValidator(status, body) + ctx.body = getBalanceHistory.validator(status, body) ctx.status = status return next() }) @@ -25465,7 +22747,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBalanceHistoryId(input, getBalanceHistoryIdResponder, ctx) + .getBalanceHistoryId(input, getBalanceHistoryId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25473,7 +22755,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBalanceHistoryIdResponseValidator(status, body) + ctx.body = getBalanceHistoryId.validator(status, body) ctx.status = status return next() }, @@ -25528,7 +22810,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBalanceTransactions(input, getBalanceTransactionsResponder, ctx) + .getBalanceTransactions(input, getBalanceTransactions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25536,7 +22818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBalanceTransactionsResponseValidator(status, body) + ctx.body = getBalanceTransactions.validator(status, body) ctx.status = status return next() }, @@ -25581,7 +22863,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBalanceTransactionsId(input, getBalanceTransactionsIdResponder, ctx) + .getBalanceTransactionsId( + input, + getBalanceTransactionsId.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25589,7 +22875,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBalanceTransactionsIdResponseValidator(status, body) + ctx.body = getBalanceTransactionsId.validator(status, body) ctx.status = status return next() }, @@ -25628,7 +22914,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBillingAlerts(input, getBillingAlertsResponder, ctx) + .getBillingAlerts(input, getBillingAlerts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25636,7 +22922,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingAlertsResponseValidator(status, body) + ctx.body = getBillingAlerts.validator(status, body) ctx.status = status return next() }) @@ -25675,7 +22961,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postBillingAlerts(input, postBillingAlertsResponder, ctx) + .postBillingAlerts(input, postBillingAlerts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25683,7 +22969,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingAlertsResponseValidator(status, body) + ctx.body = postBillingAlerts.validator(status, body) ctx.status = status return next() }) @@ -25725,7 +23011,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBillingAlertsId(input, getBillingAlertsIdResponder, ctx) + .getBillingAlertsId(input, getBillingAlertsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -25733,7 +23019,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingAlertsIdResponseValidator(status, body) + ctx.body = getBillingAlertsId.validator(status, body) ctx.status = status return next() }, @@ -25769,7 +23055,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingAlertsIdActivate( input, - postBillingAlertsIdActivateResponder, + postBillingAlertsIdActivate.responder, ctx, ) .catch((err) => { @@ -25779,7 +23065,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingAlertsIdActivateResponseValidator(status, body) + ctx.body = postBillingAlertsIdActivate.validator(status, body) ctx.status = status return next() }, @@ -25815,7 +23101,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingAlertsIdArchive( input, - postBillingAlertsIdArchiveResponder, + postBillingAlertsIdArchive.responder, ctx, ) .catch((err) => { @@ -25825,7 +23111,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingAlertsIdArchiveResponseValidator(status, body) + ctx.body = postBillingAlertsIdArchive.validator(status, body) ctx.status = status return next() }, @@ -25861,7 +23147,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingAlertsIdDeactivate( input, - postBillingAlertsIdDeactivateResponder, + postBillingAlertsIdDeactivate.responder, ctx, ) .catch((err) => { @@ -25871,7 +23157,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingAlertsIdDeactivateResponseValidator(status, body) + ctx.body = postBillingAlertsIdDeactivate.validator(status, body) ctx.status = status return next() }, @@ -25921,7 +23207,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getBillingCreditBalanceSummary( input, - getBillingCreditBalanceSummaryResponder, + getBillingCreditBalanceSummary.responder, ctx, ) .catch((err) => { @@ -25931,7 +23217,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingCreditBalanceSummaryResponseValidator(status, body) + ctx.body = getBillingCreditBalanceSummary.validator(status, body) ctx.status = status return next() }, @@ -25975,7 +23261,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getBillingCreditBalanceTransactions( input, - getBillingCreditBalanceTransactionsResponder, + getBillingCreditBalanceTransactions.responder, ctx, ) .catch((err) => { @@ -25985,10 +23271,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingCreditBalanceTransactionsResponseValidator( - status, - body, - ) + ctx.body = getBillingCreditBalanceTransactions.validator(status, body) ctx.status = status return next() }, @@ -26037,7 +23320,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getBillingCreditBalanceTransactionsId( input, - getBillingCreditBalanceTransactionsIdResponder, + getBillingCreditBalanceTransactionsId.responder, ctx, ) .catch((err) => { @@ -26047,10 +23330,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingCreditBalanceTransactionsIdResponseValidator( - status, - body, - ) + ctx.body = getBillingCreditBalanceTransactionsId.validator(status, body) ctx.status = status return next() }, @@ -26091,7 +23371,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBillingCreditGrants(input, getBillingCreditGrantsResponder, ctx) + .getBillingCreditGrants(input, getBillingCreditGrants.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26099,7 +23379,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingCreditGrantsResponseValidator(status, body) + ctx.body = getBillingCreditGrants.validator(status, body) ctx.status = status return next() }, @@ -26144,7 +23424,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postBillingCreditGrants(input, postBillingCreditGrantsResponder, ctx) + .postBillingCreditGrants(input, postBillingCreditGrants.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26152,7 +23432,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingCreditGrantsResponseValidator(status, body) + ctx.body = postBillingCreditGrants.validator(status, body) ctx.status = status return next() }, @@ -26197,7 +23477,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBillingCreditGrantsId(input, getBillingCreditGrantsIdResponder, ctx) + .getBillingCreditGrantsId( + input, + getBillingCreditGrantsId.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26205,7 +23489,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingCreditGrantsIdResponseValidator(status, body) + ctx.body = getBillingCreditGrantsId.validator(status, body) ctx.status = status return next() }, @@ -26245,7 +23529,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingCreditGrantsId( input, - postBillingCreditGrantsIdResponder, + postBillingCreditGrantsId.responder, ctx, ) .catch((err) => { @@ -26255,7 +23539,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingCreditGrantsIdResponseValidator(status, body) + ctx.body = postBillingCreditGrantsId.validator(status, body) ctx.status = status return next() }, @@ -26291,7 +23575,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingCreditGrantsIdExpire( input, - postBillingCreditGrantsIdExpireResponder, + postBillingCreditGrantsIdExpire.responder, ctx, ) .catch((err) => { @@ -26301,7 +23585,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingCreditGrantsIdExpireResponseValidator(status, body) + ctx.body = postBillingCreditGrantsIdExpire.validator(status, body) ctx.status = status return next() }, @@ -26337,7 +23621,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingCreditGrantsIdVoid( input, - postBillingCreditGrantsIdVoidResponder, + postBillingCreditGrantsIdVoid.responder, ctx, ) .catch((err) => { @@ -26347,7 +23631,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingCreditGrantsIdVoidResponseValidator(status, body) + ctx.body = postBillingCreditGrantsIdVoid.validator(status, body) ctx.status = status return next() }, @@ -26378,7 +23662,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingMeterEventAdjustments( input, - postBillingMeterEventAdjustmentsResponder, + postBillingMeterEventAdjustments.responder, ctx, ) .catch((err) => { @@ -26388,7 +23672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingMeterEventAdjustmentsResponseValidator(status, body) + ctx.body = postBillingMeterEventAdjustments.validator(status, body) ctx.status = status return next() }, @@ -26418,7 +23702,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postBillingMeterEvents(input, postBillingMeterEventsResponder, ctx) + .postBillingMeterEvents(input, postBillingMeterEvents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26426,7 +23710,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingMeterEventsResponseValidator(status, body) + ctx.body = postBillingMeterEvents.validator(status, body) ctx.status = status return next() }, @@ -26464,7 +23748,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBillingMeters(input, getBillingMetersResponder, ctx) + .getBillingMeters(input, getBillingMeters.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26472,7 +23756,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingMetersResponseValidator(status, body) + ctx.body = getBillingMeters.validator(status, body) ctx.status = status return next() }) @@ -26509,7 +23793,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postBillingMeters(input, postBillingMetersResponder, ctx) + .postBillingMeters(input, postBillingMeters.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26517,7 +23801,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingMetersResponseValidator(status, body) + ctx.body = postBillingMeters.validator(status, body) ctx.status = status return next() }) @@ -26559,7 +23843,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getBillingMetersId(input, getBillingMetersIdResponder, ctx) + .getBillingMetersId(input, getBillingMetersId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26567,7 +23851,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingMetersIdResponseValidator(status, body) + ctx.body = getBillingMetersId.validator(status, body) ctx.status = status return next() }, @@ -26602,7 +23886,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postBillingMetersId(input, postBillingMetersIdResponder, ctx) + .postBillingMetersId(input, postBillingMetersId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -26610,7 +23894,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingMetersIdResponseValidator(status, body) + ctx.body = postBillingMetersId.validator(status, body) ctx.status = status return next() }, @@ -26646,7 +23930,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingMetersIdDeactivate( input, - postBillingMetersIdDeactivateResponder, + postBillingMetersIdDeactivate.responder, ctx, ) .catch((err) => { @@ -26656,7 +23940,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingMetersIdDeactivateResponseValidator(status, body) + ctx.body = postBillingMetersIdDeactivate.validator(status, body) ctx.status = status return next() }, @@ -26710,7 +23994,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getBillingMetersIdEventSummaries( input, - getBillingMetersIdEventSummariesResponder, + getBillingMetersIdEventSummaries.responder, ctx, ) .catch((err) => { @@ -26720,7 +24004,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingMetersIdEventSummariesResponseValidator(status, body) + ctx.body = getBillingMetersIdEventSummaries.validator(status, body) ctx.status = status return next() }, @@ -26756,7 +24040,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingMetersIdReactivate( input, - postBillingMetersIdReactivateResponder, + postBillingMetersIdReactivate.responder, ctx, ) .catch((err) => { @@ -26766,7 +24050,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingMetersIdReactivateResponseValidator(status, body) + ctx.body = postBillingMetersIdReactivate.validator(status, body) ctx.status = status return next() }, @@ -26810,7 +24094,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getBillingPortalConfigurations( input, - getBillingPortalConfigurationsResponder, + getBillingPortalConfigurations.responder, ctx, ) .catch((err) => { @@ -26820,7 +24104,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingPortalConfigurationsResponseValidator(status, body) + ctx.body = getBillingPortalConfigurations.validator(status, body) ctx.status = status return next() }, @@ -26952,7 +24236,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingPortalConfigurations( input, - postBillingPortalConfigurationsResponder, + postBillingPortalConfigurations.responder, ctx, ) .catch((err) => { @@ -26962,7 +24246,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingPortalConfigurationsResponseValidator(status, body) + ctx.body = postBillingPortalConfigurations.validator(status, body) ctx.status = status return next() }, @@ -27011,7 +24295,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getBillingPortalConfigurationsConfiguration( input, - getBillingPortalConfigurationsConfigurationResponder, + getBillingPortalConfigurationsConfiguration.responder, ctx, ) .catch((err) => { @@ -27021,7 +24305,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getBillingPortalConfigurationsConfigurationResponseValidator( + ctx.body = getBillingPortalConfigurationsConfiguration.validator( status, body, ) @@ -27174,7 +24458,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingPortalConfigurationsConfiguration( input, - postBillingPortalConfigurationsConfigurationResponder, + postBillingPortalConfigurationsConfiguration.responder, ctx, ) .catch((err) => { @@ -27184,7 +24468,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingPortalConfigurationsConfigurationResponseValidator( + ctx.body = postBillingPortalConfigurationsConfiguration.validator( status, body, ) @@ -27327,7 +24611,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postBillingPortalSessions( input, - postBillingPortalSessionsResponder, + postBillingPortalSessions.responder, ctx, ) .catch((err) => { @@ -27337,7 +24621,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postBillingPortalSessionsResponseValidator(status, body) + ctx.body = postBillingPortalSessions.validator(status, body) ctx.status = status return next() }, @@ -27388,7 +24672,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCharges(input, getChargesResponder, ctx) + .getCharges(input, getCharges.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27396,7 +24680,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getChargesResponseValidator(status, body) + ctx.body = getCharges.validator(status, body) ctx.status = status return next() }) @@ -27488,7 +24772,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCharges(input, postChargesResponder, ctx) + .postCharges(input, postCharges.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27496,7 +24780,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postChargesResponseValidator(status, body) + ctx.body = postCharges.validator(status, body) ctx.status = status return next() }) @@ -27532,7 +24816,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getChargesSearch(input, getChargesSearchResponder, ctx) + .getChargesSearch(input, getChargesSearch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27540,7 +24824,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getChargesSearchResponseValidator(status, body) + ctx.body = getChargesSearch.validator(status, body) ctx.status = status return next() }) @@ -27579,7 +24863,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getChargesCharge(input, getChargesChargeResponder, ctx) + .getChargesCharge(input, getChargesCharge.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27587,7 +24871,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getChargesChargeResponseValidator(status, body) + ctx.body = getChargesCharge.validator(status, body) ctx.status = status return next() }) @@ -27643,7 +24927,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postChargesCharge(input, postChargesChargeResponder, ctx) + .postChargesCharge(input, postChargesCharge.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27651,7 +24935,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postChargesChargeResponseValidator(status, body) + ctx.body = postChargesCharge.validator(status, body) ctx.status = status return next() }) @@ -27696,7 +24980,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postChargesChargeCapture(input, postChargesChargeCaptureResponder, ctx) + .postChargesChargeCapture( + input, + postChargesChargeCapture.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27704,7 +24992,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postChargesChargeCaptureResponseValidator(status, body) + ctx.body = postChargesChargeCapture.validator(status, body) ctx.status = status return next() }, @@ -27749,7 +25037,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getChargesChargeDispute(input, getChargesChargeDisputeResponder, ctx) + .getChargesChargeDispute(input, getChargesChargeDispute.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27757,7 +25045,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getChargesChargeDisputeResponseValidator(status, body) + ctx.body = getChargesChargeDispute.validator(status, body) ctx.status = status return next() }, @@ -27934,7 +25222,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postChargesChargeDispute(input, postChargesChargeDisputeResponder, ctx) + .postChargesChargeDispute( + input, + postChargesChargeDispute.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -27942,7 +25234,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postChargesChargeDisputeResponseValidator(status, body) + ctx.body = postChargesChargeDispute.validator(status, body) ctx.status = status return next() }, @@ -27978,7 +25270,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postChargesChargeDisputeClose( input, - postChargesChargeDisputeCloseResponder, + postChargesChargeDisputeClose.responder, ctx, ) .catch((err) => { @@ -27988,7 +25280,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postChargesChargeDisputeCloseResponseValidator(status, body) + ctx.body = postChargesChargeDisputeClose.validator(status, body) ctx.status = status return next() }, @@ -28033,7 +25325,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postChargesChargeRefund(input, postChargesChargeRefundResponder, ctx) + .postChargesChargeRefund(input, postChargesChargeRefund.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28041,7 +25333,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postChargesChargeRefundResponseValidator(status, body) + ctx.body = postChargesChargeRefund.validator(status, body) ctx.status = status return next() }, @@ -28087,7 +25379,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getChargesChargeRefunds(input, getChargesChargeRefundsResponder, ctx) + .getChargesChargeRefunds(input, getChargesChargeRefunds.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28095,7 +25387,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getChargesChargeRefundsResponseValidator(status, body) + ctx.body = getChargesChargeRefunds.validator(status, body) ctx.status = status return next() }, @@ -28143,7 +25435,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postChargesChargeRefunds(input, postChargesChargeRefundsResponder, ctx) + .postChargesChargeRefunds( + input, + postChargesChargeRefunds.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28151,7 +25447,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postChargesChargeRefundsResponseValidator(status, body) + ctx.body = postChargesChargeRefunds.validator(status, body) ctx.status = status return next() }, @@ -28199,7 +25495,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getChargesChargeRefundsRefund( input, - getChargesChargeRefundsRefundResponder, + getChargesChargeRefundsRefund.responder, ctx, ) .catch((err) => { @@ -28209,7 +25505,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getChargesChargeRefundsRefundResponseValidator(status, body) + ctx.body = getChargesChargeRefundsRefund.validator(status, body) ctx.status = status return next() }, @@ -28249,7 +25545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postChargesChargeRefundsRefund( input, - postChargesChargeRefundsRefundResponder, + postChargesChargeRefundsRefund.responder, ctx, ) .catch((err) => { @@ -28259,7 +25555,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postChargesChargeRefundsRefundResponseValidator(status, body) + ctx.body = postChargesChargeRefundsRefund.validator(status, body) ctx.status = status return next() }, @@ -28316,7 +25612,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCheckoutSessions(input, getCheckoutSessionsResponder, ctx) + .getCheckoutSessions(input, getCheckoutSessions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -28324,7 +25620,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCheckoutSessionsResponseValidator(status, body) + ctx.body = getCheckoutSessions.validator(status, body) ctx.status = status return next() }, @@ -29425,7 +26721,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCheckoutSessions(input, postCheckoutSessionsResponder, ctx) + .postCheckoutSessions(input, postCheckoutSessions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29433,7 +26729,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCheckoutSessionsResponseValidator(status, body) + ctx.body = postCheckoutSessions.validator(status, body) ctx.status = status return next() }, @@ -29480,7 +26776,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCheckoutSessionsSession( input, - getCheckoutSessionsSessionResponder, + getCheckoutSessionsSession.responder, ctx, ) .catch((err) => { @@ -29490,7 +26786,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCheckoutSessionsSessionResponseValidator(status, body) + ctx.body = getCheckoutSessionsSession.validator(status, body) ctx.status = status return next() }, @@ -29611,7 +26907,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCheckoutSessionsSession( input, - postCheckoutSessionsSessionResponder, + postCheckoutSessionsSession.responder, ctx, ) .catch((err) => { @@ -29621,7 +26917,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCheckoutSessionsSessionResponseValidator(status, body) + ctx.body = postCheckoutSessionsSession.validator(status, body) ctx.status = status return next() }, @@ -29657,7 +26953,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCheckoutSessionsSessionExpire( input, - postCheckoutSessionsSessionExpireResponder, + postCheckoutSessionsSessionExpire.responder, ctx, ) .catch((err) => { @@ -29667,10 +26963,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCheckoutSessionsSessionExpireResponseValidator( - status, - body, - ) + ctx.body = postCheckoutSessionsSessionExpire.validator(status, body) ctx.status = status return next() }, @@ -29720,7 +27013,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCheckoutSessionsSessionLineItems( input, - getCheckoutSessionsSessionLineItemsResponder, + getCheckoutSessionsSessionLineItems.responder, ctx, ) .catch((err) => { @@ -29730,10 +27023,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCheckoutSessionsSessionLineItemsResponseValidator( - status, - body, - ) + ctx.body = getCheckoutSessionsSessionLineItems.validator(status, body) ctx.status = status return next() }, @@ -29770,7 +27060,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getClimateOrders(input, getClimateOrdersResponder, ctx) + .getClimateOrders(input, getClimateOrders.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29778,7 +27068,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getClimateOrdersResponseValidator(status, body) + ctx.body = getClimateOrders.validator(status, body) ctx.status = status return next() }) @@ -29806,7 +27096,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postClimateOrders(input, postClimateOrdersResponder, ctx) + .postClimateOrders(input, postClimateOrders.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29814,7 +27104,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postClimateOrdersResponseValidator(status, body) + ctx.body = postClimateOrders.validator(status, body) ctx.status = status return next() }) @@ -29858,7 +27148,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getClimateOrdersOrder(input, getClimateOrdersOrderResponder, ctx) + .getClimateOrdersOrder(input, getClimateOrdersOrder.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29866,7 +27156,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getClimateOrdersOrderResponseValidator(status, body) + ctx.body = getClimateOrdersOrder.validator(status, body) ctx.status = status return next() }, @@ -29911,7 +27201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postClimateOrdersOrder(input, postClimateOrdersOrderResponder, ctx) + .postClimateOrdersOrder(input, postClimateOrdersOrder.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -29919,7 +27209,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postClimateOrdersOrderResponseValidator(status, body) + ctx.body = postClimateOrdersOrder.validator(status, body) ctx.status = status return next() }, @@ -29955,7 +27245,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postClimateOrdersOrderCancel( input, - postClimateOrdersOrderCancelResponder, + postClimateOrdersOrderCancel.responder, ctx, ) .catch((err) => { @@ -29965,7 +27255,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postClimateOrdersOrderCancelResponseValidator(status, body) + ctx.body = postClimateOrdersOrderCancel.validator(status, body) ctx.status = status return next() }, @@ -30005,7 +27295,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getClimateProducts(input, getClimateProductsResponder, ctx) + .getClimateProducts(input, getClimateProducts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30013,7 +27303,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getClimateProductsResponseValidator(status, body) + ctx.body = getClimateProducts.validator(status, body) ctx.status = status return next() }, @@ -30060,7 +27350,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getClimateProductsProduct( input, - getClimateProductsProductResponder, + getClimateProductsProduct.responder, ctx, ) .catch((err) => { @@ -30070,7 +27360,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getClimateProductsProductResponseValidator(status, body) + ctx.body = getClimateProductsProduct.validator(status, body) ctx.status = status return next() }, @@ -30110,7 +27400,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getClimateSuppliers(input, getClimateSuppliersResponder, ctx) + .getClimateSuppliers(input, getClimateSuppliers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30118,7 +27408,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getClimateSuppliersResponseValidator(status, body) + ctx.body = getClimateSuppliers.validator(status, body) ctx.status = status return next() }, @@ -30165,7 +27455,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getClimateSuppliersSupplier( input, - getClimateSuppliersSupplierResponder, + getClimateSuppliersSupplier.responder, ctx, ) .catch((err) => { @@ -30175,7 +27465,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getClimateSuppliersSupplierResponseValidator(status, body) + ctx.body = getClimateSuppliersSupplier.validator(status, body) ctx.status = status return next() }, @@ -30224,7 +27514,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getConfirmationTokensConfirmationToken( input, - getConfirmationTokensConfirmationTokenResponder, + getConfirmationTokensConfirmationToken.responder, ctx, ) .catch((err) => { @@ -30234,10 +27524,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getConfirmationTokensConfirmationTokenResponseValidator( - status, - body, - ) + ctx.body = getConfirmationTokensConfirmationToken.validator(status, body) ctx.status = status return next() }, @@ -30274,7 +27561,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCountrySpecs(input, getCountrySpecsResponder, ctx) + .getCountrySpecs(input, getCountrySpecs.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30282,7 +27569,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCountrySpecsResponseValidator(status, body) + ctx.body = getCountrySpecs.validator(status, body) ctx.status = status return next() }) @@ -30326,7 +27613,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCountrySpecsCountry(input, getCountrySpecsCountryResponder, ctx) + .getCountrySpecsCountry(input, getCountrySpecsCountry.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30334,7 +27621,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCountrySpecsCountryResponseValidator(status, body) + ctx.body = getCountrySpecsCountry.validator(status, body) ctx.status = status return next() }, @@ -30382,7 +27669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCoupons(input, getCouponsResponder, ctx) + .getCoupons(input, getCoupons.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30390,7 +27677,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCouponsResponseValidator(status, body) + ctx.body = getCoupons.validator(status, body) ctx.status = status return next() }) @@ -30430,7 +27717,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCoupons(input, postCouponsResponder, ctx) + .postCoupons(input, postCoupons.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30438,7 +27725,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCouponsResponseValidator(status, body) + ctx.body = postCoupons.validator(status, body) ctx.status = status return next() }) @@ -30469,7 +27756,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteCouponsCoupon(input, deleteCouponsCouponResponder, ctx) + .deleteCouponsCoupon(input, deleteCouponsCoupon.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30477,7 +27764,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteCouponsCouponResponseValidator(status, body) + ctx.body = deleteCouponsCoupon.validator(status, body) ctx.status = status return next() }, @@ -30517,7 +27804,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCouponsCoupon(input, getCouponsCouponResponder, ctx) + .getCouponsCoupon(input, getCouponsCoupon.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30525,7 +27812,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCouponsCouponResponseValidator(status, body) + ctx.body = getCouponsCoupon.validator(status, body) ctx.status = status return next() }) @@ -30562,7 +27849,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCouponsCoupon(input, postCouponsCouponResponder, ctx) + .postCouponsCoupon(input, postCouponsCoupon.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30570,7 +27857,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCouponsCouponResponseValidator(status, body) + ctx.body = postCouponsCoupon.validator(status, body) ctx.status = status return next() }) @@ -30619,7 +27906,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCreditNotes(input, getCreditNotesResponder, ctx) + .getCreditNotes(input, getCreditNotes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30627,7 +27914,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCreditNotesResponseValidator(status, body) + ctx.body = getCreditNotes.validator(status, body) ctx.status = status return next() }) @@ -30705,7 +27992,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCreditNotes(input, postCreditNotesResponder, ctx) + .postCreditNotes(input, postCreditNotes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30713,7 +28000,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCreditNotesResponseValidator(status, body) + ctx.body = postCreditNotes.validator(status, body) ctx.status = status return next() }) @@ -30811,7 +28098,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCreditNotesPreview(input, getCreditNotesPreviewResponder, ctx) + .getCreditNotesPreview(input, getCreditNotesPreview.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -30819,7 +28106,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCreditNotesPreviewResponseValidator(status, body) + ctx.body = getCreditNotesPreview.validator(status, body) ctx.status = status return next() }, @@ -30923,7 +28210,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCreditNotesPreviewLines( input, - getCreditNotesPreviewLinesResponder, + getCreditNotesPreviewLines.responder, ctx, ) .catch((err) => { @@ -30933,7 +28220,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCreditNotesPreviewLinesResponseValidator(status, body) + ctx.body = getCreditNotesPreviewLines.validator(status, body) ctx.status = status return next() }, @@ -30983,7 +28270,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCreditNotesCreditNoteLines( input, - getCreditNotesCreditNoteLinesResponder, + getCreditNotesCreditNoteLines.responder, ctx, ) .catch((err) => { @@ -30993,7 +28280,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCreditNotesCreditNoteLinesResponseValidator(status, body) + ctx.body = getCreditNotesCreditNoteLines.validator(status, body) ctx.status = status return next() }, @@ -31033,7 +28320,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCreditNotesId(input, getCreditNotesIdResponder, ctx) + .getCreditNotesId(input, getCreditNotesId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31041,7 +28328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCreditNotesIdResponseValidator(status, body) + ctx.body = getCreditNotesId.validator(status, body) ctx.status = status return next() }) @@ -31076,7 +28363,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCreditNotesId(input, postCreditNotesIdResponder, ctx) + .postCreditNotesId(input, postCreditNotesId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31084,7 +28371,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCreditNotesIdResponseValidator(status, body) + ctx.body = postCreditNotesId.validator(status, body) ctx.status = status return next() }, @@ -31118,7 +28405,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCreditNotesIdVoid(input, postCreditNotesIdVoidResponder, ctx) + .postCreditNotesIdVoid(input, postCreditNotesIdVoid.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31126,7 +28413,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCreditNotesIdVoidResponseValidator(status, body) + ctx.body = postCreditNotesIdVoid.validator(status, body) ctx.status = status return next() }, @@ -31178,7 +28465,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCustomerSessions(input, postCustomerSessionsResponder, ctx) + .postCustomerSessions(input, postCustomerSessions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31186,7 +28473,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomerSessionsResponseValidator(status, body) + ctx.body = postCustomerSessions.validator(status, body) ctx.status = status return next() }, @@ -31236,7 +28523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCustomers(input, getCustomersResponder, ctx) + .getCustomers(input, getCustomers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31244,7 +28531,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersResponseValidator(status, body) + ctx.body = getCustomers.validator(status, body) ctx.status = status return next() }) @@ -31465,7 +28752,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCustomers(input, postCustomersResponder, ctx) + .postCustomers(input, postCustomers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31473,7 +28760,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersResponseValidator(status, body) + ctx.body = postCustomers.validator(status, body) ctx.status = status return next() }) @@ -31512,7 +28799,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCustomersSearch(input, getCustomersSearchResponder, ctx) + .getCustomersSearch(input, getCustomersSearch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31520,7 +28807,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersSearchResponseValidator(status, body) + ctx.body = getCustomersSearch.validator(status, body) ctx.status = status return next() }, @@ -31552,7 +28839,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteCustomersCustomer(input, deleteCustomersCustomerResponder, ctx) + .deleteCustomersCustomer(input, deleteCustomersCustomer.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31560,7 +28847,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteCustomersCustomerResponseValidator(status, body) + ctx.body = deleteCustomersCustomer.validator(status, body) ctx.status = status return next() }, @@ -31605,7 +28892,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getCustomersCustomer(input, getCustomersCustomerResponder, ctx) + .getCustomersCustomer(input, getCustomersCustomer.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31613,7 +28900,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerResponseValidator(status, body) + ctx.body = getCustomersCustomer.validator(status, body) ctx.status = status return next() }, @@ -31775,7 +29062,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postCustomersCustomer(input, postCustomersCustomerResponder, ctx) + .postCustomersCustomer(input, postCustomersCustomer.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -31783,7 +29070,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerResponseValidator(status, body) + ctx.body = postCustomersCustomer.validator(status, body) ctx.status = status return next() }, @@ -31835,7 +29122,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerBalanceTransactions( input, - getCustomersCustomerBalanceTransactionsResponder, + getCustomersCustomerBalanceTransactions.responder, ctx, ) .catch((err) => { @@ -31845,10 +29132,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerBalanceTransactionsResponseValidator( - status, - body, - ) + ctx.body = getCustomersCustomerBalanceTransactions.validator(status, body) ctx.status = status return next() }, @@ -31888,7 +29172,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerBalanceTransactions( input, - postCustomersCustomerBalanceTransactionsResponder, + postCustomersCustomerBalanceTransactions.responder, ctx, ) .catch((err) => { @@ -31898,7 +29182,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerBalanceTransactionsResponseValidator( + ctx.body = postCustomersCustomerBalanceTransactions.validator( status, body, ) @@ -31950,7 +29234,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerBalanceTransactionsTransaction( input, - getCustomersCustomerBalanceTransactionsTransactionResponder, + getCustomersCustomerBalanceTransactionsTransaction.responder, ctx, ) .catch((err) => { @@ -31960,11 +29244,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - getCustomersCustomerBalanceTransactionsTransactionResponseValidator( - status, - body, - ) + ctx.body = getCustomersCustomerBalanceTransactionsTransaction.validator( + status, + body, + ) ctx.status = status return next() }, @@ -32006,7 +29289,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerBalanceTransactionsTransaction( input, - postCustomersCustomerBalanceTransactionsTransactionResponder, + postCustomersCustomerBalanceTransactionsTransaction.responder, ctx, ) .catch((err) => { @@ -32016,11 +29299,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postCustomersCustomerBalanceTransactionsTransactionResponseValidator( - status, - body, - ) + ctx.body = postCustomersCustomerBalanceTransactionsTransaction.validator( + status, + body, + ) ctx.status = status return next() }, @@ -32070,7 +29352,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerBankAccounts( input, - getCustomersCustomerBankAccountsResponder, + getCustomersCustomerBankAccounts.responder, ctx, ) .catch((err) => { @@ -32080,7 +29362,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerBankAccountsResponseValidator(status, body) + ctx.body = getCustomersCustomerBankAccounts.validator(status, body) ctx.status = status return next() }, @@ -32155,7 +29437,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerBankAccounts( input, - postCustomersCustomerBankAccountsResponder, + postCustomersCustomerBankAccounts.responder, ctx, ) .catch((err) => { @@ -32165,10 +29447,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerBankAccountsResponseValidator( - status, - body, - ) + ctx.body = postCustomersCustomerBankAccounts.validator(status, body) ctx.status = status return next() }, @@ -32205,7 +29484,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteCustomersCustomerBankAccountsId( input, - deleteCustomersCustomerBankAccountsIdResponder, + deleteCustomersCustomerBankAccountsId.responder, ctx, ) .catch((err) => { @@ -32215,10 +29494,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteCustomersCustomerBankAccountsIdResponseValidator( - status, - body, - ) + ctx.body = deleteCustomersCustomerBankAccountsId.validator(status, body) ctx.status = status return next() }, @@ -32266,7 +29542,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerBankAccountsId( input, - getCustomersCustomerBankAccountsIdResponder, + getCustomersCustomerBankAccountsId.responder, ctx, ) .catch((err) => { @@ -32276,10 +29552,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerBankAccountsIdResponseValidator( - status, - body, - ) + ctx.body = getCustomersCustomerBankAccountsId.validator(status, body) ctx.status = status return next() }, @@ -32347,7 +29620,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerBankAccountsId( input, - postCustomersCustomerBankAccountsIdResponder, + postCustomersCustomerBankAccountsId.responder, ctx, ) .catch((err) => { @@ -32357,10 +29630,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerBankAccountsIdResponseValidator( - status, - body, - ) + ctx.body = postCustomersCustomerBankAccountsId.validator(status, body) ctx.status = status return next() }, @@ -32400,7 +29670,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerBankAccountsIdVerify( input, - postCustomersCustomerBankAccountsIdVerifyResponder, + postCustomersCustomerBankAccountsIdVerify.responder, ctx, ) .catch((err) => { @@ -32410,7 +29680,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerBankAccountsIdVerifyResponseValidator( + ctx.body = postCustomersCustomerBankAccountsIdVerify.validator( status, body, ) @@ -32463,7 +29733,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerCards( input, - getCustomersCustomerCardsResponder, + getCustomersCustomerCards.responder, ctx, ) .catch((err) => { @@ -32473,7 +29743,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerCardsResponseValidator(status, body) + ctx.body = getCustomersCustomerCards.validator(status, body) ctx.status = status return next() }, @@ -32548,7 +29818,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerCards( input, - postCustomersCustomerCardsResponder, + postCustomersCustomerCards.responder, ctx, ) .catch((err) => { @@ -32558,7 +29828,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerCardsResponseValidator(status, body) + ctx.body = postCustomersCustomerCards.validator(status, body) ctx.status = status return next() }, @@ -32595,7 +29865,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteCustomersCustomerCardsId( input, - deleteCustomersCustomerCardsIdResponder, + deleteCustomersCustomerCardsId.responder, ctx, ) .catch((err) => { @@ -32605,7 +29875,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteCustomersCustomerCardsIdResponseValidator(status, body) + ctx.body = deleteCustomersCustomerCardsId.validator(status, body) ctx.status = status return next() }, @@ -32653,7 +29923,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerCardsId( input, - getCustomersCustomerCardsIdResponder, + getCustomersCustomerCardsId.responder, ctx, ) .catch((err) => { @@ -32663,7 +29933,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerCardsIdResponseValidator(status, body) + ctx.body = getCustomersCustomerCardsId.validator(status, body) ctx.status = status return next() }, @@ -32731,7 +30001,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerCardsId( input, - postCustomersCustomerCardsIdResponder, + postCustomersCustomerCardsId.responder, ctx, ) .catch((err) => { @@ -32741,7 +30011,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerCardsIdResponseValidator(status, body) + ctx.body = postCustomersCustomerCardsId.validator(status, body) ctx.status = status return next() }, @@ -32788,7 +30058,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerCashBalance( input, - getCustomersCustomerCashBalanceResponder, + getCustomersCustomerCashBalance.responder, ctx, ) .catch((err) => { @@ -32798,7 +30068,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerCashBalanceResponseValidator(status, body) + ctx.body = getCustomersCustomerCashBalance.validator(status, body) ctx.status = status return next() }, @@ -32843,7 +30113,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerCashBalance( input, - postCustomersCustomerCashBalanceResponder, + postCustomersCustomerCashBalance.responder, ctx, ) .catch((err) => { @@ -32853,7 +30123,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerCashBalanceResponseValidator(status, body) + ctx.body = postCustomersCustomerCashBalance.validator(status, body) ctx.status = status return next() }, @@ -32905,7 +30175,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerCashBalanceTransactions( input, - getCustomersCustomerCashBalanceTransactionsResponder, + getCustomersCustomerCashBalanceTransactions.responder, ctx, ) .catch((err) => { @@ -32915,7 +30185,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerCashBalanceTransactionsResponseValidator( + ctx.body = getCustomersCustomerCashBalanceTransactions.validator( status, body, ) @@ -32967,7 +30237,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerCashBalanceTransactionsTransaction( input, - getCustomersCustomerCashBalanceTransactionsTransactionResponder, + getCustomersCustomerCashBalanceTransactionsTransaction.responder, ctx, ) .catch((err) => { @@ -32978,7 +30248,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - getCustomersCustomerCashBalanceTransactionsTransactionResponseValidator( + getCustomersCustomerCashBalanceTransactionsTransaction.validator( status, body, ) @@ -33015,7 +30285,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteCustomersCustomerDiscount( input, - deleteCustomersCustomerDiscountResponder, + deleteCustomersCustomerDiscount.responder, ctx, ) .catch((err) => { @@ -33025,7 +30295,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteCustomersCustomerDiscountResponseValidator(status, body) + ctx.body = deleteCustomersCustomerDiscount.validator(status, body) ctx.status = status return next() }, @@ -33072,7 +30342,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerDiscount( input, - getCustomersCustomerDiscountResponder, + getCustomersCustomerDiscount.responder, ctx, ) .catch((err) => { @@ -33082,7 +30352,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerDiscountResponseValidator(status, body) + ctx.body = getCustomersCustomerDiscount.validator(status, body) ctx.status = status return next() }, @@ -33133,7 +30403,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerFundingInstructions( input, - postCustomersCustomerFundingInstructionsResponder, + postCustomersCustomerFundingInstructions.responder, ctx, ) .catch((err) => { @@ -33143,7 +30413,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerFundingInstructionsResponseValidator( + ctx.body = postCustomersCustomerFundingInstructions.validator( status, body, ) @@ -33248,7 +30518,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerPaymentMethods( input, - getCustomersCustomerPaymentMethodsResponder, + getCustomersCustomerPaymentMethods.responder, ctx, ) .catch((err) => { @@ -33258,10 +30528,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerPaymentMethodsResponseValidator( - status, - body, - ) + ctx.body = getCustomersCustomerPaymentMethods.validator(status, body) ctx.status = status return next() }, @@ -33311,7 +30578,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerPaymentMethodsPaymentMethod( input, - getCustomersCustomerPaymentMethodsPaymentMethodResponder, + getCustomersCustomerPaymentMethodsPaymentMethod.responder, ctx, ) .catch((err) => { @@ -33321,11 +30588,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - getCustomersCustomerPaymentMethodsPaymentMethodResponseValidator( - status, - body, - ) + ctx.body = getCustomersCustomerPaymentMethodsPaymentMethod.validator( + status, + body, + ) ctx.status = status return next() }, @@ -33376,7 +30642,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerSources( input, - getCustomersCustomerSourcesResponder, + getCustomersCustomerSources.responder, ctx, ) .catch((err) => { @@ -33386,7 +30652,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerSourcesResponseValidator(status, body) + ctx.body = getCustomersCustomerSources.validator(status, body) ctx.status = status return next() }, @@ -33461,7 +30727,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerSources( input, - postCustomersCustomerSourcesResponder, + postCustomersCustomerSources.responder, ctx, ) .catch((err) => { @@ -33471,7 +30737,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerSourcesResponseValidator(status, body) + ctx.body = postCustomersCustomerSources.validator(status, body) ctx.status = status return next() }, @@ -33508,7 +30774,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteCustomersCustomerSourcesId( input, - deleteCustomersCustomerSourcesIdResponder, + deleteCustomersCustomerSourcesId.responder, ctx, ) .catch((err) => { @@ -33518,7 +30784,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteCustomersCustomerSourcesIdResponseValidator(status, body) + ctx.body = deleteCustomersCustomerSourcesId.validator(status, body) ctx.status = status return next() }, @@ -33566,7 +30832,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerSourcesId( input, - getCustomersCustomerSourcesIdResponder, + getCustomersCustomerSourcesId.responder, ctx, ) .catch((err) => { @@ -33576,7 +30842,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerSourcesIdResponseValidator(status, body) + ctx.body = getCustomersCustomerSourcesId.validator(status, body) ctx.status = status return next() }, @@ -33644,7 +30910,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerSourcesId( input, - postCustomersCustomerSourcesIdResponder, + postCustomersCustomerSourcesId.responder, ctx, ) .catch((err) => { @@ -33654,7 +30920,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerSourcesIdResponseValidator(status, body) + ctx.body = postCustomersCustomerSourcesId.validator(status, body) ctx.status = status return next() }, @@ -33694,7 +30960,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerSourcesIdVerify( input, - postCustomersCustomerSourcesIdVerifyResponder, + postCustomersCustomerSourcesIdVerify.responder, ctx, ) .catch((err) => { @@ -33704,10 +30970,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerSourcesIdVerifyResponseValidator( - status, - body, - ) + ctx.body = postCustomersCustomerSourcesIdVerify.validator(status, body) ctx.status = status return next() }, @@ -33757,7 +31020,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerSubscriptions( input, - getCustomersCustomerSubscriptionsResponder, + getCustomersCustomerSubscriptions.responder, ctx, ) .catch((err) => { @@ -33767,10 +31030,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerSubscriptionsResponseValidator( - status, - body, - ) + ctx.body = getCustomersCustomerSubscriptions.validator(status, body) ctx.status = status return next() }, @@ -34145,7 +31405,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerSubscriptions( input, - postCustomersCustomerSubscriptionsResponder, + postCustomersCustomerSubscriptions.responder, ctx, ) .catch((err) => { @@ -34155,10 +31415,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerSubscriptionsResponseValidator( - status, - body, - ) + ctx.body = postCustomersCustomerSubscriptions.validator(status, body) ctx.status = status return next() }, @@ -34200,7 +31457,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteCustomersCustomerSubscriptionsSubscriptionExposedId( input, - deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, + deleteCustomersCustomerSubscriptionsSubscriptionExposedId.responder, ctx, ) .catch((err) => { @@ -34211,7 +31468,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - deleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator( + deleteCustomersCustomerSubscriptionsSubscriptionExposedId.validator( status, body, ) @@ -34266,7 +31523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerSubscriptionsSubscriptionExposedId( input, - getCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, + getCustomersCustomerSubscriptionsSubscriptionExposedId.responder, ctx, ) .catch((err) => { @@ -34277,7 +31534,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - getCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator( + getCustomersCustomerSubscriptionsSubscriptionExposedId.validator( status, body, ) @@ -34688,7 +31945,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerSubscriptionsSubscriptionExposedId( input, - postCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, + postCustomersCustomerSubscriptionsSubscriptionExposedId.responder, ctx, ) .catch((err) => { @@ -34699,7 +31956,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postCustomersCustomerSubscriptionsSubscriptionExposedIdResponseValidator( + postCustomersCustomerSubscriptionsSubscriptionExposedId.validator( status, body, ) @@ -34739,7 +31996,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount( input, - deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder, + deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount.responder, ctx, ) .catch((err) => { @@ -34750,7 +32007,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponseValidator( + deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount.validator( status, body, ) @@ -34804,7 +32061,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount( input, - getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder, + getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount.responder, ctx, ) .catch((err) => { @@ -34815,7 +32072,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponseValidator( + getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount.validator( status, body, ) @@ -34868,7 +32125,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerTaxIds( input, - getCustomersCustomerTaxIdsResponder, + getCustomersCustomerTaxIds.responder, ctx, ) .catch((err) => { @@ -34878,7 +32135,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerTaxIdsResponseValidator(status, body) + ctx.body = getCustomersCustomerTaxIds.validator(status, body) ctx.status = status return next() }, @@ -35017,7 +32274,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postCustomersCustomerTaxIds( input, - postCustomersCustomerTaxIdsResponder, + postCustomersCustomerTaxIds.responder, ctx, ) .catch((err) => { @@ -35027,7 +32284,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postCustomersCustomerTaxIdsResponseValidator(status, body) + ctx.body = postCustomersCustomerTaxIds.validator(status, body) ctx.status = status return next() }, @@ -35062,7 +32319,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteCustomersCustomerTaxIdsId( input, - deleteCustomersCustomerTaxIdsIdResponder, + deleteCustomersCustomerTaxIdsId.responder, ctx, ) .catch((err) => { @@ -35072,7 +32329,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteCustomersCustomerTaxIdsIdResponseValidator(status, body) + ctx.body = deleteCustomersCustomerTaxIdsId.validator(status, body) ctx.status = status return next() }, @@ -35120,7 +32377,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getCustomersCustomerTaxIdsId( input, - getCustomersCustomerTaxIdsIdResponder, + getCustomersCustomerTaxIdsId.responder, ctx, ) .catch((err) => { @@ -35130,7 +32387,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getCustomersCustomerTaxIdsIdResponseValidator(status, body) + ctx.body = getCustomersCustomerTaxIdsId.validator(status, body) ctx.status = status return next() }, @@ -35180,7 +32437,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getDisputes(input, getDisputesResponder, ctx) + .getDisputes(input, getDisputes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35188,7 +32445,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getDisputesResponseValidator(status, body) + ctx.body = getDisputes.validator(status, body) ctx.status = status return next() }) @@ -35232,7 +32489,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getDisputesDispute(input, getDisputesDisputeResponder, ctx) + .getDisputesDispute(input, getDisputesDispute.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35240,7 +32497,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getDisputesDisputeResponseValidator(status, body) + ctx.body = getDisputesDispute.validator(status, body) ctx.status = status return next() }, @@ -35417,7 +32674,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postDisputesDispute(input, postDisputesDisputeResponder, ctx) + .postDisputesDispute(input, postDisputesDispute.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35425,7 +32682,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postDisputesDisputeResponseValidator(status, body) + ctx.body = postDisputesDispute.validator(status, body) ctx.status = status return next() }, @@ -35459,7 +32716,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postDisputesDisputeClose(input, postDisputesDisputeCloseResponder, ctx) + .postDisputesDisputeClose( + input, + postDisputesDisputeClose.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35467,7 +32728,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postDisputesDisputeCloseResponseValidator(status, body) + ctx.body = postDisputesDisputeClose.validator(status, body) ctx.status = status return next() }, @@ -35510,7 +32771,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getEntitlementsActiveEntitlements( input, - getEntitlementsActiveEntitlementsResponder, + getEntitlementsActiveEntitlements.responder, ctx, ) .catch((err) => { @@ -35520,10 +32781,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getEntitlementsActiveEntitlementsResponseValidator( - status, - body, - ) + ctx.body = getEntitlementsActiveEntitlements.validator(status, body) ctx.status = status return next() }, @@ -35570,7 +32828,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getEntitlementsActiveEntitlementsId( input, - getEntitlementsActiveEntitlementsIdResponder, + getEntitlementsActiveEntitlementsId.responder, ctx, ) .catch((err) => { @@ -35580,10 +32838,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getEntitlementsActiveEntitlementsIdResponseValidator( - status, - body, - ) + ctx.body = getEntitlementsActiveEntitlementsId.validator(status, body) ctx.status = status return next() }, @@ -35625,7 +32880,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getEntitlementsFeatures(input, getEntitlementsFeaturesResponder, ctx) + .getEntitlementsFeatures(input, getEntitlementsFeatures.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35633,7 +32888,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getEntitlementsFeaturesResponseValidator(status, body) + ctx.body = getEntitlementsFeatures.validator(status, body) ctx.status = status return next() }, @@ -35662,7 +32917,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postEntitlementsFeatures(input, postEntitlementsFeaturesResponder, ctx) + .postEntitlementsFeatures( + input, + postEntitlementsFeatures.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35670,7 +32929,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postEntitlementsFeaturesResponseValidator(status, body) + ctx.body = postEntitlementsFeatures.validator(status, body) ctx.status = status return next() }, @@ -35717,7 +32976,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getEntitlementsFeaturesId( input, - getEntitlementsFeaturesIdResponder, + getEntitlementsFeaturesId.responder, ctx, ) .catch((err) => { @@ -35727,7 +32986,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getEntitlementsFeaturesIdResponseValidator(status, body) + ctx.body = getEntitlementsFeaturesId.validator(status, body) ctx.status = status return next() }, @@ -35768,7 +33027,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postEntitlementsFeaturesId( input, - postEntitlementsFeaturesIdResponder, + postEntitlementsFeaturesId.responder, ctx, ) .catch((err) => { @@ -35778,7 +33037,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postEntitlementsFeaturesIdResponseValidator(status, body) + ctx.body = postEntitlementsFeaturesId.validator(status, body) ctx.status = status return next() }, @@ -35807,7 +33066,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postEphemeralKeys(input, postEphemeralKeysResponder, ctx) + .postEphemeralKeys(input, postEphemeralKeys.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35815,7 +33074,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postEphemeralKeysResponseValidator(status, body) + ctx.body = postEphemeralKeys.validator(status, body) ctx.status = status return next() }) @@ -35848,7 +33107,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteEphemeralKeysKey(input, deleteEphemeralKeysKeyResponder, ctx) + .deleteEphemeralKeysKey(input, deleteEphemeralKeysKey.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35856,7 +33115,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteEphemeralKeysKeyResponseValidator(status, body) + ctx.body = deleteEphemeralKeysKey.validator(status, body) ctx.status = status return next() }, @@ -35912,7 +33171,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getEvents(input, getEventsResponder, ctx) + .getEvents(input, getEvents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35920,7 +33179,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getEventsResponseValidator(status, body) + ctx.body = getEvents.validator(status, body) ctx.status = status return next() }) @@ -35959,7 +33218,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getEventsId(input, getEventsIdResponder, ctx) + .getEventsId(input, getEventsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -35967,7 +33226,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getEventsIdResponseValidator(status, body) + ctx.body = getEventsId.validator(status, body) ctx.status = status return next() }) @@ -36003,7 +33262,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getExchangeRates(input, getExchangeRatesResponder, ctx) + .getExchangeRates(input, getExchangeRates.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36011,7 +33270,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getExchangeRatesResponseValidator(status, body) + ctx.body = getExchangeRates.validator(status, body) ctx.status = status return next() }) @@ -36055,7 +33314,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getExchangeRatesRateId(input, getExchangeRatesRateIdResponder, ctx) + .getExchangeRatesRateId(input, getExchangeRatesRateId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36063,7 +33322,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getExchangeRatesRateIdResponseValidator(status, body) + ctx.body = getExchangeRatesRateId.validator(status, body) ctx.status = status return next() }, @@ -36118,7 +33377,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postExternalAccountsId(input, postExternalAccountsIdResponder, ctx) + .postExternalAccountsId(input, postExternalAccountsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36126,7 +33385,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postExternalAccountsIdResponseValidator(status, body) + ctx.body = postExternalAccountsId.validator(status, body) ctx.status = status return next() }, @@ -36176,7 +33435,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getFileLinks(input, getFileLinksResponder, ctx) + .getFileLinks(input, getFileLinks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36184,7 +33443,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFileLinksResponseValidator(status, body) + ctx.body = getFileLinks.validator(status, body) ctx.status = status return next() }) @@ -36209,7 +33468,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postFileLinks(input, postFileLinksResponder, ctx) + .postFileLinks(input, postFileLinks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36217,7 +33476,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postFileLinksResponseValidator(status, body) + ctx.body = postFileLinks.validator(status, body) ctx.status = status return next() }) @@ -36256,7 +33515,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getFileLinksLink(input, getFileLinksLinkResponder, ctx) + .getFileLinksLink(input, getFileLinksLink.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36264,7 +33523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFileLinksLinkResponseValidator(status, body) + ctx.body = getFileLinksLink.validator(status, body) ctx.status = status return next() }) @@ -36301,7 +33560,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postFileLinksLink(input, postFileLinksLinkResponder, ctx) + .postFileLinksLink(input, postFileLinksLink.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36309,7 +33568,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postFileLinksLinkResponseValidator(status, body) + ctx.body = postFileLinksLink.validator(status, body) ctx.status = status return next() }, @@ -36378,7 +33637,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getFiles(input, getFilesResponder, ctx) + .getFiles(input, getFiles.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36386,7 +33645,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFilesResponseValidator(status, body) + ctx.body = getFiles.validator(status, body) ctx.status = status return next() }) @@ -36429,7 +33688,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postFiles(input, postFilesResponder, ctx) + .postFiles(input, postFiles.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36437,7 +33696,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postFilesResponseValidator(status, body) + ctx.body = postFiles.validator(status, body) ctx.status = status return next() }) @@ -36476,7 +33735,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getFilesFile(input, getFilesFileResponder, ctx) + .getFilesFile(input, getFilesFile.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -36484,7 +33743,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFilesFileResponseValidator(status, body) + ctx.body = getFilesFile.validator(status, body) ctx.status = status return next() }) @@ -36532,7 +33791,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getFinancialConnectionsAccounts( input, - getFinancialConnectionsAccountsResponder, + getFinancialConnectionsAccounts.responder, ctx, ) .catch((err) => { @@ -36542,7 +33801,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFinancialConnectionsAccountsResponseValidator(status, body) + ctx.body = getFinancialConnectionsAccounts.validator(status, body) ctx.status = status return next() }, @@ -36591,7 +33850,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getFinancialConnectionsAccountsAccount( input, - getFinancialConnectionsAccountsAccountResponder, + getFinancialConnectionsAccountsAccount.responder, ctx, ) .catch((err) => { @@ -36601,10 +33860,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFinancialConnectionsAccountsAccountResponseValidator( - status, - body, - ) + ctx.body = getFinancialConnectionsAccountsAccount.validator(status, body) ctx.status = status return next() }, @@ -36640,7 +33896,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postFinancialConnectionsAccountsAccountDisconnect( input, - postFinancialConnectionsAccountsAccountDisconnectResponder, + postFinancialConnectionsAccountsAccountDisconnect.responder, ctx, ) .catch((err) => { @@ -36650,11 +33906,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postFinancialConnectionsAccountsAccountDisconnectResponseValidator( - status, - body, - ) + ctx.body = postFinancialConnectionsAccountsAccountDisconnect.validator( + status, + body, + ) ctx.status = status return next() }, @@ -36707,7 +33962,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getFinancialConnectionsAccountsAccountOwners( input, - getFinancialConnectionsAccountsAccountOwnersResponder, + getFinancialConnectionsAccountsAccountOwners.responder, ctx, ) .catch((err) => { @@ -36717,7 +33972,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFinancialConnectionsAccountsAccountOwnersResponseValidator( + ctx.body = getFinancialConnectionsAccountsAccountOwners.validator( status, body, ) @@ -36757,7 +34012,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postFinancialConnectionsAccountsAccountRefresh( input, - postFinancialConnectionsAccountsAccountRefreshResponder, + postFinancialConnectionsAccountsAccountRefresh.responder, ctx, ) .catch((err) => { @@ -36767,11 +34022,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postFinancialConnectionsAccountsAccountRefreshResponseValidator( - status, - body, - ) + ctx.body = postFinancialConnectionsAccountsAccountRefresh.validator( + status, + body, + ) ctx.status = status return next() }, @@ -36808,7 +34062,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postFinancialConnectionsAccountsAccountSubscribe( input, - postFinancialConnectionsAccountsAccountSubscribeResponder, + postFinancialConnectionsAccountsAccountSubscribe.responder, ctx, ) .catch((err) => { @@ -36818,11 +34072,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postFinancialConnectionsAccountsAccountSubscribeResponseValidator( - status, - body, - ) + ctx.body = postFinancialConnectionsAccountsAccountSubscribe.validator( + status, + body, + ) ctx.status = status return next() }, @@ -36860,7 +34113,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postFinancialConnectionsAccountsAccountUnsubscribe( input, - postFinancialConnectionsAccountsAccountUnsubscribeResponder, + postFinancialConnectionsAccountsAccountUnsubscribe.responder, ctx, ) .catch((err) => { @@ -36870,11 +34123,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postFinancialConnectionsAccountsAccountUnsubscribeResponseValidator( - status, - body, - ) + ctx.body = postFinancialConnectionsAccountsAccountUnsubscribe.validator( + status, + body, + ) ctx.status = status return next() }, @@ -36930,7 +34182,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postFinancialConnectionsSessions( input, - postFinancialConnectionsSessionsResponder, + postFinancialConnectionsSessions.responder, ctx, ) .catch((err) => { @@ -36940,7 +34192,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postFinancialConnectionsSessionsResponseValidator(status, body) + ctx.body = postFinancialConnectionsSessions.validator(status, body) ctx.status = status return next() }, @@ -36989,7 +34241,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getFinancialConnectionsSessionsSession( input, - getFinancialConnectionsSessionsSessionResponder, + getFinancialConnectionsSessionsSession.responder, ctx, ) .catch((err) => { @@ -36999,10 +34251,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFinancialConnectionsSessionsSessionResponseValidator( - status, - body, - ) + ctx.body = getFinancialConnectionsSessionsSession.validator(status, body) ctx.status = status return next() }, @@ -37057,7 +34306,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getFinancialConnectionsTransactions( input, - getFinancialConnectionsTransactionsResponder, + getFinancialConnectionsTransactions.responder, ctx, ) .catch((err) => { @@ -37067,10 +34316,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getFinancialConnectionsTransactionsResponseValidator( - status, - body, - ) + ctx.body = getFinancialConnectionsTransactions.validator(status, body) ctx.status = status return next() }, @@ -37119,7 +34365,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getFinancialConnectionsTransactionsTransaction( input, - getFinancialConnectionsTransactionsTransactionResponder, + getFinancialConnectionsTransactionsTransaction.responder, ctx, ) .catch((err) => { @@ -37129,11 +34375,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - getFinancialConnectionsTransactionsTransactionResponseValidator( - status, - body, - ) + ctx.body = getFinancialConnectionsTransactionsTransaction.validator( + status, + body, + ) ctx.status = status return next() }, @@ -37181,7 +34426,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getForwardingRequests(input, getForwardingRequestsResponder, ctx) + .getForwardingRequests(input, getForwardingRequests.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37189,7 +34434,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getForwardingRequestsResponseValidator(status, body) + ctx.body = getForwardingRequests.validator(status, body) ctx.status = status return next() }, @@ -37240,7 +34485,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postForwardingRequests(input, postForwardingRequestsResponder, ctx) + .postForwardingRequests(input, postForwardingRequests.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37248,7 +34493,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postForwardingRequestsResponseValidator(status, body) + ctx.body = postForwardingRequests.validator(status, body) ctx.status = status return next() }, @@ -37293,7 +34538,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getForwardingRequestsId(input, getForwardingRequestsIdResponder, ctx) + .getForwardingRequestsId(input, getForwardingRequestsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37301,7 +34546,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getForwardingRequestsIdResponseValidator(status, body) + ctx.body = getForwardingRequestsId.validator(status, body) ctx.status = status return next() }, @@ -37357,7 +34602,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIdentityVerificationReports( input, - getIdentityVerificationReportsResponder, + getIdentityVerificationReports.responder, ctx, ) .catch((err) => { @@ -37367,7 +34612,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIdentityVerificationReportsResponseValidator(status, body) + ctx.body = getIdentityVerificationReports.validator(status, body) ctx.status = status return next() }, @@ -37414,7 +34659,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIdentityVerificationReportsReport( input, - getIdentityVerificationReportsReportResponder, + getIdentityVerificationReportsReport.responder, ctx, ) .catch((err) => { @@ -37424,10 +34669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIdentityVerificationReportsReportResponseValidator( - status, - body, - ) + ctx.body = getIdentityVerificationReportsReport.validator(status, body) ctx.status = status return next() }, @@ -37485,7 +34727,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIdentityVerificationSessions( input, - getIdentityVerificationSessionsResponder, + getIdentityVerificationSessions.responder, ctx, ) .catch((err) => { @@ -37495,7 +34737,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIdentityVerificationSessionsResponseValidator(status, body) + ctx.body = getIdentityVerificationSessions.validator(status, body) ctx.status = status return next() }, @@ -37551,7 +34793,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIdentityVerificationSessions( input, - postIdentityVerificationSessionsResponder, + postIdentityVerificationSessions.responder, ctx, ) .catch((err) => { @@ -37561,7 +34803,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIdentityVerificationSessionsResponseValidator(status, body) + ctx.body = postIdentityVerificationSessions.validator(status, body) ctx.status = status return next() }, @@ -37610,7 +34852,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIdentityVerificationSessionsSession( input, - getIdentityVerificationSessionsSessionResponder, + getIdentityVerificationSessionsSession.responder, ctx, ) .catch((err) => { @@ -37620,10 +34862,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIdentityVerificationSessionsSessionResponseValidator( - status, - body, - ) + ctx.body = getIdentityVerificationSessionsSession.validator(status, body) ctx.status = status return next() }, @@ -37683,7 +34922,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIdentityVerificationSessionsSession( input, - postIdentityVerificationSessionsSessionResponder, + postIdentityVerificationSessionsSession.responder, ctx, ) .catch((err) => { @@ -37693,10 +34932,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIdentityVerificationSessionsSessionResponseValidator( - status, - body, - ) + ctx.body = postIdentityVerificationSessionsSession.validator(status, body) ctx.status = status return next() }, @@ -37732,7 +34968,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIdentityVerificationSessionsSessionCancel( input, - postIdentityVerificationSessionsSessionCancelResponder, + postIdentityVerificationSessionsSessionCancel.responder, ctx, ) .catch((err) => { @@ -37742,7 +34978,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIdentityVerificationSessionsSessionCancelResponseValidator( + ctx.body = postIdentityVerificationSessionsSessionCancel.validator( status, body, ) @@ -37781,7 +35017,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIdentityVerificationSessionsSessionRedact( input, - postIdentityVerificationSessionsSessionRedactResponder, + postIdentityVerificationSessionsSessionRedact.responder, ctx, ) .catch((err) => { @@ -37791,7 +35027,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIdentityVerificationSessionsSessionRedactResponseValidator( + ctx.body = postIdentityVerificationSessionsSessionRedact.validator( status, body, ) @@ -37842,7 +35078,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getInvoicePayments(input, getInvoicePaymentsResponder, ctx) + .getInvoicePayments(input, getInvoicePayments.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -37850,7 +35086,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoicePaymentsResponseValidator(status, body) + ctx.body = getInvoicePayments.validator(status, body) ctx.status = status return next() }, @@ -37897,7 +35133,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getInvoicePaymentsInvoicePayment( input, - getInvoicePaymentsInvoicePaymentResponder, + getInvoicePaymentsInvoicePayment.responder, ctx, ) .catch((err) => { @@ -37907,7 +35143,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoicePaymentsInvoicePaymentResponseValidator(status, body) + ctx.body = getInvoicePaymentsInvoicePayment.validator(status, body) ctx.status = status return next() }, @@ -37950,7 +35186,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getInvoiceRenderingTemplates( input, - getInvoiceRenderingTemplatesResponder, + getInvoiceRenderingTemplates.responder, ctx, ) .catch((err) => { @@ -37960,7 +35196,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoiceRenderingTemplatesResponseValidator(status, body) + ctx.body = getInvoiceRenderingTemplates.validator(status, body) ctx.status = status return next() }, @@ -38008,7 +35244,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getInvoiceRenderingTemplatesTemplate( input, - getInvoiceRenderingTemplatesTemplateResponder, + getInvoiceRenderingTemplatesTemplate.responder, ctx, ) .catch((err) => { @@ -38018,10 +35254,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoiceRenderingTemplatesTemplateResponseValidator( - status, - body, - ) + ctx.body = getInvoiceRenderingTemplatesTemplate.validator(status, body) ctx.status = status return next() }, @@ -38057,7 +35290,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoiceRenderingTemplatesTemplateArchive( input, - postInvoiceRenderingTemplatesTemplateArchiveResponder, + postInvoiceRenderingTemplatesTemplateArchive.responder, ctx, ) .catch((err) => { @@ -38067,7 +35300,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoiceRenderingTemplatesTemplateArchiveResponseValidator( + ctx.body = postInvoiceRenderingTemplatesTemplateArchive.validator( status, body, ) @@ -38106,7 +35339,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoiceRenderingTemplatesTemplateUnarchive( input, - postInvoiceRenderingTemplatesTemplateUnarchiveResponder, + postInvoiceRenderingTemplatesTemplateUnarchive.responder, ctx, ) .catch((err) => { @@ -38116,11 +35349,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postInvoiceRenderingTemplatesTemplateUnarchiveResponseValidator( - status, - body, - ) + ctx.body = postInvoiceRenderingTemplatesTemplateUnarchive.validator( + status, + body, + ) ctx.status = status return next() }, @@ -38171,7 +35403,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getInvoiceitems(input, getInvoiceitemsResponder, ctx) + .getInvoiceitems(input, getInvoiceitems.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38179,7 +35411,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoiceitemsResponseValidator(status, body) + ctx.body = getInvoiceitems.validator(status, body) ctx.status = status return next() }) @@ -38241,7 +35473,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postInvoiceitems(input, postInvoiceitemsResponder, ctx) + .postInvoiceitems(input, postInvoiceitems.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38249,7 +35481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoiceitemsResponseValidator(status, body) + ctx.body = postInvoiceitems.validator(status, body) ctx.status = status return next() }) @@ -38282,7 +35514,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteInvoiceitemsInvoiceitem( input, - deleteInvoiceitemsInvoiceitemResponder, + deleteInvoiceitemsInvoiceitem.responder, ctx, ) .catch((err) => { @@ -38292,7 +35524,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteInvoiceitemsInvoiceitemResponseValidator(status, body) + ctx.body = deleteInvoiceitemsInvoiceitem.validator(status, body) ctx.status = status return next() }, @@ -38339,7 +35571,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getInvoiceitemsInvoiceitem( input, - getInvoiceitemsInvoiceitemResponder, + getInvoiceitemsInvoiceitem.responder, ctx, ) .catch((err) => { @@ -38349,7 +35581,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoiceitemsInvoiceitemResponseValidator(status, body) + ctx.body = getInvoiceitemsInvoiceitem.validator(status, body) ctx.status = status return next() }, @@ -38427,7 +35659,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoiceitemsInvoiceitem( input, - postInvoiceitemsInvoiceitemResponder, + postInvoiceitemsInvoiceitem.responder, ctx, ) .catch((err) => { @@ -38437,7 +35669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoiceitemsInvoiceitemResponseValidator(status, body) + ctx.body = postInvoiceitemsInvoiceitem.validator(status, body) ctx.status = status return next() }, @@ -38504,7 +35736,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getInvoices(input, getInvoicesResponder, ctx) + .getInvoices(input, getInvoices.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38512,7 +35744,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoicesResponseValidator(status, body) + ctx.body = getInvoices.validator(status, body) ctx.status = status return next() }) @@ -38858,7 +36090,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postInvoices(input, postInvoicesResponder, ctx) + .postInvoices(input, postInvoices.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -38866,7 +36098,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesResponseValidator(status, body) + ctx.body = postInvoices.validator(status, body) ctx.status = status return next() }) @@ -39347,7 +36579,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoicesCreatePreview( input, - postInvoicesCreatePreviewResponder, + postInvoicesCreatePreview.responder, ctx, ) .catch((err) => { @@ -39357,7 +36589,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesCreatePreviewResponseValidator(status, body) + ctx.body = postInvoicesCreatePreview.validator(status, body) ctx.status = status return next() }, @@ -39394,7 +36626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getInvoicesSearch(input, getInvoicesSearchResponder, ctx) + .getInvoicesSearch(input, getInvoicesSearch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39402,7 +36634,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoicesSearchResponseValidator(status, body) + ctx.body = getInvoicesSearch.validator(status, body) ctx.status = status return next() }) @@ -39433,7 +36665,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteInvoicesInvoice(input, deleteInvoicesInvoiceResponder, ctx) + .deleteInvoicesInvoice(input, deleteInvoicesInvoice.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39441,7 +36673,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteInvoicesInvoiceResponseValidator(status, body) + ctx.body = deleteInvoicesInvoice.validator(status, body) ctx.status = status return next() }, @@ -39486,7 +36718,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getInvoicesInvoice(input, getInvoicesInvoiceResponder, ctx) + .getInvoicesInvoice(input, getInvoicesInvoice.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39494,7 +36726,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoicesInvoiceResponseValidator(status, body) + ctx.body = getInvoicesInvoice.validator(status, body) ctx.status = status return next() }, @@ -39856,7 +37088,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postInvoicesInvoice(input, postInvoicesInvoiceResponder, ctx) + .postInvoicesInvoice(input, postInvoicesInvoice.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -39864,7 +37096,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceResponseValidator(status, body) + ctx.body = postInvoicesInvoice.validator(status, body) ctx.status = status return next() }, @@ -40019,7 +37251,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoicesInvoiceAddLines( input, - postInvoicesInvoiceAddLinesResponder, + postInvoicesInvoiceAddLines.responder, ctx, ) .catch((err) => { @@ -40029,7 +37261,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceAddLinesResponseValidator(status, body) + ctx.body = postInvoicesInvoiceAddLines.validator(status, body) ctx.status = status return next() }, @@ -40068,7 +37300,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoicesInvoiceFinalize( input, - postInvoicesInvoiceFinalizeResponder, + postInvoicesInvoiceFinalize.responder, ctx, ) .catch((err) => { @@ -40078,7 +37310,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceFinalizeResponseValidator(status, body) + ctx.body = postInvoicesInvoiceFinalize.validator(status, body) ctx.status = status return next() }, @@ -40126,7 +37358,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getInvoicesInvoiceLines(input, getInvoicesInvoiceLinesResponder, ctx) + .getInvoicesInvoiceLines(input, getInvoicesInvoiceLines.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40134,7 +37366,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getInvoicesInvoiceLinesResponseValidator(status, body) + ctx.body = getInvoicesInvoiceLines.validator(status, body) ctx.status = status return next() }, @@ -40284,7 +37516,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoicesInvoiceLinesLineItemId( input, - postInvoicesInvoiceLinesLineItemIdResponder, + postInvoicesInvoiceLinesLineItemId.responder, ctx, ) .catch((err) => { @@ -40294,10 +37526,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceLinesLineItemIdResponseValidator( - status, - body, - ) + ctx.body = postInvoicesInvoiceLinesLineItemId.validator(status, body) ctx.status = status return next() }, @@ -40333,7 +37562,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoicesInvoiceMarkUncollectible( input, - postInvoicesInvoiceMarkUncollectibleResponder, + postInvoicesInvoiceMarkUncollectible.responder, ctx, ) .catch((err) => { @@ -40343,10 +37572,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceMarkUncollectibleResponseValidator( - status, - body, - ) + ctx.body = postInvoicesInvoiceMarkUncollectible.validator(status, body) ctx.status = status return next() }, @@ -40388,7 +37614,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postInvoicesInvoicePay(input, postInvoicesInvoicePayResponder, ctx) + .postInvoicesInvoicePay(input, postInvoicesInvoicePay.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40396,7 +37622,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoicePayResponseValidator(status, body) + ctx.body = postInvoicesInvoicePay.validator(status, body) ctx.status = status return next() }, @@ -40439,7 +37665,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoicesInvoiceRemoveLines( input, - postInvoicesInvoiceRemoveLinesResponder, + postInvoicesInvoiceRemoveLines.responder, ctx, ) .catch((err) => { @@ -40449,7 +37675,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceRemoveLinesResponseValidator(status, body) + ctx.body = postInvoicesInvoiceRemoveLines.validator(status, body) ctx.status = status return next() }, @@ -40483,7 +37709,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postInvoicesInvoiceSend(input, postInvoicesInvoiceSendResponder, ctx) + .postInvoicesInvoiceSend(input, postInvoicesInvoiceSend.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40491,7 +37717,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceSendResponseValidator(status, body) + ctx.body = postInvoicesInvoiceSend.validator(status, body) ctx.status = status return next() }, @@ -40646,7 +37872,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postInvoicesInvoiceUpdateLines( input, - postInvoicesInvoiceUpdateLinesResponder, + postInvoicesInvoiceUpdateLines.responder, ctx, ) .catch((err) => { @@ -40656,7 +37882,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceUpdateLinesResponseValidator(status, body) + ctx.body = postInvoicesInvoiceUpdateLines.validator(status, body) ctx.status = status return next() }, @@ -40690,7 +37916,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postInvoicesInvoiceVoid(input, postInvoicesInvoiceVoidResponder, ctx) + .postInvoicesInvoiceVoid(input, postInvoicesInvoiceVoid.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40698,7 +37924,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postInvoicesInvoiceVoidResponseValidator(status, body) + ctx.body = postInvoicesInvoiceVoid.validator(status, body) ctx.status = status return next() }, @@ -40752,7 +37978,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getIssuingAuthorizations(input, getIssuingAuthorizationsResponder, ctx) + .getIssuingAuthorizations( + input, + getIssuingAuthorizations.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -40760,7 +37990,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingAuthorizationsResponseValidator(status, body) + ctx.body = getIssuingAuthorizations.validator(status, body) ctx.status = status return next() }, @@ -40809,7 +38039,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingAuthorizationsAuthorization( input, - getIssuingAuthorizationsAuthorizationResponder, + getIssuingAuthorizationsAuthorization.responder, ctx, ) .catch((err) => { @@ -40819,10 +38049,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingAuthorizationsAuthorizationResponseValidator( - status, - body, - ) + ctx.body = getIssuingAuthorizationsAuthorization.validator(status, body) ctx.status = status return next() }, @@ -40861,7 +38088,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingAuthorizationsAuthorization( input, - postIssuingAuthorizationsAuthorizationResponder, + postIssuingAuthorizationsAuthorization.responder, ctx, ) .catch((err) => { @@ -40871,10 +38098,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingAuthorizationsAuthorizationResponseValidator( - status, - body, - ) + ctx.body = postIssuingAuthorizationsAuthorization.validator(status, body) ctx.status = status return next() }, @@ -40914,7 +38138,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingAuthorizationsAuthorizationApprove( input, - postIssuingAuthorizationsAuthorizationApproveResponder, + postIssuingAuthorizationsAuthorizationApprove.responder, ctx, ) .catch((err) => { @@ -40924,7 +38148,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingAuthorizationsAuthorizationApproveResponseValidator( + ctx.body = postIssuingAuthorizationsAuthorizationApprove.validator( status, body, ) @@ -40966,7 +38190,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingAuthorizationsAuthorizationDecline( input, - postIssuingAuthorizationsAuthorizationDeclineResponder, + postIssuingAuthorizationsAuthorizationDecline.responder, ctx, ) .catch((err) => { @@ -40976,7 +38200,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingAuthorizationsAuthorizationDeclineResponseValidator( + ctx.body = postIssuingAuthorizationsAuthorizationDecline.validator( status, body, ) @@ -41034,7 +38258,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getIssuingCardholders(input, getIssuingCardholdersResponder, ctx) + .getIssuingCardholders(input, getIssuingCardholders.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -41042,7 +38266,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingCardholdersResponseValidator(status, body) + ctx.body = getIssuingCardholders.validator(status, body) ctx.status = status return next() }, @@ -42049,7 +39273,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postIssuingCardholders(input, postIssuingCardholdersResponder, ctx) + .postIssuingCardholders(input, postIssuingCardholders.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -42057,7 +39281,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingCardholdersResponseValidator(status, body) + ctx.body = postIssuingCardholders.validator(status, body) ctx.status = status return next() }, @@ -42104,7 +39328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingCardholdersCardholder( input, - getIssuingCardholdersCardholderResponder, + getIssuingCardholdersCardholder.responder, ctx, ) .catch((err) => { @@ -42114,7 +39338,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingCardholdersCardholderResponseValidator(status, body) + ctx.body = getIssuingCardholdersCardholder.validator(status, body) ctx.status = status return next() }, @@ -43133,7 +40357,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingCardholdersCardholder( input, - postIssuingCardholdersCardholderResponder, + postIssuingCardholdersCardholder.responder, ctx, ) .catch((err) => { @@ -43143,7 +40367,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingCardholdersCardholderResponseValidator(status, body) + ctx.body = postIssuingCardholdersCardholder.validator(status, body) ctx.status = status return next() }, @@ -43198,7 +40422,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getIssuingCards(input, getIssuingCardsResponder, ctx) + .getIssuingCards(input, getIssuingCards.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -43206,7 +40430,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingCardsResponseValidator(status, body) + ctx.body = getIssuingCards.validator(status, body) ctx.status = status return next() }) @@ -44196,7 +41420,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postIssuingCards(input, postIssuingCardsResponder, ctx) + .postIssuingCards(input, postIssuingCards.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44204,7 +41428,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingCardsResponseValidator(status, body) + ctx.body = postIssuingCards.validator(status, body) ctx.status = status return next() }) @@ -44248,7 +41472,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getIssuingCardsCard(input, getIssuingCardsCardResponder, ctx) + .getIssuingCardsCard(input, getIssuingCardsCard.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -44256,7 +41480,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingCardsCardResponseValidator(status, body) + ctx.body = getIssuingCardsCard.validator(status, body) ctx.status = status return next() }, @@ -45252,7 +42476,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postIssuingCardsCard(input, postIssuingCardsCardResponder, ctx) + .postIssuingCardsCard(input, postIssuingCardsCard.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45260,7 +42484,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingCardsCardResponseValidator(status, body) + ctx.body = postIssuingCardsCard.validator(status, body) ctx.status = status return next() }, @@ -45315,7 +42539,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getIssuingDisputes(input, getIssuingDisputesResponder, ctx) + .getIssuingDisputes(input, getIssuingDisputes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45323,7 +42547,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingDisputesResponseValidator(status, body) + ctx.body = getIssuingDisputes.validator(status, body) ctx.status = status return next() }, @@ -45533,7 +42757,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postIssuingDisputes(input, postIssuingDisputesResponder, ctx) + .postIssuingDisputes(input, postIssuingDisputes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -45541,7 +42765,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingDisputesResponseValidator(status, body) + ctx.body = postIssuingDisputes.validator(status, body) ctx.status = status return next() }, @@ -45588,7 +42812,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingDisputesDispute( input, - getIssuingDisputesDisputeResponder, + getIssuingDisputesDispute.responder, ctx, ) .catch((err) => { @@ -45598,7 +42822,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingDisputesDisputeResponseValidator(status, body) + ctx.body = getIssuingDisputesDispute.validator(status, body) ctx.status = status return next() }, @@ -45816,7 +43040,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingDisputesDispute( input, - postIssuingDisputesDisputeResponder, + postIssuingDisputesDispute.responder, ctx, ) .catch((err) => { @@ -45826,7 +43050,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingDisputesDisputeResponseValidator(status, body) + ctx.body = postIssuingDisputesDispute.validator(status, body) ctx.status = status return next() }, @@ -45865,7 +43089,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingDisputesDisputeSubmit( input, - postIssuingDisputesDisputeSubmitResponder, + postIssuingDisputesDisputeSubmit.responder, ctx, ) .catch((err) => { @@ -45875,7 +43099,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingDisputesDisputeSubmitResponseValidator(status, body) + ctx.body = postIssuingDisputesDisputeSubmit.validator(status, body) ctx.status = status return next() }, @@ -45930,7 +43154,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingPersonalizationDesigns( input, - getIssuingPersonalizationDesignsResponder, + getIssuingPersonalizationDesigns.responder, ctx, ) .catch((err) => { @@ -45940,7 +43164,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingPersonalizationDesignsResponseValidator(status, body) + ctx.body = getIssuingPersonalizationDesigns.validator(status, body) ctx.status = status return next() }, @@ -45983,7 +43207,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingPersonalizationDesigns( input, - postIssuingPersonalizationDesignsResponder, + postIssuingPersonalizationDesigns.responder, ctx, ) .catch((err) => { @@ -45993,10 +43217,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingPersonalizationDesignsResponseValidator( - status, - body, - ) + ctx.body = postIssuingPersonalizationDesigns.validator(status, body) ctx.status = status return next() }, @@ -46045,7 +43266,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingPersonalizationDesignsPersonalizationDesign( input, - getIssuingPersonalizationDesignsPersonalizationDesignResponder, + getIssuingPersonalizationDesignsPersonalizationDesign.responder, ctx, ) .catch((err) => { @@ -46056,7 +43277,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - getIssuingPersonalizationDesignsPersonalizationDesignResponseValidator( + getIssuingPersonalizationDesignsPersonalizationDesign.validator( status, body, ) @@ -46122,7 +43343,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingPersonalizationDesignsPersonalizationDesign( input, - postIssuingPersonalizationDesignsPersonalizationDesignResponder, + postIssuingPersonalizationDesignsPersonalizationDesign.responder, ctx, ) .catch((err) => { @@ -46133,7 +43354,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postIssuingPersonalizationDesignsPersonalizationDesignResponseValidator( + postIssuingPersonalizationDesignsPersonalizationDesign.validator( status, body, ) @@ -46180,7 +43401,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingPhysicalBundles( input, - getIssuingPhysicalBundlesResponder, + getIssuingPhysicalBundles.responder, ctx, ) .catch((err) => { @@ -46190,7 +43411,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingPhysicalBundlesResponseValidator(status, body) + ctx.body = getIssuingPhysicalBundles.validator(status, body) ctx.status = status return next() }, @@ -46239,7 +43460,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingPhysicalBundlesPhysicalBundle( input, - getIssuingPhysicalBundlesPhysicalBundleResponder, + getIssuingPhysicalBundlesPhysicalBundle.responder, ctx, ) .catch((err) => { @@ -46249,10 +43470,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingPhysicalBundlesPhysicalBundleResponseValidator( - status, - body, - ) + ctx.body = getIssuingPhysicalBundlesPhysicalBundle.validator(status, body) ctx.status = status return next() }, @@ -46299,7 +43517,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingSettlementsSettlement( input, - getIssuingSettlementsSettlementResponder, + getIssuingSettlementsSettlement.responder, ctx, ) .catch((err) => { @@ -46309,7 +43527,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingSettlementsSettlementResponseValidator(status, body) + ctx.body = getIssuingSettlementsSettlement.validator(status, body) ctx.status = status return next() }, @@ -46348,7 +43566,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingSettlementsSettlement( input, - postIssuingSettlementsSettlementResponder, + postIssuingSettlementsSettlement.responder, ctx, ) .catch((err) => { @@ -46358,7 +43576,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingSettlementsSettlementResponseValidator(status, body) + ctx.body = postIssuingSettlementsSettlement.validator(status, body) ctx.status = status return next() }, @@ -46408,7 +43626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getIssuingTokens(input, getIssuingTokensResponder, ctx) + .getIssuingTokens(input, getIssuingTokens.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46416,7 +43634,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingTokensResponseValidator(status, body) + ctx.body = getIssuingTokens.validator(status, body) ctx.status = status return next() }) @@ -46460,7 +43678,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getIssuingTokensToken(input, getIssuingTokensTokenResponder, ctx) + .getIssuingTokensToken(input, getIssuingTokensToken.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46468,7 +43686,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingTokensTokenResponseValidator(status, body) + ctx.body = getIssuingTokensToken.validator(status, body) ctx.status = status return next() }, @@ -46503,7 +43721,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postIssuingTokensToken(input, postIssuingTokensTokenResponder, ctx) + .postIssuingTokensToken(input, postIssuingTokensToken.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46511,7 +43729,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingTokensTokenResponseValidator(status, body) + ctx.body = postIssuingTokensToken.validator(status, body) ctx.status = status return next() }, @@ -46565,7 +43783,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getIssuingTransactions(input, getIssuingTransactionsResponder, ctx) + .getIssuingTransactions(input, getIssuingTransactions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46573,7 +43791,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingTransactionsResponseValidator(status, body) + ctx.body = getIssuingTransactions.validator(status, body) ctx.status = status return next() }, @@ -46620,7 +43838,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getIssuingTransactionsTransaction( input, - getIssuingTransactionsTransactionResponder, + getIssuingTransactionsTransaction.responder, ctx, ) .catch((err) => { @@ -46630,10 +43848,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getIssuingTransactionsTransactionResponseValidator( - status, - body, - ) + ctx.body = getIssuingTransactionsTransaction.validator(status, body) ctx.status = status return next() }, @@ -46672,7 +43887,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postIssuingTransactionsTransaction( input, - postIssuingTransactionsTransactionResponder, + postIssuingTransactionsTransaction.responder, ctx, ) .catch((err) => { @@ -46682,10 +43897,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postIssuingTransactionsTransactionResponseValidator( - status, - body, - ) + ctx.body = postIssuingTransactionsTransaction.validator(status, body) ctx.status = status return next() }, @@ -46739,7 +43951,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postLinkAccountSessions(input, postLinkAccountSessionsResponder, ctx) + .postLinkAccountSessions(input, postLinkAccountSessions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46747,7 +43959,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postLinkAccountSessionsResponseValidator(status, body) + ctx.body = postLinkAccountSessions.validator(status, body) ctx.status = status return next() }, @@ -46794,7 +44006,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getLinkAccountSessionsSession( input, - getLinkAccountSessionsSessionResponder, + getLinkAccountSessionsSession.responder, ctx, ) .catch((err) => { @@ -46804,7 +44016,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getLinkAccountSessionsSessionResponseValidator(status, body) + ctx.body = getLinkAccountSessionsSession.validator(status, body) ctx.status = status return next() }, @@ -46848,7 +44060,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getLinkedAccounts(input, getLinkedAccountsResponder, ctx) + .getLinkedAccounts(input, getLinkedAccounts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46856,7 +44068,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getLinkedAccountsResponseValidator(status, body) + ctx.body = getLinkedAccounts.validator(status, body) ctx.status = status return next() }) @@ -46900,7 +44112,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getLinkedAccountsAccount(input, getLinkedAccountsAccountResponder, ctx) + .getLinkedAccountsAccount( + input, + getLinkedAccountsAccount.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -46908,7 +44124,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getLinkedAccountsAccountResponseValidator(status, body) + ctx.body = getLinkedAccountsAccount.validator(status, body) ctx.status = status return next() }, @@ -46944,7 +44160,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postLinkedAccountsAccountDisconnect( input, - postLinkedAccountsAccountDisconnectResponder, + postLinkedAccountsAccountDisconnect.responder, ctx, ) .catch((err) => { @@ -46954,10 +44170,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postLinkedAccountsAccountDisconnectResponseValidator( - status, - body, - ) + ctx.body = postLinkedAccountsAccountDisconnect.validator(status, body) ctx.status = status return next() }, @@ -47008,7 +44221,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getLinkedAccountsAccountOwners( input, - getLinkedAccountsAccountOwnersResponder, + getLinkedAccountsAccountOwners.responder, ctx, ) .catch((err) => { @@ -47018,7 +44231,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getLinkedAccountsAccountOwnersResponseValidator(status, body) + ctx.body = getLinkedAccountsAccountOwners.validator(status, body) ctx.status = status return next() }, @@ -47055,7 +44268,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postLinkedAccountsAccountRefresh( input, - postLinkedAccountsAccountRefreshResponder, + postLinkedAccountsAccountRefresh.responder, ctx, ) .catch((err) => { @@ -47065,7 +44278,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postLinkedAccountsAccountRefreshResponseValidator(status, body) + ctx.body = postLinkedAccountsAccountRefresh.validator(status, body) ctx.status = status return next() }, @@ -47108,7 +44321,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getMandatesMandate(input, getMandatesMandateResponder, ctx) + .getMandatesMandate(input, getMandatesMandate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47116,7 +44329,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getMandatesMandateResponseValidator(status, body) + ctx.body = getMandatesMandate.validator(status, body) ctx.status = status return next() }, @@ -47165,7 +44378,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPaymentIntents(input, getPaymentIntentsResponder, ctx) + .getPaymentIntents(input, getPaymentIntents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -47173,7 +44386,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentIntentsResponseValidator(status, body) + ctx.body = getPaymentIntents.validator(status, body) ctx.status = status return next() }) @@ -48273,7 +45486,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPaymentIntents(input, postPaymentIntentsResponder, ctx) + .postPaymentIntents(input, postPaymentIntents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48281,7 +45494,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentIntentsResponseValidator(status, body) + ctx.body = postPaymentIntents.validator(status, body) ctx.status = status return next() }, @@ -48321,7 +45534,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPaymentIntentsSearch(input, getPaymentIntentsSearchResponder, ctx) + .getPaymentIntentsSearch(input, getPaymentIntentsSearch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48329,7 +45542,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentIntentsSearchResponseValidator(status, body) + ctx.body = getPaymentIntentsSearch.validator(status, body) ctx.status = status return next() }, @@ -48375,7 +45588,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPaymentIntentsIntent(input, getPaymentIntentsIntentResponder, ctx) + .getPaymentIntentsIntent(input, getPaymentIntentsIntent.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -48383,7 +45596,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentIntentsIntentResponseValidator(status, body) + ctx.body = getPaymentIntentsIntent.validator(status, body) ctx.status = status return next() }, @@ -49471,7 +46684,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPaymentIntentsIntent(input, postPaymentIntentsIntentResponder, ctx) + .postPaymentIntentsIntent( + input, + postPaymentIntentsIntent.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -49479,7 +46696,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentIntentsIntentResponseValidator(status, body) + ctx.body = postPaymentIntentsIntent.validator(status, body) ctx.status = status return next() }, @@ -49519,7 +46736,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentIntentsIntentApplyCustomerBalance( input, - postPaymentIntentsIntentApplyCustomerBalanceResponder, + postPaymentIntentsIntentApplyCustomerBalance.responder, ctx, ) .catch((err) => { @@ -49529,7 +46746,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentIntentsIntentApplyCustomerBalanceResponseValidator( + ctx.body = postPaymentIntentsIntentApplyCustomerBalance.validator( status, body, ) @@ -49573,7 +46790,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentIntentsIntentCancel( input, - postPaymentIntentsIntentCancelResponder, + postPaymentIntentsIntentCancel.responder, ctx, ) .catch((err) => { @@ -49583,7 +46800,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentIntentsIntentCancelResponseValidator(status, body) + ctx.body = postPaymentIntentsIntentCancel.validator(status, body) ctx.status = status return next() }, @@ -49630,7 +46847,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentIntentsIntentCapture( input, - postPaymentIntentsIntentCaptureResponder, + postPaymentIntentsIntentCapture.responder, ctx, ) .catch((err) => { @@ -49640,7 +46857,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentIntentsIntentCaptureResponseValidator(status, body) + ctx.body = postPaymentIntentsIntentCapture.validator(status, body) ctx.status = status return next() }, @@ -50754,7 +47971,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentIntentsIntentConfirm( input, - postPaymentIntentsIntentConfirmResponder, + postPaymentIntentsIntentConfirm.responder, ctx, ) .catch((err) => { @@ -50764,7 +47981,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentIntentsIntentConfirmResponseValidator(status, body) + ctx.body = postPaymentIntentsIntentConfirm.validator(status, body) ctx.status = status return next() }, @@ -50808,7 +48025,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentIntentsIntentIncrementAuthorization( input, - postPaymentIntentsIntentIncrementAuthorizationResponder, + postPaymentIntentsIntentIncrementAuthorization.responder, ctx, ) .catch((err) => { @@ -50818,11 +48035,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postPaymentIntentsIntentIncrementAuthorizationResponseValidator( - status, - body, - ) + ctx.body = postPaymentIntentsIntentIncrementAuthorization.validator( + status, + body, + ) ctx.status = status return next() }, @@ -50863,7 +48079,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentIntentsIntentVerifyMicrodeposits( input, - postPaymentIntentsIntentVerifyMicrodepositsResponder, + postPaymentIntentsIntentVerifyMicrodeposits.responder, ctx, ) .catch((err) => { @@ -50873,7 +48089,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentIntentsIntentVerifyMicrodepositsResponseValidator( + ctx.body = postPaymentIntentsIntentVerifyMicrodeposits.validator( status, body, ) @@ -50914,7 +48130,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPaymentLinks(input, getPaymentLinksResponder, ctx) + .getPaymentLinks(input, getPaymentLinks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -50922,7 +48138,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentLinksResponseValidator(status, body) + ctx.body = getPaymentLinks.validator(status, body) ctx.status = status return next() }) @@ -51458,7 +48674,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPaymentLinks(input, postPaymentLinksResponder, ctx) + .postPaymentLinks(input, postPaymentLinks.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -51466,7 +48682,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentLinksResponseValidator(status, body) + ctx.body = postPaymentLinks.validator(status, body) ctx.status = status return next() }) @@ -51512,7 +48728,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getPaymentLinksPaymentLink( input, - getPaymentLinksPaymentLinkResponder, + getPaymentLinksPaymentLink.responder, ctx, ) .catch((err) => { @@ -51522,7 +48738,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentLinksPaymentLinkResponseValidator(status, body) + ctx.body = getPaymentLinksPaymentLink.validator(status, body) ctx.status = status return next() }, @@ -52065,7 +49281,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentLinksPaymentLink( input, - postPaymentLinksPaymentLinkResponder, + postPaymentLinksPaymentLink.responder, ctx, ) .catch((err) => { @@ -52075,7 +49291,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentLinksPaymentLinkResponseValidator(status, body) + ctx.body = postPaymentLinksPaymentLink.validator(status, body) ctx.status = status return next() }, @@ -52125,7 +49341,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getPaymentLinksPaymentLinkLineItems( input, - getPaymentLinksPaymentLinkLineItemsResponder, + getPaymentLinksPaymentLinkLineItems.responder, ctx, ) .catch((err) => { @@ -52135,10 +49351,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentLinksPaymentLinkLineItemsResponseValidator( - status, - body, - ) + ctx.body = getPaymentLinksPaymentLinkLineItems.validator(status, body) ctx.status = status return next() }, @@ -52181,7 +49394,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getPaymentMethodConfigurations( input, - getPaymentMethodConfigurationsResponder, + getPaymentMethodConfigurations.responder, ctx, ) .catch((err) => { @@ -52191,7 +49404,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentMethodConfigurationsResponseValidator(status, body) + ctx.body = getPaymentMethodConfigurations.validator(status, body) ctx.status = status return next() }, @@ -52545,7 +49758,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentMethodConfigurations( input, - postPaymentMethodConfigurationsResponder, + postPaymentMethodConfigurations.responder, ctx, ) .catch((err) => { @@ -52555,7 +49768,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentMethodConfigurationsResponseValidator(status, body) + ctx.body = postPaymentMethodConfigurations.validator(status, body) ctx.status = status return next() }, @@ -52604,7 +49817,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getPaymentMethodConfigurationsConfiguration( input, - getPaymentMethodConfigurationsConfigurationResponder, + getPaymentMethodConfigurationsConfiguration.responder, ctx, ) .catch((err) => { @@ -52614,7 +49827,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentMethodConfigurationsConfigurationResponseValidator( + ctx.body = getPaymentMethodConfigurationsConfiguration.validator( status, body, ) @@ -52979,7 +50192,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentMethodConfigurationsConfiguration( input, - postPaymentMethodConfigurationsConfigurationResponder, + postPaymentMethodConfigurationsConfiguration.responder, ctx, ) .catch((err) => { @@ -52989,7 +50202,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentMethodConfigurationsConfigurationResponseValidator( + ctx.body = postPaymentMethodConfigurationsConfiguration.validator( status, body, ) @@ -53034,7 +50247,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPaymentMethodDomains(input, getPaymentMethodDomainsResponder, ctx) + .getPaymentMethodDomains(input, getPaymentMethodDomains.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53042,7 +50255,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentMethodDomainsResponseValidator(status, body) + ctx.body = getPaymentMethodDomains.validator(status, body) ctx.status = status return next() }, @@ -53070,7 +50283,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPaymentMethodDomains(input, postPaymentMethodDomainsResponder, ctx) + .postPaymentMethodDomains( + input, + postPaymentMethodDomains.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53078,7 +50295,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentMethodDomainsResponseValidator(status, body) + ctx.body = postPaymentMethodDomains.validator(status, body) ctx.status = status return next() }, @@ -53127,7 +50344,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getPaymentMethodDomainsPaymentMethodDomain( input, - getPaymentMethodDomainsPaymentMethodDomainResponder, + getPaymentMethodDomainsPaymentMethodDomain.responder, ctx, ) .catch((err) => { @@ -53137,7 +50354,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentMethodDomainsPaymentMethodDomainResponseValidator( + ctx.body = getPaymentMethodDomainsPaymentMethodDomain.validator( status, body, ) @@ -53179,7 +50396,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentMethodDomainsPaymentMethodDomain( input, - postPaymentMethodDomainsPaymentMethodDomainResponder, + postPaymentMethodDomainsPaymentMethodDomain.responder, ctx, ) .catch((err) => { @@ -53189,7 +50406,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentMethodDomainsPaymentMethodDomainResponseValidator( + ctx.body = postPaymentMethodDomainsPaymentMethodDomain.validator( status, body, ) @@ -53227,7 +50444,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentMethodDomainsPaymentMethodDomainValidate( input, - postPaymentMethodDomainsPaymentMethodDomainValidateResponder, + postPaymentMethodDomainsPaymentMethodDomainValidate.responder, ctx, ) .catch((err) => { @@ -53237,11 +50454,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postPaymentMethodDomainsPaymentMethodDomainValidateResponseValidator( - status, - body, - ) + ctx.body = postPaymentMethodDomainsPaymentMethodDomainValidate.validator( + status, + body, + ) ctx.status = status return next() }, @@ -53330,7 +50546,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPaymentMethods(input, getPaymentMethodsResponder, ctx) + .getPaymentMethods(input, getPaymentMethods.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53338,7 +50554,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentMethodsResponseValidator(status, body) + ctx.body = getPaymentMethods.validator(status, body) ctx.status = status return next() }) @@ -53673,7 +50889,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPaymentMethods(input, postPaymentMethodsResponder, ctx) + .postPaymentMethods(input, postPaymentMethods.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53681,7 +50897,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentMethodsResponseValidator(status, body) + ctx.body = postPaymentMethods.validator(status, body) ctx.status = status return next() }, @@ -53728,7 +50944,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getPaymentMethodsPaymentMethod( input, - getPaymentMethodsPaymentMethodResponder, + getPaymentMethodsPaymentMethod.responder, ctx, ) .catch((err) => { @@ -53738,7 +50954,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPaymentMethodsPaymentMethodResponseValidator(status, body) + ctx.body = getPaymentMethodsPaymentMethod.validator(status, body) ctx.status = status return next() }, @@ -53819,7 +51035,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentMethodsPaymentMethod( input, - postPaymentMethodsPaymentMethodResponder, + postPaymentMethodsPaymentMethod.responder, ctx, ) .catch((err) => { @@ -53829,7 +51045,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentMethodsPaymentMethodResponseValidator(status, body) + ctx.body = postPaymentMethodsPaymentMethod.validator(status, body) ctx.status = status return next() }, @@ -53866,7 +51082,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentMethodsPaymentMethodAttach( input, - postPaymentMethodsPaymentMethodAttachResponder, + postPaymentMethodsPaymentMethodAttach.responder, ctx, ) .catch((err) => { @@ -53876,10 +51092,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentMethodsPaymentMethodAttachResponseValidator( - status, - body, - ) + ctx.body = postPaymentMethodsPaymentMethodAttach.validator(status, body) ctx.status = status return next() }, @@ -53915,7 +51128,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPaymentMethodsPaymentMethodDetach( input, - postPaymentMethodsPaymentMethodDetachResponder, + postPaymentMethodsPaymentMethodDetach.responder, ctx, ) .catch((err) => { @@ -53925,10 +51138,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPaymentMethodsPaymentMethodDetachResponseValidator( - status, - body, - ) + ctx.body = postPaymentMethodsPaymentMethodDetach.validator(status, body) ctx.status = status return next() }, @@ -53989,7 +51199,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPayouts(input, getPayoutsResponder, ctx) + .getPayouts(input, getPayouts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -53997,7 +51207,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPayoutsResponseValidator(status, body) + ctx.body = getPayouts.validator(status, body) ctx.status = status return next() }) @@ -54027,7 +51237,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPayouts(input, postPayoutsResponder, ctx) + .postPayouts(input, postPayouts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54035,7 +51245,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPayoutsResponseValidator(status, body) + ctx.body = postPayouts.validator(status, body) ctx.status = status return next() }) @@ -54074,7 +51284,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPayoutsPayout(input, getPayoutsPayoutResponder, ctx) + .getPayoutsPayout(input, getPayoutsPayout.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54082,7 +51292,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPayoutsPayoutResponseValidator(status, body) + ctx.body = getPayoutsPayout.validator(status, body) ctx.status = status return next() }) @@ -54115,7 +51325,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPayoutsPayout(input, postPayoutsPayoutResponder, ctx) + .postPayoutsPayout(input, postPayoutsPayout.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54123,7 +51333,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPayoutsPayoutResponseValidator(status, body) + ctx.body = postPayoutsPayout.validator(status, body) ctx.status = status return next() }) @@ -54156,7 +51366,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPayoutsPayoutCancel(input, postPayoutsPayoutCancelResponder, ctx) + .postPayoutsPayoutCancel(input, postPayoutsPayoutCancel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54164,7 +51374,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPayoutsPayoutCancelResponseValidator(status, body) + ctx.body = postPayoutsPayoutCancel.validator(status, body) ctx.status = status return next() }, @@ -54201,7 +51411,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPayoutsPayoutReverse(input, postPayoutsPayoutReverseResponder, ctx) + .postPayoutsPayoutReverse( + input, + postPayoutsPayoutReverse.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54209,7 +51423,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPayoutsPayoutReverseResponseValidator(status, body) + ctx.body = postPayoutsPayoutReverse.validator(status, body) ctx.status = status return next() }, @@ -54259,7 +51473,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPlans(input, getPlansResponder, ctx) + .getPlans(input, getPlans.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54267,7 +51481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPlansResponseValidator(status, body) + ctx.body = getPlans.validator(status, body) ctx.status = status return next() }) @@ -54331,7 +51545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPlans(input, postPlansResponder, ctx) + .postPlans(input, postPlans.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54339,7 +51553,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPlansResponseValidator(status, body) + ctx.body = postPlans.validator(status, body) ctx.status = status return next() }) @@ -54365,7 +51579,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deletePlansPlan(input, deletePlansPlanResponder, ctx) + .deletePlansPlan(input, deletePlansPlan.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54373,7 +51587,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deletePlansPlanResponseValidator(status, body) + ctx.body = deletePlansPlan.validator(status, body) ctx.status = status return next() }) @@ -54412,7 +51626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPlansPlan(input, getPlansPlanResponder, ctx) + .getPlansPlan(input, getPlansPlan.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54420,7 +51634,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPlansPlanResponseValidator(status, body) + ctx.body = getPlansPlan.validator(status, body) ctx.status = status return next() }) @@ -54455,7 +51669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPlansPlan(input, postPlansPlanResponder, ctx) + .postPlansPlan(input, postPlansPlan.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54463,7 +51677,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPlansPlanResponseValidator(status, body) + ctx.body = postPlansPlan.validator(status, body) ctx.status = status return next() }) @@ -54527,7 +51741,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPrices(input, getPricesResponder, ctx) + .getPrices(input, getPrices.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54535,7 +51749,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPricesResponseValidator(status, body) + ctx.body = getPrices.validator(status, body) ctx.status = status return next() }) @@ -54640,7 +51854,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPrices(input, postPricesResponder, ctx) + .postPrices(input, postPrices.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54648,7 +51862,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPricesResponseValidator(status, body) + ctx.body = postPrices.validator(status, body) ctx.status = status return next() }) @@ -54684,7 +51898,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPricesSearch(input, getPricesSearchResponder, ctx) + .getPricesSearch(input, getPricesSearch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54692,7 +51906,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPricesSearchResponseValidator(status, body) + ctx.body = getPricesSearch.validator(status, body) ctx.status = status return next() }) @@ -54731,7 +51945,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPricesPrice(input, getPricesPriceResponder, ctx) + .getPricesPrice(input, getPricesPrice.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54739,7 +51953,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPricesPriceResponseValidator(status, body) + ctx.body = getPricesPrice.validator(status, body) ctx.status = status return next() }) @@ -54810,7 +52024,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPricesPrice(input, postPricesPriceResponder, ctx) + .postPricesPrice(input, postPricesPrice.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54818,7 +52032,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPricesPriceResponseValidator(status, body) + ctx.body = postPricesPrice.validator(status, body) ctx.status = status return next() }) @@ -54874,7 +52088,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getProducts(input, getProductsResponder, ctx) + .getProducts(input, getProducts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54882,7 +52096,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getProductsResponseValidator(status, body) + ctx.body = getProducts.validator(status, body) ctx.status = status return next() }) @@ -54981,7 +52195,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postProducts(input, postProductsResponder, ctx) + .postProducts(input, postProducts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -54989,7 +52203,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postProductsResponseValidator(status, body) + ctx.body = postProducts.validator(status, body) ctx.status = status return next() }) @@ -55025,7 +52239,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getProductsSearch(input, getProductsSearchResponder, ctx) + .getProductsSearch(input, getProductsSearch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55033,7 +52247,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getProductsSearchResponseValidator(status, body) + ctx.body = getProductsSearch.validator(status, body) ctx.status = status return next() }) @@ -55059,7 +52273,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteProductsId(input, deleteProductsIdResponder, ctx) + .deleteProductsId(input, deleteProductsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55067,7 +52281,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteProductsIdResponseValidator(status, body) + ctx.body = deleteProductsId.validator(status, body) ctx.status = status return next() }) @@ -55106,7 +52320,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getProductsId(input, getProductsIdResponder, ctx) + .getProductsId(input, getProductsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55114,7 +52328,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getProductsIdResponseValidator(status, body) + ctx.body = getProductsId.validator(status, body) ctx.status = status return next() }) @@ -55172,7 +52386,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postProductsId(input, postProductsIdResponder, ctx) + .postProductsId(input, postProductsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55180,7 +52394,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postProductsIdResponseValidator(status, body) + ctx.body = postProductsId.validator(status, body) ctx.status = status return next() }) @@ -55229,7 +52443,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getProductsProductFeatures( input, - getProductsProductFeaturesResponder, + getProductsProductFeatures.responder, ctx, ) .catch((err) => { @@ -55239,7 +52453,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getProductsProductFeaturesResponseValidator(status, body) + ctx.body = getProductsProductFeatures.validator(status, body) ctx.status = status return next() }, @@ -55276,7 +52490,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postProductsProductFeatures( input, - postProductsProductFeaturesResponder, + postProductsProductFeatures.responder, ctx, ) .catch((err) => { @@ -55286,7 +52500,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postProductsProductFeaturesResponseValidator(status, body) + ctx.body = postProductsProductFeatures.validator(status, body) ctx.status = status return next() }, @@ -55321,7 +52535,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteProductsProductFeaturesId( input, - deleteProductsProductFeaturesIdResponder, + deleteProductsProductFeaturesId.responder, ctx, ) .catch((err) => { @@ -55331,7 +52545,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteProductsProductFeaturesIdResponseValidator(status, body) + ctx.body = deleteProductsProductFeaturesId.validator(status, body) ctx.status = status return next() }, @@ -55379,7 +52593,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getProductsProductFeaturesId( input, - getProductsProductFeaturesIdResponder, + getProductsProductFeaturesId.responder, ctx, ) .catch((err) => { @@ -55389,7 +52603,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getProductsProductFeaturesIdResponseValidator(status, body) + ctx.body = getProductsProductFeaturesId.validator(status, body) ctx.status = status return next() }, @@ -55441,7 +52655,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getPromotionCodes(input, getPromotionCodesResponder, ctx) + .getPromotionCodes(input, getPromotionCodes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55449,7 +52663,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPromotionCodesResponseValidator(status, body) + ctx.body = getPromotionCodes.validator(status, body) ctx.status = status return next() }) @@ -55491,7 +52705,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postPromotionCodes(input, postPromotionCodesResponder, ctx) + .postPromotionCodes(input, postPromotionCodes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55499,7 +52713,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPromotionCodesResponseValidator(status, body) + ctx.body = postPromotionCodes.validator(status, body) ctx.status = status return next() }, @@ -55546,7 +52760,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getPromotionCodesPromotionCode( input, - getPromotionCodesPromotionCodeResponder, + getPromotionCodesPromotionCode.responder, ctx, ) .catch((err) => { @@ -55556,7 +52770,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getPromotionCodesPromotionCodeResponseValidator(status, body) + ctx.body = getPromotionCodesPromotionCode.validator(status, body) ctx.status = status return next() }, @@ -55603,7 +52817,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postPromotionCodesPromotionCode( input, - postPromotionCodesPromotionCodeResponder, + postPromotionCodesPromotionCode.responder, ctx, ) .catch((err) => { @@ -55613,7 +52827,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postPromotionCodesPromotionCodeResponseValidator(status, body) + ctx.body = postPromotionCodesPromotionCode.validator(status, body) ctx.status = status return next() }, @@ -55653,7 +52867,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getQuotes(input, getQuotesResponder, ctx) + .getQuotes(input, getQuotes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55661,7 +52875,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getQuotesResponseValidator(status, body) + ctx.body = getQuotes.validator(status, body) ctx.status = status return next() }) @@ -55811,7 +53025,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postQuotes(input, postQuotesResponder, ctx) + .postQuotes(input, postQuotes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55819,7 +53033,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postQuotesResponseValidator(status, body) + ctx.body = postQuotes.validator(status, body) ctx.status = status return next() }) @@ -55858,7 +53072,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getQuotesQuote(input, getQuotesQuoteResponder, ctx) + .getQuotesQuote(input, getQuotesQuote.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -55866,7 +53080,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getQuotesQuoteResponseValidator(status, body) + ctx.body = getQuotesQuote.validator(status, body) ctx.status = status return next() }) @@ -56016,7 +53230,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postQuotesQuote(input, postQuotesQuoteResponder, ctx) + .postQuotesQuote(input, postQuotesQuote.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56024,7 +53238,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postQuotesQuoteResponseValidator(status, body) + ctx.body = postQuotesQuote.validator(status, body) ctx.status = status return next() }) @@ -56057,7 +53271,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postQuotesQuoteAccept(input, postQuotesQuoteAcceptResponder, ctx) + .postQuotesQuoteAccept(input, postQuotesQuoteAccept.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56065,7 +53279,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postQuotesQuoteAcceptResponseValidator(status, body) + ctx.body = postQuotesQuoteAccept.validator(status, body) ctx.status = status return next() }, @@ -56099,7 +53313,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postQuotesQuoteCancel(input, postQuotesQuoteCancelResponder, ctx) + .postQuotesQuoteCancel(input, postQuotesQuoteCancel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56107,7 +53321,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postQuotesQuoteCancelResponseValidator(status, body) + ctx.body = postQuotesQuoteCancel.validator(status, body) ctx.status = status return next() }, @@ -56159,7 +53373,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getQuotesQuoteComputedUpfrontLineItems( input, - getQuotesQuoteComputedUpfrontLineItemsResponder, + getQuotesQuoteComputedUpfrontLineItems.responder, ctx, ) .catch((err) => { @@ -56169,10 +53383,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getQuotesQuoteComputedUpfrontLineItemsResponseValidator( - status, - body, - ) + ctx.body = getQuotesQuoteComputedUpfrontLineItems.validator(status, body) ctx.status = status return next() }, @@ -56209,7 +53420,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postQuotesQuoteFinalize(input, postQuotesQuoteFinalizeResponder, ctx) + .postQuotesQuoteFinalize(input, postQuotesQuoteFinalize.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56217,7 +53428,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postQuotesQuoteFinalizeResponseValidator(status, body) + ctx.body = postQuotesQuoteFinalize.validator(status, body) ctx.status = status return next() }, @@ -56265,7 +53476,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getQuotesQuoteLineItems(input, getQuotesQuoteLineItemsResponder, ctx) + .getQuotesQuoteLineItems(input, getQuotesQuoteLineItems.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56273,7 +53484,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getQuotesQuoteLineItemsResponseValidator(status, body) + ctx.body = getQuotesQuoteLineItems.validator(status, body) ctx.status = status return next() }, @@ -56316,7 +53527,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getQuotesQuotePdf(input, getQuotesQuotePdfResponder, ctx) + .getQuotesQuotePdf(input, getQuotesQuotePdf.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56324,7 +53535,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getQuotesQuotePdfResponseValidator(status, body) + ctx.body = getQuotesQuotePdf.validator(status, body) ctx.status = status return next() }, @@ -56379,7 +53590,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getRadarEarlyFraudWarnings( input, - getRadarEarlyFraudWarningsResponder, + getRadarEarlyFraudWarnings.responder, ctx, ) .catch((err) => { @@ -56389,7 +53600,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getRadarEarlyFraudWarningsResponseValidator(status, body) + ctx.body = getRadarEarlyFraudWarnings.validator(status, body) ctx.status = status return next() }, @@ -56438,7 +53649,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getRadarEarlyFraudWarningsEarlyFraudWarning( input, - getRadarEarlyFraudWarningsEarlyFraudWarningResponder, + getRadarEarlyFraudWarningsEarlyFraudWarning.responder, ctx, ) .catch((err) => { @@ -56448,7 +53659,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getRadarEarlyFraudWarningsEarlyFraudWarningResponseValidator( + ctx.body = getRadarEarlyFraudWarningsEarlyFraudWarning.validator( status, body, ) @@ -56504,7 +53715,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getRadarValueListItems(input, getRadarValueListItemsResponder, ctx) + .getRadarValueListItems(input, getRadarValueListItems.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56512,7 +53723,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getRadarValueListItemsResponseValidator(status, body) + ctx.body = getRadarValueListItems.validator(status, body) ctx.status = status return next() }, @@ -56540,7 +53751,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postRadarValueListItems(input, postRadarValueListItemsResponder, ctx) + .postRadarValueListItems(input, postRadarValueListItems.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56548,7 +53759,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postRadarValueListItemsResponseValidator(status, body) + ctx.body = postRadarValueListItems.validator(status, body) ctx.status = status return next() }, @@ -56582,7 +53793,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteRadarValueListItemsItem( input, - deleteRadarValueListItemsItemResponder, + deleteRadarValueListItemsItem.responder, ctx, ) .catch((err) => { @@ -56592,7 +53803,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteRadarValueListItemsItemResponseValidator(status, body) + ctx.body = deleteRadarValueListItemsItem.validator(status, body) ctx.status = status return next() }, @@ -56639,7 +53850,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getRadarValueListItemsItem( input, - getRadarValueListItemsItemResponder, + getRadarValueListItemsItem.responder, ctx, ) .catch((err) => { @@ -56649,7 +53860,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getRadarValueListItemsItemResponseValidator(status, body) + ctx.body = getRadarValueListItemsItem.validator(status, body) ctx.status = status return next() }, @@ -56702,7 +53913,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getRadarValueLists(input, getRadarValueListsResponder, ctx) + .getRadarValueLists(input, getRadarValueLists.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56710,7 +53921,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getRadarValueListsResponseValidator(status, body) + ctx.body = getRadarValueLists.validator(status, body) ctx.status = status return next() }, @@ -56753,7 +53964,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postRadarValueLists(input, postRadarValueListsResponder, ctx) + .postRadarValueLists(input, postRadarValueLists.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56761,7 +53972,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postRadarValueListsResponseValidator(status, body) + ctx.body = postRadarValueLists.validator(status, body) ctx.status = status return next() }, @@ -56795,7 +54006,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteRadarValueListsValueList( input, - deleteRadarValueListsValueListResponder, + deleteRadarValueListsValueList.responder, ctx, ) .catch((err) => { @@ -56805,7 +54016,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteRadarValueListsValueListResponseValidator(status, body) + ctx.body = deleteRadarValueListsValueList.validator(status, body) ctx.status = status return next() }, @@ -56852,7 +54063,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getRadarValueListsValueList( input, - getRadarValueListsValueListResponder, + getRadarValueListsValueList.responder, ctx, ) .catch((err) => { @@ -56862,7 +54073,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getRadarValueListsValueListResponseValidator(status, body) + ctx.body = getRadarValueListsValueList.validator(status, body) ctx.status = status return next() }, @@ -56903,7 +54114,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postRadarValueListsValueList( input, - postRadarValueListsValueListResponder, + postRadarValueListsValueList.responder, ctx, ) .catch((err) => { @@ -56913,7 +54124,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postRadarValueListsValueListResponseValidator(status, body) + ctx.body = postRadarValueListsValueList.validator(status, body) ctx.status = status return next() }, @@ -56963,7 +54174,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getRefunds(input, getRefundsResponder, ctx) + .getRefunds(input, getRefunds.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -56971,7 +54182,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getRefundsResponseValidator(status, body) + ctx.body = getRefunds.validator(status, body) ctx.status = status return next() }) @@ -57008,7 +54219,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postRefunds(input, postRefundsResponder, ctx) + .postRefunds(input, postRefunds.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57016,7 +54227,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postRefundsResponseValidator(status, body) + ctx.body = postRefunds.validator(status, body) ctx.status = status return next() }) @@ -57055,7 +54266,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getRefundsRefund(input, getRefundsRefundResponder, ctx) + .getRefundsRefund(input, getRefundsRefund.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57063,7 +54274,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getRefundsRefundResponseValidator(status, body) + ctx.body = getRefundsRefund.validator(status, body) ctx.status = status return next() }) @@ -57094,7 +54305,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postRefundsRefund(input, postRefundsRefundResponder, ctx) + .postRefundsRefund(input, postRefundsRefund.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57102,7 +54313,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postRefundsRefundResponseValidator(status, body) + ctx.body = postRefundsRefund.validator(status, body) ctx.status = status return next() }) @@ -57133,7 +54344,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postRefundsRefundCancel(input, postRefundsRefundCancelResponder, ctx) + .postRefundsRefundCancel(input, postRefundsRefundCancel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57141,7 +54352,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postRefundsRefundCancelResponseValidator(status, body) + ctx.body = postRefundsRefundCancel.validator(status, body) ctx.status = status return next() }, @@ -57192,7 +54403,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getReportingReportRuns(input, getReportingReportRunsResponder, ctx) + .getReportingReportRuns(input, getReportingReportRuns.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57200,7 +54411,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getReportingReportRunsResponseValidator(status, body) + ctx.body = getReportingReportRuns.validator(status, body) ctx.status = status return next() }, @@ -57880,7 +55091,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postReportingReportRuns(input, postReportingReportRunsResponder, ctx) + .postReportingReportRuns(input, postReportingReportRuns.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57888,7 +55099,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postReportingReportRunsResponseValidator(status, body) + ctx.body = postReportingReportRuns.validator(status, body) ctx.status = status return next() }, @@ -57935,7 +55146,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getReportingReportRunsReportRun( input, - getReportingReportRunsReportRunResponder, + getReportingReportRunsReportRun.responder, ctx, ) .catch((err) => { @@ -57945,7 +55156,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getReportingReportRunsReportRunResponseValidator(status, body) + ctx.body = getReportingReportRunsReportRun.validator(status, body) ctx.status = status return next() }, @@ -57982,7 +55193,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getReportingReportTypes(input, getReportingReportTypesResponder, ctx) + .getReportingReportTypes(input, getReportingReportTypes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -57990,7 +55201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getReportingReportTypesResponseValidator(status, body) + ctx.body = getReportingReportTypes.validator(status, body) ctx.status = status return next() }, @@ -58037,7 +55248,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getReportingReportTypesReportType( input, - getReportingReportTypesReportTypeResponder, + getReportingReportTypesReportType.responder, ctx, ) .catch((err) => { @@ -58047,10 +55258,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getReportingReportTypesReportTypeResponseValidator( - status, - body, - ) + ctx.body = getReportingReportTypesReportType.validator(status, body) ctx.status = status return next() }, @@ -58098,7 +55306,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getReviews(input, getReviewsResponder, ctx) + .getReviews(input, getReviews.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58106,7 +55314,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getReviewsResponseValidator(status, body) + ctx.body = getReviews.validator(status, body) ctx.status = status return next() }) @@ -58145,7 +55353,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getReviewsReview(input, getReviewsReviewResponder, ctx) + .getReviewsReview(input, getReviewsReview.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58153,7 +55361,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getReviewsReviewResponseValidator(status, body) + ctx.body = getReviewsReview.validator(status, body) ctx.status = status return next() }) @@ -58186,7 +55394,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postReviewsReviewApprove(input, postReviewsReviewApproveResponder, ctx) + .postReviewsReviewApprove( + input, + postReviewsReviewApprove.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58194,7 +55406,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postReviewsReviewApproveResponseValidator(status, body) + ctx.body = postReviewsReviewApprove.validator(status, body) ctx.status = status return next() }, @@ -58243,7 +55455,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSetupAttempts(input, getSetupAttemptsResponder, ctx) + .getSetupAttempts(input, getSetupAttempts.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58251,7 +55463,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSetupAttemptsResponseValidator(status, body) + ctx.body = getSetupAttempts.validator(status, body) ctx.status = status return next() }) @@ -58301,7 +55513,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSetupIntents(input, getSetupIntentsResponder, ctx) + .getSetupIntents(input, getSetupIntents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58309,7 +55521,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSetupIntentsResponseValidator(status, body) + ctx.body = getSetupIntents.validator(status, body) ctx.status = status return next() }) @@ -58831,7 +56043,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postSetupIntents(input, postSetupIntentsResponder, ctx) + .postSetupIntents(input, postSetupIntents.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58839,7 +56051,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSetupIntentsResponseValidator(status, body) + ctx.body = postSetupIntents.validator(status, body) ctx.status = status return next() }) @@ -58884,7 +56096,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSetupIntentsIntent(input, getSetupIntentsIntentResponder, ctx) + .getSetupIntentsIntent(input, getSetupIntentsIntent.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -58892,7 +56104,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSetupIntentsIntentResponseValidator(status, body) + ctx.body = getSetupIntentsIntent.validator(status, body) ctx.status = status return next() }, @@ -59393,7 +56605,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postSetupIntentsIntent(input, postSetupIntentsIntentResponder, ctx) + .postSetupIntentsIntent(input, postSetupIntentsIntent.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -59401,7 +56613,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSetupIntentsIntentResponseValidator(status, body) + ctx.body = postSetupIntentsIntent.validator(status, body) ctx.status = status return next() }, @@ -59442,7 +56654,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSetupIntentsIntentCancel( input, - postSetupIntentsIntentCancelResponder, + postSetupIntentsIntentCancel.responder, ctx, ) .catch((err) => { @@ -59452,7 +56664,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSetupIntentsIntentCancelResponseValidator(status, body) + ctx.body = postSetupIntentsIntentCancel.validator(status, body) ctx.status = status return next() }, @@ -59979,7 +57191,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSetupIntentsIntentConfirm( input, - postSetupIntentsIntentConfirmResponder, + postSetupIntentsIntentConfirm.responder, ctx, ) .catch((err) => { @@ -59989,7 +57201,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSetupIntentsIntentConfirmResponseValidator(status, body) + ctx.body = postSetupIntentsIntentConfirm.validator(status, body) ctx.status = status return next() }, @@ -60030,7 +57242,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSetupIntentsIntentVerifyMicrodeposits( input, - postSetupIntentsIntentVerifyMicrodepositsResponder, + postSetupIntentsIntentVerifyMicrodeposits.responder, ctx, ) .catch((err) => { @@ -60040,7 +57252,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSetupIntentsIntentVerifyMicrodepositsResponseValidator( + ctx.body = postSetupIntentsIntentVerifyMicrodeposits.validator( status, body, ) @@ -60093,7 +57305,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getShippingRates(input, getShippingRatesResponder, ctx) + .getShippingRates(input, getShippingRates.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60101,7 +57313,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getShippingRatesResponseValidator(status, body) + ctx.body = getShippingRates.validator(status, body) ctx.status = status return next() }) @@ -60160,7 +57372,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postShippingRates(input, postShippingRatesResponder, ctx) + .postShippingRates(input, postShippingRates.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60168,7 +57380,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postShippingRatesResponseValidator(status, body) + ctx.body = postShippingRates.validator(status, body) ctx.status = status return next() }) @@ -60214,7 +57426,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getShippingRatesShippingRateToken( input, - getShippingRatesShippingRateTokenResponder, + getShippingRatesShippingRateToken.responder, ctx, ) .catch((err) => { @@ -60224,10 +57436,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getShippingRatesShippingRateTokenResponseValidator( - status, - body, - ) + ctx.body = getShippingRatesShippingRateToken.validator(status, body) ctx.status = status return next() }, @@ -60284,7 +57493,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postShippingRatesShippingRateToken( input, - postShippingRatesShippingRateTokenResponder, + postShippingRatesShippingRateToken.responder, ctx, ) .catch((err) => { @@ -60294,10 +57503,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postShippingRatesShippingRateTokenResponseValidator( - status, - body, - ) + ctx.body = postShippingRatesShippingRateToken.validator(status, body) ctx.status = status return next() }, @@ -60335,7 +57541,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postSigmaSavedQueriesId(input, postSigmaSavedQueriesIdResponder, ctx) + .postSigmaSavedQueriesId(input, postSigmaSavedQueriesId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60343,7 +57549,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSigmaSavedQueriesIdResponseValidator(status, body) + ctx.body = postSigmaSavedQueriesId.validator(status, body) ctx.status = status return next() }, @@ -60385,7 +57591,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getSigmaScheduledQueryRuns( input, - getSigmaScheduledQueryRunsResponder, + getSigmaScheduledQueryRuns.responder, ctx, ) .catch((err) => { @@ -60395,7 +57601,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSigmaScheduledQueryRunsResponseValidator(status, body) + ctx.body = getSigmaScheduledQueryRuns.validator(status, body) ctx.status = status return next() }, @@ -60444,7 +57650,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getSigmaScheduledQueryRunsScheduledQueryRun( input, - getSigmaScheduledQueryRunsScheduledQueryRunResponder, + getSigmaScheduledQueryRunsScheduledQueryRun.responder, ctx, ) .catch((err) => { @@ -60454,7 +57660,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSigmaScheduledQueryRunsScheduledQueryRunResponseValidator( + ctx.body = getSigmaScheduledQueryRunsScheduledQueryRun.validator( status, body, ) @@ -60584,7 +57790,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postSources(input, postSourcesResponder, ctx) + .postSources(input, postSources.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60592,7 +57798,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSourcesResponseValidator(status, body) + ctx.body = postSources.validator(status, body) ctx.status = status return next() }) @@ -60632,7 +57838,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSourcesSource(input, getSourcesSourceResponder, ctx) + .getSourcesSource(input, getSourcesSource.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60640,7 +57846,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSourcesSourceResponseValidator(status, body) + ctx.body = getSourcesSource.validator(status, body) ctx.status = status return next() }) @@ -60756,7 +57962,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postSourcesSource(input, postSourcesSourceResponder, ctx) + .postSourcesSource(input, postSourcesSource.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -60764,7 +57970,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSourcesSourceResponseValidator(status, body) + ctx.body = postSourcesSource.validator(status, body) ctx.status = status return next() }) @@ -60815,7 +58021,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getSourcesSourceMandateNotificationsMandateNotification( input, - getSourcesSourceMandateNotificationsMandateNotificationResponder, + getSourcesSourceMandateNotificationsMandateNotification.responder, ctx, ) .catch((err) => { @@ -60826,7 +58032,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - getSourcesSourceMandateNotificationsMandateNotificationResponseValidator( + getSourcesSourceMandateNotificationsMandateNotification.validator( status, body, ) @@ -60879,7 +58085,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getSourcesSourceSourceTransactions( input, - getSourcesSourceSourceTransactionsResponder, + getSourcesSourceSourceTransactions.responder, ctx, ) .catch((err) => { @@ -60889,10 +58095,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSourcesSourceSourceTransactionsResponseValidator( - status, - body, - ) + ctx.body = getSourcesSourceSourceTransactions.validator(status, body) ctx.status = status return next() }, @@ -60944,7 +58147,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getSourcesSourceSourceTransactionsSourceTransaction( input, - getSourcesSourceSourceTransactionsSourceTransactionResponder, + getSourcesSourceSourceTransactionsSourceTransaction.responder, ctx, ) .catch((err) => { @@ -60954,11 +58157,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - getSourcesSourceSourceTransactionsSourceTransactionResponseValidator( - status, - body, - ) + ctx.body = getSourcesSourceSourceTransactionsSourceTransaction.validator( + status, + body, + ) ctx.status = status return next() }, @@ -60993,7 +58195,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postSourcesSourceVerify(input, postSourcesSourceVerifyResponder, ctx) + .postSourcesSourceVerify(input, postSourcesSourceVerify.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61001,7 +58203,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSourcesSourceVerifyResponseValidator(status, body) + ctx.body = postSourcesSourceVerify.validator(status, body) ctx.status = status return next() }, @@ -61042,7 +58244,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSubscriptionItems(input, getSubscriptionItemsResponder, ctx) + .getSubscriptionItems(input, getSubscriptionItems.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61050,7 +58252,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSubscriptionItemsResponseValidator(status, body) + ctx.body = getSubscriptionItems.validator(status, body) ctx.status = status return next() }, @@ -61122,7 +58324,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postSubscriptionItems(input, postSubscriptionItemsResponder, ctx) + .postSubscriptionItems(input, postSubscriptionItems.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61130,7 +58332,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionItemsResponseValidator(status, body) + ctx.body = postSubscriptionItems.validator(status, body) ctx.status = status return next() }, @@ -61172,7 +58374,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteSubscriptionItemsItem( input, - deleteSubscriptionItemsItemResponder, + deleteSubscriptionItemsItem.responder, ctx, ) .catch((err) => { @@ -61182,7 +58384,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteSubscriptionItemsItemResponseValidator(status, body) + ctx.body = deleteSubscriptionItemsItem.validator(status, body) ctx.status = status return next() }, @@ -61227,7 +58429,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSubscriptionItemsItem(input, getSubscriptionItemsItemResponder, ctx) + .getSubscriptionItemsItem( + input, + getSubscriptionItemsItem.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61235,7 +58441,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSubscriptionItemsItemResponseValidator(status, body) + ctx.body = getSubscriptionItemsItem.validator(status, body) ctx.status = status return next() }, @@ -61319,7 +58525,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSubscriptionItemsItem( input, - postSubscriptionItemsItemResponder, + postSubscriptionItemsItem.responder, ctx, ) .catch((err) => { @@ -61329,7 +58535,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionItemsItemResponseValidator(status, body) + ctx.body = postSubscriptionItemsItem.validator(status, body) ctx.status = status return next() }, @@ -61415,7 +58621,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSubscriptionSchedules(input, getSubscriptionSchedulesResponder, ctx) + .getSubscriptionSchedules( + input, + getSubscriptionSchedules.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -61423,7 +58633,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSubscriptionSchedulesResponseValidator(status, body) + ctx.body = getSubscriptionSchedules.validator(status, body) ctx.status = status return next() }, @@ -61645,7 +58855,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSubscriptionSchedules( input, - postSubscriptionSchedulesResponder, + postSubscriptionSchedules.responder, ctx, ) .catch((err) => { @@ -61655,7 +58865,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionSchedulesResponseValidator(status, body) + ctx.body = postSubscriptionSchedules.validator(status, body) ctx.status = status return next() }, @@ -61702,7 +58912,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getSubscriptionSchedulesSchedule( input, - getSubscriptionSchedulesScheduleResponder, + getSubscriptionSchedulesSchedule.responder, ctx, ) .catch((err) => { @@ -61712,7 +58922,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSubscriptionSchedulesScheduleResponseValidator(status, body) + ctx.body = getSubscriptionSchedulesSchedule.validator(status, body) ctx.status = status return next() }, @@ -61944,7 +59154,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSubscriptionSchedulesSchedule( input, - postSubscriptionSchedulesScheduleResponder, + postSubscriptionSchedulesSchedule.responder, ctx, ) .catch((err) => { @@ -61954,10 +59164,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionSchedulesScheduleResponseValidator( - status, - body, - ) + ctx.body = postSubscriptionSchedulesSchedule.validator(status, body) ctx.status = status return next() }, @@ -61997,7 +59204,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSubscriptionSchedulesScheduleCancel( input, - postSubscriptionSchedulesScheduleCancelResponder, + postSubscriptionSchedulesScheduleCancel.responder, ctx, ) .catch((err) => { @@ -62007,10 +59214,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionSchedulesScheduleCancelResponseValidator( - status, - body, - ) + ctx.body = postSubscriptionSchedulesScheduleCancel.validator(status, body) ctx.status = status return next() }, @@ -62049,7 +59253,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSubscriptionSchedulesScheduleRelease( input, - postSubscriptionSchedulesScheduleReleaseResponder, + postSubscriptionSchedulesScheduleRelease.responder, ctx, ) .catch((err) => { @@ -62059,7 +59263,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionSchedulesScheduleReleaseResponseValidator( + ctx.body = postSubscriptionSchedulesScheduleRelease.validator( status, body, ) @@ -62153,7 +59357,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSubscriptions(input, getSubscriptionsResponder, ctx) + .getSubscriptions(input, getSubscriptions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62161,7 +59365,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSubscriptionsResponseValidator(status, body) + ctx.body = getSubscriptions.validator(status, body) ctx.status = status return next() }) @@ -62528,7 +59732,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postSubscriptions(input, postSubscriptionsResponder, ctx) + .postSubscriptions(input, postSubscriptions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62536,7 +59740,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionsResponseValidator(status, body) + ctx.body = postSubscriptions.validator(status, body) ctx.status = status return next() }) @@ -62575,7 +59779,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getSubscriptionsSearch(input, getSubscriptionsSearchResponder, ctx) + .getSubscriptionsSearch(input, getSubscriptionsSearch.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -62583,7 +59787,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSubscriptionsSearchResponseValidator(status, body) + ctx.body = getSubscriptionsSearch.validator(status, body) ctx.status = status return next() }, @@ -62641,7 +59845,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteSubscriptionsSubscriptionExposedId( input, - deleteSubscriptionsSubscriptionExposedIdResponder, + deleteSubscriptionsSubscriptionExposedId.responder, ctx, ) .catch((err) => { @@ -62651,7 +59855,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteSubscriptionsSubscriptionExposedIdResponseValidator( + ctx.body = deleteSubscriptionsSubscriptionExposedId.validator( status, body, ) @@ -62703,7 +59907,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getSubscriptionsSubscriptionExposedId( input, - getSubscriptionsSubscriptionExposedIdResponder, + getSubscriptionsSubscriptionExposedId.responder, ctx, ) .catch((err) => { @@ -62713,10 +59917,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getSubscriptionsSubscriptionExposedIdResponseValidator( - status, - body, - ) + ctx.body = getSubscriptionsSubscriptionExposedId.validator(status, body) ctx.status = status return next() }, @@ -63124,7 +60325,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSubscriptionsSubscriptionExposedId( input, - postSubscriptionsSubscriptionExposedIdResponder, + postSubscriptionsSubscriptionExposedId.responder, ctx, ) .catch((err) => { @@ -63134,10 +60335,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionsSubscriptionExposedIdResponseValidator( - status, - body, - ) + ctx.body = postSubscriptionsSubscriptionExposedId.validator(status, body) ctx.status = status return next() }, @@ -63173,7 +60371,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteSubscriptionsSubscriptionExposedIdDiscount( input, - deleteSubscriptionsSubscriptionExposedIdDiscountResponder, + deleteSubscriptionsSubscriptionExposedIdDiscount.responder, ctx, ) .catch((err) => { @@ -63183,11 +60381,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - deleteSubscriptionsSubscriptionExposedIdDiscountResponseValidator( - status, - body, - ) + ctx.body = deleteSubscriptionsSubscriptionExposedIdDiscount.validator( + status, + body, + ) ctx.status = status return next() }, @@ -63230,7 +60427,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postSubscriptionsSubscriptionResume( input, - postSubscriptionsSubscriptionResumeResponder, + postSubscriptionsSubscriptionResume.responder, ctx, ) .catch((err) => { @@ -63240,10 +60437,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postSubscriptionsSubscriptionResumeResponseValidator( - status, - body, - ) + ctx.body = postSubscriptionsSubscriptionResume.validator(status, body) ctx.status = status return next() }, @@ -63432,7 +60626,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTaxCalculations(input, postTaxCalculationsResponder, ctx) + .postTaxCalculations(input, postTaxCalculations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63440,7 +60634,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxCalculationsResponseValidator(status, body) + ctx.body = postTaxCalculations.validator(status, body) ctx.status = status return next() }, @@ -63487,7 +60681,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTaxCalculationsCalculation( input, - getTaxCalculationsCalculationResponder, + getTaxCalculationsCalculation.responder, ctx, ) .catch((err) => { @@ -63497,7 +60691,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxCalculationsCalculationResponseValidator(status, body) + ctx.body = getTaxCalculationsCalculation.validator(status, body) ctx.status = status return next() }, @@ -63549,7 +60743,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTaxCalculationsCalculationLineItems( input, - getTaxCalculationsCalculationLineItemsResponder, + getTaxCalculationsCalculationLineItems.responder, ctx, ) .catch((err) => { @@ -63559,10 +60753,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxCalculationsCalculationLineItemsResponseValidator( - status, - body, - ) + ctx.body = getTaxCalculationsCalculationLineItems.validator(status, body) ctx.status = status return next() }, @@ -63603,7 +60794,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxRegistrations(input, getTaxRegistrationsResponder, ctx) + .getTaxRegistrations(input, getTaxRegistrations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -63611,7 +60802,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxRegistrationsResponseValidator(status, body) + ctx.body = getTaxRegistrations.validator(status, body) ctx.status = status return next() }, @@ -64009,7 +61200,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTaxRegistrations(input, postTaxRegistrationsResponder, ctx) + .postTaxRegistrations(input, postTaxRegistrations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64017,7 +61208,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxRegistrationsResponseValidator(status, body) + ctx.body = postTaxRegistrations.validator(status, body) ctx.status = status return next() }, @@ -64062,7 +61253,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxRegistrationsId(input, getTaxRegistrationsIdResponder, ctx) + .getTaxRegistrationsId(input, getTaxRegistrationsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64070,7 +61261,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxRegistrationsIdResponseValidator(status, body) + ctx.body = getTaxRegistrationsId.validator(status, body) ctx.status = status return next() }, @@ -64110,7 +61301,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTaxRegistrationsId(input, postTaxRegistrationsIdResponder, ctx) + .postTaxRegistrationsId(input, postTaxRegistrationsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64118,7 +61309,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxRegistrationsIdResponseValidator(status, body) + ctx.body = postTaxRegistrationsId.validator(status, body) ctx.status = status return next() }, @@ -64152,7 +61343,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxSettings(input, getTaxSettingsResponder, ctx) + .getTaxSettings(input, getTaxSettings.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64160,7 +61351,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxSettingsResponseValidator(status, body) + ctx.body = getTaxSettings.validator(status, body) ctx.status = status return next() }) @@ -64204,7 +61395,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTaxSettings(input, postTaxSettingsResponder, ctx) + .postTaxSettings(input, postTaxSettings.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64212,7 +61403,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxSettingsResponseValidator(status, body) + ctx.body = postTaxSettings.validator(status, body) ctx.status = status return next() }) @@ -64243,7 +61434,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTaxTransactionsCreateFromCalculation( input, - postTaxTransactionsCreateFromCalculationResponder, + postTaxTransactionsCreateFromCalculation.responder, ctx, ) .catch((err) => { @@ -64253,7 +61444,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxTransactionsCreateFromCalculationResponseValidator( + ctx.body = postTaxTransactionsCreateFromCalculation.validator( status, body, ) @@ -64304,7 +61495,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTaxTransactionsCreateReversal( input, - postTaxTransactionsCreateReversalResponder, + postTaxTransactionsCreateReversal.responder, ctx, ) .catch((err) => { @@ -64314,10 +61505,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxTransactionsCreateReversalResponseValidator( - status, - body, - ) + ctx.body = postTaxTransactionsCreateReversal.validator(status, body) ctx.status = status return next() }, @@ -64364,7 +61552,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTaxTransactionsTransaction( input, - getTaxTransactionsTransactionResponder, + getTaxTransactionsTransaction.responder, ctx, ) .catch((err) => { @@ -64374,7 +61562,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxTransactionsTransactionResponseValidator(status, body) + ctx.body = getTaxTransactionsTransaction.validator(status, body) ctx.status = status return next() }, @@ -64426,7 +61614,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTaxTransactionsTransactionLineItems( input, - getTaxTransactionsTransactionLineItemsResponder, + getTaxTransactionsTransactionLineItems.responder, ctx, ) .catch((err) => { @@ -64436,10 +61624,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxTransactionsTransactionLineItemsResponseValidator( - status, - body, - ) + ctx.body = getTaxTransactionsTransactionLineItems.validator(status, body) ctx.status = status return next() }, @@ -64476,7 +61661,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxCodes(input, getTaxCodesResponder, ctx) + .getTaxCodes(input, getTaxCodes.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64484,7 +61669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxCodesResponseValidator(status, body) + ctx.body = getTaxCodes.validator(status, body) ctx.status = status return next() }) @@ -64523,7 +61708,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxCodesId(input, getTaxCodesIdResponder, ctx) + .getTaxCodesId(input, getTaxCodesId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64531,7 +61716,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxCodesIdResponseValidator(status, body) + ctx.body = getTaxCodesId.validator(status, body) ctx.status = status return next() }) @@ -64574,7 +61759,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxIds(input, getTaxIdsResponder, ctx) + .getTaxIds(input, getTaxIds.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64582,7 +61767,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxIdsResponseValidator(status, body) + ctx.body = getTaxIds.validator(status, body) ctx.status = status return next() }) @@ -64714,7 +61899,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTaxIds(input, postTaxIdsResponder, ctx) + .postTaxIds(input, postTaxIds.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64722,7 +61907,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxIdsResponseValidator(status, body) + ctx.body = postTaxIds.validator(status, body) ctx.status = status return next() }) @@ -64748,7 +61933,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteTaxIdsId(input, deleteTaxIdsIdResponder, ctx) + .deleteTaxIdsId(input, deleteTaxIdsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64756,7 +61941,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteTaxIdsIdResponseValidator(status, body) + ctx.body = deleteTaxIdsId.validator(status, body) ctx.status = status return next() }) @@ -64795,7 +61980,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxIdsId(input, getTaxIdsIdResponder, ctx) + .getTaxIdsId(input, getTaxIdsId.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64803,7 +61988,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxIdsIdResponseValidator(status, body) + ctx.body = getTaxIdsId.validator(status, body) ctx.status = status return next() }) @@ -64852,7 +62037,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxRates(input, getTaxRatesResponder, ctx) + .getTaxRates(input, getTaxRates.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64860,7 +62045,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxRatesResponseValidator(status, body) + ctx.body = getTaxRates.validator(status, body) ctx.status = status return next() }) @@ -64909,7 +62094,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTaxRates(input, postTaxRatesResponder, ctx) + .postTaxRates(input, postTaxRates.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64917,7 +62102,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxRatesResponseValidator(status, body) + ctx.body = postTaxRates.validator(status, body) ctx.status = status return next() }) @@ -64961,7 +62146,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTaxRatesTaxRate(input, getTaxRatesTaxRateResponder, ctx) + .getTaxRatesTaxRate(input, getTaxRatesTaxRate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -64969,7 +62154,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTaxRatesTaxRateResponseValidator(status, body) + ctx.body = getTaxRatesTaxRate.validator(status, body) ctx.status = status return next() }, @@ -65030,7 +62215,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTaxRatesTaxRate(input, postTaxRatesTaxRateResponder, ctx) + .postTaxRatesTaxRate(input, postTaxRatesTaxRate.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65038,7 +62223,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTaxRatesTaxRateResponseValidator(status, body) + ctx.body = postTaxRatesTaxRate.validator(status, body) ctx.status = status return next() }, @@ -65081,7 +62266,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTerminalConfigurations( input, - getTerminalConfigurationsResponder, + getTerminalConfigurations.responder, ctx, ) .catch((err) => { @@ -65091,7 +62276,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTerminalConfigurationsResponseValidator(status, body) + ctx.body = getTerminalConfigurations.validator(status, body) ctx.status = status return next() }, @@ -65297,7 +62482,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalConfigurations( input, - postTerminalConfigurationsResponder, + postTerminalConfigurations.responder, ctx, ) .catch((err) => { @@ -65307,7 +62492,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalConfigurationsResponseValidator(status, body) + ctx.body = postTerminalConfigurations.validator(status, body) ctx.status = status return next() }, @@ -65343,7 +62528,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteTerminalConfigurationsConfiguration( input, - deleteTerminalConfigurationsConfigurationResponder, + deleteTerminalConfigurationsConfiguration.responder, ctx, ) .catch((err) => { @@ -65353,7 +62538,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteTerminalConfigurationsConfigurationResponseValidator( + ctx.body = deleteTerminalConfigurationsConfiguration.validator( status, body, ) @@ -65405,7 +62590,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTerminalConfigurationsConfiguration( input, - getTerminalConfigurationsConfigurationResponder, + getTerminalConfigurationsConfiguration.responder, ctx, ) .catch((err) => { @@ -65415,10 +62600,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTerminalConfigurationsConfigurationResponseValidator( - status, - body, - ) + ctx.body = getTerminalConfigurationsConfiguration.validator(status, body) ctx.status = status return next() }, @@ -65647,7 +62829,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalConfigurationsConfiguration( input, - postTerminalConfigurationsConfigurationResponder, + postTerminalConfigurationsConfiguration.responder, ctx, ) .catch((err) => { @@ -65657,10 +62839,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalConfigurationsConfigurationResponseValidator( - status, - body, - ) + ctx.body = postTerminalConfigurationsConfiguration.validator(status, body) ctx.status = status return next() }, @@ -65691,7 +62870,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalConnectionTokens( input, - postTerminalConnectionTokensResponder, + postTerminalConnectionTokens.responder, ctx, ) .catch((err) => { @@ -65701,7 +62880,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalConnectionTokensResponseValidator(status, body) + ctx.body = postTerminalConnectionTokens.validator(status, body) ctx.status = status return next() }, @@ -65741,7 +62920,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTerminalLocations(input, getTerminalLocationsResponder, ctx) + .getTerminalLocations(input, getTerminalLocations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65749,7 +62928,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTerminalLocationsResponseValidator(status, body) + ctx.body = getTerminalLocations.validator(status, body) ctx.status = status return next() }, @@ -65786,7 +62965,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTerminalLocations(input, postTerminalLocationsResponder, ctx) + .postTerminalLocations(input, postTerminalLocations.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -65794,7 +62973,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalLocationsResponseValidator(status, body) + ctx.body = postTerminalLocations.validator(status, body) ctx.status = status return next() }, @@ -65828,7 +63007,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteTerminalLocationsLocation( input, - deleteTerminalLocationsLocationResponder, + deleteTerminalLocationsLocation.responder, ctx, ) .catch((err) => { @@ -65838,7 +63017,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteTerminalLocationsLocationResponseValidator(status, body) + ctx.body = deleteTerminalLocationsLocation.validator(status, body) ctx.status = status return next() }, @@ -65885,7 +63064,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTerminalLocationsLocation( input, - getTerminalLocationsLocationResponder, + getTerminalLocationsLocation.responder, ctx, ) .catch((err) => { @@ -65895,7 +63074,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTerminalLocationsLocationResponseValidator(status, body) + ctx.body = getTerminalLocationsLocation.validator(status, body) ctx.status = status return next() }, @@ -65948,7 +63127,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalLocationsLocation( input, - postTerminalLocationsLocationResponder, + postTerminalLocationsLocation.responder, ctx, ) .catch((err) => { @@ -65958,7 +63137,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalLocationsLocationResponseValidator(status, body) + ctx.body = postTerminalLocationsLocation.validator(status, body) ctx.status = status return next() }, @@ -66013,7 +63192,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTerminalReaders(input, getTerminalReadersResponder, ctx) + .getTerminalReaders(input, getTerminalReaders.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66021,7 +63200,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTerminalReadersResponseValidator(status, body) + ctx.body = getTerminalReaders.validator(status, body) ctx.status = status return next() }, @@ -66051,7 +63230,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTerminalReaders(input, postTerminalReadersResponder, ctx) + .postTerminalReaders(input, postTerminalReaders.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66059,7 +63238,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalReadersResponseValidator(status, body) + ctx.body = postTerminalReaders.validator(status, body) ctx.status = status return next() }, @@ -66093,7 +63272,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteTerminalReadersReader( input, - deleteTerminalReadersReaderResponder, + deleteTerminalReadersReader.responder, ctx, ) .catch((err) => { @@ -66103,7 +63282,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteTerminalReadersReaderResponseValidator(status, body) + ctx.body = deleteTerminalReadersReader.validator(status, body) ctx.status = status return next() }, @@ -66148,7 +63327,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTerminalReadersReader(input, getTerminalReadersReaderResponder, ctx) + .getTerminalReadersReader( + input, + getTerminalReadersReader.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -66156,7 +63339,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTerminalReadersReaderResponseValidator(status, body) + ctx.body = getTerminalReadersReader.validator(status, body) ctx.status = status return next() }, @@ -66196,7 +63379,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalReadersReader( input, - postTerminalReadersReaderResponder, + postTerminalReadersReader.responder, ctx, ) .catch((err) => { @@ -66206,7 +63389,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalReadersReaderResponseValidator(status, body) + ctx.body = postTerminalReadersReader.validator(status, body) ctx.status = status return next() }, @@ -66242,7 +63425,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalReadersReaderCancelAction( input, - postTerminalReadersReaderCancelActionResponder, + postTerminalReadersReaderCancelAction.responder, ctx, ) .catch((err) => { @@ -66252,10 +63435,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalReadersReaderCancelActionResponseValidator( - status, - body, - ) + ctx.body = postTerminalReadersReaderCancelAction.validator(status, body) ctx.status = status return next() }, @@ -66304,7 +63484,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalReadersReaderProcessPaymentIntent( input, - postTerminalReadersReaderProcessPaymentIntentResponder, + postTerminalReadersReaderProcessPaymentIntent.responder, ctx, ) .catch((err) => { @@ -66314,7 +63494,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalReadersReaderProcessPaymentIntentResponseValidator( + ctx.body = postTerminalReadersReaderProcessPaymentIntent.validator( status, body, ) @@ -66358,7 +63538,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalReadersReaderProcessSetupIntent( input, - postTerminalReadersReaderProcessSetupIntentResponder, + postTerminalReadersReaderProcessSetupIntent.responder, ctx, ) .catch((err) => { @@ -66368,7 +63548,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalReadersReaderProcessSetupIntentResponseValidator( + ctx.body = postTerminalReadersReaderProcessSetupIntent.validator( status, body, ) @@ -66418,7 +63598,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalReadersReaderRefundPayment( input, - postTerminalReadersReaderRefundPaymentResponder, + postTerminalReadersReaderRefundPayment.responder, ctx, ) .catch((err) => { @@ -66428,10 +63608,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalReadersReaderRefundPaymentResponseValidator( - status, - body, - ) + ctx.body = postTerminalReadersReaderRefundPayment.validator(status, body) ctx.status = status return next() }, @@ -66482,7 +63659,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTerminalReadersReaderSetReaderDisplay( input, - postTerminalReadersReaderSetReaderDisplayResponder, + postTerminalReadersReaderSetReaderDisplay.responder, ctx, ) .catch((err) => { @@ -66492,7 +63669,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTerminalReadersReaderSetReaderDisplayResponseValidator( + ctx.body = postTerminalReadersReaderSetReaderDisplay.validator( status, body, ) @@ -66833,7 +64010,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersConfirmationTokens( input, - postTestHelpersConfirmationTokensResponder, + postTestHelpersConfirmationTokens.responder, ctx, ) .catch((err) => { @@ -66843,10 +64020,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersConfirmationTokensResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersConfirmationTokens.validator(status, body) ctx.status = status return next() }, @@ -66885,7 +64059,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersCustomersCustomerFundCashBalance( input, - postTestHelpersCustomersCustomerFundCashBalanceResponder, + postTestHelpersCustomersCustomerFundCashBalance.responder, ctx, ) .catch((err) => { @@ -66895,11 +64069,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTestHelpersCustomersCustomerFundCashBalanceResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersCustomersCustomerFundCashBalance.validator( + status, + body, + ) ctx.status = status return next() }, @@ -67355,7 +64528,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingAuthorizations( input, - postTestHelpersIssuingAuthorizationsResponder, + postTestHelpersIssuingAuthorizations.responder, ctx, ) .catch((err) => { @@ -67365,10 +64538,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersIssuingAuthorizationsResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersIssuingAuthorizations.validator(status, body) ctx.status = status return next() }, @@ -67515,7 +64685,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationCapture( input, - postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder, + postTestHelpersIssuingAuthorizationsAuthorizationCapture.responder, ctx, ) .catch((err) => { @@ -67526,7 +64696,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingAuthorizationsAuthorizationCaptureResponseValidator( + postTestHelpersIssuingAuthorizationsAuthorizationCapture.validator( status, body, ) @@ -67564,7 +64734,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationExpire( input, - postTestHelpersIssuingAuthorizationsAuthorizationExpireResponder, + postTestHelpersIssuingAuthorizationsAuthorizationExpire.responder, ctx, ) .catch((err) => { @@ -67575,7 +64745,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingAuthorizationsAuthorizationExpireResponseValidator( + postTestHelpersIssuingAuthorizationsAuthorizationExpire.validator( status, body, ) @@ -67682,7 +64852,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount( input, - postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder, + postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount.responder, ctx, ) .catch((err) => { @@ -67693,7 +64863,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponseValidator( + postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount.validator( status, body, ) @@ -67733,7 +64903,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond( input, - postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder, + postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond.responder, ctx, ) .catch((err) => { @@ -67744,7 +64914,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponseValidator( + postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond.validator( status, body, ) @@ -67785,7 +64955,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationIncrement( input, - postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder, + postTestHelpersIssuingAuthorizationsAuthorizationIncrement.responder, ctx, ) .catch((err) => { @@ -67796,7 +64966,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingAuthorizationsAuthorizationIncrementResponseValidator( + postTestHelpersIssuingAuthorizationsAuthorizationIncrement.validator( status, body, ) @@ -67837,7 +65007,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingAuthorizationsAuthorizationReverse( input, - postTestHelpersIssuingAuthorizationsAuthorizationReverseResponder, + postTestHelpersIssuingAuthorizationsAuthorizationReverse.responder, ctx, ) .catch((err) => { @@ -67848,7 +65018,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingAuthorizationsAuthorizationReverseResponseValidator( + postTestHelpersIssuingAuthorizationsAuthorizationReverse.validator( status, body, ) @@ -67887,7 +65057,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingCardsCardShippingDeliver( input, - postTestHelpersIssuingCardsCardShippingDeliverResponder, + postTestHelpersIssuingCardsCardShippingDeliver.responder, ctx, ) .catch((err) => { @@ -67897,11 +65067,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTestHelpersIssuingCardsCardShippingDeliverResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersIssuingCardsCardShippingDeliver.validator( + status, + body, + ) ctx.status = status return next() }, @@ -67937,7 +65106,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingCardsCardShippingFail( input, - postTestHelpersIssuingCardsCardShippingFailResponder, + postTestHelpersIssuingCardsCardShippingFail.responder, ctx, ) .catch((err) => { @@ -67947,7 +65116,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersIssuingCardsCardShippingFailResponseValidator( + ctx.body = postTestHelpersIssuingCardsCardShippingFail.validator( status, body, ) @@ -67986,7 +65155,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingCardsCardShippingReturn( input, - postTestHelpersIssuingCardsCardShippingReturnResponder, + postTestHelpersIssuingCardsCardShippingReturn.responder, ctx, ) .catch((err) => { @@ -67996,7 +65165,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersIssuingCardsCardShippingReturnResponseValidator( + ctx.body = postTestHelpersIssuingCardsCardShippingReturn.validator( status, body, ) @@ -68035,7 +65204,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingCardsCardShippingShip( input, - postTestHelpersIssuingCardsCardShippingShipResponder, + postTestHelpersIssuingCardsCardShippingShip.responder, ctx, ) .catch((err) => { @@ -68045,7 +65214,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersIssuingCardsCardShippingShipResponseValidator( + ctx.body = postTestHelpersIssuingCardsCardShippingShip.validator( status, body, ) @@ -68084,7 +65253,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingCardsCardShippingSubmit( input, - postTestHelpersIssuingCardsCardShippingSubmitResponder, + postTestHelpersIssuingCardsCardShippingSubmit.responder, ctx, ) .catch((err) => { @@ -68094,7 +65263,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersIssuingCardsCardShippingSubmitResponseValidator( + ctx.body = postTestHelpersIssuingCardsCardShippingSubmit.validator( status, body, ) @@ -68131,7 +65300,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate( input, - postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder, + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate.responder, ctx, ) .catch((err) => { @@ -68142,7 +65311,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponseValidator( + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate.validator( status, body, ) @@ -68179,7 +65348,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate( input, - postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder, + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate.responder, ctx, ) .catch((err) => { @@ -68190,7 +65359,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponseValidator( + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate.validator( status, body, ) @@ -68258,7 +65427,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject( input, - postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder, + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject.responder, ctx, ) .catch((err) => { @@ -68269,7 +65438,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponseValidator( + postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject.validator( status, body, ) @@ -68309,7 +65478,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingSettlements( input, - postTestHelpersIssuingSettlementsResponder, + postTestHelpersIssuingSettlements.responder, ctx, ) .catch((err) => { @@ -68319,10 +65488,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersIssuingSettlementsResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersIssuingSettlements.validator(status, body) ctx.status = status return next() }, @@ -68357,7 +65523,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingSettlementsSettlementComplete( input, - postTestHelpersIssuingSettlementsSettlementCompleteResponder, + postTestHelpersIssuingSettlementsSettlementComplete.responder, ctx, ) .catch((err) => { @@ -68367,11 +65533,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTestHelpersIssuingSettlementsSettlementCompleteResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersIssuingSettlementsSettlementComplete.validator( + status, + body, + ) ctx.status = status return next() }, @@ -68821,7 +65986,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingTransactionsCreateForceCapture( input, - postTestHelpersIssuingTransactionsCreateForceCaptureResponder, + postTestHelpersIssuingTransactionsCreateForceCapture.responder, ctx, ) .catch((err) => { @@ -68831,11 +65996,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTestHelpersIssuingTransactionsCreateForceCaptureResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersIssuingTransactionsCreateForceCapture.validator( + status, + body, + ) ctx.status = status return next() }, @@ -69285,7 +66449,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingTransactionsCreateUnlinkedRefund( input, - postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder, + postTestHelpersIssuingTransactionsCreateUnlinkedRefund.responder, ctx, ) .catch((err) => { @@ -69296,7 +66460,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersIssuingTransactionsCreateUnlinkedRefundResponseValidator( + postTestHelpersIssuingTransactionsCreateUnlinkedRefund.validator( status, body, ) @@ -69337,7 +66501,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersIssuingTransactionsTransactionRefund( input, - postTestHelpersIssuingTransactionsTransactionRefundResponder, + postTestHelpersIssuingTransactionsTransactionRefund.responder, ctx, ) .catch((err) => { @@ -69347,11 +66511,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTestHelpersIssuingTransactionsTransactionRefundResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersIssuingTransactionsTransactionRefund.validator( + status, + body, + ) ctx.status = status return next() }, @@ -69387,7 +66550,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersRefundsRefundExpire( input, - postTestHelpersRefundsRefundExpireResponder, + postTestHelpersRefundsRefundExpire.responder, ctx, ) .catch((err) => { @@ -69397,10 +66560,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersRefundsRefundExpireResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersRefundsRefundExpire.validator(status, body) ctx.status = status return next() }, @@ -69445,7 +66605,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTerminalReadersReaderPresentPaymentMethod( input, - postTestHelpersTerminalReadersReaderPresentPaymentMethodResponder, + postTestHelpersTerminalReadersReaderPresentPaymentMethod.responder, ctx, ) .catch((err) => { @@ -69456,7 +66616,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersTerminalReadersReaderPresentPaymentMethodResponseValidator( + postTestHelpersTerminalReadersReaderPresentPaymentMethod.validator( status, body, ) @@ -69499,7 +66659,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTestHelpersTestClocks(input, getTestHelpersTestClocksResponder, ctx) + .getTestHelpersTestClocks( + input, + getTestHelpersTestClocks.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -69507,7 +66671,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTestHelpersTestClocksResponseValidator(status, body) + ctx.body = getTestHelpersTestClocks.validator(status, body) ctx.status = status return next() }, @@ -69537,7 +66701,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTestClocks( input, - postTestHelpersTestClocksResponder, + postTestHelpersTestClocks.responder, ctx, ) .catch((err) => { @@ -69547,7 +66711,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersTestClocksResponseValidator(status, body) + ctx.body = postTestHelpersTestClocks.validator(status, body) ctx.status = status return next() }, @@ -69581,7 +66745,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteTestHelpersTestClocksTestClock( input, - deleteTestHelpersTestClocksTestClockResponder, + deleteTestHelpersTestClocksTestClock.responder, ctx, ) .catch((err) => { @@ -69591,10 +66755,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteTestHelpersTestClocksTestClockResponseValidator( - status, - body, - ) + ctx.body = deleteTestHelpersTestClocksTestClock.validator(status, body) ctx.status = status return next() }, @@ -69641,7 +66802,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTestHelpersTestClocksTestClock( input, - getTestHelpersTestClocksTestClockResponder, + getTestHelpersTestClocksTestClock.responder, ctx, ) .catch((err) => { @@ -69651,10 +66812,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTestHelpersTestClocksTestClockResponseValidator( - status, - body, - ) + ctx.body = getTestHelpersTestClocksTestClock.validator(status, body) ctx.status = status return next() }, @@ -69691,7 +66849,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTestClocksTestClockAdvance( input, - postTestHelpersTestClocksTestClockAdvanceResponder, + postTestHelpersTestClocksTestClockAdvance.responder, ctx, ) .catch((err) => { @@ -69701,7 +66859,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersTestClocksTestClockAdvanceResponseValidator( + ctx.body = postTestHelpersTestClocksTestClockAdvance.validator( status, body, ) @@ -69763,7 +66921,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryInboundTransfersIdFail( input, - postTestHelpersTreasuryInboundTransfersIdFailResponder, + postTestHelpersTreasuryInboundTransfersIdFail.responder, ctx, ) .catch((err) => { @@ -69773,7 +66931,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersTreasuryInboundTransfersIdFailResponseValidator( + ctx.body = postTestHelpersTreasuryInboundTransfersIdFail.validator( status, body, ) @@ -69812,7 +66970,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryInboundTransfersIdReturn( input, - postTestHelpersTreasuryInboundTransfersIdReturnResponder, + postTestHelpersTreasuryInboundTransfersIdReturn.responder, ctx, ) .catch((err) => { @@ -69822,11 +66980,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTestHelpersTreasuryInboundTransfersIdReturnResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersTreasuryInboundTransfersIdReturn.validator( + status, + body, + ) ctx.status = status return next() }, @@ -69862,7 +67019,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryInboundTransfersIdSucceed( input, - postTestHelpersTreasuryInboundTransfersIdSucceedResponder, + postTestHelpersTreasuryInboundTransfersIdSucceed.responder, ctx, ) .catch((err) => { @@ -69872,11 +67029,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTestHelpersTreasuryInboundTransfersIdSucceedResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersTreasuryInboundTransfersIdSucceed.validator( + status, + body, + ) ctx.status = status return next() }, @@ -69923,7 +67079,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryOutboundPaymentsId( input, - postTestHelpersTreasuryOutboundPaymentsIdResponder, + postTestHelpersTreasuryOutboundPaymentsId.responder, ctx, ) .catch((err) => { @@ -69933,7 +67089,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersTreasuryOutboundPaymentsIdResponseValidator( + ctx.body = postTestHelpersTreasuryOutboundPaymentsId.validator( status, body, ) @@ -69972,7 +67128,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryOutboundPaymentsIdFail( input, - postTestHelpersTreasuryOutboundPaymentsIdFailResponder, + postTestHelpersTreasuryOutboundPaymentsIdFail.responder, ctx, ) .catch((err) => { @@ -69982,7 +67138,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersTreasuryOutboundPaymentsIdFailResponseValidator( + ctx.body = postTestHelpersTreasuryOutboundPaymentsIdFail.validator( status, body, ) @@ -70021,7 +67177,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryOutboundPaymentsIdPost( input, - postTestHelpersTreasuryOutboundPaymentsIdPostResponder, + postTestHelpersTreasuryOutboundPaymentsIdPost.responder, ctx, ) .catch((err) => { @@ -70031,7 +67187,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersTreasuryOutboundPaymentsIdPostResponseValidator( + ctx.body = postTestHelpersTreasuryOutboundPaymentsIdPost.validator( status, body, ) @@ -70090,7 +67246,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryOutboundPaymentsIdReturn( input, - postTestHelpersTreasuryOutboundPaymentsIdReturnResponder, + postTestHelpersTreasuryOutboundPaymentsIdReturn.responder, ctx, ) .catch((err) => { @@ -70100,11 +67256,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTestHelpersTreasuryOutboundPaymentsIdReturnResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersTreasuryOutboundPaymentsIdReturn.validator( + status, + body, + ) ctx.status = status return next() }, @@ -70151,7 +67306,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryOutboundTransfersOutboundTransfer( input, - postTestHelpersTreasuryOutboundTransfersOutboundTransferResponder, + postTestHelpersTreasuryOutboundTransfersOutboundTransfer.responder, ctx, ) .catch((err) => { @@ -70162,7 +67317,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersTreasuryOutboundTransfersOutboundTransferResponseValidator( + postTestHelpersTreasuryOutboundTransfersOutboundTransfer.validator( status, body, ) @@ -70199,7 +67354,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryOutboundTransfersOutboundTransferFail( input, - postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder, + postTestHelpersTreasuryOutboundTransfersOutboundTransferFail.responder, ctx, ) .catch((err) => { @@ -70210,7 +67365,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponseValidator( + postTestHelpersTreasuryOutboundTransfersOutboundTransferFail.validator( status, body, ) @@ -70247,7 +67402,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryOutboundTransfersOutboundTransferPost( input, - postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder, + postTestHelpersTreasuryOutboundTransfersOutboundTransferPost.responder, ctx, ) .catch((err) => { @@ -70258,7 +67413,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponseValidator( + postTestHelpersTreasuryOutboundTransfersOutboundTransferPost.validator( status, body, ) @@ -70317,7 +67472,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn( input, - postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder, + postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn.responder, ctx, ) .catch((err) => { @@ -70328,7 +67483,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponseValidator( + postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn.validator( status, body, ) @@ -70376,7 +67531,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryReceivedCredits( input, - postTestHelpersTreasuryReceivedCreditsResponder, + postTestHelpersTreasuryReceivedCredits.responder, ctx, ) .catch((err) => { @@ -70386,10 +67541,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersTreasuryReceivedCreditsResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersTreasuryReceivedCredits.validator(status, body) ctx.status = status return next() }, @@ -70434,7 +67586,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTestHelpersTreasuryReceivedDebits( input, - postTestHelpersTreasuryReceivedDebitsResponder, + postTestHelpersTreasuryReceivedDebits.responder, ctx, ) .catch((err) => { @@ -70444,10 +67596,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTestHelpersTreasuryReceivedDebitsResponseValidator( - status, - body, - ) + ctx.body = postTestHelpersTreasuryReceivedDebits.validator(status, body) ctx.status = status return next() }, @@ -70879,7 +68028,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTokens(input, postTokensResponder, ctx) + .postTokens(input, postTokens.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70887,7 +68036,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTokensResponseValidator(status, body) + ctx.body = postTokens.validator(status, body) ctx.status = status return next() }) @@ -70926,7 +68075,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTokensToken(input, getTokensTokenResponder, ctx) + .getTokensToken(input, getTokensToken.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -70934,7 +68083,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTokensTokenResponseValidator(status, body) + ctx.body = getTokensToken.validator(status, body) ctx.status = status return next() }) @@ -70993,7 +68142,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTopups(input, getTopupsResponder, ctx) + .getTopups(input, getTopups.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71001,7 +68150,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTopupsResponseValidator(status, body) + ctx.body = getTopups.validator(status, body) ctx.status = status return next() }) @@ -71030,7 +68179,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTopups(input, postTopupsResponder, ctx) + .postTopups(input, postTopups.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71038,7 +68187,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTopupsResponseValidator(status, body) + ctx.body = postTopups.validator(status, body) ctx.status = status return next() }) @@ -71077,7 +68226,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTopupsTopup(input, getTopupsTopupResponder, ctx) + .getTopupsTopup(input, getTopupsTopup.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71085,7 +68234,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTopupsTopupResponseValidator(status, body) + ctx.body = getTopupsTopup.validator(status, body) ctx.status = status return next() }) @@ -71117,7 +68266,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTopupsTopup(input, postTopupsTopupResponder, ctx) + .postTopupsTopup(input, postTopupsTopup.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71125,7 +68274,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTopupsTopupResponseValidator(status, body) + ctx.body = postTopupsTopup.validator(status, body) ctx.status = status return next() }) @@ -71158,7 +68307,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTopupsTopupCancel(input, postTopupsTopupCancelResponder, ctx) + .postTopupsTopupCancel(input, postTopupsTopupCancel.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71166,7 +68315,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTopupsTopupCancelResponseValidator(status, body) + ctx.body = postTopupsTopupCancel.validator(status, body) ctx.status = status return next() }, @@ -71216,7 +68365,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTransfers(input, getTransfersResponder, ctx) + .getTransfers(input, getTransfers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71224,7 +68373,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTransfersResponseValidator(status, body) + ctx.body = getTransfers.validator(status, body) ctx.status = status return next() }) @@ -71254,7 +68403,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTransfers(input, postTransfersResponder, ctx) + .postTransfers(input, postTransfers.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71262,7 +68411,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTransfersResponseValidator(status, body) + ctx.body = postTransfers.validator(status, body) ctx.status = status return next() }) @@ -71309,7 +68458,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTransfersIdReversals(input, getTransfersIdReversalsResponder, ctx) + .getTransfersIdReversals(input, getTransfersIdReversals.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71317,7 +68466,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTransfersIdReversalsResponseValidator(status, body) + ctx.body = getTransfersIdReversals.validator(status, body) ctx.status = status return next() }, @@ -71357,7 +68506,11 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTransfersIdReversals(input, postTransfersIdReversalsResponder, ctx) + .postTransfersIdReversals( + input, + postTransfersIdReversals.responder, + ctx, + ) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71365,7 +68518,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTransfersIdReversalsResponseValidator(status, body) + ctx.body = postTransfersIdReversals.validator(status, body) ctx.status = status return next() }, @@ -71410,7 +68563,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTransfersTransfer(input, getTransfersTransferResponder, ctx) + .getTransfersTransfer(input, getTransfersTransfer.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71418,7 +68571,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTransfersTransferResponseValidator(status, body) + ctx.body = getTransfersTransfer.validator(status, body) ctx.status = status return next() }, @@ -71456,7 +68609,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postTransfersTransfer(input, postTransfersTransferResponder, ctx) + .postTransfersTransfer(input, postTransfersTransfer.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -71464,7 +68617,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTransfersTransferResponseValidator(status, body) + ctx.body = postTransfersTransfer.validator(status, body) ctx.status = status return next() }, @@ -71512,7 +68665,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTransfersTransferReversalsId( input, - getTransfersTransferReversalsIdResponder, + getTransfersTransferReversalsId.responder, ctx, ) .catch((err) => { @@ -71522,7 +68675,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTransfersTransferReversalsIdResponseValidator(status, body) + ctx.body = getTransfersTransferReversalsId.validator(status, body) ctx.status = status return next() }, @@ -71562,7 +68715,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTransfersTransferReversalsId( input, - postTransfersTransferReversalsIdResponder, + postTransfersTransferReversalsId.responder, ctx, ) .catch((err) => { @@ -71572,7 +68725,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTransfersTransferReversalsIdResponseValidator(status, body) + ctx.body = postTransfersTransferReversalsId.validator(status, body) ctx.status = status return next() }, @@ -71617,7 +68770,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryCreditReversals( input, - getTreasuryCreditReversalsResponder, + getTreasuryCreditReversals.responder, ctx, ) .catch((err) => { @@ -71627,7 +68780,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryCreditReversalsResponseValidator(status, body) + ctx.body = getTreasuryCreditReversals.validator(status, body) ctx.status = status return next() }, @@ -71657,7 +68810,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryCreditReversals( input, - postTreasuryCreditReversalsResponder, + postTreasuryCreditReversals.responder, ctx, ) .catch((err) => { @@ -71667,7 +68820,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTreasuryCreditReversalsResponseValidator(status, body) + ctx.body = postTreasuryCreditReversals.validator(status, body) ctx.status = status return next() }, @@ -71716,7 +68869,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryCreditReversalsCreditReversal( input, - getTreasuryCreditReversalsCreditReversalResponder, + getTreasuryCreditReversalsCreditReversal.responder, ctx, ) .catch((err) => { @@ -71726,7 +68879,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryCreditReversalsCreditReversalResponseValidator( + ctx.body = getTreasuryCreditReversalsCreditReversal.validator( status, body, ) @@ -71775,7 +68928,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryDebitReversals( input, - getTreasuryDebitReversalsResponder, + getTreasuryDebitReversals.responder, ctx, ) .catch((err) => { @@ -71785,7 +68938,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryDebitReversalsResponseValidator(status, body) + ctx.body = getTreasuryDebitReversals.validator(status, body) ctx.status = status return next() }, @@ -71815,7 +68968,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryDebitReversals( input, - postTreasuryDebitReversalsResponder, + postTreasuryDebitReversals.responder, ctx, ) .catch((err) => { @@ -71825,7 +68978,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTreasuryDebitReversalsResponseValidator(status, body) + ctx.body = postTreasuryDebitReversals.validator(status, body) ctx.status = status return next() }, @@ -71874,7 +69027,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryDebitReversalsDebitReversal( input, - getTreasuryDebitReversalsDebitReversalResponder, + getTreasuryDebitReversalsDebitReversal.responder, ctx, ) .catch((err) => { @@ -71884,10 +69037,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryDebitReversalsDebitReversalResponseValidator( - status, - body, - ) + ctx.body = getTreasuryDebitReversalsDebitReversal.validator(status, body) ctx.status = status return next() }, @@ -71940,7 +69090,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryFinancialAccounts( input, - getTreasuryFinancialAccountsResponder, + getTreasuryFinancialAccounts.responder, ctx, ) .catch((err) => { @@ -71950,7 +69100,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryFinancialAccountsResponseValidator(status, body) + ctx.body = getTreasuryFinancialAccounts.validator(status, body) ctx.status = status return next() }, @@ -72024,7 +69174,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryFinancialAccounts( input, - postTreasuryFinancialAccountsResponder, + postTreasuryFinancialAccounts.responder, ctx, ) .catch((err) => { @@ -72034,7 +69184,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTreasuryFinancialAccountsResponseValidator(status, body) + ctx.body = postTreasuryFinancialAccounts.validator(status, body) ctx.status = status return next() }, @@ -72083,7 +69233,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryFinancialAccountsFinancialAccount( input, - getTreasuryFinancialAccountsFinancialAccountResponder, + getTreasuryFinancialAccountsFinancialAccount.responder, ctx, ) .catch((err) => { @@ -72093,7 +69243,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryFinancialAccountsFinancialAccountResponseValidator( + ctx.body = getTreasuryFinancialAccountsFinancialAccount.validator( status, body, ) @@ -72186,7 +69336,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryFinancialAccountsFinancialAccount( input, - postTreasuryFinancialAccountsFinancialAccountResponder, + postTreasuryFinancialAccountsFinancialAccount.responder, ctx, ) .catch((err) => { @@ -72196,7 +69346,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTreasuryFinancialAccountsFinancialAccountResponseValidator( + ctx.body = postTreasuryFinancialAccountsFinancialAccount.validator( status, body, ) @@ -72243,7 +69393,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryFinancialAccountsFinancialAccountClose( input, - postTreasuryFinancialAccountsFinancialAccountCloseResponder, + postTreasuryFinancialAccountsFinancialAccountClose.responder, ctx, ) .catch((err) => { @@ -72253,11 +69403,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTreasuryFinancialAccountsFinancialAccountCloseResponseValidator( - status, - body, - ) + ctx.body = postTreasuryFinancialAccountsFinancialAccountClose.validator( + status, + body, + ) ctx.status = status return next() }, @@ -72306,7 +69455,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryFinancialAccountsFinancialAccountFeatures( input, - getTreasuryFinancialAccountsFinancialAccountFeaturesResponder, + getTreasuryFinancialAccountsFinancialAccountFeatures.responder, ctx, ) .catch((err) => { @@ -72316,11 +69465,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - getTreasuryFinancialAccountsFinancialAccountFeaturesResponseValidator( - status, - body, - ) + ctx.body = getTreasuryFinancialAccountsFinancialAccountFeatures.validator( + status, + body, + ) ctx.status = status return next() }, @@ -72382,7 +69530,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryFinancialAccountsFinancialAccountFeatures( input, - postTreasuryFinancialAccountsFinancialAccountFeaturesResponder, + postTreasuryFinancialAccountsFinancialAccountFeatures.responder, ctx, ) .catch((err) => { @@ -72393,7 +69541,7 @@ export function createRouter(implementation: Implementation): KoaRouter { response instanceof KoaRuntimeResponse ? response.unpack() : response ctx.body = - postTreasuryFinancialAccountsFinancialAccountFeaturesResponseValidator( + postTreasuryFinancialAccountsFinancialAccountFeatures.validator( status, body, ) @@ -72442,7 +69590,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryInboundTransfers( input, - getTreasuryInboundTransfersResponder, + getTreasuryInboundTransfers.responder, ctx, ) .catch((err) => { @@ -72452,7 +69600,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryInboundTransfersResponseValidator(status, body) + ctx.body = getTreasuryInboundTransfers.validator(status, body) ctx.status = status return next() }, @@ -72487,7 +69635,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryInboundTransfers( input, - postTreasuryInboundTransfersResponder, + postTreasuryInboundTransfers.responder, ctx, ) .catch((err) => { @@ -72497,7 +69645,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTreasuryInboundTransfersResponseValidator(status, body) + ctx.body = postTreasuryInboundTransfers.validator(status, body) ctx.status = status return next() }, @@ -72544,7 +69692,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryInboundTransfersId( input, - getTreasuryInboundTransfersIdResponder, + getTreasuryInboundTransfersId.responder, ctx, ) .catch((err) => { @@ -72554,7 +69702,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryInboundTransfersIdResponseValidator(status, body) + ctx.body = getTreasuryInboundTransfersId.validator(status, body) ctx.status = status return next() }, @@ -72590,7 +69738,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryInboundTransfersInboundTransferCancel( input, - postTreasuryInboundTransfersInboundTransferCancelResponder, + postTreasuryInboundTransfersInboundTransferCancel.responder, ctx, ) .catch((err) => { @@ -72600,11 +69748,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTreasuryInboundTransfersInboundTransferCancelResponseValidator( - status, - body, - ) + ctx.body = postTreasuryInboundTransfersInboundTransferCancel.validator( + status, + body, + ) ctx.status = status return next() }, @@ -72662,7 +69809,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryOutboundPayments( input, - getTreasuryOutboundPaymentsResponder, + getTreasuryOutboundPayments.responder, ctx, ) .catch((err) => { @@ -72672,7 +69819,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryOutboundPaymentsResponseValidator(status, body) + ctx.body = getTreasuryOutboundPayments.validator(status, body) ctx.status = status return next() }, @@ -72759,7 +69906,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryOutboundPayments( input, - postTreasuryOutboundPaymentsResponder, + postTreasuryOutboundPayments.responder, ctx, ) .catch((err) => { @@ -72769,7 +69916,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTreasuryOutboundPaymentsResponseValidator(status, body) + ctx.body = postTreasuryOutboundPayments.validator(status, body) ctx.status = status return next() }, @@ -72816,7 +69963,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryOutboundPaymentsId( input, - getTreasuryOutboundPaymentsIdResponder, + getTreasuryOutboundPaymentsId.responder, ctx, ) .catch((err) => { @@ -72826,7 +69973,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryOutboundPaymentsIdResponseValidator(status, body) + ctx.body = getTreasuryOutboundPaymentsId.validator(status, body) ctx.status = status return next() }, @@ -72862,7 +70009,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryOutboundPaymentsIdCancel( input, - postTreasuryOutboundPaymentsIdCancelResponder, + postTreasuryOutboundPaymentsIdCancel.responder, ctx, ) .catch((err) => { @@ -72872,10 +70019,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTreasuryOutboundPaymentsIdCancelResponseValidator( - status, - body, - ) + ctx.body = postTreasuryOutboundPaymentsIdCancel.validator(status, body) ctx.status = status return next() }, @@ -72921,7 +70065,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryOutboundTransfers( input, - getTreasuryOutboundTransfersResponder, + getTreasuryOutboundTransfers.responder, ctx, ) .catch((err) => { @@ -72931,7 +70075,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryOutboundTransfersResponseValidator(status, body) + ctx.body = getTreasuryOutboundTransfers.validator(status, body) ctx.status = status return next() }, @@ -72984,7 +70128,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryOutboundTransfers( input, - postTreasuryOutboundTransfersResponder, + postTreasuryOutboundTransfers.responder, ctx, ) .catch((err) => { @@ -72994,7 +70138,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postTreasuryOutboundTransfersResponseValidator(status, body) + ctx.body = postTreasuryOutboundTransfers.validator(status, body) ctx.status = status return next() }, @@ -73043,7 +70187,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryOutboundTransfersOutboundTransfer( input, - getTreasuryOutboundTransfersOutboundTransferResponder, + getTreasuryOutboundTransfersOutboundTransfer.responder, ctx, ) .catch((err) => { @@ -73053,7 +70197,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryOutboundTransfersOutboundTransferResponseValidator( + ctx.body = getTreasuryOutboundTransfersOutboundTransfer.validator( status, body, ) @@ -73091,7 +70235,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postTreasuryOutboundTransfersOutboundTransferCancel( input, - postTreasuryOutboundTransfersOutboundTransferCancelResponder, + postTreasuryOutboundTransfersOutboundTransferCancel.responder, ctx, ) .catch((err) => { @@ -73101,11 +70245,10 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = - postTreasuryOutboundTransfersOutboundTransferCancelResponseValidator( - status, - body, - ) + ctx.body = postTreasuryOutboundTransfersOutboundTransferCancel.validator( + status, + body, + ) ctx.status = status return next() }, @@ -73160,7 +70303,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryReceivedCredits( input, - getTreasuryReceivedCreditsResponder, + getTreasuryReceivedCredits.responder, ctx, ) .catch((err) => { @@ -73170,7 +70313,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryReceivedCreditsResponseValidator(status, body) + ctx.body = getTreasuryReceivedCredits.validator(status, body) ctx.status = status return next() }, @@ -73217,7 +70360,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryReceivedCreditsId( input, - getTreasuryReceivedCreditsIdResponder, + getTreasuryReceivedCreditsId.responder, ctx, ) .catch((err) => { @@ -73227,7 +70370,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryReceivedCreditsIdResponseValidator(status, body) + ctx.body = getTreasuryReceivedCreditsId.validator(status, body) ctx.status = status return next() }, @@ -73271,7 +70414,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryReceivedDebits( input, - getTreasuryReceivedDebitsResponder, + getTreasuryReceivedDebits.responder, ctx, ) .catch((err) => { @@ -73281,7 +70424,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryReceivedDebitsResponseValidator(status, body) + ctx.body = getTreasuryReceivedDebits.validator(status, body) ctx.status = status return next() }, @@ -73328,7 +70471,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryReceivedDebitsId( input, - getTreasuryReceivedDebitsIdResponder, + getTreasuryReceivedDebitsId.responder, ctx, ) .catch((err) => { @@ -73338,7 +70481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryReceivedDebitsIdResponseValidator(status, body) + ctx.body = getTreasuryReceivedDebitsId.validator(status, body) ctx.status = status return next() }, @@ -73405,7 +70548,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryTransactionEntries( input, - getTreasuryTransactionEntriesResponder, + getTreasuryTransactionEntries.responder, ctx, ) .catch((err) => { @@ -73415,7 +70558,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryTransactionEntriesResponseValidator(status, body) + ctx.body = getTreasuryTransactionEntries.validator(status, body) ctx.status = status return next() }, @@ -73462,7 +70605,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryTransactionEntriesId( input, - getTreasuryTransactionEntriesIdResponder, + getTreasuryTransactionEntriesId.responder, ctx, ) .catch((err) => { @@ -73472,7 +70615,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryTransactionEntriesIdResponseValidator(status, body) + ctx.body = getTreasuryTransactionEntriesId.validator(status, body) ctx.status = status return next() }, @@ -73541,7 +70684,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTreasuryTransactions(input, getTreasuryTransactionsResponder, ctx) + .getTreasuryTransactions(input, getTreasuryTransactions.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73549,7 +70692,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryTransactionsResponseValidator(status, body) + ctx.body = getTreasuryTransactions.validator(status, body) ctx.status = status return next() }, @@ -73596,7 +70739,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getTreasuryTransactionsId( input, - getTreasuryTransactionsIdResponder, + getTreasuryTransactionsId.responder, ctx, ) .catch((err) => { @@ -73606,7 +70749,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTreasuryTransactionsIdResponseValidator(status, body) + ctx.body = getTreasuryTransactionsId.validator(status, body) ctx.status = status return next() }, @@ -73646,7 +70789,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getWebhookEndpoints(input, getWebhookEndpointsResponder, ctx) + .getWebhookEndpoints(input, getWebhookEndpoints.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -73654,7 +70797,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getWebhookEndpointsResponseValidator(status, body) + ctx.body = getWebhookEndpoints.validator(status, body) ctx.status = status return next() }, @@ -74043,7 +71186,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .postWebhookEndpoints(input, postWebhookEndpointsResponder, ctx) + .postWebhookEndpoints(input, postWebhookEndpoints.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -74051,7 +71194,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postWebhookEndpointsResponseValidator(status, body) + ctx.body = postWebhookEndpoints.validator(status, body) ctx.status = status return next() }, @@ -74087,7 +71230,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .deleteWebhookEndpointsWebhookEndpoint( input, - deleteWebhookEndpointsWebhookEndpointResponder, + deleteWebhookEndpointsWebhookEndpoint.responder, ctx, ) .catch((err) => { @@ -74097,10 +71240,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteWebhookEndpointsWebhookEndpointResponseValidator( - status, - body, - ) + ctx.body = deleteWebhookEndpointsWebhookEndpoint.validator(status, body) ctx.status = status return next() }, @@ -74147,7 +71287,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .getWebhookEndpointsWebhookEndpoint( input, - getWebhookEndpointsWebhookEndpointResponder, + getWebhookEndpointsWebhookEndpoint.responder, ctx, ) .catch((err) => { @@ -74157,10 +71297,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getWebhookEndpointsWebhookEndpointResponseValidator( - status, - body, - ) + ctx.body = getWebhookEndpointsWebhookEndpoint.validator(status, body) ctx.status = status return next() }, @@ -74449,7 +71586,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const response = await implementation .postWebhookEndpointsWebhookEndpoint( input, - postWebhookEndpointsWebhookEndpointResponder, + postWebhookEndpointsWebhookEndpoint.responder, ctx, ) .catch((err) => { @@ -74459,10 +71596,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postWebhookEndpointsWebhookEndpointResponseValidator( - status, - body, - ) + ctx.body = postWebhookEndpointsWebhookEndpoint.validator(status, body) ctx.status = status return next() }, diff --git a/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts index e4c275a4d..23815890a 100644 --- a/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts @@ -37,26 +37,19 @@ import { StatusCode, StatusCode4xx, StatusCode5xx, - r, + b, startServer, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const getTodoListsResponder = { - with200: r.with200, +const getTodoLists = b((r) => ({ + with200: r.with200(z.array(s_TodoList)), withStatus: r.withStatus, -} - -type GetTodoListsResponder = typeof getTodoListsResponder & KoaRuntimeResponder +})) -const getTodoListsResponseValidator = responseValidationFactory( - [["200", z.array(s_TodoList)]], - undefined, -) +type GetTodoListsResponder = (typeof getTodoLists)["responder"] & + KoaRuntimeResponder export type GetTodoLists = ( params: Params, @@ -64,24 +57,16 @@ export type GetTodoLists = ( ctx: RouterContext, ) => Promise | Response<200, t_TodoList[]>> -const getTodoListByIdResponder = { - with200: r.with200, - withStatusCode4xx: r.withStatusCode4xx, - withDefault: r.withDefault, +const getTodoListById = b((r) => ({ + with200: r.with200(s_TodoList), + withStatusCode4xx: r.withStatusCode4xx(s_Error), + withDefault: r.withDefault(z.undefined()), withStatus: r.withStatus, -} +})) -type GetTodoListByIdResponder = typeof getTodoListByIdResponder & +type GetTodoListByIdResponder = (typeof getTodoListById)["responder"] & KoaRuntimeResponder -const getTodoListByIdResponseValidator = responseValidationFactory( - [ - ["200", s_TodoList], - ["4XX", s_Error], - ], - z.undefined(), -) - export type GetTodoListById = ( params: Params, respond: GetTodoListByIdResponder, @@ -93,24 +78,16 @@ export type GetTodoListById = ( | Response > -const updateTodoListByIdResponder = { - with200: r.with200, - withStatusCode4xx: r.withStatusCode4xx, - withDefault: r.withDefault, +const updateTodoListById = b((r) => ({ + with200: r.with200(s_TodoList), + withStatusCode4xx: r.withStatusCode4xx(s_Error), + withDefault: r.withDefault(z.undefined()), withStatus: r.withStatus, -} +})) -type UpdateTodoListByIdResponder = typeof updateTodoListByIdResponder & +type UpdateTodoListByIdResponder = (typeof updateTodoListById)["responder"] & KoaRuntimeResponder -const updateTodoListByIdResponseValidator = responseValidationFactory( - [ - ["200", s_TodoList], - ["4XX", s_Error], - ], - z.undefined(), -) - export type UpdateTodoListById = ( params: Params< t_UpdateTodoListByIdParamSchema, @@ -127,24 +104,16 @@ export type UpdateTodoListById = ( | Response > -const deleteTodoListByIdResponder = { - with204: r.with204, - withStatusCode4xx: r.withStatusCode4xx, - withDefault: r.withDefault, +const deleteTodoListById = b((r) => ({ + with204: r.with204(z.undefined()), + withStatusCode4xx: r.withStatusCode4xx(s_Error), + withDefault: r.withDefault(z.undefined()), withStatus: r.withStatus, -} +})) -type DeleteTodoListByIdResponder = typeof deleteTodoListByIdResponder & +type DeleteTodoListByIdResponder = (typeof deleteTodoListById)["responder"] & KoaRuntimeResponder -const deleteTodoListByIdResponseValidator = responseValidationFactory( - [ - ["204", z.undefined()], - ["4XX", s_Error], - ], - z.undefined(), -) - export type DeleteTodoListById = ( params: Params, respond: DeleteTodoListByIdResponder, @@ -156,39 +125,30 @@ export type DeleteTodoListById = ( | Response > -const getTodoListItemsResponder = { +const getTodoListItems = b((r) => ({ with200: r.with200<{ completedAt?: string content: string createdAt: string id: string - }>, + }>( + z.object({ + id: z.string(), + content: z.string(), + createdAt: z.string().datetime({ offset: true }), + completedAt: z.string().datetime({ offset: true }).optional(), + }), + ), withStatusCode5xx: r.withStatusCode5xx<{ code: string message: string - }>, + }>(z.object({ message: z.string(), code: z.string() })), withStatus: r.withStatus, -} +})) -type GetTodoListItemsResponder = typeof getTodoListItemsResponder & +type GetTodoListItemsResponder = (typeof getTodoListItems)["responder"] & KoaRuntimeResponder -const getTodoListItemsResponseValidator = responseValidationFactory( - [ - [ - "200", - z.object({ - id: z.string(), - content: z.string(), - createdAt: z.string().datetime({ offset: true }), - completedAt: z.string().datetime({ offset: true }).optional(), - }), - ], - ["5XX", z.object({ message: z.string(), code: z.string() })], - ], - undefined, -) - export type GetTodoListItems = ( params: Params, respond: GetTodoListItemsResponder, @@ -213,19 +173,14 @@ export type GetTodoListItems = ( > > -const createTodoListItemResponder = { - with204: r.with204, +const createTodoListItem = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type CreateTodoListItemResponder = typeof createTodoListItemResponder & +type CreateTodoListItemResponder = (typeof createTodoListItem)["responder"] & KoaRuntimeResponder -const createTodoListItemResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) - export type CreateTodoListItem = ( params: Params< t_CreateTodoListItemParamSchema, @@ -237,38 +192,28 @@ export type CreateTodoListItem = ( ctx: RouterContext, ) => Promise | Response<204, void>> -const listAttachmentsResponder = { - with200: r.with200, +const listAttachments = b((r) => ({ + with200: r.with200(z.array(s_UnknownObject)), withStatus: r.withStatus, -} +})) -type ListAttachmentsResponder = typeof listAttachmentsResponder & +type ListAttachmentsResponder = (typeof listAttachments)["responder"] & KoaRuntimeResponder -const listAttachmentsResponseValidator = responseValidationFactory( - [["200", z.array(s_UnknownObject)]], - undefined, -) - export type ListAttachments = ( params: Params, respond: ListAttachmentsResponder, ctx: RouterContext, ) => Promise | Response<200, t_UnknownObject[]>> -const uploadAttachmentResponder = { - with202: r.with202, +const uploadAttachment = b((r) => ({ + with202: r.with202(z.undefined()), withStatus: r.withStatus, -} +})) -type UploadAttachmentResponder = typeof uploadAttachmentResponder & +type UploadAttachmentResponder = (typeof uploadAttachment)["responder"] & KoaRuntimeResponder -const uploadAttachmentResponseValidator = responseValidationFactory( - [["202", z.undefined()]], - undefined, -) - export type UploadAttachment = ( params: Params, respond: UploadAttachmentResponder, @@ -318,7 +263,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTodoLists(input, getTodoListsResponder, ctx) + .getTodoLists(input, getTodoLists.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -326,7 +271,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTodoListsResponseValidator(status, body) + ctx.body = getTodoLists.validator(status, body) ctx.status = status return next() }) @@ -346,7 +291,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTodoListById(input, getTodoListByIdResponder, ctx) + .getTodoListById(input, getTodoListById.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -354,7 +299,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTodoListByIdResponseValidator(status, body) + ctx.body = getTodoListById.validator(status, body) ctx.status = status return next() }) @@ -380,7 +325,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .updateTodoListById(input, updateTodoListByIdResponder, ctx) + .updateTodoListById(input, updateTodoListById.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -388,7 +333,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = updateTodoListByIdResponseValidator(status, body) + ctx.body = updateTodoListById.validator(status, body) ctx.status = status return next() }) @@ -408,7 +353,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .deleteTodoListById(input, deleteTodoListByIdResponder, ctx) + .deleteTodoListById(input, deleteTodoListById.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -416,7 +361,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = deleteTodoListByIdResponseValidator(status, body) + ctx.body = deleteTodoListById.validator(status, body) ctx.status = status return next() }) @@ -436,7 +381,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .getTodoListItems(input, getTodoListItemsResponder, ctx) + .getTodoListItems(input, getTodoListItems.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -444,7 +389,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getTodoListItemsResponseValidator(status, body) + ctx.body = getTodoListItems.validator(status, body) ctx.status = status return next() }) @@ -477,7 +422,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .createTodoListItem(input, createTodoListItemResponder, ctx) + .createTodoListItem(input, createTodoListItem.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -485,7 +430,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = createTodoListItemResponseValidator(status, body) + ctx.body = createTodoListItem.validator(status, body) ctx.status = status return next() }, @@ -500,7 +445,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .listAttachments(input, listAttachmentsResponder, ctx) + .listAttachments(input, listAttachments.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -508,7 +453,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = listAttachmentsResponseValidator(status, body) + ctx.body = listAttachments.validator(status, body) ctx.status = status return next() }) @@ -528,7 +473,7 @@ export function createRouter(implementation: Implementation): KoaRouter { } const response = await implementation - .uploadAttachment(input, uploadAttachmentResponder, ctx) + .uploadAttachment(input, uploadAttachment.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -536,7 +481,7 @@ export function createRouter(implementation: Implementation): KoaRouter { const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = uploadAttachmentResponseValidator(status, body) + ctx.body = uploadAttachment.validator(status, body) ctx.status = status return next() }) From ca0bab8db0add0caa8c27035c85a8940ee12eff9 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sat, 3 May 2025 13:29:18 +0100 Subject: [PATCH 6/8] chore: e2e --- e2e/src/generated/routes/request-headers.ts | 47 +++++++---------- e2e/src/generated/routes/validation.ts | 56 ++++++++------------- 2 files changed, 39 insertions(+), 64 deletions(-) diff --git a/e2e/src/generated/routes/request-headers.ts b/e2e/src/generated/routes/request-headers.ts index 15668c3e8..5ef1d7e48 100644 --- a/e2e/src/generated/routes/request-headers.ts +++ b/e2e/src/generated/routes/request-headers.ts @@ -21,26 +21,20 @@ import { KoaRuntimeResponse, Params, Response, - r, + b, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const getHeadersUndeclaredResponder = { - with200: r.with200, +const getHeadersUndeclared = b((r) => ({ + with200: r.with200( + s_getHeadersUndeclaredJson200Response, + ), withStatus: r.withStatus, -} - -type GetHeadersUndeclaredResponder = typeof getHeadersUndeclaredResponder & - KoaRuntimeResponder +})) -const getHeadersUndeclaredResponseValidator = responseValidationFactory( - [["200", s_getHeadersUndeclaredJson200Response]], - undefined, -) +type GetHeadersUndeclaredResponder = + (typeof getHeadersUndeclared)["responder"] & KoaRuntimeResponder export type GetHeadersUndeclared = ( params: Params, @@ -51,19 +45,16 @@ export type GetHeadersUndeclared = ( | Response<200, t_getHeadersUndeclaredJson200Response> > -const getHeadersRequestResponder = { - with200: r.with200, +const getHeadersRequest = b((r) => ({ + with200: r.with200( + s_getHeadersRequestJson200Response, + ), withStatus: r.withStatus, -} +})) -type GetHeadersRequestResponder = typeof getHeadersRequestResponder & +type GetHeadersRequestResponder = (typeof getHeadersRequest)["responder"] & KoaRuntimeResponder -const getHeadersRequestResponseValidator = responseValidationFactory( - [["200", s_getHeadersRequestJson200Response]], - undefined, -) - export type GetHeadersRequest = ( params: Params, respond: GetHeadersRequestResponder, @@ -95,7 +86,7 @@ export function createRequestHeadersRouter( } const response = await implementation - .getHeadersUndeclared(input, getHeadersUndeclaredResponder, ctx) + .getHeadersUndeclared(input, getHeadersUndeclared.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -103,7 +94,7 @@ export function createRequestHeadersRouter( const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getHeadersUndeclaredResponseValidator(status, body) + ctx.body = getHeadersUndeclared.validator(status, body) ctx.status = status return next() }, @@ -128,7 +119,7 @@ export function createRequestHeadersRouter( } const response = await implementation - .getHeadersRequest(input, getHeadersRequestResponder, ctx) + .getHeadersRequest(input, getHeadersRequest.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -136,7 +127,7 @@ export function createRequestHeadersRouter( const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getHeadersRequestResponseValidator(status, body) + ctx.body = getHeadersRequest.validator(status, body) ctx.status = status return next() }) diff --git a/e2e/src/generated/routes/validation.ts b/e2e/src/generated/routes/validation.ts index a6bdcfadf..6a99a2428 100644 --- a/e2e/src/generated/routes/validation.ts +++ b/e2e/src/generated/routes/validation.ts @@ -19,24 +19,18 @@ import { KoaRuntimeResponse, Params, Response, - r, + b, } from "@nahkies/typescript-koa-runtime/server" -import { - parseRequestInput, - responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod" +import { parseRequestInput } from "@nahkies/typescript-koa-runtime/zod" import { z } from "zod" -const getValidationNumbersRandomNumberResponder = { - with200: r.with200, +const getValidationNumbersRandomNumber = b((r) => ({ + with200: r.with200(s_RandomNumber), withStatus: r.withStatus, -} +})) type GetValidationNumbersRandomNumberResponder = - typeof getValidationNumbersRandomNumberResponder & KoaRuntimeResponder - -const getValidationNumbersRandomNumberResponseValidator = - responseValidationFactory([["200", s_RandomNumber]], undefined) + (typeof getValidationNumbersRandomNumber)["responder"] & KoaRuntimeResponder export type GetValidationNumbersRandomNumber = ( params: Params< @@ -49,38 +43,28 @@ export type GetValidationNumbersRandomNumber = ( ctx: RouterContext, ) => Promise | Response<200, t_RandomNumber>> -const postValidationEnumsResponder = { - with200: r.with200, +const postValidationEnums = b((r) => ({ + with200: r.with200(s_Enumerations), withStatus: r.withStatus, -} +})) -type PostValidationEnumsResponder = typeof postValidationEnumsResponder & +type PostValidationEnumsResponder = (typeof postValidationEnums)["responder"] & KoaRuntimeResponder -const postValidationEnumsResponseValidator = responseValidationFactory( - [["200", s_Enumerations]], - undefined, -) - export type PostValidationEnums = ( params: Params, respond: PostValidationEnumsResponder, ctx: RouterContext, ) => Promise | Response<200, t_Enumerations>> -const getResponsesEmptyResponder = { - with204: r.with204, +const getResponsesEmpty = b((r) => ({ + with204: r.with204(z.undefined()), withStatus: r.withStatus, -} +})) -type GetResponsesEmptyResponder = typeof getResponsesEmptyResponder & +type GetResponsesEmptyResponder = (typeof getResponsesEmpty)["responder"] & KoaRuntimeResponder -const getResponsesEmptyResponseValidator = responseValidationFactory( - [["204", z.undefined()]], - undefined, -) - export type GetResponsesEmpty = ( params: Params, respond: GetResponsesEmptyResponder, @@ -127,7 +111,7 @@ export function createValidationRouter( const response = await implementation .getValidationNumbersRandomNumber( input, - getValidationNumbersRandomNumberResponder, + getValidationNumbersRandomNumber.responder, ctx, ) .catch((err) => { @@ -137,7 +121,7 @@ export function createValidationRouter( const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getValidationNumbersRandomNumberResponseValidator(status, body) + ctx.body = getValidationNumbersRandomNumber.validator(status, body) ctx.status = status return next() }, @@ -158,7 +142,7 @@ export function createValidationRouter( } const response = await implementation - .postValidationEnums(input, postValidationEnumsResponder, ctx) + .postValidationEnums(input, postValidationEnums.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -166,7 +150,7 @@ export function createValidationRouter( const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = postValidationEnumsResponseValidator(status, body) + ctx.body = postValidationEnums.validator(status, body) ctx.status = status return next() }) @@ -180,7 +164,7 @@ export function createValidationRouter( } const response = await implementation - .getResponsesEmpty(input, getResponsesEmptyResponder, ctx) + .getResponsesEmpty(input, getResponsesEmpty.responder, ctx) .catch((err) => { throw KoaRuntimeError.HandlerError(err) }) @@ -188,7 +172,7 @@ export function createValidationRouter( const { status, body } = response instanceof KoaRuntimeResponse ? response.unpack() : response - ctx.body = getResponsesEmptyResponseValidator(status, body) + ctx.body = getResponsesEmpty.validator(status, body) ctx.status = status return next() }) From e4e2abfd88262f4d48b4d17c808e44158530df73 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sat, 3 May 2025 13:33:28 +0100 Subject: [PATCH 7/8] feat: move intersection --- .../server/typescript-koa/typescript-koa-router-builder.ts | 3 +-- packages/typescript-koa-runtime/src/server.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts b/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts index ce1c4a83b..655e93ac4 100644 --- a/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts +++ b/packages/openapi-code-generator/src/typescript/server/typescript-koa/typescript-koa-router-builder.ts @@ -99,12 +99,11 @@ export class KoaRouterBuilder extends AbstractRouterBuilder { operationId: builder.operationId, statements: [ `const ${symbols.implPropName} = ${responder.implementation}`, - `type ${titleCase(symbols.responderName)} = typeof ${symbols.implPropName}['responder'] & KoaRuntimeResponder`, buildExport({ name: symbols.implTypeName, value: `( params: ${params.type}, - respond: ${titleCase(symbols.responderName)}, + respond: typeof ${symbols.implPropName}['responder'], ctx: RouterContext ) => Promise | ${[ ...responseSchemas.specific.map( diff --git a/packages/typescript-koa-runtime/src/server.ts b/packages/typescript-koa-runtime/src/server.ts index 3c04aeaf5..f1d56c492 100644 --- a/packages/typescript-koa-runtime/src/server.ts +++ b/packages/typescript-koa-runtime/src/server.ts @@ -87,7 +87,7 @@ function isValidStatusCode(status: unknown): status is StatusCode { return !(status < 100 || status > 599) } -export const b = (fn: (r: ResponderBuilder) => T) => { +export const b = (fn: (r: ResponderBuilder) => T & KoaRuntimeResponder) => { // biome-ignore lint/suspicious/noExplicitAny: const responses: any[] = [] // biome-ignore lint/suspicious/noExplicitAny: From 69a51f9255f1a7092636ecdc8dafa79edeee9809 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sat, 3 May 2025 13:33:40 +0100 Subject: [PATCH 8/8] chore: regenerate --- e2e/src/generated/routes/request-headers.ts | 11 +- e2e/src/generated/routes/validation.ts | 16 +- .../api.github.com.yaml/generated.ts | 5393 ++++------------- .../generated.ts | 110 +- .../azure-resource-manager.tsp/generated.ts | 46 +- .../src/generated/okta.idp.yaml/generated.ts | 166 +- .../generated/okta.oauth.yaml/generated.ts | 204 +- .../petstore-expanded.yaml/generated.ts | 18 +- .../src/generated/stripe.yaml/generated.ts | 2948 ++------- .../generated/todo-lists.yaml/generated.ts | 41 +- 10 files changed, 1711 insertions(+), 7242 deletions(-) diff --git a/e2e/src/generated/routes/request-headers.ts b/e2e/src/generated/routes/request-headers.ts index 5ef1d7e48..036711747 100644 --- a/e2e/src/generated/routes/request-headers.ts +++ b/e2e/src/generated/routes/request-headers.ts @@ -17,7 +17,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -33,12 +32,9 @@ const getHeadersUndeclared = b((r) => ({ withStatus: r.withStatus, })) -type GetHeadersUndeclaredResponder = - (typeof getHeadersUndeclared)["responder"] & KoaRuntimeResponder - export type GetHeadersUndeclared = ( params: Params, - respond: GetHeadersUndeclaredResponder, + respond: (typeof getHeadersUndeclared)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -52,12 +48,9 @@ const getHeadersRequest = b((r) => ({ withStatus: r.withStatus, })) -type GetHeadersRequestResponder = (typeof getHeadersRequest)["responder"] & - KoaRuntimeResponder - export type GetHeadersRequest = ( params: Params, - respond: GetHeadersRequestResponder, + respond: (typeof getHeadersRequest)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse diff --git a/e2e/src/generated/routes/validation.ts b/e2e/src/generated/routes/validation.ts index 6a99a2428..0768cc091 100644 --- a/e2e/src/generated/routes/validation.ts +++ b/e2e/src/generated/routes/validation.ts @@ -15,7 +15,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -29,9 +28,6 @@ const getValidationNumbersRandomNumber = b((r) => ({ withStatus: r.withStatus, })) -type GetValidationNumbersRandomNumberResponder = - (typeof getValidationNumbersRandomNumber)["responder"] & KoaRuntimeResponder - export type GetValidationNumbersRandomNumber = ( params: Params< void, @@ -39,7 +35,7 @@ export type GetValidationNumbersRandomNumber = ( void, void >, - respond: GetValidationNumbersRandomNumberResponder, + respond: (typeof getValidationNumbersRandomNumber)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_RandomNumber>> @@ -48,12 +44,9 @@ const postValidationEnums = b((r) => ({ withStatus: r.withStatus, })) -type PostValidationEnumsResponder = (typeof postValidationEnums)["responder"] & - KoaRuntimeResponder - export type PostValidationEnums = ( params: Params, - respond: PostValidationEnumsResponder, + respond: (typeof postValidationEnums)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_Enumerations>> @@ -62,12 +55,9 @@ const getResponsesEmpty = b((r) => ({ withStatus: r.withStatus, })) -type GetResponsesEmptyResponder = (typeof getResponsesEmpty)["responder"] & - KoaRuntimeResponder - export type GetResponsesEmpty = ( params: Params, - respond: GetResponsesEmptyResponder, + respond: (typeof getResponsesEmpty)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> diff --git a/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts index bc17a2dbf..1b486e3e5 100644 --- a/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/api.github.com.yaml/generated.ts @@ -2128,7 +2128,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -2144,11 +2143,9 @@ const metaRoot = b((r) => ({ withStatus: r.withStatus, })) -type MetaRootResponder = (typeof metaRoot)["responder"] & KoaRuntimeResponder - export type MetaRoot = ( params: Params, - respond: MetaRootResponder, + respond: (typeof metaRoot)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_root>> @@ -2159,10 +2156,6 @@ const securityAdvisoriesListGlobalAdvisories = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesListGlobalAdvisoriesResponder = - (typeof securityAdvisoriesListGlobalAdvisories)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesListGlobalAdvisories = ( params: Params< void, @@ -2170,7 +2163,7 @@ export type SecurityAdvisoriesListGlobalAdvisories = ( void, void >, - respond: SecurityAdvisoriesListGlobalAdvisoriesResponder, + respond: (typeof securityAdvisoriesListGlobalAdvisories)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2185,10 +2178,6 @@ const securityAdvisoriesGetGlobalAdvisory = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesGetGlobalAdvisoryResponder = - (typeof securityAdvisoriesGetGlobalAdvisory)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesGetGlobalAdvisory = ( params: Params< t_SecurityAdvisoriesGetGlobalAdvisoryParamSchema, @@ -2196,7 +2185,7 @@ export type SecurityAdvisoriesGetGlobalAdvisory = ( void, void >, - respond: SecurityAdvisoriesGetGlobalAdvisoryResponder, + respond: (typeof securityAdvisoriesGetGlobalAdvisory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2209,12 +2198,9 @@ const appsGetAuthenticated = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetAuthenticatedResponder = - (typeof appsGetAuthenticated)["responder"] & KoaRuntimeResponder - export type AppsGetAuthenticated = ( params: Params, - respond: AppsGetAuthenticatedResponder, + respond: (typeof appsGetAuthenticated)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_integration>> @@ -2246,12 +2232,9 @@ const appsCreateFromManifest = b((r) => ({ withStatus: r.withStatus, })) -type AppsCreateFromManifestResponder = - (typeof appsCreateFromManifest)["responder"] & KoaRuntimeResponder - export type AppsCreateFromManifest = ( params: Params, - respond: AppsCreateFromManifestResponder, + respond: (typeof appsCreateFromManifest)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2274,12 +2257,9 @@ const appsGetWebhookConfigForApp = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetWebhookConfigForAppResponder = - (typeof appsGetWebhookConfigForApp)["responder"] & KoaRuntimeResponder - export type AppsGetWebhookConfigForApp = ( params: Params, - respond: AppsGetWebhookConfigForAppResponder, + respond: (typeof appsGetWebhookConfigForApp)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> @@ -2288,12 +2268,9 @@ const appsUpdateWebhookConfigForApp = b((r) => ({ withStatus: r.withStatus, })) -type AppsUpdateWebhookConfigForAppResponder = - (typeof appsUpdateWebhookConfigForApp)["responder"] & KoaRuntimeResponder - export type AppsUpdateWebhookConfigForApp = ( params: Params, - respond: AppsUpdateWebhookConfigForAppResponder, + respond: (typeof appsUpdateWebhookConfigForApp)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> @@ -2304,12 +2281,9 @@ const appsListWebhookDeliveries = b((r) => ({ withStatus: r.withStatus, })) -type AppsListWebhookDeliveriesResponder = - (typeof appsListWebhookDeliveries)["responder"] & KoaRuntimeResponder - export type AppsListWebhookDeliveries = ( params: Params, - respond: AppsListWebhookDeliveriesResponder, + respond: (typeof appsListWebhookDeliveries)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2325,12 +2299,9 @@ const appsGetWebhookDelivery = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetWebhookDeliveryResponder = - (typeof appsGetWebhookDelivery)["responder"] & KoaRuntimeResponder - export type AppsGetWebhookDelivery = ( params: Params, - respond: AppsGetWebhookDeliveryResponder, + respond: (typeof appsGetWebhookDelivery)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2348,12 +2319,9 @@ const appsRedeliverWebhookDelivery = b((r) => ({ withStatus: r.withStatus, })) -type AppsRedeliverWebhookDeliveryResponder = - (typeof appsRedeliverWebhookDelivery)["responder"] & KoaRuntimeResponder - export type AppsRedeliverWebhookDelivery = ( params: Params, - respond: AppsRedeliverWebhookDeliveryResponder, + respond: (typeof appsRedeliverWebhookDelivery)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2376,10 +2344,6 @@ const appsListInstallationRequestsForAuthenticatedApp = b((r) => ({ withStatus: r.withStatus, })) -type AppsListInstallationRequestsForAuthenticatedAppResponder = - (typeof appsListInstallationRequestsForAuthenticatedApp)["responder"] & - KoaRuntimeResponder - export type AppsListInstallationRequestsForAuthenticatedApp = ( params: Params< void, @@ -2387,7 +2351,7 @@ export type AppsListInstallationRequestsForAuthenticatedApp = ( void, void >, - respond: AppsListInstallationRequestsForAuthenticatedAppResponder, + respond: (typeof appsListInstallationRequestsForAuthenticatedApp)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2401,12 +2365,9 @@ const appsListInstallations = b((r) => ({ withStatus: r.withStatus, })) -type AppsListInstallationsResponder = - (typeof appsListInstallations)["responder"] & KoaRuntimeResponder - export type AppsListInstallations = ( params: Params, - respond: AppsListInstallationsResponder, + respond: (typeof appsListInstallations)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_installation[]>> @@ -2416,12 +2377,9 @@ const appsGetInstallation = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetInstallationResponder = (typeof appsGetInstallation)["responder"] & - KoaRuntimeResponder - export type AppsGetInstallation = ( params: Params, - respond: AppsGetInstallationResponder, + respond: (typeof appsGetInstallation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2435,12 +2393,9 @@ const appsDeleteInstallation = b((r) => ({ withStatus: r.withStatus, })) -type AppsDeleteInstallationResponder = - (typeof appsDeleteInstallation)["responder"] & KoaRuntimeResponder - export type AppsDeleteInstallation = ( params: Params, - respond: AppsDeleteInstallationResponder, + respond: (typeof appsDeleteInstallation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2457,9 +2412,6 @@ const appsCreateInstallationAccessToken = b((r) => ({ withStatus: r.withStatus, })) -type AppsCreateInstallationAccessTokenResponder = - (typeof appsCreateInstallationAccessToken)["responder"] & KoaRuntimeResponder - export type AppsCreateInstallationAccessToken = ( params: Params< t_AppsCreateInstallationAccessTokenParamSchema, @@ -2467,7 +2419,7 @@ export type AppsCreateInstallationAccessToken = ( t_AppsCreateInstallationAccessTokenBodySchema | undefined, void >, - respond: AppsCreateInstallationAccessTokenResponder, + respond: (typeof appsCreateInstallationAccessToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2484,12 +2436,9 @@ const appsSuspendInstallation = b((r) => ({ withStatus: r.withStatus, })) -type AppsSuspendInstallationResponder = - (typeof appsSuspendInstallation)["responder"] & KoaRuntimeResponder - export type AppsSuspendInstallation = ( params: Params, - respond: AppsSuspendInstallationResponder, + respond: (typeof appsSuspendInstallation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2503,12 +2452,9 @@ const appsUnsuspendInstallation = b((r) => ({ withStatus: r.withStatus, })) -type AppsUnsuspendInstallationResponder = - (typeof appsUnsuspendInstallation)["responder"] & KoaRuntimeResponder - export type AppsUnsuspendInstallation = ( params: Params, - respond: AppsUnsuspendInstallationResponder, + respond: (typeof appsUnsuspendInstallation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2522,9 +2468,6 @@ const appsDeleteAuthorization = b((r) => ({ withStatus: r.withStatus, })) -type AppsDeleteAuthorizationResponder = - (typeof appsDeleteAuthorization)["responder"] & KoaRuntimeResponder - export type AppsDeleteAuthorization = ( params: Params< t_AppsDeleteAuthorizationParamSchema, @@ -2532,7 +2475,7 @@ export type AppsDeleteAuthorization = ( t_AppsDeleteAuthorizationBodySchema, void >, - respond: AppsDeleteAuthorizationResponder, + respond: (typeof appsDeleteAuthorization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2547,9 +2490,6 @@ const appsCheckToken = b((r) => ({ withStatus: r.withStatus, })) -type AppsCheckTokenResponder = (typeof appsCheckToken)["responder"] & - KoaRuntimeResponder - export type AppsCheckToken = ( params: Params< t_AppsCheckTokenParamSchema, @@ -2557,7 +2497,7 @@ export type AppsCheckToken = ( t_AppsCheckTokenBodySchema, void >, - respond: AppsCheckTokenResponder, + respond: (typeof appsCheckToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2572,9 +2512,6 @@ const appsResetToken = b((r) => ({ withStatus: r.withStatus, })) -type AppsResetTokenResponder = (typeof appsResetToken)["responder"] & - KoaRuntimeResponder - export type AppsResetToken = ( params: Params< t_AppsResetTokenParamSchema, @@ -2582,7 +2519,7 @@ export type AppsResetToken = ( t_AppsResetTokenBodySchema, void >, - respond: AppsResetTokenResponder, + respond: (typeof appsResetToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2596,9 +2533,6 @@ const appsDeleteToken = b((r) => ({ withStatus: r.withStatus, })) -type AppsDeleteTokenResponder = (typeof appsDeleteToken)["responder"] & - KoaRuntimeResponder - export type AppsDeleteToken = ( params: Params< t_AppsDeleteTokenParamSchema, @@ -2606,7 +2540,7 @@ export type AppsDeleteToken = ( t_AppsDeleteTokenBodySchema, void >, - respond: AppsDeleteTokenResponder, + respond: (typeof appsDeleteToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2623,9 +2557,6 @@ const appsScopeToken = b((r) => ({ withStatus: r.withStatus, })) -type AppsScopeTokenResponder = (typeof appsScopeToken)["responder"] & - KoaRuntimeResponder - export type AppsScopeToken = ( params: Params< t_AppsScopeTokenParamSchema, @@ -2633,7 +2564,7 @@ export type AppsScopeToken = ( t_AppsScopeTokenBodySchema, void >, - respond: AppsScopeTokenResponder, + respond: (typeof appsScopeToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2651,12 +2582,9 @@ const appsGetBySlug = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetBySlugResponder = (typeof appsGetBySlug)["responder"] & - KoaRuntimeResponder - export type AppsGetBySlug = ( params: Params, - respond: AppsGetBySlugResponder, + respond: (typeof appsGetBySlug)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2671,12 +2599,9 @@ const classroomGetAnAssignment = b((r) => ({ withStatus: r.withStatus, })) -type ClassroomGetAnAssignmentResponder = - (typeof classroomGetAnAssignment)["responder"] & KoaRuntimeResponder - export type ClassroomGetAnAssignment = ( params: Params, - respond: ClassroomGetAnAssignmentResponder, + respond: (typeof classroomGetAnAssignment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2691,10 +2616,6 @@ const classroomListAcceptedAssignmentsForAnAssignment = b((r) => ({ withStatus: r.withStatus, })) -type ClassroomListAcceptedAssignmentsForAnAssignmentResponder = - (typeof classroomListAcceptedAssignmentsForAnAssignment)["responder"] & - KoaRuntimeResponder - export type ClassroomListAcceptedAssignmentsForAnAssignment = ( params: Params< t_ClassroomListAcceptedAssignmentsForAnAssignmentParamSchema, @@ -2702,7 +2623,7 @@ export type ClassroomListAcceptedAssignmentsForAnAssignment = ( void, void >, - respond: ClassroomListAcceptedAssignmentsForAnAssignmentResponder, + respond: (typeof classroomListAcceptedAssignmentsForAnAssignment)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_classroom_accepted_assignment[]> @@ -2716,12 +2637,9 @@ const classroomGetAssignmentGrades = b((r) => ({ withStatus: r.withStatus, })) -type ClassroomGetAssignmentGradesResponder = - (typeof classroomGetAssignmentGrades)["responder"] & KoaRuntimeResponder - export type ClassroomGetAssignmentGrades = ( params: Params, - respond: ClassroomGetAssignmentGradesResponder, + respond: (typeof classroomGetAssignmentGrades)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2734,12 +2652,9 @@ const classroomListClassrooms = b((r) => ({ withStatus: r.withStatus, })) -type ClassroomListClassroomsResponder = - (typeof classroomListClassrooms)["responder"] & KoaRuntimeResponder - export type ClassroomListClassrooms = ( params: Params, - respond: ClassroomListClassroomsResponder, + respond: (typeof classroomListClassrooms)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_simple_classroom[]>> @@ -2749,12 +2664,9 @@ const classroomGetAClassroom = b((r) => ({ withStatus: r.withStatus, })) -type ClassroomGetAClassroomResponder = - (typeof classroomGetAClassroom)["responder"] & KoaRuntimeResponder - export type ClassroomGetAClassroom = ( params: Params, - respond: ClassroomGetAClassroomResponder, + respond: (typeof classroomGetAClassroom)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2769,10 +2681,6 @@ const classroomListAssignmentsForAClassroom = b((r) => ({ withStatus: r.withStatus, })) -type ClassroomListAssignmentsForAClassroomResponder = - (typeof classroomListAssignmentsForAClassroom)["responder"] & - KoaRuntimeResponder - export type ClassroomListAssignmentsForAClassroom = ( params: Params< t_ClassroomListAssignmentsForAClassroomParamSchema, @@ -2780,7 +2688,7 @@ export type ClassroomListAssignmentsForAClassroom = ( void, void >, - respond: ClassroomListAssignmentsForAClassroomResponder, + respond: (typeof classroomListAssignmentsForAClassroom)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_simple_classroom_assignment[]> @@ -2792,12 +2700,9 @@ const codesOfConductGetAllCodesOfConduct = b((r) => ({ withStatus: r.withStatus, })) -type CodesOfConductGetAllCodesOfConductResponder = - (typeof codesOfConductGetAllCodesOfConduct)["responder"] & KoaRuntimeResponder - export type CodesOfConductGetAllCodesOfConduct = ( params: Params, - respond: CodesOfConductGetAllCodesOfConductResponder, + respond: (typeof codesOfConductGetAllCodesOfConduct)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2812,12 +2717,9 @@ const codesOfConductGetConductCode = b((r) => ({ withStatus: r.withStatus, })) -type CodesOfConductGetConductCodeResponder = - (typeof codesOfConductGetConductCode)["responder"] & KoaRuntimeResponder - export type CodesOfConductGetConductCode = ( params: Params, - respond: CodesOfConductGetConductCodeResponder, + respond: (typeof codesOfConductGetConductCode)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2834,11 +2736,9 @@ const emojisGet = b((r) => ({ withStatus: r.withStatus, })) -type EmojisGetResponder = (typeof emojisGet)["responder"] & KoaRuntimeResponder - export type EmojisGet = ( params: Params, - respond: EmojisGetResponder, + respond: (typeof emojisGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2860,10 +2760,6 @@ const codeSecurityGetConfigurationsForEnterprise = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetConfigurationsForEnterpriseResponder = - (typeof codeSecurityGetConfigurationsForEnterprise)["responder"] & - KoaRuntimeResponder - export type CodeSecurityGetConfigurationsForEnterprise = ( params: Params< t_CodeSecurityGetConfigurationsForEnterpriseParamSchema, @@ -2871,7 +2767,7 @@ export type CodeSecurityGetConfigurationsForEnterprise = ( void, void >, - respond: CodeSecurityGetConfigurationsForEnterpriseResponder, + respond: (typeof codeSecurityGetConfigurationsForEnterprise)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2890,10 +2786,6 @@ const codeSecurityCreateConfigurationForEnterprise = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityCreateConfigurationForEnterpriseResponder = - (typeof codeSecurityCreateConfigurationForEnterprise)["responder"] & - KoaRuntimeResponder - export type CodeSecurityCreateConfigurationForEnterprise = ( params: Params< t_CodeSecurityCreateConfigurationForEnterpriseParamSchema, @@ -2901,7 +2793,7 @@ export type CodeSecurityCreateConfigurationForEnterprise = ( t_CodeSecurityCreateConfigurationForEnterpriseBodySchema, void >, - respond: CodeSecurityCreateConfigurationForEnterpriseResponder, + respond: (typeof codeSecurityCreateConfigurationForEnterprise)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2918,10 +2810,6 @@ const codeSecurityGetDefaultConfigurationsForEnterprise = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetDefaultConfigurationsForEnterpriseResponder = - (typeof codeSecurityGetDefaultConfigurationsForEnterprise)["responder"] & - KoaRuntimeResponder - export type CodeSecurityGetDefaultConfigurationsForEnterprise = ( params: Params< t_CodeSecurityGetDefaultConfigurationsForEnterpriseParamSchema, @@ -2929,7 +2817,7 @@ export type CodeSecurityGetDefaultConfigurationsForEnterprise = ( void, void >, - respond: CodeSecurityGetDefaultConfigurationsForEnterpriseResponder, + respond: (typeof codeSecurityGetDefaultConfigurationsForEnterprise)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2946,10 +2834,6 @@ const codeSecurityGetSingleConfigurationForEnterprise = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetSingleConfigurationForEnterpriseResponder = - (typeof codeSecurityGetSingleConfigurationForEnterprise)["responder"] & - KoaRuntimeResponder - export type CodeSecurityGetSingleConfigurationForEnterprise = ( params: Params< t_CodeSecurityGetSingleConfigurationForEnterpriseParamSchema, @@ -2957,7 +2841,7 @@ export type CodeSecurityGetSingleConfigurationForEnterprise = ( void, void >, - respond: CodeSecurityGetSingleConfigurationForEnterpriseResponder, + respond: (typeof codeSecurityGetSingleConfigurationForEnterprise)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2978,10 +2862,6 @@ const codeSecurityUpdateEnterpriseConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityUpdateEnterpriseConfigurationResponder = - (typeof codeSecurityUpdateEnterpriseConfiguration)["responder"] & - KoaRuntimeResponder - export type CodeSecurityUpdateEnterpriseConfiguration = ( params: Params< t_CodeSecurityUpdateEnterpriseConfigurationParamSchema, @@ -2989,7 +2869,7 @@ export type CodeSecurityUpdateEnterpriseConfiguration = ( t_CodeSecurityUpdateEnterpriseConfigurationBodySchema, void >, - respond: CodeSecurityUpdateEnterpriseConfigurationResponder, + respond: (typeof codeSecurityUpdateEnterpriseConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3009,10 +2889,6 @@ const codeSecurityDeleteConfigurationForEnterprise = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityDeleteConfigurationForEnterpriseResponder = - (typeof codeSecurityDeleteConfigurationForEnterprise)["responder"] & - KoaRuntimeResponder - export type CodeSecurityDeleteConfigurationForEnterprise = ( params: Params< t_CodeSecurityDeleteConfigurationForEnterpriseParamSchema, @@ -3020,7 +2896,7 @@ export type CodeSecurityDeleteConfigurationForEnterprise = ( void, void >, - respond: CodeSecurityDeleteConfigurationForEnterpriseResponder, + respond: (typeof codeSecurityDeleteConfigurationForEnterprise)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3041,10 +2917,6 @@ const codeSecurityAttachEnterpriseConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityAttachEnterpriseConfigurationResponder = - (typeof codeSecurityAttachEnterpriseConfiguration)["responder"] & - KoaRuntimeResponder - export type CodeSecurityAttachEnterpriseConfiguration = ( params: Params< t_CodeSecurityAttachEnterpriseConfigurationParamSchema, @@ -3052,7 +2924,7 @@ export type CodeSecurityAttachEnterpriseConfiguration = ( t_CodeSecurityAttachEnterpriseConfigurationBodySchema, void >, - respond: CodeSecurityAttachEnterpriseConfigurationResponder, + respond: (typeof codeSecurityAttachEnterpriseConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3084,10 +2956,6 @@ const codeSecuritySetConfigurationAsDefaultForEnterprise = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecuritySetConfigurationAsDefaultForEnterpriseResponder = - (typeof codeSecuritySetConfigurationAsDefaultForEnterprise)["responder"] & - KoaRuntimeResponder - export type CodeSecuritySetConfigurationAsDefaultForEnterprise = ( params: Params< t_CodeSecuritySetConfigurationAsDefaultForEnterpriseParamSchema, @@ -3095,7 +2963,7 @@ export type CodeSecuritySetConfigurationAsDefaultForEnterprise = ( t_CodeSecuritySetConfigurationAsDefaultForEnterpriseBodySchema, void >, - respond: CodeSecuritySetConfigurationAsDefaultForEnterpriseResponder, + respond: (typeof codeSecuritySetConfigurationAsDefaultForEnterprise)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3123,10 +2991,6 @@ const codeSecurityGetRepositoriesForEnterpriseConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetRepositoriesForEnterpriseConfigurationResponder = - (typeof codeSecurityGetRepositoriesForEnterpriseConfiguration)["responder"] & - KoaRuntimeResponder - export type CodeSecurityGetRepositoriesForEnterpriseConfiguration = ( params: Params< t_CodeSecurityGetRepositoriesForEnterpriseConfigurationParamSchema, @@ -3134,7 +2998,7 @@ export type CodeSecurityGetRepositoriesForEnterpriseConfiguration = ( void, void >, - respond: CodeSecurityGetRepositoriesForEnterpriseConfigurationResponder, + respond: (typeof codeSecurityGetRepositoriesForEnterpriseConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3154,9 +3018,6 @@ const dependabotListAlertsForEnterprise = b((r) => ({ withStatus: r.withStatus, })) -type DependabotListAlertsForEnterpriseResponder = - (typeof dependabotListAlertsForEnterprise)["responder"] & KoaRuntimeResponder - export type DependabotListAlertsForEnterprise = ( params: Params< t_DependabotListAlertsForEnterpriseParamSchema, @@ -3164,7 +3025,7 @@ export type DependabotListAlertsForEnterprise = ( void, void >, - respond: DependabotListAlertsForEnterpriseResponder, + respond: (typeof dependabotListAlertsForEnterprise)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3194,10 +3055,6 @@ const secretScanningListAlertsForEnterprise = b((r) => ({ withStatus: r.withStatus, })) -type SecretScanningListAlertsForEnterpriseResponder = - (typeof secretScanningListAlertsForEnterprise)["responder"] & - KoaRuntimeResponder - export type SecretScanningListAlertsForEnterprise = ( params: Params< t_SecretScanningListAlertsForEnterpriseParamSchema, @@ -3205,7 +3062,7 @@ export type SecretScanningListAlertsForEnterprise = ( void, void >, - respond: SecretScanningListAlertsForEnterpriseResponder, + respond: (typeof secretScanningListAlertsForEnterprise)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3239,12 +3096,9 @@ const activityListPublicEvents = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListPublicEventsResponder = - (typeof activityListPublicEvents)["responder"] & KoaRuntimeResponder - export type ActivityListPublicEvents = ( params: Params, - respond: ActivityListPublicEventsResponder, + respond: (typeof activityListPublicEvents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3266,12 +3120,9 @@ const activityGetFeeds = b((r) => ({ withStatus: r.withStatus, })) -type ActivityGetFeedsResponder = (typeof activityGetFeeds)["responder"] & - KoaRuntimeResponder - export type ActivityGetFeeds = ( params: Params, - respond: ActivityGetFeedsResponder, + respond: (typeof activityGetFeeds)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_feed>> @@ -3282,11 +3133,9 @@ const gistsList = b((r) => ({ withStatus: r.withStatus, })) -type GistsListResponder = (typeof gistsList)["responder"] & KoaRuntimeResponder - export type GistsList = ( params: Params, - respond: GistsListResponder, + respond: (typeof gistsList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3304,12 +3153,9 @@ const gistsCreate = b((r) => ({ withStatus: r.withStatus, })) -type GistsCreateResponder = (typeof gistsCreate)["responder"] & - KoaRuntimeResponder - export type GistsCreate = ( params: Params, - respond: GistsCreateResponder, + respond: (typeof gistsCreate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3328,12 +3174,9 @@ const gistsListPublic = b((r) => ({ withStatus: r.withStatus, })) -type GistsListPublicResponder = (typeof gistsListPublic)["responder"] & - KoaRuntimeResponder - export type GistsListPublic = ( params: Params, - respond: GistsListPublicResponder, + respond: (typeof gistsListPublic)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3351,12 +3194,9 @@ const gistsListStarred = b((r) => ({ withStatus: r.withStatus, })) -type GistsListStarredResponder = (typeof gistsListStarred)["responder"] & - KoaRuntimeResponder - export type GistsListStarred = ( params: Params, - respond: GistsListStarredResponder, + respond: (typeof gistsListStarred)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3394,11 +3234,9 @@ const gistsGet = b((r) => ({ withStatus: r.withStatus, })) -type GistsGetResponder = (typeof gistsGet)["responder"] & KoaRuntimeResponder - export type GistsGet = ( params: Params, - respond: GistsGetResponder, + respond: (typeof gistsGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3426,12 +3264,9 @@ const gistsUpdate = b((r) => ({ withStatus: r.withStatus, })) -type GistsUpdateResponder = (typeof gistsUpdate)["responder"] & - KoaRuntimeResponder - export type GistsUpdate = ( params: Params, - respond: GistsUpdateResponder, + respond: (typeof gistsUpdate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3448,12 +3283,9 @@ const gistsDelete = b((r) => ({ withStatus: r.withStatus, })) -type GistsDeleteResponder = (typeof gistsDelete)["responder"] & - KoaRuntimeResponder - export type GistsDelete = ( params: Params, - respond: GistsDeleteResponder, + respond: (typeof gistsDelete)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3471,9 +3303,6 @@ const gistsListComments = b((r) => ({ withStatus: r.withStatus, })) -type GistsListCommentsResponder = (typeof gistsListComments)["responder"] & - KoaRuntimeResponder - export type GistsListComments = ( params: Params< t_GistsListCommentsParamSchema, @@ -3481,7 +3310,7 @@ export type GistsListComments = ( void, void >, - respond: GistsListCommentsResponder, + respond: (typeof gistsListComments)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3499,9 +3328,6 @@ const gistsCreateComment = b((r) => ({ withStatus: r.withStatus, })) -type GistsCreateCommentResponder = (typeof gistsCreateComment)["responder"] & - KoaRuntimeResponder - export type GistsCreateComment = ( params: Params< t_GistsCreateCommentParamSchema, @@ -3509,7 +3335,7 @@ export type GistsCreateComment = ( t_GistsCreateCommentBodySchema, void >, - respond: GistsCreateCommentResponder, + respond: (typeof gistsCreateComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3547,12 +3373,9 @@ const gistsGetComment = b((r) => ({ withStatus: r.withStatus, })) -type GistsGetCommentResponder = (typeof gistsGetComment)["responder"] & - KoaRuntimeResponder - export type GistsGetComment = ( params: Params, - respond: GistsGetCommentResponder, + respond: (typeof gistsGetComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3579,9 +3402,6 @@ const gistsUpdateComment = b((r) => ({ withStatus: r.withStatus, })) -type GistsUpdateCommentResponder = (typeof gistsUpdateComment)["responder"] & - KoaRuntimeResponder - export type GistsUpdateComment = ( params: Params< t_GistsUpdateCommentParamSchema, @@ -3589,7 +3409,7 @@ export type GistsUpdateComment = ( t_GistsUpdateCommentBodySchema, void >, - respond: GistsUpdateCommentResponder, + respond: (typeof gistsUpdateComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3605,12 +3425,9 @@ const gistsDeleteComment = b((r) => ({ withStatus: r.withStatus, })) -type GistsDeleteCommentResponder = (typeof gistsDeleteComment)["responder"] & - KoaRuntimeResponder - export type GistsDeleteComment = ( params: Params, - respond: GistsDeleteCommentResponder, + respond: (typeof gistsDeleteComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3628,9 +3445,6 @@ const gistsListCommits = b((r) => ({ withStatus: r.withStatus, })) -type GistsListCommitsResponder = (typeof gistsListCommits)["responder"] & - KoaRuntimeResponder - export type GistsListCommits = ( params: Params< t_GistsListCommitsParamSchema, @@ -3638,7 +3452,7 @@ export type GistsListCommits = ( void, void >, - respond: GistsListCommitsResponder, + respond: (typeof gistsListCommits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3656,9 +3470,6 @@ const gistsListForks = b((r) => ({ withStatus: r.withStatus, })) -type GistsListForksResponder = (typeof gistsListForks)["responder"] & - KoaRuntimeResponder - export type GistsListForks = ( params: Params< t_GistsListForksParamSchema, @@ -3666,7 +3477,7 @@ export type GistsListForks = ( void, void >, - respond: GistsListForksResponder, + respond: (typeof gistsListForks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3685,11 +3496,9 @@ const gistsFork = b((r) => ({ withStatus: r.withStatus, })) -type GistsForkResponder = (typeof gistsFork)["responder"] & KoaRuntimeResponder - export type GistsFork = ( params: Params, - respond: GistsForkResponder, + respond: (typeof gistsFork)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3708,12 +3517,9 @@ const gistsCheckIsStarred = b((r) => ({ withStatus: r.withStatus, })) -type GistsCheckIsStarredResponder = (typeof gistsCheckIsStarred)["responder"] & - KoaRuntimeResponder - export type GistsCheckIsStarred = ( params: Params, - respond: GistsCheckIsStarredResponder, + respond: (typeof gistsCheckIsStarred)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3731,11 +3537,9 @@ const gistsStar = b((r) => ({ withStatus: r.withStatus, })) -type GistsStarResponder = (typeof gistsStar)["responder"] & KoaRuntimeResponder - export type GistsStar = ( params: Params, - respond: GistsStarResponder, + respond: (typeof gistsStar)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3753,12 +3557,9 @@ const gistsUnstar = b((r) => ({ withStatus: r.withStatus, })) -type GistsUnstarResponder = (typeof gistsUnstar)["responder"] & - KoaRuntimeResponder - export type GistsUnstar = ( params: Params, - respond: GistsUnstarResponder, + respond: (typeof gistsUnstar)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3776,12 +3577,9 @@ const gistsGetRevision = b((r) => ({ withStatus: r.withStatus, })) -type GistsGetRevisionResponder = (typeof gistsGetRevision)["responder"] & - KoaRuntimeResponder - export type GistsGetRevision = ( params: Params, - respond: GistsGetRevisionResponder, + respond: (typeof gistsGetRevision)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3797,12 +3595,9 @@ const gitignoreGetAllTemplates = b((r) => ({ withStatus: r.withStatus, })) -type GitignoreGetAllTemplatesResponder = - (typeof gitignoreGetAllTemplates)["responder"] & KoaRuntimeResponder - export type GitignoreGetAllTemplates = ( params: Params, - respond: GitignoreGetAllTemplatesResponder, + respond: (typeof gitignoreGetAllTemplates)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, string[]> | Response<304, void> @@ -3814,12 +3609,9 @@ const gitignoreGetTemplate = b((r) => ({ withStatus: r.withStatus, })) -type GitignoreGetTemplateResponder = - (typeof gitignoreGetTemplate)["responder"] & KoaRuntimeResponder - export type GitignoreGetTemplate = ( params: Params, - respond: GitignoreGetTemplateResponder, + respond: (typeof gitignoreGetTemplate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3845,10 +3637,6 @@ const appsListReposAccessibleToInstallation = b((r) => ({ withStatus: r.withStatus, })) -type AppsListReposAccessibleToInstallationResponder = - (typeof appsListReposAccessibleToInstallation)["responder"] & - KoaRuntimeResponder - export type AppsListReposAccessibleToInstallation = ( params: Params< void, @@ -3856,7 +3644,7 @@ export type AppsListReposAccessibleToInstallation = ( void, void >, - respond: AppsListReposAccessibleToInstallationResponder, + respond: (typeof appsListReposAccessibleToInstallation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3878,12 +3666,9 @@ const appsRevokeInstallationAccessToken = b((r) => ({ withStatus: r.withStatus, })) -type AppsRevokeInstallationAccessTokenResponder = - (typeof appsRevokeInstallationAccessToken)["responder"] & KoaRuntimeResponder - export type AppsRevokeInstallationAccessToken = ( params: Params, - respond: AppsRevokeInstallationAccessTokenResponder, + respond: (typeof appsRevokeInstallationAccessToken)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -3895,12 +3680,9 @@ const issuesList = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListResponder = (typeof issuesList)["responder"] & - KoaRuntimeResponder - export type IssuesList = ( params: Params, - respond: IssuesListResponder, + respond: (typeof issuesList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3916,12 +3698,9 @@ const licensesGetAllCommonlyUsed = b((r) => ({ withStatus: r.withStatus, })) -type LicensesGetAllCommonlyUsedResponder = - (typeof licensesGetAllCommonlyUsed)["responder"] & KoaRuntimeResponder - export type LicensesGetAllCommonlyUsed = ( params: Params, - respond: LicensesGetAllCommonlyUsedResponder, + respond: (typeof licensesGetAllCommonlyUsed)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3937,12 +3716,9 @@ const licensesGet = b((r) => ({ withStatus: r.withStatus, })) -type LicensesGetResponder = (typeof licensesGet)["responder"] & - KoaRuntimeResponder - export type LicensesGet = ( params: Params, - respond: LicensesGetResponder, + respond: (typeof licensesGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3958,12 +3734,9 @@ const markdownRender = b((r) => ({ withStatus: r.withStatus, })) -type MarkdownRenderResponder = (typeof markdownRender)["responder"] & - KoaRuntimeResponder - export type MarkdownRender = ( params: Params, - respond: MarkdownRenderResponder, + respond: (typeof markdownRender)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, string> | Response<304, void> @@ -3975,12 +3748,9 @@ const markdownRenderRaw = b((r) => ({ withStatus: r.withStatus, })) -type MarkdownRenderRawResponder = (typeof markdownRenderRaw)["responder"] & - KoaRuntimeResponder - export type MarkdownRenderRaw = ( params: Params, - respond: MarkdownRenderRawResponder, + respond: (typeof markdownRenderRaw)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, string> | Response<304, void> @@ -3993,9 +3763,6 @@ const appsGetSubscriptionPlanForAccount = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetSubscriptionPlanForAccountResponder = - (typeof appsGetSubscriptionPlanForAccount)["responder"] & KoaRuntimeResponder - export type AppsGetSubscriptionPlanForAccount = ( params: Params< t_AppsGetSubscriptionPlanForAccountParamSchema, @@ -4003,7 +3770,7 @@ export type AppsGetSubscriptionPlanForAccount = ( void, void >, - respond: AppsGetSubscriptionPlanForAccountResponder, + respond: (typeof appsGetSubscriptionPlanForAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4021,12 +3788,9 @@ const appsListPlans = b((r) => ({ withStatus: r.withStatus, })) -type AppsListPlansResponder = (typeof appsListPlans)["responder"] & - KoaRuntimeResponder - export type AppsListPlans = ( params: Params, - respond: AppsListPlansResponder, + respond: (typeof appsListPlans)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4043,9 +3807,6 @@ const appsListAccountsForPlan = b((r) => ({ withStatus: r.withStatus, })) -type AppsListAccountsForPlanResponder = - (typeof appsListAccountsForPlan)["responder"] & KoaRuntimeResponder - export type AppsListAccountsForPlan = ( params: Params< t_AppsListAccountsForPlanParamSchema, @@ -4053,7 +3814,7 @@ export type AppsListAccountsForPlan = ( void, void >, - respond: AppsListAccountsForPlanResponder, + respond: (typeof appsListAccountsForPlan)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4070,10 +3831,6 @@ const appsGetSubscriptionPlanForAccountStubbed = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetSubscriptionPlanForAccountStubbedResponder = - (typeof appsGetSubscriptionPlanForAccountStubbed)["responder"] & - KoaRuntimeResponder - export type AppsGetSubscriptionPlanForAccountStubbed = ( params: Params< t_AppsGetSubscriptionPlanForAccountStubbedParamSchema, @@ -4081,7 +3838,7 @@ export type AppsGetSubscriptionPlanForAccountStubbed = ( void, void >, - respond: AppsGetSubscriptionPlanForAccountStubbedResponder, + respond: (typeof appsGetSubscriptionPlanForAccountStubbed)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4098,12 +3855,9 @@ const appsListPlansStubbed = b((r) => ({ withStatus: r.withStatus, })) -type AppsListPlansStubbedResponder = - (typeof appsListPlansStubbed)["responder"] & KoaRuntimeResponder - export type AppsListPlansStubbed = ( params: Params, - respond: AppsListPlansStubbedResponder, + respond: (typeof appsListPlansStubbed)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4117,9 +3871,6 @@ const appsListAccountsForPlanStubbed = b((r) => ({ withStatus: r.withStatus, })) -type AppsListAccountsForPlanStubbedResponder = - (typeof appsListAccountsForPlanStubbed)["responder"] & KoaRuntimeResponder - export type AppsListAccountsForPlanStubbed = ( params: Params< t_AppsListAccountsForPlanStubbedParamSchema, @@ -4127,7 +3878,7 @@ export type AppsListAccountsForPlanStubbed = ( void, void >, - respond: AppsListAccountsForPlanStubbedResponder, + respond: (typeof appsListAccountsForPlanStubbed)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4141,11 +3892,9 @@ const metaGet = b((r) => ({ withStatus: r.withStatus, })) -type MetaGetResponder = (typeof metaGet)["responder"] & KoaRuntimeResponder - export type MetaGet = ( params: Params, - respond: MetaGetResponder, + respond: (typeof metaGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4162,10 +3911,6 @@ const activityListPublicEventsForRepoNetwork = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListPublicEventsForRepoNetworkResponder = - (typeof activityListPublicEventsForRepoNetwork)["responder"] & - KoaRuntimeResponder - export type ActivityListPublicEventsForRepoNetwork = ( params: Params< t_ActivityListPublicEventsForRepoNetworkParamSchema, @@ -4173,7 +3918,7 @@ export type ActivityListPublicEventsForRepoNetwork = ( void, void >, - respond: ActivityListPublicEventsForRepoNetworkResponder, + respond: (typeof activityListPublicEventsForRepoNetwork)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4193,10 +3938,6 @@ const activityListNotificationsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListNotificationsForAuthenticatedUserResponder = - (typeof activityListNotificationsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityListNotificationsForAuthenticatedUser = ( params: Params< void, @@ -4204,7 +3945,7 @@ export type ActivityListNotificationsForAuthenticatedUser = ( void, void >, - respond: ActivityListNotificationsForAuthenticatedUserResponder, + respond: (typeof activityListNotificationsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4226,9 +3967,6 @@ const activityMarkNotificationsAsRead = b((r) => ({ withStatus: r.withStatus, })) -type ActivityMarkNotificationsAsReadResponder = - (typeof activityMarkNotificationsAsRead)["responder"] & KoaRuntimeResponder - export type ActivityMarkNotificationsAsRead = ( params: Params< void, @@ -4236,7 +3974,7 @@ export type ActivityMarkNotificationsAsRead = ( t_ActivityMarkNotificationsAsReadBodySchema | undefined, void >, - respond: ActivityMarkNotificationsAsReadResponder, + respond: (typeof activityMarkNotificationsAsRead)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4260,12 +3998,9 @@ const activityGetThread = b((r) => ({ withStatus: r.withStatus, })) -type ActivityGetThreadResponder = (typeof activityGetThread)["responder"] & - KoaRuntimeResponder - export type ActivityGetThread = ( params: Params, - respond: ActivityGetThreadResponder, + respond: (typeof activityGetThread)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4282,12 +4017,9 @@ const activityMarkThreadAsRead = b((r) => ({ withStatus: r.withStatus, })) -type ActivityMarkThreadAsReadResponder = - (typeof activityMarkThreadAsRead)["responder"] & KoaRuntimeResponder - export type ActivityMarkThreadAsRead = ( params: Params, - respond: ActivityMarkThreadAsReadResponder, + respond: (typeof activityMarkThreadAsRead)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4301,12 +4033,9 @@ const activityMarkThreadAsDone = b((r) => ({ withStatus: r.withStatus, })) -type ActivityMarkThreadAsDoneResponder = - (typeof activityMarkThreadAsDone)["responder"] & KoaRuntimeResponder - export type ActivityMarkThreadAsDone = ( params: Params, - respond: ActivityMarkThreadAsDoneResponder, + respond: (typeof activityMarkThreadAsDone)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -4318,10 +4047,6 @@ const activityGetThreadSubscriptionForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityGetThreadSubscriptionForAuthenticatedUserResponder = - (typeof activityGetThreadSubscriptionForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityGetThreadSubscriptionForAuthenticatedUser = ( params: Params< t_ActivityGetThreadSubscriptionForAuthenticatedUserParamSchema, @@ -4329,7 +4054,7 @@ export type ActivityGetThreadSubscriptionForAuthenticatedUser = ( void, void >, - respond: ActivityGetThreadSubscriptionForAuthenticatedUserResponder, + respond: (typeof activityGetThreadSubscriptionForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4347,9 +4072,6 @@ const activitySetThreadSubscription = b((r) => ({ withStatus: r.withStatus, })) -type ActivitySetThreadSubscriptionResponder = - (typeof activitySetThreadSubscription)["responder"] & KoaRuntimeResponder - export type ActivitySetThreadSubscription = ( params: Params< t_ActivitySetThreadSubscriptionParamSchema, @@ -4357,7 +4079,7 @@ export type ActivitySetThreadSubscription = ( t_ActivitySetThreadSubscriptionBodySchema | undefined, void >, - respond: ActivitySetThreadSubscriptionResponder, + respond: (typeof activitySetThreadSubscription)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4375,9 +4097,6 @@ const activityDeleteThreadSubscription = b((r) => ({ withStatus: r.withStatus, })) -type ActivityDeleteThreadSubscriptionResponder = - (typeof activityDeleteThreadSubscription)["responder"] & KoaRuntimeResponder - export type ActivityDeleteThreadSubscription = ( params: Params< t_ActivityDeleteThreadSubscriptionParamSchema, @@ -4385,7 +4104,7 @@ export type ActivityDeleteThreadSubscription = ( void, void >, - respond: ActivityDeleteThreadSubscriptionResponder, + respond: (typeof activityDeleteThreadSubscription)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4400,12 +4119,9 @@ const metaGetOctocat = b((r) => ({ withStatus: r.withStatus, })) -type MetaGetOctocatResponder = (typeof metaGetOctocat)["responder"] & - KoaRuntimeResponder - export type MetaGetOctocat = ( params: Params, - respond: MetaGetOctocatResponder, + respond: (typeof metaGetOctocat)["responder"], ctx: RouterContext, ) => Promise | Response<200, string>> @@ -4415,11 +4131,9 @@ const orgsList = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListResponder = (typeof orgsList)["responder"] & KoaRuntimeResponder - export type OrgsList = ( params: Params, - respond: OrgsListResponder, + respond: (typeof orgsList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4446,10 +4160,6 @@ const billingGetGithubBillingUsageReportOrg = b((r) => ({ withStatus: r.withStatus, })) -type BillingGetGithubBillingUsageReportOrgResponder = - (typeof billingGetGithubBillingUsageReportOrg)["responder"] & - KoaRuntimeResponder - export type BillingGetGithubBillingUsageReportOrg = ( params: Params< t_BillingGetGithubBillingUsageReportOrgParamSchema, @@ -4457,7 +4167,7 @@ export type BillingGetGithubBillingUsageReportOrg = ( void, void >, - respond: BillingGetGithubBillingUsageReportOrgResponder, + respond: (typeof billingGetGithubBillingUsageReportOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4481,11 +4191,9 @@ const orgsGet = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetResponder = (typeof orgsGet)["responder"] & KoaRuntimeResponder - export type OrgsGet = ( params: Params, - respond: OrgsGetResponder, + respond: (typeof orgsGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4502,9 +4210,6 @@ const orgsUpdate = b((r) => ({ withStatus: r.withStatus, })) -type OrgsUpdateResponder = (typeof orgsUpdate)["responder"] & - KoaRuntimeResponder - export type OrgsUpdate = ( params: Params< t_OrgsUpdateParamSchema, @@ -4512,7 +4217,7 @@ export type OrgsUpdate = ( t_OrgsUpdateBodySchema | undefined, void >, - respond: OrgsUpdateResponder, + respond: (typeof orgsUpdate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4530,12 +4235,9 @@ const orgsDelete = b((r) => ({ withStatus: r.withStatus, })) -type OrgsDeleteResponder = (typeof orgsDelete)["responder"] & - KoaRuntimeResponder - export type OrgsDelete = ( params: Params, - respond: OrgsDeleteResponder, + respond: (typeof orgsDelete)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4556,9 +4258,6 @@ const actionsGetActionsCacheUsageForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetActionsCacheUsageForOrgResponder = - (typeof actionsGetActionsCacheUsageForOrg)["responder"] & KoaRuntimeResponder - export type ActionsGetActionsCacheUsageForOrg = ( params: Params< t_ActionsGetActionsCacheUsageForOrgParamSchema, @@ -4566,7 +4265,7 @@ export type ActionsGetActionsCacheUsageForOrg = ( void, void >, - respond: ActionsGetActionsCacheUsageForOrgResponder, + respond: (typeof actionsGetActionsCacheUsageForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4586,10 +4285,6 @@ const actionsGetActionsCacheUsageByRepoForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetActionsCacheUsageByRepoForOrgResponder = - (typeof actionsGetActionsCacheUsageByRepoForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsGetActionsCacheUsageByRepoForOrg = ( params: Params< t_ActionsGetActionsCacheUsageByRepoForOrgParamSchema, @@ -4597,7 +4292,7 @@ export type ActionsGetActionsCacheUsageByRepoForOrg = ( void, void >, - respond: ActionsGetActionsCacheUsageByRepoForOrgResponder, + respond: (typeof actionsGetActionsCacheUsageByRepoForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4623,9 +4318,6 @@ const actionsListHostedRunnersForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListHostedRunnersForOrgResponder = - (typeof actionsListHostedRunnersForOrg)["responder"] & KoaRuntimeResponder - export type ActionsListHostedRunnersForOrg = ( params: Params< t_ActionsListHostedRunnersForOrgParamSchema, @@ -4633,7 +4325,7 @@ export type ActionsListHostedRunnersForOrg = ( void, void >, - respond: ActionsListHostedRunnersForOrgResponder, + respond: (typeof actionsListHostedRunnersForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4651,9 +4343,6 @@ const actionsCreateHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateHostedRunnerForOrgResponder = - (typeof actionsCreateHostedRunnerForOrg)["responder"] & KoaRuntimeResponder - export type ActionsCreateHostedRunnerForOrg = ( params: Params< t_ActionsCreateHostedRunnerForOrgParamSchema, @@ -4661,7 +4350,7 @@ export type ActionsCreateHostedRunnerForOrg = ( t_ActionsCreateHostedRunnerForOrgBodySchema, void >, - respond: ActionsCreateHostedRunnerForOrgResponder, + respond: (typeof actionsCreateHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_actions_hosted_runner> @@ -4680,10 +4369,6 @@ const actionsGetHostedRunnersGithubOwnedImagesForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetHostedRunnersGithubOwnedImagesForOrgResponder = - (typeof actionsGetHostedRunnersGithubOwnedImagesForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsGetHostedRunnersGithubOwnedImagesForOrg = ( params: Params< t_ActionsGetHostedRunnersGithubOwnedImagesForOrgParamSchema, @@ -4691,7 +4376,7 @@ export type ActionsGetHostedRunnersGithubOwnedImagesForOrg = ( void, void >, - respond: ActionsGetHostedRunnersGithubOwnedImagesForOrgResponder, + respond: (typeof actionsGetHostedRunnersGithubOwnedImagesForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4717,10 +4402,6 @@ const actionsGetHostedRunnersPartnerImagesForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetHostedRunnersPartnerImagesForOrgResponder = - (typeof actionsGetHostedRunnersPartnerImagesForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsGetHostedRunnersPartnerImagesForOrg = ( params: Params< t_ActionsGetHostedRunnersPartnerImagesForOrgParamSchema, @@ -4728,7 +4409,7 @@ export type ActionsGetHostedRunnersPartnerImagesForOrg = ( void, void >, - respond: ActionsGetHostedRunnersPartnerImagesForOrgResponder, + respond: (typeof actionsGetHostedRunnersPartnerImagesForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4748,10 +4429,6 @@ const actionsGetHostedRunnersLimitsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetHostedRunnersLimitsForOrgResponder = - (typeof actionsGetHostedRunnersLimitsForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsGetHostedRunnersLimitsForOrg = ( params: Params< t_ActionsGetHostedRunnersLimitsForOrgParamSchema, @@ -4759,7 +4436,7 @@ export type ActionsGetHostedRunnersLimitsForOrg = ( void, void >, - respond: ActionsGetHostedRunnersLimitsForOrgResponder, + respond: (typeof actionsGetHostedRunnersLimitsForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_actions_hosted_runner_limits> @@ -4778,10 +4455,6 @@ const actionsGetHostedRunnersMachineSpecsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetHostedRunnersMachineSpecsForOrgResponder = - (typeof actionsGetHostedRunnersMachineSpecsForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsGetHostedRunnersMachineSpecsForOrg = ( params: Params< t_ActionsGetHostedRunnersMachineSpecsForOrgParamSchema, @@ -4789,7 +4462,7 @@ export type ActionsGetHostedRunnersMachineSpecsForOrg = ( void, void >, - respond: ActionsGetHostedRunnersMachineSpecsForOrgResponder, + respond: (typeof actionsGetHostedRunnersMachineSpecsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4815,10 +4488,6 @@ const actionsGetHostedRunnersPlatformsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetHostedRunnersPlatformsForOrgResponder = - (typeof actionsGetHostedRunnersPlatformsForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsGetHostedRunnersPlatformsForOrg = ( params: Params< t_ActionsGetHostedRunnersPlatformsForOrgParamSchema, @@ -4826,7 +4495,7 @@ export type ActionsGetHostedRunnersPlatformsForOrg = ( void, void >, - respond: ActionsGetHostedRunnersPlatformsForOrgResponder, + respond: (typeof actionsGetHostedRunnersPlatformsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4844,12 +4513,9 @@ const actionsGetHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetHostedRunnerForOrgResponder = - (typeof actionsGetHostedRunnerForOrg)["responder"] & KoaRuntimeResponder - export type ActionsGetHostedRunnerForOrg = ( params: Params, - respond: ActionsGetHostedRunnerForOrgResponder, + respond: (typeof actionsGetHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_actions_hosted_runner> @@ -4860,9 +4526,6 @@ const actionsUpdateHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsUpdateHostedRunnerForOrgResponder = - (typeof actionsUpdateHostedRunnerForOrg)["responder"] & KoaRuntimeResponder - export type ActionsUpdateHostedRunnerForOrg = ( params: Params< t_ActionsUpdateHostedRunnerForOrgParamSchema, @@ -4870,7 +4533,7 @@ export type ActionsUpdateHostedRunnerForOrg = ( t_ActionsUpdateHostedRunnerForOrgBodySchema, void >, - respond: ActionsUpdateHostedRunnerForOrgResponder, + respond: (typeof actionsUpdateHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_actions_hosted_runner> @@ -4881,9 +4544,6 @@ const actionsDeleteHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteHostedRunnerForOrgResponder = - (typeof actionsDeleteHostedRunnerForOrg)["responder"] & KoaRuntimeResponder - export type ActionsDeleteHostedRunnerForOrg = ( params: Params< t_ActionsDeleteHostedRunnerForOrgParamSchema, @@ -4891,7 +4551,7 @@ export type ActionsDeleteHostedRunnerForOrg = ( void, void >, - respond: ActionsDeleteHostedRunnerForOrgResponder, + respond: (typeof actionsDeleteHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<202, t_actions_hosted_runner> @@ -4902,9 +4562,6 @@ const oidcGetOidcCustomSubTemplateForOrg = b((r) => ({ withStatus: r.withStatus, })) -type OidcGetOidcCustomSubTemplateForOrgResponder = - (typeof oidcGetOidcCustomSubTemplateForOrg)["responder"] & KoaRuntimeResponder - export type OidcGetOidcCustomSubTemplateForOrg = ( params: Params< t_OidcGetOidcCustomSubTemplateForOrgParamSchema, @@ -4912,7 +4569,7 @@ export type OidcGetOidcCustomSubTemplateForOrg = ( void, void >, - respond: OidcGetOidcCustomSubTemplateForOrgResponder, + respond: (typeof oidcGetOidcCustomSubTemplateForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_oidc_custom_sub>> @@ -4923,10 +4580,6 @@ const oidcUpdateOidcCustomSubTemplateForOrg = b((r) => ({ withStatus: r.withStatus, })) -type OidcUpdateOidcCustomSubTemplateForOrgResponder = - (typeof oidcUpdateOidcCustomSubTemplateForOrg)["responder"] & - KoaRuntimeResponder - export type OidcUpdateOidcCustomSubTemplateForOrg = ( params: Params< t_OidcUpdateOidcCustomSubTemplateForOrgParamSchema, @@ -4934,7 +4587,7 @@ export type OidcUpdateOidcCustomSubTemplateForOrg = ( t_OidcUpdateOidcCustomSubTemplateForOrgBodySchema, void >, - respond: OidcUpdateOidcCustomSubTemplateForOrgResponder, + respond: (typeof oidcUpdateOidcCustomSubTemplateForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4950,10 +4603,6 @@ const actionsGetGithubActionsPermissionsOrganization = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetGithubActionsPermissionsOrganizationResponder = - (typeof actionsGetGithubActionsPermissionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsGetGithubActionsPermissionsOrganization = ( params: Params< t_ActionsGetGithubActionsPermissionsOrganizationParamSchema, @@ -4961,7 +4610,7 @@ export type ActionsGetGithubActionsPermissionsOrganization = ( void, void >, - respond: ActionsGetGithubActionsPermissionsOrganizationResponder, + respond: (typeof actionsGetGithubActionsPermissionsOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4973,10 +4622,6 @@ const actionsSetGithubActionsPermissionsOrganization = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetGithubActionsPermissionsOrganizationResponder = - (typeof actionsSetGithubActionsPermissionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsSetGithubActionsPermissionsOrganization = ( params: Params< t_ActionsSetGithubActionsPermissionsOrganizationParamSchema, @@ -4984,7 +4629,7 @@ export type ActionsSetGithubActionsPermissionsOrganization = ( t_ActionsSetGithubActionsPermissionsOrganizationBodySchema, void >, - respond: ActionsSetGithubActionsPermissionsOrganizationResponder, + respond: (typeof actionsSetGithubActionsPermissionsOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5003,10 +4648,6 @@ const actionsListSelectedRepositoriesEnabledGithubActionsOrganization = b( }), ) -type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder = - (typeof actionsListSelectedRepositoriesEnabledGithubActionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganization = ( params: Params< t_ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParamSchema, @@ -5014,7 +4655,7 @@ export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganization = ( void, void >, - respond: ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationResponder, + respond: (typeof actionsListSelectedRepositoriesEnabledGithubActionsOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5034,10 +4675,6 @@ const actionsSetSelectedRepositoriesEnabledGithubActionsOrganization = b( }), ) -type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder = - (typeof actionsSetSelectedRepositoriesEnabledGithubActionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization = ( params: Params< t_ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParamSchema, @@ -5045,7 +4682,7 @@ export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization = ( t_ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationBodySchema, void >, - respond: ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationResponder, + respond: (typeof actionsSetSelectedRepositoriesEnabledGithubActionsOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5054,10 +4691,6 @@ const actionsEnableSelectedRepositoryGithubActionsOrganization = b((r) => ({ withStatus: r.withStatus, })) -type ActionsEnableSelectedRepositoryGithubActionsOrganizationResponder = - (typeof actionsEnableSelectedRepositoryGithubActionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsEnableSelectedRepositoryGithubActionsOrganization = ( params: Params< t_ActionsEnableSelectedRepositoryGithubActionsOrganizationParamSchema, @@ -5065,7 +4698,7 @@ export type ActionsEnableSelectedRepositoryGithubActionsOrganization = ( void, void >, - respond: ActionsEnableSelectedRepositoryGithubActionsOrganizationResponder, + respond: (typeof actionsEnableSelectedRepositoryGithubActionsOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5074,10 +4707,6 @@ const actionsDisableSelectedRepositoryGithubActionsOrganization = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDisableSelectedRepositoryGithubActionsOrganizationResponder = - (typeof actionsDisableSelectedRepositoryGithubActionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsDisableSelectedRepositoryGithubActionsOrganization = ( params: Params< t_ActionsDisableSelectedRepositoryGithubActionsOrganizationParamSchema, @@ -5085,7 +4714,7 @@ export type ActionsDisableSelectedRepositoryGithubActionsOrganization = ( void, void >, - respond: ActionsDisableSelectedRepositoryGithubActionsOrganizationResponder, + respond: (typeof actionsDisableSelectedRepositoryGithubActionsOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5094,10 +4723,6 @@ const actionsGetAllowedActionsOrganization = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetAllowedActionsOrganizationResponder = - (typeof actionsGetAllowedActionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsGetAllowedActionsOrganization = ( params: Params< t_ActionsGetAllowedActionsOrganizationParamSchema, @@ -5105,7 +4730,7 @@ export type ActionsGetAllowedActionsOrganization = ( void, void >, - respond: ActionsGetAllowedActionsOrganizationResponder, + respond: (typeof actionsGetAllowedActionsOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_selected_actions>> @@ -5114,10 +4739,6 @@ const actionsSetAllowedActionsOrganization = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetAllowedActionsOrganizationResponder = - (typeof actionsSetAllowedActionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsSetAllowedActionsOrganization = ( params: Params< t_ActionsSetAllowedActionsOrganizationParamSchema, @@ -5125,7 +4746,7 @@ export type ActionsSetAllowedActionsOrganization = ( t_ActionsSetAllowedActionsOrganizationBodySchema | undefined, void >, - respond: ActionsSetAllowedActionsOrganizationResponder, + respond: (typeof actionsSetAllowedActionsOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5138,10 +4759,6 @@ const actionsGetGithubActionsDefaultWorkflowPermissionsOrganization = b( }), ) -type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = - (typeof actionsGetGithubActionsDefaultWorkflowPermissionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization = ( params: Params< t_ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParamSchema, @@ -5149,7 +4766,7 @@ export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization = ( void, void >, - respond: ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationResponder, + respond: (typeof actionsGetGithubActionsDefaultWorkflowPermissionsOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5163,10 +4780,6 @@ const actionsSetGithubActionsDefaultWorkflowPermissionsOrganization = b( }), ) -type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder = - (typeof actionsSetGithubActionsDefaultWorkflowPermissionsOrganization)["responder"] & - KoaRuntimeResponder - export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization = ( params: Params< t_ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationParamSchema, @@ -5175,7 +4788,7 @@ export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganization = ( | undefined, void >, - respond: ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponder, + respond: (typeof actionsSetGithubActionsDefaultWorkflowPermissionsOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5192,10 +4805,6 @@ const actionsListSelfHostedRunnerGroupsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListSelfHostedRunnerGroupsForOrgResponder = - (typeof actionsListSelfHostedRunnerGroupsForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsListSelfHostedRunnerGroupsForOrg = ( params: Params< t_ActionsListSelfHostedRunnerGroupsForOrgParamSchema, @@ -5203,7 +4812,7 @@ export type ActionsListSelfHostedRunnerGroupsForOrg = ( void, void >, - respond: ActionsListSelfHostedRunnerGroupsForOrgResponder, + respond: (typeof actionsListSelfHostedRunnerGroupsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5221,10 +4830,6 @@ const actionsCreateSelfHostedRunnerGroupForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateSelfHostedRunnerGroupForOrgResponder = - (typeof actionsCreateSelfHostedRunnerGroupForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsCreateSelfHostedRunnerGroupForOrg = ( params: Params< t_ActionsCreateSelfHostedRunnerGroupForOrgParamSchema, @@ -5232,7 +4837,7 @@ export type ActionsCreateSelfHostedRunnerGroupForOrg = ( t_ActionsCreateSelfHostedRunnerGroupForOrgBodySchema, void >, - respond: ActionsCreateSelfHostedRunnerGroupForOrgResponder, + respond: (typeof actionsCreateSelfHostedRunnerGroupForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_runner_groups_org>> @@ -5241,10 +4846,6 @@ const actionsGetSelfHostedRunnerGroupForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetSelfHostedRunnerGroupForOrgResponder = - (typeof actionsGetSelfHostedRunnerGroupForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsGetSelfHostedRunnerGroupForOrg = ( params: Params< t_ActionsGetSelfHostedRunnerGroupForOrgParamSchema, @@ -5252,7 +4853,7 @@ export type ActionsGetSelfHostedRunnerGroupForOrg = ( void, void >, - respond: ActionsGetSelfHostedRunnerGroupForOrgResponder, + respond: (typeof actionsGetSelfHostedRunnerGroupForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_runner_groups_org>> @@ -5261,10 +4862,6 @@ const actionsUpdateSelfHostedRunnerGroupForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsUpdateSelfHostedRunnerGroupForOrgResponder = - (typeof actionsUpdateSelfHostedRunnerGroupForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsUpdateSelfHostedRunnerGroupForOrg = ( params: Params< t_ActionsUpdateSelfHostedRunnerGroupForOrgParamSchema, @@ -5272,7 +4869,7 @@ export type ActionsUpdateSelfHostedRunnerGroupForOrg = ( t_ActionsUpdateSelfHostedRunnerGroupForOrgBodySchema, void >, - respond: ActionsUpdateSelfHostedRunnerGroupForOrgResponder, + respond: (typeof actionsUpdateSelfHostedRunnerGroupForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_runner_groups_org>> @@ -5281,10 +4878,6 @@ const actionsDeleteSelfHostedRunnerGroupFromOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteSelfHostedRunnerGroupFromOrgResponder = - (typeof actionsDeleteSelfHostedRunnerGroupFromOrg)["responder"] & - KoaRuntimeResponder - export type ActionsDeleteSelfHostedRunnerGroupFromOrg = ( params: Params< t_ActionsDeleteSelfHostedRunnerGroupFromOrgParamSchema, @@ -5292,7 +4885,7 @@ export type ActionsDeleteSelfHostedRunnerGroupFromOrg = ( void, void >, - respond: ActionsDeleteSelfHostedRunnerGroupFromOrgResponder, + respond: (typeof actionsDeleteSelfHostedRunnerGroupFromOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5309,10 +4902,6 @@ const actionsListGithubHostedRunnersInGroupForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListGithubHostedRunnersInGroupForOrgResponder = - (typeof actionsListGithubHostedRunnersInGroupForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsListGithubHostedRunnersInGroupForOrg = ( params: Params< t_ActionsListGithubHostedRunnersInGroupForOrgParamSchema, @@ -5320,7 +4909,7 @@ export type ActionsListGithubHostedRunnersInGroupForOrg = ( void, void >, - respond: ActionsListGithubHostedRunnersInGroupForOrgResponder, + respond: (typeof actionsListGithubHostedRunnersInGroupForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5346,10 +4935,6 @@ const actionsListRepoAccessToSelfHostedRunnerGroupInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder = - (typeof actionsListRepoAccessToSelfHostedRunnerGroupInOrg)["responder"] & - KoaRuntimeResponder - export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< t_ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParamSchema, @@ -5357,7 +4942,7 @@ export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrg = ( void, void >, - respond: ActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponder, + respond: (typeof actionsListRepoAccessToSelfHostedRunnerGroupInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5375,10 +4960,6 @@ const actionsSetRepoAccessToSelfHostedRunnerGroupInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder = - (typeof actionsSetRepoAccessToSelfHostedRunnerGroupInOrg)["responder"] & - KoaRuntimeResponder - export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< t_ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParamSchema, @@ -5386,7 +4967,7 @@ export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg = ( t_ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgBodySchema, void >, - respond: ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgResponder, + respond: (typeof actionsSetRepoAccessToSelfHostedRunnerGroupInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5395,10 +4976,6 @@ const actionsAddRepoAccessToSelfHostedRunnerGroupInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder = - (typeof actionsAddRepoAccessToSelfHostedRunnerGroupInOrg)["responder"] & - KoaRuntimeResponder - export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< t_ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParamSchema, @@ -5406,7 +4983,7 @@ export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg = ( void, void >, - respond: ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgResponder, + respond: (typeof actionsAddRepoAccessToSelfHostedRunnerGroupInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5415,10 +4992,6 @@ const actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder = - (typeof actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg)["responder"] & - KoaRuntimeResponder - export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg = ( params: Params< t_ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParamSchema, @@ -5426,7 +4999,7 @@ export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg = ( void, void >, - respond: ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgResponder, + respond: (typeof actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5438,10 +5011,6 @@ const actionsListSelfHostedRunnersInGroupForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListSelfHostedRunnersInGroupForOrgResponder = - (typeof actionsListSelfHostedRunnersInGroupForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsListSelfHostedRunnersInGroupForOrg = ( params: Params< t_ActionsListSelfHostedRunnersInGroupForOrgParamSchema, @@ -5449,7 +5018,7 @@ export type ActionsListSelfHostedRunnersInGroupForOrg = ( void, void >, - respond: ActionsListSelfHostedRunnersInGroupForOrgResponder, + respond: (typeof actionsListSelfHostedRunnersInGroupForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5467,10 +5036,6 @@ const actionsSetSelfHostedRunnersInGroupForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetSelfHostedRunnersInGroupForOrgResponder = - (typeof actionsSetSelfHostedRunnersInGroupForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsSetSelfHostedRunnersInGroupForOrg = ( params: Params< t_ActionsSetSelfHostedRunnersInGroupForOrgParamSchema, @@ -5478,7 +5043,7 @@ export type ActionsSetSelfHostedRunnersInGroupForOrg = ( t_ActionsSetSelfHostedRunnersInGroupForOrgBodySchema, void >, - respond: ActionsSetSelfHostedRunnersInGroupForOrgResponder, + respond: (typeof actionsSetSelfHostedRunnersInGroupForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5487,10 +5052,6 @@ const actionsAddSelfHostedRunnerToGroupForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsAddSelfHostedRunnerToGroupForOrgResponder = - (typeof actionsAddSelfHostedRunnerToGroupForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsAddSelfHostedRunnerToGroupForOrg = ( params: Params< t_ActionsAddSelfHostedRunnerToGroupForOrgParamSchema, @@ -5498,7 +5059,7 @@ export type ActionsAddSelfHostedRunnerToGroupForOrg = ( void, void >, - respond: ActionsAddSelfHostedRunnerToGroupForOrgResponder, + respond: (typeof actionsAddSelfHostedRunnerToGroupForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5507,10 +5068,6 @@ const actionsRemoveSelfHostedRunnerFromGroupForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsRemoveSelfHostedRunnerFromGroupForOrgResponder = - (typeof actionsRemoveSelfHostedRunnerFromGroupForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsRemoveSelfHostedRunnerFromGroupForOrg = ( params: Params< t_ActionsRemoveSelfHostedRunnerFromGroupForOrgParamSchema, @@ -5518,7 +5075,7 @@ export type ActionsRemoveSelfHostedRunnerFromGroupForOrg = ( void, void >, - respond: ActionsRemoveSelfHostedRunnerFromGroupForOrgResponder, + respond: (typeof actionsRemoveSelfHostedRunnerFromGroupForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5530,9 +5087,6 @@ const actionsListSelfHostedRunnersForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListSelfHostedRunnersForOrgResponder = - (typeof actionsListSelfHostedRunnersForOrg)["responder"] & KoaRuntimeResponder - export type ActionsListSelfHostedRunnersForOrg = ( params: Params< t_ActionsListSelfHostedRunnersForOrgParamSchema, @@ -5540,7 +5094,7 @@ export type ActionsListSelfHostedRunnersForOrg = ( void, void >, - respond: ActionsListSelfHostedRunnersForOrgResponder, + respond: (typeof actionsListSelfHostedRunnersForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5558,10 +5112,6 @@ const actionsListRunnerApplicationsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListRunnerApplicationsForOrgResponder = - (typeof actionsListRunnerApplicationsForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsListRunnerApplicationsForOrg = ( params: Params< t_ActionsListRunnerApplicationsForOrgParamSchema, @@ -5569,7 +5119,7 @@ export type ActionsListRunnerApplicationsForOrg = ( void, void >, - respond: ActionsListRunnerApplicationsForOrgResponder, + respond: (typeof actionsListRunnerApplicationsForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_runner_application[]> @@ -5586,10 +5136,6 @@ const actionsGenerateRunnerJitconfigForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGenerateRunnerJitconfigForOrgResponder = - (typeof actionsGenerateRunnerJitconfigForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsGenerateRunnerJitconfigForOrg = ( params: Params< t_ActionsGenerateRunnerJitconfigForOrgParamSchema, @@ -5597,7 +5143,7 @@ export type ActionsGenerateRunnerJitconfigForOrg = ( t_ActionsGenerateRunnerJitconfigForOrgBodySchema, void >, - respond: ActionsGenerateRunnerJitconfigForOrgResponder, + respond: (typeof actionsGenerateRunnerJitconfigForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5618,10 +5164,6 @@ const actionsCreateRegistrationTokenForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateRegistrationTokenForOrgResponder = - (typeof actionsCreateRegistrationTokenForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsCreateRegistrationTokenForOrg = ( params: Params< t_ActionsCreateRegistrationTokenForOrgParamSchema, @@ -5629,7 +5171,7 @@ export type ActionsCreateRegistrationTokenForOrg = ( void, void >, - respond: ActionsCreateRegistrationTokenForOrgResponder, + respond: (typeof actionsCreateRegistrationTokenForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_authentication_token> @@ -5640,12 +5182,9 @@ const actionsCreateRemoveTokenForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateRemoveTokenForOrgResponder = - (typeof actionsCreateRemoveTokenForOrg)["responder"] & KoaRuntimeResponder - export type ActionsCreateRemoveTokenForOrg = ( params: Params, - respond: ActionsCreateRemoveTokenForOrgResponder, + respond: (typeof actionsCreateRemoveTokenForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_authentication_token> @@ -5656,9 +5195,6 @@ const actionsGetSelfHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetSelfHostedRunnerForOrgResponder = - (typeof actionsGetSelfHostedRunnerForOrg)["responder"] & KoaRuntimeResponder - export type ActionsGetSelfHostedRunnerForOrg = ( params: Params< t_ActionsGetSelfHostedRunnerForOrgParamSchema, @@ -5666,7 +5202,7 @@ export type ActionsGetSelfHostedRunnerForOrg = ( void, void >, - respond: ActionsGetSelfHostedRunnerForOrgResponder, + respond: (typeof actionsGetSelfHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_runner>> @@ -5675,10 +5211,6 @@ const actionsDeleteSelfHostedRunnerFromOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteSelfHostedRunnerFromOrgResponder = - (typeof actionsDeleteSelfHostedRunnerFromOrg)["responder"] & - KoaRuntimeResponder - export type ActionsDeleteSelfHostedRunnerFromOrg = ( params: Params< t_ActionsDeleteSelfHostedRunnerFromOrgParamSchema, @@ -5686,7 +5218,7 @@ export type ActionsDeleteSelfHostedRunnerFromOrg = ( void, void >, - respond: ActionsDeleteSelfHostedRunnerFromOrgResponder, + respond: (typeof actionsDeleteSelfHostedRunnerFromOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -5704,10 +5236,6 @@ const actionsListLabelsForSelfHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListLabelsForSelfHostedRunnerForOrgResponder = - (typeof actionsListLabelsForSelfHostedRunnerForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsListLabelsForSelfHostedRunnerForOrg = ( params: Params< t_ActionsListLabelsForSelfHostedRunnerForOrgParamSchema, @@ -5715,7 +5243,7 @@ export type ActionsListLabelsForSelfHostedRunnerForOrg = ( void, void >, - respond: ActionsListLabelsForSelfHostedRunnerForOrgResponder, + respond: (typeof actionsListLabelsForSelfHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5744,10 +5272,6 @@ const actionsAddCustomLabelsToSelfHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsAddCustomLabelsToSelfHostedRunnerForOrgResponder = - (typeof actionsAddCustomLabelsToSelfHostedRunnerForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg = ( params: Params< t_ActionsAddCustomLabelsToSelfHostedRunnerForOrgParamSchema, @@ -5755,7 +5279,7 @@ export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg = ( t_ActionsAddCustomLabelsToSelfHostedRunnerForOrgBodySchema, void >, - respond: ActionsAddCustomLabelsToSelfHostedRunnerForOrgResponder, + respond: (typeof actionsAddCustomLabelsToSelfHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5785,10 +5309,6 @@ const actionsSetCustomLabelsForSelfHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetCustomLabelsForSelfHostedRunnerForOrgResponder = - (typeof actionsSetCustomLabelsForSelfHostedRunnerForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg = ( params: Params< t_ActionsSetCustomLabelsForSelfHostedRunnerForOrgParamSchema, @@ -5796,7 +5316,7 @@ export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg = ( t_ActionsSetCustomLabelsForSelfHostedRunnerForOrgBodySchema, void >, - respond: ActionsSetCustomLabelsForSelfHostedRunnerForOrgResponder, + respond: (typeof actionsSetCustomLabelsForSelfHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5825,10 +5345,6 @@ const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder = - (typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg = ( params: Params< t_ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParamSchema, @@ -5836,7 +5352,7 @@ export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg = ( void, void >, - respond: ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgResponder, + respond: (typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5865,10 +5381,6 @@ const actionsRemoveCustomLabelFromSelfHostedRunnerForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder = - (typeof actionsRemoveCustomLabelFromSelfHostedRunnerForOrg)["responder"] & - KoaRuntimeResponder - export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg = ( params: Params< t_ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgParamSchema, @@ -5876,7 +5388,7 @@ export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg = ( void, void >, - respond: ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponder, + respond: (typeof actionsRemoveCustomLabelFromSelfHostedRunnerForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5904,9 +5416,6 @@ const actionsListOrgSecrets = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListOrgSecretsResponder = - (typeof actionsListOrgSecrets)["responder"] & KoaRuntimeResponder - export type ActionsListOrgSecrets = ( params: Params< t_ActionsListOrgSecretsParamSchema, @@ -5914,7 +5423,7 @@ export type ActionsListOrgSecrets = ( void, void >, - respond: ActionsListOrgSecretsResponder, + respond: (typeof actionsListOrgSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5932,12 +5441,9 @@ const actionsGetOrgPublicKey = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetOrgPublicKeyResponder = - (typeof actionsGetOrgPublicKey)["responder"] & KoaRuntimeResponder - export type ActionsGetOrgPublicKey = ( params: Params, - respond: ActionsGetOrgPublicKeyResponder, + respond: (typeof actionsGetOrgPublicKey)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> @@ -5948,12 +5454,9 @@ const actionsGetOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetOrgSecretResponder = (typeof actionsGetOrgSecret)["responder"] & - KoaRuntimeResponder - export type ActionsGetOrgSecret = ( params: Params, - respond: ActionsGetOrgSecretResponder, + respond: (typeof actionsGetOrgSecret)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_organization_actions_secret> @@ -5965,9 +5468,6 @@ const actionsCreateOrUpdateOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateOrUpdateOrgSecretResponder = - (typeof actionsCreateOrUpdateOrgSecret)["responder"] & KoaRuntimeResponder - export type ActionsCreateOrUpdateOrgSecret = ( params: Params< t_ActionsCreateOrUpdateOrgSecretParamSchema, @@ -5975,7 +5475,7 @@ export type ActionsCreateOrUpdateOrgSecret = ( t_ActionsCreateOrUpdateOrgSecretBodySchema, void >, - respond: ActionsCreateOrUpdateOrgSecretResponder, + respond: (typeof actionsCreateOrUpdateOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5988,12 +5488,9 @@ const actionsDeleteOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteOrgSecretResponder = - (typeof actionsDeleteOrgSecret)["responder"] & KoaRuntimeResponder - export type ActionsDeleteOrgSecret = ( params: Params, - respond: ActionsDeleteOrgSecretResponder, + respond: (typeof actionsDeleteOrgSecret)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -6010,10 +5507,6 @@ const actionsListSelectedReposForOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListSelectedReposForOrgSecretResponder = - (typeof actionsListSelectedReposForOrgSecret)["responder"] & - KoaRuntimeResponder - export type ActionsListSelectedReposForOrgSecret = ( params: Params< t_ActionsListSelectedReposForOrgSecretParamSchema, @@ -6021,7 +5514,7 @@ export type ActionsListSelectedReposForOrgSecret = ( void, void >, - respond: ActionsListSelectedReposForOrgSecretResponder, + respond: (typeof actionsListSelectedReposForOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6039,10 +5532,6 @@ const actionsSetSelectedReposForOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetSelectedReposForOrgSecretResponder = - (typeof actionsSetSelectedReposForOrgSecret)["responder"] & - KoaRuntimeResponder - export type ActionsSetSelectedReposForOrgSecret = ( params: Params< t_ActionsSetSelectedReposForOrgSecretParamSchema, @@ -6050,7 +5539,7 @@ export type ActionsSetSelectedReposForOrgSecret = ( t_ActionsSetSelectedReposForOrgSecretBodySchema, void >, - respond: ActionsSetSelectedReposForOrgSecretResponder, + respond: (typeof actionsSetSelectedReposForOrgSecret)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -6060,9 +5549,6 @@ const actionsAddSelectedRepoToOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsAddSelectedRepoToOrgSecretResponder = - (typeof actionsAddSelectedRepoToOrgSecret)["responder"] & KoaRuntimeResponder - export type ActionsAddSelectedRepoToOrgSecret = ( params: Params< t_ActionsAddSelectedRepoToOrgSecretParamSchema, @@ -6070,7 +5556,7 @@ export type ActionsAddSelectedRepoToOrgSecret = ( void, void >, - respond: ActionsAddSelectedRepoToOrgSecretResponder, + respond: (typeof actionsAddSelectedRepoToOrgSecret)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -6082,10 +5568,6 @@ const actionsRemoveSelectedRepoFromOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsRemoveSelectedRepoFromOrgSecretResponder = - (typeof actionsRemoveSelectedRepoFromOrgSecret)["responder"] & - KoaRuntimeResponder - export type ActionsRemoveSelectedRepoFromOrgSecret = ( params: Params< t_ActionsRemoveSelectedRepoFromOrgSecretParamSchema, @@ -6093,7 +5575,7 @@ export type ActionsRemoveSelectedRepoFromOrgSecret = ( void, void >, - respond: ActionsRemoveSelectedRepoFromOrgSecretResponder, + respond: (typeof actionsRemoveSelectedRepoFromOrgSecret)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -6112,9 +5594,6 @@ const actionsListOrgVariables = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListOrgVariablesResponder = - (typeof actionsListOrgVariables)["responder"] & KoaRuntimeResponder - export type ActionsListOrgVariables = ( params: Params< t_ActionsListOrgVariablesParamSchema, @@ -6122,7 +5601,7 @@ export type ActionsListOrgVariables = ( void, void >, - respond: ActionsListOrgVariablesResponder, + respond: (typeof actionsListOrgVariables)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6140,9 +5619,6 @@ const actionsCreateOrgVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateOrgVariableResponder = - (typeof actionsCreateOrgVariable)["responder"] & KoaRuntimeResponder - export type ActionsCreateOrgVariable = ( params: Params< t_ActionsCreateOrgVariableParamSchema, @@ -6150,7 +5626,7 @@ export type ActionsCreateOrgVariable = ( t_ActionsCreateOrgVariableBodySchema, void >, - respond: ActionsCreateOrgVariableResponder, + respond: (typeof actionsCreateOrgVariable)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> @@ -6161,12 +5637,9 @@ const actionsGetOrgVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetOrgVariableResponder = - (typeof actionsGetOrgVariable)["responder"] & KoaRuntimeResponder - export type ActionsGetOrgVariable = ( params: Params, - respond: ActionsGetOrgVariableResponder, + respond: (typeof actionsGetOrgVariable)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_organization_actions_variable> @@ -6177,9 +5650,6 @@ const actionsUpdateOrgVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsUpdateOrgVariableResponder = - (typeof actionsUpdateOrgVariable)["responder"] & KoaRuntimeResponder - export type ActionsUpdateOrgVariable = ( params: Params< t_ActionsUpdateOrgVariableParamSchema, @@ -6187,7 +5657,7 @@ export type ActionsUpdateOrgVariable = ( t_ActionsUpdateOrgVariableBodySchema, void >, - respond: ActionsUpdateOrgVariableResponder, + respond: (typeof actionsUpdateOrgVariable)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -6196,12 +5666,9 @@ const actionsDeleteOrgVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteOrgVariableResponder = - (typeof actionsDeleteOrgVariable)["responder"] & KoaRuntimeResponder - export type ActionsDeleteOrgVariable = ( params: Params, - respond: ActionsDeleteOrgVariableResponder, + respond: (typeof actionsDeleteOrgVariable)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -6219,10 +5686,6 @@ const actionsListSelectedReposForOrgVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListSelectedReposForOrgVariableResponder = - (typeof actionsListSelectedReposForOrgVariable)["responder"] & - KoaRuntimeResponder - export type ActionsListSelectedReposForOrgVariable = ( params: Params< t_ActionsListSelectedReposForOrgVariableParamSchema, @@ -6230,7 +5693,7 @@ export type ActionsListSelectedReposForOrgVariable = ( void, void >, - respond: ActionsListSelectedReposForOrgVariableResponder, + respond: (typeof actionsListSelectedReposForOrgVariable)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6250,10 +5713,6 @@ const actionsSetSelectedReposForOrgVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetSelectedReposForOrgVariableResponder = - (typeof actionsSetSelectedReposForOrgVariable)["responder"] & - KoaRuntimeResponder - export type ActionsSetSelectedReposForOrgVariable = ( params: Params< t_ActionsSetSelectedReposForOrgVariableParamSchema, @@ -6261,7 +5720,7 @@ export type ActionsSetSelectedReposForOrgVariable = ( t_ActionsSetSelectedReposForOrgVariableBodySchema, void >, - respond: ActionsSetSelectedReposForOrgVariableResponder, + respond: (typeof actionsSetSelectedReposForOrgVariable)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -6273,10 +5732,6 @@ const actionsAddSelectedRepoToOrgVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsAddSelectedRepoToOrgVariableResponder = - (typeof actionsAddSelectedRepoToOrgVariable)["responder"] & - KoaRuntimeResponder - export type ActionsAddSelectedRepoToOrgVariable = ( params: Params< t_ActionsAddSelectedRepoToOrgVariableParamSchema, @@ -6284,7 +5739,7 @@ export type ActionsAddSelectedRepoToOrgVariable = ( void, void >, - respond: ActionsAddSelectedRepoToOrgVariableResponder, + respond: (typeof actionsAddSelectedRepoToOrgVariable)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -6296,10 +5751,6 @@ const actionsRemoveSelectedRepoFromOrgVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsRemoveSelectedRepoFromOrgVariableResponder = - (typeof actionsRemoveSelectedRepoFromOrgVariable)["responder"] & - KoaRuntimeResponder - export type ActionsRemoveSelectedRepoFromOrgVariable = ( params: Params< t_ActionsRemoveSelectedRepoFromOrgVariableParamSchema, @@ -6307,7 +5758,7 @@ export type ActionsRemoveSelectedRepoFromOrgVariable = ( void, void >, - respond: ActionsRemoveSelectedRepoFromOrgVariableResponder, + respond: (typeof actionsRemoveSelectedRepoFromOrgVariable)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -6350,9 +5801,6 @@ const orgsListAttestations = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListAttestationsResponder = - (typeof orgsListAttestations)["responder"] & KoaRuntimeResponder - export type OrgsListAttestations = ( params: Params< t_OrgsListAttestationsParamSchema, @@ -6360,7 +5808,7 @@ export type OrgsListAttestations = ( void, void >, - respond: OrgsListAttestationsResponder, + respond: (typeof orgsListAttestations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6389,9 +5837,6 @@ const orgsListBlockedUsers = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListBlockedUsersResponder = - (typeof orgsListBlockedUsers)["responder"] & KoaRuntimeResponder - export type OrgsListBlockedUsers = ( params: Params< t_OrgsListBlockedUsersParamSchema, @@ -6399,7 +5844,7 @@ export type OrgsListBlockedUsers = ( void, void >, - respond: OrgsListBlockedUsersResponder, + respond: (typeof orgsListBlockedUsers)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> @@ -6409,12 +5854,9 @@ const orgsCheckBlockedUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCheckBlockedUserResponder = - (typeof orgsCheckBlockedUser)["responder"] & KoaRuntimeResponder - export type OrgsCheckBlockedUser = ( params: Params, - respond: OrgsCheckBlockedUserResponder, + respond: (typeof orgsCheckBlockedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6428,12 +5870,9 @@ const orgsBlockUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsBlockUserResponder = (typeof orgsBlockUser)["responder"] & - KoaRuntimeResponder - export type OrgsBlockUser = ( params: Params, - respond: OrgsBlockUserResponder, + respond: (typeof orgsBlockUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6446,12 +5885,9 @@ const orgsUnblockUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsUnblockUserResponder = (typeof orgsUnblockUser)["responder"] & - KoaRuntimeResponder - export type OrgsUnblockUser = ( params: Params, - respond: OrgsUnblockUserResponder, + respond: (typeof orgsUnblockUser)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -6472,9 +5908,6 @@ const campaignsListOrgCampaigns = b((r) => ({ withStatus: r.withStatus, })) -type CampaignsListOrgCampaignsResponder = - (typeof campaignsListOrgCampaigns)["responder"] & KoaRuntimeResponder - export type CampaignsListOrgCampaigns = ( params: Params< t_CampaignsListOrgCampaignsParamSchema, @@ -6482,7 +5915,7 @@ export type CampaignsListOrgCampaigns = ( void, void >, - respond: CampaignsListOrgCampaignsResponder, + respond: (typeof campaignsListOrgCampaigns)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6518,9 +5951,6 @@ const campaignsCreateCampaign = b((r) => ({ withStatus: r.withStatus, })) -type CampaignsCreateCampaignResponder = - (typeof campaignsCreateCampaign)["responder"] & KoaRuntimeResponder - export type CampaignsCreateCampaign = ( params: Params< t_CampaignsCreateCampaignParamSchema, @@ -6528,7 +5958,7 @@ export type CampaignsCreateCampaign = ( t_CampaignsCreateCampaignBodySchema, void >, - respond: CampaignsCreateCampaignResponder, + respond: (typeof campaignsCreateCampaign)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6565,12 +5995,9 @@ const campaignsGetCampaignSummary = b((r) => ({ withStatus: r.withStatus, })) -type CampaignsGetCampaignSummaryResponder = - (typeof campaignsGetCampaignSummary)["responder"] & KoaRuntimeResponder - export type CampaignsGetCampaignSummary = ( params: Params, - respond: CampaignsGetCampaignSummaryResponder, + respond: (typeof campaignsGetCampaignSummary)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6606,9 +6033,6 @@ const campaignsUpdateCampaign = b((r) => ({ withStatus: r.withStatus, })) -type CampaignsUpdateCampaignResponder = - (typeof campaignsUpdateCampaign)["responder"] & KoaRuntimeResponder - export type CampaignsUpdateCampaign = ( params: Params< t_CampaignsUpdateCampaignParamSchema, @@ -6616,7 +6040,7 @@ export type CampaignsUpdateCampaign = ( t_CampaignsUpdateCampaignBodySchema, void >, - respond: CampaignsUpdateCampaignResponder, + respond: (typeof campaignsUpdateCampaign)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6651,12 +6075,9 @@ const campaignsDeleteCampaign = b((r) => ({ withStatus: r.withStatus, })) -type CampaignsDeleteCampaignResponder = - (typeof campaignsDeleteCampaign)["responder"] & KoaRuntimeResponder - export type CampaignsDeleteCampaign = ( params: Params, - respond: CampaignsDeleteCampaignResponder, + respond: (typeof campaignsDeleteCampaign)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6691,9 +6112,6 @@ const codeScanningListAlertsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningListAlertsForOrgResponder = - (typeof codeScanningListAlertsForOrg)["responder"] & KoaRuntimeResponder - export type CodeScanningListAlertsForOrg = ( params: Params< t_CodeScanningListAlertsForOrgParamSchema, @@ -6701,7 +6119,7 @@ export type CodeScanningListAlertsForOrg = ( void, void >, - respond: CodeScanningListAlertsForOrgResponder, + respond: (typeof codeScanningListAlertsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6726,10 +6144,6 @@ const codeSecurityGetConfigurationsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetConfigurationsForOrgResponder = - (typeof codeSecurityGetConfigurationsForOrg)["responder"] & - KoaRuntimeResponder - export type CodeSecurityGetConfigurationsForOrg = ( params: Params< t_CodeSecurityGetConfigurationsForOrgParamSchema, @@ -6737,7 +6151,7 @@ export type CodeSecurityGetConfigurationsForOrg = ( void, void >, - respond: CodeSecurityGetConfigurationsForOrgResponder, + respond: (typeof codeSecurityGetConfigurationsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6753,9 +6167,6 @@ const codeSecurityCreateConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityCreateConfigurationResponder = - (typeof codeSecurityCreateConfiguration)["responder"] & KoaRuntimeResponder - export type CodeSecurityCreateConfiguration = ( params: Params< t_CodeSecurityCreateConfigurationParamSchema, @@ -6763,7 +6174,7 @@ export type CodeSecurityCreateConfiguration = ( t_CodeSecurityCreateConfigurationBodySchema, void >, - respond: CodeSecurityCreateConfigurationResponder, + respond: (typeof codeSecurityCreateConfiguration)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_code_security_configuration> @@ -6779,10 +6190,6 @@ const codeSecurityGetDefaultConfigurations = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetDefaultConfigurationsResponder = - (typeof codeSecurityGetDefaultConfigurations)["responder"] & - KoaRuntimeResponder - export type CodeSecurityGetDefaultConfigurations = ( params: Params< t_CodeSecurityGetDefaultConfigurationsParamSchema, @@ -6790,7 +6197,7 @@ export type CodeSecurityGetDefaultConfigurations = ( void, void >, - respond: CodeSecurityGetDefaultConfigurationsResponder, + respond: (typeof codeSecurityGetDefaultConfigurations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6809,9 +6216,6 @@ const codeSecurityDetachConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityDetachConfigurationResponder = - (typeof codeSecurityDetachConfiguration)["responder"] & KoaRuntimeResponder - export type CodeSecurityDetachConfiguration = ( params: Params< t_CodeSecurityDetachConfigurationParamSchema, @@ -6819,7 +6223,7 @@ export type CodeSecurityDetachConfiguration = ( t_CodeSecurityDetachConfigurationBodySchema, void >, - respond: CodeSecurityDetachConfigurationResponder, + respond: (typeof codeSecurityDetachConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6840,12 +6244,9 @@ const codeSecurityGetConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetConfigurationResponder = - (typeof codeSecurityGetConfiguration)["responder"] & KoaRuntimeResponder - export type CodeSecurityGetConfiguration = ( params: Params, - respond: CodeSecurityGetConfigurationResponder, + respond: (typeof codeSecurityGetConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6863,9 +6264,6 @@ const codeSecurityUpdateConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityUpdateConfigurationResponder = - (typeof codeSecurityUpdateConfiguration)["responder"] & KoaRuntimeResponder - export type CodeSecurityUpdateConfiguration = ( params: Params< t_CodeSecurityUpdateConfigurationParamSchema, @@ -6873,7 +6271,7 @@ export type CodeSecurityUpdateConfiguration = ( t_CodeSecurityUpdateConfigurationBodySchema, void >, - respond: CodeSecurityUpdateConfigurationResponder, + respond: (typeof codeSecurityUpdateConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6890,9 +6288,6 @@ const codeSecurityDeleteConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityDeleteConfigurationResponder = - (typeof codeSecurityDeleteConfiguration)["responder"] & KoaRuntimeResponder - export type CodeSecurityDeleteConfiguration = ( params: Params< t_CodeSecurityDeleteConfigurationParamSchema, @@ -6900,7 +6295,7 @@ export type CodeSecurityDeleteConfiguration = ( void, void >, - respond: CodeSecurityDeleteConfigurationResponder, + respond: (typeof codeSecurityDeleteConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6918,9 +6313,6 @@ const codeSecurityAttachConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityAttachConfigurationResponder = - (typeof codeSecurityAttachConfiguration)["responder"] & KoaRuntimeResponder - export type CodeSecurityAttachConfiguration = ( params: Params< t_CodeSecurityAttachConfigurationParamSchema, @@ -6928,7 +6320,7 @@ export type CodeSecurityAttachConfiguration = ( t_CodeSecurityAttachConfigurationBodySchema, void >, - respond: CodeSecurityAttachConfigurationResponder, + respond: (typeof codeSecurityAttachConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6957,10 +6349,6 @@ const codeSecuritySetConfigurationAsDefault = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecuritySetConfigurationAsDefaultResponder = - (typeof codeSecuritySetConfigurationAsDefault)["responder"] & - KoaRuntimeResponder - export type CodeSecuritySetConfigurationAsDefault = ( params: Params< t_CodeSecuritySetConfigurationAsDefaultParamSchema, @@ -6968,7 +6356,7 @@ export type CodeSecuritySetConfigurationAsDefault = ( t_CodeSecuritySetConfigurationAsDefaultBodySchema, void >, - respond: CodeSecuritySetConfigurationAsDefaultResponder, + respond: (typeof codeSecuritySetConfigurationAsDefault)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6996,10 +6384,6 @@ const codeSecurityGetRepositoriesForConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetRepositoriesForConfigurationResponder = - (typeof codeSecurityGetRepositoriesForConfiguration)["responder"] & - KoaRuntimeResponder - export type CodeSecurityGetRepositoriesForConfiguration = ( params: Params< t_CodeSecurityGetRepositoriesForConfigurationParamSchema, @@ -7007,7 +6391,7 @@ export type CodeSecurityGetRepositoriesForConfiguration = ( void, void >, - respond: CodeSecurityGetRepositoriesForConfigurationResponder, + respond: (typeof codeSecurityGetRepositoriesForConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7034,9 +6418,6 @@ const codespacesListInOrganization = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListInOrganizationResponder = - (typeof codespacesListInOrganization)["responder"] & KoaRuntimeResponder - export type CodespacesListInOrganization = ( params: Params< t_CodespacesListInOrganizationParamSchema, @@ -7044,7 +6425,7 @@ export type CodespacesListInOrganization = ( void, void >, - respond: CodespacesListInOrganizationResponder, + respond: (typeof codespacesListInOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7072,9 +6453,6 @@ const codespacesSetCodespacesAccess = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesSetCodespacesAccessResponder = - (typeof codespacesSetCodespacesAccess)["responder"] & KoaRuntimeResponder - export type CodespacesSetCodespacesAccess = ( params: Params< t_CodespacesSetCodespacesAccessParamSchema, @@ -7082,7 +6460,7 @@ export type CodespacesSetCodespacesAccess = ( t_CodespacesSetCodespacesAccessBodySchema, void >, - respond: CodespacesSetCodespacesAccessResponder, + respond: (typeof codespacesSetCodespacesAccess)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7104,9 +6482,6 @@ const codespacesSetCodespacesAccessUsers = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesSetCodespacesAccessUsersResponder = - (typeof codespacesSetCodespacesAccessUsers)["responder"] & KoaRuntimeResponder - export type CodespacesSetCodespacesAccessUsers = ( params: Params< t_CodespacesSetCodespacesAccessUsersParamSchema, @@ -7114,7 +6489,7 @@ export type CodespacesSetCodespacesAccessUsers = ( t_CodespacesSetCodespacesAccessUsersBodySchema, void >, - respond: CodespacesSetCodespacesAccessUsersResponder, + respond: (typeof codespacesSetCodespacesAccessUsers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7136,10 +6511,6 @@ const codespacesDeleteCodespacesAccessUsers = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesDeleteCodespacesAccessUsersResponder = - (typeof codespacesDeleteCodespacesAccessUsers)["responder"] & - KoaRuntimeResponder - export type CodespacesDeleteCodespacesAccessUsers = ( params: Params< t_CodespacesDeleteCodespacesAccessUsersParamSchema, @@ -7147,7 +6518,7 @@ export type CodespacesDeleteCodespacesAccessUsers = ( t_CodespacesDeleteCodespacesAccessUsersBodySchema, void >, - respond: CodespacesDeleteCodespacesAccessUsersResponder, + respond: (typeof codespacesDeleteCodespacesAccessUsers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7172,9 +6543,6 @@ const codespacesListOrgSecrets = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListOrgSecretsResponder = - (typeof codespacesListOrgSecrets)["responder"] & KoaRuntimeResponder - export type CodespacesListOrgSecrets = ( params: Params< t_CodespacesListOrgSecretsParamSchema, @@ -7182,7 +6550,7 @@ export type CodespacesListOrgSecrets = ( void, void >, - respond: CodespacesListOrgSecretsResponder, + respond: (typeof codespacesListOrgSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7200,12 +6568,9 @@ const codespacesGetOrgPublicKey = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetOrgPublicKeyResponder = - (typeof codespacesGetOrgPublicKey)["responder"] & KoaRuntimeResponder - export type CodespacesGetOrgPublicKey = ( params: Params, - respond: CodespacesGetOrgPublicKeyResponder, + respond: (typeof codespacesGetOrgPublicKey)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_codespaces_public_key> @@ -7216,12 +6581,9 @@ const codespacesGetOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetOrgSecretResponder = - (typeof codespacesGetOrgSecret)["responder"] & KoaRuntimeResponder - export type CodespacesGetOrgSecret = ( params: Params, - respond: CodespacesGetOrgSecretResponder, + respond: (typeof codespacesGetOrgSecret)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_codespaces_org_secret> @@ -7235,9 +6597,6 @@ const codespacesCreateOrUpdateOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesCreateOrUpdateOrgSecretResponder = - (typeof codespacesCreateOrUpdateOrgSecret)["responder"] & KoaRuntimeResponder - export type CodespacesCreateOrUpdateOrgSecret = ( params: Params< t_CodespacesCreateOrUpdateOrgSecretParamSchema, @@ -7245,7 +6604,7 @@ export type CodespacesCreateOrUpdateOrgSecret = ( t_CodespacesCreateOrUpdateOrgSecretBodySchema, void >, - respond: CodespacesCreateOrUpdateOrgSecretResponder, + respond: (typeof codespacesCreateOrUpdateOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7261,12 +6620,9 @@ const codespacesDeleteOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesDeleteOrgSecretResponder = - (typeof codespacesDeleteOrgSecret)["responder"] & KoaRuntimeResponder - export type CodespacesDeleteOrgSecret = ( params: Params, - respond: CodespacesDeleteOrgSecretResponder, + respond: (typeof codespacesDeleteOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7288,10 +6644,6 @@ const codespacesListSelectedReposForOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListSelectedReposForOrgSecretResponder = - (typeof codespacesListSelectedReposForOrgSecret)["responder"] & - KoaRuntimeResponder - export type CodespacesListSelectedReposForOrgSecret = ( params: Params< t_CodespacesListSelectedReposForOrgSecretParamSchema, @@ -7299,7 +6651,7 @@ export type CodespacesListSelectedReposForOrgSecret = ( void, void >, - respond: CodespacesListSelectedReposForOrgSecretResponder, + respond: (typeof codespacesListSelectedReposForOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7320,10 +6672,6 @@ const codespacesSetSelectedReposForOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesSetSelectedReposForOrgSecretResponder = - (typeof codespacesSetSelectedReposForOrgSecret)["responder"] & - KoaRuntimeResponder - export type CodespacesSetSelectedReposForOrgSecret = ( params: Params< t_CodespacesSetSelectedReposForOrgSecretParamSchema, @@ -7331,7 +6679,7 @@ export type CodespacesSetSelectedReposForOrgSecret = ( t_CodespacesSetSelectedReposForOrgSecretBodySchema, void >, - respond: CodespacesSetSelectedReposForOrgSecretResponder, + respond: (typeof codespacesSetSelectedReposForOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7348,10 +6696,6 @@ const codespacesAddSelectedRepoToOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesAddSelectedRepoToOrgSecretResponder = - (typeof codespacesAddSelectedRepoToOrgSecret)["responder"] & - KoaRuntimeResponder - export type CodespacesAddSelectedRepoToOrgSecret = ( params: Params< t_CodespacesAddSelectedRepoToOrgSecretParamSchema, @@ -7359,7 +6703,7 @@ export type CodespacesAddSelectedRepoToOrgSecret = ( void, void >, - respond: CodespacesAddSelectedRepoToOrgSecretResponder, + respond: (typeof codespacesAddSelectedRepoToOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7377,10 +6721,6 @@ const codespacesRemoveSelectedRepoFromOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesRemoveSelectedRepoFromOrgSecretResponder = - (typeof codespacesRemoveSelectedRepoFromOrgSecret)["responder"] & - KoaRuntimeResponder - export type CodespacesRemoveSelectedRepoFromOrgSecret = ( params: Params< t_CodespacesRemoveSelectedRepoFromOrgSecretParamSchema, @@ -7388,7 +6728,7 @@ export type CodespacesRemoveSelectedRepoFromOrgSecret = ( void, void >, - respond: CodespacesRemoveSelectedRepoFromOrgSecretResponder, + respond: (typeof codespacesRemoveSelectedRepoFromOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7410,10 +6750,6 @@ const copilotGetCopilotOrganizationDetails = b((r) => ({ withStatus: r.withStatus, })) -type CopilotGetCopilotOrganizationDetailsResponder = - (typeof copilotGetCopilotOrganizationDetails)["responder"] & - KoaRuntimeResponder - export type CopilotGetCopilotOrganizationDetails = ( params: Params< t_CopilotGetCopilotOrganizationDetailsParamSchema, @@ -7421,7 +6757,7 @@ export type CopilotGetCopilotOrganizationDetails = ( void, void >, - respond: CopilotGetCopilotOrganizationDetailsResponder, + respond: (typeof copilotGetCopilotOrganizationDetails)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7450,9 +6786,6 @@ const copilotListCopilotSeats = b((r) => ({ withStatus: r.withStatus, })) -type CopilotListCopilotSeatsResponder = - (typeof copilotListCopilotSeats)["responder"] & KoaRuntimeResponder - export type CopilotListCopilotSeats = ( params: Params< t_CopilotListCopilotSeatsParamSchema, @@ -7460,7 +6793,7 @@ export type CopilotListCopilotSeats = ( void, void >, - respond: CopilotListCopilotSeatsResponder, + respond: (typeof copilotListCopilotSeats)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7489,9 +6822,6 @@ const copilotAddCopilotSeatsForTeams = b((r) => ({ withStatus: r.withStatus, })) -type CopilotAddCopilotSeatsForTeamsResponder = - (typeof copilotAddCopilotSeatsForTeams)["responder"] & KoaRuntimeResponder - export type CopilotAddCopilotSeatsForTeams = ( params: Params< t_CopilotAddCopilotSeatsForTeamsParamSchema, @@ -7499,7 +6829,7 @@ export type CopilotAddCopilotSeatsForTeams = ( t_CopilotAddCopilotSeatsForTeamsBodySchema, void >, - respond: CopilotAddCopilotSeatsForTeamsResponder, + respond: (typeof copilotAddCopilotSeatsForTeams)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7528,10 +6858,6 @@ const copilotCancelCopilotSeatAssignmentForTeams = b((r) => ({ withStatus: r.withStatus, })) -type CopilotCancelCopilotSeatAssignmentForTeamsResponder = - (typeof copilotCancelCopilotSeatAssignmentForTeams)["responder"] & - KoaRuntimeResponder - export type CopilotCancelCopilotSeatAssignmentForTeams = ( params: Params< t_CopilotCancelCopilotSeatAssignmentForTeamsParamSchema, @@ -7539,7 +6865,7 @@ export type CopilotCancelCopilotSeatAssignmentForTeams = ( t_CopilotCancelCopilotSeatAssignmentForTeamsBodySchema, void >, - respond: CopilotCancelCopilotSeatAssignmentForTeamsResponder, + respond: (typeof copilotCancelCopilotSeatAssignmentForTeams)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7568,9 +6894,6 @@ const copilotAddCopilotSeatsForUsers = b((r) => ({ withStatus: r.withStatus, })) -type CopilotAddCopilotSeatsForUsersResponder = - (typeof copilotAddCopilotSeatsForUsers)["responder"] & KoaRuntimeResponder - export type CopilotAddCopilotSeatsForUsers = ( params: Params< t_CopilotAddCopilotSeatsForUsersParamSchema, @@ -7578,7 +6901,7 @@ export type CopilotAddCopilotSeatsForUsers = ( t_CopilotAddCopilotSeatsForUsersBodySchema, void >, - respond: CopilotAddCopilotSeatsForUsersResponder, + respond: (typeof copilotAddCopilotSeatsForUsers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7607,10 +6930,6 @@ const copilotCancelCopilotSeatAssignmentForUsers = b((r) => ({ withStatus: r.withStatus, })) -type CopilotCancelCopilotSeatAssignmentForUsersResponder = - (typeof copilotCancelCopilotSeatAssignmentForUsers)["responder"] & - KoaRuntimeResponder - export type CopilotCancelCopilotSeatAssignmentForUsers = ( params: Params< t_CopilotCancelCopilotSeatAssignmentForUsersParamSchema, @@ -7618,7 +6937,7 @@ export type CopilotCancelCopilotSeatAssignmentForUsers = ( t_CopilotCancelCopilotSeatAssignmentForUsersBodySchema, void >, - respond: CopilotCancelCopilotSeatAssignmentForUsersResponder, + respond: (typeof copilotCancelCopilotSeatAssignmentForUsers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7646,10 +6965,6 @@ const copilotCopilotMetricsForOrganization = b((r) => ({ withStatus: r.withStatus, })) -type CopilotCopilotMetricsForOrganizationResponder = - (typeof copilotCopilotMetricsForOrganization)["responder"] & - KoaRuntimeResponder - export type CopilotCopilotMetricsForOrganization = ( params: Params< t_CopilotCopilotMetricsForOrganizationParamSchema, @@ -7657,7 +6972,7 @@ export type CopilotCopilotMetricsForOrganization = ( void, void >, - respond: CopilotCopilotMetricsForOrganizationResponder, + respond: (typeof copilotCopilotMetricsForOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7680,9 +6995,6 @@ const dependabotListAlertsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type DependabotListAlertsForOrgResponder = - (typeof dependabotListAlertsForOrg)["responder"] & KoaRuntimeResponder - export type DependabotListAlertsForOrg = ( params: Params< t_DependabotListAlertsForOrgParamSchema, @@ -7690,7 +7002,7 @@ export type DependabotListAlertsForOrg = ( void, void >, - respond: DependabotListAlertsForOrgResponder, + respond: (typeof dependabotListAlertsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7715,9 +7027,6 @@ const dependabotListOrgSecrets = b((r) => ({ withStatus: r.withStatus, })) -type DependabotListOrgSecretsResponder = - (typeof dependabotListOrgSecrets)["responder"] & KoaRuntimeResponder - export type DependabotListOrgSecrets = ( params: Params< t_DependabotListOrgSecretsParamSchema, @@ -7725,7 +7034,7 @@ export type DependabotListOrgSecrets = ( void, void >, - respond: DependabotListOrgSecretsResponder, + respond: (typeof dependabotListOrgSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7743,12 +7052,9 @@ const dependabotGetOrgPublicKey = b((r) => ({ withStatus: r.withStatus, })) -type DependabotGetOrgPublicKeyResponder = - (typeof dependabotGetOrgPublicKey)["responder"] & KoaRuntimeResponder - export type DependabotGetOrgPublicKey = ( params: Params, - respond: DependabotGetOrgPublicKeyResponder, + respond: (typeof dependabotGetOrgPublicKey)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_dependabot_public_key> @@ -7761,12 +7067,9 @@ const dependabotGetOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotGetOrgSecretResponder = - (typeof dependabotGetOrgSecret)["responder"] & KoaRuntimeResponder - export type DependabotGetOrgSecret = ( params: Params, - respond: DependabotGetOrgSecretResponder, + respond: (typeof dependabotGetOrgSecret)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_organization_dependabot_secret> @@ -7778,9 +7081,6 @@ const dependabotCreateOrUpdateOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotCreateOrUpdateOrgSecretResponder = - (typeof dependabotCreateOrUpdateOrgSecret)["responder"] & KoaRuntimeResponder - export type DependabotCreateOrUpdateOrgSecret = ( params: Params< t_DependabotCreateOrUpdateOrgSecretParamSchema, @@ -7788,7 +7088,7 @@ export type DependabotCreateOrUpdateOrgSecret = ( t_DependabotCreateOrUpdateOrgSecretBodySchema, void >, - respond: DependabotCreateOrUpdateOrgSecretResponder, + respond: (typeof dependabotCreateOrUpdateOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7801,12 +7101,9 @@ const dependabotDeleteOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotDeleteOrgSecretResponder = - (typeof dependabotDeleteOrgSecret)["responder"] & KoaRuntimeResponder - export type DependabotDeleteOrgSecret = ( params: Params, - respond: DependabotDeleteOrgSecretResponder, + respond: (typeof dependabotDeleteOrgSecret)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -7823,10 +7120,6 @@ const dependabotListSelectedReposForOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotListSelectedReposForOrgSecretResponder = - (typeof dependabotListSelectedReposForOrgSecret)["responder"] & - KoaRuntimeResponder - export type DependabotListSelectedReposForOrgSecret = ( params: Params< t_DependabotListSelectedReposForOrgSecretParamSchema, @@ -7834,7 +7127,7 @@ export type DependabotListSelectedReposForOrgSecret = ( void, void >, - respond: DependabotListSelectedReposForOrgSecretResponder, + respond: (typeof dependabotListSelectedReposForOrgSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7852,10 +7145,6 @@ const dependabotSetSelectedReposForOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotSetSelectedReposForOrgSecretResponder = - (typeof dependabotSetSelectedReposForOrgSecret)["responder"] & - KoaRuntimeResponder - export type DependabotSetSelectedReposForOrgSecret = ( params: Params< t_DependabotSetSelectedReposForOrgSecretParamSchema, @@ -7863,7 +7152,7 @@ export type DependabotSetSelectedReposForOrgSecret = ( t_DependabotSetSelectedReposForOrgSecretBodySchema, void >, - respond: DependabotSetSelectedReposForOrgSecretResponder, + respond: (typeof dependabotSetSelectedReposForOrgSecret)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -7873,10 +7162,6 @@ const dependabotAddSelectedRepoToOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotAddSelectedRepoToOrgSecretResponder = - (typeof dependabotAddSelectedRepoToOrgSecret)["responder"] & - KoaRuntimeResponder - export type DependabotAddSelectedRepoToOrgSecret = ( params: Params< t_DependabotAddSelectedRepoToOrgSecretParamSchema, @@ -7884,7 +7169,7 @@ export type DependabotAddSelectedRepoToOrgSecret = ( void, void >, - respond: DependabotAddSelectedRepoToOrgSecretResponder, + respond: (typeof dependabotAddSelectedRepoToOrgSecret)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -7896,10 +7181,6 @@ const dependabotRemoveSelectedRepoFromOrgSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotRemoveSelectedRepoFromOrgSecretResponder = - (typeof dependabotRemoveSelectedRepoFromOrgSecret)["responder"] & - KoaRuntimeResponder - export type DependabotRemoveSelectedRepoFromOrgSecret = ( params: Params< t_DependabotRemoveSelectedRepoFromOrgSecretParamSchema, @@ -7907,7 +7188,7 @@ export type DependabotRemoveSelectedRepoFromOrgSecret = ( void, void >, - respond: DependabotRemoveSelectedRepoFromOrgSecretResponder, + respond: (typeof dependabotRemoveSelectedRepoFromOrgSecret)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -7922,10 +7203,6 @@ const packagesListDockerMigrationConflictingPackagesForOrganization = b( }), ) -type PackagesListDockerMigrationConflictingPackagesForOrganizationResponder = - (typeof packagesListDockerMigrationConflictingPackagesForOrganization)["responder"] & - KoaRuntimeResponder - export type PackagesListDockerMigrationConflictingPackagesForOrganization = ( params: Params< t_PackagesListDockerMigrationConflictingPackagesForOrganizationParamSchema, @@ -7933,7 +7210,7 @@ export type PackagesListDockerMigrationConflictingPackagesForOrganization = ( void, void >, - respond: PackagesListDockerMigrationConflictingPackagesForOrganizationResponder, + respond: (typeof packagesListDockerMigrationConflictingPackagesForOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7947,9 +7224,6 @@ const activityListPublicOrgEvents = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListPublicOrgEventsResponder = - (typeof activityListPublicOrgEvents)["responder"] & KoaRuntimeResponder - export type ActivityListPublicOrgEvents = ( params: Params< t_ActivityListPublicOrgEventsParamSchema, @@ -7957,7 +7231,7 @@ export type ActivityListPublicOrgEvents = ( void, void >, - respond: ActivityListPublicOrgEventsResponder, + respond: (typeof activityListPublicOrgEvents)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_event[]>> @@ -7969,9 +7243,6 @@ const orgsListFailedInvitations = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListFailedInvitationsResponder = - (typeof orgsListFailedInvitations)["responder"] & KoaRuntimeResponder - export type OrgsListFailedInvitations = ( params: Params< t_OrgsListFailedInvitationsParamSchema, @@ -7979,7 +7250,7 @@ export type OrgsListFailedInvitations = ( void, void >, - respond: OrgsListFailedInvitationsResponder, + respond: (typeof orgsListFailedInvitations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7993,9 +7264,6 @@ const orgsListWebhooks = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListWebhooksResponder = (typeof orgsListWebhooks)["responder"] & - KoaRuntimeResponder - export type OrgsListWebhooks = ( params: Params< t_OrgsListWebhooksParamSchema, @@ -8003,7 +7271,7 @@ export type OrgsListWebhooks = ( void, void >, - respond: OrgsListWebhooksResponder, + respond: (typeof orgsListWebhooks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8018,9 +7286,6 @@ const orgsCreateWebhook = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCreateWebhookResponder = (typeof orgsCreateWebhook)["responder"] & - KoaRuntimeResponder - export type OrgsCreateWebhook = ( params: Params< t_OrgsCreateWebhookParamSchema, @@ -8028,7 +7293,7 @@ export type OrgsCreateWebhook = ( t_OrgsCreateWebhookBodySchema, void >, - respond: OrgsCreateWebhookResponder, + respond: (typeof orgsCreateWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8043,12 +7308,9 @@ const orgsGetWebhook = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetWebhookResponder = (typeof orgsGetWebhook)["responder"] & - KoaRuntimeResponder - export type OrgsGetWebhook = ( params: Params, - respond: OrgsGetWebhookResponder, + respond: (typeof orgsGetWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8063,9 +7325,6 @@ const orgsUpdateWebhook = b((r) => ({ withStatus: r.withStatus, })) -type OrgsUpdateWebhookResponder = (typeof orgsUpdateWebhook)["responder"] & - KoaRuntimeResponder - export type OrgsUpdateWebhook = ( params: Params< t_OrgsUpdateWebhookParamSchema, @@ -8073,7 +7332,7 @@ export type OrgsUpdateWebhook = ( t_OrgsUpdateWebhookBodySchema | undefined, void >, - respond: OrgsUpdateWebhookResponder, + respond: (typeof orgsUpdateWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8088,12 +7347,9 @@ const orgsDeleteWebhook = b((r) => ({ withStatus: r.withStatus, })) -type OrgsDeleteWebhookResponder = (typeof orgsDeleteWebhook)["responder"] & - KoaRuntimeResponder - export type OrgsDeleteWebhook = ( params: Params, - respond: OrgsDeleteWebhookResponder, + respond: (typeof orgsDeleteWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8106,12 +7362,9 @@ const orgsGetWebhookConfigForOrg = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetWebhookConfigForOrgResponder = - (typeof orgsGetWebhookConfigForOrg)["responder"] & KoaRuntimeResponder - export type OrgsGetWebhookConfigForOrg = ( params: Params, - respond: OrgsGetWebhookConfigForOrgResponder, + respond: (typeof orgsGetWebhookConfigForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> @@ -8120,9 +7373,6 @@ const orgsUpdateWebhookConfigForOrg = b((r) => ({ withStatus: r.withStatus, })) -type OrgsUpdateWebhookConfigForOrgResponder = - (typeof orgsUpdateWebhookConfigForOrg)["responder"] & KoaRuntimeResponder - export type OrgsUpdateWebhookConfigForOrg = ( params: Params< t_OrgsUpdateWebhookConfigForOrgParamSchema, @@ -8130,7 +7380,7 @@ export type OrgsUpdateWebhookConfigForOrg = ( t_OrgsUpdateWebhookConfigForOrgBodySchema | undefined, void >, - respond: OrgsUpdateWebhookConfigForOrgResponder, + respond: (typeof orgsUpdateWebhookConfigForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> @@ -8141,9 +7391,6 @@ const orgsListWebhookDeliveries = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListWebhookDeliveriesResponder = - (typeof orgsListWebhookDeliveries)["responder"] & KoaRuntimeResponder - export type OrgsListWebhookDeliveries = ( params: Params< t_OrgsListWebhookDeliveriesParamSchema, @@ -8151,7 +7398,7 @@ export type OrgsListWebhookDeliveries = ( void, void >, - respond: OrgsListWebhookDeliveriesResponder, + respond: (typeof orgsListWebhookDeliveries)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8167,12 +7414,9 @@ const orgsGetWebhookDelivery = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetWebhookDeliveryResponder = - (typeof orgsGetWebhookDelivery)["responder"] & KoaRuntimeResponder - export type OrgsGetWebhookDelivery = ( params: Params, - respond: OrgsGetWebhookDeliveryResponder, + respond: (typeof orgsGetWebhookDelivery)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8190,12 +7434,9 @@ const orgsRedeliverWebhookDelivery = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRedeliverWebhookDeliveryResponder = - (typeof orgsRedeliverWebhookDelivery)["responder"] & KoaRuntimeResponder - export type OrgsRedeliverWebhookDelivery = ( params: Params, - respond: OrgsRedeliverWebhookDeliveryResponder, + respond: (typeof orgsRedeliverWebhookDelivery)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8215,12 +7456,9 @@ const orgsPingWebhook = b((r) => ({ withStatus: r.withStatus, })) -type OrgsPingWebhookResponder = (typeof orgsPingWebhook)["responder"] & - KoaRuntimeResponder - export type OrgsPingWebhook = ( params: Params, - respond: OrgsPingWebhookResponder, + respond: (typeof orgsPingWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8233,9 +7471,6 @@ const apiInsightsGetRouteStatsByActor = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetRouteStatsByActorResponder = - (typeof apiInsightsGetRouteStatsByActor)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetRouteStatsByActor = ( params: Params< t_ApiInsightsGetRouteStatsByActorParamSchema, @@ -8243,7 +7478,7 @@ export type ApiInsightsGetRouteStatsByActor = ( void, void >, - respond: ApiInsightsGetRouteStatsByActorResponder, + respond: (typeof apiInsightsGetRouteStatsByActor)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_route_stats> @@ -8256,9 +7491,6 @@ const apiInsightsGetSubjectStats = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetSubjectStatsResponder = - (typeof apiInsightsGetSubjectStats)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetSubjectStats = ( params: Params< t_ApiInsightsGetSubjectStatsParamSchema, @@ -8266,7 +7498,7 @@ export type ApiInsightsGetSubjectStats = ( void, void >, - respond: ApiInsightsGetSubjectStatsResponder, + respond: (typeof apiInsightsGetSubjectStats)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_subject_stats> @@ -8279,9 +7511,6 @@ const apiInsightsGetSummaryStats = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetSummaryStatsResponder = - (typeof apiInsightsGetSummaryStats)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetSummaryStats = ( params: Params< t_ApiInsightsGetSummaryStatsParamSchema, @@ -8289,7 +7518,7 @@ export type ApiInsightsGetSummaryStats = ( void, void >, - respond: ApiInsightsGetSummaryStatsResponder, + respond: (typeof apiInsightsGetSummaryStats)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> @@ -8302,9 +7531,6 @@ const apiInsightsGetSummaryStatsByUser = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetSummaryStatsByUserResponder = - (typeof apiInsightsGetSummaryStatsByUser)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetSummaryStatsByUser = ( params: Params< t_ApiInsightsGetSummaryStatsByUserParamSchema, @@ -8312,7 +7538,7 @@ export type ApiInsightsGetSummaryStatsByUser = ( void, void >, - respond: ApiInsightsGetSummaryStatsByUserResponder, + respond: (typeof apiInsightsGetSummaryStatsByUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> @@ -8325,9 +7551,6 @@ const apiInsightsGetSummaryStatsByActor = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetSummaryStatsByActorResponder = - (typeof apiInsightsGetSummaryStatsByActor)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetSummaryStatsByActor = ( params: Params< t_ApiInsightsGetSummaryStatsByActorParamSchema, @@ -8335,7 +7558,7 @@ export type ApiInsightsGetSummaryStatsByActor = ( void, void >, - respond: ApiInsightsGetSummaryStatsByActorResponder, + respond: (typeof apiInsightsGetSummaryStatsByActor)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_summary_stats> @@ -8346,9 +7569,6 @@ const apiInsightsGetTimeStats = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetTimeStatsResponder = - (typeof apiInsightsGetTimeStats)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetTimeStats = ( params: Params< t_ApiInsightsGetTimeStatsParamSchema, @@ -8356,7 +7576,7 @@ export type ApiInsightsGetTimeStats = ( void, void >, - respond: ApiInsightsGetTimeStatsResponder, + respond: (typeof apiInsightsGetTimeStats)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_time_stats> @@ -8367,9 +7587,6 @@ const apiInsightsGetTimeStatsByUser = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetTimeStatsByUserResponder = - (typeof apiInsightsGetTimeStatsByUser)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetTimeStatsByUser = ( params: Params< t_ApiInsightsGetTimeStatsByUserParamSchema, @@ -8377,7 +7594,7 @@ export type ApiInsightsGetTimeStatsByUser = ( void, void >, - respond: ApiInsightsGetTimeStatsByUserResponder, + respond: (typeof apiInsightsGetTimeStatsByUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_time_stats> @@ -8388,9 +7605,6 @@ const apiInsightsGetTimeStatsByActor = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetTimeStatsByActorResponder = - (typeof apiInsightsGetTimeStatsByActor)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetTimeStatsByActor = ( params: Params< t_ApiInsightsGetTimeStatsByActorParamSchema, @@ -8398,7 +7612,7 @@ export type ApiInsightsGetTimeStatsByActor = ( void, void >, - respond: ApiInsightsGetTimeStatsByActorResponder, + respond: (typeof apiInsightsGetTimeStatsByActor)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_time_stats> @@ -8409,9 +7623,6 @@ const apiInsightsGetUserStats = b((r) => ({ withStatus: r.withStatus, })) -type ApiInsightsGetUserStatsResponder = - (typeof apiInsightsGetUserStats)["responder"] & KoaRuntimeResponder - export type ApiInsightsGetUserStats = ( params: Params< t_ApiInsightsGetUserStatsParamSchema, @@ -8419,7 +7630,7 @@ export type ApiInsightsGetUserStats = ( void, void >, - respond: ApiInsightsGetUserStatsResponder, + respond: (typeof apiInsightsGetUserStats)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_api_insights_user_stats> @@ -8430,12 +7641,9 @@ const appsGetOrgInstallation = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetOrgInstallationResponder = - (typeof appsGetOrgInstallation)["responder"] & KoaRuntimeResponder - export type AppsGetOrgInstallation = ( params: Params, - respond: AppsGetOrgInstallationResponder, + respond: (typeof appsGetOrgInstallation)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_installation>> @@ -8452,9 +7660,6 @@ const orgsListAppInstallations = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListAppInstallationsResponder = - (typeof orgsListAppInstallations)["responder"] & KoaRuntimeResponder - export type OrgsListAppInstallations = ( params: Params< t_OrgsListAppInstallationsParamSchema, @@ -8462,7 +7667,7 @@ export type OrgsListAppInstallations = ( void, void >, - respond: OrgsListAppInstallationsResponder, + respond: (typeof orgsListAppInstallations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8482,9 +7687,6 @@ const interactionsGetRestrictionsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsGetRestrictionsForOrgResponder = - (typeof interactionsGetRestrictionsForOrg)["responder"] & KoaRuntimeResponder - export type InteractionsGetRestrictionsForOrg = ( params: Params< t_InteractionsGetRestrictionsForOrgParamSchema, @@ -8492,7 +7694,7 @@ export type InteractionsGetRestrictionsForOrg = ( void, void >, - respond: InteractionsGetRestrictionsForOrgResponder, + respond: (typeof interactionsGetRestrictionsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8507,9 +7709,6 @@ const interactionsSetRestrictionsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsSetRestrictionsForOrgResponder = - (typeof interactionsSetRestrictionsForOrg)["responder"] & KoaRuntimeResponder - export type InteractionsSetRestrictionsForOrg = ( params: Params< t_InteractionsSetRestrictionsForOrgParamSchema, @@ -8517,7 +7716,7 @@ export type InteractionsSetRestrictionsForOrg = ( t_InteractionsSetRestrictionsForOrgBodySchema, void >, - respond: InteractionsSetRestrictionsForOrgResponder, + respond: (typeof interactionsSetRestrictionsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8530,10 +7729,6 @@ const interactionsRemoveRestrictionsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsRemoveRestrictionsForOrgResponder = - (typeof interactionsRemoveRestrictionsForOrg)["responder"] & - KoaRuntimeResponder - export type InteractionsRemoveRestrictionsForOrg = ( params: Params< t_InteractionsRemoveRestrictionsForOrgParamSchema, @@ -8541,7 +7736,7 @@ export type InteractionsRemoveRestrictionsForOrg = ( void, void >, - respond: InteractionsRemoveRestrictionsForOrgResponder, + respond: (typeof interactionsRemoveRestrictionsForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -8553,9 +7748,6 @@ const orgsListPendingInvitations = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListPendingInvitationsResponder = - (typeof orgsListPendingInvitations)["responder"] & KoaRuntimeResponder - export type OrgsListPendingInvitations = ( params: Params< t_OrgsListPendingInvitationsParamSchema, @@ -8563,7 +7755,7 @@ export type OrgsListPendingInvitations = ( void, void >, - respond: OrgsListPendingInvitationsResponder, + respond: (typeof orgsListPendingInvitations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8578,9 +7770,6 @@ const orgsCreateInvitation = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCreateInvitationResponder = - (typeof orgsCreateInvitation)["responder"] & KoaRuntimeResponder - export type OrgsCreateInvitation = ( params: Params< t_OrgsCreateInvitationParamSchema, @@ -8588,7 +7777,7 @@ export type OrgsCreateInvitation = ( t_OrgsCreateInvitationBodySchema | undefined, void >, - respond: OrgsCreateInvitationResponder, + respond: (typeof orgsCreateInvitation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8604,12 +7793,9 @@ const orgsCancelInvitation = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCancelInvitationResponder = - (typeof orgsCancelInvitation)["responder"] & KoaRuntimeResponder - export type OrgsCancelInvitation = ( params: Params, - respond: OrgsCancelInvitationResponder, + respond: (typeof orgsCancelInvitation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8624,9 +7810,6 @@ const orgsListInvitationTeams = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListInvitationTeamsResponder = - (typeof orgsListInvitationTeams)["responder"] & KoaRuntimeResponder - export type OrgsListInvitationTeams = ( params: Params< t_OrgsListInvitationTeamsParamSchema, @@ -8634,7 +7817,7 @@ export type OrgsListInvitationTeams = ( void, void >, - respond: OrgsListInvitationTeamsResponder, + respond: (typeof orgsListInvitationTeams)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8648,12 +7831,9 @@ const orgsListIssueTypes = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListIssueTypesResponder = (typeof orgsListIssueTypes)["responder"] & - KoaRuntimeResponder - export type OrgsListIssueTypes = ( params: Params, - respond: OrgsListIssueTypesResponder, + respond: (typeof orgsListIssueTypes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8668,9 +7848,6 @@ const orgsCreateIssueType = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCreateIssueTypeResponder = (typeof orgsCreateIssueType)["responder"] & - KoaRuntimeResponder - export type OrgsCreateIssueType = ( params: Params< t_OrgsCreateIssueTypeParamSchema, @@ -8678,7 +7855,7 @@ export type OrgsCreateIssueType = ( t_OrgsCreateIssueTypeBodySchema, void >, - respond: OrgsCreateIssueTypeResponder, + respond: (typeof orgsCreateIssueType)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8694,9 +7871,6 @@ const orgsUpdateIssueType = b((r) => ({ withStatus: r.withStatus, })) -type OrgsUpdateIssueTypeResponder = (typeof orgsUpdateIssueType)["responder"] & - KoaRuntimeResponder - export type OrgsUpdateIssueType = ( params: Params< t_OrgsUpdateIssueTypeParamSchema, @@ -8704,7 +7878,7 @@ export type OrgsUpdateIssueType = ( t_OrgsUpdateIssueTypeBodySchema, void >, - respond: OrgsUpdateIssueTypeResponder, + respond: (typeof orgsUpdateIssueType)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8720,12 +7894,9 @@ const orgsDeleteIssueType = b((r) => ({ withStatus: r.withStatus, })) -type OrgsDeleteIssueTypeResponder = (typeof orgsDeleteIssueType)["responder"] & - KoaRuntimeResponder - export type OrgsDeleteIssueType = ( params: Params, - respond: OrgsDeleteIssueTypeResponder, + respond: (typeof orgsDeleteIssueType)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8740,9 +7911,6 @@ const issuesListForOrg = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListForOrgResponder = (typeof issuesListForOrg)["responder"] & - KoaRuntimeResponder - export type IssuesListForOrg = ( params: Params< t_IssuesListForOrgParamSchema, @@ -8750,7 +7918,7 @@ export type IssuesListForOrg = ( void, void >, - respond: IssuesListForOrgResponder, + respond: (typeof issuesListForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8764,9 +7932,6 @@ const orgsListMembers = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListMembersResponder = (typeof orgsListMembers)["responder"] & - KoaRuntimeResponder - export type OrgsListMembers = ( params: Params< t_OrgsListMembersParamSchema, @@ -8774,7 +7939,7 @@ export type OrgsListMembers = ( void, void >, - respond: OrgsListMembersResponder, + respond: (typeof orgsListMembers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8789,12 +7954,9 @@ const orgsCheckMembershipForUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCheckMembershipForUserResponder = - (typeof orgsCheckMembershipForUser)["responder"] & KoaRuntimeResponder - export type OrgsCheckMembershipForUser = ( params: Params, - respond: OrgsCheckMembershipForUserResponder, + respond: (typeof orgsCheckMembershipForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8809,12 +7971,9 @@ const orgsRemoveMember = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRemoveMemberResponder = (typeof orgsRemoveMember)["responder"] & - KoaRuntimeResponder - export type OrgsRemoveMember = ( params: Params, - respond: OrgsRemoveMemberResponder, + respond: (typeof orgsRemoveMember)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8840,10 +7999,6 @@ const codespacesGetCodespacesForUserInOrg = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetCodespacesForUserInOrgResponder = - (typeof codespacesGetCodespacesForUserInOrg)["responder"] & - KoaRuntimeResponder - export type CodespacesGetCodespacesForUserInOrg = ( params: Params< t_CodespacesGetCodespacesForUserInOrgParamSchema, @@ -8851,7 +8006,7 @@ export type CodespacesGetCodespacesForUserInOrg = ( void, void >, - respond: CodespacesGetCodespacesForUserInOrgResponder, + respond: (typeof codespacesGetCodespacesForUserInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8881,9 +8036,6 @@ const codespacesDeleteFromOrganization = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesDeleteFromOrganizationResponder = - (typeof codespacesDeleteFromOrganization)["responder"] & KoaRuntimeResponder - export type CodespacesDeleteFromOrganization = ( params: Params< t_CodespacesDeleteFromOrganizationParamSchema, @@ -8891,7 +8043,7 @@ export type CodespacesDeleteFromOrganization = ( void, void >, - respond: CodespacesDeleteFromOrganizationResponder, + respond: (typeof codespacesDeleteFromOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8918,12 +8070,9 @@ const codespacesStopInOrganization = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesStopInOrganizationResponder = - (typeof codespacesStopInOrganization)["responder"] & KoaRuntimeResponder - export type CodespacesStopInOrganization = ( params: Params, - respond: CodespacesStopInOrganizationResponder, + respond: (typeof codespacesStopInOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8945,10 +8094,6 @@ const copilotGetCopilotSeatDetailsForUser = b((r) => ({ withStatus: r.withStatus, })) -type CopilotGetCopilotSeatDetailsForUserResponder = - (typeof copilotGetCopilotSeatDetailsForUser)["responder"] & - KoaRuntimeResponder - export type CopilotGetCopilotSeatDetailsForUser = ( params: Params< t_CopilotGetCopilotSeatDetailsForUserParamSchema, @@ -8956,7 +8101,7 @@ export type CopilotGetCopilotSeatDetailsForUser = ( void, void >, - respond: CopilotGetCopilotSeatDetailsForUserResponder, + respond: (typeof copilotGetCopilotSeatDetailsForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8975,12 +8120,9 @@ const orgsGetMembershipForUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetMembershipForUserResponder = - (typeof orgsGetMembershipForUser)["responder"] & KoaRuntimeResponder - export type OrgsGetMembershipForUser = ( params: Params, - respond: OrgsGetMembershipForUserResponder, + respond: (typeof orgsGetMembershipForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8996,9 +8138,6 @@ const orgsSetMembershipForUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsSetMembershipForUserResponder = - (typeof orgsSetMembershipForUser)["responder"] & KoaRuntimeResponder - export type OrgsSetMembershipForUser = ( params: Params< t_OrgsSetMembershipForUserParamSchema, @@ -9006,7 +8145,7 @@ export type OrgsSetMembershipForUser = ( t_OrgsSetMembershipForUserBodySchema | undefined, void >, - respond: OrgsSetMembershipForUserResponder, + respond: (typeof orgsSetMembershipForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9022,12 +8161,9 @@ const orgsRemoveMembershipForUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRemoveMembershipForUserResponder = - (typeof orgsRemoveMembershipForUser)["responder"] & KoaRuntimeResponder - export type OrgsRemoveMembershipForUser = ( params: Params, - respond: OrgsRemoveMembershipForUserResponder, + respond: (typeof orgsRemoveMembershipForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9041,9 +8177,6 @@ const migrationsListForOrg = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsListForOrgResponder = - (typeof migrationsListForOrg)["responder"] & KoaRuntimeResponder - export type MigrationsListForOrg = ( params: Params< t_MigrationsListForOrgParamSchema, @@ -9051,7 +8184,7 @@ export type MigrationsListForOrg = ( void, void >, - respond: MigrationsListForOrgResponder, + respond: (typeof migrationsListForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_migration[]>> @@ -9062,9 +8195,6 @@ const migrationsStartForOrg = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsStartForOrgResponder = - (typeof migrationsStartForOrg)["responder"] & KoaRuntimeResponder - export type MigrationsStartForOrg = ( params: Params< t_MigrationsStartForOrgParamSchema, @@ -9072,7 +8202,7 @@ export type MigrationsStartForOrg = ( t_MigrationsStartForOrgBodySchema, void >, - respond: MigrationsStartForOrgResponder, + respond: (typeof migrationsStartForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9087,9 +8217,6 @@ const migrationsGetStatusForOrg = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsGetStatusForOrgResponder = - (typeof migrationsGetStatusForOrg)["responder"] & KoaRuntimeResponder - export type MigrationsGetStatusForOrg = ( params: Params< t_MigrationsGetStatusForOrgParamSchema, @@ -9097,7 +8224,7 @@ export type MigrationsGetStatusForOrg = ( void, void >, - respond: MigrationsGetStatusForOrgResponder, + respond: (typeof migrationsGetStatusForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9111,9 +8238,6 @@ const migrationsDownloadArchiveForOrg = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsDownloadArchiveForOrgResponder = - (typeof migrationsDownloadArchiveForOrg)["responder"] & KoaRuntimeResponder - export type MigrationsDownloadArchiveForOrg = ( params: Params< t_MigrationsDownloadArchiveForOrgParamSchema, @@ -9121,7 +8245,7 @@ export type MigrationsDownloadArchiveForOrg = ( void, void >, - respond: MigrationsDownloadArchiveForOrgResponder, + respond: (typeof migrationsDownloadArchiveForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9135,12 +8259,9 @@ const migrationsDeleteArchiveForOrg = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsDeleteArchiveForOrgResponder = - (typeof migrationsDeleteArchiveForOrg)["responder"] & KoaRuntimeResponder - export type MigrationsDeleteArchiveForOrg = ( params: Params, - respond: MigrationsDeleteArchiveForOrgResponder, + respond: (typeof migrationsDeleteArchiveForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9154,12 +8275,9 @@ const migrationsUnlockRepoForOrg = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsUnlockRepoForOrgResponder = - (typeof migrationsUnlockRepoForOrg)["responder"] & KoaRuntimeResponder - export type MigrationsUnlockRepoForOrg = ( params: Params, - respond: MigrationsUnlockRepoForOrgResponder, + respond: (typeof migrationsUnlockRepoForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9173,9 +8291,6 @@ const migrationsListReposForOrg = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsListReposForOrgResponder = - (typeof migrationsListReposForOrg)["responder"] & KoaRuntimeResponder - export type MigrationsListReposForOrg = ( params: Params< t_MigrationsListReposForOrgParamSchema, @@ -9183,7 +8298,7 @@ export type MigrationsListReposForOrg = ( void, void >, - respond: MigrationsListReposForOrgResponder, + respond: (typeof migrationsListReposForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9206,12 +8321,9 @@ const orgsListOrgRoles = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListOrgRolesResponder = (typeof orgsListOrgRoles)["responder"] & - KoaRuntimeResponder - export type OrgsListOrgRoles = ( params: Params, - respond: OrgsListOrgRolesResponder, + respond: (typeof orgsListOrgRoles)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9231,12 +8343,9 @@ const orgsRevokeAllOrgRolesTeam = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRevokeAllOrgRolesTeamResponder = - (typeof orgsRevokeAllOrgRolesTeam)["responder"] & KoaRuntimeResponder - export type OrgsRevokeAllOrgRolesTeam = ( params: Params, - respond: OrgsRevokeAllOrgRolesTeamResponder, + respond: (typeof orgsRevokeAllOrgRolesTeam)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -9247,12 +8356,9 @@ const orgsAssignTeamToOrgRole = b((r) => ({ withStatus: r.withStatus, })) -type OrgsAssignTeamToOrgRoleResponder = - (typeof orgsAssignTeamToOrgRole)["responder"] & KoaRuntimeResponder - export type OrgsAssignTeamToOrgRole = ( params: Params, - respond: OrgsAssignTeamToOrgRoleResponder, + respond: (typeof orgsAssignTeamToOrgRole)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9266,12 +8372,9 @@ const orgsRevokeOrgRoleTeam = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRevokeOrgRoleTeamResponder = - (typeof orgsRevokeOrgRoleTeam)["responder"] & KoaRuntimeResponder - export type OrgsRevokeOrgRoleTeam = ( params: Params, - respond: OrgsRevokeOrgRoleTeamResponder, + respond: (typeof orgsRevokeOrgRoleTeam)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -9280,12 +8383,9 @@ const orgsRevokeAllOrgRolesUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRevokeAllOrgRolesUserResponder = - (typeof orgsRevokeAllOrgRolesUser)["responder"] & KoaRuntimeResponder - export type OrgsRevokeAllOrgRolesUser = ( params: Params, - respond: OrgsRevokeAllOrgRolesUserResponder, + respond: (typeof orgsRevokeAllOrgRolesUser)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -9296,12 +8396,9 @@ const orgsAssignUserToOrgRole = b((r) => ({ withStatus: r.withStatus, })) -type OrgsAssignUserToOrgRoleResponder = - (typeof orgsAssignUserToOrgRole)["responder"] & KoaRuntimeResponder - export type OrgsAssignUserToOrgRole = ( params: Params, - respond: OrgsAssignUserToOrgRoleResponder, + respond: (typeof orgsAssignUserToOrgRole)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9315,12 +8412,9 @@ const orgsRevokeOrgRoleUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRevokeOrgRoleUserResponder = - (typeof orgsRevokeOrgRoleUser)["responder"] & KoaRuntimeResponder - export type OrgsRevokeOrgRoleUser = ( params: Params, - respond: OrgsRevokeOrgRoleUserResponder, + respond: (typeof orgsRevokeOrgRoleUser)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -9331,12 +8425,9 @@ const orgsGetOrgRole = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetOrgRoleResponder = (typeof orgsGetOrgRole)["responder"] & - KoaRuntimeResponder - export type OrgsGetOrgRole = ( params: Params, - respond: OrgsGetOrgRoleResponder, + respond: (typeof orgsGetOrgRole)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9352,9 +8443,6 @@ const orgsListOrgRoleTeams = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListOrgRoleTeamsResponder = - (typeof orgsListOrgRoleTeams)["responder"] & KoaRuntimeResponder - export type OrgsListOrgRoleTeams = ( params: Params< t_OrgsListOrgRoleTeamsParamSchema, @@ -9362,7 +8450,7 @@ export type OrgsListOrgRoleTeams = ( void, void >, - respond: OrgsListOrgRoleTeamsResponder, + respond: (typeof orgsListOrgRoleTeams)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9378,9 +8466,6 @@ const orgsListOrgRoleUsers = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListOrgRoleUsersResponder = - (typeof orgsListOrgRoleUsers)["responder"] & KoaRuntimeResponder - export type OrgsListOrgRoleUsers = ( params: Params< t_OrgsListOrgRoleUsersParamSchema, @@ -9388,7 +8473,7 @@ export type OrgsListOrgRoleUsers = ( void, void >, - respond: OrgsListOrgRoleUsersResponder, + respond: (typeof orgsListOrgRoleUsers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9402,9 +8487,6 @@ const orgsListOutsideCollaborators = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListOutsideCollaboratorsResponder = - (typeof orgsListOutsideCollaborators)["responder"] & KoaRuntimeResponder - export type OrgsListOutsideCollaborators = ( params: Params< t_OrgsListOutsideCollaboratorsParamSchema, @@ -9412,7 +8494,7 @@ export type OrgsListOutsideCollaborators = ( void, void >, - respond: OrgsListOutsideCollaboratorsResponder, + respond: (typeof orgsListOutsideCollaborators)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> @@ -9424,10 +8506,6 @@ const orgsConvertMemberToOutsideCollaborator = b((r) => ({ withStatus: r.withStatus, })) -type OrgsConvertMemberToOutsideCollaboratorResponder = - (typeof orgsConvertMemberToOutsideCollaborator)["responder"] & - KoaRuntimeResponder - export type OrgsConvertMemberToOutsideCollaborator = ( params: Params< t_OrgsConvertMemberToOutsideCollaboratorParamSchema, @@ -9435,7 +8513,7 @@ export type OrgsConvertMemberToOutsideCollaborator = ( t_OrgsConvertMemberToOutsideCollaboratorBodySchema | undefined, void >, - respond: OrgsConvertMemberToOutsideCollaboratorResponder, + respond: (typeof orgsConvertMemberToOutsideCollaborator)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9459,12 +8537,9 @@ const orgsRemoveOutsideCollaborator = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRemoveOutsideCollaboratorResponder = - (typeof orgsRemoveOutsideCollaborator)["responder"] & KoaRuntimeResponder - export type OrgsRemoveOutsideCollaborator = ( params: Params, - respond: OrgsRemoveOutsideCollaboratorResponder, + respond: (typeof orgsRemoveOutsideCollaborator)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9486,10 +8561,6 @@ const packagesListPackagesForOrganization = b((r) => ({ withStatus: r.withStatus, })) -type PackagesListPackagesForOrganizationResponder = - (typeof packagesListPackagesForOrganization)["responder"] & - KoaRuntimeResponder - export type PackagesListPackagesForOrganization = ( params: Params< t_PackagesListPackagesForOrganizationParamSchema, @@ -9497,7 +8568,7 @@ export type PackagesListPackagesForOrganization = ( void, void >, - respond: PackagesListPackagesForOrganizationResponder, + respond: (typeof packagesListPackagesForOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9512,9 +8583,6 @@ const packagesGetPackageForOrganization = b((r) => ({ withStatus: r.withStatus, })) -type PackagesGetPackageForOrganizationResponder = - (typeof packagesGetPackageForOrganization)["responder"] & KoaRuntimeResponder - export type PackagesGetPackageForOrganization = ( params: Params< t_PackagesGetPackageForOrganizationParamSchema, @@ -9522,7 +8590,7 @@ export type PackagesGetPackageForOrganization = ( void, void >, - respond: PackagesGetPackageForOrganizationResponder, + respond: (typeof packagesGetPackageForOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_package>> @@ -9534,12 +8602,9 @@ const packagesDeletePackageForOrg = b((r) => ({ withStatus: r.withStatus, })) -type PackagesDeletePackageForOrgResponder = - (typeof packagesDeletePackageForOrg)["responder"] & KoaRuntimeResponder - export type PackagesDeletePackageForOrg = ( params: Params, - respond: PackagesDeletePackageForOrgResponder, + respond: (typeof packagesDeletePackageForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9557,9 +8622,6 @@ const packagesRestorePackageForOrg = b((r) => ({ withStatus: r.withStatus, })) -type PackagesRestorePackageForOrgResponder = - (typeof packagesRestorePackageForOrg)["responder"] & KoaRuntimeResponder - export type PackagesRestorePackageForOrg = ( params: Params< t_PackagesRestorePackageForOrgParamSchema, @@ -9567,7 +8629,7 @@ export type PackagesRestorePackageForOrg = ( void, void >, - respond: PackagesRestorePackageForOrgResponder, + respond: (typeof packagesRestorePackageForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9585,10 +8647,6 @@ const packagesGetAllPackageVersionsForPackageOwnedByOrg = b((r) => ({ withStatus: r.withStatus, })) -type PackagesGetAllPackageVersionsForPackageOwnedByOrgResponder = - (typeof packagesGetAllPackageVersionsForPackageOwnedByOrg)["responder"] & - KoaRuntimeResponder - export type PackagesGetAllPackageVersionsForPackageOwnedByOrg = ( params: Params< t_PackagesGetAllPackageVersionsForPackageOwnedByOrgParamSchema, @@ -9596,7 +8654,7 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByOrg = ( void, void >, - respond: PackagesGetAllPackageVersionsForPackageOwnedByOrgResponder, + respond: (typeof packagesGetAllPackageVersionsForPackageOwnedByOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9611,10 +8669,6 @@ const packagesGetPackageVersionForOrganization = b((r) => ({ withStatus: r.withStatus, })) -type PackagesGetPackageVersionForOrganizationResponder = - (typeof packagesGetPackageVersionForOrganization)["responder"] & - KoaRuntimeResponder - export type PackagesGetPackageVersionForOrganization = ( params: Params< t_PackagesGetPackageVersionForOrganizationParamSchema, @@ -9622,7 +8676,7 @@ export type PackagesGetPackageVersionForOrganization = ( void, void >, - respond: PackagesGetPackageVersionForOrganizationResponder, + respond: (typeof packagesGetPackageVersionForOrganization)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_package_version>> @@ -9634,9 +8688,6 @@ const packagesDeletePackageVersionForOrg = b((r) => ({ withStatus: r.withStatus, })) -type PackagesDeletePackageVersionForOrgResponder = - (typeof packagesDeletePackageVersionForOrg)["responder"] & KoaRuntimeResponder - export type PackagesDeletePackageVersionForOrg = ( params: Params< t_PackagesDeletePackageVersionForOrgParamSchema, @@ -9644,7 +8695,7 @@ export type PackagesDeletePackageVersionForOrg = ( void, void >, - respond: PackagesDeletePackageVersionForOrgResponder, + respond: (typeof packagesDeletePackageVersionForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9662,10 +8713,6 @@ const packagesRestorePackageVersionForOrg = b((r) => ({ withStatus: r.withStatus, })) -type PackagesRestorePackageVersionForOrgResponder = - (typeof packagesRestorePackageVersionForOrg)["responder"] & - KoaRuntimeResponder - export type PackagesRestorePackageVersionForOrg = ( params: Params< t_PackagesRestorePackageVersionForOrgParamSchema, @@ -9673,7 +8720,7 @@ export type PackagesRestorePackageVersionForOrg = ( void, void >, - respond: PackagesRestorePackageVersionForOrgResponder, + respond: (typeof packagesRestorePackageVersionForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9694,9 +8741,6 @@ const orgsListPatGrantRequests = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListPatGrantRequestsResponder = - (typeof orgsListPatGrantRequests)["responder"] & KoaRuntimeResponder - export type OrgsListPatGrantRequests = ( params: Params< t_OrgsListPatGrantRequestsParamSchema, @@ -9704,7 +8748,7 @@ export type OrgsListPatGrantRequests = ( void, void >, - respond: OrgsListPatGrantRequestsResponder, + respond: (typeof orgsListPatGrantRequests)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9726,9 +8770,6 @@ const orgsReviewPatGrantRequestsInBulk = b((r) => ({ withStatus: r.withStatus, })) -type OrgsReviewPatGrantRequestsInBulkResponder = - (typeof orgsReviewPatGrantRequestsInBulk)["responder"] & KoaRuntimeResponder - export type OrgsReviewPatGrantRequestsInBulk = ( params: Params< t_OrgsReviewPatGrantRequestsInBulkParamSchema, @@ -9736,7 +8777,7 @@ export type OrgsReviewPatGrantRequestsInBulk = ( t_OrgsReviewPatGrantRequestsInBulkBodySchema, void >, - respond: OrgsReviewPatGrantRequestsInBulkResponder, + respond: (typeof orgsReviewPatGrantRequestsInBulk)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9761,9 +8802,6 @@ const orgsReviewPatGrantRequest = b((r) => ({ withStatus: r.withStatus, })) -type OrgsReviewPatGrantRequestResponder = - (typeof orgsReviewPatGrantRequest)["responder"] & KoaRuntimeResponder - export type OrgsReviewPatGrantRequest = ( params: Params< t_OrgsReviewPatGrantRequestParamSchema, @@ -9771,7 +8809,7 @@ export type OrgsReviewPatGrantRequest = ( t_OrgsReviewPatGrantRequestBodySchema, void >, - respond: OrgsReviewPatGrantRequestResponder, + respond: (typeof orgsReviewPatGrantRequest)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9790,10 +8828,6 @@ const orgsListPatGrantRequestRepositories = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListPatGrantRequestRepositoriesResponder = - (typeof orgsListPatGrantRequestRepositories)["responder"] & - KoaRuntimeResponder - export type OrgsListPatGrantRequestRepositories = ( params: Params< t_OrgsListPatGrantRequestRepositoriesParamSchema, @@ -9801,7 +8835,7 @@ export type OrgsListPatGrantRequestRepositories = ( void, void >, - respond: OrgsListPatGrantRequestRepositoriesResponder, + respond: (typeof orgsListPatGrantRequestRepositories)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9822,9 +8856,6 @@ const orgsListPatGrants = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListPatGrantsResponder = (typeof orgsListPatGrants)["responder"] & - KoaRuntimeResponder - export type OrgsListPatGrants = ( params: Params< t_OrgsListPatGrantsParamSchema, @@ -9832,7 +8863,7 @@ export type OrgsListPatGrants = ( void, void >, - respond: OrgsListPatGrantsResponder, + respond: (typeof orgsListPatGrants)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9854,9 +8885,6 @@ const orgsUpdatePatAccesses = b((r) => ({ withStatus: r.withStatus, })) -type OrgsUpdatePatAccessesResponder = - (typeof orgsUpdatePatAccesses)["responder"] & KoaRuntimeResponder - export type OrgsUpdatePatAccesses = ( params: Params< t_OrgsUpdatePatAccessesParamSchema, @@ -9864,7 +8892,7 @@ export type OrgsUpdatePatAccesses = ( t_OrgsUpdatePatAccessesBodySchema, void >, - respond: OrgsUpdatePatAccessesResponder, + respond: (typeof orgsUpdatePatAccesses)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9889,9 +8917,6 @@ const orgsUpdatePatAccess = b((r) => ({ withStatus: r.withStatus, })) -type OrgsUpdatePatAccessResponder = (typeof orgsUpdatePatAccess)["responder"] & - KoaRuntimeResponder - export type OrgsUpdatePatAccess = ( params: Params< t_OrgsUpdatePatAccessParamSchema, @@ -9899,7 +8924,7 @@ export type OrgsUpdatePatAccess = ( t_OrgsUpdatePatAccessBodySchema, void >, - respond: OrgsUpdatePatAccessResponder, + respond: (typeof orgsUpdatePatAccess)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9918,9 +8943,6 @@ const orgsListPatGrantRepositories = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListPatGrantRepositoriesResponder = - (typeof orgsListPatGrantRepositories)["responder"] & KoaRuntimeResponder - export type OrgsListPatGrantRepositories = ( params: Params< t_OrgsListPatGrantRepositoriesParamSchema, @@ -9928,7 +8950,7 @@ export type OrgsListPatGrantRepositories = ( void, void >, - respond: OrgsListPatGrantRepositoriesResponder, + respond: (typeof orgsListPatGrantRepositories)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9953,10 +8975,6 @@ const privateRegistriesListOrgPrivateRegistries = b((r) => ({ withStatus: r.withStatus, })) -type PrivateRegistriesListOrgPrivateRegistriesResponder = - (typeof privateRegistriesListOrgPrivateRegistries)["responder"] & - KoaRuntimeResponder - export type PrivateRegistriesListOrgPrivateRegistries = ( params: Params< t_PrivateRegistriesListOrgPrivateRegistriesParamSchema, @@ -9964,7 +8982,7 @@ export type PrivateRegistriesListOrgPrivateRegistries = ( void, void >, - respond: PrivateRegistriesListOrgPrivateRegistriesResponder, + respond: (typeof privateRegistriesListOrgPrivateRegistries)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9989,10 +9007,6 @@ const privateRegistriesCreateOrgPrivateRegistry = b((r) => ({ withStatus: r.withStatus, })) -type PrivateRegistriesCreateOrgPrivateRegistryResponder = - (typeof privateRegistriesCreateOrgPrivateRegistry)["responder"] & - KoaRuntimeResponder - export type PrivateRegistriesCreateOrgPrivateRegistry = ( params: Params< t_PrivateRegistriesCreateOrgPrivateRegistryParamSchema, @@ -10000,7 +9014,7 @@ export type PrivateRegistriesCreateOrgPrivateRegistry = ( t_PrivateRegistriesCreateOrgPrivateRegistryBodySchema, void >, - respond: PrivateRegistriesCreateOrgPrivateRegistryResponder, + respond: (typeof privateRegistriesCreateOrgPrivateRegistry)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10021,9 +9035,6 @@ const privateRegistriesGetOrgPublicKey = b((r) => ({ withStatus: r.withStatus, })) -type PrivateRegistriesGetOrgPublicKeyResponder = - (typeof privateRegistriesGetOrgPublicKey)["responder"] & KoaRuntimeResponder - export type PrivateRegistriesGetOrgPublicKey = ( params: Params< t_PrivateRegistriesGetOrgPublicKeyParamSchema, @@ -10031,7 +9042,7 @@ export type PrivateRegistriesGetOrgPublicKey = ( void, void >, - respond: PrivateRegistriesGetOrgPublicKeyResponder, + respond: (typeof privateRegistriesGetOrgPublicKey)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10053,10 +9064,6 @@ const privateRegistriesGetOrgPrivateRegistry = b((r) => ({ withStatus: r.withStatus, })) -type PrivateRegistriesGetOrgPrivateRegistryResponder = - (typeof privateRegistriesGetOrgPrivateRegistry)["responder"] & - KoaRuntimeResponder - export type PrivateRegistriesGetOrgPrivateRegistry = ( params: Params< t_PrivateRegistriesGetOrgPrivateRegistryParamSchema, @@ -10064,7 +9071,7 @@ export type PrivateRegistriesGetOrgPrivateRegistry = ( void, void >, - respond: PrivateRegistriesGetOrgPrivateRegistryResponder, + respond: (typeof privateRegistriesGetOrgPrivateRegistry)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10079,10 +9086,6 @@ const privateRegistriesUpdateOrgPrivateRegistry = b((r) => ({ withStatus: r.withStatus, })) -type PrivateRegistriesUpdateOrgPrivateRegistryResponder = - (typeof privateRegistriesUpdateOrgPrivateRegistry)["responder"] & - KoaRuntimeResponder - export type PrivateRegistriesUpdateOrgPrivateRegistry = ( params: Params< t_PrivateRegistriesUpdateOrgPrivateRegistryParamSchema, @@ -10090,7 +9093,7 @@ export type PrivateRegistriesUpdateOrgPrivateRegistry = ( t_PrivateRegistriesUpdateOrgPrivateRegistryBodySchema, void >, - respond: PrivateRegistriesUpdateOrgPrivateRegistryResponder, + respond: (typeof privateRegistriesUpdateOrgPrivateRegistry)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10106,10 +9109,6 @@ const privateRegistriesDeleteOrgPrivateRegistry = b((r) => ({ withStatus: r.withStatus, })) -type PrivateRegistriesDeleteOrgPrivateRegistryResponder = - (typeof privateRegistriesDeleteOrgPrivateRegistry)["responder"] & - KoaRuntimeResponder - export type PrivateRegistriesDeleteOrgPrivateRegistry = ( params: Params< t_PrivateRegistriesDeleteOrgPrivateRegistryParamSchema, @@ -10117,7 +9116,7 @@ export type PrivateRegistriesDeleteOrgPrivateRegistry = ( void, void >, - respond: PrivateRegistriesDeleteOrgPrivateRegistryResponder, + respond: (typeof privateRegistriesDeleteOrgPrivateRegistry)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10132,9 +9131,6 @@ const projectsListForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsListForOrgResponder = (typeof projectsListForOrg)["responder"] & - KoaRuntimeResponder - export type ProjectsListForOrg = ( params: Params< t_ProjectsListForOrgParamSchema, @@ -10142,7 +9138,7 @@ export type ProjectsListForOrg = ( void, void >, - respond: ProjectsListForOrgResponder, + respond: (typeof projectsListForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10160,9 +9156,6 @@ const projectsCreateForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsCreateForOrgResponder = - (typeof projectsCreateForOrg)["responder"] & KoaRuntimeResponder - export type ProjectsCreateForOrg = ( params: Params< t_ProjectsCreateForOrgParamSchema, @@ -10170,7 +9163,7 @@ export type ProjectsCreateForOrg = ( t_ProjectsCreateForOrgBodySchema, void >, - respond: ProjectsCreateForOrgResponder, + respond: (typeof projectsCreateForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10189,12 +9182,9 @@ const orgsGetAllCustomProperties = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetAllCustomPropertiesResponder = - (typeof orgsGetAllCustomProperties)["responder"] & KoaRuntimeResponder - export type OrgsGetAllCustomProperties = ( params: Params, - respond: OrgsGetAllCustomPropertiesResponder, + respond: (typeof orgsGetAllCustomProperties)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10210,9 +9200,6 @@ const orgsCreateOrUpdateCustomProperties = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCreateOrUpdateCustomPropertiesResponder = - (typeof orgsCreateOrUpdateCustomProperties)["responder"] & KoaRuntimeResponder - export type OrgsCreateOrUpdateCustomProperties = ( params: Params< t_OrgsCreateOrUpdateCustomPropertiesParamSchema, @@ -10220,7 +9207,7 @@ export type OrgsCreateOrUpdateCustomProperties = ( t_OrgsCreateOrUpdateCustomPropertiesBodySchema, void >, - respond: OrgsCreateOrUpdateCustomPropertiesResponder, + respond: (typeof orgsCreateOrUpdateCustomProperties)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10236,12 +9223,9 @@ const orgsGetCustomProperty = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetCustomPropertyResponder = - (typeof orgsGetCustomProperty)["responder"] & KoaRuntimeResponder - export type OrgsGetCustomProperty = ( params: Params, - respond: OrgsGetCustomPropertyResponder, + respond: (typeof orgsGetCustomProperty)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10257,9 +9241,6 @@ const orgsCreateOrUpdateCustomProperty = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCreateOrUpdateCustomPropertyResponder = - (typeof orgsCreateOrUpdateCustomProperty)["responder"] & KoaRuntimeResponder - export type OrgsCreateOrUpdateCustomProperty = ( params: Params< t_OrgsCreateOrUpdateCustomPropertyParamSchema, @@ -10267,7 +9248,7 @@ export type OrgsCreateOrUpdateCustomProperty = ( t_OrgsCreateOrUpdateCustomPropertyBodySchema, void >, - respond: OrgsCreateOrUpdateCustomPropertyResponder, + respond: (typeof orgsCreateOrUpdateCustomProperty)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10283,12 +9264,9 @@ const orgsRemoveCustomProperty = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRemoveCustomPropertyResponder = - (typeof orgsRemoveCustomProperty)["responder"] & KoaRuntimeResponder - export type OrgsRemoveCustomProperty = ( params: Params, - respond: OrgsRemoveCustomPropertyResponder, + respond: (typeof orgsRemoveCustomProperty)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10306,10 +9284,6 @@ const orgsListCustomPropertiesValuesForRepos = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListCustomPropertiesValuesForReposResponder = - (typeof orgsListCustomPropertiesValuesForRepos)["responder"] & - KoaRuntimeResponder - export type OrgsListCustomPropertiesValuesForRepos = ( params: Params< t_OrgsListCustomPropertiesValuesForReposParamSchema, @@ -10317,7 +9291,7 @@ export type OrgsListCustomPropertiesValuesForRepos = ( void, void >, - respond: OrgsListCustomPropertiesValuesForReposResponder, + respond: (typeof orgsListCustomPropertiesValuesForRepos)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10334,10 +9308,6 @@ const orgsCreateOrUpdateCustomPropertiesValuesForRepos = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCreateOrUpdateCustomPropertiesValuesForReposResponder = - (typeof orgsCreateOrUpdateCustomPropertiesValuesForRepos)["responder"] & - KoaRuntimeResponder - export type OrgsCreateOrUpdateCustomPropertiesValuesForRepos = ( params: Params< t_OrgsCreateOrUpdateCustomPropertiesValuesForReposParamSchema, @@ -10345,7 +9315,7 @@ export type OrgsCreateOrUpdateCustomPropertiesValuesForRepos = ( t_OrgsCreateOrUpdateCustomPropertiesValuesForReposBodySchema, void >, - respond: OrgsCreateOrUpdateCustomPropertiesValuesForReposResponder, + respond: (typeof orgsCreateOrUpdateCustomPropertiesValuesForRepos)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10360,9 +9330,6 @@ const orgsListPublicMembers = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListPublicMembersResponder = - (typeof orgsListPublicMembers)["responder"] & KoaRuntimeResponder - export type OrgsListPublicMembers = ( params: Params< t_OrgsListPublicMembersParamSchema, @@ -10370,7 +9337,7 @@ export type OrgsListPublicMembers = ( void, void >, - respond: OrgsListPublicMembersResponder, + respond: (typeof orgsListPublicMembers)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> @@ -10380,9 +9347,6 @@ const orgsCheckPublicMembershipForUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsCheckPublicMembershipForUserResponder = - (typeof orgsCheckPublicMembershipForUser)["responder"] & KoaRuntimeResponder - export type OrgsCheckPublicMembershipForUser = ( params: Params< t_OrgsCheckPublicMembershipForUserParamSchema, @@ -10390,7 +9354,7 @@ export type OrgsCheckPublicMembershipForUser = ( void, void >, - respond: OrgsCheckPublicMembershipForUserResponder, + respond: (typeof orgsCheckPublicMembershipForUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<404, void> @@ -10402,10 +9366,6 @@ const orgsSetPublicMembershipForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsSetPublicMembershipForAuthenticatedUserResponder = - (typeof orgsSetPublicMembershipForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type OrgsSetPublicMembershipForAuthenticatedUser = ( params: Params< t_OrgsSetPublicMembershipForAuthenticatedUserParamSchema, @@ -10413,7 +9373,7 @@ export type OrgsSetPublicMembershipForAuthenticatedUser = ( void, void >, - respond: OrgsSetPublicMembershipForAuthenticatedUserResponder, + respond: (typeof orgsSetPublicMembershipForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10426,10 +9386,6 @@ const orgsRemovePublicMembershipForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRemovePublicMembershipForAuthenticatedUserResponder = - (typeof orgsRemovePublicMembershipForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type OrgsRemovePublicMembershipForAuthenticatedUser = ( params: Params< t_OrgsRemovePublicMembershipForAuthenticatedUserParamSchema, @@ -10437,7 +9393,7 @@ export type OrgsRemovePublicMembershipForAuthenticatedUser = ( void, void >, - respond: OrgsRemovePublicMembershipForAuthenticatedUserResponder, + respond: (typeof orgsRemovePublicMembershipForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -10446,9 +9402,6 @@ const reposListForOrg = b((r) => ({ withStatus: r.withStatus, })) -type ReposListForOrgResponder = (typeof reposListForOrg)["responder"] & - KoaRuntimeResponder - export type ReposListForOrg = ( params: Params< t_ReposListForOrgParamSchema, @@ -10456,7 +9409,7 @@ export type ReposListForOrg = ( void, void >, - respond: ReposListForOrgResponder, + respond: (typeof reposListForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_minimal_repository[]> @@ -10469,9 +9422,6 @@ const reposCreateInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateInOrgResponder = (typeof reposCreateInOrg)["responder"] & - KoaRuntimeResponder - export type ReposCreateInOrg = ( params: Params< t_ReposCreateInOrgParamSchema, @@ -10479,7 +9429,7 @@ export type ReposCreateInOrg = ( t_ReposCreateInOrgBodySchema, void >, - respond: ReposCreateInOrgResponder, + respond: (typeof reposCreateInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10495,9 +9445,6 @@ const reposGetOrgRulesets = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetOrgRulesetsResponder = (typeof reposGetOrgRulesets)["responder"] & - KoaRuntimeResponder - export type ReposGetOrgRulesets = ( params: Params< t_ReposGetOrgRulesetsParamSchema, @@ -10505,7 +9452,7 @@ export type ReposGetOrgRulesets = ( void, void >, - respond: ReposGetOrgRulesetsResponder, + respond: (typeof reposGetOrgRulesets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10521,9 +9468,6 @@ const reposCreateOrgRuleset = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateOrgRulesetResponder = - (typeof reposCreateOrgRuleset)["responder"] & KoaRuntimeResponder - export type ReposCreateOrgRuleset = ( params: Params< t_ReposCreateOrgRulesetParamSchema, @@ -10531,7 +9475,7 @@ export type ReposCreateOrgRuleset = ( t_ReposCreateOrgRulesetBodySchema, void >, - respond: ReposCreateOrgRulesetResponder, + respond: (typeof reposCreateOrgRuleset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10547,9 +9491,6 @@ const reposGetOrgRuleSuites = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetOrgRuleSuitesResponder = - (typeof reposGetOrgRuleSuites)["responder"] & KoaRuntimeResponder - export type ReposGetOrgRuleSuites = ( params: Params< t_ReposGetOrgRuleSuitesParamSchema, @@ -10557,7 +9498,7 @@ export type ReposGetOrgRuleSuites = ( void, void >, - respond: ReposGetOrgRuleSuitesResponder, + respond: (typeof reposGetOrgRuleSuites)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10573,12 +9514,9 @@ const reposGetOrgRuleSuite = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetOrgRuleSuiteResponder = - (typeof reposGetOrgRuleSuite)["responder"] & KoaRuntimeResponder - export type ReposGetOrgRuleSuite = ( params: Params, - respond: ReposGetOrgRuleSuiteResponder, + respond: (typeof reposGetOrgRuleSuite)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10594,12 +9532,9 @@ const reposGetOrgRuleset = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetOrgRulesetResponder = (typeof reposGetOrgRuleset)["responder"] & - KoaRuntimeResponder - export type ReposGetOrgRuleset = ( params: Params, - respond: ReposGetOrgRulesetResponder, + respond: (typeof reposGetOrgRuleset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10615,9 +9550,6 @@ const reposUpdateOrgRuleset = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateOrgRulesetResponder = - (typeof reposUpdateOrgRuleset)["responder"] & KoaRuntimeResponder - export type ReposUpdateOrgRuleset = ( params: Params< t_ReposUpdateOrgRulesetParamSchema, @@ -10625,7 +9557,7 @@ export type ReposUpdateOrgRuleset = ( t_ReposUpdateOrgRulesetBodySchema | undefined, void >, - respond: ReposUpdateOrgRulesetResponder, + respond: (typeof reposUpdateOrgRuleset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10641,12 +9573,9 @@ const reposDeleteOrgRuleset = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteOrgRulesetResponder = - (typeof reposDeleteOrgRuleset)["responder"] & KoaRuntimeResponder - export type ReposDeleteOrgRuleset = ( params: Params, - respond: ReposDeleteOrgRulesetResponder, + respond: (typeof reposDeleteOrgRuleset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10662,9 +9591,6 @@ const orgsGetOrgRulesetHistory = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetOrgRulesetHistoryResponder = - (typeof orgsGetOrgRulesetHistory)["responder"] & KoaRuntimeResponder - export type OrgsGetOrgRulesetHistory = ( params: Params< t_OrgsGetOrgRulesetHistoryParamSchema, @@ -10672,7 +9598,7 @@ export type OrgsGetOrgRulesetHistory = ( void, void >, - respond: OrgsGetOrgRulesetHistoryResponder, + respond: (typeof orgsGetOrgRulesetHistory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10690,12 +9616,9 @@ const orgsGetOrgRulesetVersion = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetOrgRulesetVersionResponder = - (typeof orgsGetOrgRulesetVersion)["responder"] & KoaRuntimeResponder - export type OrgsGetOrgRulesetVersion = ( params: Params, - respond: OrgsGetOrgRulesetVersionResponder, + respond: (typeof orgsGetOrgRulesetVersion)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10723,9 +9646,6 @@ const secretScanningListAlertsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type SecretScanningListAlertsForOrgResponder = - (typeof secretScanningListAlertsForOrg)["responder"] & KoaRuntimeResponder - export type SecretScanningListAlertsForOrg = ( params: Params< t_SecretScanningListAlertsForOrgParamSchema, @@ -10733,7 +9653,7 @@ export type SecretScanningListAlertsForOrg = ( void, void >, - respond: SecretScanningListAlertsForOrgResponder, + respond: (typeof secretScanningListAlertsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10756,10 +9676,6 @@ const securityAdvisoriesListOrgRepositoryAdvisories = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesListOrgRepositoryAdvisoriesResponder = - (typeof securityAdvisoriesListOrgRepositoryAdvisories)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesListOrgRepositoryAdvisories = ( params: Params< t_SecurityAdvisoriesListOrgRepositoryAdvisoriesParamSchema, @@ -10767,7 +9683,7 @@ export type SecurityAdvisoriesListOrgRepositoryAdvisories = ( void, void >, - respond: SecurityAdvisoriesListOrgRepositoryAdvisoriesResponder, + respond: (typeof securityAdvisoriesListOrgRepositoryAdvisories)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10781,12 +9697,9 @@ const orgsListSecurityManagerTeams = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListSecurityManagerTeamsResponder = - (typeof orgsListSecurityManagerTeams)["responder"] & KoaRuntimeResponder - export type OrgsListSecurityManagerTeams = ( params: Params, - respond: OrgsListSecurityManagerTeamsResponder, + respond: (typeof orgsListSecurityManagerTeams)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team_simple[]>> @@ -10795,12 +9708,9 @@ const orgsAddSecurityManagerTeam = b((r) => ({ withStatus: r.withStatus, })) -type OrgsAddSecurityManagerTeamResponder = - (typeof orgsAddSecurityManagerTeam)["responder"] & KoaRuntimeResponder - export type OrgsAddSecurityManagerTeam = ( params: Params, - respond: OrgsAddSecurityManagerTeamResponder, + respond: (typeof orgsAddSecurityManagerTeam)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -10809,12 +9719,9 @@ const orgsRemoveSecurityManagerTeam = b((r) => ({ withStatus: r.withStatus, })) -type OrgsRemoveSecurityManagerTeamResponder = - (typeof orgsRemoveSecurityManagerTeam)["responder"] & KoaRuntimeResponder - export type OrgsRemoveSecurityManagerTeam = ( params: Params, - respond: OrgsRemoveSecurityManagerTeamResponder, + respond: (typeof orgsRemoveSecurityManagerTeam)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -10823,9 +9730,6 @@ const billingGetGithubActionsBillingOrg = b((r) => ({ withStatus: r.withStatus, })) -type BillingGetGithubActionsBillingOrgResponder = - (typeof billingGetGithubActionsBillingOrg)["responder"] & KoaRuntimeResponder - export type BillingGetGithubActionsBillingOrg = ( params: Params< t_BillingGetGithubActionsBillingOrgParamSchema, @@ -10833,7 +9737,7 @@ export type BillingGetGithubActionsBillingOrg = ( void, void >, - respond: BillingGetGithubActionsBillingOrgResponder, + respond: (typeof billingGetGithubActionsBillingOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_actions_billing_usage> @@ -10844,9 +9748,6 @@ const billingGetGithubPackagesBillingOrg = b((r) => ({ withStatus: r.withStatus, })) -type BillingGetGithubPackagesBillingOrgResponder = - (typeof billingGetGithubPackagesBillingOrg)["responder"] & KoaRuntimeResponder - export type BillingGetGithubPackagesBillingOrg = ( params: Params< t_BillingGetGithubPackagesBillingOrgParamSchema, @@ -10854,7 +9755,7 @@ export type BillingGetGithubPackagesBillingOrg = ( void, void >, - respond: BillingGetGithubPackagesBillingOrgResponder, + respond: (typeof billingGetGithubPackagesBillingOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_packages_billing_usage> @@ -10865,9 +9766,6 @@ const billingGetSharedStorageBillingOrg = b((r) => ({ withStatus: r.withStatus, })) -type BillingGetSharedStorageBillingOrgResponder = - (typeof billingGetSharedStorageBillingOrg)["responder"] & KoaRuntimeResponder - export type BillingGetSharedStorageBillingOrg = ( params: Params< t_BillingGetSharedStorageBillingOrgParamSchema, @@ -10875,7 +9773,7 @@ export type BillingGetSharedStorageBillingOrg = ( void, void >, - respond: BillingGetSharedStorageBillingOrgResponder, + respond: (typeof billingGetSharedStorageBillingOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_combined_billing_usage> @@ -10894,10 +9792,6 @@ const hostedComputeListNetworkConfigurationsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type HostedComputeListNetworkConfigurationsForOrgResponder = - (typeof hostedComputeListNetworkConfigurationsForOrg)["responder"] & - KoaRuntimeResponder - export type HostedComputeListNetworkConfigurationsForOrg = ( params: Params< t_HostedComputeListNetworkConfigurationsForOrgParamSchema, @@ -10905,7 +9799,7 @@ export type HostedComputeListNetworkConfigurationsForOrg = ( void, void >, - respond: HostedComputeListNetworkConfigurationsForOrgResponder, + respond: (typeof hostedComputeListNetworkConfigurationsForOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10923,10 +9817,6 @@ const hostedComputeCreateNetworkConfigurationForOrg = b((r) => ({ withStatus: r.withStatus, })) -type HostedComputeCreateNetworkConfigurationForOrgResponder = - (typeof hostedComputeCreateNetworkConfigurationForOrg)["responder"] & - KoaRuntimeResponder - export type HostedComputeCreateNetworkConfigurationForOrg = ( params: Params< t_HostedComputeCreateNetworkConfigurationForOrgParamSchema, @@ -10934,7 +9824,7 @@ export type HostedComputeCreateNetworkConfigurationForOrg = ( t_HostedComputeCreateNetworkConfigurationForOrgBodySchema, void >, - respond: HostedComputeCreateNetworkConfigurationForOrgResponder, + respond: (typeof hostedComputeCreateNetworkConfigurationForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_network_configuration> @@ -10945,10 +9835,6 @@ const hostedComputeGetNetworkConfigurationForOrg = b((r) => ({ withStatus: r.withStatus, })) -type HostedComputeGetNetworkConfigurationForOrgResponder = - (typeof hostedComputeGetNetworkConfigurationForOrg)["responder"] & - KoaRuntimeResponder - export type HostedComputeGetNetworkConfigurationForOrg = ( params: Params< t_HostedComputeGetNetworkConfigurationForOrgParamSchema, @@ -10956,7 +9842,7 @@ export type HostedComputeGetNetworkConfigurationForOrg = ( void, void >, - respond: HostedComputeGetNetworkConfigurationForOrgResponder, + respond: (typeof hostedComputeGetNetworkConfigurationForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_network_configuration> @@ -10967,10 +9853,6 @@ const hostedComputeUpdateNetworkConfigurationForOrg = b((r) => ({ withStatus: r.withStatus, })) -type HostedComputeUpdateNetworkConfigurationForOrgResponder = - (typeof hostedComputeUpdateNetworkConfigurationForOrg)["responder"] & - KoaRuntimeResponder - export type HostedComputeUpdateNetworkConfigurationForOrg = ( params: Params< t_HostedComputeUpdateNetworkConfigurationForOrgParamSchema, @@ -10978,7 +9860,7 @@ export type HostedComputeUpdateNetworkConfigurationForOrg = ( t_HostedComputeUpdateNetworkConfigurationForOrgBodySchema, void >, - respond: HostedComputeUpdateNetworkConfigurationForOrgResponder, + respond: (typeof hostedComputeUpdateNetworkConfigurationForOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_network_configuration> @@ -10989,10 +9871,6 @@ const hostedComputeDeleteNetworkConfigurationFromOrg = b((r) => ({ withStatus: r.withStatus, })) -type HostedComputeDeleteNetworkConfigurationFromOrgResponder = - (typeof hostedComputeDeleteNetworkConfigurationFromOrg)["responder"] & - KoaRuntimeResponder - export type HostedComputeDeleteNetworkConfigurationFromOrg = ( params: Params< t_HostedComputeDeleteNetworkConfigurationFromOrgParamSchema, @@ -11000,7 +9878,7 @@ export type HostedComputeDeleteNetworkConfigurationFromOrg = ( void, void >, - respond: HostedComputeDeleteNetworkConfigurationFromOrgResponder, + respond: (typeof hostedComputeDeleteNetworkConfigurationFromOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11009,10 +9887,6 @@ const hostedComputeGetNetworkSettingsForOrg = b((r) => ({ withStatus: r.withStatus, })) -type HostedComputeGetNetworkSettingsForOrgResponder = - (typeof hostedComputeGetNetworkSettingsForOrg)["responder"] & - KoaRuntimeResponder - export type HostedComputeGetNetworkSettingsForOrg = ( params: Params< t_HostedComputeGetNetworkSettingsForOrgParamSchema, @@ -11020,7 +9894,7 @@ export type HostedComputeGetNetworkSettingsForOrg = ( void, void >, - respond: HostedComputeGetNetworkSettingsForOrgResponder, + respond: (typeof hostedComputeGetNetworkSettingsForOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_network_settings>> @@ -11035,9 +9909,6 @@ const copilotCopilotMetricsForTeam = b((r) => ({ withStatus: r.withStatus, })) -type CopilotCopilotMetricsForTeamResponder = - (typeof copilotCopilotMetricsForTeam)["responder"] & KoaRuntimeResponder - export type CopilotCopilotMetricsForTeam = ( params: Params< t_CopilotCopilotMetricsForTeamParamSchema, @@ -11045,7 +9916,7 @@ export type CopilotCopilotMetricsForTeam = ( void, void >, - respond: CopilotCopilotMetricsForTeamResponder, + respond: (typeof copilotCopilotMetricsForTeam)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11062,11 +9933,9 @@ const teamsList = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListResponder = (typeof teamsList)["responder"] & KoaRuntimeResponder - export type TeamsList = ( params: Params, - respond: TeamsListResponder, + respond: (typeof teamsList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11081,12 +9950,9 @@ const teamsCreate = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCreateResponder = (typeof teamsCreate)["responder"] & - KoaRuntimeResponder - export type TeamsCreate = ( params: Params, - respond: TeamsCreateResponder, + respond: (typeof teamsCreate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11101,12 +9967,9 @@ const teamsGetByName = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetByNameResponder = (typeof teamsGetByName)["responder"] & - KoaRuntimeResponder - export type TeamsGetByName = ( params: Params, - respond: TeamsGetByNameResponder, + respond: (typeof teamsGetByName)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11123,9 +9986,6 @@ const teamsUpdateInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsUpdateInOrgResponder = (typeof teamsUpdateInOrg)["responder"] & - KoaRuntimeResponder - export type TeamsUpdateInOrg = ( params: Params< t_TeamsUpdateInOrgParamSchema, @@ -11133,7 +9993,7 @@ export type TeamsUpdateInOrg = ( t_TeamsUpdateInOrgBodySchema | undefined, void >, - respond: TeamsUpdateInOrgResponder, + respond: (typeof teamsUpdateInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11149,12 +10009,9 @@ const teamsDeleteInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsDeleteInOrgResponder = (typeof teamsDeleteInOrg)["responder"] & - KoaRuntimeResponder - export type TeamsDeleteInOrg = ( params: Params, - respond: TeamsDeleteInOrgResponder, + respond: (typeof teamsDeleteInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11163,9 +10020,6 @@ const teamsListDiscussionsInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListDiscussionsInOrgResponder = - (typeof teamsListDiscussionsInOrg)["responder"] & KoaRuntimeResponder - export type TeamsListDiscussionsInOrg = ( params: Params< t_TeamsListDiscussionsInOrgParamSchema, @@ -11173,7 +10027,7 @@ export type TeamsListDiscussionsInOrg = ( void, void >, - respond: TeamsListDiscussionsInOrgResponder, + respond: (typeof teamsListDiscussionsInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team_discussion[]>> @@ -11182,9 +10036,6 @@ const teamsCreateDiscussionInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCreateDiscussionInOrgResponder = - (typeof teamsCreateDiscussionInOrg)["responder"] & KoaRuntimeResponder - export type TeamsCreateDiscussionInOrg = ( params: Params< t_TeamsCreateDiscussionInOrgParamSchema, @@ -11192,7 +10043,7 @@ export type TeamsCreateDiscussionInOrg = ( t_TeamsCreateDiscussionInOrgBodySchema, void >, - respond: TeamsCreateDiscussionInOrgResponder, + respond: (typeof teamsCreateDiscussionInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_team_discussion>> @@ -11201,12 +10052,9 @@ const teamsGetDiscussionInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetDiscussionInOrgResponder = - (typeof teamsGetDiscussionInOrg)["responder"] & KoaRuntimeResponder - export type TeamsGetDiscussionInOrg = ( params: Params, - respond: TeamsGetDiscussionInOrgResponder, + respond: (typeof teamsGetDiscussionInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> @@ -11215,9 +10063,6 @@ const teamsUpdateDiscussionInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsUpdateDiscussionInOrgResponder = - (typeof teamsUpdateDiscussionInOrg)["responder"] & KoaRuntimeResponder - export type TeamsUpdateDiscussionInOrg = ( params: Params< t_TeamsUpdateDiscussionInOrgParamSchema, @@ -11225,7 +10070,7 @@ export type TeamsUpdateDiscussionInOrg = ( t_TeamsUpdateDiscussionInOrgBodySchema | undefined, void >, - respond: TeamsUpdateDiscussionInOrgResponder, + respond: (typeof teamsUpdateDiscussionInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> @@ -11234,12 +10079,9 @@ const teamsDeleteDiscussionInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsDeleteDiscussionInOrgResponder = - (typeof teamsDeleteDiscussionInOrg)["responder"] & KoaRuntimeResponder - export type TeamsDeleteDiscussionInOrg = ( params: Params, - respond: TeamsDeleteDiscussionInOrgResponder, + respond: (typeof teamsDeleteDiscussionInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11250,9 +10092,6 @@ const teamsListDiscussionCommentsInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListDiscussionCommentsInOrgResponder = - (typeof teamsListDiscussionCommentsInOrg)["responder"] & KoaRuntimeResponder - export type TeamsListDiscussionCommentsInOrg = ( params: Params< t_TeamsListDiscussionCommentsInOrgParamSchema, @@ -11260,7 +10099,7 @@ export type TeamsListDiscussionCommentsInOrg = ( void, void >, - respond: TeamsListDiscussionCommentsInOrgResponder, + respond: (typeof teamsListDiscussionCommentsInOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_team_discussion_comment[]> @@ -11271,9 +10110,6 @@ const teamsCreateDiscussionCommentInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCreateDiscussionCommentInOrgResponder = - (typeof teamsCreateDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder - export type TeamsCreateDiscussionCommentInOrg = ( params: Params< t_TeamsCreateDiscussionCommentInOrgParamSchema, @@ -11281,7 +10117,7 @@ export type TeamsCreateDiscussionCommentInOrg = ( t_TeamsCreateDiscussionCommentInOrgBodySchema, void >, - respond: TeamsCreateDiscussionCommentInOrgResponder, + respond: (typeof teamsCreateDiscussionCommentInOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_team_discussion_comment> @@ -11292,12 +10128,9 @@ const teamsGetDiscussionCommentInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetDiscussionCommentInOrgResponder = - (typeof teamsGetDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder - export type TeamsGetDiscussionCommentInOrg = ( params: Params, - respond: TeamsGetDiscussionCommentInOrgResponder, + respond: (typeof teamsGetDiscussionCommentInOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_team_discussion_comment> @@ -11308,9 +10141,6 @@ const teamsUpdateDiscussionCommentInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsUpdateDiscussionCommentInOrgResponder = - (typeof teamsUpdateDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder - export type TeamsUpdateDiscussionCommentInOrg = ( params: Params< t_TeamsUpdateDiscussionCommentInOrgParamSchema, @@ -11318,7 +10148,7 @@ export type TeamsUpdateDiscussionCommentInOrg = ( t_TeamsUpdateDiscussionCommentInOrgBodySchema, void >, - respond: TeamsUpdateDiscussionCommentInOrgResponder, + respond: (typeof teamsUpdateDiscussionCommentInOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_team_discussion_comment> @@ -11329,9 +10159,6 @@ const teamsDeleteDiscussionCommentInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsDeleteDiscussionCommentInOrgResponder = - (typeof teamsDeleteDiscussionCommentInOrg)["responder"] & KoaRuntimeResponder - export type TeamsDeleteDiscussionCommentInOrg = ( params: Params< t_TeamsDeleteDiscussionCommentInOrgParamSchema, @@ -11339,7 +10166,7 @@ export type TeamsDeleteDiscussionCommentInOrg = ( void, void >, - respond: TeamsDeleteDiscussionCommentInOrgResponder, + respond: (typeof teamsDeleteDiscussionCommentInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11348,10 +10175,6 @@ const reactionsListForTeamDiscussionCommentInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForTeamDiscussionCommentInOrgResponder = - (typeof reactionsListForTeamDiscussionCommentInOrg)["responder"] & - KoaRuntimeResponder - export type ReactionsListForTeamDiscussionCommentInOrg = ( params: Params< t_ReactionsListForTeamDiscussionCommentInOrgParamSchema, @@ -11359,7 +10182,7 @@ export type ReactionsListForTeamDiscussionCommentInOrg = ( void, void >, - respond: ReactionsListForTeamDiscussionCommentInOrgResponder, + respond: (typeof reactionsListForTeamDiscussionCommentInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> @@ -11369,10 +10192,6 @@ const reactionsCreateForTeamDiscussionCommentInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForTeamDiscussionCommentInOrgResponder = - (typeof reactionsCreateForTeamDiscussionCommentInOrg)["responder"] & - KoaRuntimeResponder - export type ReactionsCreateForTeamDiscussionCommentInOrg = ( params: Params< t_ReactionsCreateForTeamDiscussionCommentInOrgParamSchema, @@ -11380,7 +10199,7 @@ export type ReactionsCreateForTeamDiscussionCommentInOrg = ( t_ReactionsCreateForTeamDiscussionCommentInOrgBodySchema, void >, - respond: ReactionsCreateForTeamDiscussionCommentInOrgResponder, + respond: (typeof reactionsCreateForTeamDiscussionCommentInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11393,10 +10212,6 @@ const reactionsDeleteForTeamDiscussionComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsDeleteForTeamDiscussionCommentResponder = - (typeof reactionsDeleteForTeamDiscussionComment)["responder"] & - KoaRuntimeResponder - export type ReactionsDeleteForTeamDiscussionComment = ( params: Params< t_ReactionsDeleteForTeamDiscussionCommentParamSchema, @@ -11404,7 +10219,7 @@ export type ReactionsDeleteForTeamDiscussionComment = ( void, void >, - respond: ReactionsDeleteForTeamDiscussionCommentResponder, + respond: (typeof reactionsDeleteForTeamDiscussionComment)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11413,10 +10228,6 @@ const reactionsListForTeamDiscussionInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForTeamDiscussionInOrgResponder = - (typeof reactionsListForTeamDiscussionInOrg)["responder"] & - KoaRuntimeResponder - export type ReactionsListForTeamDiscussionInOrg = ( params: Params< t_ReactionsListForTeamDiscussionInOrgParamSchema, @@ -11424,7 +10235,7 @@ export type ReactionsListForTeamDiscussionInOrg = ( void, void >, - respond: ReactionsListForTeamDiscussionInOrgResponder, + respond: (typeof reactionsListForTeamDiscussionInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> @@ -11434,10 +10245,6 @@ const reactionsCreateForTeamDiscussionInOrg = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForTeamDiscussionInOrgResponder = - (typeof reactionsCreateForTeamDiscussionInOrg)["responder"] & - KoaRuntimeResponder - export type ReactionsCreateForTeamDiscussionInOrg = ( params: Params< t_ReactionsCreateForTeamDiscussionInOrgParamSchema, @@ -11445,7 +10252,7 @@ export type ReactionsCreateForTeamDiscussionInOrg = ( t_ReactionsCreateForTeamDiscussionInOrgBodySchema, void >, - respond: ReactionsCreateForTeamDiscussionInOrgResponder, + respond: (typeof reactionsCreateForTeamDiscussionInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11458,9 +10265,6 @@ const reactionsDeleteForTeamDiscussion = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsDeleteForTeamDiscussionResponder = - (typeof reactionsDeleteForTeamDiscussion)["responder"] & KoaRuntimeResponder - export type ReactionsDeleteForTeamDiscussion = ( params: Params< t_ReactionsDeleteForTeamDiscussionParamSchema, @@ -11468,7 +10272,7 @@ export type ReactionsDeleteForTeamDiscussion = ( void, void >, - respond: ReactionsDeleteForTeamDiscussionResponder, + respond: (typeof reactionsDeleteForTeamDiscussion)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11479,9 +10283,6 @@ const teamsListPendingInvitationsInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListPendingInvitationsInOrgResponder = - (typeof teamsListPendingInvitationsInOrg)["responder"] & KoaRuntimeResponder - export type TeamsListPendingInvitationsInOrg = ( params: Params< t_TeamsListPendingInvitationsInOrgParamSchema, @@ -11489,7 +10290,7 @@ export type TeamsListPendingInvitationsInOrg = ( void, void >, - respond: TeamsListPendingInvitationsInOrgResponder, + respond: (typeof teamsListPendingInvitationsInOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_organization_invitation[]> @@ -11500,9 +10301,6 @@ const teamsListMembersInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListMembersInOrgResponder = - (typeof teamsListMembersInOrg)["responder"] & KoaRuntimeResponder - export type TeamsListMembersInOrg = ( params: Params< t_TeamsListMembersInOrgParamSchema, @@ -11510,7 +10308,7 @@ export type TeamsListMembersInOrg = ( void, void >, - respond: TeamsListMembersInOrgResponder, + respond: (typeof teamsListMembersInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> @@ -11520,12 +10318,9 @@ const teamsGetMembershipForUserInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetMembershipForUserInOrgResponder = - (typeof teamsGetMembershipForUserInOrg)["responder"] & KoaRuntimeResponder - export type TeamsGetMembershipForUserInOrg = ( params: Params, - respond: TeamsGetMembershipForUserInOrgResponder, + respond: (typeof teamsGetMembershipForUserInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11540,10 +10335,6 @@ const teamsAddOrUpdateMembershipForUserInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsAddOrUpdateMembershipForUserInOrgResponder = - (typeof teamsAddOrUpdateMembershipForUserInOrg)["responder"] & - KoaRuntimeResponder - export type TeamsAddOrUpdateMembershipForUserInOrg = ( params: Params< t_TeamsAddOrUpdateMembershipForUserInOrgParamSchema, @@ -11551,7 +10342,7 @@ export type TeamsAddOrUpdateMembershipForUserInOrg = ( t_TeamsAddOrUpdateMembershipForUserInOrgBodySchema | undefined, void >, - respond: TeamsAddOrUpdateMembershipForUserInOrgResponder, + respond: (typeof teamsAddOrUpdateMembershipForUserInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11566,9 +10357,6 @@ const teamsRemoveMembershipForUserInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsRemoveMembershipForUserInOrgResponder = - (typeof teamsRemoveMembershipForUserInOrg)["responder"] & KoaRuntimeResponder - export type TeamsRemoveMembershipForUserInOrg = ( params: Params< t_TeamsRemoveMembershipForUserInOrgParamSchema, @@ -11576,7 +10364,7 @@ export type TeamsRemoveMembershipForUserInOrg = ( void, void >, - respond: TeamsRemoveMembershipForUserInOrgResponder, + respond: (typeof teamsRemoveMembershipForUserInOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<403, void> @@ -11587,9 +10375,6 @@ const teamsListProjectsInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListProjectsInOrgResponder = - (typeof teamsListProjectsInOrg)["responder"] & KoaRuntimeResponder - export type TeamsListProjectsInOrg = ( params: Params< t_TeamsListProjectsInOrgParamSchema, @@ -11597,7 +10382,7 @@ export type TeamsListProjectsInOrg = ( void, void >, - respond: TeamsListProjectsInOrgResponder, + respond: (typeof teamsListProjectsInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team_project[]>> @@ -11607,10 +10392,6 @@ const teamsCheckPermissionsForProjectInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCheckPermissionsForProjectInOrgResponder = - (typeof teamsCheckPermissionsForProjectInOrg)["responder"] & - KoaRuntimeResponder - export type TeamsCheckPermissionsForProjectInOrg = ( params: Params< t_TeamsCheckPermissionsForProjectInOrgParamSchema, @@ -11618,7 +10399,7 @@ export type TeamsCheckPermissionsForProjectInOrg = ( void, void >, - respond: TeamsCheckPermissionsForProjectInOrgResponder, + respond: (typeof teamsCheckPermissionsForProjectInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11640,10 +10421,6 @@ const teamsAddOrUpdateProjectPermissionsInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsAddOrUpdateProjectPermissionsInOrgResponder = - (typeof teamsAddOrUpdateProjectPermissionsInOrg)["responder"] & - KoaRuntimeResponder - export type TeamsAddOrUpdateProjectPermissionsInOrg = ( params: Params< t_TeamsAddOrUpdateProjectPermissionsInOrgParamSchema, @@ -11651,7 +10428,7 @@ export type TeamsAddOrUpdateProjectPermissionsInOrg = ( t_TeamsAddOrUpdateProjectPermissionsInOrgBodySchema | undefined, void >, - respond: TeamsAddOrUpdateProjectPermissionsInOrgResponder, + respond: (typeof teamsAddOrUpdateProjectPermissionsInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11670,12 +10447,9 @@ const teamsRemoveProjectInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsRemoveProjectInOrgResponder = - (typeof teamsRemoveProjectInOrg)["responder"] & KoaRuntimeResponder - export type TeamsRemoveProjectInOrg = ( params: Params, - respond: TeamsRemoveProjectInOrgResponder, + respond: (typeof teamsRemoveProjectInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11684,9 +10458,6 @@ const teamsListReposInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListReposInOrgResponder = (typeof teamsListReposInOrg)["responder"] & - KoaRuntimeResponder - export type TeamsListReposInOrg = ( params: Params< t_TeamsListReposInOrgParamSchema, @@ -11694,7 +10465,7 @@ export type TeamsListReposInOrg = ( void, void >, - respond: TeamsListReposInOrgResponder, + respond: (typeof teamsListReposInOrg)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_minimal_repository[]> @@ -11707,9 +10478,6 @@ const teamsCheckPermissionsForRepoInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCheckPermissionsForRepoInOrgResponder = - (typeof teamsCheckPermissionsForRepoInOrg)["responder"] & KoaRuntimeResponder - export type TeamsCheckPermissionsForRepoInOrg = ( params: Params< t_TeamsCheckPermissionsForRepoInOrgParamSchema, @@ -11717,7 +10485,7 @@ export type TeamsCheckPermissionsForRepoInOrg = ( void, void >, - respond: TeamsCheckPermissionsForRepoInOrgResponder, + respond: (typeof teamsCheckPermissionsForRepoInOrg)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11731,10 +10499,6 @@ const teamsAddOrUpdateRepoPermissionsInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsAddOrUpdateRepoPermissionsInOrgResponder = - (typeof teamsAddOrUpdateRepoPermissionsInOrg)["responder"] & - KoaRuntimeResponder - export type TeamsAddOrUpdateRepoPermissionsInOrg = ( params: Params< t_TeamsAddOrUpdateRepoPermissionsInOrgParamSchema, @@ -11742,7 +10506,7 @@ export type TeamsAddOrUpdateRepoPermissionsInOrg = ( t_TeamsAddOrUpdateRepoPermissionsInOrgBodySchema | undefined, void >, - respond: TeamsAddOrUpdateRepoPermissionsInOrgResponder, + respond: (typeof teamsAddOrUpdateRepoPermissionsInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11751,12 +10515,9 @@ const teamsRemoveRepoInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsRemoveRepoInOrgResponder = - (typeof teamsRemoveRepoInOrg)["responder"] & KoaRuntimeResponder - export type TeamsRemoveRepoInOrg = ( params: Params, - respond: TeamsRemoveRepoInOrgResponder, + respond: (typeof teamsRemoveRepoInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -11765,9 +10526,6 @@ const teamsListChildInOrg = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListChildInOrgResponder = (typeof teamsListChildInOrg)["responder"] & - KoaRuntimeResponder - export type TeamsListChildInOrg = ( params: Params< t_TeamsListChildInOrgParamSchema, @@ -11775,7 +10533,7 @@ export type TeamsListChildInOrg = ( void, void >, - respond: TeamsListChildInOrgResponder, + respond: (typeof teamsListChildInOrg)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team[]>> @@ -11785,10 +10543,6 @@ const orgsEnableOrDisableSecurityProductOnAllOrgRepos = b((r) => ({ withStatus: r.withStatus, })) -type OrgsEnableOrDisableSecurityProductOnAllOrgReposResponder = - (typeof orgsEnableOrDisableSecurityProductOnAllOrgRepos)["responder"] & - KoaRuntimeResponder - export type OrgsEnableOrDisableSecurityProductOnAllOrgRepos = ( params: Params< t_OrgsEnableOrDisableSecurityProductOnAllOrgReposParamSchema, @@ -11796,7 +10550,7 @@ export type OrgsEnableOrDisableSecurityProductOnAllOrgRepos = ( t_OrgsEnableOrDisableSecurityProductOnAllOrgReposBodySchema | undefined, void >, - respond: OrgsEnableOrDisableSecurityProductOnAllOrgReposResponder, + respond: (typeof orgsEnableOrDisableSecurityProductOnAllOrgRepos)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<422, void> @@ -11811,12 +10565,9 @@ const projectsGetCard = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsGetCardResponder = (typeof projectsGetCard)["responder"] & - KoaRuntimeResponder - export type ProjectsGetCard = ( params: Params, - respond: ProjectsGetCardResponder, + respond: (typeof projectsGetCard)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11837,9 +10588,6 @@ const projectsUpdateCard = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsUpdateCardResponder = (typeof projectsUpdateCard)["responder"] & - KoaRuntimeResponder - export type ProjectsUpdateCard = ( params: Params< t_ProjectsUpdateCardParamSchema, @@ -11847,7 +10595,7 @@ export type ProjectsUpdateCard = ( t_ProjectsUpdateCardBodySchema | undefined, void >, - respond: ProjectsUpdateCardResponder, + respond: (typeof projectsUpdateCard)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11878,12 +10626,9 @@ const projectsDeleteCard = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsDeleteCardResponder = (typeof projectsDeleteCard)["responder"] & - KoaRuntimeResponder - export type ProjectsDeleteCard = ( params: Params, - respond: ProjectsDeleteCardResponder, + respond: (typeof projectsDeleteCard)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11957,9 +10702,6 @@ const projectsMoveCard = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsMoveCardResponder = (typeof projectsMoveCard)["responder"] & - KoaRuntimeResponder - export type ProjectsMoveCard = ( params: Params< t_ProjectsMoveCardParamSchema, @@ -11967,7 +10709,7 @@ export type ProjectsMoveCard = ( t_ProjectsMoveCardBodySchema, void >, - respond: ProjectsMoveCardResponder, + respond: (typeof projectsMoveCard)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12011,12 +10753,9 @@ const projectsGetColumn = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsGetColumnResponder = (typeof projectsGetColumn)["responder"] & - KoaRuntimeResponder - export type ProjectsGetColumn = ( params: Params, - respond: ProjectsGetColumnResponder, + respond: (typeof projectsGetColumn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12035,9 +10774,6 @@ const projectsUpdateColumn = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsUpdateColumnResponder = - (typeof projectsUpdateColumn)["responder"] & KoaRuntimeResponder - export type ProjectsUpdateColumn = ( params: Params< t_ProjectsUpdateColumnParamSchema, @@ -12045,7 +10781,7 @@ export type ProjectsUpdateColumn = ( t_ProjectsUpdateColumnBodySchema, void >, - respond: ProjectsUpdateColumnResponder, + respond: (typeof projectsUpdateColumn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12063,12 +10799,9 @@ const projectsDeleteColumn = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsDeleteColumnResponder = - (typeof projectsDeleteColumn)["responder"] & KoaRuntimeResponder - export type ProjectsDeleteColumn = ( params: Params, - respond: ProjectsDeleteColumnResponder, + respond: (typeof projectsDeleteColumn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12086,9 +10819,6 @@ const projectsListCards = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsListCardsResponder = (typeof projectsListCards)["responder"] & - KoaRuntimeResponder - export type ProjectsListCards = ( params: Params< t_ProjectsListCardsParamSchema, @@ -12096,7 +10826,7 @@ export type ProjectsListCards = ( void, void >, - respond: ProjectsListCardsResponder, + respond: (typeof projectsListCards)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12140,9 +10870,6 @@ const projectsCreateCard = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsCreateCardResponder = (typeof projectsCreateCard)["responder"] & - KoaRuntimeResponder - export type ProjectsCreateCard = ( params: Params< t_ProjectsCreateCardParamSchema, @@ -12150,7 +10877,7 @@ export type ProjectsCreateCard = ( t_ProjectsCreateCardBodySchema, void >, - respond: ProjectsCreateCardResponder, + respond: (typeof projectsCreateCard)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12182,9 +10909,6 @@ const projectsMoveColumn = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsMoveColumnResponder = (typeof projectsMoveColumn)["responder"] & - KoaRuntimeResponder - export type ProjectsMoveColumn = ( params: Params< t_ProjectsMoveColumnParamSchema, @@ -12192,7 +10916,7 @@ export type ProjectsMoveColumn = ( t_ProjectsMoveColumnBodySchema, void >, - respond: ProjectsMoveColumnResponder, + respond: (typeof projectsMoveColumn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12211,12 +10935,9 @@ const projectsGet = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsGetResponder = (typeof projectsGet)["responder"] & - KoaRuntimeResponder - export type ProjectsGet = ( params: Params, - respond: ProjectsGetResponder, + respond: (typeof projectsGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12247,9 +10968,6 @@ const projectsUpdate = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsUpdateResponder = (typeof projectsUpdate)["responder"] & - KoaRuntimeResponder - export type ProjectsUpdate = ( params: Params< t_ProjectsUpdateParamSchema, @@ -12257,7 +10975,7 @@ export type ProjectsUpdate = ( t_ProjectsUpdateBodySchema | undefined, void >, - respond: ProjectsUpdateResponder, + respond: (typeof projectsUpdate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12297,12 +11015,9 @@ const projectsDelete = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsDeleteResponder = (typeof projectsDelete)["responder"] & - KoaRuntimeResponder - export type ProjectsDelete = ( params: Params, - respond: ProjectsDeleteResponder, + respond: (typeof projectsDelete)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12331,9 +11046,6 @@ const projectsListCollaborators = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsListCollaboratorsResponder = - (typeof projectsListCollaborators)["responder"] & KoaRuntimeResponder - export type ProjectsListCollaborators = ( params: Params< t_ProjectsListCollaboratorsParamSchema, @@ -12341,7 +11053,7 @@ export type ProjectsListCollaborators = ( void, void >, - respond: ProjectsListCollaboratorsResponder, + respond: (typeof projectsListCollaborators)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12363,9 +11075,6 @@ const projectsAddCollaborator = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsAddCollaboratorResponder = - (typeof projectsAddCollaborator)["responder"] & KoaRuntimeResponder - export type ProjectsAddCollaborator = ( params: Params< t_ProjectsAddCollaboratorParamSchema, @@ -12373,7 +11082,7 @@ export type ProjectsAddCollaborator = ( t_ProjectsAddCollaboratorBodySchema | undefined, void >, - respond: ProjectsAddCollaboratorResponder, + respond: (typeof projectsAddCollaborator)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12395,12 +11104,9 @@ const projectsRemoveCollaborator = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsRemoveCollaboratorResponder = - (typeof projectsRemoveCollaborator)["responder"] & KoaRuntimeResponder - export type ProjectsRemoveCollaborator = ( params: Params, - respond: ProjectsRemoveCollaboratorResponder, + respond: (typeof projectsRemoveCollaborator)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12424,12 +11130,9 @@ const projectsGetPermissionForUser = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsGetPermissionForUserResponder = - (typeof projectsGetPermissionForUser)["responder"] & KoaRuntimeResponder - export type ProjectsGetPermissionForUser = ( params: Params, - respond: ProjectsGetPermissionForUserResponder, + respond: (typeof projectsGetPermissionForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12449,9 +11152,6 @@ const projectsListColumns = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsListColumnsResponder = (typeof projectsListColumns)["responder"] & - KoaRuntimeResponder - export type ProjectsListColumns = ( params: Params< t_ProjectsListColumnsParamSchema, @@ -12459,7 +11159,7 @@ export type ProjectsListColumns = ( void, void >, - respond: ProjectsListColumnsResponder, + respond: (typeof projectsListColumns)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12478,9 +11178,6 @@ const projectsCreateColumn = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsCreateColumnResponder = - (typeof projectsCreateColumn)["responder"] & KoaRuntimeResponder - export type ProjectsCreateColumn = ( params: Params< t_ProjectsCreateColumnParamSchema, @@ -12488,7 +11185,7 @@ export type ProjectsCreateColumn = ( t_ProjectsCreateColumnBodySchema, void >, - respond: ProjectsCreateColumnResponder, + respond: (typeof projectsCreateColumn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12506,12 +11203,9 @@ const rateLimitGet = b((r) => ({ withStatus: r.withStatus, })) -type RateLimitGetResponder = (typeof rateLimitGet)["responder"] & - KoaRuntimeResponder - export type RateLimitGet = ( params: Params, - respond: RateLimitGetResponder, + respond: (typeof rateLimitGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12528,11 +11222,9 @@ const reposGet = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetResponder = (typeof reposGet)["responder"] & KoaRuntimeResponder - export type ReposGet = ( params: Params, - respond: ReposGetResponder, + respond: (typeof reposGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12551,9 +11243,6 @@ const reposUpdate = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateResponder = (typeof reposUpdate)["responder"] & - KoaRuntimeResponder - export type ReposUpdate = ( params: Params< t_ReposUpdateParamSchema, @@ -12561,7 +11250,7 @@ export type ReposUpdate = ( t_ReposUpdateBodySchema | undefined, void >, - respond: ReposUpdateResponder, + respond: (typeof reposUpdate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12588,12 +11277,9 @@ const reposDelete = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteResponder = (typeof reposDelete)["responder"] & - KoaRuntimeResponder - export type ReposDelete = ( params: Params, - respond: ReposDeleteResponder, + respond: (typeof reposDelete)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12622,9 +11308,6 @@ const actionsListArtifactsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListArtifactsForRepoResponder = - (typeof actionsListArtifactsForRepo)["responder"] & KoaRuntimeResponder - export type ActionsListArtifactsForRepo = ( params: Params< t_ActionsListArtifactsForRepoParamSchema, @@ -12632,7 +11315,7 @@ export type ActionsListArtifactsForRepo = ( void, void >, - respond: ActionsListArtifactsForRepoResponder, + respond: (typeof actionsListArtifactsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12650,12 +11333,9 @@ const actionsGetArtifact = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetArtifactResponder = (typeof actionsGetArtifact)["responder"] & - KoaRuntimeResponder - export type ActionsGetArtifact = ( params: Params, - respond: ActionsGetArtifactResponder, + respond: (typeof actionsGetArtifact)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_artifact>> @@ -12664,12 +11344,9 @@ const actionsDeleteArtifact = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteArtifactResponder = - (typeof actionsDeleteArtifact)["responder"] & KoaRuntimeResponder - export type ActionsDeleteArtifact = ( params: Params, - respond: ActionsDeleteArtifactResponder, + respond: (typeof actionsDeleteArtifact)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -12679,12 +11356,9 @@ const actionsDownloadArtifact = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDownloadArtifactResponder = - (typeof actionsDownloadArtifact)["responder"] & KoaRuntimeResponder - export type ActionsDownloadArtifact = ( params: Params, - respond: ActionsDownloadArtifactResponder, + respond: (typeof actionsDownloadArtifact)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12699,12 +11373,9 @@ const actionsGetActionsCacheUsage = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetActionsCacheUsageResponder = - (typeof actionsGetActionsCacheUsage)["responder"] & KoaRuntimeResponder - export type ActionsGetActionsCacheUsage = ( params: Params, - respond: ActionsGetActionsCacheUsageResponder, + respond: (typeof actionsGetActionsCacheUsage)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12716,9 +11387,6 @@ const actionsGetActionsCacheList = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetActionsCacheListResponder = - (typeof actionsGetActionsCacheList)["responder"] & KoaRuntimeResponder - export type ActionsGetActionsCacheList = ( params: Params< t_ActionsGetActionsCacheListParamSchema, @@ -12726,7 +11394,7 @@ export type ActionsGetActionsCacheList = ( void, void >, - respond: ActionsGetActionsCacheListResponder, + respond: (typeof actionsGetActionsCacheList)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_cache_list>> @@ -12735,9 +11403,6 @@ const actionsDeleteActionsCacheByKey = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteActionsCacheByKeyResponder = - (typeof actionsDeleteActionsCacheByKey)["responder"] & KoaRuntimeResponder - export type ActionsDeleteActionsCacheByKey = ( params: Params< t_ActionsDeleteActionsCacheByKeyParamSchema, @@ -12745,7 +11410,7 @@ export type ActionsDeleteActionsCacheByKey = ( void, void >, - respond: ActionsDeleteActionsCacheByKeyResponder, + respond: (typeof actionsDeleteActionsCacheByKey)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_cache_list>> @@ -12754,12 +11419,9 @@ const actionsDeleteActionsCacheById = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteActionsCacheByIdResponder = - (typeof actionsDeleteActionsCacheById)["responder"] & KoaRuntimeResponder - export type ActionsDeleteActionsCacheById = ( params: Params, - respond: ActionsDeleteActionsCacheByIdResponder, + respond: (typeof actionsDeleteActionsCacheById)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -12768,12 +11430,9 @@ const actionsGetJobForWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetJobForWorkflowRunResponder = - (typeof actionsGetJobForWorkflowRun)["responder"] & KoaRuntimeResponder - export type ActionsGetJobForWorkflowRun = ( params: Params, - respond: ActionsGetJobForWorkflowRunResponder, + respond: (typeof actionsGetJobForWorkflowRun)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_job>> @@ -12782,10 +11441,6 @@ const actionsDownloadJobLogsForWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDownloadJobLogsForWorkflowRunResponder = - (typeof actionsDownloadJobLogsForWorkflowRun)["responder"] & - KoaRuntimeResponder - export type ActionsDownloadJobLogsForWorkflowRun = ( params: Params< t_ActionsDownloadJobLogsForWorkflowRunParamSchema, @@ -12793,7 +11448,7 @@ export type ActionsDownloadJobLogsForWorkflowRun = ( void, void >, - respond: ActionsDownloadJobLogsForWorkflowRunResponder, + respond: (typeof actionsDownloadJobLogsForWorkflowRun)["responder"], ctx: RouterContext, ) => Promise | Response<302, void>> @@ -12803,9 +11458,6 @@ const actionsReRunJobForWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsReRunJobForWorkflowRunResponder = - (typeof actionsReRunJobForWorkflowRun)["responder"] & KoaRuntimeResponder - export type ActionsReRunJobForWorkflowRun = ( params: Params< t_ActionsReRunJobForWorkflowRunParamSchema, @@ -12813,7 +11465,7 @@ export type ActionsReRunJobForWorkflowRun = ( t_ActionsReRunJobForWorkflowRunBodySchema | undefined, void >, - respond: ActionsReRunJobForWorkflowRunResponder, + respond: (typeof actionsReRunJobForWorkflowRun)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12828,10 +11480,6 @@ const actionsGetCustomOidcSubClaimForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetCustomOidcSubClaimForRepoResponder = - (typeof actionsGetCustomOidcSubClaimForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsGetCustomOidcSubClaimForRepo = ( params: Params< t_ActionsGetCustomOidcSubClaimForRepoParamSchema, @@ -12839,7 +11487,7 @@ export type ActionsGetCustomOidcSubClaimForRepo = ( void, void >, - respond: ActionsGetCustomOidcSubClaimForRepoResponder, + respond: (typeof actionsGetCustomOidcSubClaimForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12856,10 +11504,6 @@ const actionsSetCustomOidcSubClaimForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetCustomOidcSubClaimForRepoResponder = - (typeof actionsSetCustomOidcSubClaimForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsSetCustomOidcSubClaimForRepo = ( params: Params< t_ActionsSetCustomOidcSubClaimForRepoParamSchema, @@ -12867,7 +11511,7 @@ export type ActionsSetCustomOidcSubClaimForRepo = ( t_ActionsSetCustomOidcSubClaimForRepoBodySchema, void >, - respond: ActionsSetCustomOidcSubClaimForRepoResponder, + respond: (typeof actionsSetCustomOidcSubClaimForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12890,9 +11534,6 @@ const actionsListRepoOrganizationSecrets = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListRepoOrganizationSecretsResponder = - (typeof actionsListRepoOrganizationSecrets)["responder"] & KoaRuntimeResponder - export type ActionsListRepoOrganizationSecrets = ( params: Params< t_ActionsListRepoOrganizationSecretsParamSchema, @@ -12900,7 +11541,7 @@ export type ActionsListRepoOrganizationSecrets = ( void, void >, - respond: ActionsListRepoOrganizationSecretsResponder, + respond: (typeof actionsListRepoOrganizationSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12926,10 +11567,6 @@ const actionsListRepoOrganizationVariables = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListRepoOrganizationVariablesResponder = - (typeof actionsListRepoOrganizationVariables)["responder"] & - KoaRuntimeResponder - export type ActionsListRepoOrganizationVariables = ( params: Params< t_ActionsListRepoOrganizationVariablesParamSchema, @@ -12937,7 +11574,7 @@ export type ActionsListRepoOrganizationVariables = ( void, void >, - respond: ActionsListRepoOrganizationVariablesResponder, + respond: (typeof actionsListRepoOrganizationVariables)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12957,10 +11594,6 @@ const actionsGetGithubActionsPermissionsRepository = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetGithubActionsPermissionsRepositoryResponder = - (typeof actionsGetGithubActionsPermissionsRepository)["responder"] & - KoaRuntimeResponder - export type ActionsGetGithubActionsPermissionsRepository = ( params: Params< t_ActionsGetGithubActionsPermissionsRepositoryParamSchema, @@ -12968,7 +11601,7 @@ export type ActionsGetGithubActionsPermissionsRepository = ( void, void >, - respond: ActionsGetGithubActionsPermissionsRepositoryResponder, + respond: (typeof actionsGetGithubActionsPermissionsRepository)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_actions_repository_permissions> @@ -12979,10 +11612,6 @@ const actionsSetGithubActionsPermissionsRepository = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetGithubActionsPermissionsRepositoryResponder = - (typeof actionsSetGithubActionsPermissionsRepository)["responder"] & - KoaRuntimeResponder - export type ActionsSetGithubActionsPermissionsRepository = ( params: Params< t_ActionsSetGithubActionsPermissionsRepositoryParamSchema, @@ -12990,7 +11619,7 @@ export type ActionsSetGithubActionsPermissionsRepository = ( t_ActionsSetGithubActionsPermissionsRepositoryBodySchema, void >, - respond: ActionsSetGithubActionsPermissionsRepositoryResponder, + respond: (typeof actionsSetGithubActionsPermissionsRepository)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -13001,10 +11630,6 @@ const actionsGetWorkflowAccessToRepository = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetWorkflowAccessToRepositoryResponder = - (typeof actionsGetWorkflowAccessToRepository)["responder"] & - KoaRuntimeResponder - export type ActionsGetWorkflowAccessToRepository = ( params: Params< t_ActionsGetWorkflowAccessToRepositoryParamSchema, @@ -13012,7 +11637,7 @@ export type ActionsGetWorkflowAccessToRepository = ( void, void >, - respond: ActionsGetWorkflowAccessToRepositoryResponder, + respond: (typeof actionsGetWorkflowAccessToRepository)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13024,10 +11649,6 @@ const actionsSetWorkflowAccessToRepository = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetWorkflowAccessToRepositoryResponder = - (typeof actionsSetWorkflowAccessToRepository)["responder"] & - KoaRuntimeResponder - export type ActionsSetWorkflowAccessToRepository = ( params: Params< t_ActionsSetWorkflowAccessToRepositoryParamSchema, @@ -13035,7 +11656,7 @@ export type ActionsSetWorkflowAccessToRepository = ( t_ActionsSetWorkflowAccessToRepositoryBodySchema, void >, - respond: ActionsSetWorkflowAccessToRepositoryResponder, + respond: (typeof actionsSetWorkflowAccessToRepository)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -13044,9 +11665,6 @@ const actionsGetAllowedActionsRepository = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetAllowedActionsRepositoryResponder = - (typeof actionsGetAllowedActionsRepository)["responder"] & KoaRuntimeResponder - export type ActionsGetAllowedActionsRepository = ( params: Params< t_ActionsGetAllowedActionsRepositoryParamSchema, @@ -13054,7 +11672,7 @@ export type ActionsGetAllowedActionsRepository = ( void, void >, - respond: ActionsGetAllowedActionsRepositoryResponder, + respond: (typeof actionsGetAllowedActionsRepository)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_selected_actions>> @@ -13063,9 +11681,6 @@ const actionsSetAllowedActionsRepository = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetAllowedActionsRepositoryResponder = - (typeof actionsSetAllowedActionsRepository)["responder"] & KoaRuntimeResponder - export type ActionsSetAllowedActionsRepository = ( params: Params< t_ActionsSetAllowedActionsRepositoryParamSchema, @@ -13073,7 +11688,7 @@ export type ActionsSetAllowedActionsRepository = ( t_ActionsSetAllowedActionsRepositoryBodySchema | undefined, void >, - respond: ActionsSetAllowedActionsRepositoryResponder, + respond: (typeof actionsSetAllowedActionsRepository)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -13084,10 +11699,6 @@ const actionsGetGithubActionsDefaultWorkflowPermissionsRepository = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = - (typeof actionsGetGithubActionsDefaultWorkflowPermissionsRepository)["responder"] & - KoaRuntimeResponder - export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepository = ( params: Params< t_ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParamSchema, @@ -13095,7 +11706,7 @@ export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepository = ( void, void >, - respond: ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryResponder, + respond: (typeof actionsGetGithubActionsDefaultWorkflowPermissionsRepository)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13108,10 +11719,6 @@ const actionsSetGithubActionsDefaultWorkflowPermissionsRepository = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder = - (typeof actionsSetGithubActionsDefaultWorkflowPermissionsRepository)["responder"] & - KoaRuntimeResponder - export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepository = ( params: Params< t_ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryParamSchema, @@ -13119,7 +11726,7 @@ export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepository = ( t_ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryBodySchema, void >, - respond: ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryResponder, + respond: (typeof actionsSetGithubActionsDefaultWorkflowPermissionsRepository)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -13133,10 +11740,6 @@ const actionsListSelfHostedRunnersForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListSelfHostedRunnersForRepoResponder = - (typeof actionsListSelfHostedRunnersForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsListSelfHostedRunnersForRepo = ( params: Params< t_ActionsListSelfHostedRunnersForRepoParamSchema, @@ -13144,7 +11747,7 @@ export type ActionsListSelfHostedRunnersForRepo = ( void, void >, - respond: ActionsListSelfHostedRunnersForRepoResponder, + respond: (typeof actionsListSelfHostedRunnersForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13162,10 +11765,6 @@ const actionsListRunnerApplicationsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListRunnerApplicationsForRepoResponder = - (typeof actionsListRunnerApplicationsForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsListRunnerApplicationsForRepo = ( params: Params< t_ActionsListRunnerApplicationsForRepoParamSchema, @@ -13173,7 +11772,7 @@ export type ActionsListRunnerApplicationsForRepo = ( void, void >, - respond: ActionsListRunnerApplicationsForRepoResponder, + respond: (typeof actionsListRunnerApplicationsForRepo)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_runner_application[]> @@ -13190,10 +11789,6 @@ const actionsGenerateRunnerJitconfigForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGenerateRunnerJitconfigForRepoResponder = - (typeof actionsGenerateRunnerJitconfigForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsGenerateRunnerJitconfigForRepo = ( params: Params< t_ActionsGenerateRunnerJitconfigForRepoParamSchema, @@ -13201,7 +11796,7 @@ export type ActionsGenerateRunnerJitconfigForRepo = ( t_ActionsGenerateRunnerJitconfigForRepoBodySchema, void >, - respond: ActionsGenerateRunnerJitconfigForRepoResponder, + respond: (typeof actionsGenerateRunnerJitconfigForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13222,10 +11817,6 @@ const actionsCreateRegistrationTokenForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateRegistrationTokenForRepoResponder = - (typeof actionsCreateRegistrationTokenForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsCreateRegistrationTokenForRepo = ( params: Params< t_ActionsCreateRegistrationTokenForRepoParamSchema, @@ -13233,7 +11824,7 @@ export type ActionsCreateRegistrationTokenForRepo = ( void, void >, - respond: ActionsCreateRegistrationTokenForRepoResponder, + respond: (typeof actionsCreateRegistrationTokenForRepo)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_authentication_token> @@ -13244,9 +11835,6 @@ const actionsCreateRemoveTokenForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateRemoveTokenForRepoResponder = - (typeof actionsCreateRemoveTokenForRepo)["responder"] & KoaRuntimeResponder - export type ActionsCreateRemoveTokenForRepo = ( params: Params< t_ActionsCreateRemoveTokenForRepoParamSchema, @@ -13254,7 +11842,7 @@ export type ActionsCreateRemoveTokenForRepo = ( void, void >, - respond: ActionsCreateRemoveTokenForRepoResponder, + respond: (typeof actionsCreateRemoveTokenForRepo)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_authentication_token> @@ -13265,9 +11853,6 @@ const actionsGetSelfHostedRunnerForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetSelfHostedRunnerForRepoResponder = - (typeof actionsGetSelfHostedRunnerForRepo)["responder"] & KoaRuntimeResponder - export type ActionsGetSelfHostedRunnerForRepo = ( params: Params< t_ActionsGetSelfHostedRunnerForRepoParamSchema, @@ -13275,7 +11860,7 @@ export type ActionsGetSelfHostedRunnerForRepo = ( void, void >, - respond: ActionsGetSelfHostedRunnerForRepoResponder, + respond: (typeof actionsGetSelfHostedRunnerForRepo)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_runner>> @@ -13284,10 +11869,6 @@ const actionsDeleteSelfHostedRunnerFromRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteSelfHostedRunnerFromRepoResponder = - (typeof actionsDeleteSelfHostedRunnerFromRepo)["responder"] & - KoaRuntimeResponder - export type ActionsDeleteSelfHostedRunnerFromRepo = ( params: Params< t_ActionsDeleteSelfHostedRunnerFromRepoParamSchema, @@ -13295,7 +11876,7 @@ export type ActionsDeleteSelfHostedRunnerFromRepo = ( void, void >, - respond: ActionsDeleteSelfHostedRunnerFromRepoResponder, + respond: (typeof actionsDeleteSelfHostedRunnerFromRepo)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -13313,10 +11894,6 @@ const actionsListLabelsForSelfHostedRunnerForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListLabelsForSelfHostedRunnerForRepoResponder = - (typeof actionsListLabelsForSelfHostedRunnerForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsListLabelsForSelfHostedRunnerForRepo = ( params: Params< t_ActionsListLabelsForSelfHostedRunnerForRepoParamSchema, @@ -13324,7 +11901,7 @@ export type ActionsListLabelsForSelfHostedRunnerForRepo = ( void, void >, - respond: ActionsListLabelsForSelfHostedRunnerForRepoResponder, + respond: (typeof actionsListLabelsForSelfHostedRunnerForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13353,10 +11930,6 @@ const actionsAddCustomLabelsToSelfHostedRunnerForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsAddCustomLabelsToSelfHostedRunnerForRepoResponder = - (typeof actionsAddCustomLabelsToSelfHostedRunnerForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo = ( params: Params< t_ActionsAddCustomLabelsToSelfHostedRunnerForRepoParamSchema, @@ -13364,7 +11937,7 @@ export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo = ( t_ActionsAddCustomLabelsToSelfHostedRunnerForRepoBodySchema, void >, - respond: ActionsAddCustomLabelsToSelfHostedRunnerForRepoResponder, + respond: (typeof actionsAddCustomLabelsToSelfHostedRunnerForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13394,10 +11967,6 @@ const actionsSetCustomLabelsForSelfHostedRunnerForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsSetCustomLabelsForSelfHostedRunnerForRepoResponder = - (typeof actionsSetCustomLabelsForSelfHostedRunnerForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo = ( params: Params< t_ActionsSetCustomLabelsForSelfHostedRunnerForRepoParamSchema, @@ -13405,7 +11974,7 @@ export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo = ( t_ActionsSetCustomLabelsForSelfHostedRunnerForRepoBodySchema, void >, - respond: ActionsSetCustomLabelsForSelfHostedRunnerForRepoResponder, + respond: (typeof actionsSetCustomLabelsForSelfHostedRunnerForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13434,10 +12003,6 @@ const actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder = - (typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo = ( params: Params< t_ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoParamSchema, @@ -13445,7 +12010,7 @@ export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo = ( void, void >, - respond: ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoResponder, + respond: (typeof actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13474,10 +12039,6 @@ const actionsRemoveCustomLabelFromSelfHostedRunnerForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder = - (typeof actionsRemoveCustomLabelFromSelfHostedRunnerForRepo)["responder"] & - KoaRuntimeResponder - export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo = ( params: Params< t_ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoParamSchema, @@ -13485,7 +12046,7 @@ export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo = ( void, void >, - respond: ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponder, + respond: (typeof actionsRemoveCustomLabelFromSelfHostedRunnerForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13513,9 +12074,6 @@ const actionsListWorkflowRunsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListWorkflowRunsForRepoResponder = - (typeof actionsListWorkflowRunsForRepo)["responder"] & KoaRuntimeResponder - export type ActionsListWorkflowRunsForRepo = ( params: Params< t_ActionsListWorkflowRunsForRepoParamSchema, @@ -13523,7 +12081,7 @@ export type ActionsListWorkflowRunsForRepo = ( void, void >, - respond: ActionsListWorkflowRunsForRepoResponder, + respond: (typeof actionsListWorkflowRunsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13541,9 +12099,6 @@ const actionsGetWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetWorkflowRunResponder = - (typeof actionsGetWorkflowRun)["responder"] & KoaRuntimeResponder - export type ActionsGetWorkflowRun = ( params: Params< t_ActionsGetWorkflowRunParamSchema, @@ -13551,7 +12106,7 @@ export type ActionsGetWorkflowRun = ( void, void >, - respond: ActionsGetWorkflowRunResponder, + respond: (typeof actionsGetWorkflowRun)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_workflow_run>> @@ -13560,12 +12115,9 @@ const actionsDeleteWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteWorkflowRunResponder = - (typeof actionsDeleteWorkflowRun)["responder"] & KoaRuntimeResponder - export type ActionsDeleteWorkflowRun = ( params: Params, - respond: ActionsDeleteWorkflowRunResponder, + respond: (typeof actionsDeleteWorkflowRun)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -13576,12 +12128,9 @@ const actionsGetReviewsForRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetReviewsForRunResponder = - (typeof actionsGetReviewsForRun)["responder"] & KoaRuntimeResponder - export type ActionsGetReviewsForRun = ( params: Params, - respond: ActionsGetReviewsForRunResponder, + respond: (typeof actionsGetReviewsForRun)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_environment_approvals[]> @@ -13594,12 +12143,9 @@ const actionsApproveWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsApproveWorkflowRunResponder = - (typeof actionsApproveWorkflowRun)["responder"] & KoaRuntimeResponder - export type ActionsApproveWorkflowRun = ( params: Params, - respond: ActionsApproveWorkflowRunResponder, + respond: (typeof actionsApproveWorkflowRun)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13621,9 +12167,6 @@ const actionsListWorkflowRunArtifacts = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListWorkflowRunArtifactsResponder = - (typeof actionsListWorkflowRunArtifacts)["responder"] & KoaRuntimeResponder - export type ActionsListWorkflowRunArtifacts = ( params: Params< t_ActionsListWorkflowRunArtifactsParamSchema, @@ -13631,7 +12174,7 @@ export type ActionsListWorkflowRunArtifacts = ( void, void >, - respond: ActionsListWorkflowRunArtifactsResponder, + respond: (typeof actionsListWorkflowRunArtifacts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13649,9 +12192,6 @@ const actionsGetWorkflowRunAttempt = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetWorkflowRunAttemptResponder = - (typeof actionsGetWorkflowRunAttempt)["responder"] & KoaRuntimeResponder - export type ActionsGetWorkflowRunAttempt = ( params: Params< t_ActionsGetWorkflowRunAttemptParamSchema, @@ -13659,7 +12199,7 @@ export type ActionsGetWorkflowRunAttempt = ( void, void >, - respond: ActionsGetWorkflowRunAttemptResponder, + respond: (typeof actionsGetWorkflowRunAttempt)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_workflow_run>> @@ -13672,10 +12212,6 @@ const actionsListJobsForWorkflowRunAttempt = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListJobsForWorkflowRunAttemptResponder = - (typeof actionsListJobsForWorkflowRunAttempt)["responder"] & - KoaRuntimeResponder - export type ActionsListJobsForWorkflowRunAttempt = ( params: Params< t_ActionsListJobsForWorkflowRunAttemptParamSchema, @@ -13683,7 +12219,7 @@ export type ActionsListJobsForWorkflowRunAttempt = ( void, void >, - respond: ActionsListJobsForWorkflowRunAttemptResponder, + respond: (typeof actionsListJobsForWorkflowRunAttempt)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13702,10 +12238,6 @@ const actionsDownloadWorkflowRunAttemptLogs = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDownloadWorkflowRunAttemptLogsResponder = - (typeof actionsDownloadWorkflowRunAttemptLogs)["responder"] & - KoaRuntimeResponder - export type ActionsDownloadWorkflowRunAttemptLogs = ( params: Params< t_ActionsDownloadWorkflowRunAttemptLogsParamSchema, @@ -13713,7 +12245,7 @@ export type ActionsDownloadWorkflowRunAttemptLogs = ( void, void >, - respond: ActionsDownloadWorkflowRunAttemptLogsResponder, + respond: (typeof actionsDownloadWorkflowRunAttemptLogs)["responder"], ctx: RouterContext, ) => Promise | Response<302, void>> @@ -13723,12 +12255,9 @@ const actionsCancelWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCancelWorkflowRunResponder = - (typeof actionsCancelWorkflowRun)["responder"] & KoaRuntimeResponder - export type ActionsCancelWorkflowRun = ( params: Params, - respond: ActionsCancelWorkflowRunResponder, + respond: (typeof actionsCancelWorkflowRun)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13741,9 +12270,6 @@ const actionsReviewCustomGatesForRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsReviewCustomGatesForRunResponder = - (typeof actionsReviewCustomGatesForRun)["responder"] & KoaRuntimeResponder - export type ActionsReviewCustomGatesForRun = ( params: Params< t_ActionsReviewCustomGatesForRunParamSchema, @@ -13751,7 +12277,7 @@ export type ActionsReviewCustomGatesForRun = ( t_ActionsReviewCustomGatesForRunBodySchema, void >, - respond: ActionsReviewCustomGatesForRunResponder, + respond: (typeof actionsReviewCustomGatesForRun)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -13761,12 +12287,9 @@ const actionsForceCancelWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsForceCancelWorkflowRunResponder = - (typeof actionsForceCancelWorkflowRun)["responder"] & KoaRuntimeResponder - export type ActionsForceCancelWorkflowRun = ( params: Params, - respond: ActionsForceCancelWorkflowRunResponder, + respond: (typeof actionsForceCancelWorkflowRun)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13782,9 +12305,6 @@ const actionsListJobsForWorkflowRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListJobsForWorkflowRunResponder = - (typeof actionsListJobsForWorkflowRun)["responder"] & KoaRuntimeResponder - export type ActionsListJobsForWorkflowRun = ( params: Params< t_ActionsListJobsForWorkflowRunParamSchema, @@ -13792,7 +12312,7 @@ export type ActionsListJobsForWorkflowRun = ( void, void >, - respond: ActionsListJobsForWorkflowRunResponder, + respond: (typeof actionsListJobsForWorkflowRun)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13810,12 +12330,9 @@ const actionsDownloadWorkflowRunLogs = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDownloadWorkflowRunLogsResponder = - (typeof actionsDownloadWorkflowRunLogs)["responder"] & KoaRuntimeResponder - export type ActionsDownloadWorkflowRunLogs = ( params: Params, - respond: ActionsDownloadWorkflowRunLogsResponder, + respond: (typeof actionsDownloadWorkflowRunLogs)["responder"], ctx: RouterContext, ) => Promise | Response<302, void>> @@ -13826,12 +12343,9 @@ const actionsDeleteWorkflowRunLogs = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteWorkflowRunLogsResponder = - (typeof actionsDeleteWorkflowRunLogs)["responder"] & KoaRuntimeResponder - export type ActionsDeleteWorkflowRunLogs = ( params: Params, - respond: ActionsDeleteWorkflowRunLogsResponder, + respond: (typeof actionsDeleteWorkflowRunLogs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13845,9 +12359,6 @@ const actionsGetPendingDeploymentsForRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetPendingDeploymentsForRunResponder = - (typeof actionsGetPendingDeploymentsForRun)["responder"] & KoaRuntimeResponder - export type ActionsGetPendingDeploymentsForRun = ( params: Params< t_ActionsGetPendingDeploymentsForRunParamSchema, @@ -13855,7 +12366,7 @@ export type ActionsGetPendingDeploymentsForRun = ( void, void >, - respond: ActionsGetPendingDeploymentsForRunResponder, + respond: (typeof actionsGetPendingDeploymentsForRun)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_pending_deployment[]> @@ -13866,10 +12377,6 @@ const actionsReviewPendingDeploymentsForRun = b((r) => ({ withStatus: r.withStatus, })) -type ActionsReviewPendingDeploymentsForRunResponder = - (typeof actionsReviewPendingDeploymentsForRun)["responder"] & - KoaRuntimeResponder - export type ActionsReviewPendingDeploymentsForRun = ( params: Params< t_ActionsReviewPendingDeploymentsForRunParamSchema, @@ -13877,7 +12384,7 @@ export type ActionsReviewPendingDeploymentsForRun = ( t_ActionsReviewPendingDeploymentsForRunBodySchema, void >, - respond: ActionsReviewPendingDeploymentsForRunResponder, + respond: (typeof actionsReviewPendingDeploymentsForRun)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_deployment[]>> @@ -13886,9 +12393,6 @@ const actionsReRunWorkflow = b((r) => ({ withStatus: r.withStatus, })) -type ActionsReRunWorkflowResponder = - (typeof actionsReRunWorkflow)["responder"] & KoaRuntimeResponder - export type ActionsReRunWorkflow = ( params: Params< t_ActionsReRunWorkflowParamSchema, @@ -13896,7 +12400,7 @@ export type ActionsReRunWorkflow = ( t_ActionsReRunWorkflowBodySchema | undefined, void >, - respond: ActionsReRunWorkflowResponder, + respond: (typeof actionsReRunWorkflow)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> @@ -13905,9 +12409,6 @@ const actionsReRunWorkflowFailedJobs = b((r) => ({ withStatus: r.withStatus, })) -type ActionsReRunWorkflowFailedJobsResponder = - (typeof actionsReRunWorkflowFailedJobs)["responder"] & KoaRuntimeResponder - export type ActionsReRunWorkflowFailedJobs = ( params: Params< t_ActionsReRunWorkflowFailedJobsParamSchema, @@ -13915,7 +12416,7 @@ export type ActionsReRunWorkflowFailedJobs = ( t_ActionsReRunWorkflowFailedJobsBodySchema | undefined, void >, - respond: ActionsReRunWorkflowFailedJobsResponder, + respond: (typeof actionsReRunWorkflowFailedJobs)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> @@ -13924,12 +12425,9 @@ const actionsGetWorkflowRunUsage = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetWorkflowRunUsageResponder = - (typeof actionsGetWorkflowRunUsage)["responder"] & KoaRuntimeResponder - export type ActionsGetWorkflowRunUsage = ( params: Params, - respond: ActionsGetWorkflowRunUsageResponder, + respond: (typeof actionsGetWorkflowRunUsage)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_workflow_run_usage>> @@ -13946,9 +12444,6 @@ const actionsListRepoSecrets = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListRepoSecretsResponder = - (typeof actionsListRepoSecrets)["responder"] & KoaRuntimeResponder - export type ActionsListRepoSecrets = ( params: Params< t_ActionsListRepoSecretsParamSchema, @@ -13956,7 +12451,7 @@ export type ActionsListRepoSecrets = ( void, void >, - respond: ActionsListRepoSecretsResponder, + respond: (typeof actionsListRepoSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13974,12 +12469,9 @@ const actionsGetRepoPublicKey = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetRepoPublicKeyResponder = - (typeof actionsGetRepoPublicKey)["responder"] & KoaRuntimeResponder - export type ActionsGetRepoPublicKey = ( params: Params, - respond: ActionsGetRepoPublicKeyResponder, + respond: (typeof actionsGetRepoPublicKey)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> @@ -13988,12 +12480,9 @@ const actionsGetRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetRepoSecretResponder = - (typeof actionsGetRepoSecret)["responder"] & KoaRuntimeResponder - export type ActionsGetRepoSecret = ( params: Params, - respond: ActionsGetRepoSecretResponder, + respond: (typeof actionsGetRepoSecret)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_secret>> @@ -14003,9 +12492,6 @@ const actionsCreateOrUpdateRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateOrUpdateRepoSecretResponder = - (typeof actionsCreateOrUpdateRepoSecret)["responder"] & KoaRuntimeResponder - export type ActionsCreateOrUpdateRepoSecret = ( params: Params< t_ActionsCreateOrUpdateRepoSecretParamSchema, @@ -14013,7 +12499,7 @@ export type ActionsCreateOrUpdateRepoSecret = ( t_ActionsCreateOrUpdateRepoSecretBodySchema, void >, - respond: ActionsCreateOrUpdateRepoSecretResponder, + respond: (typeof actionsCreateOrUpdateRepoSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14026,12 +12512,9 @@ const actionsDeleteRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteRepoSecretResponder = - (typeof actionsDeleteRepoSecret)["responder"] & KoaRuntimeResponder - export type ActionsDeleteRepoSecret = ( params: Params, - respond: ActionsDeleteRepoSecretResponder, + respond: (typeof actionsDeleteRepoSecret)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14048,9 +12531,6 @@ const actionsListRepoVariables = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListRepoVariablesResponder = - (typeof actionsListRepoVariables)["responder"] & KoaRuntimeResponder - export type ActionsListRepoVariables = ( params: Params< t_ActionsListRepoVariablesParamSchema, @@ -14058,7 +12538,7 @@ export type ActionsListRepoVariables = ( void, void >, - respond: ActionsListRepoVariablesResponder, + respond: (typeof actionsListRepoVariables)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14076,9 +12556,6 @@ const actionsCreateRepoVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateRepoVariableResponder = - (typeof actionsCreateRepoVariable)["responder"] & KoaRuntimeResponder - export type ActionsCreateRepoVariable = ( params: Params< t_ActionsCreateRepoVariableParamSchema, @@ -14086,7 +12563,7 @@ export type ActionsCreateRepoVariable = ( t_ActionsCreateRepoVariableBodySchema, void >, - respond: ActionsCreateRepoVariableResponder, + respond: (typeof actionsCreateRepoVariable)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> @@ -14095,12 +12572,9 @@ const actionsGetRepoVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetRepoVariableResponder = - (typeof actionsGetRepoVariable)["responder"] & KoaRuntimeResponder - export type ActionsGetRepoVariable = ( params: Params, - respond: ActionsGetRepoVariableResponder, + respond: (typeof actionsGetRepoVariable)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_variable>> @@ -14109,9 +12583,6 @@ const actionsUpdateRepoVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsUpdateRepoVariableResponder = - (typeof actionsUpdateRepoVariable)["responder"] & KoaRuntimeResponder - export type ActionsUpdateRepoVariable = ( params: Params< t_ActionsUpdateRepoVariableParamSchema, @@ -14119,7 +12590,7 @@ export type ActionsUpdateRepoVariable = ( t_ActionsUpdateRepoVariableBodySchema, void >, - respond: ActionsUpdateRepoVariableResponder, + respond: (typeof actionsUpdateRepoVariable)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14128,12 +12599,9 @@ const actionsDeleteRepoVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteRepoVariableResponder = - (typeof actionsDeleteRepoVariable)["responder"] & KoaRuntimeResponder - export type ActionsDeleteRepoVariable = ( params: Params, - respond: ActionsDeleteRepoVariableResponder, + respond: (typeof actionsDeleteRepoVariable)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14150,9 +12618,6 @@ const actionsListRepoWorkflows = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListRepoWorkflowsResponder = - (typeof actionsListRepoWorkflows)["responder"] & KoaRuntimeResponder - export type ActionsListRepoWorkflows = ( params: Params< t_ActionsListRepoWorkflowsParamSchema, @@ -14160,7 +12625,7 @@ export type ActionsListRepoWorkflows = ( void, void >, - respond: ActionsListRepoWorkflowsResponder, + respond: (typeof actionsListRepoWorkflows)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14178,12 +12643,9 @@ const actionsGetWorkflow = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetWorkflowResponder = (typeof actionsGetWorkflow)["responder"] & - KoaRuntimeResponder - export type ActionsGetWorkflow = ( params: Params, - respond: ActionsGetWorkflowResponder, + respond: (typeof actionsGetWorkflow)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_workflow>> @@ -14192,12 +12654,9 @@ const actionsDisableWorkflow = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDisableWorkflowResponder = - (typeof actionsDisableWorkflow)["responder"] & KoaRuntimeResponder - export type ActionsDisableWorkflow = ( params: Params, - respond: ActionsDisableWorkflowResponder, + respond: (typeof actionsDisableWorkflow)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14206,9 +12665,6 @@ const actionsCreateWorkflowDispatch = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateWorkflowDispatchResponder = - (typeof actionsCreateWorkflowDispatch)["responder"] & KoaRuntimeResponder - export type ActionsCreateWorkflowDispatch = ( params: Params< t_ActionsCreateWorkflowDispatchParamSchema, @@ -14216,7 +12672,7 @@ export type ActionsCreateWorkflowDispatch = ( t_ActionsCreateWorkflowDispatchBodySchema, void >, - respond: ActionsCreateWorkflowDispatchResponder, + respond: (typeof actionsCreateWorkflowDispatch)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14225,12 +12681,9 @@ const actionsEnableWorkflow = b((r) => ({ withStatus: r.withStatus, })) -type ActionsEnableWorkflowResponder = - (typeof actionsEnableWorkflow)["responder"] & KoaRuntimeResponder - export type ActionsEnableWorkflow = ( params: Params, - respond: ActionsEnableWorkflowResponder, + respond: (typeof actionsEnableWorkflow)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14247,9 +12700,6 @@ const actionsListWorkflowRuns = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListWorkflowRunsResponder = - (typeof actionsListWorkflowRuns)["responder"] & KoaRuntimeResponder - export type ActionsListWorkflowRuns = ( params: Params< t_ActionsListWorkflowRunsParamSchema, @@ -14257,7 +12707,7 @@ export type ActionsListWorkflowRuns = ( void, void >, - respond: ActionsListWorkflowRunsResponder, + respond: (typeof actionsListWorkflowRuns)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14275,12 +12725,9 @@ const actionsGetWorkflowUsage = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetWorkflowUsageResponder = - (typeof actionsGetWorkflowUsage)["responder"] & KoaRuntimeResponder - export type ActionsGetWorkflowUsage = ( params: Params, - respond: ActionsGetWorkflowUsageResponder, + respond: (typeof actionsGetWorkflowUsage)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_workflow_usage>> @@ -14290,9 +12737,6 @@ const reposListActivities = b((r) => ({ withStatus: r.withStatus, })) -type ReposListActivitiesResponder = (typeof reposListActivities)["responder"] & - KoaRuntimeResponder - export type ReposListActivities = ( params: Params< t_ReposListActivitiesParamSchema, @@ -14300,7 +12744,7 @@ export type ReposListActivities = ( void, void >, - respond: ReposListActivitiesResponder, + respond: (typeof reposListActivities)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14314,9 +12758,6 @@ const issuesListAssignees = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListAssigneesResponder = (typeof issuesListAssignees)["responder"] & - KoaRuntimeResponder - export type IssuesListAssignees = ( params: Params< t_IssuesListAssigneesParamSchema, @@ -14324,7 +12765,7 @@ export type IssuesListAssignees = ( void, void >, - respond: IssuesListAssigneesResponder, + respond: (typeof issuesListAssignees)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14338,12 +12779,9 @@ const issuesCheckUserCanBeAssigned = b((r) => ({ withStatus: r.withStatus, })) -type IssuesCheckUserCanBeAssignedResponder = - (typeof issuesCheckUserCanBeAssigned)["responder"] & KoaRuntimeResponder - export type IssuesCheckUserCanBeAssigned = ( params: Params, - respond: IssuesCheckUserCanBeAssignedResponder, + respond: (typeof issuesCheckUserCanBeAssigned)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14360,9 +12798,6 @@ const reposCreateAttestation = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateAttestationResponder = - (typeof reposCreateAttestation)["responder"] & KoaRuntimeResponder - export type ReposCreateAttestation = ( params: Params< t_ReposCreateAttestationParamSchema, @@ -14370,7 +12805,7 @@ export type ReposCreateAttestation = ( t_ReposCreateAttestationBodySchema, void >, - respond: ReposCreateAttestationResponder, + respond: (typeof reposCreateAttestation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14421,9 +12856,6 @@ const reposListAttestations = b((r) => ({ withStatus: r.withStatus, })) -type ReposListAttestationsResponder = - (typeof reposListAttestations)["responder"] & KoaRuntimeResponder - export type ReposListAttestations = ( params: Params< t_ReposListAttestationsParamSchema, @@ -14431,7 +12863,7 @@ export type ReposListAttestations = ( void, void >, - respond: ReposListAttestationsResponder, + respond: (typeof reposListAttestations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14460,12 +12892,9 @@ const reposListAutolinks = b((r) => ({ withStatus: r.withStatus, })) -type ReposListAutolinksResponder = (typeof reposListAutolinks)["responder"] & - KoaRuntimeResponder - export type ReposListAutolinks = ( params: Params, - respond: ReposListAutolinksResponder, + respond: (typeof reposListAutolinks)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_autolink[]>> @@ -14475,9 +12904,6 @@ const reposCreateAutolink = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateAutolinkResponder = (typeof reposCreateAutolink)["responder"] & - KoaRuntimeResponder - export type ReposCreateAutolink = ( params: Params< t_ReposCreateAutolinkParamSchema, @@ -14485,7 +12911,7 @@ export type ReposCreateAutolink = ( t_ReposCreateAutolinkBodySchema, void >, - respond: ReposCreateAutolinkResponder, + respond: (typeof reposCreateAutolink)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14499,12 +12925,9 @@ const reposGetAutolink = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetAutolinkResponder = (typeof reposGetAutolink)["responder"] & - KoaRuntimeResponder - export type ReposGetAutolink = ( params: Params, - respond: ReposGetAutolinkResponder, + respond: (typeof reposGetAutolink)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14518,12 +12941,9 @@ const reposDeleteAutolink = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteAutolinkResponder = (typeof reposDeleteAutolink)["responder"] & - KoaRuntimeResponder - export type ReposDeleteAutolink = ( params: Params, - respond: ReposDeleteAutolinkResponder, + respond: (typeof reposDeleteAutolink)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14539,9 +12959,6 @@ const reposCheckAutomatedSecurityFixes = b((r) => ({ withStatus: r.withStatus, })) -type ReposCheckAutomatedSecurityFixesResponder = - (typeof reposCheckAutomatedSecurityFixes)["responder"] & KoaRuntimeResponder - export type ReposCheckAutomatedSecurityFixes = ( params: Params< t_ReposCheckAutomatedSecurityFixesParamSchema, @@ -14549,7 +12966,7 @@ export type ReposCheckAutomatedSecurityFixes = ( void, void >, - respond: ReposCheckAutomatedSecurityFixesResponder, + respond: (typeof reposCheckAutomatedSecurityFixes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14562,9 +12979,6 @@ const reposEnableAutomatedSecurityFixes = b((r) => ({ withStatus: r.withStatus, })) -type ReposEnableAutomatedSecurityFixesResponder = - (typeof reposEnableAutomatedSecurityFixes)["responder"] & KoaRuntimeResponder - export type ReposEnableAutomatedSecurityFixes = ( params: Params< t_ReposEnableAutomatedSecurityFixesParamSchema, @@ -14572,7 +12986,7 @@ export type ReposEnableAutomatedSecurityFixes = ( void, void >, - respond: ReposEnableAutomatedSecurityFixesResponder, + respond: (typeof reposEnableAutomatedSecurityFixes)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14581,9 +12995,6 @@ const reposDisableAutomatedSecurityFixes = b((r) => ({ withStatus: r.withStatus, })) -type ReposDisableAutomatedSecurityFixesResponder = - (typeof reposDisableAutomatedSecurityFixes)["responder"] & KoaRuntimeResponder - export type ReposDisableAutomatedSecurityFixes = ( params: Params< t_ReposDisableAutomatedSecurityFixesParamSchema, @@ -14591,7 +13002,7 @@ export type ReposDisableAutomatedSecurityFixes = ( void, void >, - respond: ReposDisableAutomatedSecurityFixesResponder, + respond: (typeof reposDisableAutomatedSecurityFixes)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14601,9 +13012,6 @@ const reposListBranches = b((r) => ({ withStatus: r.withStatus, })) -type ReposListBranchesResponder = (typeof reposListBranches)["responder"] & - KoaRuntimeResponder - export type ReposListBranches = ( params: Params< t_ReposListBranchesParamSchema, @@ -14611,7 +13019,7 @@ export type ReposListBranches = ( void, void >, - respond: ReposListBranchesResponder, + respond: (typeof reposListBranches)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14626,12 +13034,9 @@ const reposGetBranch = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetBranchResponder = (typeof reposGetBranch)["responder"] & - KoaRuntimeResponder - export type ReposGetBranch = ( params: Params, - respond: ReposGetBranchResponder, + respond: (typeof reposGetBranch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14646,12 +13051,9 @@ const reposGetBranchProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetBranchProtectionResponder = - (typeof reposGetBranchProtection)["responder"] & KoaRuntimeResponder - export type ReposGetBranchProtection = ( params: Params, - respond: ReposGetBranchProtectionResponder, + respond: (typeof reposGetBranchProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14667,9 +13069,6 @@ const reposUpdateBranchProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateBranchProtectionResponder = - (typeof reposUpdateBranchProtection)["responder"] & KoaRuntimeResponder - export type ReposUpdateBranchProtection = ( params: Params< t_ReposUpdateBranchProtectionParamSchema, @@ -14677,7 +13076,7 @@ export type ReposUpdateBranchProtection = ( t_ReposUpdateBranchProtectionBodySchema, void >, - respond: ReposUpdateBranchProtectionResponder, + respond: (typeof reposUpdateBranchProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14693,12 +13092,9 @@ const reposDeleteBranchProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteBranchProtectionResponder = - (typeof reposDeleteBranchProtection)["responder"] & KoaRuntimeResponder - export type ReposDeleteBranchProtection = ( params: Params, - respond: ReposDeleteBranchProtectionResponder, + respond: (typeof reposDeleteBranchProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14713,12 +13109,9 @@ const reposGetAdminBranchProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetAdminBranchProtectionResponder = - (typeof reposGetAdminBranchProtection)["responder"] & KoaRuntimeResponder - export type ReposGetAdminBranchProtection = ( params: Params, - respond: ReposGetAdminBranchProtectionResponder, + respond: (typeof reposGetAdminBranchProtection)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_protected_branch_admin_enforced> @@ -14731,12 +13124,9 @@ const reposSetAdminBranchProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposSetAdminBranchProtectionResponder = - (typeof reposSetAdminBranchProtection)["responder"] & KoaRuntimeResponder - export type ReposSetAdminBranchProtection = ( params: Params, - respond: ReposSetAdminBranchProtectionResponder, + respond: (typeof reposSetAdminBranchProtection)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_protected_branch_admin_enforced> @@ -14748,9 +13138,6 @@ const reposDeleteAdminBranchProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteAdminBranchProtectionResponder = - (typeof reposDeleteAdminBranchProtection)["responder"] & KoaRuntimeResponder - export type ReposDeleteAdminBranchProtection = ( params: Params< t_ReposDeleteAdminBranchProtectionParamSchema, @@ -14758,7 +13145,7 @@ export type ReposDeleteAdminBranchProtection = ( void, void >, - respond: ReposDeleteAdminBranchProtectionResponder, + respond: (typeof reposDeleteAdminBranchProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14773,10 +13160,6 @@ const reposGetPullRequestReviewProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetPullRequestReviewProtectionResponder = - (typeof reposGetPullRequestReviewProtection)["responder"] & - KoaRuntimeResponder - export type ReposGetPullRequestReviewProtection = ( params: Params< t_ReposGetPullRequestReviewProtectionParamSchema, @@ -14784,7 +13167,7 @@ export type ReposGetPullRequestReviewProtection = ( void, void >, - respond: ReposGetPullRequestReviewProtectionResponder, + respond: (typeof reposGetPullRequestReviewProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14799,10 +13182,6 @@ const reposUpdatePullRequestReviewProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdatePullRequestReviewProtectionResponder = - (typeof reposUpdatePullRequestReviewProtection)["responder"] & - KoaRuntimeResponder - export type ReposUpdatePullRequestReviewProtection = ( params: Params< t_ReposUpdatePullRequestReviewProtectionParamSchema, @@ -14810,7 +13189,7 @@ export type ReposUpdatePullRequestReviewProtection = ( t_ReposUpdatePullRequestReviewProtectionBodySchema | undefined, void >, - respond: ReposUpdatePullRequestReviewProtectionResponder, + respond: (typeof reposUpdatePullRequestReviewProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14824,10 +13203,6 @@ const reposDeletePullRequestReviewProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeletePullRequestReviewProtectionResponder = - (typeof reposDeletePullRequestReviewProtection)["responder"] & - KoaRuntimeResponder - export type ReposDeletePullRequestReviewProtection = ( params: Params< t_ReposDeletePullRequestReviewProtectionParamSchema, @@ -14835,7 +13210,7 @@ export type ReposDeletePullRequestReviewProtection = ( void, void >, - respond: ReposDeletePullRequestReviewProtectionResponder, + respond: (typeof reposDeletePullRequestReviewProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14851,9 +13226,6 @@ const reposGetCommitSignatureProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCommitSignatureProtectionResponder = - (typeof reposGetCommitSignatureProtection)["responder"] & KoaRuntimeResponder - export type ReposGetCommitSignatureProtection = ( params: Params< t_ReposGetCommitSignatureProtectionParamSchema, @@ -14861,7 +13233,7 @@ export type ReposGetCommitSignatureProtection = ( void, void >, - respond: ReposGetCommitSignatureProtectionResponder, + respond: (typeof reposGetCommitSignatureProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14877,10 +13249,6 @@ const reposCreateCommitSignatureProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateCommitSignatureProtectionResponder = - (typeof reposCreateCommitSignatureProtection)["responder"] & - KoaRuntimeResponder - export type ReposCreateCommitSignatureProtection = ( params: Params< t_ReposCreateCommitSignatureProtectionParamSchema, @@ -14888,7 +13256,7 @@ export type ReposCreateCommitSignatureProtection = ( void, void >, - respond: ReposCreateCommitSignatureProtectionResponder, + respond: (typeof reposCreateCommitSignatureProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14902,10 +13270,6 @@ const reposDeleteCommitSignatureProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteCommitSignatureProtectionResponder = - (typeof reposDeleteCommitSignatureProtection)["responder"] & - KoaRuntimeResponder - export type ReposDeleteCommitSignatureProtection = ( params: Params< t_ReposDeleteCommitSignatureProtectionParamSchema, @@ -14913,7 +13277,7 @@ export type ReposDeleteCommitSignatureProtection = ( void, void >, - respond: ReposDeleteCommitSignatureProtectionResponder, + respond: (typeof reposDeleteCommitSignatureProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14927,12 +13291,9 @@ const reposGetStatusChecksProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetStatusChecksProtectionResponder = - (typeof reposGetStatusChecksProtection)["responder"] & KoaRuntimeResponder - export type ReposGetStatusChecksProtection = ( params: Params, - respond: ReposGetStatusChecksProtectionResponder, + respond: (typeof reposGetStatusChecksProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14947,9 +13308,6 @@ const reposUpdateStatusCheckProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateStatusCheckProtectionResponder = - (typeof reposUpdateStatusCheckProtection)["responder"] & KoaRuntimeResponder - export type ReposUpdateStatusCheckProtection = ( params: Params< t_ReposUpdateStatusCheckProtectionParamSchema, @@ -14957,7 +13315,7 @@ export type ReposUpdateStatusCheckProtection = ( t_ReposUpdateStatusCheckProtectionBodySchema | undefined, void >, - respond: ReposUpdateStatusCheckProtectionResponder, + respond: (typeof reposUpdateStatusCheckProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14971,9 +13329,6 @@ const reposRemoveStatusCheckProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposRemoveStatusCheckProtectionResponder = - (typeof reposRemoveStatusCheckProtection)["responder"] & KoaRuntimeResponder - export type ReposRemoveStatusCheckProtection = ( params: Params< t_ReposRemoveStatusCheckProtectionParamSchema, @@ -14981,7 +13336,7 @@ export type ReposRemoveStatusCheckProtection = ( void, void >, - respond: ReposRemoveStatusCheckProtectionResponder, + respond: (typeof reposRemoveStatusCheckProtection)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -14991,12 +13346,9 @@ const reposGetAllStatusCheckContexts = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetAllStatusCheckContextsResponder = - (typeof reposGetAllStatusCheckContexts)["responder"] & KoaRuntimeResponder - export type ReposGetAllStatusCheckContexts = ( params: Params, - respond: ReposGetAllStatusCheckContextsResponder, + respond: (typeof reposGetAllStatusCheckContexts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15012,9 +13364,6 @@ const reposAddStatusCheckContexts = b((r) => ({ withStatus: r.withStatus, })) -type ReposAddStatusCheckContextsResponder = - (typeof reposAddStatusCheckContexts)["responder"] & KoaRuntimeResponder - export type ReposAddStatusCheckContexts = ( params: Params< t_ReposAddStatusCheckContextsParamSchema, @@ -15022,7 +13371,7 @@ export type ReposAddStatusCheckContexts = ( t_ReposAddStatusCheckContextsBodySchema | undefined, void >, - respond: ReposAddStatusCheckContextsResponder, + respond: (typeof reposAddStatusCheckContexts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15039,9 +13388,6 @@ const reposSetStatusCheckContexts = b((r) => ({ withStatus: r.withStatus, })) -type ReposSetStatusCheckContextsResponder = - (typeof reposSetStatusCheckContexts)["responder"] & KoaRuntimeResponder - export type ReposSetStatusCheckContexts = ( params: Params< t_ReposSetStatusCheckContextsParamSchema, @@ -15049,7 +13395,7 @@ export type ReposSetStatusCheckContexts = ( t_ReposSetStatusCheckContextsBodySchema | undefined, void >, - respond: ReposSetStatusCheckContextsResponder, + respond: (typeof reposSetStatusCheckContexts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15065,9 +13411,6 @@ const reposRemoveStatusCheckContexts = b((r) => ({ withStatus: r.withStatus, })) -type ReposRemoveStatusCheckContextsResponder = - (typeof reposRemoveStatusCheckContexts)["responder"] & KoaRuntimeResponder - export type ReposRemoveStatusCheckContexts = ( params: Params< t_ReposRemoveStatusCheckContextsParamSchema, @@ -15075,7 +13418,7 @@ export type ReposRemoveStatusCheckContexts = ( t_ReposRemoveStatusCheckContextsBodySchema, void >, - respond: ReposRemoveStatusCheckContextsResponder, + respond: (typeof reposRemoveStatusCheckContexts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15090,12 +13433,9 @@ const reposGetAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetAccessRestrictionsResponder = - (typeof reposGetAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposGetAccessRestrictions = ( params: Params, - respond: ReposGetAccessRestrictionsResponder, + respond: (typeof reposGetAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15108,12 +13448,9 @@ const reposDeleteAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteAccessRestrictionsResponder = - (typeof reposDeleteAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposDeleteAccessRestrictions = ( params: Params, - respond: ReposDeleteAccessRestrictionsResponder, + respond: (typeof reposDeleteAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -15123,10 +13460,6 @@ const reposGetAppsWithAccessToProtectedBranch = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetAppsWithAccessToProtectedBranchResponder = - (typeof reposGetAppsWithAccessToProtectedBranch)["responder"] & - KoaRuntimeResponder - export type ReposGetAppsWithAccessToProtectedBranch = ( params: Params< t_ReposGetAppsWithAccessToProtectedBranchParamSchema, @@ -15134,7 +13467,7 @@ export type ReposGetAppsWithAccessToProtectedBranch = ( void, void >, - respond: ReposGetAppsWithAccessToProtectedBranchResponder, + respond: (typeof reposGetAppsWithAccessToProtectedBranch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15148,9 +13481,6 @@ const reposAddAppAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposAddAppAccessRestrictionsResponder = - (typeof reposAddAppAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposAddAppAccessRestrictions = ( params: Params< t_ReposAddAppAccessRestrictionsParamSchema, @@ -15158,7 +13488,7 @@ export type ReposAddAppAccessRestrictions = ( t_ReposAddAppAccessRestrictionsBodySchema, void >, - respond: ReposAddAppAccessRestrictionsResponder, + respond: (typeof reposAddAppAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15172,9 +13502,6 @@ const reposSetAppAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposSetAppAccessRestrictionsResponder = - (typeof reposSetAppAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposSetAppAccessRestrictions = ( params: Params< t_ReposSetAppAccessRestrictionsParamSchema, @@ -15182,7 +13509,7 @@ export type ReposSetAppAccessRestrictions = ( t_ReposSetAppAccessRestrictionsBodySchema, void >, - respond: ReposSetAppAccessRestrictionsResponder, + respond: (typeof reposSetAppAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15196,9 +13523,6 @@ const reposRemoveAppAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposRemoveAppAccessRestrictionsResponder = - (typeof reposRemoveAppAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposRemoveAppAccessRestrictions = ( params: Params< t_ReposRemoveAppAccessRestrictionsParamSchema, @@ -15206,7 +13530,7 @@ export type ReposRemoveAppAccessRestrictions = ( t_ReposRemoveAppAccessRestrictionsBodySchema, void >, - respond: ReposRemoveAppAccessRestrictionsResponder, + respond: (typeof reposRemoveAppAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15220,10 +13544,6 @@ const reposGetTeamsWithAccessToProtectedBranch = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetTeamsWithAccessToProtectedBranchResponder = - (typeof reposGetTeamsWithAccessToProtectedBranch)["responder"] & - KoaRuntimeResponder - export type ReposGetTeamsWithAccessToProtectedBranch = ( params: Params< t_ReposGetTeamsWithAccessToProtectedBranchParamSchema, @@ -15231,7 +13551,7 @@ export type ReposGetTeamsWithAccessToProtectedBranch = ( void, void >, - respond: ReposGetTeamsWithAccessToProtectedBranchResponder, + respond: (typeof reposGetTeamsWithAccessToProtectedBranch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15245,9 +13565,6 @@ const reposAddTeamAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposAddTeamAccessRestrictionsResponder = - (typeof reposAddTeamAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposAddTeamAccessRestrictions = ( params: Params< t_ReposAddTeamAccessRestrictionsParamSchema, @@ -15255,7 +13572,7 @@ export type ReposAddTeamAccessRestrictions = ( t_ReposAddTeamAccessRestrictionsBodySchema | undefined, void >, - respond: ReposAddTeamAccessRestrictionsResponder, + respond: (typeof reposAddTeamAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15269,9 +13586,6 @@ const reposSetTeamAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposSetTeamAccessRestrictionsResponder = - (typeof reposSetTeamAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposSetTeamAccessRestrictions = ( params: Params< t_ReposSetTeamAccessRestrictionsParamSchema, @@ -15279,7 +13593,7 @@ export type ReposSetTeamAccessRestrictions = ( t_ReposSetTeamAccessRestrictionsBodySchema | undefined, void >, - respond: ReposSetTeamAccessRestrictionsResponder, + respond: (typeof reposSetTeamAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15293,9 +13607,6 @@ const reposRemoveTeamAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposRemoveTeamAccessRestrictionsResponder = - (typeof reposRemoveTeamAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposRemoveTeamAccessRestrictions = ( params: Params< t_ReposRemoveTeamAccessRestrictionsParamSchema, @@ -15303,7 +13614,7 @@ export type ReposRemoveTeamAccessRestrictions = ( t_ReposRemoveTeamAccessRestrictionsBodySchema, void >, - respond: ReposRemoveTeamAccessRestrictionsResponder, + respond: (typeof reposRemoveTeamAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15317,10 +13628,6 @@ const reposGetUsersWithAccessToProtectedBranch = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetUsersWithAccessToProtectedBranchResponder = - (typeof reposGetUsersWithAccessToProtectedBranch)["responder"] & - KoaRuntimeResponder - export type ReposGetUsersWithAccessToProtectedBranch = ( params: Params< t_ReposGetUsersWithAccessToProtectedBranchParamSchema, @@ -15328,7 +13635,7 @@ export type ReposGetUsersWithAccessToProtectedBranch = ( void, void >, - respond: ReposGetUsersWithAccessToProtectedBranchResponder, + respond: (typeof reposGetUsersWithAccessToProtectedBranch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15342,9 +13649,6 @@ const reposAddUserAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposAddUserAccessRestrictionsResponder = - (typeof reposAddUserAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposAddUserAccessRestrictions = ( params: Params< t_ReposAddUserAccessRestrictionsParamSchema, @@ -15352,7 +13656,7 @@ export type ReposAddUserAccessRestrictions = ( t_ReposAddUserAccessRestrictionsBodySchema, void >, - respond: ReposAddUserAccessRestrictionsResponder, + respond: (typeof reposAddUserAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15366,9 +13670,6 @@ const reposSetUserAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposSetUserAccessRestrictionsResponder = - (typeof reposSetUserAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposSetUserAccessRestrictions = ( params: Params< t_ReposSetUserAccessRestrictionsParamSchema, @@ -15376,7 +13677,7 @@ export type ReposSetUserAccessRestrictions = ( t_ReposSetUserAccessRestrictionsBodySchema, void >, - respond: ReposSetUserAccessRestrictionsResponder, + respond: (typeof reposSetUserAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15390,9 +13691,6 @@ const reposRemoveUserAccessRestrictions = b((r) => ({ withStatus: r.withStatus, })) -type ReposRemoveUserAccessRestrictionsResponder = - (typeof reposRemoveUserAccessRestrictions)["responder"] & KoaRuntimeResponder - export type ReposRemoveUserAccessRestrictions = ( params: Params< t_ReposRemoveUserAccessRestrictionsParamSchema, @@ -15400,7 +13698,7 @@ export type ReposRemoveUserAccessRestrictions = ( t_ReposRemoveUserAccessRestrictionsBodySchema, void >, - respond: ReposRemoveUserAccessRestrictionsResponder, + respond: (typeof reposRemoveUserAccessRestrictions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15416,9 +13714,6 @@ const reposRenameBranch = b((r) => ({ withStatus: r.withStatus, })) -type ReposRenameBranchResponder = (typeof reposRenameBranch)["responder"] & - KoaRuntimeResponder - export type ReposRenameBranch = ( params: Params< t_ReposRenameBranchParamSchema, @@ -15426,7 +13721,7 @@ export type ReposRenameBranch = ( t_ReposRenameBranchBodySchema, void >, - respond: ReposRenameBranchResponder, + respond: (typeof reposRenameBranch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15441,9 +13736,6 @@ const checksCreate = b((r) => ({ withStatus: r.withStatus, })) -type ChecksCreateResponder = (typeof checksCreate)["responder"] & - KoaRuntimeResponder - export type ChecksCreate = ( params: Params< t_ChecksCreateParamSchema, @@ -15451,7 +13743,7 @@ export type ChecksCreate = ( t_ChecksCreateBodySchema, void >, - respond: ChecksCreateResponder, + respond: (typeof checksCreate)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_check_run>> @@ -15460,11 +13752,9 @@ const checksGet = b((r) => ({ withStatus: r.withStatus, })) -type ChecksGetResponder = (typeof checksGet)["responder"] & KoaRuntimeResponder - export type ChecksGet = ( params: Params, - respond: ChecksGetResponder, + respond: (typeof checksGet)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_check_run>> @@ -15473,9 +13763,6 @@ const checksUpdate = b((r) => ({ withStatus: r.withStatus, })) -type ChecksUpdateResponder = (typeof checksUpdate)["responder"] & - KoaRuntimeResponder - export type ChecksUpdate = ( params: Params< t_ChecksUpdateParamSchema, @@ -15483,7 +13770,7 @@ export type ChecksUpdate = ( t_ChecksUpdateBodySchema, void >, - respond: ChecksUpdateResponder, + respond: (typeof checksUpdate)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_check_run>> @@ -15492,9 +13779,6 @@ const checksListAnnotations = b((r) => ({ withStatus: r.withStatus, })) -type ChecksListAnnotationsResponder = - (typeof checksListAnnotations)["responder"] & KoaRuntimeResponder - export type ChecksListAnnotations = ( params: Params< t_ChecksListAnnotationsParamSchema, @@ -15502,7 +13786,7 @@ export type ChecksListAnnotations = ( void, void >, - respond: ChecksListAnnotationsResponder, + respond: (typeof checksListAnnotations)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_check_annotation[]>> @@ -15514,12 +13798,9 @@ const checksRerequestRun = b((r) => ({ withStatus: r.withStatus, })) -type ChecksRerequestRunResponder = (typeof checksRerequestRun)["responder"] & - KoaRuntimeResponder - export type ChecksRerequestRun = ( params: Params, - respond: ChecksRerequestRunResponder, + respond: (typeof checksRerequestRun)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15535,9 +13816,6 @@ const checksCreateSuite = b((r) => ({ withStatus: r.withStatus, })) -type ChecksCreateSuiteResponder = (typeof checksCreateSuite)["responder"] & - KoaRuntimeResponder - export type ChecksCreateSuite = ( params: Params< t_ChecksCreateSuiteParamSchema, @@ -15545,7 +13823,7 @@ export type ChecksCreateSuite = ( t_ChecksCreateSuiteBodySchema, void >, - respond: ChecksCreateSuiteResponder, + respond: (typeof checksCreateSuite)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15558,9 +13836,6 @@ const checksSetSuitesPreferences = b((r) => ({ withStatus: r.withStatus, })) -type ChecksSetSuitesPreferencesResponder = - (typeof checksSetSuitesPreferences)["responder"] & KoaRuntimeResponder - export type ChecksSetSuitesPreferences = ( params: Params< t_ChecksSetSuitesPreferencesParamSchema, @@ -15568,7 +13843,7 @@ export type ChecksSetSuitesPreferences = ( t_ChecksSetSuitesPreferencesBodySchema, void >, - respond: ChecksSetSuitesPreferencesResponder, + respond: (typeof checksSetSuitesPreferences)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_check_suite_preference> @@ -15579,12 +13854,9 @@ const checksGetSuite = b((r) => ({ withStatus: r.withStatus, })) -type ChecksGetSuiteResponder = (typeof checksGetSuite)["responder"] & - KoaRuntimeResponder - export type ChecksGetSuite = ( params: Params, - respond: ChecksGetSuiteResponder, + respond: (typeof checksGetSuite)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_check_suite>> @@ -15601,9 +13873,6 @@ const checksListForSuite = b((r) => ({ withStatus: r.withStatus, })) -type ChecksListForSuiteResponder = (typeof checksListForSuite)["responder"] & - KoaRuntimeResponder - export type ChecksListForSuite = ( params: Params< t_ChecksListForSuiteParamSchema, @@ -15611,7 +13880,7 @@ export type ChecksListForSuite = ( void, void >, - respond: ChecksListForSuiteResponder, + respond: (typeof checksListForSuite)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15629,12 +13898,9 @@ const checksRerequestSuite = b((r) => ({ withStatus: r.withStatus, })) -type ChecksRerequestSuiteResponder = - (typeof checksRerequestSuite)["responder"] & KoaRuntimeResponder - export type ChecksRerequestSuite = ( params: Params, - respond: ChecksRerequestSuiteResponder, + respond: (typeof checksRerequestSuite)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> @@ -15659,9 +13925,6 @@ const codeScanningListAlertsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningListAlertsForRepoResponder = - (typeof codeScanningListAlertsForRepo)["responder"] & KoaRuntimeResponder - export type CodeScanningListAlertsForRepo = ( params: Params< t_CodeScanningListAlertsForRepoParamSchema, @@ -15669,7 +13932,7 @@ export type CodeScanningListAlertsForRepo = ( void, void >, - respond: CodeScanningListAlertsForRepoResponder, + respond: (typeof codeScanningListAlertsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15706,12 +13969,9 @@ const codeScanningGetAlert = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningGetAlertResponder = - (typeof codeScanningGetAlert)["responder"] & KoaRuntimeResponder - export type CodeScanningGetAlert = ( params: Params, - respond: CodeScanningGetAlertResponder, + respond: (typeof codeScanningGetAlert)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15748,9 +14008,6 @@ const codeScanningUpdateAlert = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningUpdateAlertResponder = - (typeof codeScanningUpdateAlert)["responder"] & KoaRuntimeResponder - export type CodeScanningUpdateAlert = ( params: Params< t_CodeScanningUpdateAlertParamSchema, @@ -15758,7 +14015,7 @@ export type CodeScanningUpdateAlert = ( t_CodeScanningUpdateAlertBodySchema, void >, - respond: CodeScanningUpdateAlertResponder, + respond: (typeof codeScanningUpdateAlert)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15795,12 +14052,9 @@ const codeScanningGetAutofix = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningGetAutofixResponder = - (typeof codeScanningGetAutofix)["responder"] & KoaRuntimeResponder - export type CodeScanningGetAutofix = ( params: Params, - respond: CodeScanningGetAutofixResponder, + respond: (typeof codeScanningGetAutofix)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15839,12 +14093,9 @@ const codeScanningCreateAutofix = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningCreateAutofixResponder = - (typeof codeScanningCreateAutofix)["responder"] & KoaRuntimeResponder - export type CodeScanningCreateAutofix = ( params: Params, - respond: CodeScanningCreateAutofixResponder, + respond: (typeof codeScanningCreateAutofix)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15886,9 +14137,6 @@ const codeScanningCommitAutofix = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningCommitAutofixResponder = - (typeof codeScanningCommitAutofix)["responder"] & KoaRuntimeResponder - export type CodeScanningCommitAutofix = ( params: Params< t_CodeScanningCommitAutofixParamSchema, @@ -15896,7 +14144,7 @@ export type CodeScanningCommitAutofix = ( t_CodeScanningCommitAutofixBodySchema | undefined, void >, - respond: CodeScanningCommitAutofixResponder, + respond: (typeof codeScanningCommitAutofix)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15935,9 +14183,6 @@ const codeScanningListAlertInstances = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningListAlertInstancesResponder = - (typeof codeScanningListAlertInstances)["responder"] & KoaRuntimeResponder - export type CodeScanningListAlertInstances = ( params: Params< t_CodeScanningListAlertInstancesParamSchema, @@ -15945,7 +14190,7 @@ export type CodeScanningListAlertInstances = ( void, void >, - respond: CodeScanningListAlertInstancesResponder, + respond: (typeof codeScanningListAlertInstances)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15982,9 +14227,6 @@ const codeScanningListRecentAnalyses = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningListRecentAnalysesResponder = - (typeof codeScanningListRecentAnalyses)["responder"] & KoaRuntimeResponder - export type CodeScanningListRecentAnalyses = ( params: Params< t_CodeScanningListRecentAnalysesParamSchema, @@ -15992,7 +14234,7 @@ export type CodeScanningListRecentAnalyses = ( void, void >, - respond: CodeScanningListRecentAnalysesResponder, + respond: (typeof codeScanningListRecentAnalyses)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16029,12 +14271,9 @@ const codeScanningGetAnalysis = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningGetAnalysisResponder = - (typeof codeScanningGetAnalysis)["responder"] & KoaRuntimeResponder - export type CodeScanningGetAnalysis = ( params: Params, - respond: CodeScanningGetAnalysisResponder, + respond: (typeof codeScanningGetAnalysis)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16077,9 +14316,6 @@ const codeScanningDeleteAnalysis = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningDeleteAnalysisResponder = - (typeof codeScanningDeleteAnalysis)["responder"] & KoaRuntimeResponder - export type CodeScanningDeleteAnalysis = ( params: Params< t_CodeScanningDeleteAnalysisParamSchema, @@ -16087,7 +14323,7 @@ export type CodeScanningDeleteAnalysis = ( void, void >, - respond: CodeScanningDeleteAnalysisResponder, + respond: (typeof codeScanningDeleteAnalysis)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16125,9 +14361,6 @@ const codeScanningListCodeqlDatabases = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningListCodeqlDatabasesResponder = - (typeof codeScanningListCodeqlDatabases)["responder"] & KoaRuntimeResponder - export type CodeScanningListCodeqlDatabases = ( params: Params< t_CodeScanningListCodeqlDatabasesParamSchema, @@ -16135,7 +14368,7 @@ export type CodeScanningListCodeqlDatabases = ( void, void >, - respond: CodeScanningListCodeqlDatabasesResponder, + respond: (typeof codeScanningListCodeqlDatabases)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16173,12 +14406,9 @@ const codeScanningGetCodeqlDatabase = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningGetCodeqlDatabaseResponder = - (typeof codeScanningGetCodeqlDatabase)["responder"] & KoaRuntimeResponder - export type CodeScanningGetCodeqlDatabase = ( params: Params, - respond: CodeScanningGetCodeqlDatabaseResponder, + respond: (typeof codeScanningGetCodeqlDatabase)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16214,9 +14444,6 @@ const codeScanningDeleteCodeqlDatabase = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningDeleteCodeqlDatabaseResponder = - (typeof codeScanningDeleteCodeqlDatabase)["responder"] & KoaRuntimeResponder - export type CodeScanningDeleteCodeqlDatabase = ( params: Params< t_CodeScanningDeleteCodeqlDatabaseParamSchema, @@ -16224,7 +14451,7 @@ export type CodeScanningDeleteCodeqlDatabase = ( void, void >, - respond: CodeScanningDeleteCodeqlDatabaseResponder, + respond: (typeof codeScanningDeleteCodeqlDatabase)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16261,9 +14488,6 @@ const codeScanningCreateVariantAnalysis = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningCreateVariantAnalysisResponder = - (typeof codeScanningCreateVariantAnalysis)["responder"] & KoaRuntimeResponder - export type CodeScanningCreateVariantAnalysis = ( params: Params< t_CodeScanningCreateVariantAnalysisParamSchema, @@ -16271,7 +14495,7 @@ export type CodeScanningCreateVariantAnalysis = ( t_CodeScanningCreateVariantAnalysisBodySchema, void >, - respond: CodeScanningCreateVariantAnalysisResponder, + respond: (typeof codeScanningCreateVariantAnalysis)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16307,12 +14531,9 @@ const codeScanningGetVariantAnalysis = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningGetVariantAnalysisResponder = - (typeof codeScanningGetVariantAnalysis)["responder"] & KoaRuntimeResponder - export type CodeScanningGetVariantAnalysis = ( params: Params, - respond: CodeScanningGetVariantAnalysisResponder, + respond: (typeof codeScanningGetVariantAnalysis)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16347,10 +14568,6 @@ const codeScanningGetVariantAnalysisRepoTask = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningGetVariantAnalysisRepoTaskResponder = - (typeof codeScanningGetVariantAnalysisRepoTask)["responder"] & - KoaRuntimeResponder - export type CodeScanningGetVariantAnalysisRepoTask = ( params: Params< t_CodeScanningGetVariantAnalysisRepoTaskParamSchema, @@ -16358,7 +14575,7 @@ export type CodeScanningGetVariantAnalysisRepoTask = ( void, void >, - respond: CodeScanningGetVariantAnalysisRepoTaskResponder, + respond: (typeof codeScanningGetVariantAnalysisRepoTask)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16394,12 +14611,9 @@ const codeScanningGetDefaultSetup = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningGetDefaultSetupResponder = - (typeof codeScanningGetDefaultSetup)["responder"] & KoaRuntimeResponder - export type CodeScanningGetDefaultSetup = ( params: Params, - respond: CodeScanningGetDefaultSetupResponder, + respond: (typeof codeScanningGetDefaultSetup)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16438,9 +14652,6 @@ const codeScanningUpdateDefaultSetup = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningUpdateDefaultSetupResponder = - (typeof codeScanningUpdateDefaultSetup)["responder"] & KoaRuntimeResponder - export type CodeScanningUpdateDefaultSetup = ( params: Params< t_CodeScanningUpdateDefaultSetupParamSchema, @@ -16448,7 +14659,7 @@ export type CodeScanningUpdateDefaultSetup = ( t_CodeScanningUpdateDefaultSetupBodySchema, void >, - respond: CodeScanningUpdateDefaultSetupResponder, + respond: (typeof codeScanningUpdateDefaultSetup)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16489,9 +14700,6 @@ const codeScanningUploadSarif = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningUploadSarifResponder = - (typeof codeScanningUploadSarif)["responder"] & KoaRuntimeResponder - export type CodeScanningUploadSarif = ( params: Params< t_CodeScanningUploadSarifParamSchema, @@ -16499,7 +14707,7 @@ export type CodeScanningUploadSarif = ( t_CodeScanningUploadSarifBodySchema, void >, - respond: CodeScanningUploadSarifResponder, + respond: (typeof codeScanningUploadSarif)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16538,12 +14746,9 @@ const codeScanningGetSarif = b((r) => ({ withStatus: r.withStatus, })) -type CodeScanningGetSarifResponder = - (typeof codeScanningGetSarif)["responder"] & KoaRuntimeResponder - export type CodeScanningGetSarif = ( params: Params, - respond: CodeScanningGetSarifResponder, + respond: (typeof codeScanningGetSarif)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16571,10 +14776,6 @@ const codeSecurityGetConfigurationForRepository = b((r) => ({ withStatus: r.withStatus, })) -type CodeSecurityGetConfigurationForRepositoryResponder = - (typeof codeSecurityGetConfigurationForRepository)["responder"] & - KoaRuntimeResponder - export type CodeSecurityGetConfigurationForRepository = ( params: Params< t_CodeSecurityGetConfigurationForRepositoryParamSchema, @@ -16582,7 +14783,7 @@ export type CodeSecurityGetConfigurationForRepository = ( void, void >, - respond: CodeSecurityGetConfigurationForRepositoryResponder, + respond: (typeof codeSecurityGetConfigurationForRepository)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16599,9 +14800,6 @@ const reposCodeownersErrors = b((r) => ({ withStatus: r.withStatus, })) -type ReposCodeownersErrorsResponder = - (typeof reposCodeownersErrors)["responder"] & KoaRuntimeResponder - export type ReposCodeownersErrors = ( params: Params< t_ReposCodeownersErrorsParamSchema, @@ -16609,7 +14807,7 @@ export type ReposCodeownersErrors = ( void, void >, - respond: ReposCodeownersErrorsResponder, + respond: (typeof reposCodeownersErrors)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16634,10 +14832,6 @@ const codespacesListInRepositoryForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListInRepositoryForAuthenticatedUserResponder = - (typeof codespacesListInRepositoryForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesListInRepositoryForAuthenticatedUser = ( params: Params< t_CodespacesListInRepositoryForAuthenticatedUserParamSchema, @@ -16645,7 +14839,7 @@ export type CodespacesListInRepositoryForAuthenticatedUser = ( void, void >, - respond: CodespacesListInRepositoryForAuthenticatedUserResponder, + respond: (typeof codespacesListInRepositoryForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16683,10 +14877,6 @@ const codespacesCreateWithRepoForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesCreateWithRepoForAuthenticatedUserResponder = - (typeof codespacesCreateWithRepoForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesCreateWithRepoForAuthenticatedUser = ( params: Params< t_CodespacesCreateWithRepoForAuthenticatedUserParamSchema, @@ -16694,7 +14884,7 @@ export type CodespacesCreateWithRepoForAuthenticatedUser = ( t_CodespacesCreateWithRepoForAuthenticatedUserBodySchema, void >, - respond: CodespacesCreateWithRepoForAuthenticatedUserResponder, + respond: (typeof codespacesCreateWithRepoForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16742,10 +14932,6 @@ const codespacesListDevcontainersInRepositoryForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListDevcontainersInRepositoryForAuthenticatedUserResponder = - (typeof codespacesListDevcontainersInRepositoryForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser = ( params: Params< t_CodespacesListDevcontainersInRepositoryForAuthenticatedUserParamSchema, @@ -16753,7 +14939,7 @@ export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser = ( void, void >, - respond: CodespacesListDevcontainersInRepositoryForAuthenticatedUserResponder, + respond: (typeof codespacesListDevcontainersInRepositoryForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16793,10 +14979,6 @@ const codespacesRepoMachinesForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesRepoMachinesForAuthenticatedUserResponder = - (typeof codespacesRepoMachinesForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesRepoMachinesForAuthenticatedUser = ( params: Params< t_CodespacesRepoMachinesForAuthenticatedUserParamSchema, @@ -16804,7 +14986,7 @@ export type CodespacesRepoMachinesForAuthenticatedUser = ( void, void >, - respond: CodespacesRepoMachinesForAuthenticatedUserResponder, + respond: (typeof codespacesRepoMachinesForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16846,10 +15028,6 @@ const codespacesPreFlightWithRepoForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesPreFlightWithRepoForAuthenticatedUserResponder = - (typeof codespacesPreFlightWithRepoForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesPreFlightWithRepoForAuthenticatedUser = ( params: Params< t_CodespacesPreFlightWithRepoForAuthenticatedUserParamSchema, @@ -16857,7 +15035,7 @@ export type CodespacesPreFlightWithRepoForAuthenticatedUser = ( void, void >, - respond: CodespacesPreFlightWithRepoForAuthenticatedUserResponder, + respond: (typeof codespacesPreFlightWithRepoForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16898,10 +15076,6 @@ const codespacesCheckPermissionsForDevcontainer = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesCheckPermissionsForDevcontainerResponder = - (typeof codespacesCheckPermissionsForDevcontainer)["responder"] & - KoaRuntimeResponder - export type CodespacesCheckPermissionsForDevcontainer = ( params: Params< t_CodespacesCheckPermissionsForDevcontainerParamSchema, @@ -16909,7 +15083,7 @@ export type CodespacesCheckPermissionsForDevcontainer = ( void, void >, - respond: CodespacesCheckPermissionsForDevcontainerResponder, + respond: (typeof codespacesCheckPermissionsForDevcontainer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16941,9 +15115,6 @@ const codespacesListRepoSecrets = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListRepoSecretsResponder = - (typeof codespacesListRepoSecrets)["responder"] & KoaRuntimeResponder - export type CodespacesListRepoSecrets = ( params: Params< t_CodespacesListRepoSecretsParamSchema, @@ -16951,7 +15122,7 @@ export type CodespacesListRepoSecrets = ( void, void >, - respond: CodespacesListRepoSecretsResponder, + respond: (typeof codespacesListRepoSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16969,12 +15140,9 @@ const codespacesGetRepoPublicKey = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetRepoPublicKeyResponder = - (typeof codespacesGetRepoPublicKey)["responder"] & KoaRuntimeResponder - export type CodespacesGetRepoPublicKey = ( params: Params, - respond: CodespacesGetRepoPublicKeyResponder, + respond: (typeof codespacesGetRepoPublicKey)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_codespaces_public_key> @@ -16985,12 +15153,9 @@ const codespacesGetRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetRepoSecretResponder = - (typeof codespacesGetRepoSecret)["responder"] & KoaRuntimeResponder - export type CodespacesGetRepoSecret = ( params: Params, - respond: CodespacesGetRepoSecretResponder, + respond: (typeof codespacesGetRepoSecret)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_repo_codespaces_secret> @@ -17002,9 +15167,6 @@ const codespacesCreateOrUpdateRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesCreateOrUpdateRepoSecretResponder = - (typeof codespacesCreateOrUpdateRepoSecret)["responder"] & KoaRuntimeResponder - export type CodespacesCreateOrUpdateRepoSecret = ( params: Params< t_CodespacesCreateOrUpdateRepoSecretParamSchema, @@ -17012,7 +15174,7 @@ export type CodespacesCreateOrUpdateRepoSecret = ( t_CodespacesCreateOrUpdateRepoSecretBodySchema, void >, - respond: CodespacesCreateOrUpdateRepoSecretResponder, + respond: (typeof codespacesCreateOrUpdateRepoSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17025,12 +15187,9 @@ const codespacesDeleteRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesDeleteRepoSecretResponder = - (typeof codespacesDeleteRepoSecret)["responder"] & KoaRuntimeResponder - export type CodespacesDeleteRepoSecret = ( params: Params, - respond: CodespacesDeleteRepoSecretResponder, + respond: (typeof codespacesDeleteRepoSecret)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -17040,9 +15199,6 @@ const reposListCollaborators = b((r) => ({ withStatus: r.withStatus, })) -type ReposListCollaboratorsResponder = - (typeof reposListCollaborators)["responder"] & KoaRuntimeResponder - export type ReposListCollaborators = ( params: Params< t_ReposListCollaboratorsParamSchema, @@ -17050,7 +15206,7 @@ export type ReposListCollaborators = ( void, void >, - respond: ReposListCollaboratorsResponder, + respond: (typeof reposListCollaborators)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17064,12 +15220,9 @@ const reposCheckCollaborator = b((r) => ({ withStatus: r.withStatus, })) -type ReposCheckCollaboratorResponder = - (typeof reposCheckCollaborator)["responder"] & KoaRuntimeResponder - export type ReposCheckCollaborator = ( params: Params, - respond: ReposCheckCollaboratorResponder, + respond: (typeof reposCheckCollaborator)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<404, void> @@ -17083,9 +15236,6 @@ const reposAddCollaborator = b((r) => ({ withStatus: r.withStatus, })) -type ReposAddCollaboratorResponder = - (typeof reposAddCollaborator)["responder"] & KoaRuntimeResponder - export type ReposAddCollaborator = ( params: Params< t_ReposAddCollaboratorParamSchema, @@ -17093,7 +15243,7 @@ export type ReposAddCollaborator = ( t_ReposAddCollaboratorBodySchema | undefined, void >, - respond: ReposAddCollaboratorResponder, + respond: (typeof reposAddCollaborator)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17110,12 +15260,9 @@ const reposRemoveCollaborator = b((r) => ({ withStatus: r.withStatus, })) -type ReposRemoveCollaboratorResponder = - (typeof reposRemoveCollaborator)["responder"] & KoaRuntimeResponder - export type ReposRemoveCollaborator = ( params: Params, - respond: ReposRemoveCollaboratorResponder, + respond: (typeof reposRemoveCollaborator)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17132,10 +15279,6 @@ const reposGetCollaboratorPermissionLevel = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCollaboratorPermissionLevelResponder = - (typeof reposGetCollaboratorPermissionLevel)["responder"] & - KoaRuntimeResponder - export type ReposGetCollaboratorPermissionLevel = ( params: Params< t_ReposGetCollaboratorPermissionLevelParamSchema, @@ -17143,7 +15286,7 @@ export type ReposGetCollaboratorPermissionLevel = ( void, void >, - respond: ReposGetCollaboratorPermissionLevelResponder, + respond: (typeof reposGetCollaboratorPermissionLevel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17156,9 +15299,6 @@ const reposListCommitCommentsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ReposListCommitCommentsForRepoResponder = - (typeof reposListCommitCommentsForRepo)["responder"] & KoaRuntimeResponder - export type ReposListCommitCommentsForRepo = ( params: Params< t_ReposListCommitCommentsForRepoParamSchema, @@ -17166,7 +15306,7 @@ export type ReposListCommitCommentsForRepo = ( void, void >, - respond: ReposListCommitCommentsForRepoResponder, + respond: (typeof reposListCommitCommentsForRepo)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_commit_comment[]>> @@ -17176,12 +15316,9 @@ const reposGetCommitComment = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCommitCommentResponder = - (typeof reposGetCommitComment)["responder"] & KoaRuntimeResponder - export type ReposGetCommitComment = ( params: Params, - respond: ReposGetCommitCommentResponder, + respond: (typeof reposGetCommitComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17195,9 +15332,6 @@ const reposUpdateCommitComment = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateCommitCommentResponder = - (typeof reposUpdateCommitComment)["responder"] & KoaRuntimeResponder - export type ReposUpdateCommitComment = ( params: Params< t_ReposUpdateCommitCommentParamSchema, @@ -17205,7 +15339,7 @@ export type ReposUpdateCommitComment = ( t_ReposUpdateCommitCommentBodySchema, void >, - respond: ReposUpdateCommitCommentResponder, + respond: (typeof reposUpdateCommitComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17219,12 +15353,9 @@ const reposDeleteCommitComment = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteCommitCommentResponder = - (typeof reposDeleteCommitComment)["responder"] & KoaRuntimeResponder - export type ReposDeleteCommitComment = ( params: Params, - respond: ReposDeleteCommitCommentResponder, + respond: (typeof reposDeleteCommitComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17238,9 +15369,6 @@ const reactionsListForCommitComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForCommitCommentResponder = - (typeof reactionsListForCommitComment)["responder"] & KoaRuntimeResponder - export type ReactionsListForCommitComment = ( params: Params< t_ReactionsListForCommitCommentParamSchema, @@ -17248,7 +15376,7 @@ export type ReactionsListForCommitComment = ( void, void >, - respond: ReactionsListForCommitCommentResponder, + respond: (typeof reactionsListForCommitComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17263,9 +15391,6 @@ const reactionsCreateForCommitComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForCommitCommentResponder = - (typeof reactionsCreateForCommitComment)["responder"] & KoaRuntimeResponder - export type ReactionsCreateForCommitComment = ( params: Params< t_ReactionsCreateForCommitCommentParamSchema, @@ -17273,7 +15398,7 @@ export type ReactionsCreateForCommitComment = ( t_ReactionsCreateForCommitCommentBodySchema, void >, - respond: ReactionsCreateForCommitCommentResponder, + respond: (typeof reactionsCreateForCommitComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17287,9 +15412,6 @@ const reactionsDeleteForCommitComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsDeleteForCommitCommentResponder = - (typeof reactionsDeleteForCommitComment)["responder"] & KoaRuntimeResponder - export type ReactionsDeleteForCommitComment = ( params: Params< t_ReactionsDeleteForCommitCommentParamSchema, @@ -17297,7 +15419,7 @@ export type ReactionsDeleteForCommitComment = ( void, void >, - respond: ReactionsDeleteForCommitCommentResponder, + respond: (typeof reactionsDeleteForCommitComment)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -17310,9 +15432,6 @@ const reposListCommits = b((r) => ({ withStatus: r.withStatus, })) -type ReposListCommitsResponder = (typeof reposListCommits)["responder"] & - KoaRuntimeResponder - export type ReposListCommits = ( params: Params< t_ReposListCommitsParamSchema, @@ -17320,7 +15439,7 @@ export type ReposListCommits = ( void, void >, - respond: ReposListCommitsResponder, + respond: (typeof reposListCommits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17338,12 +15457,9 @@ const reposListBranchesForHeadCommit = b((r) => ({ withStatus: r.withStatus, })) -type ReposListBranchesForHeadCommitResponder = - (typeof reposListBranchesForHeadCommit)["responder"] & KoaRuntimeResponder - export type ReposListBranchesForHeadCommit = ( params: Params, - respond: ReposListBranchesForHeadCommitResponder, + respond: (typeof reposListBranchesForHeadCommit)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17357,9 +15473,6 @@ const reposListCommentsForCommit = b((r) => ({ withStatus: r.withStatus, })) -type ReposListCommentsForCommitResponder = - (typeof reposListCommentsForCommit)["responder"] & KoaRuntimeResponder - export type ReposListCommentsForCommit = ( params: Params< t_ReposListCommentsForCommitParamSchema, @@ -17367,7 +15480,7 @@ export type ReposListCommentsForCommit = ( void, void >, - respond: ReposListCommentsForCommitResponder, + respond: (typeof reposListCommentsForCommit)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_commit_comment[]>> @@ -17378,9 +15491,6 @@ const reposCreateCommitComment = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateCommitCommentResponder = - (typeof reposCreateCommitComment)["responder"] & KoaRuntimeResponder - export type ReposCreateCommitComment = ( params: Params< t_ReposCreateCommitCommentParamSchema, @@ -17388,7 +15498,7 @@ export type ReposCreateCommitComment = ( t_ReposCreateCommitCommentBodySchema, void >, - respond: ReposCreateCommitCommentResponder, + respond: (typeof reposCreateCommitComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17403,10 +15513,6 @@ const reposListPullRequestsAssociatedWithCommit = b((r) => ({ withStatus: r.withStatus, })) -type ReposListPullRequestsAssociatedWithCommitResponder = - (typeof reposListPullRequestsAssociatedWithCommit)["responder"] & - KoaRuntimeResponder - export type ReposListPullRequestsAssociatedWithCommit = ( params: Params< t_ReposListPullRequestsAssociatedWithCommitParamSchema, @@ -17414,7 +15520,7 @@ export type ReposListPullRequestsAssociatedWithCommit = ( void, void >, - respond: ReposListPullRequestsAssociatedWithCommitResponder, + respond: (typeof reposListPullRequestsAssociatedWithCommit)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17442,9 +15548,6 @@ const reposGetCommit = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCommitResponder = (typeof reposGetCommit)["responder"] & - KoaRuntimeResponder - export type ReposGetCommit = ( params: Params< t_ReposGetCommitParamSchema, @@ -17452,7 +15555,7 @@ export type ReposGetCommit = ( void, void >, - respond: ReposGetCommitResponder, + respond: (typeof reposGetCommit)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17484,9 +15587,6 @@ const checksListForRef = b((r) => ({ withStatus: r.withStatus, })) -type ChecksListForRefResponder = (typeof checksListForRef)["responder"] & - KoaRuntimeResponder - export type ChecksListForRef = ( params: Params< t_ChecksListForRefParamSchema, @@ -17494,7 +15594,7 @@ export type ChecksListForRef = ( void, void >, - respond: ChecksListForRefResponder, + respond: (typeof checksListForRef)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17520,9 +15620,6 @@ const checksListSuitesForRef = b((r) => ({ withStatus: r.withStatus, })) -type ChecksListSuitesForRefResponder = - (typeof checksListSuitesForRef)["responder"] & KoaRuntimeResponder - export type ChecksListSuitesForRef = ( params: Params< t_ChecksListSuitesForRefParamSchema, @@ -17530,7 +15627,7 @@ export type ChecksListSuitesForRef = ( void, void >, - respond: ChecksListSuitesForRefResponder, + respond: (typeof checksListSuitesForRef)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17549,9 +15646,6 @@ const reposGetCombinedStatusForRef = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCombinedStatusForRefResponder = - (typeof reposGetCombinedStatusForRef)["responder"] & KoaRuntimeResponder - export type ReposGetCombinedStatusForRef = ( params: Params< t_ReposGetCombinedStatusForRefParamSchema, @@ -17559,7 +15653,7 @@ export type ReposGetCombinedStatusForRef = ( void, void >, - respond: ReposGetCombinedStatusForRefResponder, + respond: (typeof reposGetCombinedStatusForRef)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17573,9 +15667,6 @@ const reposListCommitStatusesForRef = b((r) => ({ withStatus: r.withStatus, })) -type ReposListCommitStatusesForRefResponder = - (typeof reposListCommitStatusesForRef)["responder"] & KoaRuntimeResponder - export type ReposListCommitStatusesForRef = ( params: Params< t_ReposListCommitStatusesForRefParamSchema, @@ -17583,7 +15674,7 @@ export type ReposListCommitStatusesForRef = ( void, void >, - respond: ReposListCommitStatusesForRefResponder, + respond: (typeof reposListCommitStatusesForRef)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17596,9 +15687,6 @@ const reposGetCommunityProfileMetrics = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCommunityProfileMetricsResponder = - (typeof reposGetCommunityProfileMetrics)["responder"] & KoaRuntimeResponder - export type ReposGetCommunityProfileMetrics = ( params: Params< t_ReposGetCommunityProfileMetricsParamSchema, @@ -17606,7 +15694,7 @@ export type ReposGetCommunityProfileMetrics = ( void, void >, - respond: ReposGetCommunityProfileMetricsResponder, + respond: (typeof reposGetCommunityProfileMetrics)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_community_profile>> @@ -17628,9 +15716,6 @@ const reposCompareCommits = b((r) => ({ withStatus: r.withStatus, })) -type ReposCompareCommitsResponder = (typeof reposCompareCommits)["responder"] & - KoaRuntimeResponder - export type ReposCompareCommits = ( params: Params< t_ReposCompareCommitsParamSchema, @@ -17638,7 +15723,7 @@ export type ReposCompareCommits = ( void, void >, - respond: ReposCompareCommitsResponder, + respond: (typeof reposCompareCommits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17676,9 +15761,6 @@ const reposGetContent = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetContentResponder = (typeof reposGetContent)["responder"] & - KoaRuntimeResponder - export type ReposGetContent = ( params: Params< t_ReposGetContentParamSchema, @@ -17686,7 +15768,7 @@ export type ReposGetContent = ( void, void >, - respond: ReposGetContentResponder, + respond: (typeof reposGetContent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17714,9 +15796,6 @@ const reposCreateOrUpdateFileContents = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateOrUpdateFileContentsResponder = - (typeof reposCreateOrUpdateFileContents)["responder"] & KoaRuntimeResponder - export type ReposCreateOrUpdateFileContents = ( params: Params< t_ReposCreateOrUpdateFileContentsParamSchema, @@ -17724,7 +15803,7 @@ export type ReposCreateOrUpdateFileContents = ( t_ReposCreateOrUpdateFileContentsBodySchema, void >, - respond: ReposCreateOrUpdateFileContentsResponder, + respond: (typeof reposCreateOrUpdateFileContents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17754,9 +15833,6 @@ const reposDeleteFile = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteFileResponder = (typeof reposDeleteFile)["responder"] & - KoaRuntimeResponder - export type ReposDeleteFile = ( params: Params< t_ReposDeleteFileParamSchema, @@ -17764,7 +15840,7 @@ export type ReposDeleteFile = ( t_ReposDeleteFileBodySchema, void >, - respond: ReposDeleteFileResponder, + respond: (typeof reposDeleteFile)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17790,9 +15866,6 @@ const reposListContributors = b((r) => ({ withStatus: r.withStatus, })) -type ReposListContributorsResponder = - (typeof reposListContributors)["responder"] & KoaRuntimeResponder - export type ReposListContributors = ( params: Params< t_ReposListContributorsParamSchema, @@ -17800,7 +15873,7 @@ export type ReposListContributors = ( void, void >, - respond: ReposListContributorsResponder, + respond: (typeof reposListContributors)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17820,9 +15893,6 @@ const dependabotListAlertsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type DependabotListAlertsForRepoResponder = - (typeof dependabotListAlertsForRepo)["responder"] & KoaRuntimeResponder - export type DependabotListAlertsForRepo = ( params: Params< t_DependabotListAlertsForRepoParamSchema, @@ -17830,7 +15900,7 @@ export type DependabotListAlertsForRepo = ( void, void >, - respond: DependabotListAlertsForRepoResponder, + respond: (typeof dependabotListAlertsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17850,12 +15920,9 @@ const dependabotGetAlert = b((r) => ({ withStatus: r.withStatus, })) -type DependabotGetAlertResponder = (typeof dependabotGetAlert)["responder"] & - KoaRuntimeResponder - export type DependabotGetAlert = ( params: Params, - respond: DependabotGetAlertResponder, + respond: (typeof dependabotGetAlert)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17875,9 +15942,6 @@ const dependabotUpdateAlert = b((r) => ({ withStatus: r.withStatus, })) -type DependabotUpdateAlertResponder = - (typeof dependabotUpdateAlert)["responder"] & KoaRuntimeResponder - export type DependabotUpdateAlert = ( params: Params< t_DependabotUpdateAlertParamSchema, @@ -17885,7 +15949,7 @@ export type DependabotUpdateAlert = ( t_DependabotUpdateAlertBodySchema, void >, - respond: DependabotUpdateAlertResponder, + respond: (typeof dependabotUpdateAlert)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17910,9 +15974,6 @@ const dependabotListRepoSecrets = b((r) => ({ withStatus: r.withStatus, })) -type DependabotListRepoSecretsResponder = - (typeof dependabotListRepoSecrets)["responder"] & KoaRuntimeResponder - export type DependabotListRepoSecrets = ( params: Params< t_DependabotListRepoSecretsParamSchema, @@ -17920,7 +15981,7 @@ export type DependabotListRepoSecrets = ( void, void >, - respond: DependabotListRepoSecretsResponder, + respond: (typeof dependabotListRepoSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17938,12 +15999,9 @@ const dependabotGetRepoPublicKey = b((r) => ({ withStatus: r.withStatus, })) -type DependabotGetRepoPublicKeyResponder = - (typeof dependabotGetRepoPublicKey)["responder"] & KoaRuntimeResponder - export type DependabotGetRepoPublicKey = ( params: Params, - respond: DependabotGetRepoPublicKeyResponder, + respond: (typeof dependabotGetRepoPublicKey)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_dependabot_public_key> @@ -17954,12 +16012,9 @@ const dependabotGetRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotGetRepoSecretResponder = - (typeof dependabotGetRepoSecret)["responder"] & KoaRuntimeResponder - export type DependabotGetRepoSecret = ( params: Params, - respond: DependabotGetRepoSecretResponder, + respond: (typeof dependabotGetRepoSecret)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_dependabot_secret>> @@ -17969,9 +16024,6 @@ const dependabotCreateOrUpdateRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotCreateOrUpdateRepoSecretResponder = - (typeof dependabotCreateOrUpdateRepoSecret)["responder"] & KoaRuntimeResponder - export type DependabotCreateOrUpdateRepoSecret = ( params: Params< t_DependabotCreateOrUpdateRepoSecretParamSchema, @@ -17979,7 +16031,7 @@ export type DependabotCreateOrUpdateRepoSecret = ( t_DependabotCreateOrUpdateRepoSecretBodySchema, void >, - respond: DependabotCreateOrUpdateRepoSecretResponder, + respond: (typeof dependabotCreateOrUpdateRepoSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17992,12 +16044,9 @@ const dependabotDeleteRepoSecret = b((r) => ({ withStatus: r.withStatus, })) -type DependabotDeleteRepoSecretResponder = - (typeof dependabotDeleteRepoSecret)["responder"] & KoaRuntimeResponder - export type DependabotDeleteRepoSecret = ( params: Params, - respond: DependabotDeleteRepoSecretResponder, + respond: (typeof dependabotDeleteRepoSecret)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -18008,9 +16057,6 @@ const dependencyGraphDiffRange = b((r) => ({ withStatus: r.withStatus, })) -type DependencyGraphDiffRangeResponder = - (typeof dependencyGraphDiffRange)["responder"] & KoaRuntimeResponder - export type DependencyGraphDiffRange = ( params: Params< t_DependencyGraphDiffRangeParamSchema, @@ -18018,7 +16064,7 @@ export type DependencyGraphDiffRange = ( void, void >, - respond: DependencyGraphDiffRangeResponder, + respond: (typeof dependencyGraphDiffRange)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18036,12 +16082,9 @@ const dependencyGraphExportSbom = b((r) => ({ withStatus: r.withStatus, })) -type DependencyGraphExportSbomResponder = - (typeof dependencyGraphExportSbom)["responder"] & KoaRuntimeResponder - export type DependencyGraphExportSbom = ( params: Params, - respond: DependencyGraphExportSbomResponder, + respond: (typeof dependencyGraphExportSbom)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18067,10 +16110,6 @@ const dependencyGraphCreateRepositorySnapshot = b((r) => ({ withStatus: r.withStatus, })) -type DependencyGraphCreateRepositorySnapshotResponder = - (typeof dependencyGraphCreateRepositorySnapshot)["responder"] & - KoaRuntimeResponder - export type DependencyGraphCreateRepositorySnapshot = ( params: Params< t_DependencyGraphCreateRepositorySnapshotParamSchema, @@ -18078,7 +16117,7 @@ export type DependencyGraphCreateRepositorySnapshot = ( t_DependencyGraphCreateRepositorySnapshotBodySchema, void >, - respond: DependencyGraphCreateRepositorySnapshotResponder, + respond: (typeof dependencyGraphCreateRepositorySnapshot)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18098,9 +16137,6 @@ const reposListDeployments = b((r) => ({ withStatus: r.withStatus, })) -type ReposListDeploymentsResponder = - (typeof reposListDeployments)["responder"] & KoaRuntimeResponder - export type ReposListDeployments = ( params: Params< t_ReposListDeploymentsParamSchema, @@ -18108,7 +16144,7 @@ export type ReposListDeployments = ( void, void >, - respond: ReposListDeploymentsResponder, + respond: (typeof reposListDeployments)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_deployment[]>> @@ -18122,9 +16158,6 @@ const reposCreateDeployment = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateDeploymentResponder = - (typeof reposCreateDeployment)["responder"] & KoaRuntimeResponder - export type ReposCreateDeployment = ( params: Params< t_ReposCreateDeploymentParamSchema, @@ -18132,7 +16165,7 @@ export type ReposCreateDeployment = ( t_ReposCreateDeploymentBodySchema, void >, - respond: ReposCreateDeploymentResponder, + respond: (typeof reposCreateDeployment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18153,12 +16186,9 @@ const reposGetDeployment = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetDeploymentResponder = (typeof reposGetDeployment)["responder"] & - KoaRuntimeResponder - export type ReposGetDeployment = ( params: Params, - respond: ReposGetDeploymentResponder, + respond: (typeof reposGetDeployment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18173,12 +16203,9 @@ const reposDeleteDeployment = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteDeploymentResponder = - (typeof reposDeleteDeployment)["responder"] & KoaRuntimeResponder - export type ReposDeleteDeployment = ( params: Params, - respond: ReposDeleteDeploymentResponder, + respond: (typeof reposDeleteDeployment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18193,9 +16220,6 @@ const reposListDeploymentStatuses = b((r) => ({ withStatus: r.withStatus, })) -type ReposListDeploymentStatusesResponder = - (typeof reposListDeploymentStatuses)["responder"] & KoaRuntimeResponder - export type ReposListDeploymentStatuses = ( params: Params< t_ReposListDeploymentStatusesParamSchema, @@ -18203,7 +16227,7 @@ export type ReposListDeploymentStatuses = ( void, void >, - respond: ReposListDeploymentStatusesResponder, + respond: (typeof reposListDeploymentStatuses)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18217,9 +16241,6 @@ const reposCreateDeploymentStatus = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateDeploymentStatusResponder = - (typeof reposCreateDeploymentStatus)["responder"] & KoaRuntimeResponder - export type ReposCreateDeploymentStatus = ( params: Params< t_ReposCreateDeploymentStatusParamSchema, @@ -18227,7 +16248,7 @@ export type ReposCreateDeploymentStatus = ( t_ReposCreateDeploymentStatusBodySchema, void >, - respond: ReposCreateDeploymentStatusResponder, + respond: (typeof reposCreateDeploymentStatus)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18241,12 +16262,9 @@ const reposGetDeploymentStatus = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetDeploymentStatusResponder = - (typeof reposGetDeploymentStatus)["responder"] & KoaRuntimeResponder - export type ReposGetDeploymentStatus = ( params: Params, - respond: ReposGetDeploymentStatusResponder, + respond: (typeof reposGetDeploymentStatus)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18261,9 +16279,6 @@ const reposCreateDispatchEvent = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateDispatchEventResponder = - (typeof reposCreateDispatchEvent)["responder"] & KoaRuntimeResponder - export type ReposCreateDispatchEvent = ( params: Params< t_ReposCreateDispatchEventParamSchema, @@ -18271,7 +16286,7 @@ export type ReposCreateDispatchEvent = ( t_ReposCreateDispatchEventBodySchema, void >, - respond: ReposCreateDispatchEventResponder, + respond: (typeof reposCreateDispatchEvent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18293,9 +16308,6 @@ const reposGetAllEnvironments = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetAllEnvironmentsResponder = - (typeof reposGetAllEnvironments)["responder"] & KoaRuntimeResponder - export type ReposGetAllEnvironments = ( params: Params< t_ReposGetAllEnvironmentsParamSchema, @@ -18303,7 +16315,7 @@ export type ReposGetAllEnvironments = ( void, void >, - respond: ReposGetAllEnvironmentsResponder, + respond: (typeof reposGetAllEnvironments)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18321,12 +16333,9 @@ const reposGetEnvironment = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetEnvironmentResponder = (typeof reposGetEnvironment)["responder"] & - KoaRuntimeResponder - export type ReposGetEnvironment = ( params: Params, - respond: ReposGetEnvironmentResponder, + respond: (typeof reposGetEnvironment)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_environment>> @@ -18336,9 +16345,6 @@ const reposCreateOrUpdateEnvironment = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateOrUpdateEnvironmentResponder = - (typeof reposCreateOrUpdateEnvironment)["responder"] & KoaRuntimeResponder - export type ReposCreateOrUpdateEnvironment = ( params: Params< t_ReposCreateOrUpdateEnvironmentParamSchema, @@ -18346,7 +16352,7 @@ export type ReposCreateOrUpdateEnvironment = ( t_ReposCreateOrUpdateEnvironmentBodySchema | undefined, void >, - respond: ReposCreateOrUpdateEnvironmentResponder, + respond: (typeof reposCreateOrUpdateEnvironment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18359,12 +16365,9 @@ const reposDeleteAnEnvironment = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteAnEnvironmentResponder = - (typeof reposDeleteAnEnvironment)["responder"] & KoaRuntimeResponder - export type ReposDeleteAnEnvironment = ( params: Params, - respond: ReposDeleteAnEnvironmentResponder, + respond: (typeof reposDeleteAnEnvironment)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -18381,9 +16384,6 @@ const reposListDeploymentBranchPolicies = b((r) => ({ withStatus: r.withStatus, })) -type ReposListDeploymentBranchPoliciesResponder = - (typeof reposListDeploymentBranchPolicies)["responder"] & KoaRuntimeResponder - export type ReposListDeploymentBranchPolicies = ( params: Params< t_ReposListDeploymentBranchPoliciesParamSchema, @@ -18391,7 +16391,7 @@ export type ReposListDeploymentBranchPolicies = ( void, void >, - respond: ReposListDeploymentBranchPoliciesResponder, + respond: (typeof reposListDeploymentBranchPolicies)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18411,9 +16411,6 @@ const reposCreateDeploymentBranchPolicy = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateDeploymentBranchPolicyResponder = - (typeof reposCreateDeploymentBranchPolicy)["responder"] & KoaRuntimeResponder - export type ReposCreateDeploymentBranchPolicy = ( params: Params< t_ReposCreateDeploymentBranchPolicyParamSchema, @@ -18421,7 +16418,7 @@ export type ReposCreateDeploymentBranchPolicy = ( t_ReposCreateDeploymentBranchPolicyBodySchema, void >, - respond: ReposCreateDeploymentBranchPolicyResponder, + respond: (typeof reposCreateDeploymentBranchPolicy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18435,12 +16432,9 @@ const reposGetDeploymentBranchPolicy = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetDeploymentBranchPolicyResponder = - (typeof reposGetDeploymentBranchPolicy)["responder"] & KoaRuntimeResponder - export type ReposGetDeploymentBranchPolicy = ( params: Params, - respond: ReposGetDeploymentBranchPolicyResponder, + respond: (typeof reposGetDeploymentBranchPolicy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_deployment_branch_policy> @@ -18451,9 +16445,6 @@ const reposUpdateDeploymentBranchPolicy = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateDeploymentBranchPolicyResponder = - (typeof reposUpdateDeploymentBranchPolicy)["responder"] & KoaRuntimeResponder - export type ReposUpdateDeploymentBranchPolicy = ( params: Params< t_ReposUpdateDeploymentBranchPolicyParamSchema, @@ -18461,7 +16452,7 @@ export type ReposUpdateDeploymentBranchPolicy = ( t_ReposUpdateDeploymentBranchPolicyBodySchema, void >, - respond: ReposUpdateDeploymentBranchPolicyResponder, + respond: (typeof reposUpdateDeploymentBranchPolicy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_deployment_branch_policy> @@ -18472,9 +16463,6 @@ const reposDeleteDeploymentBranchPolicy = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteDeploymentBranchPolicyResponder = - (typeof reposDeleteDeploymentBranchPolicy)["responder"] & KoaRuntimeResponder - export type ReposDeleteDeploymentBranchPolicy = ( params: Params< t_ReposDeleteDeploymentBranchPolicyParamSchema, @@ -18482,7 +16470,7 @@ export type ReposDeleteDeploymentBranchPolicy = ( void, void >, - respond: ReposDeleteDeploymentBranchPolicyResponder, + respond: (typeof reposDeleteDeploymentBranchPolicy)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -18501,10 +16489,6 @@ const reposGetAllDeploymentProtectionRules = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetAllDeploymentProtectionRulesResponder = - (typeof reposGetAllDeploymentProtectionRules)["responder"] & - KoaRuntimeResponder - export type ReposGetAllDeploymentProtectionRules = ( params: Params< t_ReposGetAllDeploymentProtectionRulesParamSchema, @@ -18512,7 +16496,7 @@ export type ReposGetAllDeploymentProtectionRules = ( void, void >, - respond: ReposGetAllDeploymentProtectionRulesResponder, + respond: (typeof reposGetAllDeploymentProtectionRules)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18532,10 +16516,6 @@ const reposCreateDeploymentProtectionRule = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateDeploymentProtectionRuleResponder = - (typeof reposCreateDeploymentProtectionRule)["responder"] & - KoaRuntimeResponder - export type ReposCreateDeploymentProtectionRule = ( params: Params< t_ReposCreateDeploymentProtectionRuleParamSchema, @@ -18543,7 +16523,7 @@ export type ReposCreateDeploymentProtectionRule = ( t_ReposCreateDeploymentProtectionRuleBodySchema, void >, - respond: ReposCreateDeploymentProtectionRuleResponder, + respond: (typeof reposCreateDeploymentProtectionRule)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_deployment_protection_rule> @@ -18564,10 +16544,6 @@ const reposListCustomDeploymentRuleIntegrations = b((r) => ({ withStatus: r.withStatus, })) -type ReposListCustomDeploymentRuleIntegrationsResponder = - (typeof reposListCustomDeploymentRuleIntegrations)["responder"] & - KoaRuntimeResponder - export type ReposListCustomDeploymentRuleIntegrations = ( params: Params< t_ReposListCustomDeploymentRuleIntegrationsParamSchema, @@ -18575,7 +16551,7 @@ export type ReposListCustomDeploymentRuleIntegrations = ( void, void >, - respond: ReposListCustomDeploymentRuleIntegrationsResponder, + respond: (typeof reposListCustomDeploymentRuleIntegrations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18595,10 +16571,6 @@ const reposGetCustomDeploymentProtectionRule = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCustomDeploymentProtectionRuleResponder = - (typeof reposGetCustomDeploymentProtectionRule)["responder"] & - KoaRuntimeResponder - export type ReposGetCustomDeploymentProtectionRule = ( params: Params< t_ReposGetCustomDeploymentProtectionRuleParamSchema, @@ -18606,7 +16578,7 @@ export type ReposGetCustomDeploymentProtectionRule = ( void, void >, - respond: ReposGetCustomDeploymentProtectionRuleResponder, + respond: (typeof reposGetCustomDeploymentProtectionRule)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_deployment_protection_rule> @@ -18617,10 +16589,6 @@ const reposDisableDeploymentProtectionRule = b((r) => ({ withStatus: r.withStatus, })) -type ReposDisableDeploymentProtectionRuleResponder = - (typeof reposDisableDeploymentProtectionRule)["responder"] & - KoaRuntimeResponder - export type ReposDisableDeploymentProtectionRule = ( params: Params< t_ReposDisableDeploymentProtectionRuleParamSchema, @@ -18628,7 +16596,7 @@ export type ReposDisableDeploymentProtectionRule = ( void, void >, - respond: ReposDisableDeploymentProtectionRuleResponder, + respond: (typeof reposDisableDeploymentProtectionRule)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -18645,9 +16613,6 @@ const actionsListEnvironmentSecrets = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListEnvironmentSecretsResponder = - (typeof actionsListEnvironmentSecrets)["responder"] & KoaRuntimeResponder - export type ActionsListEnvironmentSecrets = ( params: Params< t_ActionsListEnvironmentSecretsParamSchema, @@ -18655,7 +16620,7 @@ export type ActionsListEnvironmentSecrets = ( void, void >, - respond: ActionsListEnvironmentSecretsResponder, + respond: (typeof actionsListEnvironmentSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18673,12 +16638,9 @@ const actionsGetEnvironmentPublicKey = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetEnvironmentPublicKeyResponder = - (typeof actionsGetEnvironmentPublicKey)["responder"] & KoaRuntimeResponder - export type ActionsGetEnvironmentPublicKey = ( params: Params, - respond: ActionsGetEnvironmentPublicKeyResponder, + respond: (typeof actionsGetEnvironmentPublicKey)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_public_key>> @@ -18687,12 +16649,9 @@ const actionsGetEnvironmentSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetEnvironmentSecretResponder = - (typeof actionsGetEnvironmentSecret)["responder"] & KoaRuntimeResponder - export type ActionsGetEnvironmentSecret = ( params: Params, - respond: ActionsGetEnvironmentSecretResponder, + respond: (typeof actionsGetEnvironmentSecret)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_secret>> @@ -18702,10 +16661,6 @@ const actionsCreateOrUpdateEnvironmentSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateOrUpdateEnvironmentSecretResponder = - (typeof actionsCreateOrUpdateEnvironmentSecret)["responder"] & - KoaRuntimeResponder - export type ActionsCreateOrUpdateEnvironmentSecret = ( params: Params< t_ActionsCreateOrUpdateEnvironmentSecretParamSchema, @@ -18713,7 +16668,7 @@ export type ActionsCreateOrUpdateEnvironmentSecret = ( t_ActionsCreateOrUpdateEnvironmentSecretBodySchema, void >, - respond: ActionsCreateOrUpdateEnvironmentSecretResponder, + respond: (typeof actionsCreateOrUpdateEnvironmentSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18726,12 +16681,9 @@ const actionsDeleteEnvironmentSecret = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteEnvironmentSecretResponder = - (typeof actionsDeleteEnvironmentSecret)["responder"] & KoaRuntimeResponder - export type ActionsDeleteEnvironmentSecret = ( params: Params, - respond: ActionsDeleteEnvironmentSecretResponder, + respond: (typeof actionsDeleteEnvironmentSecret)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -18748,9 +16700,6 @@ const actionsListEnvironmentVariables = b((r) => ({ withStatus: r.withStatus, })) -type ActionsListEnvironmentVariablesResponder = - (typeof actionsListEnvironmentVariables)["responder"] & KoaRuntimeResponder - export type ActionsListEnvironmentVariables = ( params: Params< t_ActionsListEnvironmentVariablesParamSchema, @@ -18758,7 +16707,7 @@ export type ActionsListEnvironmentVariables = ( void, void >, - respond: ActionsListEnvironmentVariablesResponder, + respond: (typeof actionsListEnvironmentVariables)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18776,9 +16725,6 @@ const actionsCreateEnvironmentVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsCreateEnvironmentVariableResponder = - (typeof actionsCreateEnvironmentVariable)["responder"] & KoaRuntimeResponder - export type ActionsCreateEnvironmentVariable = ( params: Params< t_ActionsCreateEnvironmentVariableParamSchema, @@ -18786,7 +16732,7 @@ export type ActionsCreateEnvironmentVariable = ( t_ActionsCreateEnvironmentVariableBodySchema, void >, - respond: ActionsCreateEnvironmentVariableResponder, + respond: (typeof actionsCreateEnvironmentVariable)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_empty_object>> @@ -18795,12 +16741,9 @@ const actionsGetEnvironmentVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsGetEnvironmentVariableResponder = - (typeof actionsGetEnvironmentVariable)["responder"] & KoaRuntimeResponder - export type ActionsGetEnvironmentVariable = ( params: Params, - respond: ActionsGetEnvironmentVariableResponder, + respond: (typeof actionsGetEnvironmentVariable)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_actions_variable>> @@ -18809,9 +16752,6 @@ const actionsUpdateEnvironmentVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsUpdateEnvironmentVariableResponder = - (typeof actionsUpdateEnvironmentVariable)["responder"] & KoaRuntimeResponder - export type ActionsUpdateEnvironmentVariable = ( params: Params< t_ActionsUpdateEnvironmentVariableParamSchema, @@ -18819,7 +16759,7 @@ export type ActionsUpdateEnvironmentVariable = ( t_ActionsUpdateEnvironmentVariableBodySchema, void >, - respond: ActionsUpdateEnvironmentVariableResponder, + respond: (typeof actionsUpdateEnvironmentVariable)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -18828,9 +16768,6 @@ const actionsDeleteEnvironmentVariable = b((r) => ({ withStatus: r.withStatus, })) -type ActionsDeleteEnvironmentVariableResponder = - (typeof actionsDeleteEnvironmentVariable)["responder"] & KoaRuntimeResponder - export type ActionsDeleteEnvironmentVariable = ( params: Params< t_ActionsDeleteEnvironmentVariableParamSchema, @@ -18838,7 +16775,7 @@ export type ActionsDeleteEnvironmentVariable = ( void, void >, - respond: ActionsDeleteEnvironmentVariableResponder, + respond: (typeof actionsDeleteEnvironmentVariable)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -18847,9 +16784,6 @@ const activityListRepoEvents = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListRepoEventsResponder = - (typeof activityListRepoEvents)["responder"] & KoaRuntimeResponder - export type ActivityListRepoEvents = ( params: Params< t_ActivityListRepoEventsParamSchema, @@ -18857,7 +16791,7 @@ export type ActivityListRepoEvents = ( void, void >, - respond: ActivityListRepoEventsResponder, + respond: (typeof activityListRepoEvents)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_event[]>> @@ -18867,9 +16801,6 @@ const reposListForks = b((r) => ({ withStatus: r.withStatus, })) -type ReposListForksResponder = (typeof reposListForks)["responder"] & - KoaRuntimeResponder - export type ReposListForks = ( params: Params< t_ReposListForksParamSchema, @@ -18877,7 +16808,7 @@ export type ReposListForks = ( void, void >, - respond: ReposListForksResponder, + respond: (typeof reposListForks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18894,9 +16825,6 @@ const reposCreateFork = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateForkResponder = (typeof reposCreateFork)["responder"] & - KoaRuntimeResponder - export type ReposCreateFork = ( params: Params< t_ReposCreateForkParamSchema, @@ -18904,7 +16832,7 @@ export type ReposCreateFork = ( t_ReposCreateForkBodySchema | undefined, void >, - respond: ReposCreateForkResponder, + respond: (typeof reposCreateFork)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18926,9 +16854,6 @@ const gitCreateBlob = b((r) => ({ withStatus: r.withStatus, })) -type GitCreateBlobResponder = (typeof gitCreateBlob)["responder"] & - KoaRuntimeResponder - export type GitCreateBlob = ( params: Params< t_GitCreateBlobParamSchema, @@ -18936,7 +16861,7 @@ export type GitCreateBlob = ( t_GitCreateBlobBodySchema, void >, - respond: GitCreateBlobResponder, + respond: (typeof gitCreateBlob)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18956,12 +16881,9 @@ const gitGetBlob = b((r) => ({ withStatus: r.withStatus, })) -type GitGetBlobResponder = (typeof gitGetBlob)["responder"] & - KoaRuntimeResponder - export type GitGetBlob = ( params: Params, - respond: GitGetBlobResponder, + respond: (typeof gitGetBlob)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -18980,9 +16902,6 @@ const gitCreateCommit = b((r) => ({ withStatus: r.withStatus, })) -type GitCreateCommitResponder = (typeof gitCreateCommit)["responder"] & - KoaRuntimeResponder - export type GitCreateCommit = ( params: Params< t_GitCreateCommitParamSchema, @@ -18990,7 +16909,7 @@ export type GitCreateCommit = ( t_GitCreateCommitBodySchema, void >, - respond: GitCreateCommitResponder, + respond: (typeof gitCreateCommit)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19007,12 +16926,9 @@ const gitGetCommit = b((r) => ({ withStatus: r.withStatus, })) -type GitGetCommitResponder = (typeof gitGetCommit)["responder"] & - KoaRuntimeResponder - export type GitGetCommit = ( params: Params, - respond: GitGetCommitResponder, + respond: (typeof gitGetCommit)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19027,12 +16943,9 @@ const gitListMatchingRefs = b((r) => ({ withStatus: r.withStatus, })) -type GitListMatchingRefsResponder = (typeof gitListMatchingRefs)["responder"] & - KoaRuntimeResponder - export type GitListMatchingRefs = ( params: Params, - respond: GitListMatchingRefsResponder, + respond: (typeof gitListMatchingRefs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19047,11 +16960,9 @@ const gitGetRef = b((r) => ({ withStatus: r.withStatus, })) -type GitGetRefResponder = (typeof gitGetRef)["responder"] & KoaRuntimeResponder - export type GitGetRef = ( params: Params, - respond: GitGetRefResponder, + respond: (typeof gitGetRef)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19067,9 +16978,6 @@ const gitCreateRef = b((r) => ({ withStatus: r.withStatus, })) -type GitCreateRefResponder = (typeof gitCreateRef)["responder"] & - KoaRuntimeResponder - export type GitCreateRef = ( params: Params< t_GitCreateRefParamSchema, @@ -19077,7 +16985,7 @@ export type GitCreateRef = ( t_GitCreateRefBodySchema, void >, - respond: GitCreateRefResponder, + respond: (typeof gitCreateRef)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19093,9 +17001,6 @@ const gitUpdateRef = b((r) => ({ withStatus: r.withStatus, })) -type GitUpdateRefResponder = (typeof gitUpdateRef)["responder"] & - KoaRuntimeResponder - export type GitUpdateRef = ( params: Params< t_GitUpdateRefParamSchema, @@ -19103,7 +17008,7 @@ export type GitUpdateRef = ( t_GitUpdateRefBodySchema, void >, - respond: GitUpdateRefResponder, + respond: (typeof gitUpdateRef)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19119,12 +17024,9 @@ const gitDeleteRef = b((r) => ({ withStatus: r.withStatus, })) -type GitDeleteRefResponder = (typeof gitDeleteRef)["responder"] & - KoaRuntimeResponder - export type GitDeleteRef = ( params: Params, - respond: GitDeleteRefResponder, + respond: (typeof gitDeleteRef)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19140,9 +17042,6 @@ const gitCreateTag = b((r) => ({ withStatus: r.withStatus, })) -type GitCreateTagResponder = (typeof gitCreateTag)["responder"] & - KoaRuntimeResponder - export type GitCreateTag = ( params: Params< t_GitCreateTagParamSchema, @@ -19150,7 +17049,7 @@ export type GitCreateTag = ( t_GitCreateTagBodySchema, void >, - respond: GitCreateTagResponder, + respond: (typeof gitCreateTag)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19166,11 +17065,9 @@ const gitGetTag = b((r) => ({ withStatus: r.withStatus, })) -type GitGetTagResponder = (typeof gitGetTag)["responder"] & KoaRuntimeResponder - export type GitGetTag = ( params: Params, - respond: GitGetTagResponder, + respond: (typeof gitGetTag)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19188,9 +17085,6 @@ const gitCreateTree = b((r) => ({ withStatus: r.withStatus, })) -type GitCreateTreeResponder = (typeof gitCreateTree)["responder"] & - KoaRuntimeResponder - export type GitCreateTree = ( params: Params< t_GitCreateTreeParamSchema, @@ -19198,7 +17092,7 @@ export type GitCreateTree = ( t_GitCreateTreeBodySchema, void >, - respond: GitCreateTreeResponder, + respond: (typeof gitCreateTree)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19217,12 +17111,9 @@ const gitGetTree = b((r) => ({ withStatus: r.withStatus, })) -type GitGetTreeResponder = (typeof gitGetTree)["responder"] & - KoaRuntimeResponder - export type GitGetTree = ( params: Params, - respond: GitGetTreeResponder, + respond: (typeof gitGetTree)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19238,9 +17129,6 @@ const reposListWebhooks = b((r) => ({ withStatus: r.withStatus, })) -type ReposListWebhooksResponder = (typeof reposListWebhooks)["responder"] & - KoaRuntimeResponder - export type ReposListWebhooks = ( params: Params< t_ReposListWebhooksParamSchema, @@ -19248,7 +17136,7 @@ export type ReposListWebhooks = ( void, void >, - respond: ReposListWebhooksResponder, + respond: (typeof reposListWebhooks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19264,9 +17152,6 @@ const reposCreateWebhook = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateWebhookResponder = (typeof reposCreateWebhook)["responder"] & - KoaRuntimeResponder - export type ReposCreateWebhook = ( params: Params< t_ReposCreateWebhookParamSchema, @@ -19274,7 +17159,7 @@ export type ReposCreateWebhook = ( t_ReposCreateWebhookBodySchema | undefined, void >, - respond: ReposCreateWebhookResponder, + respond: (typeof reposCreateWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19290,12 +17175,9 @@ const reposGetWebhook = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetWebhookResponder = (typeof reposGetWebhook)["responder"] & - KoaRuntimeResponder - export type ReposGetWebhook = ( params: Params, - respond: ReposGetWebhookResponder, + respond: (typeof reposGetWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19310,9 +17192,6 @@ const reposUpdateWebhook = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateWebhookResponder = (typeof reposUpdateWebhook)["responder"] & - KoaRuntimeResponder - export type ReposUpdateWebhook = ( params: Params< t_ReposUpdateWebhookParamSchema, @@ -19320,7 +17199,7 @@ export type ReposUpdateWebhook = ( t_ReposUpdateWebhookBodySchema, void >, - respond: ReposUpdateWebhookResponder, + respond: (typeof reposUpdateWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19335,12 +17214,9 @@ const reposDeleteWebhook = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteWebhookResponder = (typeof reposDeleteWebhook)["responder"] & - KoaRuntimeResponder - export type ReposDeleteWebhook = ( params: Params, - respond: ReposDeleteWebhookResponder, + respond: (typeof reposDeleteWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19353,12 +17229,9 @@ const reposGetWebhookConfigForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetWebhookConfigForRepoResponder = - (typeof reposGetWebhookConfigForRepo)["responder"] & KoaRuntimeResponder - export type ReposGetWebhookConfigForRepo = ( params: Params, - respond: ReposGetWebhookConfigForRepoResponder, + respond: (typeof reposGetWebhookConfigForRepo)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> @@ -19367,9 +17240,6 @@ const reposUpdateWebhookConfigForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateWebhookConfigForRepoResponder = - (typeof reposUpdateWebhookConfigForRepo)["responder"] & KoaRuntimeResponder - export type ReposUpdateWebhookConfigForRepo = ( params: Params< t_ReposUpdateWebhookConfigForRepoParamSchema, @@ -19377,7 +17247,7 @@ export type ReposUpdateWebhookConfigForRepo = ( t_ReposUpdateWebhookConfigForRepoBodySchema | undefined, void >, - respond: ReposUpdateWebhookConfigForRepoResponder, + respond: (typeof reposUpdateWebhookConfigForRepo)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_webhook_config>> @@ -19388,9 +17258,6 @@ const reposListWebhookDeliveries = b((r) => ({ withStatus: r.withStatus, })) -type ReposListWebhookDeliveriesResponder = - (typeof reposListWebhookDeliveries)["responder"] & KoaRuntimeResponder - export type ReposListWebhookDeliveries = ( params: Params< t_ReposListWebhookDeliveriesParamSchema, @@ -19398,7 +17265,7 @@ export type ReposListWebhookDeliveries = ( void, void >, - respond: ReposListWebhookDeliveriesResponder, + respond: (typeof reposListWebhookDeliveries)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19414,12 +17281,9 @@ const reposGetWebhookDelivery = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetWebhookDeliveryResponder = - (typeof reposGetWebhookDelivery)["responder"] & KoaRuntimeResponder - export type ReposGetWebhookDelivery = ( params: Params, - respond: ReposGetWebhookDeliveryResponder, + respond: (typeof reposGetWebhookDelivery)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19437,12 +17301,9 @@ const reposRedeliverWebhookDelivery = b((r) => ({ withStatus: r.withStatus, })) -type ReposRedeliverWebhookDeliveryResponder = - (typeof reposRedeliverWebhookDelivery)["responder"] & KoaRuntimeResponder - export type ReposRedeliverWebhookDelivery = ( params: Params, - respond: ReposRedeliverWebhookDeliveryResponder, + respond: (typeof reposRedeliverWebhookDelivery)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19462,12 +17323,9 @@ const reposPingWebhook = b((r) => ({ withStatus: r.withStatus, })) -type ReposPingWebhookResponder = (typeof reposPingWebhook)["responder"] & - KoaRuntimeResponder - export type ReposPingWebhook = ( params: Params, - respond: ReposPingWebhookResponder, + respond: (typeof reposPingWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19481,12 +17339,9 @@ const reposTestPushWebhook = b((r) => ({ withStatus: r.withStatus, })) -type ReposTestPushWebhookResponder = - (typeof reposTestPushWebhook)["responder"] & KoaRuntimeResponder - export type ReposTestPushWebhook = ( params: Params, - respond: ReposTestPushWebhookResponder, + respond: (typeof reposTestPushWebhook)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19501,12 +17356,9 @@ const migrationsGetImportStatus = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsGetImportStatusResponder = - (typeof migrationsGetImportStatus)["responder"] & KoaRuntimeResponder - export type MigrationsGetImportStatus = ( params: Params, - respond: MigrationsGetImportStatusResponder, + respond: (typeof migrationsGetImportStatus)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19523,9 +17375,6 @@ const migrationsStartImport = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsStartImportResponder = - (typeof migrationsStartImport)["responder"] & KoaRuntimeResponder - export type MigrationsStartImport = ( params: Params< t_MigrationsStartImportParamSchema, @@ -19533,7 +17382,7 @@ export type MigrationsStartImport = ( t_MigrationsStartImportBodySchema, void >, - respond: MigrationsStartImportResponder, + respond: (typeof migrationsStartImport)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19549,9 +17398,6 @@ const migrationsUpdateImport = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsUpdateImportResponder = - (typeof migrationsUpdateImport)["responder"] & KoaRuntimeResponder - export type MigrationsUpdateImport = ( params: Params< t_MigrationsUpdateImportParamSchema, @@ -19559,7 +17405,7 @@ export type MigrationsUpdateImport = ( t_MigrationsUpdateImportBodySchema | undefined, void >, - respond: MigrationsUpdateImportResponder, + respond: (typeof migrationsUpdateImport)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19573,12 +17419,9 @@ const migrationsCancelImport = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsCancelImportResponder = - (typeof migrationsCancelImport)["responder"] & KoaRuntimeResponder - export type MigrationsCancelImport = ( params: Params, - respond: MigrationsCancelImportResponder, + respond: (typeof migrationsCancelImport)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19593,9 +17436,6 @@ const migrationsGetCommitAuthors = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsGetCommitAuthorsResponder = - (typeof migrationsGetCommitAuthors)["responder"] & KoaRuntimeResponder - export type MigrationsGetCommitAuthors = ( params: Params< t_MigrationsGetCommitAuthorsParamSchema, @@ -19603,7 +17443,7 @@ export type MigrationsGetCommitAuthors = ( void, void >, - respond: MigrationsGetCommitAuthorsResponder, + respond: (typeof migrationsGetCommitAuthors)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19620,9 +17460,6 @@ const migrationsMapCommitAuthor = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsMapCommitAuthorResponder = - (typeof migrationsMapCommitAuthor)["responder"] & KoaRuntimeResponder - export type MigrationsMapCommitAuthor = ( params: Params< t_MigrationsMapCommitAuthorParamSchema, @@ -19630,7 +17467,7 @@ export type MigrationsMapCommitAuthor = ( t_MigrationsMapCommitAuthorBodySchema | undefined, void >, - respond: MigrationsMapCommitAuthorResponder, + respond: (typeof migrationsMapCommitAuthor)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19646,12 +17483,9 @@ const migrationsGetLargeFiles = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsGetLargeFilesResponder = - (typeof migrationsGetLargeFiles)["responder"] & KoaRuntimeResponder - export type MigrationsGetLargeFiles = ( params: Params, - respond: MigrationsGetLargeFilesResponder, + respond: (typeof migrationsGetLargeFiles)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19666,9 +17500,6 @@ const migrationsSetLfsPreference = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsSetLfsPreferenceResponder = - (typeof migrationsSetLfsPreference)["responder"] & KoaRuntimeResponder - export type MigrationsSetLfsPreference = ( params: Params< t_MigrationsSetLfsPreferenceParamSchema, @@ -19676,7 +17507,7 @@ export type MigrationsSetLfsPreference = ( t_MigrationsSetLfsPreferenceBodySchema, void >, - respond: MigrationsSetLfsPreferenceResponder, + respond: (typeof migrationsSetLfsPreference)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19692,12 +17523,9 @@ const appsGetRepoInstallation = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetRepoInstallationResponder = - (typeof appsGetRepoInstallation)["responder"] & KoaRuntimeResponder - export type AppsGetRepoInstallation = ( params: Params, - respond: AppsGetRepoInstallationResponder, + respond: (typeof appsGetRepoInstallation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19713,9 +17541,6 @@ const interactionsGetRestrictionsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsGetRestrictionsForRepoResponder = - (typeof interactionsGetRestrictionsForRepo)["responder"] & KoaRuntimeResponder - export type InteractionsGetRestrictionsForRepo = ( params: Params< t_InteractionsGetRestrictionsForRepoParamSchema, @@ -19723,7 +17548,7 @@ export type InteractionsGetRestrictionsForRepo = ( void, void >, - respond: InteractionsGetRestrictionsForRepoResponder, + respond: (typeof interactionsGetRestrictionsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19738,9 +17563,6 @@ const interactionsSetRestrictionsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsSetRestrictionsForRepoResponder = - (typeof interactionsSetRestrictionsForRepo)["responder"] & KoaRuntimeResponder - export type InteractionsSetRestrictionsForRepo = ( params: Params< t_InteractionsSetRestrictionsForRepoParamSchema, @@ -19748,7 +17570,7 @@ export type InteractionsSetRestrictionsForRepo = ( t_InteractionsSetRestrictionsForRepoBodySchema, void >, - respond: InteractionsSetRestrictionsForRepoResponder, + respond: (typeof interactionsSetRestrictionsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19762,10 +17584,6 @@ const interactionsRemoveRestrictionsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsRemoveRestrictionsForRepoResponder = - (typeof interactionsRemoveRestrictionsForRepo)["responder"] & - KoaRuntimeResponder - export type InteractionsRemoveRestrictionsForRepo = ( params: Params< t_InteractionsRemoveRestrictionsForRepoParamSchema, @@ -19773,7 +17591,7 @@ export type InteractionsRemoveRestrictionsForRepo = ( void, void >, - respond: InteractionsRemoveRestrictionsForRepoResponder, + respond: (typeof interactionsRemoveRestrictionsForRepo)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<409, void> @@ -19786,9 +17604,6 @@ const reposListInvitations = b((r) => ({ withStatus: r.withStatus, })) -type ReposListInvitationsResponder = - (typeof reposListInvitations)["responder"] & KoaRuntimeResponder - export type ReposListInvitations = ( params: Params< t_ReposListInvitationsParamSchema, @@ -19796,7 +17611,7 @@ export type ReposListInvitations = ( void, void >, - respond: ReposListInvitationsResponder, + respond: (typeof reposListInvitations)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_repository_invitation[]> @@ -19807,9 +17622,6 @@ const reposUpdateInvitation = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateInvitationResponder = - (typeof reposUpdateInvitation)["responder"] & KoaRuntimeResponder - export type ReposUpdateInvitation = ( params: Params< t_ReposUpdateInvitationParamSchema, @@ -19817,7 +17629,7 @@ export type ReposUpdateInvitation = ( t_ReposUpdateInvitationBodySchema | undefined, void >, - respond: ReposUpdateInvitationResponder, + respond: (typeof reposUpdateInvitation)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_repository_invitation> @@ -19828,12 +17640,9 @@ const reposDeleteInvitation = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteInvitationResponder = - (typeof reposDeleteInvitation)["responder"] & KoaRuntimeResponder - export type ReposDeleteInvitation = ( params: Params, - respond: ReposDeleteInvitationResponder, + respond: (typeof reposDeleteInvitation)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -19845,9 +17654,6 @@ const issuesListForRepo = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListForRepoResponder = (typeof issuesListForRepo)["responder"] & - KoaRuntimeResponder - export type IssuesListForRepo = ( params: Params< t_IssuesListForRepoParamSchema, @@ -19855,7 +17661,7 @@ export type IssuesListForRepo = ( void, void >, - respond: IssuesListForRepoResponder, + respond: (typeof issuesListForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19886,9 +17692,6 @@ const issuesCreate = b((r) => ({ withStatus: r.withStatus, })) -type IssuesCreateResponder = (typeof issuesCreate)["responder"] & - KoaRuntimeResponder - export type IssuesCreate = ( params: Params< t_IssuesCreateParamSchema, @@ -19896,7 +17699,7 @@ export type IssuesCreate = ( t_IssuesCreateBodySchema, void >, - respond: IssuesCreateResponder, + respond: (typeof issuesCreate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19923,9 +17726,6 @@ const issuesListCommentsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListCommentsForRepoResponder = - (typeof issuesListCommentsForRepo)["responder"] & KoaRuntimeResponder - export type IssuesListCommentsForRepo = ( params: Params< t_IssuesListCommentsForRepoParamSchema, @@ -19933,7 +17733,7 @@ export type IssuesListCommentsForRepo = ( void, void >, - respond: IssuesListCommentsForRepoResponder, + respond: (typeof issuesListCommentsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19948,12 +17748,9 @@ const issuesGetComment = b((r) => ({ withStatus: r.withStatus, })) -type IssuesGetCommentResponder = (typeof issuesGetComment)["responder"] & - KoaRuntimeResponder - export type IssuesGetComment = ( params: Params, - respond: IssuesGetCommentResponder, + respond: (typeof issuesGetComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19967,9 +17764,6 @@ const issuesUpdateComment = b((r) => ({ withStatus: r.withStatus, })) -type IssuesUpdateCommentResponder = (typeof issuesUpdateComment)["responder"] & - KoaRuntimeResponder - export type IssuesUpdateComment = ( params: Params< t_IssuesUpdateCommentParamSchema, @@ -19977,7 +17771,7 @@ export type IssuesUpdateComment = ( t_IssuesUpdateCommentBodySchema, void >, - respond: IssuesUpdateCommentResponder, + respond: (typeof issuesUpdateComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -19990,12 +17784,9 @@ const issuesDeleteComment = b((r) => ({ withStatus: r.withStatus, })) -type IssuesDeleteCommentResponder = (typeof issuesDeleteComment)["responder"] & - KoaRuntimeResponder - export type IssuesDeleteComment = ( params: Params, - respond: IssuesDeleteCommentResponder, + respond: (typeof issuesDeleteComment)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -20005,9 +17796,6 @@ const reactionsListForIssueComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForIssueCommentResponder = - (typeof reactionsListForIssueComment)["responder"] & KoaRuntimeResponder - export type ReactionsListForIssueComment = ( params: Params< t_ReactionsListForIssueCommentParamSchema, @@ -20015,7 +17803,7 @@ export type ReactionsListForIssueComment = ( void, void >, - respond: ReactionsListForIssueCommentResponder, + respond: (typeof reactionsListForIssueComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20030,9 +17818,6 @@ const reactionsCreateForIssueComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForIssueCommentResponder = - (typeof reactionsCreateForIssueComment)["responder"] & KoaRuntimeResponder - export type ReactionsCreateForIssueComment = ( params: Params< t_ReactionsCreateForIssueCommentParamSchema, @@ -20040,7 +17825,7 @@ export type ReactionsCreateForIssueComment = ( t_ReactionsCreateForIssueCommentBodySchema, void >, - respond: ReactionsCreateForIssueCommentResponder, + respond: (typeof reactionsCreateForIssueComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20054,12 +17839,9 @@ const reactionsDeleteForIssueComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsDeleteForIssueCommentResponder = - (typeof reactionsDeleteForIssueComment)["responder"] & KoaRuntimeResponder - export type ReactionsDeleteForIssueComment = ( params: Params, - respond: ReactionsDeleteForIssueCommentResponder, + respond: (typeof reactionsDeleteForIssueComment)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -20069,9 +17851,6 @@ const issuesListEventsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListEventsForRepoResponder = - (typeof issuesListEventsForRepo)["responder"] & KoaRuntimeResponder - export type IssuesListEventsForRepo = ( params: Params< t_IssuesListEventsForRepoParamSchema, @@ -20079,7 +17858,7 @@ export type IssuesListEventsForRepo = ( void, void >, - respond: IssuesListEventsForRepoResponder, + respond: (typeof issuesListEventsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20095,12 +17874,9 @@ const issuesGetEvent = b((r) => ({ withStatus: r.withStatus, })) -type IssuesGetEventResponder = (typeof issuesGetEvent)["responder"] & - KoaRuntimeResponder - export type IssuesGetEvent = ( params: Params, - respond: IssuesGetEventResponder, + respond: (typeof issuesGetEvent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20119,11 +17895,9 @@ const issuesGet = b((r) => ({ withStatus: r.withStatus, })) -type IssuesGetResponder = (typeof issuesGet)["responder"] & KoaRuntimeResponder - export type IssuesGet = ( params: Params, - respond: IssuesGetResponder, + respond: (typeof issuesGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20155,9 +17929,6 @@ const issuesUpdate = b((r) => ({ withStatus: r.withStatus, })) -type IssuesUpdateResponder = (typeof issuesUpdate)["responder"] & - KoaRuntimeResponder - export type IssuesUpdate = ( params: Params< t_IssuesUpdateParamSchema, @@ -20165,7 +17936,7 @@ export type IssuesUpdate = ( t_IssuesUpdateBodySchema | undefined, void >, - respond: IssuesUpdateResponder, + respond: (typeof issuesUpdate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20190,9 +17961,6 @@ const issuesAddAssignees = b((r) => ({ withStatus: r.withStatus, })) -type IssuesAddAssigneesResponder = (typeof issuesAddAssignees)["responder"] & - KoaRuntimeResponder - export type IssuesAddAssignees = ( params: Params< t_IssuesAddAssigneesParamSchema, @@ -20200,7 +17968,7 @@ export type IssuesAddAssignees = ( t_IssuesAddAssigneesBodySchema | undefined, void >, - respond: IssuesAddAssigneesResponder, + respond: (typeof issuesAddAssignees)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_issue>> @@ -20209,9 +17977,6 @@ const issuesRemoveAssignees = b((r) => ({ withStatus: r.withStatus, })) -type IssuesRemoveAssigneesResponder = - (typeof issuesRemoveAssignees)["responder"] & KoaRuntimeResponder - export type IssuesRemoveAssignees = ( params: Params< t_IssuesRemoveAssigneesParamSchema, @@ -20219,7 +17984,7 @@ export type IssuesRemoveAssignees = ( t_IssuesRemoveAssigneesBodySchema, void >, - respond: IssuesRemoveAssigneesResponder, + respond: (typeof issuesRemoveAssignees)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_issue>> @@ -20229,10 +17994,6 @@ const issuesCheckUserCanBeAssignedToIssue = b((r) => ({ withStatus: r.withStatus, })) -type IssuesCheckUserCanBeAssignedToIssueResponder = - (typeof issuesCheckUserCanBeAssignedToIssue)["responder"] & - KoaRuntimeResponder - export type IssuesCheckUserCanBeAssignedToIssue = ( params: Params< t_IssuesCheckUserCanBeAssignedToIssueParamSchema, @@ -20240,7 +18001,7 @@ export type IssuesCheckUserCanBeAssignedToIssue = ( void, void >, - respond: IssuesCheckUserCanBeAssignedToIssueResponder, + respond: (typeof issuesCheckUserCanBeAssignedToIssue)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20255,9 +18016,6 @@ const issuesListComments = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListCommentsResponder = (typeof issuesListComments)["responder"] & - KoaRuntimeResponder - export type IssuesListComments = ( params: Params< t_IssuesListCommentsParamSchema, @@ -20265,7 +18023,7 @@ export type IssuesListComments = ( void, void >, - respond: IssuesListCommentsResponder, + respond: (typeof issuesListComments)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20283,9 +18041,6 @@ const issuesCreateComment = b((r) => ({ withStatus: r.withStatus, })) -type IssuesCreateCommentResponder = (typeof issuesCreateComment)["responder"] & - KoaRuntimeResponder - export type IssuesCreateComment = ( params: Params< t_IssuesCreateCommentParamSchema, @@ -20293,7 +18048,7 @@ export type IssuesCreateComment = ( t_IssuesCreateCommentBodySchema, void >, - respond: IssuesCreateCommentResponder, + respond: (typeof issuesCreateComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20312,9 +18067,6 @@ const issuesListEvents = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListEventsResponder = (typeof issuesListEvents)["responder"] & - KoaRuntimeResponder - export type IssuesListEvents = ( params: Params< t_IssuesListEventsParamSchema, @@ -20322,7 +18074,7 @@ export type IssuesListEvents = ( void, void >, - respond: IssuesListEventsResponder, + respond: (typeof issuesListEvents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20338,9 +18090,6 @@ const issuesListLabelsOnIssue = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListLabelsOnIssueResponder = - (typeof issuesListLabelsOnIssue)["responder"] & KoaRuntimeResponder - export type IssuesListLabelsOnIssue = ( params: Params< t_IssuesListLabelsOnIssueParamSchema, @@ -20348,7 +18097,7 @@ export type IssuesListLabelsOnIssue = ( void, void >, - respond: IssuesListLabelsOnIssueResponder, + respond: (typeof issuesListLabelsOnIssue)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20367,9 +18116,6 @@ const issuesAddLabels = b((r) => ({ withStatus: r.withStatus, })) -type IssuesAddLabelsResponder = (typeof issuesAddLabels)["responder"] & - KoaRuntimeResponder - export type IssuesAddLabels = ( params: Params< t_IssuesAddLabelsParamSchema, @@ -20377,7 +18123,7 @@ export type IssuesAddLabels = ( t_IssuesAddLabelsBodySchema | undefined, void >, - respond: IssuesAddLabelsResponder, + respond: (typeof issuesAddLabels)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20397,9 +18143,6 @@ const issuesSetLabels = b((r) => ({ withStatus: r.withStatus, })) -type IssuesSetLabelsResponder = (typeof issuesSetLabels)["responder"] & - KoaRuntimeResponder - export type IssuesSetLabels = ( params: Params< t_IssuesSetLabelsParamSchema, @@ -20407,7 +18150,7 @@ export type IssuesSetLabels = ( t_IssuesSetLabelsBodySchema | undefined, void >, - respond: IssuesSetLabelsResponder, + respond: (typeof issuesSetLabels)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20426,12 +18169,9 @@ const issuesRemoveAllLabels = b((r) => ({ withStatus: r.withStatus, })) -type IssuesRemoveAllLabelsResponder = - (typeof issuesRemoveAllLabels)["responder"] & KoaRuntimeResponder - export type IssuesRemoveAllLabels = ( params: Params, - respond: IssuesRemoveAllLabelsResponder, + respond: (typeof issuesRemoveAllLabels)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20449,12 +18189,9 @@ const issuesRemoveLabel = b((r) => ({ withStatus: r.withStatus, })) -type IssuesRemoveLabelResponder = (typeof issuesRemoveLabel)["responder"] & - KoaRuntimeResponder - export type IssuesRemoveLabel = ( params: Params, - respond: IssuesRemoveLabelResponder, + respond: (typeof issuesRemoveLabel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20473,9 +18210,6 @@ const issuesLock = b((r) => ({ withStatus: r.withStatus, })) -type IssuesLockResponder = (typeof issuesLock)["responder"] & - KoaRuntimeResponder - export type IssuesLock = ( params: Params< t_IssuesLockParamSchema, @@ -20483,7 +18217,7 @@ export type IssuesLock = ( t_IssuesLockBodySchema | undefined, void >, - respond: IssuesLockResponder, + respond: (typeof issuesLock)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20501,12 +18235,9 @@ const issuesUnlock = b((r) => ({ withStatus: r.withStatus, })) -type IssuesUnlockResponder = (typeof issuesUnlock)["responder"] & - KoaRuntimeResponder - export type IssuesUnlock = ( params: Params, - respond: IssuesUnlockResponder, + respond: (typeof issuesUnlock)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20522,9 +18253,6 @@ const reactionsListForIssue = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForIssueResponder = - (typeof reactionsListForIssue)["responder"] & KoaRuntimeResponder - export type ReactionsListForIssue = ( params: Params< t_ReactionsListForIssueParamSchema, @@ -20532,7 +18260,7 @@ export type ReactionsListForIssue = ( void, void >, - respond: ReactionsListForIssueResponder, + respond: (typeof reactionsListForIssue)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20548,9 +18276,6 @@ const reactionsCreateForIssue = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForIssueResponder = - (typeof reactionsCreateForIssue)["responder"] & KoaRuntimeResponder - export type ReactionsCreateForIssue = ( params: Params< t_ReactionsCreateForIssueParamSchema, @@ -20558,7 +18283,7 @@ export type ReactionsCreateForIssue = ( t_ReactionsCreateForIssueBodySchema, void >, - respond: ReactionsCreateForIssueResponder, + respond: (typeof reactionsCreateForIssue)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20572,12 +18297,9 @@ const reactionsDeleteForIssue = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsDeleteForIssueResponder = - (typeof reactionsDeleteForIssue)["responder"] & KoaRuntimeResponder - export type ReactionsDeleteForIssue = ( params: Params, - respond: ReactionsDeleteForIssueResponder, + respond: (typeof reactionsDeleteForIssue)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -20588,9 +18310,6 @@ const issuesRemoveSubIssue = b((r) => ({ withStatus: r.withStatus, })) -type IssuesRemoveSubIssueResponder = - (typeof issuesRemoveSubIssue)["responder"] & KoaRuntimeResponder - export type IssuesRemoveSubIssue = ( params: Params< t_IssuesRemoveSubIssueParamSchema, @@ -20598,7 +18317,7 @@ export type IssuesRemoveSubIssue = ( t_IssuesRemoveSubIssueBodySchema, void >, - respond: IssuesRemoveSubIssueResponder, + respond: (typeof issuesRemoveSubIssue)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20614,9 +18333,6 @@ const issuesListSubIssues = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListSubIssuesResponder = (typeof issuesListSubIssues)["responder"] & - KoaRuntimeResponder - export type IssuesListSubIssues = ( params: Params< t_IssuesListSubIssuesParamSchema, @@ -20624,7 +18340,7 @@ export type IssuesListSubIssues = ( void, void >, - respond: IssuesListSubIssuesResponder, + respond: (typeof issuesListSubIssues)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20642,9 +18358,6 @@ const issuesAddSubIssue = b((r) => ({ withStatus: r.withStatus, })) -type IssuesAddSubIssueResponder = (typeof issuesAddSubIssue)["responder"] & - KoaRuntimeResponder - export type IssuesAddSubIssue = ( params: Params< t_IssuesAddSubIssueParamSchema, @@ -20652,7 +18365,7 @@ export type IssuesAddSubIssue = ( t_IssuesAddSubIssueBodySchema, void >, - respond: IssuesAddSubIssueResponder, + respond: (typeof issuesAddSubIssue)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20682,9 +18395,6 @@ const issuesReprioritizeSubIssue = b((r) => ({ withStatus: r.withStatus, })) -type IssuesReprioritizeSubIssueResponder = - (typeof issuesReprioritizeSubIssue)["responder"] & KoaRuntimeResponder - export type IssuesReprioritizeSubIssue = ( params: Params< t_IssuesReprioritizeSubIssueParamSchema, @@ -20692,7 +18402,7 @@ export type IssuesReprioritizeSubIssue = ( t_IssuesReprioritizeSubIssueBodySchema, void >, - respond: IssuesReprioritizeSubIssueResponder, + respond: (typeof issuesReprioritizeSubIssue)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20719,9 +18429,6 @@ const issuesListEventsForTimeline = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListEventsForTimelineResponder = - (typeof issuesListEventsForTimeline)["responder"] & KoaRuntimeResponder - export type IssuesListEventsForTimeline = ( params: Params< t_IssuesListEventsForTimelineParamSchema, @@ -20729,7 +18436,7 @@ export type IssuesListEventsForTimeline = ( void, void >, - respond: IssuesListEventsForTimelineResponder, + respond: (typeof issuesListEventsForTimeline)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20743,9 +18450,6 @@ const reposListDeployKeys = b((r) => ({ withStatus: r.withStatus, })) -type ReposListDeployKeysResponder = (typeof reposListDeployKeys)["responder"] & - KoaRuntimeResponder - export type ReposListDeployKeys = ( params: Params< t_ReposListDeployKeysParamSchema, @@ -20753,7 +18457,7 @@ export type ReposListDeployKeys = ( void, void >, - respond: ReposListDeployKeysResponder, + respond: (typeof reposListDeployKeys)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_deploy_key[]>> @@ -20763,9 +18467,6 @@ const reposCreateDeployKey = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateDeployKeyResponder = - (typeof reposCreateDeployKey)["responder"] & KoaRuntimeResponder - export type ReposCreateDeployKey = ( params: Params< t_ReposCreateDeployKeyParamSchema, @@ -20773,7 +18474,7 @@ export type ReposCreateDeployKey = ( t_ReposCreateDeployKeyBodySchema, void >, - respond: ReposCreateDeployKeyResponder, + respond: (typeof reposCreateDeployKey)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20787,12 +18488,9 @@ const reposGetDeployKey = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetDeployKeyResponder = (typeof reposGetDeployKey)["responder"] & - KoaRuntimeResponder - export type ReposGetDeployKey = ( params: Params, - respond: ReposGetDeployKeyResponder, + respond: (typeof reposGetDeployKey)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20805,12 +18503,9 @@ const reposDeleteDeployKey = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteDeployKeyResponder = - (typeof reposDeleteDeployKey)["responder"] & KoaRuntimeResponder - export type ReposDeleteDeployKey = ( params: Params, - respond: ReposDeleteDeployKeyResponder, + respond: (typeof reposDeleteDeployKey)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -20820,9 +18515,6 @@ const issuesListLabelsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListLabelsForRepoResponder = - (typeof issuesListLabelsForRepo)["responder"] & KoaRuntimeResponder - export type IssuesListLabelsForRepo = ( params: Params< t_IssuesListLabelsForRepoParamSchema, @@ -20830,7 +18522,7 @@ export type IssuesListLabelsForRepo = ( void, void >, - respond: IssuesListLabelsForRepoResponder, + respond: (typeof issuesListLabelsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20845,9 +18537,6 @@ const issuesCreateLabel = b((r) => ({ withStatus: r.withStatus, })) -type IssuesCreateLabelResponder = (typeof issuesCreateLabel)["responder"] & - KoaRuntimeResponder - export type IssuesCreateLabel = ( params: Params< t_IssuesCreateLabelParamSchema, @@ -20855,7 +18544,7 @@ export type IssuesCreateLabel = ( t_IssuesCreateLabelBodySchema, void >, - respond: IssuesCreateLabelResponder, + respond: (typeof issuesCreateLabel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20870,12 +18559,9 @@ const issuesGetLabel = b((r) => ({ withStatus: r.withStatus, })) -type IssuesGetLabelResponder = (typeof issuesGetLabel)["responder"] & - KoaRuntimeResponder - export type IssuesGetLabel = ( params: Params, - respond: IssuesGetLabelResponder, + respond: (typeof issuesGetLabel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20888,9 +18574,6 @@ const issuesUpdateLabel = b((r) => ({ withStatus: r.withStatus, })) -type IssuesUpdateLabelResponder = (typeof issuesUpdateLabel)["responder"] & - KoaRuntimeResponder - export type IssuesUpdateLabel = ( params: Params< t_IssuesUpdateLabelParamSchema, @@ -20898,7 +18581,7 @@ export type IssuesUpdateLabel = ( t_IssuesUpdateLabelBodySchema | undefined, void >, - respond: IssuesUpdateLabelResponder, + respond: (typeof issuesUpdateLabel)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_label>> @@ -20907,12 +18590,9 @@ const issuesDeleteLabel = b((r) => ({ withStatus: r.withStatus, })) -type IssuesDeleteLabelResponder = (typeof issuesDeleteLabel)["responder"] & - KoaRuntimeResponder - export type IssuesDeleteLabel = ( params: Params, - respond: IssuesDeleteLabelResponder, + respond: (typeof issuesDeleteLabel)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -20921,12 +18601,9 @@ const reposListLanguages = b((r) => ({ withStatus: r.withStatus, })) -type ReposListLanguagesResponder = (typeof reposListLanguages)["responder"] & - KoaRuntimeResponder - export type ReposListLanguages = ( params: Params, - respond: ReposListLanguagesResponder, + respond: (typeof reposListLanguages)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_language>> @@ -20936,9 +18613,6 @@ const licensesGetForRepo = b((r) => ({ withStatus: r.withStatus, })) -type LicensesGetForRepoResponder = (typeof licensesGetForRepo)["responder"] & - KoaRuntimeResponder - export type LicensesGetForRepo = ( params: Params< t_LicensesGetForRepoParamSchema, @@ -20946,7 +18620,7 @@ export type LicensesGetForRepo = ( void, void >, - respond: LicensesGetForRepoResponder, + respond: (typeof licensesGetForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20961,9 +18635,6 @@ const reposMergeUpstream = b((r) => ({ withStatus: r.withStatus, })) -type ReposMergeUpstreamResponder = (typeof reposMergeUpstream)["responder"] & - KoaRuntimeResponder - export type ReposMergeUpstream = ( params: Params< t_ReposMergeUpstreamParamSchema, @@ -20971,7 +18642,7 @@ export type ReposMergeUpstream = ( t_ReposMergeUpstreamBodySchema, void >, - respond: ReposMergeUpstreamResponder, + respond: (typeof reposMergeUpstream)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -20990,12 +18661,9 @@ const reposMerge = b((r) => ({ withStatus: r.withStatus, })) -type ReposMergeResponder = (typeof reposMerge)["responder"] & - KoaRuntimeResponder - export type ReposMerge = ( params: Params, - respond: ReposMergeResponder, + respond: (typeof reposMerge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21013,9 +18681,6 @@ const issuesListMilestones = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListMilestonesResponder = - (typeof issuesListMilestones)["responder"] & KoaRuntimeResponder - export type IssuesListMilestones = ( params: Params< t_IssuesListMilestonesParamSchema, @@ -21023,7 +18688,7 @@ export type IssuesListMilestones = ( void, void >, - respond: IssuesListMilestonesResponder, + respond: (typeof issuesListMilestones)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21038,9 +18703,6 @@ const issuesCreateMilestone = b((r) => ({ withStatus: r.withStatus, })) -type IssuesCreateMilestoneResponder = - (typeof issuesCreateMilestone)["responder"] & KoaRuntimeResponder - export type IssuesCreateMilestone = ( params: Params< t_IssuesCreateMilestoneParamSchema, @@ -21048,7 +18710,7 @@ export type IssuesCreateMilestone = ( t_IssuesCreateMilestoneBodySchema, void >, - respond: IssuesCreateMilestoneResponder, + respond: (typeof issuesCreateMilestone)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21063,12 +18725,9 @@ const issuesGetMilestone = b((r) => ({ withStatus: r.withStatus, })) -type IssuesGetMilestoneResponder = (typeof issuesGetMilestone)["responder"] & - KoaRuntimeResponder - export type IssuesGetMilestone = ( params: Params, - respond: IssuesGetMilestoneResponder, + respond: (typeof issuesGetMilestone)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21081,9 +18740,6 @@ const issuesUpdateMilestone = b((r) => ({ withStatus: r.withStatus, })) -type IssuesUpdateMilestoneResponder = - (typeof issuesUpdateMilestone)["responder"] & KoaRuntimeResponder - export type IssuesUpdateMilestone = ( params: Params< t_IssuesUpdateMilestoneParamSchema, @@ -21091,7 +18747,7 @@ export type IssuesUpdateMilestone = ( t_IssuesUpdateMilestoneBodySchema | undefined, void >, - respond: IssuesUpdateMilestoneResponder, + respond: (typeof issuesUpdateMilestone)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_milestone>> @@ -21101,12 +18757,9 @@ const issuesDeleteMilestone = b((r) => ({ withStatus: r.withStatus, })) -type IssuesDeleteMilestoneResponder = - (typeof issuesDeleteMilestone)["responder"] & KoaRuntimeResponder - export type IssuesDeleteMilestone = ( params: Params, - respond: IssuesDeleteMilestoneResponder, + respond: (typeof issuesDeleteMilestone)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21119,9 +18772,6 @@ const issuesListLabelsForMilestone = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListLabelsForMilestoneResponder = - (typeof issuesListLabelsForMilestone)["responder"] & KoaRuntimeResponder - export type IssuesListLabelsForMilestone = ( params: Params< t_IssuesListLabelsForMilestoneParamSchema, @@ -21129,7 +18779,7 @@ export type IssuesListLabelsForMilestone = ( void, void >, - respond: IssuesListLabelsForMilestoneResponder, + respond: (typeof issuesListLabelsForMilestone)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_label[]>> @@ -21138,10 +18788,6 @@ const activityListRepoNotificationsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListRepoNotificationsForAuthenticatedUserResponder = - (typeof activityListRepoNotificationsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityListRepoNotificationsForAuthenticatedUser = ( params: Params< t_ActivityListRepoNotificationsForAuthenticatedUserParamSchema, @@ -21149,7 +18795,7 @@ export type ActivityListRepoNotificationsForAuthenticatedUser = ( void, void >, - respond: ActivityListRepoNotificationsForAuthenticatedUserResponder, + respond: (typeof activityListRepoNotificationsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_thread[]>> @@ -21162,10 +18808,6 @@ const activityMarkRepoNotificationsAsRead = b((r) => ({ withStatus: r.withStatus, })) -type ActivityMarkRepoNotificationsAsReadResponder = - (typeof activityMarkRepoNotificationsAsRead)["responder"] & - KoaRuntimeResponder - export type ActivityMarkRepoNotificationsAsRead = ( params: Params< t_ActivityMarkRepoNotificationsAsReadParamSchema, @@ -21173,7 +18815,7 @@ export type ActivityMarkRepoNotificationsAsRead = ( t_ActivityMarkRepoNotificationsAsReadBodySchema | undefined, void >, - respond: ActivityMarkRepoNotificationsAsReadResponder, + respond: (typeof activityMarkRepoNotificationsAsRead)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21193,12 +18835,9 @@ const reposGetPages = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetPagesResponder = (typeof reposGetPages)["responder"] & - KoaRuntimeResponder - export type ReposGetPages = ( params: Params, - respond: ReposGetPagesResponder, + respond: (typeof reposGetPages)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21213,9 +18852,6 @@ const reposCreatePagesSite = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreatePagesSiteResponder = - (typeof reposCreatePagesSite)["responder"] & KoaRuntimeResponder - export type ReposCreatePagesSite = ( params: Params< t_ReposCreatePagesSiteParamSchema, @@ -21223,7 +18859,7 @@ export type ReposCreatePagesSite = ( t_ReposCreatePagesSiteBodySchema, void >, - respond: ReposCreatePagesSiteResponder, + respond: (typeof reposCreatePagesSite)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21240,10 +18876,6 @@ const reposUpdateInformationAboutPagesSite = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateInformationAboutPagesSiteResponder = - (typeof reposUpdateInformationAboutPagesSite)["responder"] & - KoaRuntimeResponder - export type ReposUpdateInformationAboutPagesSite = ( params: Params< t_ReposUpdateInformationAboutPagesSiteParamSchema, @@ -21251,7 +18883,7 @@ export type ReposUpdateInformationAboutPagesSite = ( t_ReposUpdateInformationAboutPagesSiteBodySchema, void >, - respond: ReposUpdateInformationAboutPagesSiteResponder, + respond: (typeof reposUpdateInformationAboutPagesSite)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21269,12 +18901,9 @@ const reposDeletePagesSite = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeletePagesSiteResponder = - (typeof reposDeletePagesSite)["responder"] & KoaRuntimeResponder - export type ReposDeletePagesSite = ( params: Params, - respond: ReposDeletePagesSiteResponder, + respond: (typeof reposDeletePagesSite)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21289,9 +18918,6 @@ const reposListPagesBuilds = b((r) => ({ withStatus: r.withStatus, })) -type ReposListPagesBuildsResponder = - (typeof reposListPagesBuilds)["responder"] & KoaRuntimeResponder - export type ReposListPagesBuilds = ( params: Params< t_ReposListPagesBuildsParamSchema, @@ -21299,7 +18925,7 @@ export type ReposListPagesBuilds = ( void, void >, - respond: ReposListPagesBuildsResponder, + respond: (typeof reposListPagesBuilds)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_page_build[]>> @@ -21308,12 +18934,9 @@ const reposRequestPagesBuild = b((r) => ({ withStatus: r.withStatus, })) -type ReposRequestPagesBuildResponder = - (typeof reposRequestPagesBuild)["responder"] & KoaRuntimeResponder - export type ReposRequestPagesBuild = ( params: Params, - respond: ReposRequestPagesBuildResponder, + respond: (typeof reposRequestPagesBuild)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_page_build_status>> @@ -21322,12 +18945,9 @@ const reposGetLatestPagesBuild = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetLatestPagesBuildResponder = - (typeof reposGetLatestPagesBuild)["responder"] & KoaRuntimeResponder - export type ReposGetLatestPagesBuild = ( params: Params, - respond: ReposGetLatestPagesBuildResponder, + respond: (typeof reposGetLatestPagesBuild)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_page_build>> @@ -21336,12 +18956,9 @@ const reposGetPagesBuild = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetPagesBuildResponder = (typeof reposGetPagesBuild)["responder"] & - KoaRuntimeResponder - export type ReposGetPagesBuild = ( params: Params, - respond: ReposGetPagesBuildResponder, + respond: (typeof reposGetPagesBuild)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_page_build>> @@ -21353,9 +18970,6 @@ const reposCreatePagesDeployment = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreatePagesDeploymentResponder = - (typeof reposCreatePagesDeployment)["responder"] & KoaRuntimeResponder - export type ReposCreatePagesDeployment = ( params: Params< t_ReposCreatePagesDeploymentParamSchema, @@ -21363,7 +18977,7 @@ export type ReposCreatePagesDeployment = ( t_ReposCreatePagesDeploymentBodySchema, void >, - respond: ReposCreatePagesDeploymentResponder, + respond: (typeof reposCreatePagesDeployment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21379,12 +18993,9 @@ const reposGetPagesDeployment = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetPagesDeploymentResponder = - (typeof reposGetPagesDeployment)["responder"] & KoaRuntimeResponder - export type ReposGetPagesDeployment = ( params: Params, - respond: ReposGetPagesDeploymentResponder, + respond: (typeof reposGetPagesDeployment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21398,12 +19009,9 @@ const reposCancelPagesDeployment = b((r) => ({ withStatus: r.withStatus, })) -type ReposCancelPagesDeploymentResponder = - (typeof reposCancelPagesDeployment)["responder"] & KoaRuntimeResponder - export type ReposCancelPagesDeployment = ( params: Params, - respond: ReposCancelPagesDeploymentResponder, + respond: (typeof reposCancelPagesDeployment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21420,12 +19028,9 @@ const reposGetPagesHealthCheck = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetPagesHealthCheckResponder = - (typeof reposGetPagesHealthCheck)["responder"] & KoaRuntimeResponder - export type ReposGetPagesHealthCheck = ( params: Params, - respond: ReposGetPagesHealthCheckResponder, + respond: (typeof reposGetPagesHealthCheck)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21444,10 +19049,6 @@ const reposCheckPrivateVulnerabilityReporting = b((r) => ({ withStatus: r.withStatus, })) -type ReposCheckPrivateVulnerabilityReportingResponder = - (typeof reposCheckPrivateVulnerabilityReporting)["responder"] & - KoaRuntimeResponder - export type ReposCheckPrivateVulnerabilityReporting = ( params: Params< t_ReposCheckPrivateVulnerabilityReportingParamSchema, @@ -21455,7 +19056,7 @@ export type ReposCheckPrivateVulnerabilityReporting = ( void, void >, - respond: ReposCheckPrivateVulnerabilityReportingResponder, + respond: (typeof reposCheckPrivateVulnerabilityReporting)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21474,10 +19075,6 @@ const reposEnablePrivateVulnerabilityReporting = b((r) => ({ withStatus: r.withStatus, })) -type ReposEnablePrivateVulnerabilityReportingResponder = - (typeof reposEnablePrivateVulnerabilityReporting)["responder"] & - KoaRuntimeResponder - export type ReposEnablePrivateVulnerabilityReporting = ( params: Params< t_ReposEnablePrivateVulnerabilityReportingParamSchema, @@ -21485,7 +19082,7 @@ export type ReposEnablePrivateVulnerabilityReporting = ( void, void >, - respond: ReposEnablePrivateVulnerabilityReportingResponder, + respond: (typeof reposEnablePrivateVulnerabilityReporting)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21499,10 +19096,6 @@ const reposDisablePrivateVulnerabilityReporting = b((r) => ({ withStatus: r.withStatus, })) -type ReposDisablePrivateVulnerabilityReportingResponder = - (typeof reposDisablePrivateVulnerabilityReporting)["responder"] & - KoaRuntimeResponder - export type ReposDisablePrivateVulnerabilityReporting = ( params: Params< t_ReposDisablePrivateVulnerabilityReportingParamSchema, @@ -21510,7 +19103,7 @@ export type ReposDisablePrivateVulnerabilityReporting = ( void, void >, - respond: ReposDisablePrivateVulnerabilityReportingResponder, + respond: (typeof reposDisablePrivateVulnerabilityReporting)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21528,9 +19121,6 @@ const projectsListForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsListForRepoResponder = (typeof projectsListForRepo)["responder"] & - KoaRuntimeResponder - export type ProjectsListForRepo = ( params: Params< t_ProjectsListForRepoParamSchema, @@ -21538,7 +19128,7 @@ export type ProjectsListForRepo = ( void, void >, - respond: ProjectsListForRepoResponder, + respond: (typeof projectsListForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21560,9 +19150,6 @@ const projectsCreateForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsCreateForRepoResponder = - (typeof projectsCreateForRepo)["responder"] & KoaRuntimeResponder - export type ProjectsCreateForRepo = ( params: Params< t_ProjectsCreateForRepoParamSchema, @@ -21570,7 +19157,7 @@ export type ProjectsCreateForRepo = ( t_ProjectsCreateForRepoBodySchema, void >, - respond: ProjectsCreateForRepoResponder, + respond: (typeof projectsCreateForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21591,12 +19178,9 @@ const reposGetCustomPropertiesValues = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCustomPropertiesValuesResponder = - (typeof reposGetCustomPropertiesValues)["responder"] & KoaRuntimeResponder - export type ReposGetCustomPropertiesValues = ( params: Params, - respond: ReposGetCustomPropertiesValuesResponder, + respond: (typeof reposGetCustomPropertiesValues)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21613,10 +19197,6 @@ const reposCreateOrUpdateCustomPropertiesValues = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateOrUpdateCustomPropertiesValuesResponder = - (typeof reposCreateOrUpdateCustomPropertiesValues)["responder"] & - KoaRuntimeResponder - export type ReposCreateOrUpdateCustomPropertiesValues = ( params: Params< t_ReposCreateOrUpdateCustomPropertiesValuesParamSchema, @@ -21624,7 +19204,7 @@ export type ReposCreateOrUpdateCustomPropertiesValues = ( t_ReposCreateOrUpdateCustomPropertiesValuesBodySchema, void >, - respond: ReposCreateOrUpdateCustomPropertiesValuesResponder, + respond: (typeof reposCreateOrUpdateCustomPropertiesValues)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21641,11 +19221,9 @@ const pullsList = b((r) => ({ withStatus: r.withStatus, })) -type PullsListResponder = (typeof pullsList)["responder"] & KoaRuntimeResponder - export type PullsList = ( params: Params, - respond: PullsListResponder, + respond: (typeof pullsList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21661,12 +19239,9 @@ const pullsCreate = b((r) => ({ withStatus: r.withStatus, })) -type PullsCreateResponder = (typeof pullsCreate)["responder"] & - KoaRuntimeResponder - export type PullsCreate = ( params: Params, - respond: PullsCreateResponder, + respond: (typeof pullsCreate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21682,9 +19257,6 @@ const pullsListReviewCommentsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type PullsListReviewCommentsForRepoResponder = - (typeof pullsListReviewCommentsForRepo)["responder"] & KoaRuntimeResponder - export type PullsListReviewCommentsForRepo = ( params: Params< t_PullsListReviewCommentsForRepoParamSchema, @@ -21692,7 +19264,7 @@ export type PullsListReviewCommentsForRepo = ( void, void >, - respond: PullsListReviewCommentsForRepoResponder, + respond: (typeof pullsListReviewCommentsForRepo)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_pull_request_review_comment[]> @@ -21706,12 +19278,9 @@ const pullsGetReviewComment = b((r) => ({ withStatus: r.withStatus, })) -type PullsGetReviewCommentResponder = - (typeof pullsGetReviewComment)["responder"] & KoaRuntimeResponder - export type PullsGetReviewComment = ( params: Params, - respond: PullsGetReviewCommentResponder, + respond: (typeof pullsGetReviewComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21726,9 +19295,6 @@ const pullsUpdateReviewComment = b((r) => ({ withStatus: r.withStatus, })) -type PullsUpdateReviewCommentResponder = - (typeof pullsUpdateReviewComment)["responder"] & KoaRuntimeResponder - export type PullsUpdateReviewComment = ( params: Params< t_PullsUpdateReviewCommentParamSchema, @@ -21736,7 +19302,7 @@ export type PullsUpdateReviewComment = ( t_PullsUpdateReviewCommentBodySchema, void >, - respond: PullsUpdateReviewCommentResponder, + respond: (typeof pullsUpdateReviewComment)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_pull_request_review_comment> @@ -21748,12 +19314,9 @@ const pullsDeleteReviewComment = b((r) => ({ withStatus: r.withStatus, })) -type PullsDeleteReviewCommentResponder = - (typeof pullsDeleteReviewComment)["responder"] & KoaRuntimeResponder - export type PullsDeleteReviewComment = ( params: Params, - respond: PullsDeleteReviewCommentResponder, + respond: (typeof pullsDeleteReviewComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21767,10 +19330,6 @@ const reactionsListForPullRequestReviewComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForPullRequestReviewCommentResponder = - (typeof reactionsListForPullRequestReviewComment)["responder"] & - KoaRuntimeResponder - export type ReactionsListForPullRequestReviewComment = ( params: Params< t_ReactionsListForPullRequestReviewCommentParamSchema, @@ -21778,7 +19337,7 @@ export type ReactionsListForPullRequestReviewComment = ( void, void >, - respond: ReactionsListForPullRequestReviewCommentResponder, + respond: (typeof reactionsListForPullRequestReviewComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21793,10 +19352,6 @@ const reactionsCreateForPullRequestReviewComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForPullRequestReviewCommentResponder = - (typeof reactionsCreateForPullRequestReviewComment)["responder"] & - KoaRuntimeResponder - export type ReactionsCreateForPullRequestReviewComment = ( params: Params< t_ReactionsCreateForPullRequestReviewCommentParamSchema, @@ -21804,7 +19359,7 @@ export type ReactionsCreateForPullRequestReviewComment = ( t_ReactionsCreateForPullRequestReviewCommentBodySchema, void >, - respond: ReactionsCreateForPullRequestReviewCommentResponder, + respond: (typeof reactionsCreateForPullRequestReviewComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21818,10 +19373,6 @@ const reactionsDeleteForPullRequestComment = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsDeleteForPullRequestCommentResponder = - (typeof reactionsDeleteForPullRequestComment)["responder"] & - KoaRuntimeResponder - export type ReactionsDeleteForPullRequestComment = ( params: Params< t_ReactionsDeleteForPullRequestCommentParamSchema, @@ -21829,7 +19380,7 @@ export type ReactionsDeleteForPullRequestComment = ( void, void >, - respond: ReactionsDeleteForPullRequestCommentResponder, + respond: (typeof reactionsDeleteForPullRequestComment)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -21853,11 +19404,9 @@ const pullsGet = b((r) => ({ withStatus: r.withStatus, })) -type PullsGetResponder = (typeof pullsGet)["responder"] & KoaRuntimeResponder - export type PullsGet = ( params: Params, - respond: PullsGetResponder, + respond: (typeof pullsGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21883,9 +19432,6 @@ const pullsUpdate = b((r) => ({ withStatus: r.withStatus, })) -type PullsUpdateResponder = (typeof pullsUpdate)["responder"] & - KoaRuntimeResponder - export type PullsUpdate = ( params: Params< t_PullsUpdateParamSchema, @@ -21893,7 +19439,7 @@ export type PullsUpdate = ( t_PullsUpdateBodySchema | undefined, void >, - respond: PullsUpdateResponder, + respond: (typeof pullsUpdate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21922,10 +19468,6 @@ const codespacesCreateWithPrForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesCreateWithPrForAuthenticatedUserResponder = - (typeof codespacesCreateWithPrForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesCreateWithPrForAuthenticatedUser = ( params: Params< t_CodespacesCreateWithPrForAuthenticatedUserParamSchema, @@ -21933,7 +19475,7 @@ export type CodespacesCreateWithPrForAuthenticatedUser = ( t_CodespacesCreateWithPrForAuthenticatedUserBodySchema, void >, - respond: CodespacesCreateWithPrForAuthenticatedUserResponder, + respond: (typeof codespacesCreateWithPrForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -21959,9 +19501,6 @@ const pullsListReviewComments = b((r) => ({ withStatus: r.withStatus, })) -type PullsListReviewCommentsResponder = - (typeof pullsListReviewComments)["responder"] & KoaRuntimeResponder - export type PullsListReviewComments = ( params: Params< t_PullsListReviewCommentsParamSchema, @@ -21969,7 +19508,7 @@ export type PullsListReviewComments = ( void, void >, - respond: PullsListReviewCommentsResponder, + respond: (typeof pullsListReviewComments)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_pull_request_review_comment[]> @@ -21984,9 +19523,6 @@ const pullsCreateReviewComment = b((r) => ({ withStatus: r.withStatus, })) -type PullsCreateReviewCommentResponder = - (typeof pullsCreateReviewComment)["responder"] & KoaRuntimeResponder - export type PullsCreateReviewComment = ( params: Params< t_PullsCreateReviewCommentParamSchema, @@ -21994,7 +19530,7 @@ export type PullsCreateReviewComment = ( t_PullsCreateReviewCommentBodySchema, void >, - respond: PullsCreateReviewCommentResponder, + respond: (typeof pullsCreateReviewComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22011,9 +19547,6 @@ const pullsCreateReplyForReviewComment = b((r) => ({ withStatus: r.withStatus, })) -type PullsCreateReplyForReviewCommentResponder = - (typeof pullsCreateReplyForReviewComment)["responder"] & KoaRuntimeResponder - export type PullsCreateReplyForReviewComment = ( params: Params< t_PullsCreateReplyForReviewCommentParamSchema, @@ -22021,7 +19554,7 @@ export type PullsCreateReplyForReviewComment = ( t_PullsCreateReplyForReviewCommentBodySchema, void >, - respond: PullsCreateReplyForReviewCommentResponder, + respond: (typeof pullsCreateReplyForReviewComment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22034,9 +19567,6 @@ const pullsListCommits = b((r) => ({ withStatus: r.withStatus, })) -type PullsListCommitsResponder = (typeof pullsListCommits)["responder"] & - KoaRuntimeResponder - export type PullsListCommits = ( params: Params< t_PullsListCommitsParamSchema, @@ -22044,7 +19574,7 @@ export type PullsListCommits = ( void, void >, - respond: PullsListCommitsResponder, + respond: (typeof pullsListCommits)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_commit[]>> @@ -22066,9 +19596,6 @@ const pullsListFiles = b((r) => ({ withStatus: r.withStatus, })) -type PullsListFilesResponder = (typeof pullsListFiles)["responder"] & - KoaRuntimeResponder - export type PullsListFiles = ( params: Params< t_PullsListFilesParamSchema, @@ -22076,7 +19603,7 @@ export type PullsListFiles = ( void, void >, - respond: PullsListFilesResponder, + respond: (typeof pullsListFiles)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22099,12 +19626,9 @@ const pullsCheckIfMerged = b((r) => ({ withStatus: r.withStatus, })) -type PullsCheckIfMergedResponder = (typeof pullsCheckIfMerged)["responder"] & - KoaRuntimeResponder - export type PullsCheckIfMerged = ( params: Params, - respond: PullsCheckIfMergedResponder, + respond: (typeof pullsCheckIfMerged)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<404, void> @@ -22136,9 +19660,6 @@ const pullsMerge = b((r) => ({ withStatus: r.withStatus, })) -type PullsMergeResponder = (typeof pullsMerge)["responder"] & - KoaRuntimeResponder - export type PullsMerge = ( params: Params< t_PullsMergeParamSchema, @@ -22146,7 +19667,7 @@ export type PullsMerge = ( t_PullsMergeBodySchema | undefined, void >, - respond: PullsMergeResponder, + respond: (typeof pullsMerge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22177,12 +19698,9 @@ const pullsListRequestedReviewers = b((r) => ({ withStatus: r.withStatus, })) -type PullsListRequestedReviewersResponder = - (typeof pullsListRequestedReviewers)["responder"] & KoaRuntimeResponder - export type PullsListRequestedReviewers = ( params: Params, - respond: PullsListRequestedReviewersResponder, + respond: (typeof pullsListRequestedReviewers)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_pull_request_review_request> @@ -22195,9 +19713,6 @@ const pullsRequestReviewers = b((r) => ({ withStatus: r.withStatus, })) -type PullsRequestReviewersResponder = - (typeof pullsRequestReviewers)["responder"] & KoaRuntimeResponder - export type PullsRequestReviewers = ( params: Params< t_PullsRequestReviewersParamSchema, @@ -22205,7 +19720,7 @@ export type PullsRequestReviewers = ( t_PullsRequestReviewersBodySchema | undefined, void >, - respond: PullsRequestReviewersResponder, + respond: (typeof pullsRequestReviewers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22220,9 +19735,6 @@ const pullsRemoveRequestedReviewers = b((r) => ({ withStatus: r.withStatus, })) -type PullsRemoveRequestedReviewersResponder = - (typeof pullsRemoveRequestedReviewers)["responder"] & KoaRuntimeResponder - export type PullsRemoveRequestedReviewers = ( params: Params< t_PullsRemoveRequestedReviewersParamSchema, @@ -22230,7 +19742,7 @@ export type PullsRemoveRequestedReviewers = ( t_PullsRemoveRequestedReviewersBodySchema, void >, - respond: PullsRemoveRequestedReviewersResponder, + respond: (typeof pullsRemoveRequestedReviewers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22243,9 +19755,6 @@ const pullsListReviews = b((r) => ({ withStatus: r.withStatus, })) -type PullsListReviewsResponder = (typeof pullsListReviews)["responder"] & - KoaRuntimeResponder - export type PullsListReviews = ( params: Params< t_PullsListReviewsParamSchema, @@ -22253,7 +19762,7 @@ export type PullsListReviews = ( void, void >, - respond: PullsListReviewsResponder, + respond: (typeof pullsListReviews)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_pull_request_review[]> @@ -22266,9 +19775,6 @@ const pullsCreateReview = b((r) => ({ withStatus: r.withStatus, })) -type PullsCreateReviewResponder = (typeof pullsCreateReview)["responder"] & - KoaRuntimeResponder - export type PullsCreateReview = ( params: Params< t_PullsCreateReviewParamSchema, @@ -22276,7 +19782,7 @@ export type PullsCreateReview = ( t_PullsCreateReviewBodySchema | undefined, void >, - respond: PullsCreateReviewResponder, + respond: (typeof pullsCreateReview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22291,12 +19797,9 @@ const pullsGetReview = b((r) => ({ withStatus: r.withStatus, })) -type PullsGetReviewResponder = (typeof pullsGetReview)["responder"] & - KoaRuntimeResponder - export type PullsGetReview = ( params: Params, - respond: PullsGetReviewResponder, + respond: (typeof pullsGetReview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22310,9 +19813,6 @@ const pullsUpdateReview = b((r) => ({ withStatus: r.withStatus, })) -type PullsUpdateReviewResponder = (typeof pullsUpdateReview)["responder"] & - KoaRuntimeResponder - export type PullsUpdateReview = ( params: Params< t_PullsUpdateReviewParamSchema, @@ -22320,7 +19820,7 @@ export type PullsUpdateReview = ( t_PullsUpdateReviewBodySchema, void >, - respond: PullsUpdateReviewResponder, + respond: (typeof pullsUpdateReview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22335,12 +19835,9 @@ const pullsDeletePendingReview = b((r) => ({ withStatus: r.withStatus, })) -type PullsDeletePendingReviewResponder = - (typeof pullsDeletePendingReview)["responder"] & KoaRuntimeResponder - export type PullsDeletePendingReview = ( params: Params, - respond: PullsDeletePendingReviewResponder, + respond: (typeof pullsDeletePendingReview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22355,9 +19852,6 @@ const pullsListCommentsForReview = b((r) => ({ withStatus: r.withStatus, })) -type PullsListCommentsForReviewResponder = - (typeof pullsListCommentsForReview)["responder"] & KoaRuntimeResponder - export type PullsListCommentsForReview = ( params: Params< t_PullsListCommentsForReviewParamSchema, @@ -22365,7 +19859,7 @@ export type PullsListCommentsForReview = ( void, void >, - respond: PullsListCommentsForReviewResponder, + respond: (typeof pullsListCommentsForReview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22380,9 +19874,6 @@ const pullsDismissReview = b((r) => ({ withStatus: r.withStatus, })) -type PullsDismissReviewResponder = (typeof pullsDismissReview)["responder"] & - KoaRuntimeResponder - export type PullsDismissReview = ( params: Params< t_PullsDismissReviewParamSchema, @@ -22390,7 +19881,7 @@ export type PullsDismissReview = ( t_PullsDismissReviewBodySchema, void >, - respond: PullsDismissReviewResponder, + respond: (typeof pullsDismissReview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22407,9 +19898,6 @@ const pullsSubmitReview = b((r) => ({ withStatus: r.withStatus, })) -type PullsSubmitReviewResponder = (typeof pullsSubmitReview)["responder"] & - KoaRuntimeResponder - export type PullsSubmitReview = ( params: Params< t_PullsSubmitReviewParamSchema, @@ -22417,7 +19905,7 @@ export type PullsSubmitReview = ( t_PullsSubmitReviewBodySchema, void >, - respond: PullsSubmitReviewResponder, + respond: (typeof pullsSubmitReview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22437,9 +19925,6 @@ const pullsUpdateBranch = b((r) => ({ withStatus: r.withStatus, })) -type PullsUpdateBranchResponder = (typeof pullsUpdateBranch)["responder"] & - KoaRuntimeResponder - export type PullsUpdateBranch = ( params: Params< t_PullsUpdateBranchParamSchema, @@ -22447,7 +19932,7 @@ export type PullsUpdateBranch = ( t_PullsUpdateBranchBodySchema | undefined, void >, - respond: PullsUpdateBranchResponder, + respond: (typeof pullsUpdateBranch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22470,9 +19955,6 @@ const reposGetReadme = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetReadmeResponder = (typeof reposGetReadme)["responder"] & - KoaRuntimeResponder - export type ReposGetReadme = ( params: Params< t_ReposGetReadmeParamSchema, @@ -22480,7 +19962,7 @@ export type ReposGetReadme = ( void, void >, - respond: ReposGetReadmeResponder, + respond: (typeof reposGetReadme)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22497,9 +19979,6 @@ const reposGetReadmeInDirectory = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetReadmeInDirectoryResponder = - (typeof reposGetReadmeInDirectory)["responder"] & KoaRuntimeResponder - export type ReposGetReadmeInDirectory = ( params: Params< t_ReposGetReadmeInDirectoryParamSchema, @@ -22507,7 +19986,7 @@ export type ReposGetReadmeInDirectory = ( void, void >, - respond: ReposGetReadmeInDirectoryResponder, + respond: (typeof reposGetReadmeInDirectory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22522,9 +20001,6 @@ const reposListReleases = b((r) => ({ withStatus: r.withStatus, })) -type ReposListReleasesResponder = (typeof reposListReleases)["responder"] & - KoaRuntimeResponder - export type ReposListReleases = ( params: Params< t_ReposListReleasesParamSchema, @@ -22532,7 +20008,7 @@ export type ReposListReleases = ( void, void >, - respond: ReposListReleasesResponder, + respond: (typeof reposListReleases)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22547,9 +20023,6 @@ const reposCreateRelease = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateReleaseResponder = (typeof reposCreateRelease)["responder"] & - KoaRuntimeResponder - export type ReposCreateRelease = ( params: Params< t_ReposCreateReleaseParamSchema, @@ -22557,7 +20030,7 @@ export type ReposCreateRelease = ( t_ReposCreateReleaseBodySchema, void >, - respond: ReposCreateReleaseResponder, + respond: (typeof reposCreateRelease)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22573,12 +20046,9 @@ const reposGetReleaseAsset = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetReleaseAssetResponder = - (typeof reposGetReleaseAsset)["responder"] & KoaRuntimeResponder - export type ReposGetReleaseAsset = ( params: Params, - respond: ReposGetReleaseAssetResponder, + respond: (typeof reposGetReleaseAsset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22592,9 +20062,6 @@ const reposUpdateReleaseAsset = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateReleaseAssetResponder = - (typeof reposUpdateReleaseAsset)["responder"] & KoaRuntimeResponder - export type ReposUpdateReleaseAsset = ( params: Params< t_ReposUpdateReleaseAssetParamSchema, @@ -22602,7 +20069,7 @@ export type ReposUpdateReleaseAsset = ( t_ReposUpdateReleaseAssetBodySchema | undefined, void >, - respond: ReposUpdateReleaseAssetResponder, + respond: (typeof reposUpdateReleaseAsset)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_release_asset>> @@ -22611,12 +20078,9 @@ const reposDeleteReleaseAsset = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteReleaseAssetResponder = - (typeof reposDeleteReleaseAsset)["responder"] & KoaRuntimeResponder - export type ReposDeleteReleaseAsset = ( params: Params, - respond: ReposDeleteReleaseAssetResponder, + respond: (typeof reposDeleteReleaseAsset)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -22626,9 +20090,6 @@ const reposGenerateReleaseNotes = b((r) => ({ withStatus: r.withStatus, })) -type ReposGenerateReleaseNotesResponder = - (typeof reposGenerateReleaseNotes)["responder"] & KoaRuntimeResponder - export type ReposGenerateReleaseNotes = ( params: Params< t_ReposGenerateReleaseNotesParamSchema, @@ -22636,7 +20097,7 @@ export type ReposGenerateReleaseNotes = ( t_ReposGenerateReleaseNotesBodySchema, void >, - respond: ReposGenerateReleaseNotesResponder, + respond: (typeof reposGenerateReleaseNotes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22649,12 +20110,9 @@ const reposGetLatestRelease = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetLatestReleaseResponder = - (typeof reposGetLatestRelease)["responder"] & KoaRuntimeResponder - export type ReposGetLatestRelease = ( params: Params, - respond: ReposGetLatestReleaseResponder, + respond: (typeof reposGetLatestRelease)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_release>> @@ -22664,12 +20122,9 @@ const reposGetReleaseByTag = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetReleaseByTagResponder = - (typeof reposGetReleaseByTag)["responder"] & KoaRuntimeResponder - export type ReposGetReleaseByTag = ( params: Params, - respond: ReposGetReleaseByTagResponder, + respond: (typeof reposGetReleaseByTag)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22683,12 +20138,9 @@ const reposGetRelease = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetReleaseResponder = (typeof reposGetRelease)["responder"] & - KoaRuntimeResponder - export type ReposGetRelease = ( params: Params, - respond: ReposGetReleaseResponder, + respond: (typeof reposGetRelease)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_release> | Response<401, void> @@ -22700,9 +20152,6 @@ const reposUpdateRelease = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateReleaseResponder = (typeof reposUpdateRelease)["responder"] & - KoaRuntimeResponder - export type ReposUpdateRelease = ( params: Params< t_ReposUpdateReleaseParamSchema, @@ -22710,7 +20159,7 @@ export type ReposUpdateRelease = ( t_ReposUpdateReleaseBodySchema | undefined, void >, - respond: ReposUpdateReleaseResponder, + respond: (typeof reposUpdateRelease)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22723,12 +20172,9 @@ const reposDeleteRelease = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteReleaseResponder = (typeof reposDeleteRelease)["responder"] & - KoaRuntimeResponder - export type ReposDeleteRelease = ( params: Params, - respond: ReposDeleteReleaseResponder, + respond: (typeof reposDeleteRelease)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -22737,9 +20183,6 @@ const reposListReleaseAssets = b((r) => ({ withStatus: r.withStatus, })) -type ReposListReleaseAssetsResponder = - (typeof reposListReleaseAssets)["responder"] & KoaRuntimeResponder - export type ReposListReleaseAssets = ( params: Params< t_ReposListReleaseAssetsParamSchema, @@ -22747,7 +20190,7 @@ export type ReposListReleaseAssets = ( void, void >, - respond: ReposListReleaseAssetsResponder, + respond: (typeof reposListReleaseAssets)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_release_asset[]>> @@ -22757,9 +20200,6 @@ const reposUploadReleaseAsset = b((r) => ({ withStatus: r.withStatus, })) -type ReposUploadReleaseAssetResponder = - (typeof reposUploadReleaseAsset)["responder"] & KoaRuntimeResponder - export type ReposUploadReleaseAsset = ( params: Params< t_ReposUploadReleaseAssetParamSchema, @@ -22767,7 +20207,7 @@ export type ReposUploadReleaseAsset = ( t_ReposUploadReleaseAssetBodySchema | undefined, void >, - respond: ReposUploadReleaseAssetResponder, + respond: (typeof reposUploadReleaseAsset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22781,9 +20221,6 @@ const reactionsListForRelease = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForReleaseResponder = - (typeof reactionsListForRelease)["responder"] & KoaRuntimeResponder - export type ReactionsListForRelease = ( params: Params< t_ReactionsListForReleaseParamSchema, @@ -22791,7 +20228,7 @@ export type ReactionsListForRelease = ( void, void >, - respond: ReactionsListForReleaseResponder, + respond: (typeof reactionsListForRelease)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22806,9 +20243,6 @@ const reactionsCreateForRelease = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForReleaseResponder = - (typeof reactionsCreateForRelease)["responder"] & KoaRuntimeResponder - export type ReactionsCreateForRelease = ( params: Params< t_ReactionsCreateForReleaseParamSchema, @@ -22816,7 +20250,7 @@ export type ReactionsCreateForRelease = ( t_ReactionsCreateForReleaseBodySchema, void >, - respond: ReactionsCreateForReleaseResponder, + respond: (typeof reactionsCreateForRelease)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22830,12 +20264,9 @@ const reactionsDeleteForRelease = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsDeleteForReleaseResponder = - (typeof reactionsDeleteForRelease)["responder"] & KoaRuntimeResponder - export type ReactionsDeleteForRelease = ( params: Params, - respond: ReactionsDeleteForReleaseResponder, + respond: (typeof reactionsDeleteForRelease)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -22846,9 +20277,6 @@ const reposGetBranchRules = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetBranchRulesResponder = (typeof reposGetBranchRules)["responder"] & - KoaRuntimeResponder - export type ReposGetBranchRules = ( params: Params< t_ReposGetBranchRulesParamSchema, @@ -22856,7 +20284,7 @@ export type ReposGetBranchRules = ( void, void >, - respond: ReposGetBranchRulesResponder, + respond: (typeof reposGetBranchRules)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_repository_rule_detailed[]> @@ -22869,9 +20297,6 @@ const reposGetRepoRulesets = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetRepoRulesetsResponder = - (typeof reposGetRepoRulesets)["responder"] & KoaRuntimeResponder - export type ReposGetRepoRulesets = ( params: Params< t_ReposGetRepoRulesetsParamSchema, @@ -22879,7 +20304,7 @@ export type ReposGetRepoRulesets = ( void, void >, - respond: ReposGetRepoRulesetsResponder, + respond: (typeof reposGetRepoRulesets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22895,9 +20320,6 @@ const reposCreateRepoRuleset = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateRepoRulesetResponder = - (typeof reposCreateRepoRuleset)["responder"] & KoaRuntimeResponder - export type ReposCreateRepoRuleset = ( params: Params< t_ReposCreateRepoRulesetParamSchema, @@ -22905,7 +20327,7 @@ export type ReposCreateRepoRuleset = ( t_ReposCreateRepoRulesetBodySchema, void >, - respond: ReposCreateRepoRulesetResponder, + respond: (typeof reposCreateRepoRuleset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22921,9 +20343,6 @@ const reposGetRepoRuleSuites = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetRepoRuleSuitesResponder = - (typeof reposGetRepoRuleSuites)["responder"] & KoaRuntimeResponder - export type ReposGetRepoRuleSuites = ( params: Params< t_ReposGetRepoRuleSuitesParamSchema, @@ -22931,7 +20350,7 @@ export type ReposGetRepoRuleSuites = ( void, void >, - respond: ReposGetRepoRuleSuitesResponder, + respond: (typeof reposGetRepoRuleSuites)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22947,12 +20366,9 @@ const reposGetRepoRuleSuite = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetRepoRuleSuiteResponder = - (typeof reposGetRepoRuleSuite)["responder"] & KoaRuntimeResponder - export type ReposGetRepoRuleSuite = ( params: Params, - respond: ReposGetRepoRuleSuiteResponder, + respond: (typeof reposGetRepoRuleSuite)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22968,9 +20384,6 @@ const reposGetRepoRuleset = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetRepoRulesetResponder = (typeof reposGetRepoRuleset)["responder"] & - KoaRuntimeResponder - export type ReposGetRepoRuleset = ( params: Params< t_ReposGetRepoRulesetParamSchema, @@ -22978,7 +20391,7 @@ export type ReposGetRepoRuleset = ( void, void >, - respond: ReposGetRepoRulesetResponder, + respond: (typeof reposGetRepoRuleset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -22994,9 +20407,6 @@ const reposUpdateRepoRuleset = b((r) => ({ withStatus: r.withStatus, })) -type ReposUpdateRepoRulesetResponder = - (typeof reposUpdateRepoRuleset)["responder"] & KoaRuntimeResponder - export type ReposUpdateRepoRuleset = ( params: Params< t_ReposUpdateRepoRulesetParamSchema, @@ -23004,7 +20414,7 @@ export type ReposUpdateRepoRuleset = ( t_ReposUpdateRepoRulesetBodySchema | undefined, void >, - respond: ReposUpdateRepoRulesetResponder, + respond: (typeof reposUpdateRepoRuleset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23020,12 +20430,9 @@ const reposDeleteRepoRuleset = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteRepoRulesetResponder = - (typeof reposDeleteRepoRuleset)["responder"] & KoaRuntimeResponder - export type ReposDeleteRepoRuleset = ( params: Params, - respond: ReposDeleteRepoRulesetResponder, + respond: (typeof reposDeleteRepoRuleset)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23041,9 +20448,6 @@ const reposGetRepoRulesetHistory = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetRepoRulesetHistoryResponder = - (typeof reposGetRepoRulesetHistory)["responder"] & KoaRuntimeResponder - export type ReposGetRepoRulesetHistory = ( params: Params< t_ReposGetRepoRulesetHistoryParamSchema, @@ -23051,7 +20455,7 @@ export type ReposGetRepoRulesetHistory = ( void, void >, - respond: ReposGetRepoRulesetHistoryResponder, + respond: (typeof reposGetRepoRulesetHistory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23069,12 +20473,9 @@ const reposGetRepoRulesetVersion = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetRepoRulesetVersionResponder = - (typeof reposGetRepoRulesetVersion)["responder"] & KoaRuntimeResponder - export type ReposGetRepoRulesetVersion = ( params: Params, - respond: ReposGetRepoRulesetVersionResponder, + respond: (typeof reposGetRepoRulesetVersion)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23102,9 +20503,6 @@ const secretScanningListAlertsForRepo = b((r) => ({ withStatus: r.withStatus, })) -type SecretScanningListAlertsForRepoResponder = - (typeof secretScanningListAlertsForRepo)["responder"] & KoaRuntimeResponder - export type SecretScanningListAlertsForRepo = ( params: Params< t_SecretScanningListAlertsForRepoParamSchema, @@ -23112,7 +20510,7 @@ export type SecretScanningListAlertsForRepo = ( void, void >, - respond: SecretScanningListAlertsForRepoResponder, + respond: (typeof secretScanningListAlertsForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23146,12 +20544,9 @@ const secretScanningGetAlert = b((r) => ({ withStatus: r.withStatus, })) -type SecretScanningGetAlertResponder = - (typeof secretScanningGetAlert)["responder"] & KoaRuntimeResponder - export type SecretScanningGetAlert = ( params: Params, - respond: SecretScanningGetAlertResponder, + respond: (typeof secretScanningGetAlert)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23187,9 +20582,6 @@ const secretScanningUpdateAlert = b((r) => ({ withStatus: r.withStatus, })) -type SecretScanningUpdateAlertResponder = - (typeof secretScanningUpdateAlert)["responder"] & KoaRuntimeResponder - export type SecretScanningUpdateAlert = ( params: Params< t_SecretScanningUpdateAlertParamSchema, @@ -23197,7 +20589,7 @@ export type SecretScanningUpdateAlert = ( t_SecretScanningUpdateAlertBodySchema, void >, - respond: SecretScanningUpdateAlertResponder, + respond: (typeof secretScanningUpdateAlert)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23234,10 +20626,6 @@ const secretScanningListLocationsForAlert = b((r) => ({ withStatus: r.withStatus, })) -type SecretScanningListLocationsForAlertResponder = - (typeof secretScanningListLocationsForAlert)["responder"] & - KoaRuntimeResponder - export type SecretScanningListLocationsForAlert = ( params: Params< t_SecretScanningListLocationsForAlertParamSchema, @@ -23245,7 +20633,7 @@ export type SecretScanningListLocationsForAlert = ( void, void >, - respond: SecretScanningListLocationsForAlertResponder, + respond: (typeof secretScanningListLocationsForAlert)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23282,10 +20670,6 @@ const secretScanningCreatePushProtectionBypass = b((r) => ({ withStatus: r.withStatus, })) -type SecretScanningCreatePushProtectionBypassResponder = - (typeof secretScanningCreatePushProtectionBypass)["responder"] & - KoaRuntimeResponder - export type SecretScanningCreatePushProtectionBypass = ( params: Params< t_SecretScanningCreatePushProtectionBypassParamSchema, @@ -23293,7 +20677,7 @@ export type SecretScanningCreatePushProtectionBypass = ( t_SecretScanningCreatePushProtectionBypassBodySchema, void >, - respond: SecretScanningCreatePushProtectionBypassResponder, + respond: (typeof secretScanningCreatePushProtectionBypass)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23330,12 +20714,9 @@ const secretScanningGetScanHistory = b((r) => ({ withStatus: r.withStatus, })) -type SecretScanningGetScanHistoryResponder = - (typeof secretScanningGetScanHistory)["responder"] & KoaRuntimeResponder - export type SecretScanningGetScanHistory = ( params: Params, - respond: SecretScanningGetScanHistoryResponder, + respond: (typeof secretScanningGetScanHistory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23358,10 +20739,6 @@ const securityAdvisoriesListRepositoryAdvisories = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesListRepositoryAdvisoriesResponder = - (typeof securityAdvisoriesListRepositoryAdvisories)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesListRepositoryAdvisories = ( params: Params< t_SecurityAdvisoriesListRepositoryAdvisoriesParamSchema, @@ -23369,7 +20746,7 @@ export type SecurityAdvisoriesListRepositoryAdvisories = ( void, void >, - respond: SecurityAdvisoriesListRepositoryAdvisoriesResponder, + respond: (typeof securityAdvisoriesListRepositoryAdvisories)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23386,10 +20763,6 @@ const securityAdvisoriesCreateRepositoryAdvisory = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesCreateRepositoryAdvisoryResponder = - (typeof securityAdvisoriesCreateRepositoryAdvisory)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesCreateRepositoryAdvisory = ( params: Params< t_SecurityAdvisoriesCreateRepositoryAdvisoryParamSchema, @@ -23397,7 +20770,7 @@ export type SecurityAdvisoriesCreateRepositoryAdvisory = ( t_SecurityAdvisoriesCreateRepositoryAdvisoryBodySchema, void >, - respond: SecurityAdvisoriesCreateRepositoryAdvisoryResponder, + respond: (typeof securityAdvisoriesCreateRepositoryAdvisory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23415,10 +20788,6 @@ const securityAdvisoriesCreatePrivateVulnerabilityReport = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesCreatePrivateVulnerabilityReportResponder = - (typeof securityAdvisoriesCreatePrivateVulnerabilityReport)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesCreatePrivateVulnerabilityReport = ( params: Params< t_SecurityAdvisoriesCreatePrivateVulnerabilityReportParamSchema, @@ -23426,7 +20795,7 @@ export type SecurityAdvisoriesCreatePrivateVulnerabilityReport = ( t_SecurityAdvisoriesCreatePrivateVulnerabilityReportBodySchema, void >, - respond: SecurityAdvisoriesCreatePrivateVulnerabilityReportResponder, + respond: (typeof securityAdvisoriesCreatePrivateVulnerabilityReport)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23443,10 +20812,6 @@ const securityAdvisoriesGetRepositoryAdvisory = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesGetRepositoryAdvisoryResponder = - (typeof securityAdvisoriesGetRepositoryAdvisory)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesGetRepositoryAdvisory = ( params: Params< t_SecurityAdvisoriesGetRepositoryAdvisoryParamSchema, @@ -23454,7 +20819,7 @@ export type SecurityAdvisoriesGetRepositoryAdvisory = ( void, void >, - respond: SecurityAdvisoriesGetRepositoryAdvisoryResponder, + respond: (typeof securityAdvisoriesGetRepositoryAdvisory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23471,10 +20836,6 @@ const securityAdvisoriesUpdateRepositoryAdvisory = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesUpdateRepositoryAdvisoryResponder = - (typeof securityAdvisoriesUpdateRepositoryAdvisory)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesUpdateRepositoryAdvisory = ( params: Params< t_SecurityAdvisoriesUpdateRepositoryAdvisoryParamSchema, @@ -23482,7 +20843,7 @@ export type SecurityAdvisoriesUpdateRepositoryAdvisory = ( t_SecurityAdvisoriesUpdateRepositoryAdvisoryBodySchema, void >, - respond: SecurityAdvisoriesUpdateRepositoryAdvisoryResponder, + respond: (typeof securityAdvisoriesUpdateRepositoryAdvisory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23503,10 +20864,6 @@ const securityAdvisoriesCreateRepositoryAdvisoryCveRequest = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder = - (typeof securityAdvisoriesCreateRepositoryAdvisoryCveRequest)["responder"] & - KoaRuntimeResponder - export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest = ( params: Params< t_SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestParamSchema, @@ -23514,7 +20871,7 @@ export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequest = ( void, void >, - respond: SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestResponder, + respond: (typeof securityAdvisoriesCreateRepositoryAdvisoryCveRequest)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23539,12 +20896,9 @@ const securityAdvisoriesCreateFork = b((r) => ({ withStatus: r.withStatus, })) -type SecurityAdvisoriesCreateForkResponder = - (typeof securityAdvisoriesCreateFork)["responder"] & KoaRuntimeResponder - export type SecurityAdvisoriesCreateFork = ( params: Params, - respond: SecurityAdvisoriesCreateForkResponder, + respond: (typeof securityAdvisoriesCreateFork)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23563,9 +20917,6 @@ const activityListStargazersForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListStargazersForRepoResponder = - (typeof activityListStargazersForRepo)["responder"] & KoaRuntimeResponder - export type ActivityListStargazersForRepo = ( params: Params< t_ActivityListStargazersForRepoParamSchema, @@ -23573,7 +20924,7 @@ export type ActivityListStargazersForRepo = ( void, void >, - respond: ActivityListStargazersForRepoResponder, + respond: (typeof activityListStargazersForRepo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23591,12 +20942,9 @@ const reposGetCodeFrequencyStats = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCodeFrequencyStatsResponder = - (typeof reposGetCodeFrequencyStats)["responder"] & KoaRuntimeResponder - export type ReposGetCodeFrequencyStats = ( params: Params, - respond: ReposGetCodeFrequencyStatsResponder, + respond: (typeof reposGetCodeFrequencyStats)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23620,12 +20968,9 @@ const reposGetCommitActivityStats = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetCommitActivityStatsResponder = - (typeof reposGetCommitActivityStats)["responder"] & KoaRuntimeResponder - export type ReposGetCommitActivityStats = ( params: Params, - respond: ReposGetCommitActivityStatsResponder, + respond: (typeof reposGetCommitActivityStats)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23648,12 +20993,9 @@ const reposGetContributorsStats = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetContributorsStatsResponder = - (typeof reposGetContributorsStats)["responder"] & KoaRuntimeResponder - export type ReposGetContributorsStats = ( params: Params, - respond: ReposGetContributorsStatsResponder, + respond: (typeof reposGetContributorsStats)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23673,12 +21015,9 @@ const reposGetParticipationStats = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetParticipationStatsResponder = - (typeof reposGetParticipationStats)["responder"] & KoaRuntimeResponder - export type ReposGetParticipationStats = ( params: Params, - respond: ReposGetParticipationStatsResponder, + respond: (typeof reposGetParticipationStats)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23692,12 +21031,9 @@ const reposGetPunchCardStats = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetPunchCardStatsResponder = - (typeof reposGetPunchCardStats)["responder"] & KoaRuntimeResponder - export type ReposGetPunchCardStats = ( params: Params, - respond: ReposGetPunchCardStatsResponder, + respond: (typeof reposGetPunchCardStats)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23710,9 +21046,6 @@ const reposCreateCommitStatus = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateCommitStatusResponder = - (typeof reposCreateCommitStatus)["responder"] & KoaRuntimeResponder - export type ReposCreateCommitStatus = ( params: Params< t_ReposCreateCommitStatusParamSchema, @@ -23720,7 +21053,7 @@ export type ReposCreateCommitStatus = ( t_ReposCreateCommitStatusBodySchema, void >, - respond: ReposCreateCommitStatusResponder, + respond: (typeof reposCreateCommitStatus)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_status>> @@ -23729,9 +21062,6 @@ const activityListWatchersForRepo = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListWatchersForRepoResponder = - (typeof activityListWatchersForRepo)["responder"] & KoaRuntimeResponder - export type ActivityListWatchersForRepo = ( params: Params< t_ActivityListWatchersForRepoParamSchema, @@ -23739,7 +21069,7 @@ export type ActivityListWatchersForRepo = ( void, void >, - respond: ActivityListWatchersForRepoResponder, + respond: (typeof activityListWatchersForRepo)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> @@ -23750,12 +21080,9 @@ const activityGetRepoSubscription = b((r) => ({ withStatus: r.withStatus, })) -type ActivityGetRepoSubscriptionResponder = - (typeof activityGetRepoSubscription)["responder"] & KoaRuntimeResponder - export type ActivityGetRepoSubscription = ( params: Params, - respond: ActivityGetRepoSubscriptionResponder, + respond: (typeof activityGetRepoSubscription)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23769,9 +21096,6 @@ const activitySetRepoSubscription = b((r) => ({ withStatus: r.withStatus, })) -type ActivitySetRepoSubscriptionResponder = - (typeof activitySetRepoSubscription)["responder"] & KoaRuntimeResponder - export type ActivitySetRepoSubscription = ( params: Params< t_ActivitySetRepoSubscriptionParamSchema, @@ -23779,7 +21103,7 @@ export type ActivitySetRepoSubscription = ( t_ActivitySetRepoSubscriptionBodySchema | undefined, void >, - respond: ActivitySetRepoSubscriptionResponder, + respond: (typeof activitySetRepoSubscription)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_repository_subscription> @@ -23790,12 +21114,9 @@ const activityDeleteRepoSubscription = b((r) => ({ withStatus: r.withStatus, })) -type ActivityDeleteRepoSubscriptionResponder = - (typeof activityDeleteRepoSubscription)["responder"] & KoaRuntimeResponder - export type ActivityDeleteRepoSubscription = ( params: Params, - respond: ActivityDeleteRepoSubscriptionResponder, + respond: (typeof activityDeleteRepoSubscription)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -23804,9 +21125,6 @@ const reposListTags = b((r) => ({ withStatus: r.withStatus, })) -type ReposListTagsResponder = (typeof reposListTags)["responder"] & - KoaRuntimeResponder - export type ReposListTags = ( params: Params< t_ReposListTagsParamSchema, @@ -23814,7 +21132,7 @@ export type ReposListTags = ( void, void >, - respond: ReposListTagsResponder, + respond: (typeof reposListTags)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_tag[]>> @@ -23825,12 +21143,9 @@ const reposListTagProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposListTagProtectionResponder = - (typeof reposListTagProtection)["responder"] & KoaRuntimeResponder - export type ReposListTagProtection = ( params: Params, - respond: ReposListTagProtectionResponder, + respond: (typeof reposListTagProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23846,9 +21161,6 @@ const reposCreateTagProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateTagProtectionResponder = - (typeof reposCreateTagProtection)["responder"] & KoaRuntimeResponder - export type ReposCreateTagProtection = ( params: Params< t_ReposCreateTagProtectionParamSchema, @@ -23856,7 +21168,7 @@ export type ReposCreateTagProtection = ( t_ReposCreateTagProtectionBodySchema, void >, - respond: ReposCreateTagProtectionResponder, + respond: (typeof reposCreateTagProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23872,12 +21184,9 @@ const reposDeleteTagProtection = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeleteTagProtectionResponder = - (typeof reposDeleteTagProtection)["responder"] & KoaRuntimeResponder - export type ReposDeleteTagProtection = ( params: Params, - respond: ReposDeleteTagProtectionResponder, + respond: (typeof reposDeleteTagProtection)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23891,12 +21200,9 @@ const reposDownloadTarballArchive = b((r) => ({ withStatus: r.withStatus, })) -type ReposDownloadTarballArchiveResponder = - (typeof reposDownloadTarballArchive)["responder"] & KoaRuntimeResponder - export type ReposDownloadTarballArchive = ( params: Params, - respond: ReposDownloadTarballArchiveResponder, + respond: (typeof reposDownloadTarballArchive)["responder"], ctx: RouterContext, ) => Promise | Response<302, void>> @@ -23906,9 +21212,6 @@ const reposListTeams = b((r) => ({ withStatus: r.withStatus, })) -type ReposListTeamsResponder = (typeof reposListTeams)["responder"] & - KoaRuntimeResponder - export type ReposListTeams = ( params: Params< t_ReposListTeamsParamSchema, @@ -23916,7 +21219,7 @@ export type ReposListTeams = ( void, void >, - respond: ReposListTeamsResponder, + respond: (typeof reposListTeams)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23930,9 +21233,6 @@ const reposGetAllTopics = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetAllTopicsResponder = (typeof reposGetAllTopics)["responder"] & - KoaRuntimeResponder - export type ReposGetAllTopics = ( params: Params< t_ReposGetAllTopicsParamSchema, @@ -23940,7 +21240,7 @@ export type ReposGetAllTopics = ( void, void >, - respond: ReposGetAllTopicsResponder, + respond: (typeof reposGetAllTopics)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23955,9 +21255,6 @@ const reposReplaceAllTopics = b((r) => ({ withStatus: r.withStatus, })) -type ReposReplaceAllTopicsResponder = - (typeof reposReplaceAllTopics)["responder"] & KoaRuntimeResponder - export type ReposReplaceAllTopics = ( params: Params< t_ReposReplaceAllTopicsParamSchema, @@ -23965,7 +21262,7 @@ export type ReposReplaceAllTopics = ( t_ReposReplaceAllTopicsBodySchema, void >, - respond: ReposReplaceAllTopicsResponder, + respond: (typeof reposReplaceAllTopics)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -23980,9 +21277,6 @@ const reposGetClones = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetClonesResponder = (typeof reposGetClones)["responder"] & - KoaRuntimeResponder - export type ReposGetClones = ( params: Params< t_ReposGetClonesParamSchema, @@ -23990,7 +21284,7 @@ export type ReposGetClones = ( void, void >, - respond: ReposGetClonesResponder, + respond: (typeof reposGetClones)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24004,12 +21298,9 @@ const reposGetTopPaths = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetTopPathsResponder = (typeof reposGetTopPaths)["responder"] & - KoaRuntimeResponder - export type ReposGetTopPaths = ( params: Params, - respond: ReposGetTopPathsResponder, + respond: (typeof reposGetTopPaths)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24023,12 +21314,9 @@ const reposGetTopReferrers = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetTopReferrersResponder = - (typeof reposGetTopReferrers)["responder"] & KoaRuntimeResponder - export type ReposGetTopReferrers = ( params: Params, - respond: ReposGetTopReferrersResponder, + respond: (typeof reposGetTopReferrers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24042,9 +21330,6 @@ const reposGetViews = b((r) => ({ withStatus: r.withStatus, })) -type ReposGetViewsResponder = (typeof reposGetViews)["responder"] & - KoaRuntimeResponder - export type ReposGetViews = ( params: Params< t_ReposGetViewsParamSchema, @@ -24052,7 +21337,7 @@ export type ReposGetViews = ( void, void >, - respond: ReposGetViewsResponder, + respond: (typeof reposGetViews)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24065,9 +21350,6 @@ const reposTransfer = b((r) => ({ withStatus: r.withStatus, })) -type ReposTransferResponder = (typeof reposTransfer)["responder"] & - KoaRuntimeResponder - export type ReposTransfer = ( params: Params< t_ReposTransferParamSchema, @@ -24075,7 +21357,7 @@ export type ReposTransfer = ( t_ReposTransferBodySchema, void >, - respond: ReposTransferResponder, + respond: (typeof reposTransfer)["responder"], ctx: RouterContext, ) => Promise | Response<202, t_minimal_repository>> @@ -24085,12 +21367,9 @@ const reposCheckVulnerabilityAlerts = b((r) => ({ withStatus: r.withStatus, })) -type ReposCheckVulnerabilityAlertsResponder = - (typeof reposCheckVulnerabilityAlerts)["responder"] & KoaRuntimeResponder - export type ReposCheckVulnerabilityAlerts = ( params: Params, - respond: ReposCheckVulnerabilityAlertsResponder, + respond: (typeof reposCheckVulnerabilityAlerts)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<404, void> @@ -24101,12 +21380,9 @@ const reposEnableVulnerabilityAlerts = b((r) => ({ withStatus: r.withStatus, })) -type ReposEnableVulnerabilityAlertsResponder = - (typeof reposEnableVulnerabilityAlerts)["responder"] & KoaRuntimeResponder - export type ReposEnableVulnerabilityAlerts = ( params: Params, - respond: ReposEnableVulnerabilityAlertsResponder, + respond: (typeof reposEnableVulnerabilityAlerts)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -24115,9 +21391,6 @@ const reposDisableVulnerabilityAlerts = b((r) => ({ withStatus: r.withStatus, })) -type ReposDisableVulnerabilityAlertsResponder = - (typeof reposDisableVulnerabilityAlerts)["responder"] & KoaRuntimeResponder - export type ReposDisableVulnerabilityAlerts = ( params: Params< t_ReposDisableVulnerabilityAlertsParamSchema, @@ -24125,7 +21398,7 @@ export type ReposDisableVulnerabilityAlerts = ( void, void >, - respond: ReposDisableVulnerabilityAlertsResponder, + respond: (typeof reposDisableVulnerabilityAlerts)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -24134,12 +21407,9 @@ const reposDownloadZipballArchive = b((r) => ({ withStatus: r.withStatus, })) -type ReposDownloadZipballArchiveResponder = - (typeof reposDownloadZipballArchive)["responder"] & KoaRuntimeResponder - export type ReposDownloadZipballArchive = ( params: Params, - respond: ReposDownloadZipballArchiveResponder, + respond: (typeof reposDownloadZipballArchive)["responder"], ctx: RouterContext, ) => Promise | Response<302, void>> @@ -24148,9 +21418,6 @@ const reposCreateUsingTemplate = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateUsingTemplateResponder = - (typeof reposCreateUsingTemplate)["responder"] & KoaRuntimeResponder - export type ReposCreateUsingTemplate = ( params: Params< t_ReposCreateUsingTemplateParamSchema, @@ -24158,7 +21425,7 @@ export type ReposCreateUsingTemplate = ( t_ReposCreateUsingTemplateBodySchema, void >, - respond: ReposCreateUsingTemplateResponder, + respond: (typeof reposCreateUsingTemplate)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_full_repository>> @@ -24169,12 +21436,9 @@ const reposListPublic = b((r) => ({ withStatus: r.withStatus, })) -type ReposListPublicResponder = (typeof reposListPublic)["responder"] & - KoaRuntimeResponder - export type ReposListPublic = ( params: Params, - respond: ReposListPublicResponder, + respond: (typeof reposListPublic)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24212,12 +21476,9 @@ const searchCode = b((r) => ({ withStatus: r.withStatus, })) -type SearchCodeResponder = (typeof searchCode)["responder"] & - KoaRuntimeResponder - export type SearchCode = ( params: Params, - respond: SearchCodeResponder, + respond: (typeof searchCode)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24258,12 +21519,9 @@ const searchCommits = b((r) => ({ withStatus: r.withStatus, })) -type SearchCommitsResponder = (typeof searchCommits)["responder"] & - KoaRuntimeResponder - export type SearchCommits = ( params: Params, - respond: SearchCommitsResponder, + respond: (typeof searchCommits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24307,12 +21565,9 @@ const searchIssuesAndPullRequests = b((r) => ({ withStatus: r.withStatus, })) -type SearchIssuesAndPullRequestsResponder = - (typeof searchIssuesAndPullRequests)["responder"] & KoaRuntimeResponder - export type SearchIssuesAndPullRequests = ( params: Params, - respond: SearchIssuesAndPullRequestsResponder, + respond: (typeof searchIssuesAndPullRequests)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24356,12 +21611,9 @@ const searchLabels = b((r) => ({ withStatus: r.withStatus, })) -type SearchLabelsResponder = (typeof searchLabels)["responder"] & - KoaRuntimeResponder - export type SearchLabels = ( params: Params, - respond: SearchLabelsResponder, + respond: (typeof searchLabels)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24407,12 +21659,9 @@ const searchRepos = b((r) => ({ withStatus: r.withStatus, })) -type SearchReposResponder = (typeof searchRepos)["responder"] & - KoaRuntimeResponder - export type SearchRepos = ( params: Params, - respond: SearchReposResponder, + respond: (typeof searchRepos)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24452,12 +21701,9 @@ const searchTopics = b((r) => ({ withStatus: r.withStatus, })) -type SearchTopicsResponder = (typeof searchTopics)["responder"] & - KoaRuntimeResponder - export type SearchTopics = ( params: Params, - respond: SearchTopicsResponder, + respond: (typeof searchTopics)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24500,12 +21746,9 @@ const searchUsers = b((r) => ({ withStatus: r.withStatus, })) -type SearchUsersResponder = (typeof searchUsers)["responder"] & - KoaRuntimeResponder - export type SearchUsers = ( params: Params, - respond: SearchUsersResponder, + respond: (typeof searchUsers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24535,12 +21778,9 @@ const teamsGetLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetLegacyResponder = (typeof teamsGetLegacy)["responder"] & - KoaRuntimeResponder - export type TeamsGetLegacy = ( params: Params, - respond: TeamsGetLegacyResponder, + respond: (typeof teamsGetLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24557,9 +21797,6 @@ const teamsUpdateLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsUpdateLegacyResponder = (typeof teamsUpdateLegacy)["responder"] & - KoaRuntimeResponder - export type TeamsUpdateLegacy = ( params: Params< t_TeamsUpdateLegacyParamSchema, @@ -24567,7 +21804,7 @@ export type TeamsUpdateLegacy = ( t_TeamsUpdateLegacyBodySchema, void >, - respond: TeamsUpdateLegacyResponder, + respond: (typeof teamsUpdateLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24585,12 +21822,9 @@ const teamsDeleteLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsDeleteLegacyResponder = (typeof teamsDeleteLegacy)["responder"] & - KoaRuntimeResponder - export type TeamsDeleteLegacy = ( params: Params, - respond: TeamsDeleteLegacyResponder, + respond: (typeof teamsDeleteLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24604,9 +21838,6 @@ const teamsListDiscussionsLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListDiscussionsLegacyResponder = - (typeof teamsListDiscussionsLegacy)["responder"] & KoaRuntimeResponder - export type TeamsListDiscussionsLegacy = ( params: Params< t_TeamsListDiscussionsLegacyParamSchema, @@ -24614,7 +21845,7 @@ export type TeamsListDiscussionsLegacy = ( void, void >, - respond: TeamsListDiscussionsLegacyResponder, + respond: (typeof teamsListDiscussionsLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team_discussion[]>> @@ -24623,9 +21854,6 @@ const teamsCreateDiscussionLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCreateDiscussionLegacyResponder = - (typeof teamsCreateDiscussionLegacy)["responder"] & KoaRuntimeResponder - export type TeamsCreateDiscussionLegacy = ( params: Params< t_TeamsCreateDiscussionLegacyParamSchema, @@ -24633,7 +21861,7 @@ export type TeamsCreateDiscussionLegacy = ( t_TeamsCreateDiscussionLegacyBodySchema, void >, - respond: TeamsCreateDiscussionLegacyResponder, + respond: (typeof teamsCreateDiscussionLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_team_discussion>> @@ -24642,12 +21870,9 @@ const teamsGetDiscussionLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetDiscussionLegacyResponder = - (typeof teamsGetDiscussionLegacy)["responder"] & KoaRuntimeResponder - export type TeamsGetDiscussionLegacy = ( params: Params, - respond: TeamsGetDiscussionLegacyResponder, + respond: (typeof teamsGetDiscussionLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> @@ -24656,9 +21881,6 @@ const teamsUpdateDiscussionLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsUpdateDiscussionLegacyResponder = - (typeof teamsUpdateDiscussionLegacy)["responder"] & KoaRuntimeResponder - export type TeamsUpdateDiscussionLegacy = ( params: Params< t_TeamsUpdateDiscussionLegacyParamSchema, @@ -24666,7 +21888,7 @@ export type TeamsUpdateDiscussionLegacy = ( t_TeamsUpdateDiscussionLegacyBodySchema | undefined, void >, - respond: TeamsUpdateDiscussionLegacyResponder, + respond: (typeof teamsUpdateDiscussionLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_team_discussion>> @@ -24675,12 +21897,9 @@ const teamsDeleteDiscussionLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsDeleteDiscussionLegacyResponder = - (typeof teamsDeleteDiscussionLegacy)["responder"] & KoaRuntimeResponder - export type TeamsDeleteDiscussionLegacy = ( params: Params, - respond: TeamsDeleteDiscussionLegacyResponder, + respond: (typeof teamsDeleteDiscussionLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -24691,9 +21910,6 @@ const teamsListDiscussionCommentsLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListDiscussionCommentsLegacyResponder = - (typeof teamsListDiscussionCommentsLegacy)["responder"] & KoaRuntimeResponder - export type TeamsListDiscussionCommentsLegacy = ( params: Params< t_TeamsListDiscussionCommentsLegacyParamSchema, @@ -24701,7 +21917,7 @@ export type TeamsListDiscussionCommentsLegacy = ( void, void >, - respond: TeamsListDiscussionCommentsLegacyResponder, + respond: (typeof teamsListDiscussionCommentsLegacy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_team_discussion_comment[]> @@ -24712,9 +21928,6 @@ const teamsCreateDiscussionCommentLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCreateDiscussionCommentLegacyResponder = - (typeof teamsCreateDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder - export type TeamsCreateDiscussionCommentLegacy = ( params: Params< t_TeamsCreateDiscussionCommentLegacyParamSchema, @@ -24722,7 +21935,7 @@ export type TeamsCreateDiscussionCommentLegacy = ( t_TeamsCreateDiscussionCommentLegacyBodySchema, void >, - respond: TeamsCreateDiscussionCommentLegacyResponder, + respond: (typeof teamsCreateDiscussionCommentLegacy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<201, t_team_discussion_comment> @@ -24733,9 +21946,6 @@ const teamsGetDiscussionCommentLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetDiscussionCommentLegacyResponder = - (typeof teamsGetDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder - export type TeamsGetDiscussionCommentLegacy = ( params: Params< t_TeamsGetDiscussionCommentLegacyParamSchema, @@ -24743,7 +21953,7 @@ export type TeamsGetDiscussionCommentLegacy = ( void, void >, - respond: TeamsGetDiscussionCommentLegacyResponder, + respond: (typeof teamsGetDiscussionCommentLegacy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_team_discussion_comment> @@ -24754,9 +21964,6 @@ const teamsUpdateDiscussionCommentLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsUpdateDiscussionCommentLegacyResponder = - (typeof teamsUpdateDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder - export type TeamsUpdateDiscussionCommentLegacy = ( params: Params< t_TeamsUpdateDiscussionCommentLegacyParamSchema, @@ -24764,7 +21971,7 @@ export type TeamsUpdateDiscussionCommentLegacy = ( t_TeamsUpdateDiscussionCommentLegacyBodySchema, void >, - respond: TeamsUpdateDiscussionCommentLegacyResponder, + respond: (typeof teamsUpdateDiscussionCommentLegacy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_team_discussion_comment> @@ -24775,9 +21982,6 @@ const teamsDeleteDiscussionCommentLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsDeleteDiscussionCommentLegacyResponder = - (typeof teamsDeleteDiscussionCommentLegacy)["responder"] & KoaRuntimeResponder - export type TeamsDeleteDiscussionCommentLegacy = ( params: Params< t_TeamsDeleteDiscussionCommentLegacyParamSchema, @@ -24785,7 +21989,7 @@ export type TeamsDeleteDiscussionCommentLegacy = ( void, void >, - respond: TeamsDeleteDiscussionCommentLegacyResponder, + respond: (typeof teamsDeleteDiscussionCommentLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -24794,10 +21998,6 @@ const reactionsListForTeamDiscussionCommentLegacy = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForTeamDiscussionCommentLegacyResponder = - (typeof reactionsListForTeamDiscussionCommentLegacy)["responder"] & - KoaRuntimeResponder - export type ReactionsListForTeamDiscussionCommentLegacy = ( params: Params< t_ReactionsListForTeamDiscussionCommentLegacyParamSchema, @@ -24805,7 +22005,7 @@ export type ReactionsListForTeamDiscussionCommentLegacy = ( void, void >, - respond: ReactionsListForTeamDiscussionCommentLegacyResponder, + respond: (typeof reactionsListForTeamDiscussionCommentLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> @@ -24814,10 +22014,6 @@ const reactionsCreateForTeamDiscussionCommentLegacy = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForTeamDiscussionCommentLegacyResponder = - (typeof reactionsCreateForTeamDiscussionCommentLegacy)["responder"] & - KoaRuntimeResponder - export type ReactionsCreateForTeamDiscussionCommentLegacy = ( params: Params< t_ReactionsCreateForTeamDiscussionCommentLegacyParamSchema, @@ -24825,7 +22021,7 @@ export type ReactionsCreateForTeamDiscussionCommentLegacy = ( t_ReactionsCreateForTeamDiscussionCommentLegacyBodySchema, void >, - respond: ReactionsCreateForTeamDiscussionCommentLegacyResponder, + respond: (typeof reactionsCreateForTeamDiscussionCommentLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_reaction>> @@ -24834,10 +22030,6 @@ const reactionsListForTeamDiscussionLegacy = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsListForTeamDiscussionLegacyResponder = - (typeof reactionsListForTeamDiscussionLegacy)["responder"] & - KoaRuntimeResponder - export type ReactionsListForTeamDiscussionLegacy = ( params: Params< t_ReactionsListForTeamDiscussionLegacyParamSchema, @@ -24845,7 +22037,7 @@ export type ReactionsListForTeamDiscussionLegacy = ( void, void >, - respond: ReactionsListForTeamDiscussionLegacyResponder, + respond: (typeof reactionsListForTeamDiscussionLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_reaction[]>> @@ -24854,10 +22046,6 @@ const reactionsCreateForTeamDiscussionLegacy = b((r) => ({ withStatus: r.withStatus, })) -type ReactionsCreateForTeamDiscussionLegacyResponder = - (typeof reactionsCreateForTeamDiscussionLegacy)["responder"] & - KoaRuntimeResponder - export type ReactionsCreateForTeamDiscussionLegacy = ( params: Params< t_ReactionsCreateForTeamDiscussionLegacyParamSchema, @@ -24865,7 +22053,7 @@ export type ReactionsCreateForTeamDiscussionLegacy = ( t_ReactionsCreateForTeamDiscussionLegacyBodySchema, void >, - respond: ReactionsCreateForTeamDiscussionLegacyResponder, + respond: (typeof reactionsCreateForTeamDiscussionLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<201, t_reaction>> @@ -24876,9 +22064,6 @@ const teamsListPendingInvitationsLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListPendingInvitationsLegacyResponder = - (typeof teamsListPendingInvitationsLegacy)["responder"] & KoaRuntimeResponder - export type TeamsListPendingInvitationsLegacy = ( params: Params< t_TeamsListPendingInvitationsLegacyParamSchema, @@ -24886,7 +22071,7 @@ export type TeamsListPendingInvitationsLegacy = ( void, void >, - respond: TeamsListPendingInvitationsLegacyResponder, + respond: (typeof teamsListPendingInvitationsLegacy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_organization_invitation[]> @@ -24898,9 +22083,6 @@ const teamsListMembersLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListMembersLegacyResponder = - (typeof teamsListMembersLegacy)["responder"] & KoaRuntimeResponder - export type TeamsListMembersLegacy = ( params: Params< t_TeamsListMembersLegacyParamSchema, @@ -24908,7 +22090,7 @@ export type TeamsListMembersLegacy = ( void, void >, - respond: TeamsListMembersLegacyResponder, + respond: (typeof teamsListMembersLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24922,12 +22104,9 @@ const teamsGetMemberLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetMemberLegacyResponder = - (typeof teamsGetMemberLegacy)["responder"] & KoaRuntimeResponder - export type TeamsGetMemberLegacy = ( params: Params, - respond: TeamsGetMemberLegacyResponder, + respond: (typeof teamsGetMemberLegacy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<404, void> @@ -24941,12 +22120,9 @@ const teamsAddMemberLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsAddMemberLegacyResponder = - (typeof teamsAddMemberLegacy)["responder"] & KoaRuntimeResponder - export type TeamsAddMemberLegacy = ( params: Params, - respond: TeamsAddMemberLegacyResponder, + respond: (typeof teamsAddMemberLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -24962,12 +22138,9 @@ const teamsRemoveMemberLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsRemoveMemberLegacyResponder = - (typeof teamsRemoveMemberLegacy)["responder"] & KoaRuntimeResponder - export type TeamsRemoveMemberLegacy = ( params: Params, - respond: TeamsRemoveMemberLegacyResponder, + respond: (typeof teamsRemoveMemberLegacy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<404, void> @@ -24979,9 +22152,6 @@ const teamsGetMembershipForUserLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsGetMembershipForUserLegacyResponder = - (typeof teamsGetMembershipForUserLegacy)["responder"] & KoaRuntimeResponder - export type TeamsGetMembershipForUserLegacy = ( params: Params< t_TeamsGetMembershipForUserLegacyParamSchema, @@ -24989,7 +22159,7 @@ export type TeamsGetMembershipForUserLegacy = ( void, void >, - respond: TeamsGetMembershipForUserLegacyResponder, + respond: (typeof teamsGetMembershipForUserLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25005,10 +22175,6 @@ const teamsAddOrUpdateMembershipForUserLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsAddOrUpdateMembershipForUserLegacyResponder = - (typeof teamsAddOrUpdateMembershipForUserLegacy)["responder"] & - KoaRuntimeResponder - export type TeamsAddOrUpdateMembershipForUserLegacy = ( params: Params< t_TeamsAddOrUpdateMembershipForUserLegacyParamSchema, @@ -25016,7 +22182,7 @@ export type TeamsAddOrUpdateMembershipForUserLegacy = ( t_TeamsAddOrUpdateMembershipForUserLegacyBodySchema | undefined, void >, - respond: TeamsAddOrUpdateMembershipForUserLegacyResponder, + respond: (typeof teamsAddOrUpdateMembershipForUserLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25032,9 +22198,6 @@ const teamsRemoveMembershipForUserLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsRemoveMembershipForUserLegacyResponder = - (typeof teamsRemoveMembershipForUserLegacy)["responder"] & KoaRuntimeResponder - export type TeamsRemoveMembershipForUserLegacy = ( params: Params< t_TeamsRemoveMembershipForUserLegacyParamSchema, @@ -25042,7 +22205,7 @@ export type TeamsRemoveMembershipForUserLegacy = ( void, void >, - respond: TeamsRemoveMembershipForUserLegacyResponder, + respond: (typeof teamsRemoveMembershipForUserLegacy)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<403, void> @@ -25054,9 +22217,6 @@ const teamsListProjectsLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListProjectsLegacyResponder = - (typeof teamsListProjectsLegacy)["responder"] & KoaRuntimeResponder - export type TeamsListProjectsLegacy = ( params: Params< t_TeamsListProjectsLegacyParamSchema, @@ -25064,7 +22224,7 @@ export type TeamsListProjectsLegacy = ( void, void >, - respond: TeamsListProjectsLegacyResponder, + respond: (typeof teamsListProjectsLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25078,10 +22238,6 @@ const teamsCheckPermissionsForProjectLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCheckPermissionsForProjectLegacyResponder = - (typeof teamsCheckPermissionsForProjectLegacy)["responder"] & - KoaRuntimeResponder - export type TeamsCheckPermissionsForProjectLegacy = ( params: Params< t_TeamsCheckPermissionsForProjectLegacyParamSchema, @@ -25089,7 +22245,7 @@ export type TeamsCheckPermissionsForProjectLegacy = ( void, void >, - respond: TeamsCheckPermissionsForProjectLegacyResponder, + respond: (typeof teamsCheckPermissionsForProjectLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25113,10 +22269,6 @@ const teamsAddOrUpdateProjectPermissionsLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsAddOrUpdateProjectPermissionsLegacyResponder = - (typeof teamsAddOrUpdateProjectPermissionsLegacy)["responder"] & - KoaRuntimeResponder - export type TeamsAddOrUpdateProjectPermissionsLegacy = ( params: Params< t_TeamsAddOrUpdateProjectPermissionsLegacyParamSchema, @@ -25124,7 +22276,7 @@ export type TeamsAddOrUpdateProjectPermissionsLegacy = ( t_TeamsAddOrUpdateProjectPermissionsLegacyBodySchema | undefined, void >, - respond: TeamsAddOrUpdateProjectPermissionsLegacyResponder, + respond: (typeof teamsAddOrUpdateProjectPermissionsLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25147,12 +22299,9 @@ const teamsRemoveProjectLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsRemoveProjectLegacyResponder = - (typeof teamsRemoveProjectLegacy)["responder"] & KoaRuntimeResponder - export type TeamsRemoveProjectLegacy = ( params: Params, - respond: TeamsRemoveProjectLegacyResponder, + respond: (typeof teamsRemoveProjectLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25167,9 +22316,6 @@ const teamsListReposLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListReposLegacyResponder = - (typeof teamsListReposLegacy)["responder"] & KoaRuntimeResponder - export type TeamsListReposLegacy = ( params: Params< t_TeamsListReposLegacyParamSchema, @@ -25177,7 +22323,7 @@ export type TeamsListReposLegacy = ( void, void >, - respond: TeamsListReposLegacyResponder, + respond: (typeof teamsListReposLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25192,9 +22338,6 @@ const teamsCheckPermissionsForRepoLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsCheckPermissionsForRepoLegacyResponder = - (typeof teamsCheckPermissionsForRepoLegacy)["responder"] & KoaRuntimeResponder - export type TeamsCheckPermissionsForRepoLegacy = ( params: Params< t_TeamsCheckPermissionsForRepoLegacyParamSchema, @@ -25202,7 +22345,7 @@ export type TeamsCheckPermissionsForRepoLegacy = ( void, void >, - respond: TeamsCheckPermissionsForRepoLegacyResponder, + respond: (typeof teamsCheckPermissionsForRepoLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25218,10 +22361,6 @@ const teamsAddOrUpdateRepoPermissionsLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsAddOrUpdateRepoPermissionsLegacyResponder = - (typeof teamsAddOrUpdateRepoPermissionsLegacy)["responder"] & - KoaRuntimeResponder - export type TeamsAddOrUpdateRepoPermissionsLegacy = ( params: Params< t_TeamsAddOrUpdateRepoPermissionsLegacyParamSchema, @@ -25229,7 +22368,7 @@ export type TeamsAddOrUpdateRepoPermissionsLegacy = ( t_TeamsAddOrUpdateRepoPermissionsLegacyBodySchema | undefined, void >, - respond: TeamsAddOrUpdateRepoPermissionsLegacyResponder, + respond: (typeof teamsAddOrUpdateRepoPermissionsLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25243,12 +22382,9 @@ const teamsRemoveRepoLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsRemoveRepoLegacyResponder = - (typeof teamsRemoveRepoLegacy)["responder"] & KoaRuntimeResponder - export type TeamsRemoveRepoLegacy = ( params: Params, - respond: TeamsRemoveRepoLegacyResponder, + respond: (typeof teamsRemoveRepoLegacy)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -25260,9 +22396,6 @@ const teamsListChildLegacy = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListChildLegacyResponder = - (typeof teamsListChildLegacy)["responder"] & KoaRuntimeResponder - export type TeamsListChildLegacy = ( params: Params< t_TeamsListChildLegacyParamSchema, @@ -25270,7 +22403,7 @@ export type TeamsListChildLegacy = ( void, void >, - respond: TeamsListChildLegacyResponder, + respond: (typeof teamsListChildLegacy)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25290,12 +22423,9 @@ const usersGetAuthenticated = b((r) => ({ withStatus: r.withStatus, })) -type UsersGetAuthenticatedResponder = - (typeof usersGetAuthenticated)["responder"] & KoaRuntimeResponder - export type UsersGetAuthenticated = ( params: Params, - respond: UsersGetAuthenticatedResponder, + respond: (typeof usersGetAuthenticated)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25315,9 +22445,6 @@ const usersUpdateAuthenticated = b((r) => ({ withStatus: r.withStatus, })) -type UsersUpdateAuthenticatedResponder = - (typeof usersUpdateAuthenticated)["responder"] & KoaRuntimeResponder - export type UsersUpdateAuthenticated = ( params: Params< void, @@ -25325,7 +22452,7 @@ export type UsersUpdateAuthenticated = ( t_UsersUpdateAuthenticatedBodySchema | undefined, void >, - respond: UsersUpdateAuthenticatedResponder, + respond: (typeof usersUpdateAuthenticated)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25346,10 +22473,6 @@ const usersListBlockedByAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListBlockedByAuthenticatedUserResponder = - (typeof usersListBlockedByAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListBlockedByAuthenticatedUser = ( params: Params< void, @@ -25357,7 +22480,7 @@ export type UsersListBlockedByAuthenticatedUser = ( void, void >, - respond: UsersListBlockedByAuthenticatedUserResponder, + respond: (typeof usersListBlockedByAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25377,12 +22500,9 @@ const usersCheckBlocked = b((r) => ({ withStatus: r.withStatus, })) -type UsersCheckBlockedResponder = (typeof usersCheckBlocked)["responder"] & - KoaRuntimeResponder - export type UsersCheckBlocked = ( params: Params, - respond: UsersCheckBlockedResponder, + respond: (typeof usersCheckBlocked)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25403,12 +22523,9 @@ const usersBlock = b((r) => ({ withStatus: r.withStatus, })) -type UsersBlockResponder = (typeof usersBlock)["responder"] & - KoaRuntimeResponder - export type UsersBlock = ( params: Params, - respond: UsersBlockResponder, + respond: (typeof usersBlock)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25429,12 +22546,9 @@ const usersUnblock = b((r) => ({ withStatus: r.withStatus, })) -type UsersUnblockResponder = (typeof usersUnblock)["responder"] & - KoaRuntimeResponder - export type UsersUnblock = ( params: Params, - respond: UsersUnblockResponder, + respond: (typeof usersUnblock)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25463,9 +22577,6 @@ const codespacesListForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListForAuthenticatedUserResponder = - (typeof codespacesListForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type CodespacesListForAuthenticatedUser = ( params: Params< void, @@ -25473,7 +22584,7 @@ export type CodespacesListForAuthenticatedUser = ( void, void >, - respond: CodespacesListForAuthenticatedUserResponder, + respond: (typeof codespacesListForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25511,10 +22622,6 @@ const codespacesCreateForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesCreateForAuthenticatedUserResponder = - (typeof codespacesCreateForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesCreateForAuthenticatedUser = ( params: Params< void, @@ -25522,7 +22629,7 @@ export type CodespacesCreateForAuthenticatedUser = ( t_CodespacesCreateForAuthenticatedUserBodySchema, void >, - respond: CodespacesCreateForAuthenticatedUserResponder, + respond: (typeof codespacesCreateForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25554,10 +22661,6 @@ const codespacesListSecretsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListSecretsForAuthenticatedUserResponder = - (typeof codespacesListSecretsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesListSecretsForAuthenticatedUser = ( params: Params< void, @@ -25565,7 +22668,7 @@ export type CodespacesListSecretsForAuthenticatedUser = ( void, void >, - respond: CodespacesListSecretsForAuthenticatedUserResponder, + respond: (typeof codespacesListSecretsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25585,13 +22688,9 @@ const codespacesGetPublicKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetPublicKeyForAuthenticatedUserResponder = - (typeof codespacesGetPublicKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesGetPublicKeyForAuthenticatedUser = ( params: Params, - respond: CodespacesGetPublicKeyForAuthenticatedUserResponder, + respond: (typeof codespacesGetPublicKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_codespaces_user_public_key> @@ -25602,10 +22701,6 @@ const codespacesGetSecretForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetSecretForAuthenticatedUserResponder = - (typeof codespacesGetSecretForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesGetSecretForAuthenticatedUser = ( params: Params< t_CodespacesGetSecretForAuthenticatedUserParamSchema, @@ -25613,7 +22708,7 @@ export type CodespacesGetSecretForAuthenticatedUser = ( void, void >, - respond: CodespacesGetSecretForAuthenticatedUserResponder, + respond: (typeof codespacesGetSecretForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_codespaces_secret>> @@ -25625,10 +22720,6 @@ const codespacesCreateOrUpdateSecretForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesCreateOrUpdateSecretForAuthenticatedUserResponder = - (typeof codespacesCreateOrUpdateSecretForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesCreateOrUpdateSecretForAuthenticatedUser = ( params: Params< t_CodespacesCreateOrUpdateSecretForAuthenticatedUserParamSchema, @@ -25636,7 +22727,7 @@ export type CodespacesCreateOrUpdateSecretForAuthenticatedUser = ( t_CodespacesCreateOrUpdateSecretForAuthenticatedUserBodySchema, void >, - respond: CodespacesCreateOrUpdateSecretForAuthenticatedUserResponder, + respond: (typeof codespacesCreateOrUpdateSecretForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25651,10 +22742,6 @@ const codespacesDeleteSecretForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesDeleteSecretForAuthenticatedUserResponder = - (typeof codespacesDeleteSecretForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesDeleteSecretForAuthenticatedUser = ( params: Params< t_CodespacesDeleteSecretForAuthenticatedUserParamSchema, @@ -25662,7 +22749,7 @@ export type CodespacesDeleteSecretForAuthenticatedUser = ( void, void >, - respond: CodespacesDeleteSecretForAuthenticatedUserResponder, + respond: (typeof codespacesDeleteSecretForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -25683,10 +22770,6 @@ const codespacesListRepositoriesForSecretForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesListRepositoriesForSecretForAuthenticatedUserResponder = - (typeof codespacesListRepositoriesForSecretForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesListRepositoriesForSecretForAuthenticatedUser = ( params: Params< t_CodespacesListRepositoriesForSecretForAuthenticatedUserParamSchema, @@ -25694,7 +22777,7 @@ export type CodespacesListRepositoriesForSecretForAuthenticatedUser = ( void, void >, - respond: CodespacesListRepositoriesForSecretForAuthenticatedUserResponder, + respond: (typeof codespacesListRepositoriesForSecretForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25720,10 +22803,6 @@ const codespacesSetRepositoriesForSecretForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesSetRepositoriesForSecretForAuthenticatedUserResponder = - (typeof codespacesSetRepositoriesForSecretForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesSetRepositoriesForSecretForAuthenticatedUser = ( params: Params< t_CodespacesSetRepositoriesForSecretForAuthenticatedUserParamSchema, @@ -25731,7 +22810,7 @@ export type CodespacesSetRepositoriesForSecretForAuthenticatedUser = ( t_CodespacesSetRepositoriesForSecretForAuthenticatedUserBodySchema, void >, - respond: CodespacesSetRepositoriesForSecretForAuthenticatedUserResponder, + respond: (typeof codespacesSetRepositoriesForSecretForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25751,10 +22830,6 @@ const codespacesAddRepositoryForSecretForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesAddRepositoryForSecretForAuthenticatedUserResponder = - (typeof codespacesAddRepositoryForSecretForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesAddRepositoryForSecretForAuthenticatedUser = ( params: Params< t_CodespacesAddRepositoryForSecretForAuthenticatedUserParamSchema, @@ -25762,7 +22837,7 @@ export type CodespacesAddRepositoryForSecretForAuthenticatedUser = ( void, void >, - respond: CodespacesAddRepositoryForSecretForAuthenticatedUserResponder, + respond: (typeof codespacesAddRepositoryForSecretForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25782,10 +22857,6 @@ const codespacesRemoveRepositoryForSecretForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesRemoveRepositoryForSecretForAuthenticatedUserResponder = - (typeof codespacesRemoveRepositoryForSecretForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesRemoveRepositoryForSecretForAuthenticatedUser = ( params: Params< t_CodespacesRemoveRepositoryForSecretForAuthenticatedUserParamSchema, @@ -25793,7 +22864,7 @@ export type CodespacesRemoveRepositoryForSecretForAuthenticatedUser = ( void, void >, - respond: CodespacesRemoveRepositoryForSecretForAuthenticatedUserResponder, + respond: (typeof codespacesRemoveRepositoryForSecretForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25814,9 +22885,6 @@ const codespacesGetForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetForAuthenticatedUserResponder = - (typeof codespacesGetForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type CodespacesGetForAuthenticatedUser = ( params: Params< t_CodespacesGetForAuthenticatedUserParamSchema, @@ -25824,7 +22892,7 @@ export type CodespacesGetForAuthenticatedUser = ( void, void >, - respond: CodespacesGetForAuthenticatedUserResponder, + respond: (typeof codespacesGetForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25844,10 +22912,6 @@ const codespacesUpdateForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesUpdateForAuthenticatedUserResponder = - (typeof codespacesUpdateForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesUpdateForAuthenticatedUser = ( params: Params< t_CodespacesUpdateForAuthenticatedUserParamSchema, @@ -25855,7 +22919,7 @@ export type CodespacesUpdateForAuthenticatedUser = ( t_CodespacesUpdateForAuthenticatedUserBodySchema | undefined, void >, - respond: CodespacesUpdateForAuthenticatedUserResponder, + respond: (typeof codespacesUpdateForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25877,10 +22941,6 @@ const codespacesDeleteForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesDeleteForAuthenticatedUserResponder = - (typeof codespacesDeleteForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesDeleteForAuthenticatedUser = ( params: Params< t_CodespacesDeleteForAuthenticatedUserParamSchema, @@ -25888,7 +22948,7 @@ export type CodespacesDeleteForAuthenticatedUser = ( void, void >, - respond: CodespacesDeleteForAuthenticatedUserResponder, + respond: (typeof codespacesDeleteForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25915,10 +22975,6 @@ const codespacesExportForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesExportForAuthenticatedUserResponder = - (typeof codespacesExportForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesExportForAuthenticatedUser = ( params: Params< t_CodespacesExportForAuthenticatedUserParamSchema, @@ -25926,7 +22982,7 @@ export type CodespacesExportForAuthenticatedUser = ( void, void >, - respond: CodespacesExportForAuthenticatedUserResponder, + respond: (typeof codespacesExportForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25944,10 +23000,6 @@ const codespacesGetExportDetailsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesGetExportDetailsForAuthenticatedUserResponder = - (typeof codespacesGetExportDetailsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesGetExportDetailsForAuthenticatedUser = ( params: Params< t_CodespacesGetExportDetailsForAuthenticatedUserParamSchema, @@ -25955,7 +23007,7 @@ export type CodespacesGetExportDetailsForAuthenticatedUser = ( void, void >, - respond: CodespacesGetExportDetailsForAuthenticatedUserResponder, + respond: (typeof codespacesGetExportDetailsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -25981,10 +23033,6 @@ const codespacesCodespaceMachinesForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesCodespaceMachinesForAuthenticatedUserResponder = - (typeof codespacesCodespaceMachinesForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesCodespaceMachinesForAuthenticatedUser = ( params: Params< t_CodespacesCodespaceMachinesForAuthenticatedUserParamSchema, @@ -25992,7 +23040,7 @@ export type CodespacesCodespaceMachinesForAuthenticatedUser = ( void, void >, - respond: CodespacesCodespaceMachinesForAuthenticatedUserResponder, + respond: (typeof codespacesCodespaceMachinesForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26021,10 +23069,6 @@ const codespacesPublishForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesPublishForAuthenticatedUserResponder = - (typeof codespacesPublishForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesPublishForAuthenticatedUser = ( params: Params< t_CodespacesPublishForAuthenticatedUserParamSchema, @@ -26032,7 +23076,7 @@ export type CodespacesPublishForAuthenticatedUser = ( t_CodespacesPublishForAuthenticatedUserBodySchema, void >, - respond: CodespacesPublishForAuthenticatedUserResponder, + respond: (typeof codespacesPublishForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26056,10 +23100,6 @@ const codespacesStartForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesStartForAuthenticatedUserResponder = - (typeof codespacesStartForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type CodespacesStartForAuthenticatedUser = ( params: Params< t_CodespacesStartForAuthenticatedUserParamSchema, @@ -26067,7 +23107,7 @@ export type CodespacesStartForAuthenticatedUser = ( void, void >, - respond: CodespacesStartForAuthenticatedUserResponder, + respond: (typeof codespacesStartForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26091,9 +23131,6 @@ const codespacesStopForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type CodespacesStopForAuthenticatedUserResponder = - (typeof codespacesStopForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type CodespacesStopForAuthenticatedUser = ( params: Params< t_CodespacesStopForAuthenticatedUserParamSchema, @@ -26101,7 +23138,7 @@ export type CodespacesStopForAuthenticatedUser = ( void, void >, - respond: CodespacesStopForAuthenticatedUserResponder, + respond: (typeof codespacesStopForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26119,14 +23156,10 @@ const packagesListDockerMigrationConflictingPackagesForAuthenticatedUser = b( }), ) -type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder = - (typeof packagesListDockerMigrationConflictingPackagesForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesListDockerMigrationConflictingPackagesForAuthenticatedUser = ( params: Params, - respond: PackagesListDockerMigrationConflictingPackagesForAuthenticatedUserResponder, + respond: (typeof packagesListDockerMigrationConflictingPackagesForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_package[]>> @@ -26140,10 +23173,6 @@ const usersSetPrimaryEmailVisibilityForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersSetPrimaryEmailVisibilityForAuthenticatedUserResponder = - (typeof usersSetPrimaryEmailVisibilityForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersSetPrimaryEmailVisibilityForAuthenticatedUser = ( params: Params< void, @@ -26151,7 +23180,7 @@ export type UsersSetPrimaryEmailVisibilityForAuthenticatedUser = ( t_UsersSetPrimaryEmailVisibilityForAuthenticatedUserBodySchema, void >, - respond: UsersSetPrimaryEmailVisibilityForAuthenticatedUserResponder, + respond: (typeof usersSetPrimaryEmailVisibilityForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26172,10 +23201,6 @@ const usersListEmailsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListEmailsForAuthenticatedUserResponder = - (typeof usersListEmailsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListEmailsForAuthenticatedUser = ( params: Params< void, @@ -26183,7 +23208,7 @@ export type UsersListEmailsForAuthenticatedUser = ( void, void >, - respond: UsersListEmailsForAuthenticatedUserResponder, + respond: (typeof usersListEmailsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26204,9 +23229,6 @@ const usersAddEmailForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersAddEmailForAuthenticatedUserResponder = - (typeof usersAddEmailForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type UsersAddEmailForAuthenticatedUser = ( params: Params< void, @@ -26214,7 +23236,7 @@ export type UsersAddEmailForAuthenticatedUser = ( t_UsersAddEmailForAuthenticatedUserBodySchema | undefined, void >, - respond: UsersAddEmailForAuthenticatedUserResponder, + respond: (typeof usersAddEmailForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26236,10 +23258,6 @@ const usersDeleteEmailForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersDeleteEmailForAuthenticatedUserResponder = - (typeof usersDeleteEmailForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersDeleteEmailForAuthenticatedUser = ( params: Params< void, @@ -26247,7 +23265,7 @@ export type UsersDeleteEmailForAuthenticatedUser = ( t_UsersDeleteEmailForAuthenticatedUserBodySchema, void >, - respond: UsersDeleteEmailForAuthenticatedUserResponder, + respond: (typeof usersDeleteEmailForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26267,10 +23285,6 @@ const usersListFollowersForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListFollowersForAuthenticatedUserResponder = - (typeof usersListFollowersForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListFollowersForAuthenticatedUser = ( params: Params< void, @@ -26278,7 +23292,7 @@ export type UsersListFollowersForAuthenticatedUser = ( void, void >, - respond: UsersListFollowersForAuthenticatedUserResponder, + respond: (typeof usersListFollowersForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26296,10 +23310,6 @@ const usersListFollowedByAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListFollowedByAuthenticatedUserResponder = - (typeof usersListFollowedByAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListFollowedByAuthenticatedUser = ( params: Params< void, @@ -26307,7 +23317,7 @@ export type UsersListFollowedByAuthenticatedUser = ( void, void >, - respond: UsersListFollowedByAuthenticatedUserResponder, + respond: (typeof usersListFollowedByAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26326,10 +23336,6 @@ const usersCheckPersonIsFollowedByAuthenticated = b((r) => ({ withStatus: r.withStatus, })) -type UsersCheckPersonIsFollowedByAuthenticatedResponder = - (typeof usersCheckPersonIsFollowedByAuthenticated)["responder"] & - KoaRuntimeResponder - export type UsersCheckPersonIsFollowedByAuthenticated = ( params: Params< t_UsersCheckPersonIsFollowedByAuthenticatedParamSchema, @@ -26337,7 +23343,7 @@ export type UsersCheckPersonIsFollowedByAuthenticated = ( void, void >, - respond: UsersCheckPersonIsFollowedByAuthenticatedResponder, + respond: (typeof usersCheckPersonIsFollowedByAuthenticated)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26358,12 +23364,9 @@ const usersFollow = b((r) => ({ withStatus: r.withStatus, })) -type UsersFollowResponder = (typeof usersFollow)["responder"] & - KoaRuntimeResponder - export type UsersFollow = ( params: Params, - respond: UsersFollowResponder, + respond: (typeof usersFollow)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26384,12 +23387,9 @@ const usersUnfollow = b((r) => ({ withStatus: r.withStatus, })) -type UsersUnfollowResponder = (typeof usersUnfollow)["responder"] & - KoaRuntimeResponder - export type UsersUnfollow = ( params: Params, - respond: UsersUnfollowResponder, + respond: (typeof usersUnfollow)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26409,10 +23409,6 @@ const usersListGpgKeysForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListGpgKeysForAuthenticatedUserResponder = - (typeof usersListGpgKeysForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListGpgKeysForAuthenticatedUser = ( params: Params< void, @@ -26420,7 +23416,7 @@ export type UsersListGpgKeysForAuthenticatedUser = ( void, void >, - respond: UsersListGpgKeysForAuthenticatedUserResponder, + respond: (typeof usersListGpgKeysForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26441,10 +23437,6 @@ const usersCreateGpgKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersCreateGpgKeyForAuthenticatedUserResponder = - (typeof usersCreateGpgKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersCreateGpgKeyForAuthenticatedUser = ( params: Params< void, @@ -26452,7 +23444,7 @@ export type UsersCreateGpgKeyForAuthenticatedUser = ( t_UsersCreateGpgKeyForAuthenticatedUserBodySchema, void >, - respond: UsersCreateGpgKeyForAuthenticatedUserResponder, + respond: (typeof usersCreateGpgKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26473,9 +23465,6 @@ const usersGetGpgKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersGetGpgKeyForAuthenticatedUserResponder = - (typeof usersGetGpgKeyForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type UsersGetGpgKeyForAuthenticatedUser = ( params: Params< t_UsersGetGpgKeyForAuthenticatedUserParamSchema, @@ -26483,7 +23472,7 @@ export type UsersGetGpgKeyForAuthenticatedUser = ( void, void >, - respond: UsersGetGpgKeyForAuthenticatedUserResponder, + respond: (typeof usersGetGpgKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26504,10 +23493,6 @@ const usersDeleteGpgKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersDeleteGpgKeyForAuthenticatedUserResponder = - (typeof usersDeleteGpgKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersDeleteGpgKeyForAuthenticatedUser = ( params: Params< t_UsersDeleteGpgKeyForAuthenticatedUserParamSchema, @@ -26515,7 +23500,7 @@ export type UsersDeleteGpgKeyForAuthenticatedUser = ( void, void >, - respond: UsersDeleteGpgKeyForAuthenticatedUserResponder, + respond: (typeof usersDeleteGpgKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26543,10 +23528,6 @@ const appsListInstallationsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type AppsListInstallationsForAuthenticatedUserResponder = - (typeof appsListInstallationsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type AppsListInstallationsForAuthenticatedUser = ( params: Params< void, @@ -26554,7 +23535,7 @@ export type AppsListInstallationsForAuthenticatedUser = ( void, void >, - respond: AppsListInstallationsForAuthenticatedUserResponder, + respond: (typeof appsListInstallationsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26588,10 +23569,6 @@ const appsListInstallationReposForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type AppsListInstallationReposForAuthenticatedUserResponder = - (typeof appsListInstallationReposForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type AppsListInstallationReposForAuthenticatedUser = ( params: Params< t_AppsListInstallationReposForAuthenticatedUserParamSchema, @@ -26599,7 +23576,7 @@ export type AppsListInstallationReposForAuthenticatedUser = ( void, void >, - respond: AppsListInstallationReposForAuthenticatedUserResponder, + respond: (typeof appsListInstallationReposForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26624,10 +23601,6 @@ const appsAddRepoToInstallationForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type AppsAddRepoToInstallationForAuthenticatedUserResponder = - (typeof appsAddRepoToInstallationForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type AppsAddRepoToInstallationForAuthenticatedUser = ( params: Params< t_AppsAddRepoToInstallationForAuthenticatedUserParamSchema, @@ -26635,7 +23608,7 @@ export type AppsAddRepoToInstallationForAuthenticatedUser = ( void, void >, - respond: AppsAddRepoToInstallationForAuthenticatedUserResponder, + respond: (typeof appsAddRepoToInstallationForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26654,10 +23627,6 @@ const appsRemoveRepoFromInstallationForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type AppsRemoveRepoFromInstallationForAuthenticatedUserResponder = - (typeof appsRemoveRepoFromInstallationForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type AppsRemoveRepoFromInstallationForAuthenticatedUser = ( params: Params< t_AppsRemoveRepoFromInstallationForAuthenticatedUserParamSchema, @@ -26665,7 +23634,7 @@ export type AppsRemoveRepoFromInstallationForAuthenticatedUser = ( void, void >, - respond: AppsRemoveRepoFromInstallationForAuthenticatedUserResponder, + respond: (typeof appsRemoveRepoFromInstallationForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26684,13 +23653,9 @@ const interactionsGetRestrictionsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsGetRestrictionsForAuthenticatedUserResponder = - (typeof interactionsGetRestrictionsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type InteractionsGetRestrictionsForAuthenticatedUser = ( params: Params, - respond: InteractionsGetRestrictionsForAuthenticatedUserResponder, + respond: (typeof interactionsGetRestrictionsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26706,10 +23671,6 @@ const interactionsSetRestrictionsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsSetRestrictionsForAuthenticatedUserResponder = - (typeof interactionsSetRestrictionsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type InteractionsSetRestrictionsForAuthenticatedUser = ( params: Params< void, @@ -26717,7 +23678,7 @@ export type InteractionsSetRestrictionsForAuthenticatedUser = ( t_InteractionsSetRestrictionsForAuthenticatedUserBodySchema, void >, - respond: InteractionsSetRestrictionsForAuthenticatedUserResponder, + respond: (typeof interactionsSetRestrictionsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26730,13 +23691,9 @@ const interactionsRemoveRestrictionsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type InteractionsRemoveRestrictionsForAuthenticatedUserResponder = - (typeof interactionsRemoveRestrictionsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type InteractionsRemoveRestrictionsForAuthenticatedUser = ( params: Params, - respond: InteractionsRemoveRestrictionsForAuthenticatedUserResponder, + respond: (typeof interactionsRemoveRestrictionsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -26747,12 +23704,9 @@ const issuesListForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type IssuesListForAuthenticatedUserResponder = - (typeof issuesListForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type IssuesListForAuthenticatedUser = ( params: Params, - respond: IssuesListForAuthenticatedUserResponder, + respond: (typeof issuesListForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26770,10 +23724,6 @@ const usersListPublicSshKeysForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListPublicSshKeysForAuthenticatedUserResponder = - (typeof usersListPublicSshKeysForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListPublicSshKeysForAuthenticatedUser = ( params: Params< void, @@ -26781,7 +23731,7 @@ export type UsersListPublicSshKeysForAuthenticatedUser = ( void, void >, - respond: UsersListPublicSshKeysForAuthenticatedUserResponder, + respond: (typeof usersListPublicSshKeysForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26802,10 +23752,6 @@ const usersCreatePublicSshKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersCreatePublicSshKeyForAuthenticatedUserResponder = - (typeof usersCreatePublicSshKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersCreatePublicSshKeyForAuthenticatedUser = ( params: Params< void, @@ -26813,7 +23759,7 @@ export type UsersCreatePublicSshKeyForAuthenticatedUser = ( t_UsersCreatePublicSshKeyForAuthenticatedUserBodySchema, void >, - respond: UsersCreatePublicSshKeyForAuthenticatedUserResponder, + respond: (typeof usersCreatePublicSshKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26834,10 +23780,6 @@ const usersGetPublicSshKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersGetPublicSshKeyForAuthenticatedUserResponder = - (typeof usersGetPublicSshKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersGetPublicSshKeyForAuthenticatedUser = ( params: Params< t_UsersGetPublicSshKeyForAuthenticatedUserParamSchema, @@ -26845,7 +23787,7 @@ export type UsersGetPublicSshKeyForAuthenticatedUser = ( void, void >, - respond: UsersGetPublicSshKeyForAuthenticatedUserResponder, + respond: (typeof usersGetPublicSshKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26865,10 +23807,6 @@ const usersDeletePublicSshKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersDeletePublicSshKeyForAuthenticatedUserResponder = - (typeof usersDeletePublicSshKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersDeletePublicSshKeyForAuthenticatedUser = ( params: Params< t_UsersDeletePublicSshKeyForAuthenticatedUserParamSchema, @@ -26876,7 +23814,7 @@ export type UsersDeletePublicSshKeyForAuthenticatedUser = ( void, void >, - respond: UsersDeletePublicSshKeyForAuthenticatedUserResponder, + respond: (typeof usersDeletePublicSshKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26897,10 +23835,6 @@ const appsListSubscriptionsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type AppsListSubscriptionsForAuthenticatedUserResponder = - (typeof appsListSubscriptionsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type AppsListSubscriptionsForAuthenticatedUser = ( params: Params< void, @@ -26908,7 +23842,7 @@ export type AppsListSubscriptionsForAuthenticatedUser = ( void, void >, - respond: AppsListSubscriptionsForAuthenticatedUserResponder, + respond: (typeof appsListSubscriptionsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26927,10 +23861,6 @@ const appsListSubscriptionsForAuthenticatedUserStubbed = b((r) => ({ withStatus: r.withStatus, })) -type AppsListSubscriptionsForAuthenticatedUserStubbedResponder = - (typeof appsListSubscriptionsForAuthenticatedUserStubbed)["responder"] & - KoaRuntimeResponder - export type AppsListSubscriptionsForAuthenticatedUserStubbed = ( params: Params< void, @@ -26938,7 +23868,7 @@ export type AppsListSubscriptionsForAuthenticatedUserStubbed = ( void, void >, - respond: AppsListSubscriptionsForAuthenticatedUserStubbedResponder, + respond: (typeof appsListSubscriptionsForAuthenticatedUserStubbed)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26956,10 +23886,6 @@ const orgsListMembershipsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListMembershipsForAuthenticatedUserResponder = - (typeof orgsListMembershipsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type OrgsListMembershipsForAuthenticatedUser = ( params: Params< void, @@ -26967,7 +23893,7 @@ export type OrgsListMembershipsForAuthenticatedUser = ( void, void >, - respond: OrgsListMembershipsForAuthenticatedUserResponder, + respond: (typeof orgsListMembershipsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -26985,10 +23911,6 @@ const orgsGetMembershipForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsGetMembershipForAuthenticatedUserResponder = - (typeof orgsGetMembershipForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type OrgsGetMembershipForAuthenticatedUser = ( params: Params< t_OrgsGetMembershipForAuthenticatedUserParamSchema, @@ -26996,7 +23918,7 @@ export type OrgsGetMembershipForAuthenticatedUser = ( void, void >, - respond: OrgsGetMembershipForAuthenticatedUserResponder, + respond: (typeof orgsGetMembershipForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27013,10 +23935,6 @@ const orgsUpdateMembershipForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsUpdateMembershipForAuthenticatedUserResponder = - (typeof orgsUpdateMembershipForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type OrgsUpdateMembershipForAuthenticatedUser = ( params: Params< t_OrgsUpdateMembershipForAuthenticatedUserParamSchema, @@ -27024,7 +23942,7 @@ export type OrgsUpdateMembershipForAuthenticatedUser = ( t_OrgsUpdateMembershipForAuthenticatedUserBodySchema, void >, - respond: OrgsUpdateMembershipForAuthenticatedUserResponder, + respond: (typeof orgsUpdateMembershipForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27042,9 +23960,6 @@ const migrationsListForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsListForAuthenticatedUserResponder = - (typeof migrationsListForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type MigrationsListForAuthenticatedUser = ( params: Params< void, @@ -27052,7 +23967,7 @@ export type MigrationsListForAuthenticatedUser = ( void, void >, - respond: MigrationsListForAuthenticatedUserResponder, + respond: (typeof migrationsListForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27071,10 +23986,6 @@ const migrationsStartForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsStartForAuthenticatedUserResponder = - (typeof migrationsStartForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type MigrationsStartForAuthenticatedUser = ( params: Params< void, @@ -27082,7 +23993,7 @@ export type MigrationsStartForAuthenticatedUser = ( t_MigrationsStartForAuthenticatedUserBodySchema, void >, - respond: MigrationsStartForAuthenticatedUserResponder, + respond: (typeof migrationsStartForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27102,10 +24013,6 @@ const migrationsGetStatusForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsGetStatusForAuthenticatedUserResponder = - (typeof migrationsGetStatusForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type MigrationsGetStatusForAuthenticatedUser = ( params: Params< t_MigrationsGetStatusForAuthenticatedUserParamSchema, @@ -27113,7 +24020,7 @@ export type MigrationsGetStatusForAuthenticatedUser = ( void, void >, - respond: MigrationsGetStatusForAuthenticatedUserResponder, + respond: (typeof migrationsGetStatusForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27132,10 +24039,6 @@ const migrationsGetArchiveForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsGetArchiveForAuthenticatedUserResponder = - (typeof migrationsGetArchiveForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type MigrationsGetArchiveForAuthenticatedUser = ( params: Params< t_MigrationsGetArchiveForAuthenticatedUserParamSchema, @@ -27143,7 +24046,7 @@ export type MigrationsGetArchiveForAuthenticatedUser = ( void, void >, - respond: MigrationsGetArchiveForAuthenticatedUserResponder, + respond: (typeof migrationsGetArchiveForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27162,10 +24065,6 @@ const migrationsDeleteArchiveForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsDeleteArchiveForAuthenticatedUserResponder = - (typeof migrationsDeleteArchiveForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type MigrationsDeleteArchiveForAuthenticatedUser = ( params: Params< t_MigrationsDeleteArchiveForAuthenticatedUserParamSchema, @@ -27173,7 +24072,7 @@ export type MigrationsDeleteArchiveForAuthenticatedUser = ( void, void >, - respond: MigrationsDeleteArchiveForAuthenticatedUserResponder, + respond: (typeof migrationsDeleteArchiveForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27193,10 +24092,6 @@ const migrationsUnlockRepoForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsUnlockRepoForAuthenticatedUserResponder = - (typeof migrationsUnlockRepoForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type MigrationsUnlockRepoForAuthenticatedUser = ( params: Params< t_MigrationsUnlockRepoForAuthenticatedUserParamSchema, @@ -27204,7 +24099,7 @@ export type MigrationsUnlockRepoForAuthenticatedUser = ( void, void >, - respond: MigrationsUnlockRepoForAuthenticatedUserResponder, + respond: (typeof migrationsUnlockRepoForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27221,10 +24116,6 @@ const migrationsListReposForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type MigrationsListReposForAuthenticatedUserResponder = - (typeof migrationsListReposForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type MigrationsListReposForAuthenticatedUser = ( params: Params< t_MigrationsListReposForAuthenticatedUserParamSchema, @@ -27232,7 +24123,7 @@ export type MigrationsListReposForAuthenticatedUser = ( void, void >, - respond: MigrationsListReposForAuthenticatedUserResponder, + respond: (typeof migrationsListReposForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27248,12 +24139,9 @@ const orgsListForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListForAuthenticatedUserResponder = - (typeof orgsListForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type OrgsListForAuthenticatedUser = ( params: Params, - respond: OrgsListForAuthenticatedUserResponder, + respond: (typeof orgsListForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27269,10 +24157,6 @@ const packagesListPackagesForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesListPackagesForAuthenticatedUserResponder = - (typeof packagesListPackagesForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesListPackagesForAuthenticatedUser = ( params: Params< void, @@ -27280,7 +24164,7 @@ export type PackagesListPackagesForAuthenticatedUser = ( void, void >, - respond: PackagesListPackagesForAuthenticatedUserResponder, + respond: (typeof packagesListPackagesForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_package[]> | Response<400, void> @@ -27291,10 +24175,6 @@ const packagesGetPackageForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesGetPackageForAuthenticatedUserResponder = - (typeof packagesGetPackageForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesGetPackageForAuthenticatedUser = ( params: Params< t_PackagesGetPackageForAuthenticatedUserParamSchema, @@ -27302,7 +24182,7 @@ export type PackagesGetPackageForAuthenticatedUser = ( void, void >, - respond: PackagesGetPackageForAuthenticatedUserResponder, + respond: (typeof packagesGetPackageForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_package>> @@ -27314,10 +24194,6 @@ const packagesDeletePackageForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesDeletePackageForAuthenticatedUserResponder = - (typeof packagesDeletePackageForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesDeletePackageForAuthenticatedUser = ( params: Params< t_PackagesDeletePackageForAuthenticatedUserParamSchema, @@ -27325,7 +24201,7 @@ export type PackagesDeletePackageForAuthenticatedUser = ( void, void >, - respond: PackagesDeletePackageForAuthenticatedUserResponder, + respond: (typeof packagesDeletePackageForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27343,10 +24219,6 @@ const packagesRestorePackageForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesRestorePackageForAuthenticatedUserResponder = - (typeof packagesRestorePackageForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesRestorePackageForAuthenticatedUser = ( params: Params< t_PackagesRestorePackageForAuthenticatedUserParamSchema, @@ -27354,7 +24226,7 @@ export type PackagesRestorePackageForAuthenticatedUser = ( void, void >, - respond: PackagesRestorePackageForAuthenticatedUserResponder, + respond: (typeof packagesRestorePackageForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27374,10 +24246,6 @@ const packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser = b( }), ) -type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder = - (typeof packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser = ( params: Params< t_PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserParamSchema, @@ -27385,7 +24253,7 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser = ( void, void >, - respond: PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserResponder, + respond: (typeof packagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27400,10 +24268,6 @@ const packagesGetPackageVersionForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesGetPackageVersionForAuthenticatedUserResponder = - (typeof packagesGetPackageVersionForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesGetPackageVersionForAuthenticatedUser = ( params: Params< t_PackagesGetPackageVersionForAuthenticatedUserParamSchema, @@ -27411,7 +24275,7 @@ export type PackagesGetPackageVersionForAuthenticatedUser = ( void, void >, - respond: PackagesGetPackageVersionForAuthenticatedUserResponder, + respond: (typeof packagesGetPackageVersionForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_package_version>> @@ -27423,10 +24287,6 @@ const packagesDeletePackageVersionForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesDeletePackageVersionForAuthenticatedUserResponder = - (typeof packagesDeletePackageVersionForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesDeletePackageVersionForAuthenticatedUser = ( params: Params< t_PackagesDeletePackageVersionForAuthenticatedUserParamSchema, @@ -27434,7 +24294,7 @@ export type PackagesDeletePackageVersionForAuthenticatedUser = ( void, void >, - respond: PackagesDeletePackageVersionForAuthenticatedUserResponder, + respond: (typeof packagesDeletePackageVersionForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27452,10 +24312,6 @@ const packagesRestorePackageVersionForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesRestorePackageVersionForAuthenticatedUserResponder = - (typeof packagesRestorePackageVersionForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type PackagesRestorePackageVersionForAuthenticatedUser = ( params: Params< t_PackagesRestorePackageVersionForAuthenticatedUserParamSchema, @@ -27463,7 +24319,7 @@ export type PackagesRestorePackageVersionForAuthenticatedUser = ( void, void >, - respond: PackagesRestorePackageVersionForAuthenticatedUserResponder, + respond: (typeof packagesRestorePackageVersionForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27482,9 +24338,6 @@ const projectsCreateForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsCreateForAuthenticatedUserResponder = - (typeof projectsCreateForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type ProjectsCreateForAuthenticatedUser = ( params: Params< void, @@ -27492,7 +24345,7 @@ export type ProjectsCreateForAuthenticatedUser = ( t_ProjectsCreateForAuthenticatedUserBodySchema, void >, - respond: ProjectsCreateForAuthenticatedUserResponder, + respond: (typeof projectsCreateForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27512,10 +24365,6 @@ const usersListPublicEmailsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListPublicEmailsForAuthenticatedUserResponder = - (typeof usersListPublicEmailsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListPublicEmailsForAuthenticatedUser = ( params: Params< void, @@ -27523,7 +24372,7 @@ export type UsersListPublicEmailsForAuthenticatedUser = ( void, void >, - respond: UsersListPublicEmailsForAuthenticatedUserResponder, + respond: (typeof usersListPublicEmailsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27543,12 +24392,9 @@ const reposListForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ReposListForAuthenticatedUserResponder = - (typeof reposListForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type ReposListForAuthenticatedUser = ( params: Params, - respond: ReposListForAuthenticatedUserResponder, + respond: (typeof reposListForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27570,12 +24416,9 @@ const reposCreateForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ReposCreateForAuthenticatedUserResponder = - (typeof reposCreateForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type ReposCreateForAuthenticatedUser = ( params: Params, - respond: ReposCreateForAuthenticatedUserResponder, + respond: (typeof reposCreateForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27599,10 +24442,6 @@ const reposListInvitationsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ReposListInvitationsForAuthenticatedUserResponder = - (typeof reposListInvitationsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ReposListInvitationsForAuthenticatedUser = ( params: Params< void, @@ -27610,7 +24449,7 @@ export type ReposListInvitationsForAuthenticatedUser = ( void, void >, - respond: ReposListInvitationsForAuthenticatedUserResponder, + respond: (typeof reposListInvitationsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27630,10 +24469,6 @@ const reposAcceptInvitationForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ReposAcceptInvitationForAuthenticatedUserResponder = - (typeof reposAcceptInvitationForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ReposAcceptInvitationForAuthenticatedUser = ( params: Params< t_ReposAcceptInvitationForAuthenticatedUserParamSchema, @@ -27641,7 +24476,7 @@ export type ReposAcceptInvitationForAuthenticatedUser = ( void, void >, - respond: ReposAcceptInvitationForAuthenticatedUserResponder, + respond: (typeof reposAcceptInvitationForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27661,10 +24496,6 @@ const reposDeclineInvitationForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ReposDeclineInvitationForAuthenticatedUserResponder = - (typeof reposDeclineInvitationForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ReposDeclineInvitationForAuthenticatedUser = ( params: Params< t_ReposDeclineInvitationForAuthenticatedUserParamSchema, @@ -27672,7 +24503,7 @@ export type ReposDeclineInvitationForAuthenticatedUser = ( void, void >, - respond: ReposDeclineInvitationForAuthenticatedUserResponder, + respond: (typeof reposDeclineInvitationForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27692,10 +24523,6 @@ const usersListSocialAccountsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListSocialAccountsForAuthenticatedUserResponder = - (typeof usersListSocialAccountsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListSocialAccountsForAuthenticatedUser = ( params: Params< void, @@ -27703,7 +24530,7 @@ export type UsersListSocialAccountsForAuthenticatedUser = ( void, void >, - respond: UsersListSocialAccountsForAuthenticatedUserResponder, + respond: (typeof usersListSocialAccountsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27724,10 +24551,6 @@ const usersAddSocialAccountForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersAddSocialAccountForAuthenticatedUserResponder = - (typeof usersAddSocialAccountForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersAddSocialAccountForAuthenticatedUser = ( params: Params< void, @@ -27735,7 +24558,7 @@ export type UsersAddSocialAccountForAuthenticatedUser = ( t_UsersAddSocialAccountForAuthenticatedUserBodySchema, void >, - respond: UsersAddSocialAccountForAuthenticatedUserResponder, + respond: (typeof usersAddSocialAccountForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27757,10 +24580,6 @@ const usersDeleteSocialAccountForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersDeleteSocialAccountForAuthenticatedUserResponder = - (typeof usersDeleteSocialAccountForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersDeleteSocialAccountForAuthenticatedUser = ( params: Params< void, @@ -27768,7 +24587,7 @@ export type UsersDeleteSocialAccountForAuthenticatedUser = ( t_UsersDeleteSocialAccountForAuthenticatedUserBodySchema, void >, - respond: UsersDeleteSocialAccountForAuthenticatedUserResponder, + respond: (typeof usersDeleteSocialAccountForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27789,10 +24608,6 @@ const usersListSshSigningKeysForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListSshSigningKeysForAuthenticatedUserResponder = - (typeof usersListSshSigningKeysForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersListSshSigningKeysForAuthenticatedUser = ( params: Params< void, @@ -27800,7 +24615,7 @@ export type UsersListSshSigningKeysForAuthenticatedUser = ( void, void >, - respond: UsersListSshSigningKeysForAuthenticatedUserResponder, + respond: (typeof usersListSshSigningKeysForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27821,10 +24636,6 @@ const usersCreateSshSigningKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersCreateSshSigningKeyForAuthenticatedUserResponder = - (typeof usersCreateSshSigningKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersCreateSshSigningKeyForAuthenticatedUser = ( params: Params< void, @@ -27832,7 +24643,7 @@ export type UsersCreateSshSigningKeyForAuthenticatedUser = ( t_UsersCreateSshSigningKeyForAuthenticatedUserBodySchema, void >, - respond: UsersCreateSshSigningKeyForAuthenticatedUserResponder, + respond: (typeof usersCreateSshSigningKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27853,10 +24664,6 @@ const usersGetSshSigningKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersGetSshSigningKeyForAuthenticatedUserResponder = - (typeof usersGetSshSigningKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersGetSshSigningKeyForAuthenticatedUser = ( params: Params< t_UsersGetSshSigningKeyForAuthenticatedUserParamSchema, @@ -27864,7 +24671,7 @@ export type UsersGetSshSigningKeyForAuthenticatedUser = ( void, void >, - respond: UsersGetSshSigningKeyForAuthenticatedUserResponder, + respond: (typeof usersGetSshSigningKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27884,10 +24691,6 @@ const usersDeleteSshSigningKeyForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersDeleteSshSigningKeyForAuthenticatedUserResponder = - (typeof usersDeleteSshSigningKeyForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type UsersDeleteSshSigningKeyForAuthenticatedUser = ( params: Params< t_UsersDeleteSshSigningKeyForAuthenticatedUserParamSchema, @@ -27895,7 +24698,7 @@ export type UsersDeleteSshSigningKeyForAuthenticatedUser = ( void, void >, - respond: UsersDeleteSshSigningKeyForAuthenticatedUserResponder, + respond: (typeof usersDeleteSshSigningKeyForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27914,10 +24717,6 @@ const activityListReposStarredByAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListReposStarredByAuthenticatedUserResponder = - (typeof activityListReposStarredByAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityListReposStarredByAuthenticatedUser = ( params: Params< void, @@ -27925,7 +24724,7 @@ export type ActivityListReposStarredByAuthenticatedUser = ( void, void >, - respond: ActivityListReposStarredByAuthenticatedUserResponder, + respond: (typeof activityListReposStarredByAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27944,10 +24743,6 @@ const activityCheckRepoIsStarredByAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityCheckRepoIsStarredByAuthenticatedUserResponder = - (typeof activityCheckRepoIsStarredByAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityCheckRepoIsStarredByAuthenticatedUser = ( params: Params< t_ActivityCheckRepoIsStarredByAuthenticatedUserParamSchema, @@ -27955,7 +24750,7 @@ export type ActivityCheckRepoIsStarredByAuthenticatedUser = ( void, void >, - respond: ActivityCheckRepoIsStarredByAuthenticatedUserResponder, + respond: (typeof activityCheckRepoIsStarredByAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -27975,10 +24770,6 @@ const activityStarRepoForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityStarRepoForAuthenticatedUserResponder = - (typeof activityStarRepoForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityStarRepoForAuthenticatedUser = ( params: Params< t_ActivityStarRepoForAuthenticatedUserParamSchema, @@ -27986,7 +24777,7 @@ export type ActivityStarRepoForAuthenticatedUser = ( void, void >, - respond: ActivityStarRepoForAuthenticatedUserResponder, + respond: (typeof activityStarRepoForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28006,10 +24797,6 @@ const activityUnstarRepoForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityUnstarRepoForAuthenticatedUserResponder = - (typeof activityUnstarRepoForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityUnstarRepoForAuthenticatedUser = ( params: Params< t_ActivityUnstarRepoForAuthenticatedUserParamSchema, @@ -28017,7 +24804,7 @@ export type ActivityUnstarRepoForAuthenticatedUser = ( void, void >, - respond: ActivityUnstarRepoForAuthenticatedUserResponder, + respond: (typeof activityUnstarRepoForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28036,10 +24823,6 @@ const activityListWatchedReposForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListWatchedReposForAuthenticatedUserResponder = - (typeof activityListWatchedReposForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityListWatchedReposForAuthenticatedUser = ( params: Params< void, @@ -28047,7 +24830,7 @@ export type ActivityListWatchedReposForAuthenticatedUser = ( void, void >, - respond: ActivityListWatchedReposForAuthenticatedUserResponder, + respond: (typeof activityListWatchedReposForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28065,12 +24848,9 @@ const teamsListForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type TeamsListForAuthenticatedUserResponder = - (typeof teamsListForAuthenticatedUser)["responder"] & KoaRuntimeResponder - export type TeamsListForAuthenticatedUser = ( params: Params, - respond: TeamsListForAuthenticatedUserResponder, + respond: (typeof teamsListForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28088,12 +24868,9 @@ const usersGetById = b((r) => ({ withStatus: r.withStatus, })) -type UsersGetByIdResponder = (typeof usersGetById)["responder"] & - KoaRuntimeResponder - export type UsersGetById = ( params: Params, - respond: UsersGetByIdResponder, + respond: (typeof usersGetById)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28107,11 +24884,9 @@ const usersList = b((r) => ({ withStatus: r.withStatus, })) -type UsersListResponder = (typeof usersList)["responder"] & KoaRuntimeResponder - export type UsersList = ( params: Params, - respond: UsersListResponder, + respond: (typeof usersList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28127,12 +24902,9 @@ const usersGetByUsername = b((r) => ({ withStatus: r.withStatus, })) -type UsersGetByUsernameResponder = (typeof usersGetByUsername)["responder"] & - KoaRuntimeResponder - export type UsersGetByUsername = ( params: Params, - respond: UsersGetByUsernameResponder, + respond: (typeof usersGetByUsername)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28180,9 +24952,6 @@ const usersListAttestations = b((r) => ({ withStatus: r.withStatus, })) -type UsersListAttestationsResponder = - (typeof usersListAttestations)["responder"] & KoaRuntimeResponder - export type UsersListAttestations = ( params: Params< t_UsersListAttestationsParamSchema, @@ -28190,7 +24959,7 @@ export type UsersListAttestations = ( void, void >, - respond: UsersListAttestationsResponder, + respond: (typeof usersListAttestations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28224,10 +24993,6 @@ const packagesListDockerMigrationConflictingPackagesForUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesListDockerMigrationConflictingPackagesForUserResponder = - (typeof packagesListDockerMigrationConflictingPackagesForUser)["responder"] & - KoaRuntimeResponder - export type PackagesListDockerMigrationConflictingPackagesForUser = ( params: Params< t_PackagesListDockerMigrationConflictingPackagesForUserParamSchema, @@ -28235,7 +25000,7 @@ export type PackagesListDockerMigrationConflictingPackagesForUser = ( void, void >, - respond: PackagesListDockerMigrationConflictingPackagesForUserResponder, + respond: (typeof packagesListDockerMigrationConflictingPackagesForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28249,10 +25014,6 @@ const activityListEventsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListEventsForAuthenticatedUserResponder = - (typeof activityListEventsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityListEventsForAuthenticatedUser = ( params: Params< t_ActivityListEventsForAuthenticatedUserParamSchema, @@ -28260,7 +25021,7 @@ export type ActivityListEventsForAuthenticatedUser = ( void, void >, - respond: ActivityListEventsForAuthenticatedUserResponder, + respond: (typeof activityListEventsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_event[]>> @@ -28269,10 +25030,6 @@ const activityListOrgEventsForAuthenticatedUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListOrgEventsForAuthenticatedUserResponder = - (typeof activityListOrgEventsForAuthenticatedUser)["responder"] & - KoaRuntimeResponder - export type ActivityListOrgEventsForAuthenticatedUser = ( params: Params< t_ActivityListOrgEventsForAuthenticatedUserParamSchema, @@ -28280,7 +25037,7 @@ export type ActivityListOrgEventsForAuthenticatedUser = ( void, void >, - respond: ActivityListOrgEventsForAuthenticatedUserResponder, + respond: (typeof activityListOrgEventsForAuthenticatedUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_event[]>> @@ -28289,9 +25046,6 @@ const activityListPublicEventsForUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListPublicEventsForUserResponder = - (typeof activityListPublicEventsForUser)["responder"] & KoaRuntimeResponder - export type ActivityListPublicEventsForUser = ( params: Params< t_ActivityListPublicEventsForUserParamSchema, @@ -28299,7 +25053,7 @@ export type ActivityListPublicEventsForUser = ( void, void >, - respond: ActivityListPublicEventsForUserResponder, + respond: (typeof activityListPublicEventsForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_event[]>> @@ -28308,9 +25062,6 @@ const usersListFollowersForUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListFollowersForUserResponder = - (typeof usersListFollowersForUser)["responder"] & KoaRuntimeResponder - export type UsersListFollowersForUser = ( params: Params< t_UsersListFollowersForUserParamSchema, @@ -28318,7 +25069,7 @@ export type UsersListFollowersForUser = ( void, void >, - respond: UsersListFollowersForUserResponder, + respond: (typeof usersListFollowersForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> @@ -28327,9 +25078,6 @@ const usersListFollowingForUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListFollowingForUserResponder = - (typeof usersListFollowingForUser)["responder"] & KoaRuntimeResponder - export type UsersListFollowingForUser = ( params: Params< t_UsersListFollowingForUserParamSchema, @@ -28337,7 +25085,7 @@ export type UsersListFollowingForUser = ( void, void >, - respond: UsersListFollowingForUserResponder, + respond: (typeof usersListFollowingForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_simple_user[]>> @@ -28347,12 +25095,9 @@ const usersCheckFollowingForUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersCheckFollowingForUserResponder = - (typeof usersCheckFollowingForUser)["responder"] & KoaRuntimeResponder - export type UsersCheckFollowingForUser = ( params: Params, - respond: UsersCheckFollowingForUserResponder, + respond: (typeof usersCheckFollowingForUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<404, void> @@ -28364,9 +25109,6 @@ const gistsListForUser = b((r) => ({ withStatus: r.withStatus, })) -type GistsListForUserResponder = (typeof gistsListForUser)["responder"] & - KoaRuntimeResponder - export type GistsListForUser = ( params: Params< t_GistsListForUserParamSchema, @@ -28374,7 +25116,7 @@ export type GistsListForUser = ( void, void >, - respond: GistsListForUserResponder, + respond: (typeof gistsListForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28387,9 +25129,6 @@ const usersListGpgKeysForUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListGpgKeysForUserResponder = - (typeof usersListGpgKeysForUser)["responder"] & KoaRuntimeResponder - export type UsersListGpgKeysForUser = ( params: Params< t_UsersListGpgKeysForUserParamSchema, @@ -28397,7 +25136,7 @@ export type UsersListGpgKeysForUser = ( void, void >, - respond: UsersListGpgKeysForUserResponder, + respond: (typeof usersListGpgKeysForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_gpg_key[]>> @@ -28408,9 +25147,6 @@ const usersGetContextForUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersGetContextForUserResponder = - (typeof usersGetContextForUser)["responder"] & KoaRuntimeResponder - export type UsersGetContextForUser = ( params: Params< t_UsersGetContextForUserParamSchema, @@ -28418,7 +25154,7 @@ export type UsersGetContextForUser = ( void, void >, - respond: UsersGetContextForUserResponder, + respond: (typeof usersGetContextForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28432,12 +25168,9 @@ const appsGetUserInstallation = b((r) => ({ withStatus: r.withStatus, })) -type AppsGetUserInstallationResponder = - (typeof appsGetUserInstallation)["responder"] & KoaRuntimeResponder - export type AppsGetUserInstallation = ( params: Params, - respond: AppsGetUserInstallationResponder, + respond: (typeof appsGetUserInstallation)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_installation>> @@ -28446,9 +25179,6 @@ const usersListPublicKeysForUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListPublicKeysForUserResponder = - (typeof usersListPublicKeysForUser)["responder"] & KoaRuntimeResponder - export type UsersListPublicKeysForUser = ( params: Params< t_UsersListPublicKeysForUserParamSchema, @@ -28456,7 +25186,7 @@ export type UsersListPublicKeysForUser = ( void, void >, - respond: UsersListPublicKeysForUserResponder, + respond: (typeof usersListPublicKeysForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_key_simple[]>> @@ -28465,9 +25195,6 @@ const orgsListForUser = b((r) => ({ withStatus: r.withStatus, })) -type OrgsListForUserResponder = (typeof orgsListForUser)["responder"] & - KoaRuntimeResponder - export type OrgsListForUser = ( params: Params< t_OrgsListForUserParamSchema, @@ -28475,7 +25202,7 @@ export type OrgsListForUser = ( void, void >, - respond: OrgsListForUserResponder, + respond: (typeof orgsListForUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_organization_simple[]> @@ -28489,9 +25216,6 @@ const packagesListPackagesForUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesListPackagesForUserResponder = - (typeof packagesListPackagesForUser)["responder"] & KoaRuntimeResponder - export type PackagesListPackagesForUser = ( params: Params< t_PackagesListPackagesForUserParamSchema, @@ -28499,7 +25223,7 @@ export type PackagesListPackagesForUser = ( void, void >, - respond: PackagesListPackagesForUserResponder, + respond: (typeof packagesListPackagesForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28514,12 +25238,9 @@ const packagesGetPackageForUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesGetPackageForUserResponder = - (typeof packagesGetPackageForUser)["responder"] & KoaRuntimeResponder - export type PackagesGetPackageForUser = ( params: Params, - respond: PackagesGetPackageForUserResponder, + respond: (typeof packagesGetPackageForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_package>> @@ -28531,12 +25252,9 @@ const packagesDeletePackageForUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesDeletePackageForUserResponder = - (typeof packagesDeletePackageForUser)["responder"] & KoaRuntimeResponder - export type PackagesDeletePackageForUser = ( params: Params, - respond: PackagesDeletePackageForUserResponder, + respond: (typeof packagesDeletePackageForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28554,9 +25272,6 @@ const packagesRestorePackageForUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesRestorePackageForUserResponder = - (typeof packagesRestorePackageForUser)["responder"] & KoaRuntimeResponder - export type PackagesRestorePackageForUser = ( params: Params< t_PackagesRestorePackageForUserParamSchema, @@ -28564,7 +25279,7 @@ export type PackagesRestorePackageForUser = ( void, void >, - respond: PackagesRestorePackageForUserResponder, + respond: (typeof packagesRestorePackageForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28582,10 +25297,6 @@ const packagesGetAllPackageVersionsForPackageOwnedByUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesGetAllPackageVersionsForPackageOwnedByUserResponder = - (typeof packagesGetAllPackageVersionsForPackageOwnedByUser)["responder"] & - KoaRuntimeResponder - export type PackagesGetAllPackageVersionsForPackageOwnedByUser = ( params: Params< t_PackagesGetAllPackageVersionsForPackageOwnedByUserParamSchema, @@ -28593,7 +25304,7 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByUser = ( void, void >, - respond: PackagesGetAllPackageVersionsForPackageOwnedByUserResponder, + respond: (typeof packagesGetAllPackageVersionsForPackageOwnedByUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28608,9 +25319,6 @@ const packagesGetPackageVersionForUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesGetPackageVersionForUserResponder = - (typeof packagesGetPackageVersionForUser)["responder"] & KoaRuntimeResponder - export type PackagesGetPackageVersionForUser = ( params: Params< t_PackagesGetPackageVersionForUserParamSchema, @@ -28618,7 +25326,7 @@ export type PackagesGetPackageVersionForUser = ( void, void >, - respond: PackagesGetPackageVersionForUserResponder, + respond: (typeof packagesGetPackageVersionForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_package_version>> @@ -28630,10 +25338,6 @@ const packagesDeletePackageVersionForUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesDeletePackageVersionForUserResponder = - (typeof packagesDeletePackageVersionForUser)["responder"] & - KoaRuntimeResponder - export type PackagesDeletePackageVersionForUser = ( params: Params< t_PackagesDeletePackageVersionForUserParamSchema, @@ -28641,7 +25345,7 @@ export type PackagesDeletePackageVersionForUser = ( void, void >, - respond: PackagesDeletePackageVersionForUserResponder, + respond: (typeof packagesDeletePackageVersionForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28659,10 +25363,6 @@ const packagesRestorePackageVersionForUser = b((r) => ({ withStatus: r.withStatus, })) -type PackagesRestorePackageVersionForUserResponder = - (typeof packagesRestorePackageVersionForUser)["responder"] & - KoaRuntimeResponder - export type PackagesRestorePackageVersionForUser = ( params: Params< t_PackagesRestorePackageVersionForUserParamSchema, @@ -28670,7 +25370,7 @@ export type PackagesRestorePackageVersionForUser = ( void, void >, - respond: PackagesRestorePackageVersionForUserResponder, + respond: (typeof packagesRestorePackageVersionForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28686,9 +25386,6 @@ const projectsListForUser = b((r) => ({ withStatus: r.withStatus, })) -type ProjectsListForUserResponder = (typeof projectsListForUser)["responder"] & - KoaRuntimeResponder - export type ProjectsListForUser = ( params: Params< t_ProjectsListForUserParamSchema, @@ -28696,7 +25393,7 @@ export type ProjectsListForUser = ( void, void >, - respond: ProjectsListForUserResponder, + respond: (typeof projectsListForUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28709,9 +25406,6 @@ const activityListReceivedEventsForUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListReceivedEventsForUserResponder = - (typeof activityListReceivedEventsForUser)["responder"] & KoaRuntimeResponder - export type ActivityListReceivedEventsForUser = ( params: Params< t_ActivityListReceivedEventsForUserParamSchema, @@ -28719,7 +25413,7 @@ export type ActivityListReceivedEventsForUser = ( void, void >, - respond: ActivityListReceivedEventsForUserResponder, + respond: (typeof activityListReceivedEventsForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_event[]>> @@ -28728,10 +25422,6 @@ const activityListReceivedPublicEventsForUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListReceivedPublicEventsForUserResponder = - (typeof activityListReceivedPublicEventsForUser)["responder"] & - KoaRuntimeResponder - export type ActivityListReceivedPublicEventsForUser = ( params: Params< t_ActivityListReceivedPublicEventsForUserParamSchema, @@ -28739,7 +25429,7 @@ export type ActivityListReceivedPublicEventsForUser = ( void, void >, - respond: ActivityListReceivedPublicEventsForUserResponder, + respond: (typeof activityListReceivedPublicEventsForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_event[]>> @@ -28748,9 +25438,6 @@ const reposListForUser = b((r) => ({ withStatus: r.withStatus, })) -type ReposListForUserResponder = (typeof reposListForUser)["responder"] & - KoaRuntimeResponder - export type ReposListForUser = ( params: Params< t_ReposListForUserParamSchema, @@ -28758,7 +25445,7 @@ export type ReposListForUser = ( void, void >, - respond: ReposListForUserResponder, + respond: (typeof reposListForUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_minimal_repository[]> @@ -28769,9 +25456,6 @@ const billingGetGithubActionsBillingUser = b((r) => ({ withStatus: r.withStatus, })) -type BillingGetGithubActionsBillingUserResponder = - (typeof billingGetGithubActionsBillingUser)["responder"] & KoaRuntimeResponder - export type BillingGetGithubActionsBillingUser = ( params: Params< t_BillingGetGithubActionsBillingUserParamSchema, @@ -28779,7 +25463,7 @@ export type BillingGetGithubActionsBillingUser = ( void, void >, - respond: BillingGetGithubActionsBillingUserResponder, + respond: (typeof billingGetGithubActionsBillingUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_actions_billing_usage> @@ -28790,10 +25474,6 @@ const billingGetGithubPackagesBillingUser = b((r) => ({ withStatus: r.withStatus, })) -type BillingGetGithubPackagesBillingUserResponder = - (typeof billingGetGithubPackagesBillingUser)["responder"] & - KoaRuntimeResponder - export type BillingGetGithubPackagesBillingUser = ( params: Params< t_BillingGetGithubPackagesBillingUserParamSchema, @@ -28801,7 +25481,7 @@ export type BillingGetGithubPackagesBillingUser = ( void, void >, - respond: BillingGetGithubPackagesBillingUserResponder, + respond: (typeof billingGetGithubPackagesBillingUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_packages_billing_usage> @@ -28812,9 +25492,6 @@ const billingGetSharedStorageBillingUser = b((r) => ({ withStatus: r.withStatus, })) -type BillingGetSharedStorageBillingUserResponder = - (typeof billingGetSharedStorageBillingUser)["responder"] & KoaRuntimeResponder - export type BillingGetSharedStorageBillingUser = ( params: Params< t_BillingGetSharedStorageBillingUserParamSchema, @@ -28822,7 +25499,7 @@ export type BillingGetSharedStorageBillingUser = ( void, void >, - respond: BillingGetSharedStorageBillingUserResponder, + respond: (typeof billingGetSharedStorageBillingUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_combined_billing_usage> @@ -28833,9 +25510,6 @@ const usersListSocialAccountsForUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListSocialAccountsForUserResponder = - (typeof usersListSocialAccountsForUser)["responder"] & KoaRuntimeResponder - export type UsersListSocialAccountsForUser = ( params: Params< t_UsersListSocialAccountsForUserParamSchema, @@ -28843,7 +25517,7 @@ export type UsersListSocialAccountsForUser = ( void, void >, - respond: UsersListSocialAccountsForUserResponder, + respond: (typeof usersListSocialAccountsForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_social_account[]>> @@ -28852,9 +25526,6 @@ const usersListSshSigningKeysForUser = b((r) => ({ withStatus: r.withStatus, })) -type UsersListSshSigningKeysForUserResponder = - (typeof usersListSshSigningKeysForUser)["responder"] & KoaRuntimeResponder - export type UsersListSshSigningKeysForUser = ( params: Params< t_UsersListSshSigningKeysForUserParamSchema, @@ -28862,7 +25533,7 @@ export type UsersListSshSigningKeysForUser = ( void, void >, - respond: UsersListSshSigningKeysForUserResponder, + respond: (typeof usersListSshSigningKeysForUser)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_ssh_signing_key[]>> @@ -28873,9 +25544,6 @@ const activityListReposStarredByUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListReposStarredByUserResponder = - (typeof activityListReposStarredByUser)["responder"] & KoaRuntimeResponder - export type ActivityListReposStarredByUser = ( params: Params< t_ActivityListReposStarredByUserParamSchema, @@ -28883,7 +25551,7 @@ export type ActivityListReposStarredByUser = ( void, void >, - respond: ActivityListReposStarredByUserResponder, + respond: (typeof activityListReposStarredByUser)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28895,9 +25563,6 @@ const activityListReposWatchedByUser = b((r) => ({ withStatus: r.withStatus, })) -type ActivityListReposWatchedByUserResponder = - (typeof activityListReposWatchedByUser)["responder"] & KoaRuntimeResponder - export type ActivityListReposWatchedByUser = ( params: Params< t_ActivityListReposWatchedByUserParamSchema, @@ -28905,7 +25570,7 @@ export type ActivityListReposWatchedByUser = ( void, void >, - respond: ActivityListReposWatchedByUserResponder, + respond: (typeof activityListReposWatchedByUser)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_minimal_repository[]> @@ -28917,12 +25582,9 @@ const metaGetAllVersions = b((r) => ({ withStatus: r.withStatus, })) -type MetaGetAllVersionsResponder = (typeof metaGetAllVersions)["responder"] & - KoaRuntimeResponder - export type MetaGetAllVersions = ( params: Params, - respond: MetaGetAllVersionsResponder, + respond: (typeof metaGetAllVersions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -28935,12 +25597,9 @@ const metaGetZen = b((r) => ({ withStatus: r.withStatus, })) -type MetaGetZenResponder = (typeof metaGetZen)["responder"] & - KoaRuntimeResponder - export type MetaGetZen = ( params: Params, - respond: MetaGetZenResponder, + respond: (typeof metaGetZen)["responder"], ctx: RouterContext, ) => Promise | Response<200, string>> diff --git a/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts b/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts index 6d1cf786a..fa65792be 100644 --- a/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts +++ b/integration-tests/typescript-koa/src/generated/azure-core-data-plane-service.tsp/generated.ts @@ -102,7 +102,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -124,9 +123,6 @@ const getServiceStatus = b((r) => ({ withStatus: r.withStatus, })) -type GetServiceStatusResponder = (typeof getServiceStatus)["responder"] & - KoaRuntimeResponder - export type GetServiceStatus = ( params: Params< void, @@ -134,7 +130,7 @@ export type GetServiceStatus = ( void, t_GetServiceStatusHeaderSchema >, - respond: GetServiceStatusResponder, + respond: (typeof getServiceStatus)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -183,10 +179,6 @@ const widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus = b( }), ) -type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder = - (typeof widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus)["responder"] & - KoaRuntimeResponder - export type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus = ( params: Params< @@ -195,7 +187,7 @@ export type WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus void, void >, - respond: WidgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatusResponder, + respond: (typeof widgetsGetWidgetOperationStatusWidgetsGetWidgetDeleteOperationStatus)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -225,9 +217,6 @@ const widgetsCreateOrUpdateWidget = b((r) => ({ withStatus: r.withStatus, })) -type WidgetsCreateOrUpdateWidgetResponder = - (typeof widgetsCreateOrUpdateWidget)["responder"] & KoaRuntimeResponder - export type WidgetsCreateOrUpdateWidget = ( params: Params< t_WidgetsCreateOrUpdateWidgetParamSchema, @@ -235,7 +224,7 @@ export type WidgetsCreateOrUpdateWidget = ( t_WidgetsCreateOrUpdateWidgetBodySchema, t_WidgetsCreateOrUpdateWidgetHeaderSchema >, - respond: WidgetsCreateOrUpdateWidgetResponder, + respond: (typeof widgetsCreateOrUpdateWidget)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -252,9 +241,6 @@ const widgetsGetWidget = b((r) => ({ withStatus: r.withStatus, })) -type WidgetsGetWidgetResponder = (typeof widgetsGetWidget)["responder"] & - KoaRuntimeResponder - export type WidgetsGetWidget = ( params: Params< t_WidgetsGetWidgetParamSchema, @@ -262,7 +248,7 @@ export type WidgetsGetWidget = ( void, t_WidgetsGetWidgetHeaderSchema >, - respond: WidgetsGetWidgetResponder, + respond: (typeof widgetsGetWidget)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -288,9 +274,6 @@ const widgetsDeleteWidget = b((r) => ({ withStatus: r.withStatus, })) -type WidgetsDeleteWidgetResponder = (typeof widgetsDeleteWidget)["responder"] & - KoaRuntimeResponder - export type WidgetsDeleteWidget = ( params: Params< t_WidgetsDeleteWidgetParamSchema, @@ -298,7 +281,7 @@ export type WidgetsDeleteWidget = ( void, t_WidgetsDeleteWidgetHeaderSchema >, - respond: WidgetsDeleteWidgetResponder, + respond: (typeof widgetsDeleteWidget)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -321,9 +304,6 @@ const widgetsListWidgets = b((r) => ({ withStatus: r.withStatus, })) -type WidgetsListWidgetsResponder = (typeof widgetsListWidgets)["responder"] & - KoaRuntimeResponder - export type WidgetsListWidgets = ( params: Params< void, @@ -331,7 +311,7 @@ export type WidgetsListWidgets = ( void, t_WidgetsListWidgetsHeaderSchema >, - respond: WidgetsListWidgetsResponder, + respond: (typeof widgetsListWidgets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -347,9 +327,6 @@ const widgetsGetAnalytics = b((r) => ({ withStatus: r.withStatus, })) -type WidgetsGetAnalyticsResponder = (typeof widgetsGetAnalytics)["responder"] & - KoaRuntimeResponder - export type WidgetsGetAnalytics = ( params: Params< t_WidgetsGetAnalyticsParamSchema, @@ -357,7 +334,7 @@ export type WidgetsGetAnalytics = ( void, t_WidgetsGetAnalyticsHeaderSchema >, - respond: WidgetsGetAnalyticsResponder, + respond: (typeof widgetsGetAnalytics)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -374,9 +351,6 @@ const widgetsUpdateAnalytics = b((r) => ({ withStatus: r.withStatus, })) -type WidgetsUpdateAnalyticsResponder = - (typeof widgetsUpdateAnalytics)["responder"] & KoaRuntimeResponder - export type WidgetsUpdateAnalytics = ( params: Params< t_WidgetsUpdateAnalyticsParamSchema, @@ -384,7 +358,7 @@ export type WidgetsUpdateAnalytics = ( t_WidgetsUpdateAnalyticsBodySchema, t_WidgetsUpdateAnalyticsHeaderSchema >, - respond: WidgetsUpdateAnalyticsResponder, + respond: (typeof widgetsUpdateAnalytics)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -413,9 +387,6 @@ const widgetsGetRepairStatus = b((r) => ({ withStatus: r.withStatus, })) -type WidgetsGetRepairStatusResponder = - (typeof widgetsGetRepairStatus)["responder"] & KoaRuntimeResponder - export type WidgetsGetRepairStatus = ( params: Params< t_WidgetsGetRepairStatusParamSchema, @@ -423,7 +394,7 @@ export type WidgetsGetRepairStatus = ( void, void >, - respond: WidgetsGetRepairStatusResponder, + respond: (typeof widgetsGetRepairStatus)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -473,9 +444,6 @@ const widgetsScheduleRepairs = b((r) => ({ withStatus: r.withStatus, })) -type WidgetsScheduleRepairsResponder = - (typeof widgetsScheduleRepairs)["responder"] & KoaRuntimeResponder - export type WidgetsScheduleRepairs = ( params: Params< t_WidgetsScheduleRepairsParamSchema, @@ -483,7 +451,7 @@ export type WidgetsScheduleRepairs = ( t_WidgetsScheduleRepairsBodySchema, t_WidgetsScheduleRepairsHeaderSchema >, - respond: WidgetsScheduleRepairsResponder, + respond: (typeof widgetsScheduleRepairs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -525,10 +493,6 @@ const widgetPartsGetWidgetPartOperationStatus = b((r) => ({ withStatus: r.withStatus, })) -type WidgetPartsGetWidgetPartOperationStatusResponder = - (typeof widgetPartsGetWidgetPartOperationStatus)["responder"] & - KoaRuntimeResponder - export type WidgetPartsGetWidgetPartOperationStatus = ( params: Params< t_WidgetPartsGetWidgetPartOperationStatusParamSchema, @@ -536,7 +500,7 @@ export type WidgetPartsGetWidgetPartOperationStatus = ( void, void >, - respond: WidgetPartsGetWidgetPartOperationStatusResponder, + respond: (typeof widgetPartsGetWidgetPartOperationStatus)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -560,9 +524,6 @@ const widgetPartsCreateWidgetPart = b((r) => ({ withStatus: r.withStatus, })) -type WidgetPartsCreateWidgetPartResponder = - (typeof widgetPartsCreateWidgetPart)["responder"] & KoaRuntimeResponder - export type WidgetPartsCreateWidgetPart = ( params: Params< t_WidgetPartsCreateWidgetPartParamSchema, @@ -570,7 +531,7 @@ export type WidgetPartsCreateWidgetPart = ( t_WidgetPartsCreateWidgetPartBodySchema, t_WidgetPartsCreateWidgetPartHeaderSchema >, - respond: WidgetPartsCreateWidgetPartResponder, + respond: (typeof widgetPartsCreateWidgetPart)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -586,9 +547,6 @@ const widgetPartsListWidgetParts = b((r) => ({ withStatus: r.withStatus, })) -type WidgetPartsListWidgetPartsResponder = - (typeof widgetPartsListWidgetParts)["responder"] & KoaRuntimeResponder - export type WidgetPartsListWidgetParts = ( params: Params< t_WidgetPartsListWidgetPartsParamSchema, @@ -596,7 +554,7 @@ export type WidgetPartsListWidgetParts = ( void, t_WidgetPartsListWidgetPartsHeaderSchema >, - respond: WidgetPartsListWidgetPartsResponder, + respond: (typeof widgetPartsListWidgetParts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -612,9 +570,6 @@ const widgetPartsGetWidgetPart = b((r) => ({ withStatus: r.withStatus, })) -type WidgetPartsGetWidgetPartResponder = - (typeof widgetPartsGetWidgetPart)["responder"] & KoaRuntimeResponder - export type WidgetPartsGetWidgetPart = ( params: Params< t_WidgetPartsGetWidgetPartParamSchema, @@ -622,7 +577,7 @@ export type WidgetPartsGetWidgetPart = ( void, t_WidgetPartsGetWidgetPartHeaderSchema >, - respond: WidgetPartsGetWidgetPartResponder, + respond: (typeof widgetPartsGetWidgetPart)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -638,9 +593,6 @@ const widgetPartsDeleteWidgetPart = b((r) => ({ withStatus: r.withStatus, })) -type WidgetPartsDeleteWidgetPartResponder = - (typeof widgetPartsDeleteWidgetPart)["responder"] & KoaRuntimeResponder - export type WidgetPartsDeleteWidgetPart = ( params: Params< t_WidgetPartsDeleteWidgetPartParamSchema, @@ -648,7 +600,7 @@ export type WidgetPartsDeleteWidgetPart = ( void, t_WidgetPartsDeleteWidgetPartHeaderSchema >, - respond: WidgetPartsDeleteWidgetPartResponder, + respond: (typeof widgetPartsDeleteWidgetPart)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -674,9 +626,6 @@ const widgetPartsReorderParts = b((r) => ({ withStatus: r.withStatus, })) -type WidgetPartsReorderPartsResponder = - (typeof widgetPartsReorderParts)["responder"] & KoaRuntimeResponder - export type WidgetPartsReorderParts = ( params: Params< t_WidgetPartsReorderPartsParamSchema, @@ -684,7 +633,7 @@ export type WidgetPartsReorderParts = ( t_WidgetPartsReorderPartsBodySchema, t_WidgetPartsReorderPartsHeaderSchema >, - respond: WidgetPartsReorderPartsResponder, + respond: (typeof widgetPartsReorderParts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -719,10 +668,6 @@ const manufacturersGetManufacturerOperationStatus = b((r) => ({ withStatus: r.withStatus, })) -type ManufacturersGetManufacturerOperationStatusResponder = - (typeof manufacturersGetManufacturerOperationStatus)["responder"] & - KoaRuntimeResponder - export type ManufacturersGetManufacturerOperationStatus = ( params: Params< t_ManufacturersGetManufacturerOperationStatusParamSchema, @@ -730,7 +675,7 @@ export type ManufacturersGetManufacturerOperationStatus = ( void, void >, - respond: ManufacturersGetManufacturerOperationStatusResponder, + respond: (typeof manufacturersGetManufacturerOperationStatus)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -755,10 +700,6 @@ const manufacturersCreateOrReplaceManufacturer = b((r) => ({ withStatus: r.withStatus, })) -type ManufacturersCreateOrReplaceManufacturerResponder = - (typeof manufacturersCreateOrReplaceManufacturer)["responder"] & - KoaRuntimeResponder - export type ManufacturersCreateOrReplaceManufacturer = ( params: Params< t_ManufacturersCreateOrReplaceManufacturerParamSchema, @@ -766,7 +707,7 @@ export type ManufacturersCreateOrReplaceManufacturer = ( t_ManufacturersCreateOrReplaceManufacturerBodySchema, t_ManufacturersCreateOrReplaceManufacturerHeaderSchema >, - respond: ManufacturersCreateOrReplaceManufacturerResponder, + respond: (typeof manufacturersCreateOrReplaceManufacturer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -783,9 +724,6 @@ const manufacturersGetManufacturer = b((r) => ({ withStatus: r.withStatus, })) -type ManufacturersGetManufacturerResponder = - (typeof manufacturersGetManufacturer)["responder"] & KoaRuntimeResponder - export type ManufacturersGetManufacturer = ( params: Params< t_ManufacturersGetManufacturerParamSchema, @@ -793,7 +731,7 @@ export type ManufacturersGetManufacturer = ( void, t_ManufacturersGetManufacturerHeaderSchema >, - respond: ManufacturersGetManufacturerResponder, + respond: (typeof manufacturersGetManufacturer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -819,9 +757,6 @@ const manufacturersDeleteManufacturer = b((r) => ({ withStatus: r.withStatus, })) -type ManufacturersDeleteManufacturerResponder = - (typeof manufacturersDeleteManufacturer)["responder"] & KoaRuntimeResponder - export type ManufacturersDeleteManufacturer = ( params: Params< t_ManufacturersDeleteManufacturerParamSchema, @@ -829,7 +764,7 @@ export type ManufacturersDeleteManufacturer = ( void, t_ManufacturersDeleteManufacturerHeaderSchema >, - respond: ManufacturersDeleteManufacturerResponder, + respond: (typeof manufacturersDeleteManufacturer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -852,9 +787,6 @@ const manufacturersListManufacturers = b((r) => ({ withStatus: r.withStatus, })) -type ManufacturersListManufacturersResponder = - (typeof manufacturersListManufacturers)["responder"] & KoaRuntimeResponder - export type ManufacturersListManufacturers = ( params: Params< void, @@ -862,7 +794,7 @@ export type ManufacturersListManufacturers = ( void, t_ManufacturersListManufacturersHeaderSchema >, - respond: ManufacturersListManufacturersResponder, + respond: (typeof manufacturersListManufacturers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse diff --git a/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts b/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts index fea400daa..2aff38a91 100644 --- a/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts +++ b/integration-tests/typescript-koa/src/generated/azure-resource-manager.tsp/generated.ts @@ -45,7 +45,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -65,12 +64,9 @@ const operationsList = b((r) => ({ withStatus: r.withStatus, })) -type OperationsListResponder = (typeof operationsList)["responder"] & - KoaRuntimeResponder - export type OperationsList = ( params: Params, - respond: OperationsListResponder, + respond: (typeof operationsList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -86,9 +82,6 @@ const employeesGet = b((r) => ({ withStatus: r.withStatus, })) -type EmployeesGetResponder = (typeof employeesGet)["responder"] & - KoaRuntimeResponder - export type EmployeesGet = ( params: Params< t_EmployeesGetParamSchema, @@ -96,7 +89,7 @@ export type EmployeesGet = ( void, void >, - respond: EmployeesGetResponder, + respond: (typeof employeesGet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -113,9 +106,6 @@ const employeesCreateOrUpdate = b((r) => ({ withStatus: r.withStatus, })) -type EmployeesCreateOrUpdateResponder = - (typeof employeesCreateOrUpdate)["responder"] & KoaRuntimeResponder - export type EmployeesCreateOrUpdate = ( params: Params< t_EmployeesCreateOrUpdateParamSchema, @@ -123,7 +113,7 @@ export type EmployeesCreateOrUpdate = ( t_EmployeesCreateOrUpdateBodySchema, void >, - respond: EmployeesCreateOrUpdateResponder, + respond: (typeof employeesCreateOrUpdate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -140,9 +130,6 @@ const employeesUpdate = b((r) => ({ withStatus: r.withStatus, })) -type EmployeesUpdateResponder = (typeof employeesUpdate)["responder"] & - KoaRuntimeResponder - export type EmployeesUpdate = ( params: Params< t_EmployeesUpdateParamSchema, @@ -150,7 +137,7 @@ export type EmployeesUpdate = ( t_EmployeesUpdateBodySchema, void >, - respond: EmployeesUpdateResponder, + respond: (typeof employeesUpdate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -167,9 +154,6 @@ const employeesDelete = b((r) => ({ withStatus: r.withStatus, })) -type EmployeesDeleteResponder = (typeof employeesDelete)["responder"] & - KoaRuntimeResponder - export type EmployeesDelete = ( params: Params< t_EmployeesDeleteParamSchema, @@ -177,7 +161,7 @@ export type EmployeesDelete = ( void, void >, - respond: EmployeesDeleteResponder, + respond: (typeof employeesDelete)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -195,9 +179,6 @@ const employeesCheckExistence = b((r) => ({ withStatus: r.withStatus, })) -type EmployeesCheckExistenceResponder = - (typeof employeesCheckExistence)["responder"] & KoaRuntimeResponder - export type EmployeesCheckExistence = ( params: Params< t_EmployeesCheckExistenceParamSchema, @@ -205,7 +186,7 @@ export type EmployeesCheckExistence = ( void, void >, - respond: EmployeesCheckExistenceResponder, + respond: (typeof employeesCheckExistence)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -222,9 +203,6 @@ const employeesListByResourceGroup = b((r) => ({ withStatus: r.withStatus, })) -type EmployeesListByResourceGroupResponder = - (typeof employeesListByResourceGroup)["responder"] & KoaRuntimeResponder - export type EmployeesListByResourceGroup = ( params: Params< t_EmployeesListByResourceGroupParamSchema, @@ -232,7 +210,7 @@ export type EmployeesListByResourceGroup = ( void, void >, - respond: EmployeesListByResourceGroupResponder, + respond: (typeof employeesListByResourceGroup)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -248,9 +226,6 @@ const employeesListBySubscription = b((r) => ({ withStatus: r.withStatus, })) -type EmployeesListBySubscriptionResponder = - (typeof employeesListBySubscription)["responder"] & KoaRuntimeResponder - export type EmployeesListBySubscription = ( params: Params< t_EmployeesListBySubscriptionParamSchema, @@ -258,7 +233,7 @@ export type EmployeesListBySubscription = ( void, void >, - respond: EmployeesListBySubscriptionResponder, + respond: (typeof employeesListBySubscription)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -274,9 +249,6 @@ const employeesMove = b((r) => ({ withStatus: r.withStatus, })) -type EmployeesMoveResponder = (typeof employeesMove)["responder"] & - KoaRuntimeResponder - export type EmployeesMove = ( params: Params< t_EmployeesMoveParamSchema, @@ -284,7 +256,7 @@ export type EmployeesMove = ( t_EmployeesMoveBodySchema, void >, - respond: EmployeesMoveResponder, + respond: (typeof employeesMove)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse diff --git a/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts index 7855b1573..2fe3c36fd 100644 --- a/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/okta.idp.yaml/generated.ts @@ -73,7 +73,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -95,9 +94,6 @@ const createAppAuthenticatorEnrollment = b((r) => ({ withStatus: r.withStatus, })) -type CreateAppAuthenticatorEnrollmentResponder = - (typeof createAppAuthenticatorEnrollment)["responder"] & KoaRuntimeResponder - export type CreateAppAuthenticatorEnrollment = ( params: Params< void, @@ -105,7 +101,7 @@ export type CreateAppAuthenticatorEnrollment = ( t_CreateAppAuthenticatorEnrollmentBodySchema, void >, - respond: CreateAppAuthenticatorEnrollmentResponder, + respond: (typeof createAppAuthenticatorEnrollment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -123,10 +119,6 @@ const verifyAppAuthenticatorPushNotificationChallenge = b((r) => ({ withStatus: r.withStatus, })) -type VerifyAppAuthenticatorPushNotificationChallengeResponder = - (typeof verifyAppAuthenticatorPushNotificationChallenge)["responder"] & - KoaRuntimeResponder - export type VerifyAppAuthenticatorPushNotificationChallenge = ( params: Params< t_VerifyAppAuthenticatorPushNotificationChallengeParamSchema, @@ -134,7 +126,7 @@ export type VerifyAppAuthenticatorPushNotificationChallenge = ( t_VerifyAppAuthenticatorPushNotificationChallengeBodySchema, void >, - respond: VerifyAppAuthenticatorPushNotificationChallengeResponder, + respond: (typeof verifyAppAuthenticatorPushNotificationChallenge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -153,9 +145,6 @@ const updateAppAuthenticatorEnrollment = b((r) => ({ withStatus: r.withStatus, })) -type UpdateAppAuthenticatorEnrollmentResponder = - (typeof updateAppAuthenticatorEnrollment)["responder"] & KoaRuntimeResponder - export type UpdateAppAuthenticatorEnrollment = ( params: Params< t_UpdateAppAuthenticatorEnrollmentParamSchema, @@ -163,7 +152,7 @@ export type UpdateAppAuthenticatorEnrollment = ( t_UpdateAppAuthenticatorEnrollmentBodySchema, void >, - respond: UpdateAppAuthenticatorEnrollmentResponder, + respond: (typeof updateAppAuthenticatorEnrollment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -181,9 +170,6 @@ const deleteAppAuthenticatorEnrollment = b((r) => ({ withStatus: r.withStatus, })) -type DeleteAppAuthenticatorEnrollmentResponder = - (typeof deleteAppAuthenticatorEnrollment)["responder"] & KoaRuntimeResponder - export type DeleteAppAuthenticatorEnrollment = ( params: Params< t_DeleteAppAuthenticatorEnrollmentParamSchema, @@ -191,7 +177,7 @@ export type DeleteAppAuthenticatorEnrollment = ( void, void >, - respond: DeleteAppAuthenticatorEnrollmentResponder, + respond: (typeof deleteAppAuthenticatorEnrollment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -209,10 +195,6 @@ const listAppAuthenticatorPendingPushNotificationChallenges = b((r) => ({ withStatus: r.withStatus, })) -type ListAppAuthenticatorPendingPushNotificationChallengesResponder = - (typeof listAppAuthenticatorPendingPushNotificationChallenges)["responder"] & - KoaRuntimeResponder - export type ListAppAuthenticatorPendingPushNotificationChallenges = ( params: Params< t_ListAppAuthenticatorPendingPushNotificationChallengesParamSchema, @@ -220,7 +202,7 @@ export type ListAppAuthenticatorPendingPushNotificationChallenges = ( void, void >, - respond: ListAppAuthenticatorPendingPushNotificationChallengesResponder, + respond: (typeof listAppAuthenticatorPendingPushNotificationChallenges)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -235,12 +217,9 @@ const listAuthenticators = b((r) => ({ withStatus: r.withStatus, })) -type ListAuthenticatorsResponder = (typeof listAuthenticators)["responder"] & - KoaRuntimeResponder - export type ListAuthenticators = ( params: Params, - respond: ListAuthenticatorsResponder, + respond: (typeof listAuthenticators)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -257,9 +236,6 @@ const getAuthenticator = b((r) => ({ withStatus: r.withStatus, })) -type GetAuthenticatorResponder = (typeof getAuthenticator)["responder"] & - KoaRuntimeResponder - export type GetAuthenticator = ( params: Params< t_GetAuthenticatorParamSchema, @@ -267,7 +243,7 @@ export type GetAuthenticator = ( void, void >, - respond: GetAuthenticatorResponder, + respond: (typeof getAuthenticator)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -287,12 +263,9 @@ const listEnrollments = b((r) => ({ withStatus: r.withStatus, })) -type ListEnrollmentsResponder = (typeof listEnrollments)["responder"] & - KoaRuntimeResponder - export type ListEnrollments = ( params: Params, - respond: ListEnrollmentsResponder, + respond: (typeof listEnrollments)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -310,12 +283,9 @@ const getEnrollment = b((r) => ({ withStatus: r.withStatus, })) -type GetEnrollmentResponder = (typeof getEnrollment)["responder"] & - KoaRuntimeResponder - export type GetEnrollment = ( params: Params, - respond: GetEnrollmentResponder, + respond: (typeof getEnrollment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -333,9 +303,6 @@ const updateEnrollment = b((r) => ({ withStatus: r.withStatus, })) -type UpdateEnrollmentResponder = (typeof updateEnrollment)["responder"] & - KoaRuntimeResponder - export type UpdateEnrollment = ( params: Params< t_UpdateEnrollmentParamSchema, @@ -343,7 +310,7 @@ export type UpdateEnrollment = ( t_UpdateEnrollmentBodySchema, void >, - respond: UpdateEnrollmentResponder, + respond: (typeof updateEnrollment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -359,12 +326,9 @@ const listEmails = b((r) => ({ withStatus: r.withStatus, })) -type ListEmailsResponder = (typeof listEmails)["responder"] & - KoaRuntimeResponder - export type ListEmails = ( params: Params, - respond: ListEmailsResponder, + respond: (typeof listEmails)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -381,12 +345,9 @@ const createEmail = b((r) => ({ withStatus: r.withStatus, })) -type CreateEmailResponder = (typeof createEmail)["responder"] & - KoaRuntimeResponder - export type CreateEmail = ( params: Params, - respond: CreateEmailResponder, + respond: (typeof createEmail)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -403,11 +364,9 @@ const getEmail = b((r) => ({ withStatus: r.withStatus, })) -type GetEmailResponder = (typeof getEmail)["responder"] & KoaRuntimeResponder - export type GetEmail = ( params: Params, - respond: GetEmailResponder, + respond: (typeof getEmail)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_Email> | Response<401, t_Error> @@ -421,12 +380,9 @@ const deleteEmail = b((r) => ({ withStatus: r.withStatus, })) -type DeleteEmailResponder = (typeof deleteEmail)["responder"] & - KoaRuntimeResponder - export type DeleteEmail = ( params: Params, - respond: DeleteEmailResponder, + respond: (typeof deleteEmail)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -482,9 +438,6 @@ const sendEmailChallenge = b((r) => ({ withStatus: r.withStatus, })) -type SendEmailChallengeResponder = (typeof sendEmailChallenge)["responder"] & - KoaRuntimeResponder - export type SendEmailChallenge = ( params: Params< t_SendEmailChallengeParamSchema, @@ -492,7 +445,7 @@ export type SendEmailChallenge = ( t_SendEmailChallengeBodySchema, void >, - respond: SendEmailChallengeResponder, + respond: (typeof sendEmailChallenge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -575,12 +528,9 @@ const pollChallengeForEmailMagicLink = b((r) => ({ withStatus: r.withStatus, })) -type PollChallengeForEmailMagicLinkResponder = - (typeof pollChallengeForEmailMagicLink)["responder"] & KoaRuntimeResponder - export type PollChallengeForEmailMagicLink = ( params: Params, - respond: PollChallengeForEmailMagicLinkResponder, + respond: (typeof pollChallengeForEmailMagicLink)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -621,9 +571,6 @@ const verifyEmailOtp = b((r) => ({ withStatus: r.withStatus, })) -type VerifyEmailOtpResponder = (typeof verifyEmailOtp)["responder"] & - KoaRuntimeResponder - export type VerifyEmailOtp = ( params: Params< t_VerifyEmailOtpParamSchema, @@ -631,7 +578,7 @@ export type VerifyEmailOtp = ( t_VerifyEmailOtpBodySchema, void >, - respond: VerifyEmailOtpResponder, + respond: (typeof verifyEmailOtp)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -647,12 +594,9 @@ const listOktaApplications = b((r) => ({ withStatus: r.withStatus, })) -type ListOktaApplicationsResponder = - (typeof listOktaApplications)["responder"] & KoaRuntimeResponder - export type ListOktaApplications = ( params: Params, - respond: ListOktaApplicationsResponder, + respond: (typeof listOktaApplications)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -666,12 +610,9 @@ const getOrganization = b((r) => ({ withStatus: r.withStatus, })) -type GetOrganizationResponder = (typeof getOrganization)["responder"] & - KoaRuntimeResponder - export type GetOrganization = ( params: Params, - respond: GetOrganizationResponder, + respond: (typeof getOrganization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -685,12 +626,9 @@ const getPassword = b((r) => ({ withStatus: r.withStatus, })) -type GetPasswordResponder = (typeof getPassword)["responder"] & - KoaRuntimeResponder - export type GetPassword = ( params: Params, - respond: GetPasswordResponder, + respond: (typeof getPassword)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -706,12 +644,9 @@ const createPassword = b((r) => ({ withStatus: r.withStatus, })) -type CreatePasswordResponder = (typeof createPassword)["responder"] & - KoaRuntimeResponder - export type CreatePassword = ( params: Params, - respond: CreatePasswordResponder, + respond: (typeof createPassword)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -729,12 +664,9 @@ const replacePassword = b((r) => ({ withStatus: r.withStatus, })) -type ReplacePasswordResponder = (typeof replacePassword)["responder"] & - KoaRuntimeResponder - export type ReplacePassword = ( params: Params, - respond: ReplacePasswordResponder, + respond: (typeof replacePassword)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -751,12 +683,9 @@ const deletePassword = b((r) => ({ withStatus: r.withStatus, })) -type DeletePasswordResponder = (typeof deletePassword)["responder"] & - KoaRuntimeResponder - export type DeletePassword = ( params: Params, - respond: DeletePasswordResponder, + respond: (typeof deletePassword)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -771,12 +700,9 @@ const listPhones = b((r) => ({ withStatus: r.withStatus, })) -type ListPhonesResponder = (typeof listPhones)["responder"] & - KoaRuntimeResponder - export type ListPhones = ( params: Params, - respond: ListPhonesResponder, + respond: (typeof listPhones)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -794,12 +720,9 @@ const createPhone = b((r) => ({ withStatus: r.withStatus, })) -type CreatePhoneResponder = (typeof createPhone)["responder"] & - KoaRuntimeResponder - export type CreatePhone = ( params: Params, - respond: CreatePhoneResponder, + respond: (typeof createPhone)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -818,11 +741,9 @@ const getPhone = b((r) => ({ withStatus: r.withStatus, })) -type GetPhoneResponder = (typeof getPhone)["responder"] & KoaRuntimeResponder - export type GetPhone = ( params: Params, - respond: GetPhoneResponder, + respond: (typeof getPhone)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -839,12 +760,9 @@ const deletePhone = b((r) => ({ withStatus: r.withStatus, })) -type DeletePhoneResponder = (typeof deletePhone)["responder"] & - KoaRuntimeResponder - export type DeletePhone = ( params: Params, - respond: DeletePhoneResponder, + respond: (typeof deletePhone)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -886,9 +804,6 @@ const sendPhoneChallenge = b((r) => ({ withStatus: r.withStatus, })) -type SendPhoneChallengeResponder = (typeof sendPhoneChallenge)["responder"] & - KoaRuntimeResponder - export type SendPhoneChallenge = ( params: Params< t_SendPhoneChallengeParamSchema, @@ -896,7 +811,7 @@ export type SendPhoneChallenge = ( t_SendPhoneChallengeBodySchema, void >, - respond: SendPhoneChallengeResponder, + respond: (typeof sendPhoneChallenge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -930,9 +845,6 @@ const verifyPhoneChallenge = b((r) => ({ withStatus: r.withStatus, })) -type VerifyPhoneChallengeResponder = - (typeof verifyPhoneChallenge)["responder"] & KoaRuntimeResponder - export type VerifyPhoneChallenge = ( params: Params< t_VerifyPhoneChallengeParamSchema, @@ -940,7 +852,7 @@ export type VerifyPhoneChallenge = ( t_VerifyPhoneChallengeBodySchema, void >, - respond: VerifyPhoneChallengeResponder, + respond: (typeof verifyPhoneChallenge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -958,12 +870,9 @@ const getProfile = b((r) => ({ withStatus: r.withStatus, })) -type GetProfileResponder = (typeof getProfile)["responder"] & - KoaRuntimeResponder - export type GetProfile = ( params: Params, - respond: GetProfileResponder, + respond: (typeof getProfile)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -978,12 +887,9 @@ const replaceProfile = b((r) => ({ withStatus: r.withStatus, })) -type ReplaceProfileResponder = (typeof replaceProfile)["responder"] & - KoaRuntimeResponder - export type ReplaceProfile = ( params: Params, - respond: ReplaceProfileResponder, + respond: (typeof replaceProfile)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -998,12 +904,9 @@ const getProfileSchema = b((r) => ({ withStatus: r.withStatus, })) -type GetProfileSchemaResponder = (typeof getProfileSchema)["responder"] & - KoaRuntimeResponder - export type GetProfileSchema = ( params: Params, - respond: GetProfileSchemaResponder, + respond: (typeof getProfileSchema)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, t_Schema> | Response<401, t_Error> @@ -1016,12 +919,9 @@ const deleteSessions = b((r) => ({ withStatus: r.withStatus, })) -type DeleteSessionsResponder = (typeof deleteSessions)["responder"] & - KoaRuntimeResponder - export type DeleteSessions = ( params: Params, - respond: DeleteSessionsResponder, + respond: (typeof deleteSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse diff --git a/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts index 4aa693a34..115dc1d16 100644 --- a/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/okta.oauth.yaml/generated.ts @@ -115,7 +115,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -132,9 +131,6 @@ const getWellKnownOpenIdConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type GetWellKnownOpenIdConfigurationResponder = - (typeof getWellKnownOpenIdConfiguration)["responder"] & KoaRuntimeResponder - export type GetWellKnownOpenIdConfiguration = ( params: Params< void, @@ -142,7 +138,7 @@ export type GetWellKnownOpenIdConfiguration = ( void, void >, - respond: GetWellKnownOpenIdConfigurationResponder, + respond: (typeof getWellKnownOpenIdConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -155,11 +151,9 @@ const authorize = b((r) => ({ withStatus: r.withStatus, })) -type AuthorizeResponder = (typeof authorize)["responder"] & KoaRuntimeResponder - export type Authorize = ( params: Params, - respond: AuthorizeResponder, + respond: (typeof authorize)["responder"], ctx: RouterContext, ) => Promise | Response<429, t_Error>> @@ -168,12 +162,9 @@ const authorizeWithPost = b((r) => ({ withStatus: r.withStatus, })) -type AuthorizeWithPostResponder = (typeof authorizeWithPost)["responder"] & - KoaRuntimeResponder - export type AuthorizeWithPost = ( params: Params, - respond: AuthorizeWithPostResponder, + respond: (typeof authorizeWithPost)["responder"], ctx: RouterContext, ) => Promise | Response<429, t_Error>> @@ -187,12 +178,9 @@ const bcAuthorize = b((r) => ({ withStatus: r.withStatus, })) -type BcAuthorizeResponder = (typeof bcAuthorize)["responder"] & - KoaRuntimeResponder - export type BcAuthorize = ( params: Params, - respond: BcAuthorizeResponder, + respond: (typeof bcAuthorize)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -211,11 +199,9 @@ const challenge = b((r) => ({ withStatus: r.withStatus, })) -type ChallengeResponder = (typeof challenge)["responder"] & KoaRuntimeResponder - export type Challenge = ( params: Params, - respond: ChallengeResponder, + respond: (typeof challenge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -233,12 +219,9 @@ const listClients = b((r) => ({ withStatus: r.withStatus, })) -type ListClientsResponder = (typeof listClients)["responder"] & - KoaRuntimeResponder - export type ListClients = ( params: Params, - respond: ListClientsResponder, + respond: (typeof listClients)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -255,12 +238,9 @@ const createClient = b((r) => ({ withStatus: r.withStatus, })) -type CreateClientResponder = (typeof createClient)["responder"] & - KoaRuntimeResponder - export type CreateClient = ( params: Params, - respond: CreateClientResponder, + respond: (typeof createClient)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -278,11 +258,9 @@ const getClient = b((r) => ({ withStatus: r.withStatus, })) -type GetClientResponder = (typeof getClient)["responder"] & KoaRuntimeResponder - export type GetClient = ( params: Params, - respond: GetClientResponder, + respond: (typeof getClient)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -301,9 +279,6 @@ const replaceClient = b((r) => ({ withStatus: r.withStatus, })) -type ReplaceClientResponder = (typeof replaceClient)["responder"] & - KoaRuntimeResponder - export type ReplaceClient = ( params: Params< t_ReplaceClientParamSchema, @@ -311,7 +286,7 @@ export type ReplaceClient = ( t_ReplaceClientBodySchema, void >, - respond: ReplaceClientResponder, + respond: (typeof replaceClient)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -330,12 +305,9 @@ const deleteClient = b((r) => ({ withStatus: r.withStatus, })) -type DeleteClientResponder = (typeof deleteClient)["responder"] & - KoaRuntimeResponder - export type DeleteClient = ( params: Params, - respond: DeleteClientResponder, + respond: (typeof deleteClient)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -353,12 +325,9 @@ const generateNewClientSecret = b((r) => ({ withStatus: r.withStatus, })) -type GenerateNewClientSecretResponder = - (typeof generateNewClientSecret)["responder"] & KoaRuntimeResponder - export type GenerateNewClientSecret = ( params: Params, - respond: GenerateNewClientSecretResponder, + respond: (typeof generateNewClientSecret)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -376,12 +345,9 @@ const deviceAuthorize = b((r) => ({ withStatus: r.withStatus, })) -type DeviceAuthorizeResponder = (typeof deviceAuthorize)["responder"] & - KoaRuntimeResponder - export type DeviceAuthorize = ( params: Params, - respond: DeviceAuthorizeResponder, + respond: (typeof deviceAuthorize)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -399,12 +365,9 @@ const globalTokenRevocation = b((r) => ({ withStatus: r.withStatus, })) -type GlobalTokenRevocationResponder = - (typeof globalTokenRevocation)["responder"] & KoaRuntimeResponder - export type GlobalTokenRevocation = ( params: Params, - respond: GlobalTokenRevocationResponder, + respond: (typeof globalTokenRevocation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -422,12 +385,9 @@ const introspect = b((r) => ({ withStatus: r.withStatus, })) -type IntrospectResponder = (typeof introspect)["responder"] & - KoaRuntimeResponder - export type Introspect = ( params: Params, - respond: IntrospectResponder, + respond: (typeof introspect)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -443,11 +403,9 @@ const oauthKeys = b((r) => ({ withStatus: r.withStatus, })) -type OauthKeysResponder = (typeof oauthKeys)["responder"] & KoaRuntimeResponder - export type OauthKeys = ( params: Params, - respond: OauthKeysResponder, + respond: (typeof oauthKeys)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -461,11 +419,9 @@ const logout = b((r) => ({ withStatus: r.withStatus, })) -type LogoutResponder = (typeof logout)["responder"] & KoaRuntimeResponder - export type Logout = ( params: Params, - respond: LogoutResponder, + respond: (typeof logout)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> @@ -477,12 +433,9 @@ const logoutWithPost = b((r) => ({ withStatus: r.withStatus, })) -type LogoutWithPostResponder = (typeof logoutWithPost)["responder"] & - KoaRuntimeResponder - export type LogoutWithPost = ( params: Params, - respond: LogoutWithPostResponder, + respond: (typeof logoutWithPost)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> @@ -497,12 +450,9 @@ const oobAuthenticate = b((r) => ({ withStatus: r.withStatus, })) -type OobAuthenticateResponder = (typeof oobAuthenticate)["responder"] & - KoaRuntimeResponder - export type OobAuthenticate = ( params: Params, - respond: OobAuthenticateResponder, + respond: (typeof oobAuthenticate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -519,12 +469,9 @@ const parOptions = b((r) => ({ withStatus: r.withStatus, })) -type ParOptionsResponder = (typeof parOptions)["responder"] & - KoaRuntimeResponder - export type ParOptions = ( params: Params, - respond: ParOptionsResponder, + respond: (typeof parOptions)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> @@ -539,11 +486,9 @@ const par = b((r) => ({ withStatus: r.withStatus, })) -type ParResponder = (typeof par)["responder"] & KoaRuntimeResponder - export type Par = ( params: Params, - respond: ParResponder, + respond: (typeof par)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -562,11 +507,9 @@ const revoke = b((r) => ({ withStatus: r.withStatus, })) -type RevokeResponder = (typeof revoke)["responder"] & KoaRuntimeResponder - export type Revoke = ( params: Params, - respond: RevokeResponder, + respond: (typeof revoke)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -582,12 +525,9 @@ const tokenOptions = b((r) => ({ withStatus: r.withStatus, })) -type TokenOptionsResponder = (typeof tokenOptions)["responder"] & - KoaRuntimeResponder - export type TokenOptions = ( params: Params, - respond: TokenOptionsResponder, + respond: (typeof tokenOptions)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> @@ -601,11 +541,9 @@ const token = b((r) => ({ withStatus: r.withStatus, })) -type TokenResponder = (typeof token)["responder"] & KoaRuntimeResponder - export type Token = ( params: Params, - respond: TokenResponder, + respond: (typeof token)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -623,11 +561,9 @@ const userinfo = b((r) => ({ withStatus: r.withStatus, })) -type UserinfoResponder = (typeof userinfo)["responder"] & KoaRuntimeResponder - export type Userinfo = ( params: Params, - respond: UserinfoResponder, + respond: (typeof userinfo)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -644,10 +580,6 @@ const getWellKnownOAuthConfigurationCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type GetWellKnownOAuthConfigurationCustomAsResponder = - (typeof getWellKnownOAuthConfigurationCustomAs)["responder"] & - KoaRuntimeResponder - export type GetWellKnownOAuthConfigurationCustomAs = ( params: Params< t_GetWellKnownOAuthConfigurationCustomAsParamSchema, @@ -655,7 +587,7 @@ export type GetWellKnownOAuthConfigurationCustomAs = ( void, void >, - respond: GetWellKnownOAuthConfigurationCustomAsResponder, + respond: (typeof getWellKnownOAuthConfigurationCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -671,10 +603,6 @@ const getWellKnownOpenIdConfigurationCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type GetWellKnownOpenIdConfigurationCustomAsResponder = - (typeof getWellKnownOpenIdConfigurationCustomAs)["responder"] & - KoaRuntimeResponder - export type GetWellKnownOpenIdConfigurationCustomAs = ( params: Params< t_GetWellKnownOpenIdConfigurationCustomAsParamSchema, @@ -682,7 +610,7 @@ export type GetWellKnownOpenIdConfigurationCustomAs = ( void, void >, - respond: GetWellKnownOpenIdConfigurationCustomAsResponder, + respond: (typeof getWellKnownOpenIdConfigurationCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -696,9 +624,6 @@ const authorizeCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type AuthorizeCustomAsResponder = (typeof authorizeCustomAs)["responder"] & - KoaRuntimeResponder - export type AuthorizeCustomAs = ( params: Params< t_AuthorizeCustomAsParamSchema, @@ -706,7 +631,7 @@ export type AuthorizeCustomAs = ( void, void >, - respond: AuthorizeCustomAsResponder, + respond: (typeof authorizeCustomAs)["responder"], ctx: RouterContext, ) => Promise | Response<429, t_Error>> @@ -715,9 +640,6 @@ const authorizeCustomAsWithPost = b((r) => ({ withStatus: r.withStatus, })) -type AuthorizeCustomAsWithPostResponder = - (typeof authorizeCustomAsWithPost)["responder"] & KoaRuntimeResponder - export type AuthorizeCustomAsWithPost = ( params: Params< t_AuthorizeCustomAsWithPostParamSchema, @@ -725,7 +647,7 @@ export type AuthorizeCustomAsWithPost = ( t_AuthorizeCustomAsWithPostBodySchema, void >, - respond: AuthorizeCustomAsWithPostResponder, + respond: (typeof authorizeCustomAsWithPost)["responder"], ctx: RouterContext, ) => Promise | Response<429, t_Error>> @@ -739,9 +661,6 @@ const bcAuthorizeCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type BcAuthorizeCustomAsResponder = (typeof bcAuthorizeCustomAs)["responder"] & - KoaRuntimeResponder - export type BcAuthorizeCustomAs = ( params: Params< t_BcAuthorizeCustomAsParamSchema, @@ -749,7 +668,7 @@ export type BcAuthorizeCustomAs = ( t_BcAuthorizeCustomAsBodySchema, void >, - respond: BcAuthorizeCustomAsResponder, + respond: (typeof bcAuthorizeCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -768,9 +687,6 @@ const challengeCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type ChallengeCustomAsResponder = (typeof challengeCustomAs)["responder"] & - KoaRuntimeResponder - export type ChallengeCustomAs = ( params: Params< t_ChallengeCustomAsParamSchema, @@ -778,7 +694,7 @@ export type ChallengeCustomAs = ( t_ChallengeCustomAsBodySchema, void >, - respond: ChallengeCustomAsResponder, + respond: (typeof challengeCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -797,9 +713,6 @@ const deviceAuthorizeCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type DeviceAuthorizeCustomAsResponder = - (typeof deviceAuthorizeCustomAs)["responder"] & KoaRuntimeResponder - export type DeviceAuthorizeCustomAs = ( params: Params< t_DeviceAuthorizeCustomAsParamSchema, @@ -807,7 +720,7 @@ export type DeviceAuthorizeCustomAs = ( t_DeviceAuthorizeCustomAsBodySchema, void >, - respond: DeviceAuthorizeCustomAsResponder, + respond: (typeof deviceAuthorizeCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -825,9 +738,6 @@ const introspectCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type IntrospectCustomAsResponder = (typeof introspectCustomAs)["responder"] & - KoaRuntimeResponder - export type IntrospectCustomAs = ( params: Params< t_IntrospectCustomAsParamSchema, @@ -835,7 +745,7 @@ export type IntrospectCustomAs = ( t_IntrospectCustomAsBodySchema, void >, - respond: IntrospectCustomAsResponder, + respond: (typeof introspectCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -851,12 +761,9 @@ const oauthKeysCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type OauthKeysCustomAsResponder = (typeof oauthKeysCustomAs)["responder"] & - KoaRuntimeResponder - export type OauthKeysCustomAs = ( params: Params, - respond: OauthKeysCustomAsResponder, + respond: (typeof oauthKeysCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -870,9 +777,6 @@ const logoutCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type LogoutCustomAsResponder = (typeof logoutCustomAs)["responder"] & - KoaRuntimeResponder - export type LogoutCustomAs = ( params: Params< t_LogoutCustomAsParamSchema, @@ -880,7 +784,7 @@ export type LogoutCustomAs = ( void, void >, - respond: LogoutCustomAsResponder, + respond: (typeof logoutCustomAs)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> @@ -892,9 +796,6 @@ const logoutCustomAsWithPost = b((r) => ({ withStatus: r.withStatus, })) -type LogoutCustomAsWithPostResponder = - (typeof logoutCustomAsWithPost)["responder"] & KoaRuntimeResponder - export type LogoutCustomAsWithPost = ( params: Params< t_LogoutCustomAsWithPostParamSchema, @@ -902,7 +803,7 @@ export type LogoutCustomAsWithPost = ( t_LogoutCustomAsWithPostBodySchema, void >, - respond: LogoutCustomAsWithPostResponder, + respond: (typeof logoutCustomAsWithPost)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<200, void> | Response<429, t_Error> @@ -917,9 +818,6 @@ const oobAuthenticateCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type OobAuthenticateCustomAsResponder = - (typeof oobAuthenticateCustomAs)["responder"] & KoaRuntimeResponder - export type OobAuthenticateCustomAs = ( params: Params< t_OobAuthenticateCustomAsParamSchema, @@ -927,7 +825,7 @@ export type OobAuthenticateCustomAs = ( t_OobAuthenticateCustomAsBodySchema, void >, - respond: OobAuthenticateCustomAsResponder, + respond: (typeof oobAuthenticateCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -944,9 +842,6 @@ const parOptionsCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type ParOptionsCustomAsResponder = (typeof parOptionsCustomAs)["responder"] & - KoaRuntimeResponder - export type ParOptionsCustomAs = ( params: Params< t_ParOptionsCustomAsParamSchema, @@ -954,7 +849,7 @@ export type ParOptionsCustomAs = ( void, t_ParOptionsCustomAsHeaderSchema >, - respond: ParOptionsCustomAsResponder, + respond: (typeof parOptionsCustomAs)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> @@ -969,12 +864,9 @@ const parCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type ParCustomAsResponder = (typeof parCustomAs)["responder"] & - KoaRuntimeResponder - export type ParCustomAs = ( params: Params, - respond: ParCustomAsResponder, + respond: (typeof parCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -993,9 +885,6 @@ const revokeCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type RevokeCustomAsResponder = (typeof revokeCustomAs)["responder"] & - KoaRuntimeResponder - export type RevokeCustomAs = ( params: Params< t_RevokeCustomAsParamSchema, @@ -1003,7 +892,7 @@ export type RevokeCustomAs = ( t_RevokeCustomAsBodySchema, void >, - respond: RevokeCustomAsResponder, + respond: (typeof revokeCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1019,9 +908,6 @@ const tokenOptionsCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type TokenOptionsCustomAsResponder = - (typeof tokenOptionsCustomAs)["responder"] & KoaRuntimeResponder - export type TokenOptionsCustomAs = ( params: Params< t_TokenOptionsCustomAsParamSchema, @@ -1029,7 +915,7 @@ export type TokenOptionsCustomAs = ( void, t_TokenOptionsCustomAsHeaderSchema >, - respond: TokenOptionsCustomAsResponder, + respond: (typeof tokenOptionsCustomAs)["responder"], ctx: RouterContext, ) => Promise< KoaRuntimeResponse | Response<204, void> | Response<429, t_Error> @@ -1043,9 +929,6 @@ const tokenCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type TokenCustomAsResponder = (typeof tokenCustomAs)["responder"] & - KoaRuntimeResponder - export type TokenCustomAs = ( params: Params< t_TokenCustomAsParamSchema, @@ -1053,7 +936,7 @@ export type TokenCustomAs = ( t_TokenCustomAsBodySchema, void >, - respond: TokenCustomAsResponder, + respond: (typeof tokenCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1071,12 +954,9 @@ const userinfoCustomAs = b((r) => ({ withStatus: r.withStatus, })) -type UserinfoCustomAsResponder = (typeof userinfoCustomAs)["responder"] & - KoaRuntimeResponder - export type UserinfoCustomAs = ( params: Params, - respond: UserinfoCustomAsResponder, + respond: (typeof userinfoCustomAs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse diff --git a/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts index 621138bc9..bad86b6d9 100644 --- a/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/petstore-expanded.yaml/generated.ts @@ -17,7 +17,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -35,11 +34,9 @@ const findPets = b((r) => ({ withStatus: r.withStatus, })) -type FindPetsResponder = (typeof findPets)["responder"] & KoaRuntimeResponder - export type FindPets = ( params: Params, - respond: FindPetsResponder, + respond: (typeof findPets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -53,11 +50,9 @@ const addPet = b((r) => ({ withStatus: r.withStatus, })) -type AddPetResponder = (typeof addPet)["responder"] & KoaRuntimeResponder - export type AddPet = ( params: Params, - respond: AddPetResponder, + respond: (typeof addPet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -71,12 +66,9 @@ const findPetById = b((r) => ({ withStatus: r.withStatus, })) -type FindPetByIdResponder = (typeof findPetById)["responder"] & - KoaRuntimeResponder - export type FindPetById = ( params: Params, - respond: FindPetByIdResponder, + respond: (typeof findPetById)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -90,11 +82,9 @@ const deletePet = b((r) => ({ withStatus: r.withStatus, })) -type DeletePetResponder = (typeof deletePet)["responder"] & KoaRuntimeResponder - export type DeletePet = ( params: Params, - respond: DeletePetResponder, + respond: (typeof deletePet)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse diff --git a/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts index 4e04ce32d..592dc2729 100644 --- a/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/stripe.yaml/generated.ts @@ -1519,7 +1519,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -1537,9 +1536,6 @@ const getAccount = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountResponder = (typeof getAccount)["responder"] & - KoaRuntimeResponder - export type GetAccount = ( params: Params< void, @@ -1547,7 +1543,7 @@ export type GetAccount = ( t_GetAccountBodySchema | undefined, void >, - respond: GetAccountResponder, + respond: (typeof getAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1561,12 +1557,9 @@ const postAccountLinks = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountLinksResponder = (typeof postAccountLinks)["responder"] & - KoaRuntimeResponder - export type PostAccountLinks = ( params: Params, - respond: PostAccountLinksResponder, + respond: (typeof postAccountLinks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1580,12 +1573,9 @@ const postAccountSessions = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountSessionsResponder = (typeof postAccountSessions)["responder"] & - KoaRuntimeResponder - export type PostAccountSessions = ( params: Params, - respond: PostAccountSessionsResponder, + respond: (typeof postAccountSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1611,9 +1601,6 @@ const getAccounts = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsResponder = (typeof getAccounts)["responder"] & - KoaRuntimeResponder - export type GetAccounts = ( params: Params< void, @@ -1621,7 +1608,7 @@ export type GetAccounts = ( t_GetAccountsBodySchema | undefined, void >, - respond: GetAccountsResponder, + respond: (typeof getAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1643,12 +1630,9 @@ const postAccounts = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsResponder = (typeof postAccounts)["responder"] & - KoaRuntimeResponder - export type PostAccounts = ( params: Params, - respond: PostAccountsResponder, + respond: (typeof postAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1662,9 +1646,6 @@ const deleteAccountsAccount = b((r) => ({ withStatus: r.withStatus, })) -type DeleteAccountsAccountResponder = - (typeof deleteAccountsAccount)["responder"] & KoaRuntimeResponder - export type DeleteAccountsAccount = ( params: Params< t_DeleteAccountsAccountParamSchema, @@ -1672,7 +1653,7 @@ export type DeleteAccountsAccount = ( t_DeleteAccountsAccountBodySchema | undefined, void >, - respond: DeleteAccountsAccountResponder, + respond: (typeof deleteAccountsAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1686,9 +1667,6 @@ const getAccountsAccount = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountResponder = (typeof getAccountsAccount)["responder"] & - KoaRuntimeResponder - export type GetAccountsAccount = ( params: Params< t_GetAccountsAccountParamSchema, @@ -1696,7 +1674,7 @@ export type GetAccountsAccount = ( t_GetAccountsAccountBodySchema | undefined, void >, - respond: GetAccountsAccountResponder, + respond: (typeof getAccountsAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1710,9 +1688,6 @@ const postAccountsAccount = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountResponder = (typeof postAccountsAccount)["responder"] & - KoaRuntimeResponder - export type PostAccountsAccount = ( params: Params< t_PostAccountsAccountParamSchema, @@ -1720,7 +1695,7 @@ export type PostAccountsAccount = ( t_PostAccountsAccountBodySchema | undefined, void >, - respond: PostAccountsAccountResponder, + respond: (typeof postAccountsAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1734,9 +1709,6 @@ const postAccountsAccountBankAccounts = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountBankAccountsResponder = - (typeof postAccountsAccountBankAccounts)["responder"] & KoaRuntimeResponder - export type PostAccountsAccountBankAccounts = ( params: Params< t_PostAccountsAccountBankAccountsParamSchema, @@ -1744,7 +1716,7 @@ export type PostAccountsAccountBankAccounts = ( t_PostAccountsAccountBankAccountsBodySchema | undefined, void >, - respond: PostAccountsAccountBankAccountsResponder, + respond: (typeof postAccountsAccountBankAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1758,10 +1730,6 @@ const deleteAccountsAccountBankAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteAccountsAccountBankAccountsIdResponder = - (typeof deleteAccountsAccountBankAccountsId)["responder"] & - KoaRuntimeResponder - export type DeleteAccountsAccountBankAccountsId = ( params: Params< t_DeleteAccountsAccountBankAccountsIdParamSchema, @@ -1769,7 +1737,7 @@ export type DeleteAccountsAccountBankAccountsId = ( t_DeleteAccountsAccountBankAccountsIdBodySchema | undefined, void >, - respond: DeleteAccountsAccountBankAccountsIdResponder, + respond: (typeof deleteAccountsAccountBankAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1783,9 +1751,6 @@ const getAccountsAccountBankAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountBankAccountsIdResponder = - (typeof getAccountsAccountBankAccountsId)["responder"] & KoaRuntimeResponder - export type GetAccountsAccountBankAccountsId = ( params: Params< t_GetAccountsAccountBankAccountsIdParamSchema, @@ -1793,7 +1758,7 @@ export type GetAccountsAccountBankAccountsId = ( t_GetAccountsAccountBankAccountsIdBodySchema | undefined, void >, - respond: GetAccountsAccountBankAccountsIdResponder, + respond: (typeof getAccountsAccountBankAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1807,9 +1772,6 @@ const postAccountsAccountBankAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountBankAccountsIdResponder = - (typeof postAccountsAccountBankAccountsId)["responder"] & KoaRuntimeResponder - export type PostAccountsAccountBankAccountsId = ( params: Params< t_PostAccountsAccountBankAccountsIdParamSchema, @@ -1817,7 +1779,7 @@ export type PostAccountsAccountBankAccountsId = ( t_PostAccountsAccountBankAccountsIdBodySchema | undefined, void >, - respond: PostAccountsAccountBankAccountsIdResponder, + respond: (typeof postAccountsAccountBankAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1843,9 +1805,6 @@ const getAccountsAccountCapabilities = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountCapabilitiesResponder = - (typeof getAccountsAccountCapabilities)["responder"] & KoaRuntimeResponder - export type GetAccountsAccountCapabilities = ( params: Params< t_GetAccountsAccountCapabilitiesParamSchema, @@ -1853,7 +1812,7 @@ export type GetAccountsAccountCapabilities = ( t_GetAccountsAccountCapabilitiesBodySchema | undefined, void >, - respond: GetAccountsAccountCapabilitiesResponder, + respond: (typeof getAccountsAccountCapabilities)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1875,10 +1834,6 @@ const getAccountsAccountCapabilitiesCapability = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountCapabilitiesCapabilityResponder = - (typeof getAccountsAccountCapabilitiesCapability)["responder"] & - KoaRuntimeResponder - export type GetAccountsAccountCapabilitiesCapability = ( params: Params< t_GetAccountsAccountCapabilitiesCapabilityParamSchema, @@ -1886,7 +1841,7 @@ export type GetAccountsAccountCapabilitiesCapability = ( t_GetAccountsAccountCapabilitiesCapabilityBodySchema | undefined, void >, - respond: GetAccountsAccountCapabilitiesCapabilityResponder, + respond: (typeof getAccountsAccountCapabilitiesCapability)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1900,10 +1855,6 @@ const postAccountsAccountCapabilitiesCapability = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountCapabilitiesCapabilityResponder = - (typeof postAccountsAccountCapabilitiesCapability)["responder"] & - KoaRuntimeResponder - export type PostAccountsAccountCapabilitiesCapability = ( params: Params< t_PostAccountsAccountCapabilitiesCapabilityParamSchema, @@ -1911,7 +1862,7 @@ export type PostAccountsAccountCapabilitiesCapability = ( t_PostAccountsAccountCapabilitiesCapabilityBodySchema | undefined, void >, - respond: PostAccountsAccountCapabilitiesCapabilityResponder, + respond: (typeof postAccountsAccountCapabilitiesCapability)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1939,9 +1890,6 @@ const getAccountsAccountExternalAccounts = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountExternalAccountsResponder = - (typeof getAccountsAccountExternalAccounts)["responder"] & KoaRuntimeResponder - export type GetAccountsAccountExternalAccounts = ( params: Params< t_GetAccountsAccountExternalAccountsParamSchema, @@ -1949,7 +1897,7 @@ export type GetAccountsAccountExternalAccounts = ( t_GetAccountsAccountExternalAccountsBodySchema | undefined, void >, - respond: GetAccountsAccountExternalAccountsResponder, + respond: (typeof getAccountsAccountExternalAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1971,10 +1919,6 @@ const postAccountsAccountExternalAccounts = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountExternalAccountsResponder = - (typeof postAccountsAccountExternalAccounts)["responder"] & - KoaRuntimeResponder - export type PostAccountsAccountExternalAccounts = ( params: Params< t_PostAccountsAccountExternalAccountsParamSchema, @@ -1982,7 +1926,7 @@ export type PostAccountsAccountExternalAccounts = ( t_PostAccountsAccountExternalAccountsBodySchema | undefined, void >, - respond: PostAccountsAccountExternalAccountsResponder, + respond: (typeof postAccountsAccountExternalAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -1996,10 +1940,6 @@ const deleteAccountsAccountExternalAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteAccountsAccountExternalAccountsIdResponder = - (typeof deleteAccountsAccountExternalAccountsId)["responder"] & - KoaRuntimeResponder - export type DeleteAccountsAccountExternalAccountsId = ( params: Params< t_DeleteAccountsAccountExternalAccountsIdParamSchema, @@ -2007,7 +1947,7 @@ export type DeleteAccountsAccountExternalAccountsId = ( t_DeleteAccountsAccountExternalAccountsIdBodySchema | undefined, void >, - respond: DeleteAccountsAccountExternalAccountsIdResponder, + respond: (typeof deleteAccountsAccountExternalAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2021,10 +1961,6 @@ const getAccountsAccountExternalAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountExternalAccountsIdResponder = - (typeof getAccountsAccountExternalAccountsId)["responder"] & - KoaRuntimeResponder - export type GetAccountsAccountExternalAccountsId = ( params: Params< t_GetAccountsAccountExternalAccountsIdParamSchema, @@ -2032,7 +1968,7 @@ export type GetAccountsAccountExternalAccountsId = ( t_GetAccountsAccountExternalAccountsIdBodySchema | undefined, void >, - respond: GetAccountsAccountExternalAccountsIdResponder, + respond: (typeof getAccountsAccountExternalAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2046,10 +1982,6 @@ const postAccountsAccountExternalAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountExternalAccountsIdResponder = - (typeof postAccountsAccountExternalAccountsId)["responder"] & - KoaRuntimeResponder - export type PostAccountsAccountExternalAccountsId = ( params: Params< t_PostAccountsAccountExternalAccountsIdParamSchema, @@ -2057,7 +1989,7 @@ export type PostAccountsAccountExternalAccountsId = ( t_PostAccountsAccountExternalAccountsIdBodySchema | undefined, void >, - respond: PostAccountsAccountExternalAccountsIdResponder, + respond: (typeof postAccountsAccountExternalAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2071,9 +2003,6 @@ const postAccountsAccountLoginLinks = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountLoginLinksResponder = - (typeof postAccountsAccountLoginLinks)["responder"] & KoaRuntimeResponder - export type PostAccountsAccountLoginLinks = ( params: Params< t_PostAccountsAccountLoginLinksParamSchema, @@ -2081,7 +2010,7 @@ export type PostAccountsAccountLoginLinks = ( t_PostAccountsAccountLoginLinksBodySchema | undefined, void >, - respond: PostAccountsAccountLoginLinksResponder, + respond: (typeof postAccountsAccountLoginLinks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2107,9 +2036,6 @@ const getAccountsAccountPeople = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountPeopleResponder = - (typeof getAccountsAccountPeople)["responder"] & KoaRuntimeResponder - export type GetAccountsAccountPeople = ( params: Params< t_GetAccountsAccountPeopleParamSchema, @@ -2117,7 +2043,7 @@ export type GetAccountsAccountPeople = ( t_GetAccountsAccountPeopleBodySchema | undefined, void >, - respond: GetAccountsAccountPeopleResponder, + respond: (typeof getAccountsAccountPeople)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2139,9 +2065,6 @@ const postAccountsAccountPeople = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountPeopleResponder = - (typeof postAccountsAccountPeople)["responder"] & KoaRuntimeResponder - export type PostAccountsAccountPeople = ( params: Params< t_PostAccountsAccountPeopleParamSchema, @@ -2149,7 +2072,7 @@ export type PostAccountsAccountPeople = ( t_PostAccountsAccountPeopleBodySchema | undefined, void >, - respond: PostAccountsAccountPeopleResponder, + respond: (typeof postAccountsAccountPeople)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2163,9 +2086,6 @@ const deleteAccountsAccountPeoplePerson = b((r) => ({ withStatus: r.withStatus, })) -type DeleteAccountsAccountPeoplePersonResponder = - (typeof deleteAccountsAccountPeoplePerson)["responder"] & KoaRuntimeResponder - export type DeleteAccountsAccountPeoplePerson = ( params: Params< t_DeleteAccountsAccountPeoplePersonParamSchema, @@ -2173,7 +2093,7 @@ export type DeleteAccountsAccountPeoplePerson = ( t_DeleteAccountsAccountPeoplePersonBodySchema | undefined, void >, - respond: DeleteAccountsAccountPeoplePersonResponder, + respond: (typeof deleteAccountsAccountPeoplePerson)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2187,9 +2107,6 @@ const getAccountsAccountPeoplePerson = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountPeoplePersonResponder = - (typeof getAccountsAccountPeoplePerson)["responder"] & KoaRuntimeResponder - export type GetAccountsAccountPeoplePerson = ( params: Params< t_GetAccountsAccountPeoplePersonParamSchema, @@ -2197,7 +2114,7 @@ export type GetAccountsAccountPeoplePerson = ( t_GetAccountsAccountPeoplePersonBodySchema | undefined, void >, - respond: GetAccountsAccountPeoplePersonResponder, + respond: (typeof getAccountsAccountPeoplePerson)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2211,9 +2128,6 @@ const postAccountsAccountPeoplePerson = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountPeoplePersonResponder = - (typeof postAccountsAccountPeoplePerson)["responder"] & KoaRuntimeResponder - export type PostAccountsAccountPeoplePerson = ( params: Params< t_PostAccountsAccountPeoplePersonParamSchema, @@ -2221,7 +2135,7 @@ export type PostAccountsAccountPeoplePerson = ( t_PostAccountsAccountPeoplePersonBodySchema | undefined, void >, - respond: PostAccountsAccountPeoplePersonResponder, + respond: (typeof postAccountsAccountPeoplePerson)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2247,9 +2161,6 @@ const getAccountsAccountPersons = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountPersonsResponder = - (typeof getAccountsAccountPersons)["responder"] & KoaRuntimeResponder - export type GetAccountsAccountPersons = ( params: Params< t_GetAccountsAccountPersonsParamSchema, @@ -2257,7 +2168,7 @@ export type GetAccountsAccountPersons = ( t_GetAccountsAccountPersonsBodySchema | undefined, void >, - respond: GetAccountsAccountPersonsResponder, + respond: (typeof getAccountsAccountPersons)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2279,9 +2190,6 @@ const postAccountsAccountPersons = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountPersonsResponder = - (typeof postAccountsAccountPersons)["responder"] & KoaRuntimeResponder - export type PostAccountsAccountPersons = ( params: Params< t_PostAccountsAccountPersonsParamSchema, @@ -2289,7 +2197,7 @@ export type PostAccountsAccountPersons = ( t_PostAccountsAccountPersonsBodySchema | undefined, void >, - respond: PostAccountsAccountPersonsResponder, + respond: (typeof postAccountsAccountPersons)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2303,9 +2211,6 @@ const deleteAccountsAccountPersonsPerson = b((r) => ({ withStatus: r.withStatus, })) -type DeleteAccountsAccountPersonsPersonResponder = - (typeof deleteAccountsAccountPersonsPerson)["responder"] & KoaRuntimeResponder - export type DeleteAccountsAccountPersonsPerson = ( params: Params< t_DeleteAccountsAccountPersonsPersonParamSchema, @@ -2313,7 +2218,7 @@ export type DeleteAccountsAccountPersonsPerson = ( t_DeleteAccountsAccountPersonsPersonBodySchema | undefined, void >, - respond: DeleteAccountsAccountPersonsPersonResponder, + respond: (typeof deleteAccountsAccountPersonsPerson)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2327,9 +2232,6 @@ const getAccountsAccountPersonsPerson = b((r) => ({ withStatus: r.withStatus, })) -type GetAccountsAccountPersonsPersonResponder = - (typeof getAccountsAccountPersonsPerson)["responder"] & KoaRuntimeResponder - export type GetAccountsAccountPersonsPerson = ( params: Params< t_GetAccountsAccountPersonsPersonParamSchema, @@ -2337,7 +2239,7 @@ export type GetAccountsAccountPersonsPerson = ( t_GetAccountsAccountPersonsPersonBodySchema | undefined, void >, - respond: GetAccountsAccountPersonsPersonResponder, + respond: (typeof getAccountsAccountPersonsPerson)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2351,9 +2253,6 @@ const postAccountsAccountPersonsPerson = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountPersonsPersonResponder = - (typeof postAccountsAccountPersonsPerson)["responder"] & KoaRuntimeResponder - export type PostAccountsAccountPersonsPerson = ( params: Params< t_PostAccountsAccountPersonsPersonParamSchema, @@ -2361,7 +2260,7 @@ export type PostAccountsAccountPersonsPerson = ( t_PostAccountsAccountPersonsPersonBodySchema | undefined, void >, - respond: PostAccountsAccountPersonsPersonResponder, + respond: (typeof postAccountsAccountPersonsPerson)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2375,9 +2274,6 @@ const postAccountsAccountReject = b((r) => ({ withStatus: r.withStatus, })) -type PostAccountsAccountRejectResponder = - (typeof postAccountsAccountReject)["responder"] & KoaRuntimeResponder - export type PostAccountsAccountReject = ( params: Params< t_PostAccountsAccountRejectParamSchema, @@ -2385,7 +2281,7 @@ export type PostAccountsAccountReject = ( t_PostAccountsAccountRejectBodySchema, void >, - respond: PostAccountsAccountRejectResponder, + respond: (typeof postAccountsAccountReject)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2411,9 +2307,6 @@ const getApplePayDomains = b((r) => ({ withStatus: r.withStatus, })) -type GetApplePayDomainsResponder = (typeof getApplePayDomains)["responder"] & - KoaRuntimeResponder - export type GetApplePayDomains = ( params: Params< void, @@ -2421,7 +2314,7 @@ export type GetApplePayDomains = ( t_GetApplePayDomainsBodySchema | undefined, void >, - respond: GetApplePayDomainsResponder, + respond: (typeof getApplePayDomains)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2443,12 +2336,9 @@ const postApplePayDomains = b((r) => ({ withStatus: r.withStatus, })) -type PostApplePayDomainsResponder = (typeof postApplePayDomains)["responder"] & - KoaRuntimeResponder - export type PostApplePayDomains = ( params: Params, - respond: PostApplePayDomainsResponder, + respond: (typeof postApplePayDomains)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2462,9 +2352,6 @@ const deleteApplePayDomainsDomain = b((r) => ({ withStatus: r.withStatus, })) -type DeleteApplePayDomainsDomainResponder = - (typeof deleteApplePayDomainsDomain)["responder"] & KoaRuntimeResponder - export type DeleteApplePayDomainsDomain = ( params: Params< t_DeleteApplePayDomainsDomainParamSchema, @@ -2472,7 +2359,7 @@ export type DeleteApplePayDomainsDomain = ( t_DeleteApplePayDomainsDomainBodySchema | undefined, void >, - respond: DeleteApplePayDomainsDomainResponder, + respond: (typeof deleteApplePayDomainsDomain)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2486,9 +2373,6 @@ const getApplePayDomainsDomain = b((r) => ({ withStatus: r.withStatus, })) -type GetApplePayDomainsDomainResponder = - (typeof getApplePayDomainsDomain)["responder"] & KoaRuntimeResponder - export type GetApplePayDomainsDomain = ( params: Params< t_GetApplePayDomainsDomainParamSchema, @@ -2496,7 +2380,7 @@ export type GetApplePayDomainsDomain = ( t_GetApplePayDomainsDomainBodySchema | undefined, void >, - respond: GetApplePayDomainsDomainResponder, + respond: (typeof getApplePayDomainsDomain)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2522,9 +2406,6 @@ const getApplicationFees = b((r) => ({ withStatus: r.withStatus, })) -type GetApplicationFeesResponder = (typeof getApplicationFees)["responder"] & - KoaRuntimeResponder - export type GetApplicationFees = ( params: Params< void, @@ -2532,7 +2413,7 @@ export type GetApplicationFees = ( t_GetApplicationFeesBodySchema | undefined, void >, - respond: GetApplicationFeesResponder, + respond: (typeof getApplicationFees)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2554,9 +2435,6 @@ const getApplicationFeesFeeRefundsId = b((r) => ({ withStatus: r.withStatus, })) -type GetApplicationFeesFeeRefundsIdResponder = - (typeof getApplicationFeesFeeRefundsId)["responder"] & KoaRuntimeResponder - export type GetApplicationFeesFeeRefundsId = ( params: Params< t_GetApplicationFeesFeeRefundsIdParamSchema, @@ -2564,7 +2442,7 @@ export type GetApplicationFeesFeeRefundsId = ( t_GetApplicationFeesFeeRefundsIdBodySchema | undefined, void >, - respond: GetApplicationFeesFeeRefundsIdResponder, + respond: (typeof getApplicationFeesFeeRefundsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2578,9 +2456,6 @@ const postApplicationFeesFeeRefundsId = b((r) => ({ withStatus: r.withStatus, })) -type PostApplicationFeesFeeRefundsIdResponder = - (typeof postApplicationFeesFeeRefundsId)["responder"] & KoaRuntimeResponder - export type PostApplicationFeesFeeRefundsId = ( params: Params< t_PostApplicationFeesFeeRefundsIdParamSchema, @@ -2588,7 +2463,7 @@ export type PostApplicationFeesFeeRefundsId = ( t_PostApplicationFeesFeeRefundsIdBodySchema | undefined, void >, - respond: PostApplicationFeesFeeRefundsIdResponder, + respond: (typeof postApplicationFeesFeeRefundsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2602,9 +2477,6 @@ const getApplicationFeesId = b((r) => ({ withStatus: r.withStatus, })) -type GetApplicationFeesIdResponder = - (typeof getApplicationFeesId)["responder"] & KoaRuntimeResponder - export type GetApplicationFeesId = ( params: Params< t_GetApplicationFeesIdParamSchema, @@ -2612,7 +2484,7 @@ export type GetApplicationFeesId = ( t_GetApplicationFeesIdBodySchema | undefined, void >, - respond: GetApplicationFeesIdResponder, + respond: (typeof getApplicationFeesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2626,9 +2498,6 @@ const postApplicationFeesIdRefund = b((r) => ({ withStatus: r.withStatus, })) -type PostApplicationFeesIdRefundResponder = - (typeof postApplicationFeesIdRefund)["responder"] & KoaRuntimeResponder - export type PostApplicationFeesIdRefund = ( params: Params< t_PostApplicationFeesIdRefundParamSchema, @@ -2636,7 +2505,7 @@ export type PostApplicationFeesIdRefund = ( t_PostApplicationFeesIdRefundBodySchema | undefined, void >, - respond: PostApplicationFeesIdRefundResponder, + respond: (typeof postApplicationFeesIdRefund)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2662,9 +2531,6 @@ const getApplicationFeesIdRefunds = b((r) => ({ withStatus: r.withStatus, })) -type GetApplicationFeesIdRefundsResponder = - (typeof getApplicationFeesIdRefunds)["responder"] & KoaRuntimeResponder - export type GetApplicationFeesIdRefunds = ( params: Params< t_GetApplicationFeesIdRefundsParamSchema, @@ -2672,7 +2538,7 @@ export type GetApplicationFeesIdRefunds = ( t_GetApplicationFeesIdRefundsBodySchema | undefined, void >, - respond: GetApplicationFeesIdRefundsResponder, + respond: (typeof getApplicationFeesIdRefunds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2694,9 +2560,6 @@ const postApplicationFeesIdRefunds = b((r) => ({ withStatus: r.withStatus, })) -type PostApplicationFeesIdRefundsResponder = - (typeof postApplicationFeesIdRefunds)["responder"] & KoaRuntimeResponder - export type PostApplicationFeesIdRefunds = ( params: Params< t_PostApplicationFeesIdRefundsParamSchema, @@ -2704,7 +2567,7 @@ export type PostApplicationFeesIdRefunds = ( t_PostApplicationFeesIdRefundsBodySchema | undefined, void >, - respond: PostApplicationFeesIdRefundsResponder, + respond: (typeof postApplicationFeesIdRefunds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2730,9 +2593,6 @@ const getAppsSecrets = b((r) => ({ withStatus: r.withStatus, })) -type GetAppsSecretsResponder = (typeof getAppsSecrets)["responder"] & - KoaRuntimeResponder - export type GetAppsSecrets = ( params: Params< void, @@ -2740,7 +2600,7 @@ export type GetAppsSecrets = ( t_GetAppsSecretsBodySchema | undefined, void >, - respond: GetAppsSecretsResponder, + respond: (typeof getAppsSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2762,12 +2622,9 @@ const postAppsSecrets = b((r) => ({ withStatus: r.withStatus, })) -type PostAppsSecretsResponder = (typeof postAppsSecrets)["responder"] & - KoaRuntimeResponder - export type PostAppsSecrets = ( params: Params, - respond: PostAppsSecretsResponder, + respond: (typeof postAppsSecrets)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2781,12 +2638,9 @@ const postAppsSecretsDelete = b((r) => ({ withStatus: r.withStatus, })) -type PostAppsSecretsDeleteResponder = - (typeof postAppsSecretsDelete)["responder"] & KoaRuntimeResponder - export type PostAppsSecretsDelete = ( params: Params, - respond: PostAppsSecretsDeleteResponder, + respond: (typeof postAppsSecretsDelete)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2800,9 +2654,6 @@ const getAppsSecretsFind = b((r) => ({ withStatus: r.withStatus, })) -type GetAppsSecretsFindResponder = (typeof getAppsSecretsFind)["responder"] & - KoaRuntimeResponder - export type GetAppsSecretsFind = ( params: Params< void, @@ -2810,7 +2661,7 @@ export type GetAppsSecretsFind = ( t_GetAppsSecretsFindBodySchema | undefined, void >, - respond: GetAppsSecretsFindResponder, + respond: (typeof getAppsSecretsFind)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2824,9 +2675,6 @@ const getBalance = b((r) => ({ withStatus: r.withStatus, })) -type GetBalanceResponder = (typeof getBalance)["responder"] & - KoaRuntimeResponder - export type GetBalance = ( params: Params< void, @@ -2834,7 +2682,7 @@ export type GetBalance = ( t_GetBalanceBodySchema | undefined, void >, - respond: GetBalanceResponder, + respond: (typeof getBalance)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2860,9 +2708,6 @@ const getBalanceHistory = b((r) => ({ withStatus: r.withStatus, })) -type GetBalanceHistoryResponder = (typeof getBalanceHistory)["responder"] & - KoaRuntimeResponder - export type GetBalanceHistory = ( params: Params< void, @@ -2870,7 +2715,7 @@ export type GetBalanceHistory = ( t_GetBalanceHistoryBodySchema | undefined, void >, - respond: GetBalanceHistoryResponder, + respond: (typeof getBalanceHistory)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2892,9 +2737,6 @@ const getBalanceHistoryId = b((r) => ({ withStatus: r.withStatus, })) -type GetBalanceHistoryIdResponder = (typeof getBalanceHistoryId)["responder"] & - KoaRuntimeResponder - export type GetBalanceHistoryId = ( params: Params< t_GetBalanceHistoryIdParamSchema, @@ -2902,7 +2744,7 @@ export type GetBalanceHistoryId = ( t_GetBalanceHistoryIdBodySchema | undefined, void >, - respond: GetBalanceHistoryIdResponder, + respond: (typeof getBalanceHistoryId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2928,9 +2770,6 @@ const getBalanceTransactions = b((r) => ({ withStatus: r.withStatus, })) -type GetBalanceTransactionsResponder = - (typeof getBalanceTransactions)["responder"] & KoaRuntimeResponder - export type GetBalanceTransactions = ( params: Params< void, @@ -2938,7 +2777,7 @@ export type GetBalanceTransactions = ( t_GetBalanceTransactionsBodySchema | undefined, void >, - respond: GetBalanceTransactionsResponder, + respond: (typeof getBalanceTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2960,9 +2799,6 @@ const getBalanceTransactionsId = b((r) => ({ withStatus: r.withStatus, })) -type GetBalanceTransactionsIdResponder = - (typeof getBalanceTransactionsId)["responder"] & KoaRuntimeResponder - export type GetBalanceTransactionsId = ( params: Params< t_GetBalanceTransactionsIdParamSchema, @@ -2970,7 +2806,7 @@ export type GetBalanceTransactionsId = ( t_GetBalanceTransactionsIdBodySchema | undefined, void >, - respond: GetBalanceTransactionsIdResponder, + respond: (typeof getBalanceTransactionsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -2996,9 +2832,6 @@ const getBillingAlerts = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingAlertsResponder = (typeof getBillingAlerts)["responder"] & - KoaRuntimeResponder - export type GetBillingAlerts = ( params: Params< void, @@ -3006,7 +2839,7 @@ export type GetBillingAlerts = ( t_GetBillingAlertsBodySchema | undefined, void >, - respond: GetBillingAlertsResponder, + respond: (typeof getBillingAlerts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3028,12 +2861,9 @@ const postBillingAlerts = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingAlertsResponder = (typeof postBillingAlerts)["responder"] & - KoaRuntimeResponder - export type PostBillingAlerts = ( params: Params, - respond: PostBillingAlertsResponder, + respond: (typeof postBillingAlerts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3047,9 +2877,6 @@ const getBillingAlertsId = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingAlertsIdResponder = (typeof getBillingAlertsId)["responder"] & - KoaRuntimeResponder - export type GetBillingAlertsId = ( params: Params< t_GetBillingAlertsIdParamSchema, @@ -3057,7 +2884,7 @@ export type GetBillingAlertsId = ( t_GetBillingAlertsIdBodySchema | undefined, void >, - respond: GetBillingAlertsIdResponder, + respond: (typeof getBillingAlertsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3071,9 +2898,6 @@ const postBillingAlertsIdActivate = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingAlertsIdActivateResponder = - (typeof postBillingAlertsIdActivate)["responder"] & KoaRuntimeResponder - export type PostBillingAlertsIdActivate = ( params: Params< t_PostBillingAlertsIdActivateParamSchema, @@ -3081,7 +2905,7 @@ export type PostBillingAlertsIdActivate = ( t_PostBillingAlertsIdActivateBodySchema | undefined, void >, - respond: PostBillingAlertsIdActivateResponder, + respond: (typeof postBillingAlertsIdActivate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3095,9 +2919,6 @@ const postBillingAlertsIdArchive = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingAlertsIdArchiveResponder = - (typeof postBillingAlertsIdArchive)["responder"] & KoaRuntimeResponder - export type PostBillingAlertsIdArchive = ( params: Params< t_PostBillingAlertsIdArchiveParamSchema, @@ -3105,7 +2926,7 @@ export type PostBillingAlertsIdArchive = ( t_PostBillingAlertsIdArchiveBodySchema | undefined, void >, - respond: PostBillingAlertsIdArchiveResponder, + respond: (typeof postBillingAlertsIdArchive)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3119,9 +2940,6 @@ const postBillingAlertsIdDeactivate = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingAlertsIdDeactivateResponder = - (typeof postBillingAlertsIdDeactivate)["responder"] & KoaRuntimeResponder - export type PostBillingAlertsIdDeactivate = ( params: Params< t_PostBillingAlertsIdDeactivateParamSchema, @@ -3129,7 +2947,7 @@ export type PostBillingAlertsIdDeactivate = ( t_PostBillingAlertsIdDeactivateBodySchema | undefined, void >, - respond: PostBillingAlertsIdDeactivateResponder, + respond: (typeof postBillingAlertsIdDeactivate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3145,9 +2963,6 @@ const getBillingCreditBalanceSummary = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingCreditBalanceSummaryResponder = - (typeof getBillingCreditBalanceSummary)["responder"] & KoaRuntimeResponder - export type GetBillingCreditBalanceSummary = ( params: Params< void, @@ -3155,7 +2970,7 @@ export type GetBillingCreditBalanceSummary = ( t_GetBillingCreditBalanceSummaryBodySchema | undefined, void >, - respond: GetBillingCreditBalanceSummaryResponder, + respond: (typeof getBillingCreditBalanceSummary)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3181,10 +2996,6 @@ const getBillingCreditBalanceTransactions = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingCreditBalanceTransactionsResponder = - (typeof getBillingCreditBalanceTransactions)["responder"] & - KoaRuntimeResponder - export type GetBillingCreditBalanceTransactions = ( params: Params< void, @@ -3192,7 +3003,7 @@ export type GetBillingCreditBalanceTransactions = ( t_GetBillingCreditBalanceTransactionsBodySchema | undefined, void >, - respond: GetBillingCreditBalanceTransactionsResponder, + respond: (typeof getBillingCreditBalanceTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3216,10 +3027,6 @@ const getBillingCreditBalanceTransactionsId = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingCreditBalanceTransactionsIdResponder = - (typeof getBillingCreditBalanceTransactionsId)["responder"] & - KoaRuntimeResponder - export type GetBillingCreditBalanceTransactionsId = ( params: Params< t_GetBillingCreditBalanceTransactionsIdParamSchema, @@ -3227,7 +3034,7 @@ export type GetBillingCreditBalanceTransactionsId = ( t_GetBillingCreditBalanceTransactionsIdBodySchema | undefined, void >, - respond: GetBillingCreditBalanceTransactionsIdResponder, + respond: (typeof getBillingCreditBalanceTransactionsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3253,9 +3060,6 @@ const getBillingCreditGrants = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingCreditGrantsResponder = - (typeof getBillingCreditGrants)["responder"] & KoaRuntimeResponder - export type GetBillingCreditGrants = ( params: Params< void, @@ -3263,7 +3067,7 @@ export type GetBillingCreditGrants = ( t_GetBillingCreditGrantsBodySchema | undefined, void >, - respond: GetBillingCreditGrantsResponder, + respond: (typeof getBillingCreditGrants)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3285,12 +3089,9 @@ const postBillingCreditGrants = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingCreditGrantsResponder = - (typeof postBillingCreditGrants)["responder"] & KoaRuntimeResponder - export type PostBillingCreditGrants = ( params: Params, - respond: PostBillingCreditGrantsResponder, + respond: (typeof postBillingCreditGrants)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3304,9 +3105,6 @@ const getBillingCreditGrantsId = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingCreditGrantsIdResponder = - (typeof getBillingCreditGrantsId)["responder"] & KoaRuntimeResponder - export type GetBillingCreditGrantsId = ( params: Params< t_GetBillingCreditGrantsIdParamSchema, @@ -3314,7 +3112,7 @@ export type GetBillingCreditGrantsId = ( t_GetBillingCreditGrantsIdBodySchema | undefined, void >, - respond: GetBillingCreditGrantsIdResponder, + respond: (typeof getBillingCreditGrantsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3328,9 +3126,6 @@ const postBillingCreditGrantsId = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingCreditGrantsIdResponder = - (typeof postBillingCreditGrantsId)["responder"] & KoaRuntimeResponder - export type PostBillingCreditGrantsId = ( params: Params< t_PostBillingCreditGrantsIdParamSchema, @@ -3338,7 +3133,7 @@ export type PostBillingCreditGrantsId = ( t_PostBillingCreditGrantsIdBodySchema | undefined, void >, - respond: PostBillingCreditGrantsIdResponder, + respond: (typeof postBillingCreditGrantsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3352,9 +3147,6 @@ const postBillingCreditGrantsIdExpire = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingCreditGrantsIdExpireResponder = - (typeof postBillingCreditGrantsIdExpire)["responder"] & KoaRuntimeResponder - export type PostBillingCreditGrantsIdExpire = ( params: Params< t_PostBillingCreditGrantsIdExpireParamSchema, @@ -3362,7 +3154,7 @@ export type PostBillingCreditGrantsIdExpire = ( t_PostBillingCreditGrantsIdExpireBodySchema | undefined, void >, - respond: PostBillingCreditGrantsIdExpireResponder, + respond: (typeof postBillingCreditGrantsIdExpire)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3376,9 +3168,6 @@ const postBillingCreditGrantsIdVoid = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingCreditGrantsIdVoidResponder = - (typeof postBillingCreditGrantsIdVoid)["responder"] & KoaRuntimeResponder - export type PostBillingCreditGrantsIdVoid = ( params: Params< t_PostBillingCreditGrantsIdVoidParamSchema, @@ -3386,7 +3175,7 @@ export type PostBillingCreditGrantsIdVoid = ( t_PostBillingCreditGrantsIdVoidBodySchema | undefined, void >, - respond: PostBillingCreditGrantsIdVoidResponder, + respond: (typeof postBillingCreditGrantsIdVoid)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3402,9 +3191,6 @@ const postBillingMeterEventAdjustments = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingMeterEventAdjustmentsResponder = - (typeof postBillingMeterEventAdjustments)["responder"] & KoaRuntimeResponder - export type PostBillingMeterEventAdjustments = ( params: Params< void, @@ -3412,7 +3198,7 @@ export type PostBillingMeterEventAdjustments = ( t_PostBillingMeterEventAdjustmentsBodySchema, void >, - respond: PostBillingMeterEventAdjustmentsResponder, + respond: (typeof postBillingMeterEventAdjustments)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3426,12 +3212,9 @@ const postBillingMeterEvents = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingMeterEventsResponder = - (typeof postBillingMeterEvents)["responder"] & KoaRuntimeResponder - export type PostBillingMeterEvents = ( params: Params, - respond: PostBillingMeterEventsResponder, + respond: (typeof postBillingMeterEvents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3457,9 +3240,6 @@ const getBillingMeters = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingMetersResponder = (typeof getBillingMeters)["responder"] & - KoaRuntimeResponder - export type GetBillingMeters = ( params: Params< void, @@ -3467,7 +3247,7 @@ export type GetBillingMeters = ( t_GetBillingMetersBodySchema | undefined, void >, - respond: GetBillingMetersResponder, + respond: (typeof getBillingMeters)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3489,12 +3269,9 @@ const postBillingMeters = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingMetersResponder = (typeof postBillingMeters)["responder"] & - KoaRuntimeResponder - export type PostBillingMeters = ( params: Params, - respond: PostBillingMetersResponder, + respond: (typeof postBillingMeters)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3508,9 +3285,6 @@ const getBillingMetersId = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingMetersIdResponder = (typeof getBillingMetersId)["responder"] & - KoaRuntimeResponder - export type GetBillingMetersId = ( params: Params< t_GetBillingMetersIdParamSchema, @@ -3518,7 +3292,7 @@ export type GetBillingMetersId = ( t_GetBillingMetersIdBodySchema | undefined, void >, - respond: GetBillingMetersIdResponder, + respond: (typeof getBillingMetersId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3532,9 +3306,6 @@ const postBillingMetersId = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingMetersIdResponder = (typeof postBillingMetersId)["responder"] & - KoaRuntimeResponder - export type PostBillingMetersId = ( params: Params< t_PostBillingMetersIdParamSchema, @@ -3542,7 +3313,7 @@ export type PostBillingMetersId = ( t_PostBillingMetersIdBodySchema | undefined, void >, - respond: PostBillingMetersIdResponder, + respond: (typeof postBillingMetersId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3556,9 +3327,6 @@ const postBillingMetersIdDeactivate = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingMetersIdDeactivateResponder = - (typeof postBillingMetersIdDeactivate)["responder"] & KoaRuntimeResponder - export type PostBillingMetersIdDeactivate = ( params: Params< t_PostBillingMetersIdDeactivateParamSchema, @@ -3566,7 +3334,7 @@ export type PostBillingMetersIdDeactivate = ( t_PostBillingMetersIdDeactivateBodySchema | undefined, void >, - respond: PostBillingMetersIdDeactivateResponder, + respond: (typeof postBillingMetersIdDeactivate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3595,9 +3363,6 @@ const getBillingMetersIdEventSummaries = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingMetersIdEventSummariesResponder = - (typeof getBillingMetersIdEventSummaries)["responder"] & KoaRuntimeResponder - export type GetBillingMetersIdEventSummaries = ( params: Params< t_GetBillingMetersIdEventSummariesParamSchema, @@ -3605,7 +3370,7 @@ export type GetBillingMetersIdEventSummaries = ( t_GetBillingMetersIdEventSummariesBodySchema | undefined, void >, - respond: GetBillingMetersIdEventSummariesResponder, + respond: (typeof getBillingMetersIdEventSummaries)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3627,9 +3392,6 @@ const postBillingMetersIdReactivate = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingMetersIdReactivateResponder = - (typeof postBillingMetersIdReactivate)["responder"] & KoaRuntimeResponder - export type PostBillingMetersIdReactivate = ( params: Params< t_PostBillingMetersIdReactivateParamSchema, @@ -3637,7 +3399,7 @@ export type PostBillingMetersIdReactivate = ( t_PostBillingMetersIdReactivateBodySchema | undefined, void >, - respond: PostBillingMetersIdReactivateResponder, + respond: (typeof postBillingMetersIdReactivate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3666,9 +3428,6 @@ const getBillingPortalConfigurations = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingPortalConfigurationsResponder = - (typeof getBillingPortalConfigurations)["responder"] & KoaRuntimeResponder - export type GetBillingPortalConfigurations = ( params: Params< void, @@ -3676,7 +3435,7 @@ export type GetBillingPortalConfigurations = ( t_GetBillingPortalConfigurationsBodySchema | undefined, void >, - respond: GetBillingPortalConfigurationsResponder, + respond: (typeof getBillingPortalConfigurations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3700,12 +3459,9 @@ const postBillingPortalConfigurations = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingPortalConfigurationsResponder = - (typeof postBillingPortalConfigurations)["responder"] & KoaRuntimeResponder - export type PostBillingPortalConfigurations = ( params: Params, - respond: PostBillingPortalConfigurationsResponder, + respond: (typeof postBillingPortalConfigurations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3721,10 +3477,6 @@ const getBillingPortalConfigurationsConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type GetBillingPortalConfigurationsConfigurationResponder = - (typeof getBillingPortalConfigurationsConfiguration)["responder"] & - KoaRuntimeResponder - export type GetBillingPortalConfigurationsConfiguration = ( params: Params< t_GetBillingPortalConfigurationsConfigurationParamSchema, @@ -3732,7 +3484,7 @@ export type GetBillingPortalConfigurationsConfiguration = ( t_GetBillingPortalConfigurationsConfigurationBodySchema | undefined, void >, - respond: GetBillingPortalConfigurationsConfigurationResponder, + respond: (typeof getBillingPortalConfigurationsConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3748,10 +3500,6 @@ const postBillingPortalConfigurationsConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingPortalConfigurationsConfigurationResponder = - (typeof postBillingPortalConfigurationsConfiguration)["responder"] & - KoaRuntimeResponder - export type PostBillingPortalConfigurationsConfiguration = ( params: Params< t_PostBillingPortalConfigurationsConfigurationParamSchema, @@ -3759,7 +3507,7 @@ export type PostBillingPortalConfigurationsConfiguration = ( t_PostBillingPortalConfigurationsConfigurationBodySchema | undefined, void >, - respond: PostBillingPortalConfigurationsConfigurationResponder, + respond: (typeof postBillingPortalConfigurationsConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3773,12 +3521,9 @@ const postBillingPortalSessions = b((r) => ({ withStatus: r.withStatus, })) -type PostBillingPortalSessionsResponder = - (typeof postBillingPortalSessions)["responder"] & KoaRuntimeResponder - export type PostBillingPortalSessions = ( params: Params, - respond: PostBillingPortalSessionsResponder, + respond: (typeof postBillingPortalSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3804,9 +3549,6 @@ const getCharges = b((r) => ({ withStatus: r.withStatus, })) -type GetChargesResponder = (typeof getCharges)["responder"] & - KoaRuntimeResponder - export type GetCharges = ( params: Params< void, @@ -3814,7 +3556,7 @@ export type GetCharges = ( t_GetChargesBodySchema | undefined, void >, - respond: GetChargesResponder, + respond: (typeof getCharges)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3836,12 +3578,9 @@ const postCharges = b((r) => ({ withStatus: r.withStatus, })) -type PostChargesResponder = (typeof postCharges)["responder"] & - KoaRuntimeResponder - export type PostCharges = ( params: Params, - respond: PostChargesResponder, + respond: (typeof postCharges)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3871,9 +3610,6 @@ const getChargesSearch = b((r) => ({ withStatus: r.withStatus, })) -type GetChargesSearchResponder = (typeof getChargesSearch)["responder"] & - KoaRuntimeResponder - export type GetChargesSearch = ( params: Params< void, @@ -3881,7 +3617,7 @@ export type GetChargesSearch = ( t_GetChargesSearchBodySchema | undefined, void >, - respond: GetChargesSearchResponder, + respond: (typeof getChargesSearch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3905,9 +3641,6 @@ const getChargesCharge = b((r) => ({ withStatus: r.withStatus, })) -type GetChargesChargeResponder = (typeof getChargesCharge)["responder"] & - KoaRuntimeResponder - export type GetChargesCharge = ( params: Params< t_GetChargesChargeParamSchema, @@ -3915,7 +3648,7 @@ export type GetChargesCharge = ( t_GetChargesChargeBodySchema | undefined, void >, - respond: GetChargesChargeResponder, + respond: (typeof getChargesCharge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3929,9 +3662,6 @@ const postChargesCharge = b((r) => ({ withStatus: r.withStatus, })) -type PostChargesChargeResponder = (typeof postChargesCharge)["responder"] & - KoaRuntimeResponder - export type PostChargesCharge = ( params: Params< t_PostChargesChargeParamSchema, @@ -3939,7 +3669,7 @@ export type PostChargesCharge = ( t_PostChargesChargeBodySchema | undefined, void >, - respond: PostChargesChargeResponder, + respond: (typeof postChargesCharge)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3953,9 +3683,6 @@ const postChargesChargeCapture = b((r) => ({ withStatus: r.withStatus, })) -type PostChargesChargeCaptureResponder = - (typeof postChargesChargeCapture)["responder"] & KoaRuntimeResponder - export type PostChargesChargeCapture = ( params: Params< t_PostChargesChargeCaptureParamSchema, @@ -3963,7 +3690,7 @@ export type PostChargesChargeCapture = ( t_PostChargesChargeCaptureBodySchema | undefined, void >, - respond: PostChargesChargeCaptureResponder, + respond: (typeof postChargesChargeCapture)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -3977,9 +3704,6 @@ const getChargesChargeDispute = b((r) => ({ withStatus: r.withStatus, })) -type GetChargesChargeDisputeResponder = - (typeof getChargesChargeDispute)["responder"] & KoaRuntimeResponder - export type GetChargesChargeDispute = ( params: Params< t_GetChargesChargeDisputeParamSchema, @@ -3987,7 +3711,7 @@ export type GetChargesChargeDispute = ( t_GetChargesChargeDisputeBodySchema | undefined, void >, - respond: GetChargesChargeDisputeResponder, + respond: (typeof getChargesChargeDispute)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4001,9 +3725,6 @@ const postChargesChargeDispute = b((r) => ({ withStatus: r.withStatus, })) -type PostChargesChargeDisputeResponder = - (typeof postChargesChargeDispute)["responder"] & KoaRuntimeResponder - export type PostChargesChargeDispute = ( params: Params< t_PostChargesChargeDisputeParamSchema, @@ -4011,7 +3732,7 @@ export type PostChargesChargeDispute = ( t_PostChargesChargeDisputeBodySchema | undefined, void >, - respond: PostChargesChargeDisputeResponder, + respond: (typeof postChargesChargeDispute)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4025,9 +3746,6 @@ const postChargesChargeDisputeClose = b((r) => ({ withStatus: r.withStatus, })) -type PostChargesChargeDisputeCloseResponder = - (typeof postChargesChargeDisputeClose)["responder"] & KoaRuntimeResponder - export type PostChargesChargeDisputeClose = ( params: Params< t_PostChargesChargeDisputeCloseParamSchema, @@ -4035,7 +3753,7 @@ export type PostChargesChargeDisputeClose = ( t_PostChargesChargeDisputeCloseBodySchema | undefined, void >, - respond: PostChargesChargeDisputeCloseResponder, + respond: (typeof postChargesChargeDisputeClose)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4049,9 +3767,6 @@ const postChargesChargeRefund = b((r) => ({ withStatus: r.withStatus, })) -type PostChargesChargeRefundResponder = - (typeof postChargesChargeRefund)["responder"] & KoaRuntimeResponder - export type PostChargesChargeRefund = ( params: Params< t_PostChargesChargeRefundParamSchema, @@ -4059,7 +3774,7 @@ export type PostChargesChargeRefund = ( t_PostChargesChargeRefundBodySchema | undefined, void >, - respond: PostChargesChargeRefundResponder, + respond: (typeof postChargesChargeRefund)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4085,9 +3800,6 @@ const getChargesChargeRefunds = b((r) => ({ withStatus: r.withStatus, })) -type GetChargesChargeRefundsResponder = - (typeof getChargesChargeRefunds)["responder"] & KoaRuntimeResponder - export type GetChargesChargeRefunds = ( params: Params< t_GetChargesChargeRefundsParamSchema, @@ -4095,7 +3807,7 @@ export type GetChargesChargeRefunds = ( t_GetChargesChargeRefundsBodySchema | undefined, void >, - respond: GetChargesChargeRefundsResponder, + respond: (typeof getChargesChargeRefunds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4117,9 +3829,6 @@ const postChargesChargeRefunds = b((r) => ({ withStatus: r.withStatus, })) -type PostChargesChargeRefundsResponder = - (typeof postChargesChargeRefunds)["responder"] & KoaRuntimeResponder - export type PostChargesChargeRefunds = ( params: Params< t_PostChargesChargeRefundsParamSchema, @@ -4127,7 +3836,7 @@ export type PostChargesChargeRefunds = ( t_PostChargesChargeRefundsBodySchema | undefined, void >, - respond: PostChargesChargeRefundsResponder, + respond: (typeof postChargesChargeRefunds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4141,9 +3850,6 @@ const getChargesChargeRefundsRefund = b((r) => ({ withStatus: r.withStatus, })) -type GetChargesChargeRefundsRefundResponder = - (typeof getChargesChargeRefundsRefund)["responder"] & KoaRuntimeResponder - export type GetChargesChargeRefundsRefund = ( params: Params< t_GetChargesChargeRefundsRefundParamSchema, @@ -4151,7 +3857,7 @@ export type GetChargesChargeRefundsRefund = ( t_GetChargesChargeRefundsRefundBodySchema | undefined, void >, - respond: GetChargesChargeRefundsRefundResponder, + respond: (typeof getChargesChargeRefundsRefund)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4165,9 +3871,6 @@ const postChargesChargeRefundsRefund = b((r) => ({ withStatus: r.withStatus, })) -type PostChargesChargeRefundsRefundResponder = - (typeof postChargesChargeRefundsRefund)["responder"] & KoaRuntimeResponder - export type PostChargesChargeRefundsRefund = ( params: Params< t_PostChargesChargeRefundsRefundParamSchema, @@ -4175,7 +3878,7 @@ export type PostChargesChargeRefundsRefund = ( t_PostChargesChargeRefundsRefundBodySchema | undefined, void >, - respond: PostChargesChargeRefundsRefundResponder, + respond: (typeof postChargesChargeRefundsRefund)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4201,9 +3904,6 @@ const getCheckoutSessions = b((r) => ({ withStatus: r.withStatus, })) -type GetCheckoutSessionsResponder = (typeof getCheckoutSessions)["responder"] & - KoaRuntimeResponder - export type GetCheckoutSessions = ( params: Params< void, @@ -4211,7 +3911,7 @@ export type GetCheckoutSessions = ( t_GetCheckoutSessionsBodySchema | undefined, void >, - respond: GetCheckoutSessionsResponder, + respond: (typeof getCheckoutSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4233,9 +3933,6 @@ const postCheckoutSessions = b((r) => ({ withStatus: r.withStatus, })) -type PostCheckoutSessionsResponder = - (typeof postCheckoutSessions)["responder"] & KoaRuntimeResponder - export type PostCheckoutSessions = ( params: Params< void, @@ -4243,7 +3940,7 @@ export type PostCheckoutSessions = ( t_PostCheckoutSessionsBodySchema | undefined, void >, - respond: PostCheckoutSessionsResponder, + respond: (typeof postCheckoutSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4257,9 +3954,6 @@ const getCheckoutSessionsSession = b((r) => ({ withStatus: r.withStatus, })) -type GetCheckoutSessionsSessionResponder = - (typeof getCheckoutSessionsSession)["responder"] & KoaRuntimeResponder - export type GetCheckoutSessionsSession = ( params: Params< t_GetCheckoutSessionsSessionParamSchema, @@ -4267,7 +3961,7 @@ export type GetCheckoutSessionsSession = ( t_GetCheckoutSessionsSessionBodySchema | undefined, void >, - respond: GetCheckoutSessionsSessionResponder, + respond: (typeof getCheckoutSessionsSession)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4281,9 +3975,6 @@ const postCheckoutSessionsSession = b((r) => ({ withStatus: r.withStatus, })) -type PostCheckoutSessionsSessionResponder = - (typeof postCheckoutSessionsSession)["responder"] & KoaRuntimeResponder - export type PostCheckoutSessionsSession = ( params: Params< t_PostCheckoutSessionsSessionParamSchema, @@ -4291,7 +3982,7 @@ export type PostCheckoutSessionsSession = ( t_PostCheckoutSessionsSessionBodySchema | undefined, void >, - respond: PostCheckoutSessionsSessionResponder, + respond: (typeof postCheckoutSessionsSession)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4305,9 +3996,6 @@ const postCheckoutSessionsSessionExpire = b((r) => ({ withStatus: r.withStatus, })) -type PostCheckoutSessionsSessionExpireResponder = - (typeof postCheckoutSessionsSessionExpire)["responder"] & KoaRuntimeResponder - export type PostCheckoutSessionsSessionExpire = ( params: Params< t_PostCheckoutSessionsSessionExpireParamSchema, @@ -4315,7 +4003,7 @@ export type PostCheckoutSessionsSessionExpire = ( t_PostCheckoutSessionsSessionExpireBodySchema | undefined, void >, - respond: PostCheckoutSessionsSessionExpireResponder, + respond: (typeof postCheckoutSessionsSessionExpire)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4341,10 +4029,6 @@ const getCheckoutSessionsSessionLineItems = b((r) => ({ withStatus: r.withStatus, })) -type GetCheckoutSessionsSessionLineItemsResponder = - (typeof getCheckoutSessionsSessionLineItems)["responder"] & - KoaRuntimeResponder - export type GetCheckoutSessionsSessionLineItems = ( params: Params< t_GetCheckoutSessionsSessionLineItemsParamSchema, @@ -4352,7 +4036,7 @@ export type GetCheckoutSessionsSessionLineItems = ( t_GetCheckoutSessionsSessionLineItemsBodySchema | undefined, void >, - respond: GetCheckoutSessionsSessionLineItemsResponder, + respond: (typeof getCheckoutSessionsSessionLineItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4386,9 +4070,6 @@ const getClimateOrders = b((r) => ({ withStatus: r.withStatus, })) -type GetClimateOrdersResponder = (typeof getClimateOrders)["responder"] & - KoaRuntimeResponder - export type GetClimateOrders = ( params: Params< void, @@ -4396,7 +4077,7 @@ export type GetClimateOrders = ( t_GetClimateOrdersBodySchema | undefined, void >, - respond: GetClimateOrdersResponder, + respond: (typeof getClimateOrders)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4418,12 +4099,9 @@ const postClimateOrders = b((r) => ({ withStatus: r.withStatus, })) -type PostClimateOrdersResponder = (typeof postClimateOrders)["responder"] & - KoaRuntimeResponder - export type PostClimateOrders = ( params: Params, - respond: PostClimateOrdersResponder, + respond: (typeof postClimateOrders)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4437,9 +4115,6 @@ const getClimateOrdersOrder = b((r) => ({ withStatus: r.withStatus, })) -type GetClimateOrdersOrderResponder = - (typeof getClimateOrdersOrder)["responder"] & KoaRuntimeResponder - export type GetClimateOrdersOrder = ( params: Params< t_GetClimateOrdersOrderParamSchema, @@ -4447,7 +4122,7 @@ export type GetClimateOrdersOrder = ( t_GetClimateOrdersOrderBodySchema | undefined, void >, - respond: GetClimateOrdersOrderResponder, + respond: (typeof getClimateOrdersOrder)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4461,9 +4136,6 @@ const postClimateOrdersOrder = b((r) => ({ withStatus: r.withStatus, })) -type PostClimateOrdersOrderResponder = - (typeof postClimateOrdersOrder)["responder"] & KoaRuntimeResponder - export type PostClimateOrdersOrder = ( params: Params< t_PostClimateOrdersOrderParamSchema, @@ -4471,7 +4143,7 @@ export type PostClimateOrdersOrder = ( t_PostClimateOrdersOrderBodySchema | undefined, void >, - respond: PostClimateOrdersOrderResponder, + respond: (typeof postClimateOrdersOrder)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4485,9 +4157,6 @@ const postClimateOrdersOrderCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostClimateOrdersOrderCancelResponder = - (typeof postClimateOrdersOrderCancel)["responder"] & KoaRuntimeResponder - export type PostClimateOrdersOrderCancel = ( params: Params< t_PostClimateOrdersOrderCancelParamSchema, @@ -4495,7 +4164,7 @@ export type PostClimateOrdersOrderCancel = ( t_PostClimateOrdersOrderCancelBodySchema | undefined, void >, - respond: PostClimateOrdersOrderCancelResponder, + respond: (typeof postClimateOrdersOrderCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4521,9 +4190,6 @@ const getClimateProducts = b((r) => ({ withStatus: r.withStatus, })) -type GetClimateProductsResponder = (typeof getClimateProducts)["responder"] & - KoaRuntimeResponder - export type GetClimateProducts = ( params: Params< void, @@ -4531,7 +4197,7 @@ export type GetClimateProducts = ( t_GetClimateProductsBodySchema | undefined, void >, - respond: GetClimateProductsResponder, + respond: (typeof getClimateProducts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4553,9 +4219,6 @@ const getClimateProductsProduct = b((r) => ({ withStatus: r.withStatus, })) -type GetClimateProductsProductResponder = - (typeof getClimateProductsProduct)["responder"] & KoaRuntimeResponder - export type GetClimateProductsProduct = ( params: Params< t_GetClimateProductsProductParamSchema, @@ -4563,7 +4226,7 @@ export type GetClimateProductsProduct = ( t_GetClimateProductsProductBodySchema | undefined, void >, - respond: GetClimateProductsProductResponder, + respond: (typeof getClimateProductsProduct)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4589,9 +4252,6 @@ const getClimateSuppliers = b((r) => ({ withStatus: r.withStatus, })) -type GetClimateSuppliersResponder = (typeof getClimateSuppliers)["responder"] & - KoaRuntimeResponder - export type GetClimateSuppliers = ( params: Params< void, @@ -4599,7 +4259,7 @@ export type GetClimateSuppliers = ( t_GetClimateSuppliersBodySchema | undefined, void >, - respond: GetClimateSuppliersResponder, + respond: (typeof getClimateSuppliers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4621,9 +4281,6 @@ const getClimateSuppliersSupplier = b((r) => ({ withStatus: r.withStatus, })) -type GetClimateSuppliersSupplierResponder = - (typeof getClimateSuppliersSupplier)["responder"] & KoaRuntimeResponder - export type GetClimateSuppliersSupplier = ( params: Params< t_GetClimateSuppliersSupplierParamSchema, @@ -4631,7 +4288,7 @@ export type GetClimateSuppliersSupplier = ( t_GetClimateSuppliersSupplierBodySchema | undefined, void >, - respond: GetClimateSuppliersSupplierResponder, + respond: (typeof getClimateSuppliersSupplier)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4645,10 +4302,6 @@ const getConfirmationTokensConfirmationToken = b((r) => ({ withStatus: r.withStatus, })) -type GetConfirmationTokensConfirmationTokenResponder = - (typeof getConfirmationTokensConfirmationToken)["responder"] & - KoaRuntimeResponder - export type GetConfirmationTokensConfirmationToken = ( params: Params< t_GetConfirmationTokensConfirmationTokenParamSchema, @@ -4656,7 +4309,7 @@ export type GetConfirmationTokensConfirmationToken = ( t_GetConfirmationTokensConfirmationTokenBodySchema | undefined, void >, - respond: GetConfirmationTokensConfirmationTokenResponder, + respond: (typeof getConfirmationTokensConfirmationToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4682,9 +4335,6 @@ const getCountrySpecs = b((r) => ({ withStatus: r.withStatus, })) -type GetCountrySpecsResponder = (typeof getCountrySpecs)["responder"] & - KoaRuntimeResponder - export type GetCountrySpecs = ( params: Params< void, @@ -4692,7 +4342,7 @@ export type GetCountrySpecs = ( t_GetCountrySpecsBodySchema | undefined, void >, - respond: GetCountrySpecsResponder, + respond: (typeof getCountrySpecs)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4714,9 +4364,6 @@ const getCountrySpecsCountry = b((r) => ({ withStatus: r.withStatus, })) -type GetCountrySpecsCountryResponder = - (typeof getCountrySpecsCountry)["responder"] & KoaRuntimeResponder - export type GetCountrySpecsCountry = ( params: Params< t_GetCountrySpecsCountryParamSchema, @@ -4724,7 +4371,7 @@ export type GetCountrySpecsCountry = ( t_GetCountrySpecsCountryBodySchema | undefined, void >, - respond: GetCountrySpecsCountryResponder, + respond: (typeof getCountrySpecsCountry)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4750,9 +4397,6 @@ const getCoupons = b((r) => ({ withStatus: r.withStatus, })) -type GetCouponsResponder = (typeof getCoupons)["responder"] & - KoaRuntimeResponder - export type GetCoupons = ( params: Params< void, @@ -4760,7 +4404,7 @@ export type GetCoupons = ( t_GetCouponsBodySchema | undefined, void >, - respond: GetCouponsResponder, + respond: (typeof getCoupons)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4782,12 +4426,9 @@ const postCoupons = b((r) => ({ withStatus: r.withStatus, })) -type PostCouponsResponder = (typeof postCoupons)["responder"] & - KoaRuntimeResponder - export type PostCoupons = ( params: Params, - respond: PostCouponsResponder, + respond: (typeof postCoupons)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4801,9 +4442,6 @@ const deleteCouponsCoupon = b((r) => ({ withStatus: r.withStatus, })) -type DeleteCouponsCouponResponder = (typeof deleteCouponsCoupon)["responder"] & - KoaRuntimeResponder - export type DeleteCouponsCoupon = ( params: Params< t_DeleteCouponsCouponParamSchema, @@ -4811,7 +4449,7 @@ export type DeleteCouponsCoupon = ( t_DeleteCouponsCouponBodySchema | undefined, void >, - respond: DeleteCouponsCouponResponder, + respond: (typeof deleteCouponsCoupon)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4825,9 +4463,6 @@ const getCouponsCoupon = b((r) => ({ withStatus: r.withStatus, })) -type GetCouponsCouponResponder = (typeof getCouponsCoupon)["responder"] & - KoaRuntimeResponder - export type GetCouponsCoupon = ( params: Params< t_GetCouponsCouponParamSchema, @@ -4835,7 +4470,7 @@ export type GetCouponsCoupon = ( t_GetCouponsCouponBodySchema | undefined, void >, - respond: GetCouponsCouponResponder, + respond: (typeof getCouponsCoupon)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4849,9 +4484,6 @@ const postCouponsCoupon = b((r) => ({ withStatus: r.withStatus, })) -type PostCouponsCouponResponder = (typeof postCouponsCoupon)["responder"] & - KoaRuntimeResponder - export type PostCouponsCoupon = ( params: Params< t_PostCouponsCouponParamSchema, @@ -4859,7 +4491,7 @@ export type PostCouponsCoupon = ( t_PostCouponsCouponBodySchema | undefined, void >, - respond: PostCouponsCouponResponder, + respond: (typeof postCouponsCoupon)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4885,9 +4517,6 @@ const getCreditNotes = b((r) => ({ withStatus: r.withStatus, })) -type GetCreditNotesResponder = (typeof getCreditNotes)["responder"] & - KoaRuntimeResponder - export type GetCreditNotes = ( params: Params< void, @@ -4895,7 +4524,7 @@ export type GetCreditNotes = ( t_GetCreditNotesBodySchema | undefined, void >, - respond: GetCreditNotesResponder, + respond: (typeof getCreditNotes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4917,12 +4546,9 @@ const postCreditNotes = b((r) => ({ withStatus: r.withStatus, })) -type PostCreditNotesResponder = (typeof postCreditNotes)["responder"] & - KoaRuntimeResponder - export type PostCreditNotes = ( params: Params, - respond: PostCreditNotesResponder, + respond: (typeof postCreditNotes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4936,9 +4562,6 @@ const getCreditNotesPreview = b((r) => ({ withStatus: r.withStatus, })) -type GetCreditNotesPreviewResponder = - (typeof getCreditNotesPreview)["responder"] & KoaRuntimeResponder - export type GetCreditNotesPreview = ( params: Params< void, @@ -4946,7 +4569,7 @@ export type GetCreditNotesPreview = ( t_GetCreditNotesPreviewBodySchema | undefined, void >, - respond: GetCreditNotesPreviewResponder, + respond: (typeof getCreditNotesPreview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -4972,9 +4595,6 @@ const getCreditNotesPreviewLines = b((r) => ({ withStatus: r.withStatus, })) -type GetCreditNotesPreviewLinesResponder = - (typeof getCreditNotesPreviewLines)["responder"] & KoaRuntimeResponder - export type GetCreditNotesPreviewLines = ( params: Params< void, @@ -4982,7 +4602,7 @@ export type GetCreditNotesPreviewLines = ( t_GetCreditNotesPreviewLinesBodySchema | undefined, void >, - respond: GetCreditNotesPreviewLinesResponder, + respond: (typeof getCreditNotesPreviewLines)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5016,9 +4636,6 @@ const getCreditNotesCreditNoteLines = b((r) => ({ withStatus: r.withStatus, })) -type GetCreditNotesCreditNoteLinesResponder = - (typeof getCreditNotesCreditNoteLines)["responder"] & KoaRuntimeResponder - export type GetCreditNotesCreditNoteLines = ( params: Params< t_GetCreditNotesCreditNoteLinesParamSchema, @@ -5026,7 +4643,7 @@ export type GetCreditNotesCreditNoteLines = ( t_GetCreditNotesCreditNoteLinesBodySchema | undefined, void >, - respond: GetCreditNotesCreditNoteLinesResponder, + respond: (typeof getCreditNotesCreditNoteLines)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5048,9 +4665,6 @@ const getCreditNotesId = b((r) => ({ withStatus: r.withStatus, })) -type GetCreditNotesIdResponder = (typeof getCreditNotesId)["responder"] & - KoaRuntimeResponder - export type GetCreditNotesId = ( params: Params< t_GetCreditNotesIdParamSchema, @@ -5058,7 +4672,7 @@ export type GetCreditNotesId = ( t_GetCreditNotesIdBodySchema | undefined, void >, - respond: GetCreditNotesIdResponder, + respond: (typeof getCreditNotesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5072,9 +4686,6 @@ const postCreditNotesId = b((r) => ({ withStatus: r.withStatus, })) -type PostCreditNotesIdResponder = (typeof postCreditNotesId)["responder"] & - KoaRuntimeResponder - export type PostCreditNotesId = ( params: Params< t_PostCreditNotesIdParamSchema, @@ -5082,7 +4693,7 @@ export type PostCreditNotesId = ( t_PostCreditNotesIdBodySchema | undefined, void >, - respond: PostCreditNotesIdResponder, + respond: (typeof postCreditNotesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5096,9 +4707,6 @@ const postCreditNotesIdVoid = b((r) => ({ withStatus: r.withStatus, })) -type PostCreditNotesIdVoidResponder = - (typeof postCreditNotesIdVoid)["responder"] & KoaRuntimeResponder - export type PostCreditNotesIdVoid = ( params: Params< t_PostCreditNotesIdVoidParamSchema, @@ -5106,7 +4714,7 @@ export type PostCreditNotesIdVoid = ( t_PostCreditNotesIdVoidBodySchema | undefined, void >, - respond: PostCreditNotesIdVoidResponder, + respond: (typeof postCreditNotesIdVoid)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5120,12 +4728,9 @@ const postCustomerSessions = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomerSessionsResponder = - (typeof postCustomerSessions)["responder"] & KoaRuntimeResponder - export type PostCustomerSessions = ( params: Params, - respond: PostCustomerSessionsResponder, + respond: (typeof postCustomerSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5151,9 +4756,6 @@ const getCustomers = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersResponder = (typeof getCustomers)["responder"] & - KoaRuntimeResponder - export type GetCustomers = ( params: Params< void, @@ -5161,7 +4763,7 @@ export type GetCustomers = ( t_GetCustomersBodySchema | undefined, void >, - respond: GetCustomersResponder, + respond: (typeof getCustomers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5183,12 +4785,9 @@ const postCustomers = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersResponder = (typeof postCustomers)["responder"] & - KoaRuntimeResponder - export type PostCustomers = ( params: Params, - respond: PostCustomersResponder, + respond: (typeof postCustomers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5218,9 +4817,6 @@ const getCustomersSearch = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersSearchResponder = (typeof getCustomersSearch)["responder"] & - KoaRuntimeResponder - export type GetCustomersSearch = ( params: Params< void, @@ -5228,7 +4824,7 @@ export type GetCustomersSearch = ( t_GetCustomersSearchBodySchema | undefined, void >, - respond: GetCustomersSearchResponder, + respond: (typeof getCustomersSearch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5252,9 +4848,6 @@ const deleteCustomersCustomer = b((r) => ({ withStatus: r.withStatus, })) -type DeleteCustomersCustomerResponder = - (typeof deleteCustomersCustomer)["responder"] & KoaRuntimeResponder - export type DeleteCustomersCustomer = ( params: Params< t_DeleteCustomersCustomerParamSchema, @@ -5262,7 +4855,7 @@ export type DeleteCustomersCustomer = ( t_DeleteCustomersCustomerBodySchema | undefined, void >, - respond: DeleteCustomersCustomerResponder, + respond: (typeof deleteCustomersCustomer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5278,9 +4871,6 @@ const getCustomersCustomer = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerResponder = - (typeof getCustomersCustomer)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomer = ( params: Params< t_GetCustomersCustomerParamSchema, @@ -5288,7 +4878,7 @@ export type GetCustomersCustomer = ( t_GetCustomersCustomerBodySchema | undefined, void >, - respond: GetCustomersCustomerResponder, + respond: (typeof getCustomersCustomer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5302,9 +4892,6 @@ const postCustomersCustomer = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerResponder = - (typeof postCustomersCustomer)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomer = ( params: Params< t_PostCustomersCustomerParamSchema, @@ -5312,7 +4899,7 @@ export type PostCustomersCustomer = ( t_PostCustomersCustomerBodySchema | undefined, void >, - respond: PostCustomersCustomerResponder, + respond: (typeof postCustomersCustomer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5338,10 +4925,6 @@ const getCustomersCustomerBalanceTransactions = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerBalanceTransactionsResponder = - (typeof getCustomersCustomerBalanceTransactions)["responder"] & - KoaRuntimeResponder - export type GetCustomersCustomerBalanceTransactions = ( params: Params< t_GetCustomersCustomerBalanceTransactionsParamSchema, @@ -5349,7 +4932,7 @@ export type GetCustomersCustomerBalanceTransactions = ( t_GetCustomersCustomerBalanceTransactionsBodySchema | undefined, void >, - respond: GetCustomersCustomerBalanceTransactionsResponder, + respond: (typeof getCustomersCustomerBalanceTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5373,10 +4956,6 @@ const postCustomersCustomerBalanceTransactions = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerBalanceTransactionsResponder = - (typeof postCustomersCustomerBalanceTransactions)["responder"] & - KoaRuntimeResponder - export type PostCustomersCustomerBalanceTransactions = ( params: Params< t_PostCustomersCustomerBalanceTransactionsParamSchema, @@ -5384,7 +4963,7 @@ export type PostCustomersCustomerBalanceTransactions = ( t_PostCustomersCustomerBalanceTransactionsBodySchema, void >, - respond: PostCustomersCustomerBalanceTransactionsResponder, + respond: (typeof postCustomersCustomerBalanceTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5400,10 +4979,6 @@ const getCustomersCustomerBalanceTransactionsTransaction = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerBalanceTransactionsTransactionResponder = - (typeof getCustomersCustomerBalanceTransactionsTransaction)["responder"] & - KoaRuntimeResponder - export type GetCustomersCustomerBalanceTransactionsTransaction = ( params: Params< t_GetCustomersCustomerBalanceTransactionsTransactionParamSchema, @@ -5411,7 +4986,7 @@ export type GetCustomersCustomerBalanceTransactionsTransaction = ( t_GetCustomersCustomerBalanceTransactionsTransactionBodySchema | undefined, void >, - respond: GetCustomersCustomerBalanceTransactionsTransactionResponder, + respond: (typeof getCustomersCustomerBalanceTransactionsTransaction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5427,10 +5002,6 @@ const postCustomersCustomerBalanceTransactionsTransaction = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerBalanceTransactionsTransactionResponder = - (typeof postCustomersCustomerBalanceTransactionsTransaction)["responder"] & - KoaRuntimeResponder - export type PostCustomersCustomerBalanceTransactionsTransaction = ( params: Params< t_PostCustomersCustomerBalanceTransactionsTransactionParamSchema, @@ -5438,7 +5009,7 @@ export type PostCustomersCustomerBalanceTransactionsTransaction = ( t_PostCustomersCustomerBalanceTransactionsTransactionBodySchema | undefined, void >, - respond: PostCustomersCustomerBalanceTransactionsTransactionResponder, + respond: (typeof postCustomersCustomerBalanceTransactionsTransaction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5464,9 +5035,6 @@ const getCustomersCustomerBankAccounts = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerBankAccountsResponder = - (typeof getCustomersCustomerBankAccounts)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerBankAccounts = ( params: Params< t_GetCustomersCustomerBankAccountsParamSchema, @@ -5474,7 +5042,7 @@ export type GetCustomersCustomerBankAccounts = ( t_GetCustomersCustomerBankAccountsBodySchema | undefined, void >, - respond: GetCustomersCustomerBankAccountsResponder, + respond: (typeof getCustomersCustomerBankAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5496,9 +5064,6 @@ const postCustomersCustomerBankAccounts = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerBankAccountsResponder = - (typeof postCustomersCustomerBankAccounts)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomerBankAccounts = ( params: Params< t_PostCustomersCustomerBankAccountsParamSchema, @@ -5506,7 +5071,7 @@ export type PostCustomersCustomerBankAccounts = ( t_PostCustomersCustomerBankAccountsBodySchema | undefined, void >, - respond: PostCustomersCustomerBankAccountsResponder, + respond: (typeof postCustomersCustomerBankAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5522,10 +5087,6 @@ const deleteCustomersCustomerBankAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteCustomersCustomerBankAccountsIdResponder = - (typeof deleteCustomersCustomerBankAccountsId)["responder"] & - KoaRuntimeResponder - export type DeleteCustomersCustomerBankAccountsId = ( params: Params< t_DeleteCustomersCustomerBankAccountsIdParamSchema, @@ -5533,7 +5094,7 @@ export type DeleteCustomersCustomerBankAccountsId = ( t_DeleteCustomersCustomerBankAccountsIdBodySchema | undefined, void >, - respond: DeleteCustomersCustomerBankAccountsIdResponder, + respond: (typeof deleteCustomersCustomerBankAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5547,9 +5108,6 @@ const getCustomersCustomerBankAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerBankAccountsIdResponder = - (typeof getCustomersCustomerBankAccountsId)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerBankAccountsId = ( params: Params< t_GetCustomersCustomerBankAccountsIdParamSchema, @@ -5557,7 +5115,7 @@ export type GetCustomersCustomerBankAccountsId = ( t_GetCustomersCustomerBankAccountsIdBodySchema | undefined, void >, - respond: GetCustomersCustomerBankAccountsIdResponder, + respond: (typeof getCustomersCustomerBankAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5573,10 +5131,6 @@ const postCustomersCustomerBankAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerBankAccountsIdResponder = - (typeof postCustomersCustomerBankAccountsId)["responder"] & - KoaRuntimeResponder - export type PostCustomersCustomerBankAccountsId = ( params: Params< t_PostCustomersCustomerBankAccountsIdParamSchema, @@ -5584,7 +5138,7 @@ export type PostCustomersCustomerBankAccountsId = ( t_PostCustomersCustomerBankAccountsIdBodySchema | undefined, void >, - respond: PostCustomersCustomerBankAccountsIdResponder, + respond: (typeof postCustomersCustomerBankAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5598,10 +5152,6 @@ const postCustomersCustomerBankAccountsIdVerify = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerBankAccountsIdVerifyResponder = - (typeof postCustomersCustomerBankAccountsIdVerify)["responder"] & - KoaRuntimeResponder - export type PostCustomersCustomerBankAccountsIdVerify = ( params: Params< t_PostCustomersCustomerBankAccountsIdVerifyParamSchema, @@ -5609,7 +5159,7 @@ export type PostCustomersCustomerBankAccountsIdVerify = ( t_PostCustomersCustomerBankAccountsIdVerifyBodySchema | undefined, void >, - respond: PostCustomersCustomerBankAccountsIdVerifyResponder, + respond: (typeof postCustomersCustomerBankAccountsIdVerify)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5635,9 +5185,6 @@ const getCustomersCustomerCards = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerCardsResponder = - (typeof getCustomersCustomerCards)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerCards = ( params: Params< t_GetCustomersCustomerCardsParamSchema, @@ -5645,7 +5192,7 @@ export type GetCustomersCustomerCards = ( t_GetCustomersCustomerCardsBodySchema | undefined, void >, - respond: GetCustomersCustomerCardsResponder, + respond: (typeof getCustomersCustomerCards)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5667,9 +5214,6 @@ const postCustomersCustomerCards = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerCardsResponder = - (typeof postCustomersCustomerCards)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomerCards = ( params: Params< t_PostCustomersCustomerCardsParamSchema, @@ -5677,7 +5221,7 @@ export type PostCustomersCustomerCards = ( t_PostCustomersCustomerCardsBodySchema | undefined, void >, - respond: PostCustomersCustomerCardsResponder, + respond: (typeof postCustomersCustomerCards)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5693,9 +5237,6 @@ const deleteCustomersCustomerCardsId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteCustomersCustomerCardsIdResponder = - (typeof deleteCustomersCustomerCardsId)["responder"] & KoaRuntimeResponder - export type DeleteCustomersCustomerCardsId = ( params: Params< t_DeleteCustomersCustomerCardsIdParamSchema, @@ -5703,7 +5244,7 @@ export type DeleteCustomersCustomerCardsId = ( t_DeleteCustomersCustomerCardsIdBodySchema | undefined, void >, - respond: DeleteCustomersCustomerCardsIdResponder, + respond: (typeof deleteCustomersCustomerCardsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5717,9 +5258,6 @@ const getCustomersCustomerCardsId = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerCardsIdResponder = - (typeof getCustomersCustomerCardsId)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerCardsId = ( params: Params< t_GetCustomersCustomerCardsIdParamSchema, @@ -5727,7 +5265,7 @@ export type GetCustomersCustomerCardsId = ( t_GetCustomersCustomerCardsIdBodySchema | undefined, void >, - respond: GetCustomersCustomerCardsIdResponder, + respond: (typeof getCustomersCustomerCardsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5743,9 +5281,6 @@ const postCustomersCustomerCardsId = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerCardsIdResponder = - (typeof postCustomersCustomerCardsId)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomerCardsId = ( params: Params< t_PostCustomersCustomerCardsIdParamSchema, @@ -5753,7 +5288,7 @@ export type PostCustomersCustomerCardsId = ( t_PostCustomersCustomerCardsIdBodySchema | undefined, void >, - respond: PostCustomersCustomerCardsIdResponder, + respond: (typeof postCustomersCustomerCardsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5767,9 +5302,6 @@ const getCustomersCustomerCashBalance = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerCashBalanceResponder = - (typeof getCustomersCustomerCashBalance)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerCashBalance = ( params: Params< t_GetCustomersCustomerCashBalanceParamSchema, @@ -5777,7 +5309,7 @@ export type GetCustomersCustomerCashBalance = ( t_GetCustomersCustomerCashBalanceBodySchema | undefined, void >, - respond: GetCustomersCustomerCashBalanceResponder, + respond: (typeof getCustomersCustomerCashBalance)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5791,9 +5323,6 @@ const postCustomersCustomerCashBalance = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerCashBalanceResponder = - (typeof postCustomersCustomerCashBalance)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomerCashBalance = ( params: Params< t_PostCustomersCustomerCashBalanceParamSchema, @@ -5801,7 +5330,7 @@ export type PostCustomersCustomerCashBalance = ( t_PostCustomersCustomerCashBalanceBodySchema | undefined, void >, - respond: PostCustomersCustomerCashBalanceResponder, + respond: (typeof postCustomersCustomerCashBalance)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5827,10 +5356,6 @@ const getCustomersCustomerCashBalanceTransactions = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerCashBalanceTransactionsResponder = - (typeof getCustomersCustomerCashBalanceTransactions)["responder"] & - KoaRuntimeResponder - export type GetCustomersCustomerCashBalanceTransactions = ( params: Params< t_GetCustomersCustomerCashBalanceTransactionsParamSchema, @@ -5838,7 +5363,7 @@ export type GetCustomersCustomerCashBalanceTransactions = ( t_GetCustomersCustomerCashBalanceTransactionsBodySchema | undefined, void >, - respond: GetCustomersCustomerCashBalanceTransactionsResponder, + respond: (typeof getCustomersCustomerCashBalanceTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5862,10 +5387,6 @@ const getCustomersCustomerCashBalanceTransactionsTransaction = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerCashBalanceTransactionsTransactionResponder = - (typeof getCustomersCustomerCashBalanceTransactionsTransaction)["responder"] & - KoaRuntimeResponder - export type GetCustomersCustomerCashBalanceTransactionsTransaction = ( params: Params< t_GetCustomersCustomerCashBalanceTransactionsTransactionParamSchema, @@ -5874,7 +5395,7 @@ export type GetCustomersCustomerCashBalanceTransactionsTransaction = ( | undefined, void >, - respond: GetCustomersCustomerCashBalanceTransactionsTransactionResponder, + respond: (typeof getCustomersCustomerCashBalanceTransactionsTransaction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5888,9 +5409,6 @@ const deleteCustomersCustomerDiscount = b((r) => ({ withStatus: r.withStatus, })) -type DeleteCustomersCustomerDiscountResponder = - (typeof deleteCustomersCustomerDiscount)["responder"] & KoaRuntimeResponder - export type DeleteCustomersCustomerDiscount = ( params: Params< t_DeleteCustomersCustomerDiscountParamSchema, @@ -5898,7 +5416,7 @@ export type DeleteCustomersCustomerDiscount = ( t_DeleteCustomersCustomerDiscountBodySchema | undefined, void >, - respond: DeleteCustomersCustomerDiscountResponder, + respond: (typeof deleteCustomersCustomerDiscount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5912,9 +5430,6 @@ const getCustomersCustomerDiscount = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerDiscountResponder = - (typeof getCustomersCustomerDiscount)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerDiscount = ( params: Params< t_GetCustomersCustomerDiscountParamSchema, @@ -5922,7 +5437,7 @@ export type GetCustomersCustomerDiscount = ( t_GetCustomersCustomerDiscountBodySchema | undefined, void >, - respond: GetCustomersCustomerDiscountResponder, + respond: (typeof getCustomersCustomerDiscount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5936,10 +5451,6 @@ const postCustomersCustomerFundingInstructions = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerFundingInstructionsResponder = - (typeof postCustomersCustomerFundingInstructions)["responder"] & - KoaRuntimeResponder - export type PostCustomersCustomerFundingInstructions = ( params: Params< t_PostCustomersCustomerFundingInstructionsParamSchema, @@ -5947,7 +5458,7 @@ export type PostCustomersCustomerFundingInstructions = ( t_PostCustomersCustomerFundingInstructionsBodySchema, void >, - respond: PostCustomersCustomerFundingInstructionsResponder, + respond: (typeof postCustomersCustomerFundingInstructions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -5973,9 +5484,6 @@ const getCustomersCustomerPaymentMethods = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerPaymentMethodsResponder = - (typeof getCustomersCustomerPaymentMethods)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerPaymentMethods = ( params: Params< t_GetCustomersCustomerPaymentMethodsParamSchema, @@ -5983,7 +5491,7 @@ export type GetCustomersCustomerPaymentMethods = ( t_GetCustomersCustomerPaymentMethodsBodySchema | undefined, void >, - respond: GetCustomersCustomerPaymentMethodsResponder, + respond: (typeof getCustomersCustomerPaymentMethods)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6005,10 +5513,6 @@ const getCustomersCustomerPaymentMethodsPaymentMethod = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerPaymentMethodsPaymentMethodResponder = - (typeof getCustomersCustomerPaymentMethodsPaymentMethod)["responder"] & - KoaRuntimeResponder - export type GetCustomersCustomerPaymentMethodsPaymentMethod = ( params: Params< t_GetCustomersCustomerPaymentMethodsPaymentMethodParamSchema, @@ -6016,7 +5520,7 @@ export type GetCustomersCustomerPaymentMethodsPaymentMethod = ( t_GetCustomersCustomerPaymentMethodsPaymentMethodBodySchema | undefined, void >, - respond: GetCustomersCustomerPaymentMethodsPaymentMethodResponder, + respond: (typeof getCustomersCustomerPaymentMethodsPaymentMethod)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6044,9 +5548,6 @@ const getCustomersCustomerSources = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerSourcesResponder = - (typeof getCustomersCustomerSources)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerSources = ( params: Params< t_GetCustomersCustomerSourcesParamSchema, @@ -6054,7 +5555,7 @@ export type GetCustomersCustomerSources = ( t_GetCustomersCustomerSourcesBodySchema | undefined, void >, - respond: GetCustomersCustomerSourcesResponder, + respond: (typeof getCustomersCustomerSources)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6076,9 +5577,6 @@ const postCustomersCustomerSources = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerSourcesResponder = - (typeof postCustomersCustomerSources)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomerSources = ( params: Params< t_PostCustomersCustomerSourcesParamSchema, @@ -6086,7 +5584,7 @@ export type PostCustomersCustomerSources = ( t_PostCustomersCustomerSourcesBodySchema | undefined, void >, - respond: PostCustomersCustomerSourcesResponder, + respond: (typeof postCustomersCustomerSources)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6102,9 +5600,6 @@ const deleteCustomersCustomerSourcesId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteCustomersCustomerSourcesIdResponder = - (typeof deleteCustomersCustomerSourcesId)["responder"] & KoaRuntimeResponder - export type DeleteCustomersCustomerSourcesId = ( params: Params< t_DeleteCustomersCustomerSourcesIdParamSchema, @@ -6112,7 +5607,7 @@ export type DeleteCustomersCustomerSourcesId = ( t_DeleteCustomersCustomerSourcesIdBodySchema | undefined, void >, - respond: DeleteCustomersCustomerSourcesIdResponder, + respond: (typeof deleteCustomersCustomerSourcesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6126,9 +5621,6 @@ const getCustomersCustomerSourcesId = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerSourcesIdResponder = - (typeof getCustomersCustomerSourcesId)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerSourcesId = ( params: Params< t_GetCustomersCustomerSourcesIdParamSchema, @@ -6136,7 +5628,7 @@ export type GetCustomersCustomerSourcesId = ( t_GetCustomersCustomerSourcesIdBodySchema | undefined, void >, - respond: GetCustomersCustomerSourcesIdResponder, + respond: (typeof getCustomersCustomerSourcesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6152,9 +5644,6 @@ const postCustomersCustomerSourcesId = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerSourcesIdResponder = - (typeof postCustomersCustomerSourcesId)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomerSourcesId = ( params: Params< t_PostCustomersCustomerSourcesIdParamSchema, @@ -6162,7 +5651,7 @@ export type PostCustomersCustomerSourcesId = ( t_PostCustomersCustomerSourcesIdBodySchema | undefined, void >, - respond: PostCustomersCustomerSourcesIdResponder, + respond: (typeof postCustomersCustomerSourcesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6176,10 +5665,6 @@ const postCustomersCustomerSourcesIdVerify = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerSourcesIdVerifyResponder = - (typeof postCustomersCustomerSourcesIdVerify)["responder"] & - KoaRuntimeResponder - export type PostCustomersCustomerSourcesIdVerify = ( params: Params< t_PostCustomersCustomerSourcesIdVerifyParamSchema, @@ -6187,7 +5672,7 @@ export type PostCustomersCustomerSourcesIdVerify = ( t_PostCustomersCustomerSourcesIdVerifyBodySchema | undefined, void >, - respond: PostCustomersCustomerSourcesIdVerifyResponder, + respond: (typeof postCustomersCustomerSourcesIdVerify)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6213,9 +5698,6 @@ const getCustomersCustomerSubscriptions = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerSubscriptionsResponder = - (typeof getCustomersCustomerSubscriptions)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerSubscriptions = ( params: Params< t_GetCustomersCustomerSubscriptionsParamSchema, @@ -6223,7 +5705,7 @@ export type GetCustomersCustomerSubscriptions = ( t_GetCustomersCustomerSubscriptionsBodySchema | undefined, void >, - respond: GetCustomersCustomerSubscriptionsResponder, + respond: (typeof getCustomersCustomerSubscriptions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6245,9 +5727,6 @@ const postCustomersCustomerSubscriptions = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerSubscriptionsResponder = - (typeof postCustomersCustomerSubscriptions)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomerSubscriptions = ( params: Params< t_PostCustomersCustomerSubscriptionsParamSchema, @@ -6255,7 +5734,7 @@ export type PostCustomersCustomerSubscriptions = ( t_PostCustomersCustomerSubscriptionsBodySchema | undefined, void >, - respond: PostCustomersCustomerSubscriptionsResponder, + respond: (typeof postCustomersCustomerSubscriptions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6269,10 +5748,6 @@ const deleteCustomersCustomerSubscriptionsSubscriptionExposedId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = - (typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"] & - KoaRuntimeResponder - export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< t_DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdParamSchema, @@ -6281,7 +5756,7 @@ export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedId = ( | undefined, void >, - respond: DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, + respond: (typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6295,10 +5770,6 @@ const getCustomersCustomerSubscriptionsSubscriptionExposedId = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = - (typeof getCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"] & - KoaRuntimeResponder - export type GetCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< t_GetCustomersCustomerSubscriptionsSubscriptionExposedIdParamSchema, @@ -6307,7 +5778,7 @@ export type GetCustomersCustomerSubscriptionsSubscriptionExposedId = ( | undefined, void >, - respond: GetCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, + respond: (typeof getCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6321,10 +5792,6 @@ const postCustomersCustomerSubscriptionsSubscriptionExposedId = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerSubscriptionsSubscriptionExposedIdResponder = - (typeof postCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"] & - KoaRuntimeResponder - export type PostCustomersCustomerSubscriptionsSubscriptionExposedId = ( params: Params< t_PostCustomersCustomerSubscriptionsSubscriptionExposedIdParamSchema, @@ -6333,7 +5800,7 @@ export type PostCustomersCustomerSubscriptionsSubscriptionExposedId = ( | undefined, void >, - respond: PostCustomersCustomerSubscriptionsSubscriptionExposedIdResponder, + respond: (typeof postCustomersCustomerSubscriptionsSubscriptionExposedId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6349,10 +5816,6 @@ const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = b( }), ) -type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = - (typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount)["responder"] & - KoaRuntimeResponder - export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( params: Params< @@ -6362,7 +5825,7 @@ export type DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = | undefined, void >, - respond: DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder, + respond: (typeof deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6378,10 +5841,6 @@ const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = b( }), ) -type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder = - (typeof getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount)["responder"] & - KoaRuntimeResponder - export type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( params: Params< t_GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountParamSchema, @@ -6390,7 +5849,7 @@ export type GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = ( | undefined, void >, - respond: GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponder, + respond: (typeof getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6416,9 +5875,6 @@ const getCustomersCustomerTaxIds = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerTaxIdsResponder = - (typeof getCustomersCustomerTaxIds)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerTaxIds = ( params: Params< t_GetCustomersCustomerTaxIdsParamSchema, @@ -6426,7 +5882,7 @@ export type GetCustomersCustomerTaxIds = ( t_GetCustomersCustomerTaxIdsBodySchema | undefined, void >, - respond: GetCustomersCustomerTaxIdsResponder, + respond: (typeof getCustomersCustomerTaxIds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6448,9 +5904,6 @@ const postCustomersCustomerTaxIds = b((r) => ({ withStatus: r.withStatus, })) -type PostCustomersCustomerTaxIdsResponder = - (typeof postCustomersCustomerTaxIds)["responder"] & KoaRuntimeResponder - export type PostCustomersCustomerTaxIds = ( params: Params< t_PostCustomersCustomerTaxIdsParamSchema, @@ -6458,7 +5911,7 @@ export type PostCustomersCustomerTaxIds = ( t_PostCustomersCustomerTaxIdsBodySchema, void >, - respond: PostCustomersCustomerTaxIdsResponder, + respond: (typeof postCustomersCustomerTaxIds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6472,9 +5925,6 @@ const deleteCustomersCustomerTaxIdsId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteCustomersCustomerTaxIdsIdResponder = - (typeof deleteCustomersCustomerTaxIdsId)["responder"] & KoaRuntimeResponder - export type DeleteCustomersCustomerTaxIdsId = ( params: Params< t_DeleteCustomersCustomerTaxIdsIdParamSchema, @@ -6482,7 +5932,7 @@ export type DeleteCustomersCustomerTaxIdsId = ( t_DeleteCustomersCustomerTaxIdsIdBodySchema | undefined, void >, - respond: DeleteCustomersCustomerTaxIdsIdResponder, + respond: (typeof deleteCustomersCustomerTaxIdsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6496,9 +5946,6 @@ const getCustomersCustomerTaxIdsId = b((r) => ({ withStatus: r.withStatus, })) -type GetCustomersCustomerTaxIdsIdResponder = - (typeof getCustomersCustomerTaxIdsId)["responder"] & KoaRuntimeResponder - export type GetCustomersCustomerTaxIdsId = ( params: Params< t_GetCustomersCustomerTaxIdsIdParamSchema, @@ -6506,7 +5953,7 @@ export type GetCustomersCustomerTaxIdsId = ( t_GetCustomersCustomerTaxIdsIdBodySchema | undefined, void >, - respond: GetCustomersCustomerTaxIdsIdResponder, + respond: (typeof getCustomersCustomerTaxIdsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6532,9 +5979,6 @@ const getDisputes = b((r) => ({ withStatus: r.withStatus, })) -type GetDisputesResponder = (typeof getDisputes)["responder"] & - KoaRuntimeResponder - export type GetDisputes = ( params: Params< void, @@ -6542,7 +5986,7 @@ export type GetDisputes = ( t_GetDisputesBodySchema | undefined, void >, - respond: GetDisputesResponder, + respond: (typeof getDisputes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6564,9 +6008,6 @@ const getDisputesDispute = b((r) => ({ withStatus: r.withStatus, })) -type GetDisputesDisputeResponder = (typeof getDisputesDispute)["responder"] & - KoaRuntimeResponder - export type GetDisputesDispute = ( params: Params< t_GetDisputesDisputeParamSchema, @@ -6574,7 +6015,7 @@ export type GetDisputesDispute = ( t_GetDisputesDisputeBodySchema | undefined, void >, - respond: GetDisputesDisputeResponder, + respond: (typeof getDisputesDispute)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6588,9 +6029,6 @@ const postDisputesDispute = b((r) => ({ withStatus: r.withStatus, })) -type PostDisputesDisputeResponder = (typeof postDisputesDispute)["responder"] & - KoaRuntimeResponder - export type PostDisputesDispute = ( params: Params< t_PostDisputesDisputeParamSchema, @@ -6598,7 +6036,7 @@ export type PostDisputesDispute = ( t_PostDisputesDisputeBodySchema | undefined, void >, - respond: PostDisputesDisputeResponder, + respond: (typeof postDisputesDispute)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6612,9 +6050,6 @@ const postDisputesDisputeClose = b((r) => ({ withStatus: r.withStatus, })) -type PostDisputesDisputeCloseResponder = - (typeof postDisputesDisputeClose)["responder"] & KoaRuntimeResponder - export type PostDisputesDisputeClose = ( params: Params< t_PostDisputesDisputeCloseParamSchema, @@ -6622,7 +6057,7 @@ export type PostDisputesDisputeClose = ( t_PostDisputesDisputeCloseBodySchema | undefined, void >, - respond: PostDisputesDisputeCloseResponder, + respond: (typeof postDisputesDisputeClose)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6648,9 +6083,6 @@ const getEntitlementsActiveEntitlements = b((r) => ({ withStatus: r.withStatus, })) -type GetEntitlementsActiveEntitlementsResponder = - (typeof getEntitlementsActiveEntitlements)["responder"] & KoaRuntimeResponder - export type GetEntitlementsActiveEntitlements = ( params: Params< void, @@ -6658,7 +6090,7 @@ export type GetEntitlementsActiveEntitlements = ( t_GetEntitlementsActiveEntitlementsBodySchema | undefined, void >, - respond: GetEntitlementsActiveEntitlementsResponder, + respond: (typeof getEntitlementsActiveEntitlements)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6682,10 +6114,6 @@ const getEntitlementsActiveEntitlementsId = b((r) => ({ withStatus: r.withStatus, })) -type GetEntitlementsActiveEntitlementsIdResponder = - (typeof getEntitlementsActiveEntitlementsId)["responder"] & - KoaRuntimeResponder - export type GetEntitlementsActiveEntitlementsId = ( params: Params< t_GetEntitlementsActiveEntitlementsIdParamSchema, @@ -6693,7 +6121,7 @@ export type GetEntitlementsActiveEntitlementsId = ( t_GetEntitlementsActiveEntitlementsIdBodySchema | undefined, void >, - respond: GetEntitlementsActiveEntitlementsIdResponder, + respond: (typeof getEntitlementsActiveEntitlementsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6719,9 +6147,6 @@ const getEntitlementsFeatures = b((r) => ({ withStatus: r.withStatus, })) -type GetEntitlementsFeaturesResponder = - (typeof getEntitlementsFeatures)["responder"] & KoaRuntimeResponder - export type GetEntitlementsFeatures = ( params: Params< void, @@ -6729,7 +6154,7 @@ export type GetEntitlementsFeatures = ( t_GetEntitlementsFeaturesBodySchema | undefined, void >, - respond: GetEntitlementsFeaturesResponder, + respond: (typeof getEntitlementsFeatures)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6751,12 +6176,9 @@ const postEntitlementsFeatures = b((r) => ({ withStatus: r.withStatus, })) -type PostEntitlementsFeaturesResponder = - (typeof postEntitlementsFeatures)["responder"] & KoaRuntimeResponder - export type PostEntitlementsFeatures = ( params: Params, - respond: PostEntitlementsFeaturesResponder, + respond: (typeof postEntitlementsFeatures)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6770,9 +6192,6 @@ const getEntitlementsFeaturesId = b((r) => ({ withStatus: r.withStatus, })) -type GetEntitlementsFeaturesIdResponder = - (typeof getEntitlementsFeaturesId)["responder"] & KoaRuntimeResponder - export type GetEntitlementsFeaturesId = ( params: Params< t_GetEntitlementsFeaturesIdParamSchema, @@ -6780,7 +6199,7 @@ export type GetEntitlementsFeaturesId = ( t_GetEntitlementsFeaturesIdBodySchema | undefined, void >, - respond: GetEntitlementsFeaturesIdResponder, + respond: (typeof getEntitlementsFeaturesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6794,9 +6213,6 @@ const postEntitlementsFeaturesId = b((r) => ({ withStatus: r.withStatus, })) -type PostEntitlementsFeaturesIdResponder = - (typeof postEntitlementsFeaturesId)["responder"] & KoaRuntimeResponder - export type PostEntitlementsFeaturesId = ( params: Params< t_PostEntitlementsFeaturesIdParamSchema, @@ -6804,7 +6220,7 @@ export type PostEntitlementsFeaturesId = ( t_PostEntitlementsFeaturesIdBodySchema | undefined, void >, - respond: PostEntitlementsFeaturesIdResponder, + respond: (typeof postEntitlementsFeaturesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6818,12 +6234,9 @@ const postEphemeralKeys = b((r) => ({ withStatus: r.withStatus, })) -type PostEphemeralKeysResponder = (typeof postEphemeralKeys)["responder"] & - KoaRuntimeResponder - export type PostEphemeralKeys = ( params: Params, - respond: PostEphemeralKeysResponder, + respond: (typeof postEphemeralKeys)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6837,9 +6250,6 @@ const deleteEphemeralKeysKey = b((r) => ({ withStatus: r.withStatus, })) -type DeleteEphemeralKeysKeyResponder = - (typeof deleteEphemeralKeysKey)["responder"] & KoaRuntimeResponder - export type DeleteEphemeralKeysKey = ( params: Params< t_DeleteEphemeralKeysKeyParamSchema, @@ -6847,7 +6257,7 @@ export type DeleteEphemeralKeysKey = ( t_DeleteEphemeralKeysKeyBodySchema | undefined, void >, - respond: DeleteEphemeralKeysKeyResponder, + respond: (typeof deleteEphemeralKeysKey)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6873,8 +6283,6 @@ const getEvents = b((r) => ({ withStatus: r.withStatus, })) -type GetEventsResponder = (typeof getEvents)["responder"] & KoaRuntimeResponder - export type GetEvents = ( params: Params< void, @@ -6882,7 +6290,7 @@ export type GetEvents = ( t_GetEventsBodySchema | undefined, void >, - respond: GetEventsResponder, + respond: (typeof getEvents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6904,9 +6312,6 @@ const getEventsId = b((r) => ({ withStatus: r.withStatus, })) -type GetEventsIdResponder = (typeof getEventsId)["responder"] & - KoaRuntimeResponder - export type GetEventsId = ( params: Params< t_GetEventsIdParamSchema, @@ -6914,7 +6319,7 @@ export type GetEventsId = ( t_GetEventsIdBodySchema | undefined, void >, - respond: GetEventsIdResponder, + respond: (typeof getEventsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6940,9 +6345,6 @@ const getExchangeRates = b((r) => ({ withStatus: r.withStatus, })) -type GetExchangeRatesResponder = (typeof getExchangeRates)["responder"] & - KoaRuntimeResponder - export type GetExchangeRates = ( params: Params< void, @@ -6950,7 +6352,7 @@ export type GetExchangeRates = ( t_GetExchangeRatesBodySchema | undefined, void >, - respond: GetExchangeRatesResponder, + respond: (typeof getExchangeRates)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6972,9 +6374,6 @@ const getExchangeRatesRateId = b((r) => ({ withStatus: r.withStatus, })) -type GetExchangeRatesRateIdResponder = - (typeof getExchangeRatesRateId)["responder"] & KoaRuntimeResponder - export type GetExchangeRatesRateId = ( params: Params< t_GetExchangeRatesRateIdParamSchema, @@ -6982,7 +6381,7 @@ export type GetExchangeRatesRateId = ( t_GetExchangeRatesRateIdBodySchema | undefined, void >, - respond: GetExchangeRatesRateIdResponder, + respond: (typeof getExchangeRatesRateId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -6996,9 +6395,6 @@ const postExternalAccountsId = b((r) => ({ withStatus: r.withStatus, })) -type PostExternalAccountsIdResponder = - (typeof postExternalAccountsId)["responder"] & KoaRuntimeResponder - export type PostExternalAccountsId = ( params: Params< t_PostExternalAccountsIdParamSchema, @@ -7006,7 +6402,7 @@ export type PostExternalAccountsId = ( t_PostExternalAccountsIdBodySchema | undefined, void >, - respond: PostExternalAccountsIdResponder, + respond: (typeof postExternalAccountsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7032,9 +6428,6 @@ const getFileLinks = b((r) => ({ withStatus: r.withStatus, })) -type GetFileLinksResponder = (typeof getFileLinks)["responder"] & - KoaRuntimeResponder - export type GetFileLinks = ( params: Params< void, @@ -7042,7 +6435,7 @@ export type GetFileLinks = ( t_GetFileLinksBodySchema | undefined, void >, - respond: GetFileLinksResponder, + respond: (typeof getFileLinks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7064,12 +6457,9 @@ const postFileLinks = b((r) => ({ withStatus: r.withStatus, })) -type PostFileLinksResponder = (typeof postFileLinks)["responder"] & - KoaRuntimeResponder - export type PostFileLinks = ( params: Params, - respond: PostFileLinksResponder, + respond: (typeof postFileLinks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7083,9 +6473,6 @@ const getFileLinksLink = b((r) => ({ withStatus: r.withStatus, })) -type GetFileLinksLinkResponder = (typeof getFileLinksLink)["responder"] & - KoaRuntimeResponder - export type GetFileLinksLink = ( params: Params< t_GetFileLinksLinkParamSchema, @@ -7093,7 +6480,7 @@ export type GetFileLinksLink = ( t_GetFileLinksLinkBodySchema | undefined, void >, - respond: GetFileLinksLinkResponder, + respond: (typeof getFileLinksLink)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7107,9 +6494,6 @@ const postFileLinksLink = b((r) => ({ withStatus: r.withStatus, })) -type PostFileLinksLinkResponder = (typeof postFileLinksLink)["responder"] & - KoaRuntimeResponder - export type PostFileLinksLink = ( params: Params< t_PostFileLinksLinkParamSchema, @@ -7117,7 +6501,7 @@ export type PostFileLinksLink = ( t_PostFileLinksLinkBodySchema | undefined, void >, - respond: PostFileLinksLinkResponder, + respond: (typeof postFileLinksLink)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7143,8 +6527,6 @@ const getFiles = b((r) => ({ withStatus: r.withStatus, })) -type GetFilesResponder = (typeof getFiles)["responder"] & KoaRuntimeResponder - export type GetFiles = ( params: Params< void, @@ -7152,7 +6534,7 @@ export type GetFiles = ( t_GetFilesBodySchema | undefined, void >, - respond: GetFilesResponder, + respond: (typeof getFiles)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7174,11 +6556,9 @@ const postFiles = b((r) => ({ withStatus: r.withStatus, })) -type PostFilesResponder = (typeof postFiles)["responder"] & KoaRuntimeResponder - export type PostFiles = ( params: Params, - respond: PostFilesResponder, + respond: (typeof postFiles)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7192,9 +6572,6 @@ const getFilesFile = b((r) => ({ withStatus: r.withStatus, })) -type GetFilesFileResponder = (typeof getFilesFile)["responder"] & - KoaRuntimeResponder - export type GetFilesFile = ( params: Params< t_GetFilesFileParamSchema, @@ -7202,7 +6579,7 @@ export type GetFilesFile = ( t_GetFilesFileBodySchema | undefined, void >, - respond: GetFilesFileResponder, + respond: (typeof getFilesFile)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7231,9 +6608,6 @@ const getFinancialConnectionsAccounts = b((r) => ({ withStatus: r.withStatus, })) -type GetFinancialConnectionsAccountsResponder = - (typeof getFinancialConnectionsAccounts)["responder"] & KoaRuntimeResponder - export type GetFinancialConnectionsAccounts = ( params: Params< void, @@ -7241,7 +6615,7 @@ export type GetFinancialConnectionsAccounts = ( t_GetFinancialConnectionsAccountsBodySchema | undefined, void >, - respond: GetFinancialConnectionsAccountsResponder, + respond: (typeof getFinancialConnectionsAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7265,10 +6639,6 @@ const getFinancialConnectionsAccountsAccount = b((r) => ({ withStatus: r.withStatus, })) -type GetFinancialConnectionsAccountsAccountResponder = - (typeof getFinancialConnectionsAccountsAccount)["responder"] & - KoaRuntimeResponder - export type GetFinancialConnectionsAccountsAccount = ( params: Params< t_GetFinancialConnectionsAccountsAccountParamSchema, @@ -7276,7 +6646,7 @@ export type GetFinancialConnectionsAccountsAccount = ( t_GetFinancialConnectionsAccountsAccountBodySchema | undefined, void >, - respond: GetFinancialConnectionsAccountsAccountResponder, + respond: (typeof getFinancialConnectionsAccountsAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7292,10 +6662,6 @@ const postFinancialConnectionsAccountsAccountDisconnect = b((r) => ({ withStatus: r.withStatus, })) -type PostFinancialConnectionsAccountsAccountDisconnectResponder = - (typeof postFinancialConnectionsAccountsAccountDisconnect)["responder"] & - KoaRuntimeResponder - export type PostFinancialConnectionsAccountsAccountDisconnect = ( params: Params< t_PostFinancialConnectionsAccountsAccountDisconnectParamSchema, @@ -7303,7 +6669,7 @@ export type PostFinancialConnectionsAccountsAccountDisconnect = ( t_PostFinancialConnectionsAccountsAccountDisconnectBodySchema | undefined, void >, - respond: PostFinancialConnectionsAccountsAccountDisconnectResponder, + respond: (typeof postFinancialConnectionsAccountsAccountDisconnect)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7329,10 +6695,6 @@ const getFinancialConnectionsAccountsAccountOwners = b((r) => ({ withStatus: r.withStatus, })) -type GetFinancialConnectionsAccountsAccountOwnersResponder = - (typeof getFinancialConnectionsAccountsAccountOwners)["responder"] & - KoaRuntimeResponder - export type GetFinancialConnectionsAccountsAccountOwners = ( params: Params< t_GetFinancialConnectionsAccountsAccountOwnersParamSchema, @@ -7340,7 +6702,7 @@ export type GetFinancialConnectionsAccountsAccountOwners = ( t_GetFinancialConnectionsAccountsAccountOwnersBodySchema | undefined, void >, - respond: GetFinancialConnectionsAccountsAccountOwnersResponder, + respond: (typeof getFinancialConnectionsAccountsAccountOwners)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7364,10 +6726,6 @@ const postFinancialConnectionsAccountsAccountRefresh = b((r) => ({ withStatus: r.withStatus, })) -type PostFinancialConnectionsAccountsAccountRefreshResponder = - (typeof postFinancialConnectionsAccountsAccountRefresh)["responder"] & - KoaRuntimeResponder - export type PostFinancialConnectionsAccountsAccountRefresh = ( params: Params< t_PostFinancialConnectionsAccountsAccountRefreshParamSchema, @@ -7375,7 +6733,7 @@ export type PostFinancialConnectionsAccountsAccountRefresh = ( t_PostFinancialConnectionsAccountsAccountRefreshBodySchema, void >, - respond: PostFinancialConnectionsAccountsAccountRefreshResponder, + respond: (typeof postFinancialConnectionsAccountsAccountRefresh)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7391,10 +6749,6 @@ const postFinancialConnectionsAccountsAccountSubscribe = b((r) => ({ withStatus: r.withStatus, })) -type PostFinancialConnectionsAccountsAccountSubscribeResponder = - (typeof postFinancialConnectionsAccountsAccountSubscribe)["responder"] & - KoaRuntimeResponder - export type PostFinancialConnectionsAccountsAccountSubscribe = ( params: Params< t_PostFinancialConnectionsAccountsAccountSubscribeParamSchema, @@ -7402,7 +6756,7 @@ export type PostFinancialConnectionsAccountsAccountSubscribe = ( t_PostFinancialConnectionsAccountsAccountSubscribeBodySchema, void >, - respond: PostFinancialConnectionsAccountsAccountSubscribeResponder, + respond: (typeof postFinancialConnectionsAccountsAccountSubscribe)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7418,10 +6772,6 @@ const postFinancialConnectionsAccountsAccountUnsubscribe = b((r) => ({ withStatus: r.withStatus, })) -type PostFinancialConnectionsAccountsAccountUnsubscribeResponder = - (typeof postFinancialConnectionsAccountsAccountUnsubscribe)["responder"] & - KoaRuntimeResponder - export type PostFinancialConnectionsAccountsAccountUnsubscribe = ( params: Params< t_PostFinancialConnectionsAccountsAccountUnsubscribeParamSchema, @@ -7429,7 +6779,7 @@ export type PostFinancialConnectionsAccountsAccountUnsubscribe = ( t_PostFinancialConnectionsAccountsAccountUnsubscribeBodySchema, void >, - respond: PostFinancialConnectionsAccountsAccountUnsubscribeResponder, + respond: (typeof postFinancialConnectionsAccountsAccountUnsubscribe)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7445,9 +6795,6 @@ const postFinancialConnectionsSessions = b((r) => ({ withStatus: r.withStatus, })) -type PostFinancialConnectionsSessionsResponder = - (typeof postFinancialConnectionsSessions)["responder"] & KoaRuntimeResponder - export type PostFinancialConnectionsSessions = ( params: Params< void, @@ -7455,7 +6802,7 @@ export type PostFinancialConnectionsSessions = ( t_PostFinancialConnectionsSessionsBodySchema, void >, - respond: PostFinancialConnectionsSessionsResponder, + respond: (typeof postFinancialConnectionsSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7471,10 +6818,6 @@ const getFinancialConnectionsSessionsSession = b((r) => ({ withStatus: r.withStatus, })) -type GetFinancialConnectionsSessionsSessionResponder = - (typeof getFinancialConnectionsSessionsSession)["responder"] & - KoaRuntimeResponder - export type GetFinancialConnectionsSessionsSession = ( params: Params< t_GetFinancialConnectionsSessionsSessionParamSchema, @@ -7482,7 +6825,7 @@ export type GetFinancialConnectionsSessionsSession = ( t_GetFinancialConnectionsSessionsSessionBodySchema | undefined, void >, - respond: GetFinancialConnectionsSessionsSessionResponder, + respond: (typeof getFinancialConnectionsSessionsSession)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7511,10 +6854,6 @@ const getFinancialConnectionsTransactions = b((r) => ({ withStatus: r.withStatus, })) -type GetFinancialConnectionsTransactionsResponder = - (typeof getFinancialConnectionsTransactions)["responder"] & - KoaRuntimeResponder - export type GetFinancialConnectionsTransactions = ( params: Params< void, @@ -7522,7 +6861,7 @@ export type GetFinancialConnectionsTransactions = ( t_GetFinancialConnectionsTransactionsBodySchema | undefined, void >, - respond: GetFinancialConnectionsTransactionsResponder, + respond: (typeof getFinancialConnectionsTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7546,10 +6885,6 @@ const getFinancialConnectionsTransactionsTransaction = b((r) => ({ withStatus: r.withStatus, })) -type GetFinancialConnectionsTransactionsTransactionResponder = - (typeof getFinancialConnectionsTransactionsTransaction)["responder"] & - KoaRuntimeResponder - export type GetFinancialConnectionsTransactionsTransaction = ( params: Params< t_GetFinancialConnectionsTransactionsTransactionParamSchema, @@ -7557,7 +6892,7 @@ export type GetFinancialConnectionsTransactionsTransaction = ( t_GetFinancialConnectionsTransactionsTransactionBodySchema | undefined, void >, - respond: GetFinancialConnectionsTransactionsTransactionResponder, + respond: (typeof getFinancialConnectionsTransactionsTransaction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7583,9 +6918,6 @@ const getForwardingRequests = b((r) => ({ withStatus: r.withStatus, })) -type GetForwardingRequestsResponder = - (typeof getForwardingRequests)["responder"] & KoaRuntimeResponder - export type GetForwardingRequests = ( params: Params< void, @@ -7593,7 +6925,7 @@ export type GetForwardingRequests = ( t_GetForwardingRequestsBodySchema | undefined, void >, - respond: GetForwardingRequestsResponder, + respond: (typeof getForwardingRequests)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7615,12 +6947,9 @@ const postForwardingRequests = b((r) => ({ withStatus: r.withStatus, })) -type PostForwardingRequestsResponder = - (typeof postForwardingRequests)["responder"] & KoaRuntimeResponder - export type PostForwardingRequests = ( params: Params, - respond: PostForwardingRequestsResponder, + respond: (typeof postForwardingRequests)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7634,9 +6963,6 @@ const getForwardingRequestsId = b((r) => ({ withStatus: r.withStatus, })) -type GetForwardingRequestsIdResponder = - (typeof getForwardingRequestsId)["responder"] & KoaRuntimeResponder - export type GetForwardingRequestsId = ( params: Params< t_GetForwardingRequestsIdParamSchema, @@ -7644,7 +6970,7 @@ export type GetForwardingRequestsId = ( t_GetForwardingRequestsIdBodySchema | undefined, void >, - respond: GetForwardingRequestsIdResponder, + respond: (typeof getForwardingRequestsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7673,9 +6999,6 @@ const getIdentityVerificationReports = b((r) => ({ withStatus: r.withStatus, })) -type GetIdentityVerificationReportsResponder = - (typeof getIdentityVerificationReports)["responder"] & KoaRuntimeResponder - export type GetIdentityVerificationReports = ( params: Params< void, @@ -7683,7 +7006,7 @@ export type GetIdentityVerificationReports = ( t_GetIdentityVerificationReportsBodySchema | undefined, void >, - respond: GetIdentityVerificationReportsResponder, + respond: (typeof getIdentityVerificationReports)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7707,10 +7030,6 @@ const getIdentityVerificationReportsReport = b((r) => ({ withStatus: r.withStatus, })) -type GetIdentityVerificationReportsReportResponder = - (typeof getIdentityVerificationReportsReport)["responder"] & - KoaRuntimeResponder - export type GetIdentityVerificationReportsReport = ( params: Params< t_GetIdentityVerificationReportsReportParamSchema, @@ -7718,7 +7037,7 @@ export type GetIdentityVerificationReportsReport = ( t_GetIdentityVerificationReportsReportBodySchema | undefined, void >, - respond: GetIdentityVerificationReportsReportResponder, + respond: (typeof getIdentityVerificationReportsReport)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7747,9 +7066,6 @@ const getIdentityVerificationSessions = b((r) => ({ withStatus: r.withStatus, })) -type GetIdentityVerificationSessionsResponder = - (typeof getIdentityVerificationSessions)["responder"] & KoaRuntimeResponder - export type GetIdentityVerificationSessions = ( params: Params< void, @@ -7757,7 +7073,7 @@ export type GetIdentityVerificationSessions = ( t_GetIdentityVerificationSessionsBodySchema | undefined, void >, - respond: GetIdentityVerificationSessionsResponder, + respond: (typeof getIdentityVerificationSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7781,9 +7097,6 @@ const postIdentityVerificationSessions = b((r) => ({ withStatus: r.withStatus, })) -type PostIdentityVerificationSessionsResponder = - (typeof postIdentityVerificationSessions)["responder"] & KoaRuntimeResponder - export type PostIdentityVerificationSessions = ( params: Params< void, @@ -7791,7 +7104,7 @@ export type PostIdentityVerificationSessions = ( t_PostIdentityVerificationSessionsBodySchema | undefined, void >, - respond: PostIdentityVerificationSessionsResponder, + respond: (typeof postIdentityVerificationSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7807,10 +7120,6 @@ const getIdentityVerificationSessionsSession = b((r) => ({ withStatus: r.withStatus, })) -type GetIdentityVerificationSessionsSessionResponder = - (typeof getIdentityVerificationSessionsSession)["responder"] & - KoaRuntimeResponder - export type GetIdentityVerificationSessionsSession = ( params: Params< t_GetIdentityVerificationSessionsSessionParamSchema, @@ -7818,7 +7127,7 @@ export type GetIdentityVerificationSessionsSession = ( t_GetIdentityVerificationSessionsSessionBodySchema | undefined, void >, - respond: GetIdentityVerificationSessionsSessionResponder, + respond: (typeof getIdentityVerificationSessionsSession)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7834,10 +7143,6 @@ const postIdentityVerificationSessionsSession = b((r) => ({ withStatus: r.withStatus, })) -type PostIdentityVerificationSessionsSessionResponder = - (typeof postIdentityVerificationSessionsSession)["responder"] & - KoaRuntimeResponder - export type PostIdentityVerificationSessionsSession = ( params: Params< t_PostIdentityVerificationSessionsSessionParamSchema, @@ -7845,7 +7150,7 @@ export type PostIdentityVerificationSessionsSession = ( t_PostIdentityVerificationSessionsSessionBodySchema | undefined, void >, - respond: PostIdentityVerificationSessionsSessionResponder, + respond: (typeof postIdentityVerificationSessionsSession)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7861,10 +7166,6 @@ const postIdentityVerificationSessionsSessionCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostIdentityVerificationSessionsSessionCancelResponder = - (typeof postIdentityVerificationSessionsSessionCancel)["responder"] & - KoaRuntimeResponder - export type PostIdentityVerificationSessionsSessionCancel = ( params: Params< t_PostIdentityVerificationSessionsSessionCancelParamSchema, @@ -7872,7 +7173,7 @@ export type PostIdentityVerificationSessionsSessionCancel = ( t_PostIdentityVerificationSessionsSessionCancelBodySchema | undefined, void >, - respond: PostIdentityVerificationSessionsSessionCancelResponder, + respond: (typeof postIdentityVerificationSessionsSessionCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7888,10 +7189,6 @@ const postIdentityVerificationSessionsSessionRedact = b((r) => ({ withStatus: r.withStatus, })) -type PostIdentityVerificationSessionsSessionRedactResponder = - (typeof postIdentityVerificationSessionsSessionRedact)["responder"] & - KoaRuntimeResponder - export type PostIdentityVerificationSessionsSessionRedact = ( params: Params< t_PostIdentityVerificationSessionsSessionRedactParamSchema, @@ -7899,7 +7196,7 @@ export type PostIdentityVerificationSessionsSessionRedact = ( t_PostIdentityVerificationSessionsSessionRedactBodySchema | undefined, void >, - respond: PostIdentityVerificationSessionsSessionRedactResponder, + respond: (typeof postIdentityVerificationSessionsSessionRedact)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7925,9 +7222,6 @@ const getInvoicePayments = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoicePaymentsResponder = (typeof getInvoicePayments)["responder"] & - KoaRuntimeResponder - export type GetInvoicePayments = ( params: Params< void, @@ -7935,7 +7229,7 @@ export type GetInvoicePayments = ( t_GetInvoicePaymentsBodySchema | undefined, void >, - respond: GetInvoicePaymentsResponder, + respond: (typeof getInvoicePayments)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7957,9 +7251,6 @@ const getInvoicePaymentsInvoicePayment = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoicePaymentsInvoicePaymentResponder = - (typeof getInvoicePaymentsInvoicePayment)["responder"] & KoaRuntimeResponder - export type GetInvoicePaymentsInvoicePayment = ( params: Params< t_GetInvoicePaymentsInvoicePaymentParamSchema, @@ -7967,7 +7258,7 @@ export type GetInvoicePaymentsInvoicePayment = ( t_GetInvoicePaymentsInvoicePaymentBodySchema | undefined, void >, - respond: GetInvoicePaymentsInvoicePaymentResponder, + respond: (typeof getInvoicePaymentsInvoicePayment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -7993,9 +7284,6 @@ const getInvoiceRenderingTemplates = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoiceRenderingTemplatesResponder = - (typeof getInvoiceRenderingTemplates)["responder"] & KoaRuntimeResponder - export type GetInvoiceRenderingTemplates = ( params: Params< void, @@ -8003,7 +7291,7 @@ export type GetInvoiceRenderingTemplates = ( t_GetInvoiceRenderingTemplatesBodySchema | undefined, void >, - respond: GetInvoiceRenderingTemplatesResponder, + respond: (typeof getInvoiceRenderingTemplates)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8027,10 +7315,6 @@ const getInvoiceRenderingTemplatesTemplate = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoiceRenderingTemplatesTemplateResponder = - (typeof getInvoiceRenderingTemplatesTemplate)["responder"] & - KoaRuntimeResponder - export type GetInvoiceRenderingTemplatesTemplate = ( params: Params< t_GetInvoiceRenderingTemplatesTemplateParamSchema, @@ -8038,7 +7322,7 @@ export type GetInvoiceRenderingTemplatesTemplate = ( t_GetInvoiceRenderingTemplatesTemplateBodySchema | undefined, void >, - respond: GetInvoiceRenderingTemplatesTemplateResponder, + respond: (typeof getInvoiceRenderingTemplatesTemplate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8054,10 +7338,6 @@ const postInvoiceRenderingTemplatesTemplateArchive = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoiceRenderingTemplatesTemplateArchiveResponder = - (typeof postInvoiceRenderingTemplatesTemplateArchive)["responder"] & - KoaRuntimeResponder - export type PostInvoiceRenderingTemplatesTemplateArchive = ( params: Params< t_PostInvoiceRenderingTemplatesTemplateArchiveParamSchema, @@ -8065,7 +7345,7 @@ export type PostInvoiceRenderingTemplatesTemplateArchive = ( t_PostInvoiceRenderingTemplatesTemplateArchiveBodySchema | undefined, void >, - respond: PostInvoiceRenderingTemplatesTemplateArchiveResponder, + respond: (typeof postInvoiceRenderingTemplatesTemplateArchive)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8081,10 +7361,6 @@ const postInvoiceRenderingTemplatesTemplateUnarchive = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoiceRenderingTemplatesTemplateUnarchiveResponder = - (typeof postInvoiceRenderingTemplatesTemplateUnarchive)["responder"] & - KoaRuntimeResponder - export type PostInvoiceRenderingTemplatesTemplateUnarchive = ( params: Params< t_PostInvoiceRenderingTemplatesTemplateUnarchiveParamSchema, @@ -8092,7 +7368,7 @@ export type PostInvoiceRenderingTemplatesTemplateUnarchive = ( t_PostInvoiceRenderingTemplatesTemplateUnarchiveBodySchema | undefined, void >, - respond: PostInvoiceRenderingTemplatesTemplateUnarchiveResponder, + respond: (typeof postInvoiceRenderingTemplatesTemplateUnarchive)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8118,9 +7394,6 @@ const getInvoiceitems = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoiceitemsResponder = (typeof getInvoiceitems)["responder"] & - KoaRuntimeResponder - export type GetInvoiceitems = ( params: Params< void, @@ -8128,7 +7401,7 @@ export type GetInvoiceitems = ( t_GetInvoiceitemsBodySchema | undefined, void >, - respond: GetInvoiceitemsResponder, + respond: (typeof getInvoiceitems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8150,12 +7423,9 @@ const postInvoiceitems = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoiceitemsResponder = (typeof postInvoiceitems)["responder"] & - KoaRuntimeResponder - export type PostInvoiceitems = ( params: Params, - respond: PostInvoiceitemsResponder, + respond: (typeof postInvoiceitems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8169,9 +7439,6 @@ const deleteInvoiceitemsInvoiceitem = b((r) => ({ withStatus: r.withStatus, })) -type DeleteInvoiceitemsInvoiceitemResponder = - (typeof deleteInvoiceitemsInvoiceitem)["responder"] & KoaRuntimeResponder - export type DeleteInvoiceitemsInvoiceitem = ( params: Params< t_DeleteInvoiceitemsInvoiceitemParamSchema, @@ -8179,7 +7446,7 @@ export type DeleteInvoiceitemsInvoiceitem = ( t_DeleteInvoiceitemsInvoiceitemBodySchema | undefined, void >, - respond: DeleteInvoiceitemsInvoiceitemResponder, + respond: (typeof deleteInvoiceitemsInvoiceitem)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8193,9 +7460,6 @@ const getInvoiceitemsInvoiceitem = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoiceitemsInvoiceitemResponder = - (typeof getInvoiceitemsInvoiceitem)["responder"] & KoaRuntimeResponder - export type GetInvoiceitemsInvoiceitem = ( params: Params< t_GetInvoiceitemsInvoiceitemParamSchema, @@ -8203,7 +7467,7 @@ export type GetInvoiceitemsInvoiceitem = ( t_GetInvoiceitemsInvoiceitemBodySchema | undefined, void >, - respond: GetInvoiceitemsInvoiceitemResponder, + respond: (typeof getInvoiceitemsInvoiceitem)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8217,9 +7481,6 @@ const postInvoiceitemsInvoiceitem = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoiceitemsInvoiceitemResponder = - (typeof postInvoiceitemsInvoiceitem)["responder"] & KoaRuntimeResponder - export type PostInvoiceitemsInvoiceitem = ( params: Params< t_PostInvoiceitemsInvoiceitemParamSchema, @@ -8227,7 +7488,7 @@ export type PostInvoiceitemsInvoiceitem = ( t_PostInvoiceitemsInvoiceitemBodySchema | undefined, void >, - respond: PostInvoiceitemsInvoiceitemResponder, + respond: (typeof postInvoiceitemsInvoiceitem)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8253,9 +7514,6 @@ const getInvoices = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoicesResponder = (typeof getInvoices)["responder"] & - KoaRuntimeResponder - export type GetInvoices = ( params: Params< void, @@ -8263,7 +7521,7 @@ export type GetInvoices = ( t_GetInvoicesBodySchema | undefined, void >, - respond: GetInvoicesResponder, + respond: (typeof getInvoices)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8285,12 +7543,9 @@ const postInvoices = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesResponder = (typeof postInvoices)["responder"] & - KoaRuntimeResponder - export type PostInvoices = ( params: Params, - respond: PostInvoicesResponder, + respond: (typeof postInvoices)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8304,9 +7559,6 @@ const postInvoicesCreatePreview = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesCreatePreviewResponder = - (typeof postInvoicesCreatePreview)["responder"] & KoaRuntimeResponder - export type PostInvoicesCreatePreview = ( params: Params< void, @@ -8314,7 +7566,7 @@ export type PostInvoicesCreatePreview = ( t_PostInvoicesCreatePreviewBodySchema | undefined, void >, - respond: PostInvoicesCreatePreviewResponder, + respond: (typeof postInvoicesCreatePreview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8344,9 +7596,6 @@ const getInvoicesSearch = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoicesSearchResponder = (typeof getInvoicesSearch)["responder"] & - KoaRuntimeResponder - export type GetInvoicesSearch = ( params: Params< void, @@ -8354,7 +7603,7 @@ export type GetInvoicesSearch = ( t_GetInvoicesSearchBodySchema | undefined, void >, - respond: GetInvoicesSearchResponder, + respond: (typeof getInvoicesSearch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8378,9 +7627,6 @@ const deleteInvoicesInvoice = b((r) => ({ withStatus: r.withStatus, })) -type DeleteInvoicesInvoiceResponder = - (typeof deleteInvoicesInvoice)["responder"] & KoaRuntimeResponder - export type DeleteInvoicesInvoice = ( params: Params< t_DeleteInvoicesInvoiceParamSchema, @@ -8388,7 +7634,7 @@ export type DeleteInvoicesInvoice = ( t_DeleteInvoicesInvoiceBodySchema | undefined, void >, - respond: DeleteInvoicesInvoiceResponder, + respond: (typeof deleteInvoicesInvoice)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8402,9 +7648,6 @@ const getInvoicesInvoice = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoicesInvoiceResponder = (typeof getInvoicesInvoice)["responder"] & - KoaRuntimeResponder - export type GetInvoicesInvoice = ( params: Params< t_GetInvoicesInvoiceParamSchema, @@ -8412,7 +7655,7 @@ export type GetInvoicesInvoice = ( t_GetInvoicesInvoiceBodySchema | undefined, void >, - respond: GetInvoicesInvoiceResponder, + respond: (typeof getInvoicesInvoice)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8426,9 +7669,6 @@ const postInvoicesInvoice = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceResponder = (typeof postInvoicesInvoice)["responder"] & - KoaRuntimeResponder - export type PostInvoicesInvoice = ( params: Params< t_PostInvoicesInvoiceParamSchema, @@ -8436,7 +7676,7 @@ export type PostInvoicesInvoice = ( t_PostInvoicesInvoiceBodySchema | undefined, void >, - respond: PostInvoicesInvoiceResponder, + respond: (typeof postInvoicesInvoice)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8450,9 +7690,6 @@ const postInvoicesInvoiceAddLines = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceAddLinesResponder = - (typeof postInvoicesInvoiceAddLines)["responder"] & KoaRuntimeResponder - export type PostInvoicesInvoiceAddLines = ( params: Params< t_PostInvoicesInvoiceAddLinesParamSchema, @@ -8460,7 +7697,7 @@ export type PostInvoicesInvoiceAddLines = ( t_PostInvoicesInvoiceAddLinesBodySchema, void >, - respond: PostInvoicesInvoiceAddLinesResponder, + respond: (typeof postInvoicesInvoiceAddLines)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8474,9 +7711,6 @@ const postInvoicesInvoiceFinalize = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceFinalizeResponder = - (typeof postInvoicesInvoiceFinalize)["responder"] & KoaRuntimeResponder - export type PostInvoicesInvoiceFinalize = ( params: Params< t_PostInvoicesInvoiceFinalizeParamSchema, @@ -8484,7 +7718,7 @@ export type PostInvoicesInvoiceFinalize = ( t_PostInvoicesInvoiceFinalizeBodySchema | undefined, void >, - respond: PostInvoicesInvoiceFinalizeResponder, + respond: (typeof postInvoicesInvoiceFinalize)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8510,9 +7744,6 @@ const getInvoicesInvoiceLines = b((r) => ({ withStatus: r.withStatus, })) -type GetInvoicesInvoiceLinesResponder = - (typeof getInvoicesInvoiceLines)["responder"] & KoaRuntimeResponder - export type GetInvoicesInvoiceLines = ( params: Params< t_GetInvoicesInvoiceLinesParamSchema, @@ -8520,7 +7751,7 @@ export type GetInvoicesInvoiceLines = ( t_GetInvoicesInvoiceLinesBodySchema | undefined, void >, - respond: GetInvoicesInvoiceLinesResponder, + respond: (typeof getInvoicesInvoiceLines)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8542,9 +7773,6 @@ const postInvoicesInvoiceLinesLineItemId = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceLinesLineItemIdResponder = - (typeof postInvoicesInvoiceLinesLineItemId)["responder"] & KoaRuntimeResponder - export type PostInvoicesInvoiceLinesLineItemId = ( params: Params< t_PostInvoicesInvoiceLinesLineItemIdParamSchema, @@ -8552,7 +7780,7 @@ export type PostInvoicesInvoiceLinesLineItemId = ( t_PostInvoicesInvoiceLinesLineItemIdBodySchema | undefined, void >, - respond: PostInvoicesInvoiceLinesLineItemIdResponder, + respond: (typeof postInvoicesInvoiceLinesLineItemId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8566,10 +7794,6 @@ const postInvoicesInvoiceMarkUncollectible = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceMarkUncollectibleResponder = - (typeof postInvoicesInvoiceMarkUncollectible)["responder"] & - KoaRuntimeResponder - export type PostInvoicesInvoiceMarkUncollectible = ( params: Params< t_PostInvoicesInvoiceMarkUncollectibleParamSchema, @@ -8577,7 +7801,7 @@ export type PostInvoicesInvoiceMarkUncollectible = ( t_PostInvoicesInvoiceMarkUncollectibleBodySchema | undefined, void >, - respond: PostInvoicesInvoiceMarkUncollectibleResponder, + respond: (typeof postInvoicesInvoiceMarkUncollectible)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8591,9 +7815,6 @@ const postInvoicesInvoicePay = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoicePayResponder = - (typeof postInvoicesInvoicePay)["responder"] & KoaRuntimeResponder - export type PostInvoicesInvoicePay = ( params: Params< t_PostInvoicesInvoicePayParamSchema, @@ -8601,7 +7822,7 @@ export type PostInvoicesInvoicePay = ( t_PostInvoicesInvoicePayBodySchema | undefined, void >, - respond: PostInvoicesInvoicePayResponder, + respond: (typeof postInvoicesInvoicePay)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8615,9 +7836,6 @@ const postInvoicesInvoiceRemoveLines = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceRemoveLinesResponder = - (typeof postInvoicesInvoiceRemoveLines)["responder"] & KoaRuntimeResponder - export type PostInvoicesInvoiceRemoveLines = ( params: Params< t_PostInvoicesInvoiceRemoveLinesParamSchema, @@ -8625,7 +7843,7 @@ export type PostInvoicesInvoiceRemoveLines = ( t_PostInvoicesInvoiceRemoveLinesBodySchema, void >, - respond: PostInvoicesInvoiceRemoveLinesResponder, + respond: (typeof postInvoicesInvoiceRemoveLines)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8639,9 +7857,6 @@ const postInvoicesInvoiceSend = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceSendResponder = - (typeof postInvoicesInvoiceSend)["responder"] & KoaRuntimeResponder - export type PostInvoicesInvoiceSend = ( params: Params< t_PostInvoicesInvoiceSendParamSchema, @@ -8649,7 +7864,7 @@ export type PostInvoicesInvoiceSend = ( t_PostInvoicesInvoiceSendBodySchema | undefined, void >, - respond: PostInvoicesInvoiceSendResponder, + respond: (typeof postInvoicesInvoiceSend)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8663,9 +7878,6 @@ const postInvoicesInvoiceUpdateLines = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceUpdateLinesResponder = - (typeof postInvoicesInvoiceUpdateLines)["responder"] & KoaRuntimeResponder - export type PostInvoicesInvoiceUpdateLines = ( params: Params< t_PostInvoicesInvoiceUpdateLinesParamSchema, @@ -8673,7 +7885,7 @@ export type PostInvoicesInvoiceUpdateLines = ( t_PostInvoicesInvoiceUpdateLinesBodySchema, void >, - respond: PostInvoicesInvoiceUpdateLinesResponder, + respond: (typeof postInvoicesInvoiceUpdateLines)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8687,9 +7899,6 @@ const postInvoicesInvoiceVoid = b((r) => ({ withStatus: r.withStatus, })) -type PostInvoicesInvoiceVoidResponder = - (typeof postInvoicesInvoiceVoid)["responder"] & KoaRuntimeResponder - export type PostInvoicesInvoiceVoid = ( params: Params< t_PostInvoicesInvoiceVoidParamSchema, @@ -8697,7 +7906,7 @@ export type PostInvoicesInvoiceVoid = ( t_PostInvoicesInvoiceVoidBodySchema | undefined, void >, - respond: PostInvoicesInvoiceVoidResponder, + respond: (typeof postInvoicesInvoiceVoid)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8726,9 +7935,6 @@ const getIssuingAuthorizations = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingAuthorizationsResponder = - (typeof getIssuingAuthorizations)["responder"] & KoaRuntimeResponder - export type GetIssuingAuthorizations = ( params: Params< void, @@ -8736,7 +7942,7 @@ export type GetIssuingAuthorizations = ( t_GetIssuingAuthorizationsBodySchema | undefined, void >, - respond: GetIssuingAuthorizationsResponder, + respond: (typeof getIssuingAuthorizations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8758,10 +7964,6 @@ const getIssuingAuthorizationsAuthorization = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingAuthorizationsAuthorizationResponder = - (typeof getIssuingAuthorizationsAuthorization)["responder"] & - KoaRuntimeResponder - export type GetIssuingAuthorizationsAuthorization = ( params: Params< t_GetIssuingAuthorizationsAuthorizationParamSchema, @@ -8769,7 +7971,7 @@ export type GetIssuingAuthorizationsAuthorization = ( t_GetIssuingAuthorizationsAuthorizationBodySchema | undefined, void >, - respond: GetIssuingAuthorizationsAuthorizationResponder, + respond: (typeof getIssuingAuthorizationsAuthorization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8783,10 +7985,6 @@ const postIssuingAuthorizationsAuthorization = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingAuthorizationsAuthorizationResponder = - (typeof postIssuingAuthorizationsAuthorization)["responder"] & - KoaRuntimeResponder - export type PostIssuingAuthorizationsAuthorization = ( params: Params< t_PostIssuingAuthorizationsAuthorizationParamSchema, @@ -8794,7 +7992,7 @@ export type PostIssuingAuthorizationsAuthorization = ( t_PostIssuingAuthorizationsAuthorizationBodySchema | undefined, void >, - respond: PostIssuingAuthorizationsAuthorizationResponder, + respond: (typeof postIssuingAuthorizationsAuthorization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8808,10 +8006,6 @@ const postIssuingAuthorizationsAuthorizationApprove = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingAuthorizationsAuthorizationApproveResponder = - (typeof postIssuingAuthorizationsAuthorizationApprove)["responder"] & - KoaRuntimeResponder - export type PostIssuingAuthorizationsAuthorizationApprove = ( params: Params< t_PostIssuingAuthorizationsAuthorizationApproveParamSchema, @@ -8819,7 +8013,7 @@ export type PostIssuingAuthorizationsAuthorizationApprove = ( t_PostIssuingAuthorizationsAuthorizationApproveBodySchema | undefined, void >, - respond: PostIssuingAuthorizationsAuthorizationApproveResponder, + respond: (typeof postIssuingAuthorizationsAuthorizationApprove)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8833,10 +8027,6 @@ const postIssuingAuthorizationsAuthorizationDecline = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingAuthorizationsAuthorizationDeclineResponder = - (typeof postIssuingAuthorizationsAuthorizationDecline)["responder"] & - KoaRuntimeResponder - export type PostIssuingAuthorizationsAuthorizationDecline = ( params: Params< t_PostIssuingAuthorizationsAuthorizationDeclineParamSchema, @@ -8844,7 +8034,7 @@ export type PostIssuingAuthorizationsAuthorizationDecline = ( t_PostIssuingAuthorizationsAuthorizationDeclineBodySchema | undefined, void >, - respond: PostIssuingAuthorizationsAuthorizationDeclineResponder, + respond: (typeof postIssuingAuthorizationsAuthorizationDecline)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8870,9 +8060,6 @@ const getIssuingCardholders = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingCardholdersResponder = - (typeof getIssuingCardholders)["responder"] & KoaRuntimeResponder - export type GetIssuingCardholders = ( params: Params< void, @@ -8880,7 +8067,7 @@ export type GetIssuingCardholders = ( t_GetIssuingCardholdersBodySchema | undefined, void >, - respond: GetIssuingCardholdersResponder, + respond: (typeof getIssuingCardholders)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8902,12 +8089,9 @@ const postIssuingCardholders = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingCardholdersResponder = - (typeof postIssuingCardholders)["responder"] & KoaRuntimeResponder - export type PostIssuingCardholders = ( params: Params, - respond: PostIssuingCardholdersResponder, + respond: (typeof postIssuingCardholders)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8921,9 +8105,6 @@ const getIssuingCardholdersCardholder = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingCardholdersCardholderResponder = - (typeof getIssuingCardholdersCardholder)["responder"] & KoaRuntimeResponder - export type GetIssuingCardholdersCardholder = ( params: Params< t_GetIssuingCardholdersCardholderParamSchema, @@ -8931,7 +8112,7 @@ export type GetIssuingCardholdersCardholder = ( t_GetIssuingCardholdersCardholderBodySchema | undefined, void >, - respond: GetIssuingCardholdersCardholderResponder, + respond: (typeof getIssuingCardholdersCardholder)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8945,9 +8126,6 @@ const postIssuingCardholdersCardholder = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingCardholdersCardholderResponder = - (typeof postIssuingCardholdersCardholder)["responder"] & KoaRuntimeResponder - export type PostIssuingCardholdersCardholder = ( params: Params< t_PostIssuingCardholdersCardholderParamSchema, @@ -8955,7 +8133,7 @@ export type PostIssuingCardholdersCardholder = ( t_PostIssuingCardholdersCardholderBodySchema | undefined, void >, - respond: PostIssuingCardholdersCardholderResponder, + respond: (typeof postIssuingCardholdersCardholder)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -8981,9 +8159,6 @@ const getIssuingCards = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingCardsResponder = (typeof getIssuingCards)["responder"] & - KoaRuntimeResponder - export type GetIssuingCards = ( params: Params< void, @@ -8991,7 +8166,7 @@ export type GetIssuingCards = ( t_GetIssuingCardsBodySchema | undefined, void >, - respond: GetIssuingCardsResponder, + respond: (typeof getIssuingCards)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9013,12 +8188,9 @@ const postIssuingCards = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingCardsResponder = (typeof postIssuingCards)["responder"] & - KoaRuntimeResponder - export type PostIssuingCards = ( params: Params, - respond: PostIssuingCardsResponder, + respond: (typeof postIssuingCards)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9032,9 +8204,6 @@ const getIssuingCardsCard = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingCardsCardResponder = (typeof getIssuingCardsCard)["responder"] & - KoaRuntimeResponder - export type GetIssuingCardsCard = ( params: Params< t_GetIssuingCardsCardParamSchema, @@ -9042,7 +8211,7 @@ export type GetIssuingCardsCard = ( t_GetIssuingCardsCardBodySchema | undefined, void >, - respond: GetIssuingCardsCardResponder, + respond: (typeof getIssuingCardsCard)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9056,9 +8225,6 @@ const postIssuingCardsCard = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingCardsCardResponder = - (typeof postIssuingCardsCard)["responder"] & KoaRuntimeResponder - export type PostIssuingCardsCard = ( params: Params< t_PostIssuingCardsCardParamSchema, @@ -9066,7 +8232,7 @@ export type PostIssuingCardsCard = ( t_PostIssuingCardsCardBodySchema | undefined, void >, - respond: PostIssuingCardsCardResponder, + respond: (typeof postIssuingCardsCard)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9092,9 +8258,6 @@ const getIssuingDisputes = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingDisputesResponder = (typeof getIssuingDisputes)["responder"] & - KoaRuntimeResponder - export type GetIssuingDisputes = ( params: Params< void, @@ -9102,7 +8265,7 @@ export type GetIssuingDisputes = ( t_GetIssuingDisputesBodySchema | undefined, void >, - respond: GetIssuingDisputesResponder, + respond: (typeof getIssuingDisputes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9124,12 +8287,9 @@ const postIssuingDisputes = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingDisputesResponder = (typeof postIssuingDisputes)["responder"] & - KoaRuntimeResponder - export type PostIssuingDisputes = ( params: Params, - respond: PostIssuingDisputesResponder, + respond: (typeof postIssuingDisputes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9143,9 +8303,6 @@ const getIssuingDisputesDispute = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingDisputesDisputeResponder = - (typeof getIssuingDisputesDispute)["responder"] & KoaRuntimeResponder - export type GetIssuingDisputesDispute = ( params: Params< t_GetIssuingDisputesDisputeParamSchema, @@ -9153,7 +8310,7 @@ export type GetIssuingDisputesDispute = ( t_GetIssuingDisputesDisputeBodySchema | undefined, void >, - respond: GetIssuingDisputesDisputeResponder, + respond: (typeof getIssuingDisputesDispute)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9167,9 +8324,6 @@ const postIssuingDisputesDispute = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingDisputesDisputeResponder = - (typeof postIssuingDisputesDispute)["responder"] & KoaRuntimeResponder - export type PostIssuingDisputesDispute = ( params: Params< t_PostIssuingDisputesDisputeParamSchema, @@ -9177,7 +8331,7 @@ export type PostIssuingDisputesDispute = ( t_PostIssuingDisputesDisputeBodySchema | undefined, void >, - respond: PostIssuingDisputesDisputeResponder, + respond: (typeof postIssuingDisputesDispute)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9191,9 +8345,6 @@ const postIssuingDisputesDisputeSubmit = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingDisputesDisputeSubmitResponder = - (typeof postIssuingDisputesDisputeSubmit)["responder"] & KoaRuntimeResponder - export type PostIssuingDisputesDisputeSubmit = ( params: Params< t_PostIssuingDisputesDisputeSubmitParamSchema, @@ -9201,7 +8352,7 @@ export type PostIssuingDisputesDisputeSubmit = ( t_PostIssuingDisputesDisputeSubmitBodySchema | undefined, void >, - respond: PostIssuingDisputesDisputeSubmitResponder, + respond: (typeof postIssuingDisputesDisputeSubmit)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9230,9 +8381,6 @@ const getIssuingPersonalizationDesigns = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingPersonalizationDesignsResponder = - (typeof getIssuingPersonalizationDesigns)["responder"] & KoaRuntimeResponder - export type GetIssuingPersonalizationDesigns = ( params: Params< void, @@ -9240,7 +8388,7 @@ export type GetIssuingPersonalizationDesigns = ( t_GetIssuingPersonalizationDesignsBodySchema | undefined, void >, - respond: GetIssuingPersonalizationDesignsResponder, + respond: (typeof getIssuingPersonalizationDesigns)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9264,9 +8412,6 @@ const postIssuingPersonalizationDesigns = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingPersonalizationDesignsResponder = - (typeof postIssuingPersonalizationDesigns)["responder"] & KoaRuntimeResponder - export type PostIssuingPersonalizationDesigns = ( params: Params< void, @@ -9274,7 +8419,7 @@ export type PostIssuingPersonalizationDesigns = ( t_PostIssuingPersonalizationDesignsBodySchema, void >, - respond: PostIssuingPersonalizationDesignsResponder, + respond: (typeof postIssuingPersonalizationDesigns)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9290,10 +8435,6 @@ const getIssuingPersonalizationDesignsPersonalizationDesign = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingPersonalizationDesignsPersonalizationDesignResponder = - (typeof getIssuingPersonalizationDesignsPersonalizationDesign)["responder"] & - KoaRuntimeResponder - export type GetIssuingPersonalizationDesignsPersonalizationDesign = ( params: Params< t_GetIssuingPersonalizationDesignsPersonalizationDesignParamSchema, @@ -9302,7 +8443,7 @@ export type GetIssuingPersonalizationDesignsPersonalizationDesign = ( | undefined, void >, - respond: GetIssuingPersonalizationDesignsPersonalizationDesignResponder, + respond: (typeof getIssuingPersonalizationDesignsPersonalizationDesign)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9318,10 +8459,6 @@ const postIssuingPersonalizationDesignsPersonalizationDesign = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingPersonalizationDesignsPersonalizationDesignResponder = - (typeof postIssuingPersonalizationDesignsPersonalizationDesign)["responder"] & - KoaRuntimeResponder - export type PostIssuingPersonalizationDesignsPersonalizationDesign = ( params: Params< t_PostIssuingPersonalizationDesignsPersonalizationDesignParamSchema, @@ -9330,7 +8467,7 @@ export type PostIssuingPersonalizationDesignsPersonalizationDesign = ( | undefined, void >, - respond: PostIssuingPersonalizationDesignsPersonalizationDesignResponder, + respond: (typeof postIssuingPersonalizationDesignsPersonalizationDesign)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9359,9 +8496,6 @@ const getIssuingPhysicalBundles = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingPhysicalBundlesResponder = - (typeof getIssuingPhysicalBundles)["responder"] & KoaRuntimeResponder - export type GetIssuingPhysicalBundles = ( params: Params< void, @@ -9369,7 +8503,7 @@ export type GetIssuingPhysicalBundles = ( t_GetIssuingPhysicalBundlesBodySchema | undefined, void >, - respond: GetIssuingPhysicalBundlesResponder, + respond: (typeof getIssuingPhysicalBundles)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9391,10 +8525,6 @@ const getIssuingPhysicalBundlesPhysicalBundle = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingPhysicalBundlesPhysicalBundleResponder = - (typeof getIssuingPhysicalBundlesPhysicalBundle)["responder"] & - KoaRuntimeResponder - export type GetIssuingPhysicalBundlesPhysicalBundle = ( params: Params< t_GetIssuingPhysicalBundlesPhysicalBundleParamSchema, @@ -9402,7 +8532,7 @@ export type GetIssuingPhysicalBundlesPhysicalBundle = ( t_GetIssuingPhysicalBundlesPhysicalBundleBodySchema | undefined, void >, - respond: GetIssuingPhysicalBundlesPhysicalBundleResponder, + respond: (typeof getIssuingPhysicalBundlesPhysicalBundle)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9416,9 +8546,6 @@ const getIssuingSettlementsSettlement = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingSettlementsSettlementResponder = - (typeof getIssuingSettlementsSettlement)["responder"] & KoaRuntimeResponder - export type GetIssuingSettlementsSettlement = ( params: Params< t_GetIssuingSettlementsSettlementParamSchema, @@ -9426,7 +8553,7 @@ export type GetIssuingSettlementsSettlement = ( t_GetIssuingSettlementsSettlementBodySchema | undefined, void >, - respond: GetIssuingSettlementsSettlementResponder, + respond: (typeof getIssuingSettlementsSettlement)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9440,9 +8567,6 @@ const postIssuingSettlementsSettlement = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingSettlementsSettlementResponder = - (typeof postIssuingSettlementsSettlement)["responder"] & KoaRuntimeResponder - export type PostIssuingSettlementsSettlement = ( params: Params< t_PostIssuingSettlementsSettlementParamSchema, @@ -9450,7 +8574,7 @@ export type PostIssuingSettlementsSettlement = ( t_PostIssuingSettlementsSettlementBodySchema | undefined, void >, - respond: PostIssuingSettlementsSettlementResponder, + respond: (typeof postIssuingSettlementsSettlement)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9476,9 +8600,6 @@ const getIssuingTokens = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingTokensResponder = (typeof getIssuingTokens)["responder"] & - KoaRuntimeResponder - export type GetIssuingTokens = ( params: Params< void, @@ -9486,7 +8607,7 @@ export type GetIssuingTokens = ( t_GetIssuingTokensBodySchema | undefined, void >, - respond: GetIssuingTokensResponder, + respond: (typeof getIssuingTokens)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9508,9 +8629,6 @@ const getIssuingTokensToken = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingTokensTokenResponder = - (typeof getIssuingTokensToken)["responder"] & KoaRuntimeResponder - export type GetIssuingTokensToken = ( params: Params< t_GetIssuingTokensTokenParamSchema, @@ -9518,7 +8636,7 @@ export type GetIssuingTokensToken = ( t_GetIssuingTokensTokenBodySchema | undefined, void >, - respond: GetIssuingTokensTokenResponder, + respond: (typeof getIssuingTokensToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9532,9 +8650,6 @@ const postIssuingTokensToken = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingTokensTokenResponder = - (typeof postIssuingTokensToken)["responder"] & KoaRuntimeResponder - export type PostIssuingTokensToken = ( params: Params< t_PostIssuingTokensTokenParamSchema, @@ -9542,7 +8657,7 @@ export type PostIssuingTokensToken = ( t_PostIssuingTokensTokenBodySchema, void >, - respond: PostIssuingTokensTokenResponder, + respond: (typeof postIssuingTokensToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9568,9 +8683,6 @@ const getIssuingTransactions = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingTransactionsResponder = - (typeof getIssuingTransactions)["responder"] & KoaRuntimeResponder - export type GetIssuingTransactions = ( params: Params< void, @@ -9578,7 +8690,7 @@ export type GetIssuingTransactions = ( t_GetIssuingTransactionsBodySchema | undefined, void >, - respond: GetIssuingTransactionsResponder, + respond: (typeof getIssuingTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9600,9 +8712,6 @@ const getIssuingTransactionsTransaction = b((r) => ({ withStatus: r.withStatus, })) -type GetIssuingTransactionsTransactionResponder = - (typeof getIssuingTransactionsTransaction)["responder"] & KoaRuntimeResponder - export type GetIssuingTransactionsTransaction = ( params: Params< t_GetIssuingTransactionsTransactionParamSchema, @@ -9610,7 +8719,7 @@ export type GetIssuingTransactionsTransaction = ( t_GetIssuingTransactionsTransactionBodySchema | undefined, void >, - respond: GetIssuingTransactionsTransactionResponder, + respond: (typeof getIssuingTransactionsTransaction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9624,9 +8733,6 @@ const postIssuingTransactionsTransaction = b((r) => ({ withStatus: r.withStatus, })) -type PostIssuingTransactionsTransactionResponder = - (typeof postIssuingTransactionsTransaction)["responder"] & KoaRuntimeResponder - export type PostIssuingTransactionsTransaction = ( params: Params< t_PostIssuingTransactionsTransactionParamSchema, @@ -9634,7 +8740,7 @@ export type PostIssuingTransactionsTransaction = ( t_PostIssuingTransactionsTransactionBodySchema | undefined, void >, - respond: PostIssuingTransactionsTransactionResponder, + respond: (typeof postIssuingTransactionsTransaction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9650,12 +8756,9 @@ const postLinkAccountSessions = b((r) => ({ withStatus: r.withStatus, })) -type PostLinkAccountSessionsResponder = - (typeof postLinkAccountSessions)["responder"] & KoaRuntimeResponder - export type PostLinkAccountSessions = ( params: Params, - respond: PostLinkAccountSessionsResponder, + respond: (typeof postLinkAccountSessions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9671,9 +8774,6 @@ const getLinkAccountSessionsSession = b((r) => ({ withStatus: r.withStatus, })) -type GetLinkAccountSessionsSessionResponder = - (typeof getLinkAccountSessionsSession)["responder"] & KoaRuntimeResponder - export type GetLinkAccountSessionsSession = ( params: Params< t_GetLinkAccountSessionsSessionParamSchema, @@ -9681,7 +8781,7 @@ export type GetLinkAccountSessionsSession = ( t_GetLinkAccountSessionsSessionBodySchema | undefined, void >, - respond: GetLinkAccountSessionsSessionResponder, + respond: (typeof getLinkAccountSessionsSession)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9710,9 +8810,6 @@ const getLinkedAccounts = b((r) => ({ withStatus: r.withStatus, })) -type GetLinkedAccountsResponder = (typeof getLinkedAccounts)["responder"] & - KoaRuntimeResponder - export type GetLinkedAccounts = ( params: Params< void, @@ -9720,7 +8817,7 @@ export type GetLinkedAccounts = ( t_GetLinkedAccountsBodySchema | undefined, void >, - respond: GetLinkedAccountsResponder, + respond: (typeof getLinkedAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9744,9 +8841,6 @@ const getLinkedAccountsAccount = b((r) => ({ withStatus: r.withStatus, })) -type GetLinkedAccountsAccountResponder = - (typeof getLinkedAccountsAccount)["responder"] & KoaRuntimeResponder - export type GetLinkedAccountsAccount = ( params: Params< t_GetLinkedAccountsAccountParamSchema, @@ -9754,7 +8848,7 @@ export type GetLinkedAccountsAccount = ( t_GetLinkedAccountsAccountBodySchema | undefined, void >, - respond: GetLinkedAccountsAccountResponder, + respond: (typeof getLinkedAccountsAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9770,10 +8864,6 @@ const postLinkedAccountsAccountDisconnect = b((r) => ({ withStatus: r.withStatus, })) -type PostLinkedAccountsAccountDisconnectResponder = - (typeof postLinkedAccountsAccountDisconnect)["responder"] & - KoaRuntimeResponder - export type PostLinkedAccountsAccountDisconnect = ( params: Params< t_PostLinkedAccountsAccountDisconnectParamSchema, @@ -9781,7 +8871,7 @@ export type PostLinkedAccountsAccountDisconnect = ( t_PostLinkedAccountsAccountDisconnectBodySchema | undefined, void >, - respond: PostLinkedAccountsAccountDisconnectResponder, + respond: (typeof postLinkedAccountsAccountDisconnect)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9807,9 +8897,6 @@ const getLinkedAccountsAccountOwners = b((r) => ({ withStatus: r.withStatus, })) -type GetLinkedAccountsAccountOwnersResponder = - (typeof getLinkedAccountsAccountOwners)["responder"] & KoaRuntimeResponder - export type GetLinkedAccountsAccountOwners = ( params: Params< t_GetLinkedAccountsAccountOwnersParamSchema, @@ -9817,7 +8904,7 @@ export type GetLinkedAccountsAccountOwners = ( t_GetLinkedAccountsAccountOwnersBodySchema | undefined, void >, - respond: GetLinkedAccountsAccountOwnersResponder, + respond: (typeof getLinkedAccountsAccountOwners)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9841,9 +8928,6 @@ const postLinkedAccountsAccountRefresh = b((r) => ({ withStatus: r.withStatus, })) -type PostLinkedAccountsAccountRefreshResponder = - (typeof postLinkedAccountsAccountRefresh)["responder"] & KoaRuntimeResponder - export type PostLinkedAccountsAccountRefresh = ( params: Params< t_PostLinkedAccountsAccountRefreshParamSchema, @@ -9851,7 +8935,7 @@ export type PostLinkedAccountsAccountRefresh = ( t_PostLinkedAccountsAccountRefreshBodySchema, void >, - respond: PostLinkedAccountsAccountRefreshResponder, + respond: (typeof postLinkedAccountsAccountRefresh)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9865,9 +8949,6 @@ const getMandatesMandate = b((r) => ({ withStatus: r.withStatus, })) -type GetMandatesMandateResponder = (typeof getMandatesMandate)["responder"] & - KoaRuntimeResponder - export type GetMandatesMandate = ( params: Params< t_GetMandatesMandateParamSchema, @@ -9875,7 +8956,7 @@ export type GetMandatesMandate = ( t_GetMandatesMandateBodySchema | undefined, void >, - respond: GetMandatesMandateResponder, + respond: (typeof getMandatesMandate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9901,9 +8982,6 @@ const getPaymentIntents = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentIntentsResponder = (typeof getPaymentIntents)["responder"] & - KoaRuntimeResponder - export type GetPaymentIntents = ( params: Params< void, @@ -9911,7 +8989,7 @@ export type GetPaymentIntents = ( t_GetPaymentIntentsBodySchema | undefined, void >, - respond: GetPaymentIntentsResponder, + respond: (typeof getPaymentIntents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9933,12 +9011,9 @@ const postPaymentIntents = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentIntentsResponder = (typeof postPaymentIntents)["responder"] & - KoaRuntimeResponder - export type PostPaymentIntents = ( params: Params, - respond: PostPaymentIntentsResponder, + respond: (typeof postPaymentIntents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -9968,9 +9043,6 @@ const getPaymentIntentsSearch = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentIntentsSearchResponder = - (typeof getPaymentIntentsSearch)["responder"] & KoaRuntimeResponder - export type GetPaymentIntentsSearch = ( params: Params< void, @@ -9978,7 +9050,7 @@ export type GetPaymentIntentsSearch = ( t_GetPaymentIntentsSearchBodySchema | undefined, void >, - respond: GetPaymentIntentsSearchResponder, + respond: (typeof getPaymentIntentsSearch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10002,9 +9074,6 @@ const getPaymentIntentsIntent = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentIntentsIntentResponder = - (typeof getPaymentIntentsIntent)["responder"] & KoaRuntimeResponder - export type GetPaymentIntentsIntent = ( params: Params< t_GetPaymentIntentsIntentParamSchema, @@ -10012,7 +9081,7 @@ export type GetPaymentIntentsIntent = ( t_GetPaymentIntentsIntentBodySchema | undefined, void >, - respond: GetPaymentIntentsIntentResponder, + respond: (typeof getPaymentIntentsIntent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10026,9 +9095,6 @@ const postPaymentIntentsIntent = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentIntentsIntentResponder = - (typeof postPaymentIntentsIntent)["responder"] & KoaRuntimeResponder - export type PostPaymentIntentsIntent = ( params: Params< t_PostPaymentIntentsIntentParamSchema, @@ -10036,7 +9102,7 @@ export type PostPaymentIntentsIntent = ( t_PostPaymentIntentsIntentBodySchema | undefined, void >, - respond: PostPaymentIntentsIntentResponder, + respond: (typeof postPaymentIntentsIntent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10050,10 +9116,6 @@ const postPaymentIntentsIntentApplyCustomerBalance = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentIntentsIntentApplyCustomerBalanceResponder = - (typeof postPaymentIntentsIntentApplyCustomerBalance)["responder"] & - KoaRuntimeResponder - export type PostPaymentIntentsIntentApplyCustomerBalance = ( params: Params< t_PostPaymentIntentsIntentApplyCustomerBalanceParamSchema, @@ -10061,7 +9123,7 @@ export type PostPaymentIntentsIntentApplyCustomerBalance = ( t_PostPaymentIntentsIntentApplyCustomerBalanceBodySchema | undefined, void >, - respond: PostPaymentIntentsIntentApplyCustomerBalanceResponder, + respond: (typeof postPaymentIntentsIntentApplyCustomerBalance)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10075,9 +9137,6 @@ const postPaymentIntentsIntentCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentIntentsIntentCancelResponder = - (typeof postPaymentIntentsIntentCancel)["responder"] & KoaRuntimeResponder - export type PostPaymentIntentsIntentCancel = ( params: Params< t_PostPaymentIntentsIntentCancelParamSchema, @@ -10085,7 +9144,7 @@ export type PostPaymentIntentsIntentCancel = ( t_PostPaymentIntentsIntentCancelBodySchema | undefined, void >, - respond: PostPaymentIntentsIntentCancelResponder, + respond: (typeof postPaymentIntentsIntentCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10099,9 +9158,6 @@ const postPaymentIntentsIntentCapture = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentIntentsIntentCaptureResponder = - (typeof postPaymentIntentsIntentCapture)["responder"] & KoaRuntimeResponder - export type PostPaymentIntentsIntentCapture = ( params: Params< t_PostPaymentIntentsIntentCaptureParamSchema, @@ -10109,7 +9165,7 @@ export type PostPaymentIntentsIntentCapture = ( t_PostPaymentIntentsIntentCaptureBodySchema | undefined, void >, - respond: PostPaymentIntentsIntentCaptureResponder, + respond: (typeof postPaymentIntentsIntentCapture)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10123,9 +9179,6 @@ const postPaymentIntentsIntentConfirm = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentIntentsIntentConfirmResponder = - (typeof postPaymentIntentsIntentConfirm)["responder"] & KoaRuntimeResponder - export type PostPaymentIntentsIntentConfirm = ( params: Params< t_PostPaymentIntentsIntentConfirmParamSchema, @@ -10133,7 +9186,7 @@ export type PostPaymentIntentsIntentConfirm = ( t_PostPaymentIntentsIntentConfirmBodySchema | undefined, void >, - respond: PostPaymentIntentsIntentConfirmResponder, + respond: (typeof postPaymentIntentsIntentConfirm)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10147,10 +9200,6 @@ const postPaymentIntentsIntentIncrementAuthorization = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentIntentsIntentIncrementAuthorizationResponder = - (typeof postPaymentIntentsIntentIncrementAuthorization)["responder"] & - KoaRuntimeResponder - export type PostPaymentIntentsIntentIncrementAuthorization = ( params: Params< t_PostPaymentIntentsIntentIncrementAuthorizationParamSchema, @@ -10158,7 +9207,7 @@ export type PostPaymentIntentsIntentIncrementAuthorization = ( t_PostPaymentIntentsIntentIncrementAuthorizationBodySchema, void >, - respond: PostPaymentIntentsIntentIncrementAuthorizationResponder, + respond: (typeof postPaymentIntentsIntentIncrementAuthorization)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10172,10 +9221,6 @@ const postPaymentIntentsIntentVerifyMicrodeposits = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentIntentsIntentVerifyMicrodepositsResponder = - (typeof postPaymentIntentsIntentVerifyMicrodeposits)["responder"] & - KoaRuntimeResponder - export type PostPaymentIntentsIntentVerifyMicrodeposits = ( params: Params< t_PostPaymentIntentsIntentVerifyMicrodepositsParamSchema, @@ -10183,7 +9228,7 @@ export type PostPaymentIntentsIntentVerifyMicrodeposits = ( t_PostPaymentIntentsIntentVerifyMicrodepositsBodySchema | undefined, void >, - respond: PostPaymentIntentsIntentVerifyMicrodepositsResponder, + respond: (typeof postPaymentIntentsIntentVerifyMicrodeposits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10209,9 +9254,6 @@ const getPaymentLinks = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentLinksResponder = (typeof getPaymentLinks)["responder"] & - KoaRuntimeResponder - export type GetPaymentLinks = ( params: Params< void, @@ -10219,7 +9261,7 @@ export type GetPaymentLinks = ( t_GetPaymentLinksBodySchema | undefined, void >, - respond: GetPaymentLinksResponder, + respond: (typeof getPaymentLinks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10241,12 +9283,9 @@ const postPaymentLinks = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentLinksResponder = (typeof postPaymentLinks)["responder"] & - KoaRuntimeResponder - export type PostPaymentLinks = ( params: Params, - respond: PostPaymentLinksResponder, + respond: (typeof postPaymentLinks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10260,9 +9299,6 @@ const getPaymentLinksPaymentLink = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentLinksPaymentLinkResponder = - (typeof getPaymentLinksPaymentLink)["responder"] & KoaRuntimeResponder - export type GetPaymentLinksPaymentLink = ( params: Params< t_GetPaymentLinksPaymentLinkParamSchema, @@ -10270,7 +9306,7 @@ export type GetPaymentLinksPaymentLink = ( t_GetPaymentLinksPaymentLinkBodySchema | undefined, void >, - respond: GetPaymentLinksPaymentLinkResponder, + respond: (typeof getPaymentLinksPaymentLink)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10284,9 +9320,6 @@ const postPaymentLinksPaymentLink = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentLinksPaymentLinkResponder = - (typeof postPaymentLinksPaymentLink)["responder"] & KoaRuntimeResponder - export type PostPaymentLinksPaymentLink = ( params: Params< t_PostPaymentLinksPaymentLinkParamSchema, @@ -10294,7 +9327,7 @@ export type PostPaymentLinksPaymentLink = ( t_PostPaymentLinksPaymentLinkBodySchema | undefined, void >, - respond: PostPaymentLinksPaymentLinkResponder, + respond: (typeof postPaymentLinksPaymentLink)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10320,10 +9353,6 @@ const getPaymentLinksPaymentLinkLineItems = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentLinksPaymentLinkLineItemsResponder = - (typeof getPaymentLinksPaymentLinkLineItems)["responder"] & - KoaRuntimeResponder - export type GetPaymentLinksPaymentLinkLineItems = ( params: Params< t_GetPaymentLinksPaymentLinkLineItemsParamSchema, @@ -10331,7 +9360,7 @@ export type GetPaymentLinksPaymentLinkLineItems = ( t_GetPaymentLinksPaymentLinkLineItemsBodySchema | undefined, void >, - respond: GetPaymentLinksPaymentLinkLineItemsResponder, + respond: (typeof getPaymentLinksPaymentLinkLineItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10368,9 +9397,6 @@ const getPaymentMethodConfigurations = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentMethodConfigurationsResponder = - (typeof getPaymentMethodConfigurations)["responder"] & KoaRuntimeResponder - export type GetPaymentMethodConfigurations = ( params: Params< void, @@ -10378,7 +9404,7 @@ export type GetPaymentMethodConfigurations = ( t_GetPaymentMethodConfigurationsBodySchema | undefined, void >, - respond: GetPaymentMethodConfigurationsResponder, + respond: (typeof getPaymentMethodConfigurations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10402,9 +9428,6 @@ const postPaymentMethodConfigurations = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodConfigurationsResponder = - (typeof postPaymentMethodConfigurations)["responder"] & KoaRuntimeResponder - export type PostPaymentMethodConfigurations = ( params: Params< void, @@ -10412,7 +9435,7 @@ export type PostPaymentMethodConfigurations = ( t_PostPaymentMethodConfigurationsBodySchema | undefined, void >, - respond: PostPaymentMethodConfigurationsResponder, + respond: (typeof postPaymentMethodConfigurations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10428,10 +9451,6 @@ const getPaymentMethodConfigurationsConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentMethodConfigurationsConfigurationResponder = - (typeof getPaymentMethodConfigurationsConfiguration)["responder"] & - KoaRuntimeResponder - export type GetPaymentMethodConfigurationsConfiguration = ( params: Params< t_GetPaymentMethodConfigurationsConfigurationParamSchema, @@ -10439,7 +9458,7 @@ export type GetPaymentMethodConfigurationsConfiguration = ( t_GetPaymentMethodConfigurationsConfigurationBodySchema | undefined, void >, - respond: GetPaymentMethodConfigurationsConfigurationResponder, + respond: (typeof getPaymentMethodConfigurationsConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10455,10 +9474,6 @@ const postPaymentMethodConfigurationsConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodConfigurationsConfigurationResponder = - (typeof postPaymentMethodConfigurationsConfiguration)["responder"] & - KoaRuntimeResponder - export type PostPaymentMethodConfigurationsConfiguration = ( params: Params< t_PostPaymentMethodConfigurationsConfigurationParamSchema, @@ -10466,7 +9481,7 @@ export type PostPaymentMethodConfigurationsConfiguration = ( t_PostPaymentMethodConfigurationsConfigurationBodySchema | undefined, void >, - respond: PostPaymentMethodConfigurationsConfigurationResponder, + respond: (typeof postPaymentMethodConfigurationsConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10495,9 +9510,6 @@ const getPaymentMethodDomains = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentMethodDomainsResponder = - (typeof getPaymentMethodDomains)["responder"] & KoaRuntimeResponder - export type GetPaymentMethodDomains = ( params: Params< void, @@ -10505,7 +9517,7 @@ export type GetPaymentMethodDomains = ( t_GetPaymentMethodDomainsBodySchema | undefined, void >, - respond: GetPaymentMethodDomainsResponder, + respond: (typeof getPaymentMethodDomains)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10527,12 +9539,9 @@ const postPaymentMethodDomains = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodDomainsResponder = - (typeof postPaymentMethodDomains)["responder"] & KoaRuntimeResponder - export type PostPaymentMethodDomains = ( params: Params, - respond: PostPaymentMethodDomainsResponder, + respond: (typeof postPaymentMethodDomains)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10546,10 +9555,6 @@ const getPaymentMethodDomainsPaymentMethodDomain = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentMethodDomainsPaymentMethodDomainResponder = - (typeof getPaymentMethodDomainsPaymentMethodDomain)["responder"] & - KoaRuntimeResponder - export type GetPaymentMethodDomainsPaymentMethodDomain = ( params: Params< t_GetPaymentMethodDomainsPaymentMethodDomainParamSchema, @@ -10557,7 +9562,7 @@ export type GetPaymentMethodDomainsPaymentMethodDomain = ( t_GetPaymentMethodDomainsPaymentMethodDomainBodySchema | undefined, void >, - respond: GetPaymentMethodDomainsPaymentMethodDomainResponder, + respond: (typeof getPaymentMethodDomainsPaymentMethodDomain)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10571,10 +9576,6 @@ const postPaymentMethodDomainsPaymentMethodDomain = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodDomainsPaymentMethodDomainResponder = - (typeof postPaymentMethodDomainsPaymentMethodDomain)["responder"] & - KoaRuntimeResponder - export type PostPaymentMethodDomainsPaymentMethodDomain = ( params: Params< t_PostPaymentMethodDomainsPaymentMethodDomainParamSchema, @@ -10582,7 +9583,7 @@ export type PostPaymentMethodDomainsPaymentMethodDomain = ( t_PostPaymentMethodDomainsPaymentMethodDomainBodySchema | undefined, void >, - respond: PostPaymentMethodDomainsPaymentMethodDomainResponder, + respond: (typeof postPaymentMethodDomainsPaymentMethodDomain)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10596,10 +9597,6 @@ const postPaymentMethodDomainsPaymentMethodDomainValidate = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodDomainsPaymentMethodDomainValidateResponder = - (typeof postPaymentMethodDomainsPaymentMethodDomainValidate)["responder"] & - KoaRuntimeResponder - export type PostPaymentMethodDomainsPaymentMethodDomainValidate = ( params: Params< t_PostPaymentMethodDomainsPaymentMethodDomainValidateParamSchema, @@ -10607,7 +9604,7 @@ export type PostPaymentMethodDomainsPaymentMethodDomainValidate = ( t_PostPaymentMethodDomainsPaymentMethodDomainValidateBodySchema | undefined, void >, - respond: PostPaymentMethodDomainsPaymentMethodDomainValidateResponder, + respond: (typeof postPaymentMethodDomainsPaymentMethodDomainValidate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10633,9 +9630,6 @@ const getPaymentMethods = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentMethodsResponder = (typeof getPaymentMethods)["responder"] & - KoaRuntimeResponder - export type GetPaymentMethods = ( params: Params< void, @@ -10643,7 +9637,7 @@ export type GetPaymentMethods = ( t_GetPaymentMethodsBodySchema | undefined, void >, - respond: GetPaymentMethodsResponder, + respond: (typeof getPaymentMethods)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10665,12 +9659,9 @@ const postPaymentMethods = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodsResponder = (typeof postPaymentMethods)["responder"] & - KoaRuntimeResponder - export type PostPaymentMethods = ( params: Params, - respond: PostPaymentMethodsResponder, + respond: (typeof postPaymentMethods)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10684,9 +9675,6 @@ const getPaymentMethodsPaymentMethod = b((r) => ({ withStatus: r.withStatus, })) -type GetPaymentMethodsPaymentMethodResponder = - (typeof getPaymentMethodsPaymentMethod)["responder"] & KoaRuntimeResponder - export type GetPaymentMethodsPaymentMethod = ( params: Params< t_GetPaymentMethodsPaymentMethodParamSchema, @@ -10694,7 +9682,7 @@ export type GetPaymentMethodsPaymentMethod = ( t_GetPaymentMethodsPaymentMethodBodySchema | undefined, void >, - respond: GetPaymentMethodsPaymentMethodResponder, + respond: (typeof getPaymentMethodsPaymentMethod)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10708,9 +9696,6 @@ const postPaymentMethodsPaymentMethod = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodsPaymentMethodResponder = - (typeof postPaymentMethodsPaymentMethod)["responder"] & KoaRuntimeResponder - export type PostPaymentMethodsPaymentMethod = ( params: Params< t_PostPaymentMethodsPaymentMethodParamSchema, @@ -10718,7 +9703,7 @@ export type PostPaymentMethodsPaymentMethod = ( t_PostPaymentMethodsPaymentMethodBodySchema | undefined, void >, - respond: PostPaymentMethodsPaymentMethodResponder, + respond: (typeof postPaymentMethodsPaymentMethod)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10732,10 +9717,6 @@ const postPaymentMethodsPaymentMethodAttach = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodsPaymentMethodAttachResponder = - (typeof postPaymentMethodsPaymentMethodAttach)["responder"] & - KoaRuntimeResponder - export type PostPaymentMethodsPaymentMethodAttach = ( params: Params< t_PostPaymentMethodsPaymentMethodAttachParamSchema, @@ -10743,7 +9724,7 @@ export type PostPaymentMethodsPaymentMethodAttach = ( t_PostPaymentMethodsPaymentMethodAttachBodySchema, void >, - respond: PostPaymentMethodsPaymentMethodAttachResponder, + respond: (typeof postPaymentMethodsPaymentMethodAttach)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10757,10 +9738,6 @@ const postPaymentMethodsPaymentMethodDetach = b((r) => ({ withStatus: r.withStatus, })) -type PostPaymentMethodsPaymentMethodDetachResponder = - (typeof postPaymentMethodsPaymentMethodDetach)["responder"] & - KoaRuntimeResponder - export type PostPaymentMethodsPaymentMethodDetach = ( params: Params< t_PostPaymentMethodsPaymentMethodDetachParamSchema, @@ -10768,7 +9745,7 @@ export type PostPaymentMethodsPaymentMethodDetach = ( t_PostPaymentMethodsPaymentMethodDetachBodySchema | undefined, void >, - respond: PostPaymentMethodsPaymentMethodDetachResponder, + respond: (typeof postPaymentMethodsPaymentMethodDetach)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10794,9 +9771,6 @@ const getPayouts = b((r) => ({ withStatus: r.withStatus, })) -type GetPayoutsResponder = (typeof getPayouts)["responder"] & - KoaRuntimeResponder - export type GetPayouts = ( params: Params< void, @@ -10804,7 +9778,7 @@ export type GetPayouts = ( t_GetPayoutsBodySchema | undefined, void >, - respond: GetPayoutsResponder, + respond: (typeof getPayouts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10826,12 +9800,9 @@ const postPayouts = b((r) => ({ withStatus: r.withStatus, })) -type PostPayoutsResponder = (typeof postPayouts)["responder"] & - KoaRuntimeResponder - export type PostPayouts = ( params: Params, - respond: PostPayoutsResponder, + respond: (typeof postPayouts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10845,9 +9816,6 @@ const getPayoutsPayout = b((r) => ({ withStatus: r.withStatus, })) -type GetPayoutsPayoutResponder = (typeof getPayoutsPayout)["responder"] & - KoaRuntimeResponder - export type GetPayoutsPayout = ( params: Params< t_GetPayoutsPayoutParamSchema, @@ -10855,7 +9823,7 @@ export type GetPayoutsPayout = ( t_GetPayoutsPayoutBodySchema | undefined, void >, - respond: GetPayoutsPayoutResponder, + respond: (typeof getPayoutsPayout)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10869,9 +9837,6 @@ const postPayoutsPayout = b((r) => ({ withStatus: r.withStatus, })) -type PostPayoutsPayoutResponder = (typeof postPayoutsPayout)["responder"] & - KoaRuntimeResponder - export type PostPayoutsPayout = ( params: Params< t_PostPayoutsPayoutParamSchema, @@ -10879,7 +9844,7 @@ export type PostPayoutsPayout = ( t_PostPayoutsPayoutBodySchema | undefined, void >, - respond: PostPayoutsPayoutResponder, + respond: (typeof postPayoutsPayout)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10893,9 +9858,6 @@ const postPayoutsPayoutCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostPayoutsPayoutCancelResponder = - (typeof postPayoutsPayoutCancel)["responder"] & KoaRuntimeResponder - export type PostPayoutsPayoutCancel = ( params: Params< t_PostPayoutsPayoutCancelParamSchema, @@ -10903,7 +9865,7 @@ export type PostPayoutsPayoutCancel = ( t_PostPayoutsPayoutCancelBodySchema | undefined, void >, - respond: PostPayoutsPayoutCancelResponder, + respond: (typeof postPayoutsPayoutCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10917,9 +9879,6 @@ const postPayoutsPayoutReverse = b((r) => ({ withStatus: r.withStatus, })) -type PostPayoutsPayoutReverseResponder = - (typeof postPayoutsPayoutReverse)["responder"] & KoaRuntimeResponder - export type PostPayoutsPayoutReverse = ( params: Params< t_PostPayoutsPayoutReverseParamSchema, @@ -10927,7 +9886,7 @@ export type PostPayoutsPayoutReverse = ( t_PostPayoutsPayoutReverseBodySchema | undefined, void >, - respond: PostPayoutsPayoutReverseResponder, + respond: (typeof postPayoutsPayoutReverse)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10953,8 +9912,6 @@ const getPlans = b((r) => ({ withStatus: r.withStatus, })) -type GetPlansResponder = (typeof getPlans)["responder"] & KoaRuntimeResponder - export type GetPlans = ( params: Params< void, @@ -10962,7 +9919,7 @@ export type GetPlans = ( t_GetPlansBodySchema | undefined, void >, - respond: GetPlansResponder, + respond: (typeof getPlans)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -10984,11 +9941,9 @@ const postPlans = b((r) => ({ withStatus: r.withStatus, })) -type PostPlansResponder = (typeof postPlans)["responder"] & KoaRuntimeResponder - export type PostPlans = ( params: Params, - respond: PostPlansResponder, + respond: (typeof postPlans)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11002,9 +9957,6 @@ const deletePlansPlan = b((r) => ({ withStatus: r.withStatus, })) -type DeletePlansPlanResponder = (typeof deletePlansPlan)["responder"] & - KoaRuntimeResponder - export type DeletePlansPlan = ( params: Params< t_DeletePlansPlanParamSchema, @@ -11012,7 +9964,7 @@ export type DeletePlansPlan = ( t_DeletePlansPlanBodySchema | undefined, void >, - respond: DeletePlansPlanResponder, + respond: (typeof deletePlansPlan)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11026,9 +9978,6 @@ const getPlansPlan = b((r) => ({ withStatus: r.withStatus, })) -type GetPlansPlanResponder = (typeof getPlansPlan)["responder"] & - KoaRuntimeResponder - export type GetPlansPlan = ( params: Params< t_GetPlansPlanParamSchema, @@ -11036,7 +9985,7 @@ export type GetPlansPlan = ( t_GetPlansPlanBodySchema | undefined, void >, - respond: GetPlansPlanResponder, + respond: (typeof getPlansPlan)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11050,9 +9999,6 @@ const postPlansPlan = b((r) => ({ withStatus: r.withStatus, })) -type PostPlansPlanResponder = (typeof postPlansPlan)["responder"] & - KoaRuntimeResponder - export type PostPlansPlan = ( params: Params< t_PostPlansPlanParamSchema, @@ -11060,7 +10006,7 @@ export type PostPlansPlan = ( t_PostPlansPlanBodySchema | undefined, void >, - respond: PostPlansPlanResponder, + respond: (typeof postPlansPlan)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11086,8 +10032,6 @@ const getPrices = b((r) => ({ withStatus: r.withStatus, })) -type GetPricesResponder = (typeof getPrices)["responder"] & KoaRuntimeResponder - export type GetPrices = ( params: Params< void, @@ -11095,7 +10039,7 @@ export type GetPrices = ( t_GetPricesBodySchema | undefined, void >, - respond: GetPricesResponder, + respond: (typeof getPrices)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11117,12 +10061,9 @@ const postPrices = b((r) => ({ withStatus: r.withStatus, })) -type PostPricesResponder = (typeof postPrices)["responder"] & - KoaRuntimeResponder - export type PostPrices = ( params: Params, - respond: PostPricesResponder, + respond: (typeof postPrices)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11152,9 +10093,6 @@ const getPricesSearch = b((r) => ({ withStatus: r.withStatus, })) -type GetPricesSearchResponder = (typeof getPricesSearch)["responder"] & - KoaRuntimeResponder - export type GetPricesSearch = ( params: Params< void, @@ -11162,7 +10100,7 @@ export type GetPricesSearch = ( t_GetPricesSearchBodySchema | undefined, void >, - respond: GetPricesSearchResponder, + respond: (typeof getPricesSearch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11186,9 +10124,6 @@ const getPricesPrice = b((r) => ({ withStatus: r.withStatus, })) -type GetPricesPriceResponder = (typeof getPricesPrice)["responder"] & - KoaRuntimeResponder - export type GetPricesPrice = ( params: Params< t_GetPricesPriceParamSchema, @@ -11196,7 +10131,7 @@ export type GetPricesPrice = ( t_GetPricesPriceBodySchema | undefined, void >, - respond: GetPricesPriceResponder, + respond: (typeof getPricesPrice)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11210,9 +10145,6 @@ const postPricesPrice = b((r) => ({ withStatus: r.withStatus, })) -type PostPricesPriceResponder = (typeof postPricesPrice)["responder"] & - KoaRuntimeResponder - export type PostPricesPrice = ( params: Params< t_PostPricesPriceParamSchema, @@ -11220,7 +10152,7 @@ export type PostPricesPrice = ( t_PostPricesPriceBodySchema | undefined, void >, - respond: PostPricesPriceResponder, + respond: (typeof postPricesPrice)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11246,9 +10178,6 @@ const getProducts = b((r) => ({ withStatus: r.withStatus, })) -type GetProductsResponder = (typeof getProducts)["responder"] & - KoaRuntimeResponder - export type GetProducts = ( params: Params< void, @@ -11256,7 +10185,7 @@ export type GetProducts = ( t_GetProductsBodySchema | undefined, void >, - respond: GetProductsResponder, + respond: (typeof getProducts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11278,12 +10207,9 @@ const postProducts = b((r) => ({ withStatus: r.withStatus, })) -type PostProductsResponder = (typeof postProducts)["responder"] & - KoaRuntimeResponder - export type PostProducts = ( params: Params, - respond: PostProductsResponder, + respond: (typeof postProducts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11313,9 +10239,6 @@ const getProductsSearch = b((r) => ({ withStatus: r.withStatus, })) -type GetProductsSearchResponder = (typeof getProductsSearch)["responder"] & - KoaRuntimeResponder - export type GetProductsSearch = ( params: Params< void, @@ -11323,7 +10246,7 @@ export type GetProductsSearch = ( t_GetProductsSearchBodySchema | undefined, void >, - respond: GetProductsSearchResponder, + respond: (typeof getProductsSearch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11347,9 +10270,6 @@ const deleteProductsId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteProductsIdResponder = (typeof deleteProductsId)["responder"] & - KoaRuntimeResponder - export type DeleteProductsId = ( params: Params< t_DeleteProductsIdParamSchema, @@ -11357,7 +10277,7 @@ export type DeleteProductsId = ( t_DeleteProductsIdBodySchema | undefined, void >, - respond: DeleteProductsIdResponder, + respond: (typeof deleteProductsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11371,9 +10291,6 @@ const getProductsId = b((r) => ({ withStatus: r.withStatus, })) -type GetProductsIdResponder = (typeof getProductsId)["responder"] & - KoaRuntimeResponder - export type GetProductsId = ( params: Params< t_GetProductsIdParamSchema, @@ -11381,7 +10298,7 @@ export type GetProductsId = ( t_GetProductsIdBodySchema | undefined, void >, - respond: GetProductsIdResponder, + respond: (typeof getProductsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11395,9 +10312,6 @@ const postProductsId = b((r) => ({ withStatus: r.withStatus, })) -type PostProductsIdResponder = (typeof postProductsId)["responder"] & - KoaRuntimeResponder - export type PostProductsId = ( params: Params< t_PostProductsIdParamSchema, @@ -11405,7 +10319,7 @@ export type PostProductsId = ( t_PostProductsIdBodySchema | undefined, void >, - respond: PostProductsIdResponder, + respond: (typeof postProductsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11431,9 +10345,6 @@ const getProductsProductFeatures = b((r) => ({ withStatus: r.withStatus, })) -type GetProductsProductFeaturesResponder = - (typeof getProductsProductFeatures)["responder"] & KoaRuntimeResponder - export type GetProductsProductFeatures = ( params: Params< t_GetProductsProductFeaturesParamSchema, @@ -11441,7 +10352,7 @@ export type GetProductsProductFeatures = ( t_GetProductsProductFeaturesBodySchema | undefined, void >, - respond: GetProductsProductFeaturesResponder, + respond: (typeof getProductsProductFeatures)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11463,9 +10374,6 @@ const postProductsProductFeatures = b((r) => ({ withStatus: r.withStatus, })) -type PostProductsProductFeaturesResponder = - (typeof postProductsProductFeatures)["responder"] & KoaRuntimeResponder - export type PostProductsProductFeatures = ( params: Params< t_PostProductsProductFeaturesParamSchema, @@ -11473,7 +10381,7 @@ export type PostProductsProductFeatures = ( t_PostProductsProductFeaturesBodySchema, void >, - respond: PostProductsProductFeaturesResponder, + respond: (typeof postProductsProductFeatures)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11487,9 +10395,6 @@ const deleteProductsProductFeaturesId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteProductsProductFeaturesIdResponder = - (typeof deleteProductsProductFeaturesId)["responder"] & KoaRuntimeResponder - export type DeleteProductsProductFeaturesId = ( params: Params< t_DeleteProductsProductFeaturesIdParamSchema, @@ -11497,7 +10402,7 @@ export type DeleteProductsProductFeaturesId = ( t_DeleteProductsProductFeaturesIdBodySchema | undefined, void >, - respond: DeleteProductsProductFeaturesIdResponder, + respond: (typeof deleteProductsProductFeaturesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11511,9 +10416,6 @@ const getProductsProductFeaturesId = b((r) => ({ withStatus: r.withStatus, })) -type GetProductsProductFeaturesIdResponder = - (typeof getProductsProductFeaturesId)["responder"] & KoaRuntimeResponder - export type GetProductsProductFeaturesId = ( params: Params< t_GetProductsProductFeaturesIdParamSchema, @@ -11521,7 +10423,7 @@ export type GetProductsProductFeaturesId = ( t_GetProductsProductFeaturesIdBodySchema | undefined, void >, - respond: GetProductsProductFeaturesIdResponder, + respond: (typeof getProductsProductFeaturesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11547,9 +10449,6 @@ const getPromotionCodes = b((r) => ({ withStatus: r.withStatus, })) -type GetPromotionCodesResponder = (typeof getPromotionCodes)["responder"] & - KoaRuntimeResponder - export type GetPromotionCodes = ( params: Params< void, @@ -11557,7 +10456,7 @@ export type GetPromotionCodes = ( t_GetPromotionCodesBodySchema | undefined, void >, - respond: GetPromotionCodesResponder, + respond: (typeof getPromotionCodes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11579,12 +10478,9 @@ const postPromotionCodes = b((r) => ({ withStatus: r.withStatus, })) -type PostPromotionCodesResponder = (typeof postPromotionCodes)["responder"] & - KoaRuntimeResponder - export type PostPromotionCodes = ( params: Params, - respond: PostPromotionCodesResponder, + respond: (typeof postPromotionCodes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11598,9 +10494,6 @@ const getPromotionCodesPromotionCode = b((r) => ({ withStatus: r.withStatus, })) -type GetPromotionCodesPromotionCodeResponder = - (typeof getPromotionCodesPromotionCode)["responder"] & KoaRuntimeResponder - export type GetPromotionCodesPromotionCode = ( params: Params< t_GetPromotionCodesPromotionCodeParamSchema, @@ -11608,7 +10501,7 @@ export type GetPromotionCodesPromotionCode = ( t_GetPromotionCodesPromotionCodeBodySchema | undefined, void >, - respond: GetPromotionCodesPromotionCodeResponder, + respond: (typeof getPromotionCodesPromotionCode)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11622,9 +10515,6 @@ const postPromotionCodesPromotionCode = b((r) => ({ withStatus: r.withStatus, })) -type PostPromotionCodesPromotionCodeResponder = - (typeof postPromotionCodesPromotionCode)["responder"] & KoaRuntimeResponder - export type PostPromotionCodesPromotionCode = ( params: Params< t_PostPromotionCodesPromotionCodeParamSchema, @@ -11632,7 +10522,7 @@ export type PostPromotionCodesPromotionCode = ( t_PostPromotionCodesPromotionCodeBodySchema | undefined, void >, - respond: PostPromotionCodesPromotionCodeResponder, + respond: (typeof postPromotionCodesPromotionCode)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11658,8 +10548,6 @@ const getQuotes = b((r) => ({ withStatus: r.withStatus, })) -type GetQuotesResponder = (typeof getQuotes)["responder"] & KoaRuntimeResponder - export type GetQuotes = ( params: Params< void, @@ -11667,7 +10555,7 @@ export type GetQuotes = ( t_GetQuotesBodySchema | undefined, void >, - respond: GetQuotesResponder, + respond: (typeof getQuotes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11689,12 +10577,9 @@ const postQuotes = b((r) => ({ withStatus: r.withStatus, })) -type PostQuotesResponder = (typeof postQuotes)["responder"] & - KoaRuntimeResponder - export type PostQuotes = ( params: Params, - respond: PostQuotesResponder, + respond: (typeof postQuotes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11708,9 +10593,6 @@ const getQuotesQuote = b((r) => ({ withStatus: r.withStatus, })) -type GetQuotesQuoteResponder = (typeof getQuotesQuote)["responder"] & - KoaRuntimeResponder - export type GetQuotesQuote = ( params: Params< t_GetQuotesQuoteParamSchema, @@ -11718,7 +10600,7 @@ export type GetQuotesQuote = ( t_GetQuotesQuoteBodySchema | undefined, void >, - respond: GetQuotesQuoteResponder, + respond: (typeof getQuotesQuote)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11732,9 +10614,6 @@ const postQuotesQuote = b((r) => ({ withStatus: r.withStatus, })) -type PostQuotesQuoteResponder = (typeof postQuotesQuote)["responder"] & - KoaRuntimeResponder - export type PostQuotesQuote = ( params: Params< t_PostQuotesQuoteParamSchema, @@ -11742,7 +10621,7 @@ export type PostQuotesQuote = ( t_PostQuotesQuoteBodySchema | undefined, void >, - respond: PostQuotesQuoteResponder, + respond: (typeof postQuotesQuote)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11756,9 +10635,6 @@ const postQuotesQuoteAccept = b((r) => ({ withStatus: r.withStatus, })) -type PostQuotesQuoteAcceptResponder = - (typeof postQuotesQuoteAccept)["responder"] & KoaRuntimeResponder - export type PostQuotesQuoteAccept = ( params: Params< t_PostQuotesQuoteAcceptParamSchema, @@ -11766,7 +10642,7 @@ export type PostQuotesQuoteAccept = ( t_PostQuotesQuoteAcceptBodySchema | undefined, void >, - respond: PostQuotesQuoteAcceptResponder, + respond: (typeof postQuotesQuoteAccept)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11780,9 +10656,6 @@ const postQuotesQuoteCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostQuotesQuoteCancelResponder = - (typeof postQuotesQuoteCancel)["responder"] & KoaRuntimeResponder - export type PostQuotesQuoteCancel = ( params: Params< t_PostQuotesQuoteCancelParamSchema, @@ -11790,7 +10663,7 @@ export type PostQuotesQuoteCancel = ( t_PostQuotesQuoteCancelBodySchema | undefined, void >, - respond: PostQuotesQuoteCancelResponder, + respond: (typeof postQuotesQuoteCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11816,10 +10689,6 @@ const getQuotesQuoteComputedUpfrontLineItems = b((r) => ({ withStatus: r.withStatus, })) -type GetQuotesQuoteComputedUpfrontLineItemsResponder = - (typeof getQuotesQuoteComputedUpfrontLineItems)["responder"] & - KoaRuntimeResponder - export type GetQuotesQuoteComputedUpfrontLineItems = ( params: Params< t_GetQuotesQuoteComputedUpfrontLineItemsParamSchema, @@ -11827,7 +10696,7 @@ export type GetQuotesQuoteComputedUpfrontLineItems = ( t_GetQuotesQuoteComputedUpfrontLineItemsBodySchema | undefined, void >, - respond: GetQuotesQuoteComputedUpfrontLineItemsResponder, + respond: (typeof getQuotesQuoteComputedUpfrontLineItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11849,9 +10718,6 @@ const postQuotesQuoteFinalize = b((r) => ({ withStatus: r.withStatus, })) -type PostQuotesQuoteFinalizeResponder = - (typeof postQuotesQuoteFinalize)["responder"] & KoaRuntimeResponder - export type PostQuotesQuoteFinalize = ( params: Params< t_PostQuotesQuoteFinalizeParamSchema, @@ -11859,7 +10725,7 @@ export type PostQuotesQuoteFinalize = ( t_PostQuotesQuoteFinalizeBodySchema | undefined, void >, - respond: PostQuotesQuoteFinalizeResponder, + respond: (typeof postQuotesQuoteFinalize)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11885,9 +10751,6 @@ const getQuotesQuoteLineItems = b((r) => ({ withStatus: r.withStatus, })) -type GetQuotesQuoteLineItemsResponder = - (typeof getQuotesQuoteLineItems)["responder"] & KoaRuntimeResponder - export type GetQuotesQuoteLineItems = ( params: Params< t_GetQuotesQuoteLineItemsParamSchema, @@ -11895,7 +10758,7 @@ export type GetQuotesQuoteLineItems = ( t_GetQuotesQuoteLineItemsBodySchema | undefined, void >, - respond: GetQuotesQuoteLineItemsResponder, + respond: (typeof getQuotesQuoteLineItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11917,9 +10780,6 @@ const getQuotesQuotePdf = b((r) => ({ withStatus: r.withStatus, })) -type GetQuotesQuotePdfResponder = (typeof getQuotesQuotePdf)["responder"] & - KoaRuntimeResponder - export type GetQuotesQuotePdf = ( params: Params< t_GetQuotesQuotePdfParamSchema, @@ -11927,7 +10787,7 @@ export type GetQuotesQuotePdf = ( t_GetQuotesQuotePdfBodySchema | undefined, void >, - respond: GetQuotesQuotePdfResponder, + respond: (typeof getQuotesQuotePdf)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11956,9 +10816,6 @@ const getRadarEarlyFraudWarnings = b((r) => ({ withStatus: r.withStatus, })) -type GetRadarEarlyFraudWarningsResponder = - (typeof getRadarEarlyFraudWarnings)["responder"] & KoaRuntimeResponder - export type GetRadarEarlyFraudWarnings = ( params: Params< void, @@ -11966,7 +10823,7 @@ export type GetRadarEarlyFraudWarnings = ( t_GetRadarEarlyFraudWarningsBodySchema | undefined, void >, - respond: GetRadarEarlyFraudWarningsResponder, + respond: (typeof getRadarEarlyFraudWarnings)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -11988,10 +10845,6 @@ const getRadarEarlyFraudWarningsEarlyFraudWarning = b((r) => ({ withStatus: r.withStatus, })) -type GetRadarEarlyFraudWarningsEarlyFraudWarningResponder = - (typeof getRadarEarlyFraudWarningsEarlyFraudWarning)["responder"] & - KoaRuntimeResponder - export type GetRadarEarlyFraudWarningsEarlyFraudWarning = ( params: Params< t_GetRadarEarlyFraudWarningsEarlyFraudWarningParamSchema, @@ -11999,7 +10852,7 @@ export type GetRadarEarlyFraudWarningsEarlyFraudWarning = ( t_GetRadarEarlyFraudWarningsEarlyFraudWarningBodySchema | undefined, void >, - respond: GetRadarEarlyFraudWarningsEarlyFraudWarningResponder, + respond: (typeof getRadarEarlyFraudWarningsEarlyFraudWarning)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12028,9 +10881,6 @@ const getRadarValueListItems = b((r) => ({ withStatus: r.withStatus, })) -type GetRadarValueListItemsResponder = - (typeof getRadarValueListItems)["responder"] & KoaRuntimeResponder - export type GetRadarValueListItems = ( params: Params< void, @@ -12038,7 +10888,7 @@ export type GetRadarValueListItems = ( t_GetRadarValueListItemsBodySchema | undefined, void >, - respond: GetRadarValueListItemsResponder, + respond: (typeof getRadarValueListItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12060,12 +10910,9 @@ const postRadarValueListItems = b((r) => ({ withStatus: r.withStatus, })) -type PostRadarValueListItemsResponder = - (typeof postRadarValueListItems)["responder"] & KoaRuntimeResponder - export type PostRadarValueListItems = ( params: Params, - respond: PostRadarValueListItemsResponder, + respond: (typeof postRadarValueListItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12081,9 +10928,6 @@ const deleteRadarValueListItemsItem = b((r) => ({ withStatus: r.withStatus, })) -type DeleteRadarValueListItemsItemResponder = - (typeof deleteRadarValueListItemsItem)["responder"] & KoaRuntimeResponder - export type DeleteRadarValueListItemsItem = ( params: Params< t_DeleteRadarValueListItemsItemParamSchema, @@ -12091,7 +10935,7 @@ export type DeleteRadarValueListItemsItem = ( t_DeleteRadarValueListItemsItemBodySchema | undefined, void >, - respond: DeleteRadarValueListItemsItemResponder, + respond: (typeof deleteRadarValueListItemsItem)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12105,9 +10949,6 @@ const getRadarValueListItemsItem = b((r) => ({ withStatus: r.withStatus, })) -type GetRadarValueListItemsItemResponder = - (typeof getRadarValueListItemsItem)["responder"] & KoaRuntimeResponder - export type GetRadarValueListItemsItem = ( params: Params< t_GetRadarValueListItemsItemParamSchema, @@ -12115,7 +10956,7 @@ export type GetRadarValueListItemsItem = ( t_GetRadarValueListItemsItemBodySchema | undefined, void >, - respond: GetRadarValueListItemsItemResponder, + respond: (typeof getRadarValueListItemsItem)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12141,9 +10982,6 @@ const getRadarValueLists = b((r) => ({ withStatus: r.withStatus, })) -type GetRadarValueListsResponder = (typeof getRadarValueLists)["responder"] & - KoaRuntimeResponder - export type GetRadarValueLists = ( params: Params< void, @@ -12151,7 +10989,7 @@ export type GetRadarValueLists = ( t_GetRadarValueListsBodySchema | undefined, void >, - respond: GetRadarValueListsResponder, + respond: (typeof getRadarValueLists)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12173,12 +11011,9 @@ const postRadarValueLists = b((r) => ({ withStatus: r.withStatus, })) -type PostRadarValueListsResponder = (typeof postRadarValueLists)["responder"] & - KoaRuntimeResponder - export type PostRadarValueLists = ( params: Params, - respond: PostRadarValueListsResponder, + respond: (typeof postRadarValueLists)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12192,9 +11027,6 @@ const deleteRadarValueListsValueList = b((r) => ({ withStatus: r.withStatus, })) -type DeleteRadarValueListsValueListResponder = - (typeof deleteRadarValueListsValueList)["responder"] & KoaRuntimeResponder - export type DeleteRadarValueListsValueList = ( params: Params< t_DeleteRadarValueListsValueListParamSchema, @@ -12202,7 +11034,7 @@ export type DeleteRadarValueListsValueList = ( t_DeleteRadarValueListsValueListBodySchema | undefined, void >, - respond: DeleteRadarValueListsValueListResponder, + respond: (typeof deleteRadarValueListsValueList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12216,9 +11048,6 @@ const getRadarValueListsValueList = b((r) => ({ withStatus: r.withStatus, })) -type GetRadarValueListsValueListResponder = - (typeof getRadarValueListsValueList)["responder"] & KoaRuntimeResponder - export type GetRadarValueListsValueList = ( params: Params< t_GetRadarValueListsValueListParamSchema, @@ -12226,7 +11055,7 @@ export type GetRadarValueListsValueList = ( t_GetRadarValueListsValueListBodySchema | undefined, void >, - respond: GetRadarValueListsValueListResponder, + respond: (typeof getRadarValueListsValueList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12240,9 +11069,6 @@ const postRadarValueListsValueList = b((r) => ({ withStatus: r.withStatus, })) -type PostRadarValueListsValueListResponder = - (typeof postRadarValueListsValueList)["responder"] & KoaRuntimeResponder - export type PostRadarValueListsValueList = ( params: Params< t_PostRadarValueListsValueListParamSchema, @@ -12250,7 +11076,7 @@ export type PostRadarValueListsValueList = ( t_PostRadarValueListsValueListBodySchema | undefined, void >, - respond: PostRadarValueListsValueListResponder, + respond: (typeof postRadarValueListsValueList)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12276,9 +11102,6 @@ const getRefunds = b((r) => ({ withStatus: r.withStatus, })) -type GetRefundsResponder = (typeof getRefunds)["responder"] & - KoaRuntimeResponder - export type GetRefunds = ( params: Params< void, @@ -12286,7 +11109,7 @@ export type GetRefunds = ( t_GetRefundsBodySchema | undefined, void >, - respond: GetRefundsResponder, + respond: (typeof getRefunds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12308,12 +11131,9 @@ const postRefunds = b((r) => ({ withStatus: r.withStatus, })) -type PostRefundsResponder = (typeof postRefunds)["responder"] & - KoaRuntimeResponder - export type PostRefunds = ( params: Params, - respond: PostRefundsResponder, + respond: (typeof postRefunds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12327,9 +11147,6 @@ const getRefundsRefund = b((r) => ({ withStatus: r.withStatus, })) -type GetRefundsRefundResponder = (typeof getRefundsRefund)["responder"] & - KoaRuntimeResponder - export type GetRefundsRefund = ( params: Params< t_GetRefundsRefundParamSchema, @@ -12337,7 +11154,7 @@ export type GetRefundsRefund = ( t_GetRefundsRefundBodySchema | undefined, void >, - respond: GetRefundsRefundResponder, + respond: (typeof getRefundsRefund)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12351,9 +11168,6 @@ const postRefundsRefund = b((r) => ({ withStatus: r.withStatus, })) -type PostRefundsRefundResponder = (typeof postRefundsRefund)["responder"] & - KoaRuntimeResponder - export type PostRefundsRefund = ( params: Params< t_PostRefundsRefundParamSchema, @@ -12361,7 +11175,7 @@ export type PostRefundsRefund = ( t_PostRefundsRefundBodySchema | undefined, void >, - respond: PostRefundsRefundResponder, + respond: (typeof postRefundsRefund)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12375,9 +11189,6 @@ const postRefundsRefundCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostRefundsRefundCancelResponder = - (typeof postRefundsRefundCancel)["responder"] & KoaRuntimeResponder - export type PostRefundsRefundCancel = ( params: Params< t_PostRefundsRefundCancelParamSchema, @@ -12385,7 +11196,7 @@ export type PostRefundsRefundCancel = ( t_PostRefundsRefundCancelBodySchema | undefined, void >, - respond: PostRefundsRefundCancelResponder, + respond: (typeof postRefundsRefundCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12411,9 +11222,6 @@ const getReportingReportRuns = b((r) => ({ withStatus: r.withStatus, })) -type GetReportingReportRunsResponder = - (typeof getReportingReportRuns)["responder"] & KoaRuntimeResponder - export type GetReportingReportRuns = ( params: Params< void, @@ -12421,7 +11229,7 @@ export type GetReportingReportRuns = ( t_GetReportingReportRunsBodySchema | undefined, void >, - respond: GetReportingReportRunsResponder, + respond: (typeof getReportingReportRuns)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12443,12 +11251,9 @@ const postReportingReportRuns = b((r) => ({ withStatus: r.withStatus, })) -type PostReportingReportRunsResponder = - (typeof postReportingReportRuns)["responder"] & KoaRuntimeResponder - export type PostReportingReportRuns = ( params: Params, - respond: PostReportingReportRunsResponder, + respond: (typeof postReportingReportRuns)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12462,9 +11267,6 @@ const getReportingReportRunsReportRun = b((r) => ({ withStatus: r.withStatus, })) -type GetReportingReportRunsReportRunResponder = - (typeof getReportingReportRunsReportRun)["responder"] & KoaRuntimeResponder - export type GetReportingReportRunsReportRun = ( params: Params< t_GetReportingReportRunsReportRunParamSchema, @@ -12472,7 +11274,7 @@ export type GetReportingReportRunsReportRun = ( t_GetReportingReportRunsReportRunBodySchema | undefined, void >, - respond: GetReportingReportRunsReportRunResponder, + respond: (typeof getReportingReportRunsReportRun)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12498,9 +11300,6 @@ const getReportingReportTypes = b((r) => ({ withStatus: r.withStatus, })) -type GetReportingReportTypesResponder = - (typeof getReportingReportTypes)["responder"] & KoaRuntimeResponder - export type GetReportingReportTypes = ( params: Params< void, @@ -12508,7 +11307,7 @@ export type GetReportingReportTypes = ( t_GetReportingReportTypesBodySchema | undefined, void >, - respond: GetReportingReportTypesResponder, + respond: (typeof getReportingReportTypes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12530,9 +11329,6 @@ const getReportingReportTypesReportType = b((r) => ({ withStatus: r.withStatus, })) -type GetReportingReportTypesReportTypeResponder = - (typeof getReportingReportTypesReportType)["responder"] & KoaRuntimeResponder - export type GetReportingReportTypesReportType = ( params: Params< t_GetReportingReportTypesReportTypeParamSchema, @@ -12540,7 +11336,7 @@ export type GetReportingReportTypesReportType = ( t_GetReportingReportTypesReportTypeBodySchema | undefined, void >, - respond: GetReportingReportTypesReportTypeResponder, + respond: (typeof getReportingReportTypesReportType)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12566,9 +11362,6 @@ const getReviews = b((r) => ({ withStatus: r.withStatus, })) -type GetReviewsResponder = (typeof getReviews)["responder"] & - KoaRuntimeResponder - export type GetReviews = ( params: Params< void, @@ -12576,7 +11369,7 @@ export type GetReviews = ( t_GetReviewsBodySchema | undefined, void >, - respond: GetReviewsResponder, + respond: (typeof getReviews)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12598,9 +11391,6 @@ const getReviewsReview = b((r) => ({ withStatus: r.withStatus, })) -type GetReviewsReviewResponder = (typeof getReviewsReview)["responder"] & - KoaRuntimeResponder - export type GetReviewsReview = ( params: Params< t_GetReviewsReviewParamSchema, @@ -12608,7 +11398,7 @@ export type GetReviewsReview = ( t_GetReviewsReviewBodySchema | undefined, void >, - respond: GetReviewsReviewResponder, + respond: (typeof getReviewsReview)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12622,9 +11412,6 @@ const postReviewsReviewApprove = b((r) => ({ withStatus: r.withStatus, })) -type PostReviewsReviewApproveResponder = - (typeof postReviewsReviewApprove)["responder"] & KoaRuntimeResponder - export type PostReviewsReviewApprove = ( params: Params< t_PostReviewsReviewApproveParamSchema, @@ -12632,7 +11419,7 @@ export type PostReviewsReviewApprove = ( t_PostReviewsReviewApproveBodySchema | undefined, void >, - respond: PostReviewsReviewApproveResponder, + respond: (typeof postReviewsReviewApprove)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12658,9 +11445,6 @@ const getSetupAttempts = b((r) => ({ withStatus: r.withStatus, })) -type GetSetupAttemptsResponder = (typeof getSetupAttempts)["responder"] & - KoaRuntimeResponder - export type GetSetupAttempts = ( params: Params< void, @@ -12668,7 +11452,7 @@ export type GetSetupAttempts = ( t_GetSetupAttemptsBodySchema | undefined, void >, - respond: GetSetupAttemptsResponder, + respond: (typeof getSetupAttempts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12702,9 +11486,6 @@ const getSetupIntents = b((r) => ({ withStatus: r.withStatus, })) -type GetSetupIntentsResponder = (typeof getSetupIntents)["responder"] & - KoaRuntimeResponder - export type GetSetupIntents = ( params: Params< void, @@ -12712,7 +11493,7 @@ export type GetSetupIntents = ( t_GetSetupIntentsBodySchema | undefined, void >, - respond: GetSetupIntentsResponder, + respond: (typeof getSetupIntents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12734,12 +11515,9 @@ const postSetupIntents = b((r) => ({ withStatus: r.withStatus, })) -type PostSetupIntentsResponder = (typeof postSetupIntents)["responder"] & - KoaRuntimeResponder - export type PostSetupIntents = ( params: Params, - respond: PostSetupIntentsResponder, + respond: (typeof postSetupIntents)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12753,9 +11531,6 @@ const getSetupIntentsIntent = b((r) => ({ withStatus: r.withStatus, })) -type GetSetupIntentsIntentResponder = - (typeof getSetupIntentsIntent)["responder"] & KoaRuntimeResponder - export type GetSetupIntentsIntent = ( params: Params< t_GetSetupIntentsIntentParamSchema, @@ -12763,7 +11538,7 @@ export type GetSetupIntentsIntent = ( t_GetSetupIntentsIntentBodySchema | undefined, void >, - respond: GetSetupIntentsIntentResponder, + respond: (typeof getSetupIntentsIntent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12777,9 +11552,6 @@ const postSetupIntentsIntent = b((r) => ({ withStatus: r.withStatus, })) -type PostSetupIntentsIntentResponder = - (typeof postSetupIntentsIntent)["responder"] & KoaRuntimeResponder - export type PostSetupIntentsIntent = ( params: Params< t_PostSetupIntentsIntentParamSchema, @@ -12787,7 +11559,7 @@ export type PostSetupIntentsIntent = ( t_PostSetupIntentsIntentBodySchema | undefined, void >, - respond: PostSetupIntentsIntentResponder, + respond: (typeof postSetupIntentsIntent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12801,9 +11573,6 @@ const postSetupIntentsIntentCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostSetupIntentsIntentCancelResponder = - (typeof postSetupIntentsIntentCancel)["responder"] & KoaRuntimeResponder - export type PostSetupIntentsIntentCancel = ( params: Params< t_PostSetupIntentsIntentCancelParamSchema, @@ -12811,7 +11580,7 @@ export type PostSetupIntentsIntentCancel = ( t_PostSetupIntentsIntentCancelBodySchema | undefined, void >, - respond: PostSetupIntentsIntentCancelResponder, + respond: (typeof postSetupIntentsIntentCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12825,9 +11594,6 @@ const postSetupIntentsIntentConfirm = b((r) => ({ withStatus: r.withStatus, })) -type PostSetupIntentsIntentConfirmResponder = - (typeof postSetupIntentsIntentConfirm)["responder"] & KoaRuntimeResponder - export type PostSetupIntentsIntentConfirm = ( params: Params< t_PostSetupIntentsIntentConfirmParamSchema, @@ -12835,7 +11601,7 @@ export type PostSetupIntentsIntentConfirm = ( t_PostSetupIntentsIntentConfirmBodySchema | undefined, void >, - respond: PostSetupIntentsIntentConfirmResponder, + respond: (typeof postSetupIntentsIntentConfirm)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12849,10 +11615,6 @@ const postSetupIntentsIntentVerifyMicrodeposits = b((r) => ({ withStatus: r.withStatus, })) -type PostSetupIntentsIntentVerifyMicrodepositsResponder = - (typeof postSetupIntentsIntentVerifyMicrodeposits)["responder"] & - KoaRuntimeResponder - export type PostSetupIntentsIntentVerifyMicrodeposits = ( params: Params< t_PostSetupIntentsIntentVerifyMicrodepositsParamSchema, @@ -12860,7 +11622,7 @@ export type PostSetupIntentsIntentVerifyMicrodeposits = ( t_PostSetupIntentsIntentVerifyMicrodepositsBodySchema | undefined, void >, - respond: PostSetupIntentsIntentVerifyMicrodepositsResponder, + respond: (typeof postSetupIntentsIntentVerifyMicrodeposits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12886,9 +11648,6 @@ const getShippingRates = b((r) => ({ withStatus: r.withStatus, })) -type GetShippingRatesResponder = (typeof getShippingRates)["responder"] & - KoaRuntimeResponder - export type GetShippingRates = ( params: Params< void, @@ -12896,7 +11655,7 @@ export type GetShippingRates = ( t_GetShippingRatesBodySchema | undefined, void >, - respond: GetShippingRatesResponder, + respond: (typeof getShippingRates)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12918,12 +11677,9 @@ const postShippingRates = b((r) => ({ withStatus: r.withStatus, })) -type PostShippingRatesResponder = (typeof postShippingRates)["responder"] & - KoaRuntimeResponder - export type PostShippingRates = ( params: Params, - respond: PostShippingRatesResponder, + respond: (typeof postShippingRates)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12937,9 +11693,6 @@ const getShippingRatesShippingRateToken = b((r) => ({ withStatus: r.withStatus, })) -type GetShippingRatesShippingRateTokenResponder = - (typeof getShippingRatesShippingRateToken)["responder"] & KoaRuntimeResponder - export type GetShippingRatesShippingRateToken = ( params: Params< t_GetShippingRatesShippingRateTokenParamSchema, @@ -12947,7 +11700,7 @@ export type GetShippingRatesShippingRateToken = ( t_GetShippingRatesShippingRateTokenBodySchema | undefined, void >, - respond: GetShippingRatesShippingRateTokenResponder, + respond: (typeof getShippingRatesShippingRateToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12961,9 +11714,6 @@ const postShippingRatesShippingRateToken = b((r) => ({ withStatus: r.withStatus, })) -type PostShippingRatesShippingRateTokenResponder = - (typeof postShippingRatesShippingRateToken)["responder"] & KoaRuntimeResponder - export type PostShippingRatesShippingRateToken = ( params: Params< t_PostShippingRatesShippingRateTokenParamSchema, @@ -12971,7 +11721,7 @@ export type PostShippingRatesShippingRateToken = ( t_PostShippingRatesShippingRateTokenBodySchema | undefined, void >, - respond: PostShippingRatesShippingRateTokenResponder, + respond: (typeof postShippingRatesShippingRateToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -12985,9 +11735,6 @@ const postSigmaSavedQueriesId = b((r) => ({ withStatus: r.withStatus, })) -type PostSigmaSavedQueriesIdResponder = - (typeof postSigmaSavedQueriesId)["responder"] & KoaRuntimeResponder - export type PostSigmaSavedQueriesId = ( params: Params< t_PostSigmaSavedQueriesIdParamSchema, @@ -12995,7 +11742,7 @@ export type PostSigmaSavedQueriesId = ( t_PostSigmaSavedQueriesIdBodySchema | undefined, void >, - respond: PostSigmaSavedQueriesIdResponder, + respond: (typeof postSigmaSavedQueriesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13024,9 +11771,6 @@ const getSigmaScheduledQueryRuns = b((r) => ({ withStatus: r.withStatus, })) -type GetSigmaScheduledQueryRunsResponder = - (typeof getSigmaScheduledQueryRuns)["responder"] & KoaRuntimeResponder - export type GetSigmaScheduledQueryRuns = ( params: Params< void, @@ -13034,7 +11778,7 @@ export type GetSigmaScheduledQueryRuns = ( t_GetSigmaScheduledQueryRunsBodySchema | undefined, void >, - respond: GetSigmaScheduledQueryRunsResponder, + respond: (typeof getSigmaScheduledQueryRuns)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13056,10 +11800,6 @@ const getSigmaScheduledQueryRunsScheduledQueryRun = b((r) => ({ withStatus: r.withStatus, })) -type GetSigmaScheduledQueryRunsScheduledQueryRunResponder = - (typeof getSigmaScheduledQueryRunsScheduledQueryRun)["responder"] & - KoaRuntimeResponder - export type GetSigmaScheduledQueryRunsScheduledQueryRun = ( params: Params< t_GetSigmaScheduledQueryRunsScheduledQueryRunParamSchema, @@ -13067,7 +11807,7 @@ export type GetSigmaScheduledQueryRunsScheduledQueryRun = ( t_GetSigmaScheduledQueryRunsScheduledQueryRunBodySchema | undefined, void >, - respond: GetSigmaScheduledQueryRunsScheduledQueryRunResponder, + respond: (typeof getSigmaScheduledQueryRunsScheduledQueryRun)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13081,12 +11821,9 @@ const postSources = b((r) => ({ withStatus: r.withStatus, })) -type PostSourcesResponder = (typeof postSources)["responder"] & - KoaRuntimeResponder - export type PostSources = ( params: Params, - respond: PostSourcesResponder, + respond: (typeof postSources)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13100,9 +11837,6 @@ const getSourcesSource = b((r) => ({ withStatus: r.withStatus, })) -type GetSourcesSourceResponder = (typeof getSourcesSource)["responder"] & - KoaRuntimeResponder - export type GetSourcesSource = ( params: Params< t_GetSourcesSourceParamSchema, @@ -13110,7 +11844,7 @@ export type GetSourcesSource = ( t_GetSourcesSourceBodySchema | undefined, void >, - respond: GetSourcesSourceResponder, + respond: (typeof getSourcesSource)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13124,9 +11858,6 @@ const postSourcesSource = b((r) => ({ withStatus: r.withStatus, })) -type PostSourcesSourceResponder = (typeof postSourcesSource)["responder"] & - KoaRuntimeResponder - export type PostSourcesSource = ( params: Params< t_PostSourcesSourceParamSchema, @@ -13134,7 +11865,7 @@ export type PostSourcesSource = ( t_PostSourcesSourceBodySchema | undefined, void >, - respond: PostSourcesSourceResponder, + respond: (typeof postSourcesSource)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13150,10 +11881,6 @@ const getSourcesSourceMandateNotificationsMandateNotification = b((r) => ({ withStatus: r.withStatus, })) -type GetSourcesSourceMandateNotificationsMandateNotificationResponder = - (typeof getSourcesSourceMandateNotificationsMandateNotification)["responder"] & - KoaRuntimeResponder - export type GetSourcesSourceMandateNotificationsMandateNotification = ( params: Params< t_GetSourcesSourceMandateNotificationsMandateNotificationParamSchema, @@ -13162,7 +11889,7 @@ export type GetSourcesSourceMandateNotificationsMandateNotification = ( | undefined, void >, - respond: GetSourcesSourceMandateNotificationsMandateNotificationResponder, + respond: (typeof getSourcesSourceMandateNotificationsMandateNotification)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13188,9 +11915,6 @@ const getSourcesSourceSourceTransactions = b((r) => ({ withStatus: r.withStatus, })) -type GetSourcesSourceSourceTransactionsResponder = - (typeof getSourcesSourceSourceTransactions)["responder"] & KoaRuntimeResponder - export type GetSourcesSourceSourceTransactions = ( params: Params< t_GetSourcesSourceSourceTransactionsParamSchema, @@ -13198,7 +11922,7 @@ export type GetSourcesSourceSourceTransactions = ( t_GetSourcesSourceSourceTransactionsBodySchema | undefined, void >, - respond: GetSourcesSourceSourceTransactionsResponder, + respond: (typeof getSourcesSourceSourceTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13220,10 +11944,6 @@ const getSourcesSourceSourceTransactionsSourceTransaction = b((r) => ({ withStatus: r.withStatus, })) -type GetSourcesSourceSourceTransactionsSourceTransactionResponder = - (typeof getSourcesSourceSourceTransactionsSourceTransaction)["responder"] & - KoaRuntimeResponder - export type GetSourcesSourceSourceTransactionsSourceTransaction = ( params: Params< t_GetSourcesSourceSourceTransactionsSourceTransactionParamSchema, @@ -13231,7 +11951,7 @@ export type GetSourcesSourceSourceTransactionsSourceTransaction = ( t_GetSourcesSourceSourceTransactionsSourceTransactionBodySchema | undefined, void >, - respond: GetSourcesSourceSourceTransactionsSourceTransactionResponder, + respond: (typeof getSourcesSourceSourceTransactionsSourceTransaction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13245,9 +11965,6 @@ const postSourcesSourceVerify = b((r) => ({ withStatus: r.withStatus, })) -type PostSourcesSourceVerifyResponder = - (typeof postSourcesSourceVerify)["responder"] & KoaRuntimeResponder - export type PostSourcesSourceVerify = ( params: Params< t_PostSourcesSourceVerifyParamSchema, @@ -13255,7 +11972,7 @@ export type PostSourcesSourceVerify = ( t_PostSourcesSourceVerifyBodySchema, void >, - respond: PostSourcesSourceVerifyResponder, + respond: (typeof postSourcesSourceVerify)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13281,9 +11998,6 @@ const getSubscriptionItems = b((r) => ({ withStatus: r.withStatus, })) -type GetSubscriptionItemsResponder = - (typeof getSubscriptionItems)["responder"] & KoaRuntimeResponder - export type GetSubscriptionItems = ( params: Params< void, @@ -13291,7 +12005,7 @@ export type GetSubscriptionItems = ( t_GetSubscriptionItemsBodySchema | undefined, void >, - respond: GetSubscriptionItemsResponder, + respond: (typeof getSubscriptionItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13313,12 +12027,9 @@ const postSubscriptionItems = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionItemsResponder = - (typeof postSubscriptionItems)["responder"] & KoaRuntimeResponder - export type PostSubscriptionItems = ( params: Params, - respond: PostSubscriptionItemsResponder, + respond: (typeof postSubscriptionItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13332,9 +12043,6 @@ const deleteSubscriptionItemsItem = b((r) => ({ withStatus: r.withStatus, })) -type DeleteSubscriptionItemsItemResponder = - (typeof deleteSubscriptionItemsItem)["responder"] & KoaRuntimeResponder - export type DeleteSubscriptionItemsItem = ( params: Params< t_DeleteSubscriptionItemsItemParamSchema, @@ -13342,7 +12050,7 @@ export type DeleteSubscriptionItemsItem = ( t_DeleteSubscriptionItemsItemBodySchema | undefined, void >, - respond: DeleteSubscriptionItemsItemResponder, + respond: (typeof deleteSubscriptionItemsItem)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13356,9 +12064,6 @@ const getSubscriptionItemsItem = b((r) => ({ withStatus: r.withStatus, })) -type GetSubscriptionItemsItemResponder = - (typeof getSubscriptionItemsItem)["responder"] & KoaRuntimeResponder - export type GetSubscriptionItemsItem = ( params: Params< t_GetSubscriptionItemsItemParamSchema, @@ -13366,7 +12071,7 @@ export type GetSubscriptionItemsItem = ( t_GetSubscriptionItemsItemBodySchema | undefined, void >, - respond: GetSubscriptionItemsItemResponder, + respond: (typeof getSubscriptionItemsItem)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13380,9 +12085,6 @@ const postSubscriptionItemsItem = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionItemsItemResponder = - (typeof postSubscriptionItemsItem)["responder"] & KoaRuntimeResponder - export type PostSubscriptionItemsItem = ( params: Params< t_PostSubscriptionItemsItemParamSchema, @@ -13390,7 +12092,7 @@ export type PostSubscriptionItemsItem = ( t_PostSubscriptionItemsItemBodySchema | undefined, void >, - respond: PostSubscriptionItemsItemResponder, + respond: (typeof postSubscriptionItemsItem)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13419,9 +12121,6 @@ const getSubscriptionSchedules = b((r) => ({ withStatus: r.withStatus, })) -type GetSubscriptionSchedulesResponder = - (typeof getSubscriptionSchedules)["responder"] & KoaRuntimeResponder - export type GetSubscriptionSchedules = ( params: Params< void, @@ -13429,7 +12128,7 @@ export type GetSubscriptionSchedules = ( t_GetSubscriptionSchedulesBodySchema | undefined, void >, - respond: GetSubscriptionSchedulesResponder, + respond: (typeof getSubscriptionSchedules)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13451,9 +12150,6 @@ const postSubscriptionSchedules = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionSchedulesResponder = - (typeof postSubscriptionSchedules)["responder"] & KoaRuntimeResponder - export type PostSubscriptionSchedules = ( params: Params< void, @@ -13461,7 +12157,7 @@ export type PostSubscriptionSchedules = ( t_PostSubscriptionSchedulesBodySchema | undefined, void >, - respond: PostSubscriptionSchedulesResponder, + respond: (typeof postSubscriptionSchedules)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13475,9 +12171,6 @@ const getSubscriptionSchedulesSchedule = b((r) => ({ withStatus: r.withStatus, })) -type GetSubscriptionSchedulesScheduleResponder = - (typeof getSubscriptionSchedulesSchedule)["responder"] & KoaRuntimeResponder - export type GetSubscriptionSchedulesSchedule = ( params: Params< t_GetSubscriptionSchedulesScheduleParamSchema, @@ -13485,7 +12178,7 @@ export type GetSubscriptionSchedulesSchedule = ( t_GetSubscriptionSchedulesScheduleBodySchema | undefined, void >, - respond: GetSubscriptionSchedulesScheduleResponder, + respond: (typeof getSubscriptionSchedulesSchedule)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13499,9 +12192,6 @@ const postSubscriptionSchedulesSchedule = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionSchedulesScheduleResponder = - (typeof postSubscriptionSchedulesSchedule)["responder"] & KoaRuntimeResponder - export type PostSubscriptionSchedulesSchedule = ( params: Params< t_PostSubscriptionSchedulesScheduleParamSchema, @@ -13509,7 +12199,7 @@ export type PostSubscriptionSchedulesSchedule = ( t_PostSubscriptionSchedulesScheduleBodySchema | undefined, void >, - respond: PostSubscriptionSchedulesScheduleResponder, + respond: (typeof postSubscriptionSchedulesSchedule)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13523,10 +12213,6 @@ const postSubscriptionSchedulesScheduleCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionSchedulesScheduleCancelResponder = - (typeof postSubscriptionSchedulesScheduleCancel)["responder"] & - KoaRuntimeResponder - export type PostSubscriptionSchedulesScheduleCancel = ( params: Params< t_PostSubscriptionSchedulesScheduleCancelParamSchema, @@ -13534,7 +12220,7 @@ export type PostSubscriptionSchedulesScheduleCancel = ( t_PostSubscriptionSchedulesScheduleCancelBodySchema | undefined, void >, - respond: PostSubscriptionSchedulesScheduleCancelResponder, + respond: (typeof postSubscriptionSchedulesScheduleCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13548,10 +12234,6 @@ const postSubscriptionSchedulesScheduleRelease = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionSchedulesScheduleReleaseResponder = - (typeof postSubscriptionSchedulesScheduleRelease)["responder"] & - KoaRuntimeResponder - export type PostSubscriptionSchedulesScheduleRelease = ( params: Params< t_PostSubscriptionSchedulesScheduleReleaseParamSchema, @@ -13559,7 +12241,7 @@ export type PostSubscriptionSchedulesScheduleRelease = ( t_PostSubscriptionSchedulesScheduleReleaseBodySchema | undefined, void >, - respond: PostSubscriptionSchedulesScheduleReleaseResponder, + respond: (typeof postSubscriptionSchedulesScheduleRelease)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13585,9 +12267,6 @@ const getSubscriptions = b((r) => ({ withStatus: r.withStatus, })) -type GetSubscriptionsResponder = (typeof getSubscriptions)["responder"] & - KoaRuntimeResponder - export type GetSubscriptions = ( params: Params< void, @@ -13595,7 +12274,7 @@ export type GetSubscriptions = ( t_GetSubscriptionsBodySchema | undefined, void >, - respond: GetSubscriptionsResponder, + respond: (typeof getSubscriptions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13617,12 +12296,9 @@ const postSubscriptions = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionsResponder = (typeof postSubscriptions)["responder"] & - KoaRuntimeResponder - export type PostSubscriptions = ( params: Params, - respond: PostSubscriptionsResponder, + respond: (typeof postSubscriptions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13652,9 +12328,6 @@ const getSubscriptionsSearch = b((r) => ({ withStatus: r.withStatus, })) -type GetSubscriptionsSearchResponder = - (typeof getSubscriptionsSearch)["responder"] & KoaRuntimeResponder - export type GetSubscriptionsSearch = ( params: Params< void, @@ -13662,7 +12335,7 @@ export type GetSubscriptionsSearch = ( t_GetSubscriptionsSearchBodySchema | undefined, void >, - respond: GetSubscriptionsSearchResponder, + respond: (typeof getSubscriptionsSearch)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13686,10 +12359,6 @@ const deleteSubscriptionsSubscriptionExposedId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteSubscriptionsSubscriptionExposedIdResponder = - (typeof deleteSubscriptionsSubscriptionExposedId)["responder"] & - KoaRuntimeResponder - export type DeleteSubscriptionsSubscriptionExposedId = ( params: Params< t_DeleteSubscriptionsSubscriptionExposedIdParamSchema, @@ -13697,7 +12366,7 @@ export type DeleteSubscriptionsSubscriptionExposedId = ( t_DeleteSubscriptionsSubscriptionExposedIdBodySchema | undefined, void >, - respond: DeleteSubscriptionsSubscriptionExposedIdResponder, + respond: (typeof deleteSubscriptionsSubscriptionExposedId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13711,10 +12380,6 @@ const getSubscriptionsSubscriptionExposedId = b((r) => ({ withStatus: r.withStatus, })) -type GetSubscriptionsSubscriptionExposedIdResponder = - (typeof getSubscriptionsSubscriptionExposedId)["responder"] & - KoaRuntimeResponder - export type GetSubscriptionsSubscriptionExposedId = ( params: Params< t_GetSubscriptionsSubscriptionExposedIdParamSchema, @@ -13722,7 +12387,7 @@ export type GetSubscriptionsSubscriptionExposedId = ( t_GetSubscriptionsSubscriptionExposedIdBodySchema | undefined, void >, - respond: GetSubscriptionsSubscriptionExposedIdResponder, + respond: (typeof getSubscriptionsSubscriptionExposedId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13736,10 +12401,6 @@ const postSubscriptionsSubscriptionExposedId = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionsSubscriptionExposedIdResponder = - (typeof postSubscriptionsSubscriptionExposedId)["responder"] & - KoaRuntimeResponder - export type PostSubscriptionsSubscriptionExposedId = ( params: Params< t_PostSubscriptionsSubscriptionExposedIdParamSchema, @@ -13747,7 +12408,7 @@ export type PostSubscriptionsSubscriptionExposedId = ( t_PostSubscriptionsSubscriptionExposedIdBodySchema | undefined, void >, - respond: PostSubscriptionsSubscriptionExposedIdResponder, + respond: (typeof postSubscriptionsSubscriptionExposedId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13761,10 +12422,6 @@ const deleteSubscriptionsSubscriptionExposedIdDiscount = b((r) => ({ withStatus: r.withStatus, })) -type DeleteSubscriptionsSubscriptionExposedIdDiscountResponder = - (typeof deleteSubscriptionsSubscriptionExposedIdDiscount)["responder"] & - KoaRuntimeResponder - export type DeleteSubscriptionsSubscriptionExposedIdDiscount = ( params: Params< t_DeleteSubscriptionsSubscriptionExposedIdDiscountParamSchema, @@ -13772,7 +12429,7 @@ export type DeleteSubscriptionsSubscriptionExposedIdDiscount = ( t_DeleteSubscriptionsSubscriptionExposedIdDiscountBodySchema | undefined, void >, - respond: DeleteSubscriptionsSubscriptionExposedIdDiscountResponder, + respond: (typeof deleteSubscriptionsSubscriptionExposedIdDiscount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13786,10 +12443,6 @@ const postSubscriptionsSubscriptionResume = b((r) => ({ withStatus: r.withStatus, })) -type PostSubscriptionsSubscriptionResumeResponder = - (typeof postSubscriptionsSubscriptionResume)["responder"] & - KoaRuntimeResponder - export type PostSubscriptionsSubscriptionResume = ( params: Params< t_PostSubscriptionsSubscriptionResumeParamSchema, @@ -13797,7 +12450,7 @@ export type PostSubscriptionsSubscriptionResume = ( t_PostSubscriptionsSubscriptionResumeBodySchema | undefined, void >, - respond: PostSubscriptionsSubscriptionResumeResponder, + respond: (typeof postSubscriptionsSubscriptionResume)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13811,12 +12464,9 @@ const postTaxCalculations = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxCalculationsResponder = (typeof postTaxCalculations)["responder"] & - KoaRuntimeResponder - export type PostTaxCalculations = ( params: Params, - respond: PostTaxCalculationsResponder, + respond: (typeof postTaxCalculations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13830,9 +12480,6 @@ const getTaxCalculationsCalculation = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxCalculationsCalculationResponder = - (typeof getTaxCalculationsCalculation)["responder"] & KoaRuntimeResponder - export type GetTaxCalculationsCalculation = ( params: Params< t_GetTaxCalculationsCalculationParamSchema, @@ -13840,7 +12487,7 @@ export type GetTaxCalculationsCalculation = ( t_GetTaxCalculationsCalculationBodySchema | undefined, void >, - respond: GetTaxCalculationsCalculationResponder, + respond: (typeof getTaxCalculationsCalculation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13869,10 +12516,6 @@ const getTaxCalculationsCalculationLineItems = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxCalculationsCalculationLineItemsResponder = - (typeof getTaxCalculationsCalculationLineItems)["responder"] & - KoaRuntimeResponder - export type GetTaxCalculationsCalculationLineItems = ( params: Params< t_GetTaxCalculationsCalculationLineItemsParamSchema, @@ -13880,7 +12523,7 @@ export type GetTaxCalculationsCalculationLineItems = ( t_GetTaxCalculationsCalculationLineItemsBodySchema | undefined, void >, - respond: GetTaxCalculationsCalculationLineItemsResponder, + respond: (typeof getTaxCalculationsCalculationLineItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13914,9 +12557,6 @@ const getTaxRegistrations = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxRegistrationsResponder = (typeof getTaxRegistrations)["responder"] & - KoaRuntimeResponder - export type GetTaxRegistrations = ( params: Params< void, @@ -13924,7 +12564,7 @@ export type GetTaxRegistrations = ( t_GetTaxRegistrationsBodySchema | undefined, void >, - respond: GetTaxRegistrationsResponder, + respond: (typeof getTaxRegistrations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13946,12 +12586,9 @@ const postTaxRegistrations = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxRegistrationsResponder = - (typeof postTaxRegistrations)["responder"] & KoaRuntimeResponder - export type PostTaxRegistrations = ( params: Params, - respond: PostTaxRegistrationsResponder, + respond: (typeof postTaxRegistrations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13965,9 +12602,6 @@ const getTaxRegistrationsId = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxRegistrationsIdResponder = - (typeof getTaxRegistrationsId)["responder"] & KoaRuntimeResponder - export type GetTaxRegistrationsId = ( params: Params< t_GetTaxRegistrationsIdParamSchema, @@ -13975,7 +12609,7 @@ export type GetTaxRegistrationsId = ( t_GetTaxRegistrationsIdBodySchema | undefined, void >, - respond: GetTaxRegistrationsIdResponder, + respond: (typeof getTaxRegistrationsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -13989,9 +12623,6 @@ const postTaxRegistrationsId = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxRegistrationsIdResponder = - (typeof postTaxRegistrationsId)["responder"] & KoaRuntimeResponder - export type PostTaxRegistrationsId = ( params: Params< t_PostTaxRegistrationsIdParamSchema, @@ -13999,7 +12630,7 @@ export type PostTaxRegistrationsId = ( t_PostTaxRegistrationsIdBodySchema | undefined, void >, - respond: PostTaxRegistrationsIdResponder, + respond: (typeof postTaxRegistrationsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14013,9 +12644,6 @@ const getTaxSettings = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxSettingsResponder = (typeof getTaxSettings)["responder"] & - KoaRuntimeResponder - export type GetTaxSettings = ( params: Params< void, @@ -14023,7 +12651,7 @@ export type GetTaxSettings = ( t_GetTaxSettingsBodySchema | undefined, void >, - respond: GetTaxSettingsResponder, + respond: (typeof getTaxSettings)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14037,12 +12665,9 @@ const postTaxSettings = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxSettingsResponder = (typeof postTaxSettings)["responder"] & - KoaRuntimeResponder - export type PostTaxSettings = ( params: Params, - respond: PostTaxSettingsResponder, + respond: (typeof postTaxSettings)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14056,10 +12681,6 @@ const postTaxTransactionsCreateFromCalculation = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxTransactionsCreateFromCalculationResponder = - (typeof postTaxTransactionsCreateFromCalculation)["responder"] & - KoaRuntimeResponder - export type PostTaxTransactionsCreateFromCalculation = ( params: Params< void, @@ -14067,7 +12688,7 @@ export type PostTaxTransactionsCreateFromCalculation = ( t_PostTaxTransactionsCreateFromCalculationBodySchema, void >, - respond: PostTaxTransactionsCreateFromCalculationResponder, + respond: (typeof postTaxTransactionsCreateFromCalculation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14081,9 +12702,6 @@ const postTaxTransactionsCreateReversal = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxTransactionsCreateReversalResponder = - (typeof postTaxTransactionsCreateReversal)["responder"] & KoaRuntimeResponder - export type PostTaxTransactionsCreateReversal = ( params: Params< void, @@ -14091,7 +12709,7 @@ export type PostTaxTransactionsCreateReversal = ( t_PostTaxTransactionsCreateReversalBodySchema, void >, - respond: PostTaxTransactionsCreateReversalResponder, + respond: (typeof postTaxTransactionsCreateReversal)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14105,9 +12723,6 @@ const getTaxTransactionsTransaction = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxTransactionsTransactionResponder = - (typeof getTaxTransactionsTransaction)["responder"] & KoaRuntimeResponder - export type GetTaxTransactionsTransaction = ( params: Params< t_GetTaxTransactionsTransactionParamSchema, @@ -14115,7 +12730,7 @@ export type GetTaxTransactionsTransaction = ( t_GetTaxTransactionsTransactionBodySchema | undefined, void >, - respond: GetTaxTransactionsTransactionResponder, + respond: (typeof getTaxTransactionsTransaction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14144,10 +12759,6 @@ const getTaxTransactionsTransactionLineItems = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxTransactionsTransactionLineItemsResponder = - (typeof getTaxTransactionsTransactionLineItems)["responder"] & - KoaRuntimeResponder - export type GetTaxTransactionsTransactionLineItems = ( params: Params< t_GetTaxTransactionsTransactionLineItemsParamSchema, @@ -14155,7 +12766,7 @@ export type GetTaxTransactionsTransactionLineItems = ( t_GetTaxTransactionsTransactionLineItemsBodySchema | undefined, void >, - respond: GetTaxTransactionsTransactionLineItemsResponder, + respond: (typeof getTaxTransactionsTransactionLineItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14189,9 +12800,6 @@ const getTaxCodes = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxCodesResponder = (typeof getTaxCodes)["responder"] & - KoaRuntimeResponder - export type GetTaxCodes = ( params: Params< void, @@ -14199,7 +12807,7 @@ export type GetTaxCodes = ( t_GetTaxCodesBodySchema | undefined, void >, - respond: GetTaxCodesResponder, + respond: (typeof getTaxCodes)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14221,9 +12829,6 @@ const getTaxCodesId = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxCodesIdResponder = (typeof getTaxCodesId)["responder"] & - KoaRuntimeResponder - export type GetTaxCodesId = ( params: Params< t_GetTaxCodesIdParamSchema, @@ -14231,7 +12836,7 @@ export type GetTaxCodesId = ( t_GetTaxCodesIdBodySchema | undefined, void >, - respond: GetTaxCodesIdResponder, + respond: (typeof getTaxCodesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14257,8 +12862,6 @@ const getTaxIds = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxIdsResponder = (typeof getTaxIds)["responder"] & KoaRuntimeResponder - export type GetTaxIds = ( params: Params< void, @@ -14266,7 +12869,7 @@ export type GetTaxIds = ( t_GetTaxIdsBodySchema | undefined, void >, - respond: GetTaxIdsResponder, + respond: (typeof getTaxIds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14288,12 +12891,9 @@ const postTaxIds = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxIdsResponder = (typeof postTaxIds)["responder"] & - KoaRuntimeResponder - export type PostTaxIds = ( params: Params, - respond: PostTaxIdsResponder, + respond: (typeof postTaxIds)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14307,9 +12907,6 @@ const deleteTaxIdsId = b((r) => ({ withStatus: r.withStatus, })) -type DeleteTaxIdsIdResponder = (typeof deleteTaxIdsId)["responder"] & - KoaRuntimeResponder - export type DeleteTaxIdsId = ( params: Params< t_DeleteTaxIdsIdParamSchema, @@ -14317,7 +12914,7 @@ export type DeleteTaxIdsId = ( t_DeleteTaxIdsIdBodySchema | undefined, void >, - respond: DeleteTaxIdsIdResponder, + respond: (typeof deleteTaxIdsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14331,9 +12928,6 @@ const getTaxIdsId = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxIdsIdResponder = (typeof getTaxIdsId)["responder"] & - KoaRuntimeResponder - export type GetTaxIdsId = ( params: Params< t_GetTaxIdsIdParamSchema, @@ -14341,7 +12935,7 @@ export type GetTaxIdsId = ( t_GetTaxIdsIdBodySchema | undefined, void >, - respond: GetTaxIdsIdResponder, + respond: (typeof getTaxIdsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14367,9 +12961,6 @@ const getTaxRates = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxRatesResponder = (typeof getTaxRates)["responder"] & - KoaRuntimeResponder - export type GetTaxRates = ( params: Params< void, @@ -14377,7 +12968,7 @@ export type GetTaxRates = ( t_GetTaxRatesBodySchema | undefined, void >, - respond: GetTaxRatesResponder, + respond: (typeof getTaxRates)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14399,12 +12990,9 @@ const postTaxRates = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxRatesResponder = (typeof postTaxRates)["responder"] & - KoaRuntimeResponder - export type PostTaxRates = ( params: Params, - respond: PostTaxRatesResponder, + respond: (typeof postTaxRates)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14418,9 +13006,6 @@ const getTaxRatesTaxRate = b((r) => ({ withStatus: r.withStatus, })) -type GetTaxRatesTaxRateResponder = (typeof getTaxRatesTaxRate)["responder"] & - KoaRuntimeResponder - export type GetTaxRatesTaxRate = ( params: Params< t_GetTaxRatesTaxRateParamSchema, @@ -14428,7 +13013,7 @@ export type GetTaxRatesTaxRate = ( t_GetTaxRatesTaxRateBodySchema | undefined, void >, - respond: GetTaxRatesTaxRateResponder, + respond: (typeof getTaxRatesTaxRate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14442,9 +13027,6 @@ const postTaxRatesTaxRate = b((r) => ({ withStatus: r.withStatus, })) -type PostTaxRatesTaxRateResponder = (typeof postTaxRatesTaxRate)["responder"] & - KoaRuntimeResponder - export type PostTaxRatesTaxRate = ( params: Params< t_PostTaxRatesTaxRateParamSchema, @@ -14452,7 +13034,7 @@ export type PostTaxRatesTaxRate = ( t_PostTaxRatesTaxRateBodySchema | undefined, void >, - respond: PostTaxRatesTaxRateResponder, + respond: (typeof postTaxRatesTaxRate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14481,9 +13063,6 @@ const getTerminalConfigurations = b((r) => ({ withStatus: r.withStatus, })) -type GetTerminalConfigurationsResponder = - (typeof getTerminalConfigurations)["responder"] & KoaRuntimeResponder - export type GetTerminalConfigurations = ( params: Params< void, @@ -14491,7 +13070,7 @@ export type GetTerminalConfigurations = ( t_GetTerminalConfigurationsBodySchema | undefined, void >, - respond: GetTerminalConfigurationsResponder, + respond: (typeof getTerminalConfigurations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14513,9 +13092,6 @@ const postTerminalConfigurations = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalConfigurationsResponder = - (typeof postTerminalConfigurations)["responder"] & KoaRuntimeResponder - export type PostTerminalConfigurations = ( params: Params< void, @@ -14523,7 +13099,7 @@ export type PostTerminalConfigurations = ( t_PostTerminalConfigurationsBodySchema | undefined, void >, - respond: PostTerminalConfigurationsResponder, + respond: (typeof postTerminalConfigurations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14539,10 +13115,6 @@ const deleteTerminalConfigurationsConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type DeleteTerminalConfigurationsConfigurationResponder = - (typeof deleteTerminalConfigurationsConfiguration)["responder"] & - KoaRuntimeResponder - export type DeleteTerminalConfigurationsConfiguration = ( params: Params< t_DeleteTerminalConfigurationsConfigurationParamSchema, @@ -14550,7 +13122,7 @@ export type DeleteTerminalConfigurationsConfiguration = ( t_DeleteTerminalConfigurationsConfigurationBodySchema | undefined, void >, - respond: DeleteTerminalConfigurationsConfigurationResponder, + respond: (typeof deleteTerminalConfigurationsConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14571,10 +13143,6 @@ const getTerminalConfigurationsConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type GetTerminalConfigurationsConfigurationResponder = - (typeof getTerminalConfigurationsConfiguration)["responder"] & - KoaRuntimeResponder - export type GetTerminalConfigurationsConfiguration = ( params: Params< t_GetTerminalConfigurationsConfigurationParamSchema, @@ -14582,7 +13150,7 @@ export type GetTerminalConfigurationsConfiguration = ( t_GetTerminalConfigurationsConfigurationBodySchema | undefined, void >, - respond: GetTerminalConfigurationsConfigurationResponder, + respond: (typeof getTerminalConfigurationsConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14603,10 +13171,6 @@ const postTerminalConfigurationsConfiguration = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalConfigurationsConfigurationResponder = - (typeof postTerminalConfigurationsConfiguration)["responder"] & - KoaRuntimeResponder - export type PostTerminalConfigurationsConfiguration = ( params: Params< t_PostTerminalConfigurationsConfigurationParamSchema, @@ -14614,7 +13178,7 @@ export type PostTerminalConfigurationsConfiguration = ( t_PostTerminalConfigurationsConfigurationBodySchema | undefined, void >, - respond: PostTerminalConfigurationsConfigurationResponder, + respond: (typeof postTerminalConfigurationsConfiguration)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14628,9 +13192,6 @@ const postTerminalConnectionTokens = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalConnectionTokensResponder = - (typeof postTerminalConnectionTokens)["responder"] & KoaRuntimeResponder - export type PostTerminalConnectionTokens = ( params: Params< void, @@ -14638,7 +13199,7 @@ export type PostTerminalConnectionTokens = ( t_PostTerminalConnectionTokensBodySchema | undefined, void >, - respond: PostTerminalConnectionTokensResponder, + respond: (typeof postTerminalConnectionTokens)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14664,9 +13225,6 @@ const getTerminalLocations = b((r) => ({ withStatus: r.withStatus, })) -type GetTerminalLocationsResponder = - (typeof getTerminalLocations)["responder"] & KoaRuntimeResponder - export type GetTerminalLocations = ( params: Params< void, @@ -14674,7 +13232,7 @@ export type GetTerminalLocations = ( t_GetTerminalLocationsBodySchema | undefined, void >, - respond: GetTerminalLocationsResponder, + respond: (typeof getTerminalLocations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14696,12 +13254,9 @@ const postTerminalLocations = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalLocationsResponder = - (typeof postTerminalLocations)["responder"] & KoaRuntimeResponder - export type PostTerminalLocations = ( params: Params, - respond: PostTerminalLocationsResponder, + respond: (typeof postTerminalLocations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14715,9 +13270,6 @@ const deleteTerminalLocationsLocation = b((r) => ({ withStatus: r.withStatus, })) -type DeleteTerminalLocationsLocationResponder = - (typeof deleteTerminalLocationsLocation)["responder"] & KoaRuntimeResponder - export type DeleteTerminalLocationsLocation = ( params: Params< t_DeleteTerminalLocationsLocationParamSchema, @@ -14725,7 +13277,7 @@ export type DeleteTerminalLocationsLocation = ( t_DeleteTerminalLocationsLocationBodySchema | undefined, void >, - respond: DeleteTerminalLocationsLocationResponder, + respond: (typeof deleteTerminalLocationsLocation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14741,9 +13293,6 @@ const getTerminalLocationsLocation = b((r) => ({ withStatus: r.withStatus, })) -type GetTerminalLocationsLocationResponder = - (typeof getTerminalLocationsLocation)["responder"] & KoaRuntimeResponder - export type GetTerminalLocationsLocation = ( params: Params< t_GetTerminalLocationsLocationParamSchema, @@ -14751,7 +13300,7 @@ export type GetTerminalLocationsLocation = ( t_GetTerminalLocationsLocationBodySchema | undefined, void >, - respond: GetTerminalLocationsLocationResponder, + respond: (typeof getTerminalLocationsLocation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14767,9 +13316,6 @@ const postTerminalLocationsLocation = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalLocationsLocationResponder = - (typeof postTerminalLocationsLocation)["responder"] & KoaRuntimeResponder - export type PostTerminalLocationsLocation = ( params: Params< t_PostTerminalLocationsLocationParamSchema, @@ -14777,7 +13323,7 @@ export type PostTerminalLocationsLocation = ( t_PostTerminalLocationsLocationBodySchema | undefined, void >, - respond: PostTerminalLocationsLocationResponder, + respond: (typeof postTerminalLocationsLocation)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14803,9 +13349,6 @@ const getTerminalReaders = b((r) => ({ withStatus: r.withStatus, })) -type GetTerminalReadersResponder = (typeof getTerminalReaders)["responder"] & - KoaRuntimeResponder - export type GetTerminalReaders = ( params: Params< void, @@ -14813,7 +13356,7 @@ export type GetTerminalReaders = ( t_GetTerminalReadersBodySchema | undefined, void >, - respond: GetTerminalReadersResponder, + respond: (typeof getTerminalReaders)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14835,12 +13378,9 @@ const postTerminalReaders = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalReadersResponder = (typeof postTerminalReaders)["responder"] & - KoaRuntimeResponder - export type PostTerminalReaders = ( params: Params, - respond: PostTerminalReadersResponder, + respond: (typeof postTerminalReaders)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14854,9 +13394,6 @@ const deleteTerminalReadersReader = b((r) => ({ withStatus: r.withStatus, })) -type DeleteTerminalReadersReaderResponder = - (typeof deleteTerminalReadersReader)["responder"] & KoaRuntimeResponder - export type DeleteTerminalReadersReader = ( params: Params< t_DeleteTerminalReadersReaderParamSchema, @@ -14864,7 +13401,7 @@ export type DeleteTerminalReadersReader = ( t_DeleteTerminalReadersReaderBodySchema | undefined, void >, - respond: DeleteTerminalReadersReaderResponder, + respond: (typeof deleteTerminalReadersReader)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14880,9 +13417,6 @@ const getTerminalReadersReader = b((r) => ({ withStatus: r.withStatus, })) -type GetTerminalReadersReaderResponder = - (typeof getTerminalReadersReader)["responder"] & KoaRuntimeResponder - export type GetTerminalReadersReader = ( params: Params< t_GetTerminalReadersReaderParamSchema, @@ -14890,7 +13424,7 @@ export type GetTerminalReadersReader = ( t_GetTerminalReadersReaderBodySchema | undefined, void >, - respond: GetTerminalReadersReaderResponder, + respond: (typeof getTerminalReadersReader)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14906,9 +13440,6 @@ const postTerminalReadersReader = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalReadersReaderResponder = - (typeof postTerminalReadersReader)["responder"] & KoaRuntimeResponder - export type PostTerminalReadersReader = ( params: Params< t_PostTerminalReadersReaderParamSchema, @@ -14916,7 +13447,7 @@ export type PostTerminalReadersReader = ( t_PostTerminalReadersReaderBodySchema | undefined, void >, - respond: PostTerminalReadersReaderResponder, + respond: (typeof postTerminalReadersReader)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14930,10 +13461,6 @@ const postTerminalReadersReaderCancelAction = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalReadersReaderCancelActionResponder = - (typeof postTerminalReadersReaderCancelAction)["responder"] & - KoaRuntimeResponder - export type PostTerminalReadersReaderCancelAction = ( params: Params< t_PostTerminalReadersReaderCancelActionParamSchema, @@ -14941,7 +13468,7 @@ export type PostTerminalReadersReaderCancelAction = ( t_PostTerminalReadersReaderCancelActionBodySchema | undefined, void >, - respond: PostTerminalReadersReaderCancelActionResponder, + respond: (typeof postTerminalReadersReaderCancelAction)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14955,10 +13482,6 @@ const postTerminalReadersReaderProcessPaymentIntent = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalReadersReaderProcessPaymentIntentResponder = - (typeof postTerminalReadersReaderProcessPaymentIntent)["responder"] & - KoaRuntimeResponder - export type PostTerminalReadersReaderProcessPaymentIntent = ( params: Params< t_PostTerminalReadersReaderProcessPaymentIntentParamSchema, @@ -14966,7 +13489,7 @@ export type PostTerminalReadersReaderProcessPaymentIntent = ( t_PostTerminalReadersReaderProcessPaymentIntentBodySchema, void >, - respond: PostTerminalReadersReaderProcessPaymentIntentResponder, + respond: (typeof postTerminalReadersReaderProcessPaymentIntent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -14980,10 +13503,6 @@ const postTerminalReadersReaderProcessSetupIntent = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalReadersReaderProcessSetupIntentResponder = - (typeof postTerminalReadersReaderProcessSetupIntent)["responder"] & - KoaRuntimeResponder - export type PostTerminalReadersReaderProcessSetupIntent = ( params: Params< t_PostTerminalReadersReaderProcessSetupIntentParamSchema, @@ -14991,7 +13510,7 @@ export type PostTerminalReadersReaderProcessSetupIntent = ( t_PostTerminalReadersReaderProcessSetupIntentBodySchema, void >, - respond: PostTerminalReadersReaderProcessSetupIntentResponder, + respond: (typeof postTerminalReadersReaderProcessSetupIntent)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15005,10 +13524,6 @@ const postTerminalReadersReaderRefundPayment = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalReadersReaderRefundPaymentResponder = - (typeof postTerminalReadersReaderRefundPayment)["responder"] & - KoaRuntimeResponder - export type PostTerminalReadersReaderRefundPayment = ( params: Params< t_PostTerminalReadersReaderRefundPaymentParamSchema, @@ -15016,7 +13531,7 @@ export type PostTerminalReadersReaderRefundPayment = ( t_PostTerminalReadersReaderRefundPaymentBodySchema | undefined, void >, - respond: PostTerminalReadersReaderRefundPaymentResponder, + respond: (typeof postTerminalReadersReaderRefundPayment)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15030,10 +13545,6 @@ const postTerminalReadersReaderSetReaderDisplay = b((r) => ({ withStatus: r.withStatus, })) -type PostTerminalReadersReaderSetReaderDisplayResponder = - (typeof postTerminalReadersReaderSetReaderDisplay)["responder"] & - KoaRuntimeResponder - export type PostTerminalReadersReaderSetReaderDisplay = ( params: Params< t_PostTerminalReadersReaderSetReaderDisplayParamSchema, @@ -15041,7 +13552,7 @@ export type PostTerminalReadersReaderSetReaderDisplay = ( t_PostTerminalReadersReaderSetReaderDisplayBodySchema, void >, - respond: PostTerminalReadersReaderSetReaderDisplayResponder, + respond: (typeof postTerminalReadersReaderSetReaderDisplay)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15055,9 +13566,6 @@ const postTestHelpersConfirmationTokens = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersConfirmationTokensResponder = - (typeof postTestHelpersConfirmationTokens)["responder"] & KoaRuntimeResponder - export type PostTestHelpersConfirmationTokens = ( params: Params< void, @@ -15065,7 +13573,7 @@ export type PostTestHelpersConfirmationTokens = ( t_PostTestHelpersConfirmationTokensBodySchema | undefined, void >, - respond: PostTestHelpersConfirmationTokensResponder, + respond: (typeof postTestHelpersConfirmationTokens)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15081,10 +13589,6 @@ const postTestHelpersCustomersCustomerFundCashBalance = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersCustomersCustomerFundCashBalanceResponder = - (typeof postTestHelpersCustomersCustomerFundCashBalance)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersCustomersCustomerFundCashBalance = ( params: Params< t_PostTestHelpersCustomersCustomerFundCashBalanceParamSchema, @@ -15092,7 +13596,7 @@ export type PostTestHelpersCustomersCustomerFundCashBalance = ( t_PostTestHelpersCustomersCustomerFundCashBalanceBodySchema, void >, - respond: PostTestHelpersCustomersCustomerFundCashBalanceResponder, + respond: (typeof postTestHelpersCustomersCustomerFundCashBalance)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15106,10 +13610,6 @@ const postTestHelpersIssuingAuthorizations = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingAuthorizationsResponder = - (typeof postTestHelpersIssuingAuthorizations)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingAuthorizations = ( params: Params< void, @@ -15117,7 +13617,7 @@ export type PostTestHelpersIssuingAuthorizations = ( t_PostTestHelpersIssuingAuthorizationsBodySchema, void >, - respond: PostTestHelpersIssuingAuthorizationsResponder, + respond: (typeof postTestHelpersIssuingAuthorizations)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15131,10 +13631,6 @@ const postTestHelpersIssuingAuthorizationsAuthorizationCapture = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder = - (typeof postTestHelpersIssuingAuthorizationsAuthorizationCapture)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingAuthorizationsAuthorizationCapture = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationCaptureParamSchema, @@ -15143,7 +13639,7 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationCapture = ( | undefined, void >, - respond: PostTestHelpersIssuingAuthorizationsAuthorizationCaptureResponder, + respond: (typeof postTestHelpersIssuingAuthorizationsAuthorizationCapture)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15157,10 +13653,6 @@ const postTestHelpersIssuingAuthorizationsAuthorizationExpire = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingAuthorizationsAuthorizationExpireResponder = - (typeof postTestHelpersIssuingAuthorizationsAuthorizationExpire)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingAuthorizationsAuthorizationExpire = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationExpireParamSchema, @@ -15169,7 +13661,7 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationExpire = ( | undefined, void >, - respond: PostTestHelpersIssuingAuthorizationsAuthorizationExpireResponder, + respond: (typeof postTestHelpersIssuingAuthorizationsAuthorizationExpire)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15185,10 +13677,6 @@ const postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount = b( }), ) -type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder = - (typeof postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountParamSchema, @@ -15196,7 +13684,7 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount = ( t_PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountBodySchema, void >, - respond: PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponder, + respond: (typeof postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15211,10 +13699,6 @@ const postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond = withStatus: r.withStatus, })) -type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder = - (typeof postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond = ( params: Params< @@ -15223,7 +13707,7 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesResp t_PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondBodySchema, void >, - respond: PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponder, + respond: (typeof postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15237,10 +13721,6 @@ const postTestHelpersIssuingAuthorizationsAuthorizationIncrement = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder = - (typeof postTestHelpersIssuingAuthorizationsAuthorizationIncrement)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingAuthorizationsAuthorizationIncrement = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationIncrementParamSchema, @@ -15248,7 +13728,7 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationIncrement = ( t_PostTestHelpersIssuingAuthorizationsAuthorizationIncrementBodySchema, void >, - respond: PostTestHelpersIssuingAuthorizationsAuthorizationIncrementResponder, + respond: (typeof postTestHelpersIssuingAuthorizationsAuthorizationIncrement)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15262,10 +13742,6 @@ const postTestHelpersIssuingAuthorizationsAuthorizationReverse = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingAuthorizationsAuthorizationReverseResponder = - (typeof postTestHelpersIssuingAuthorizationsAuthorizationReverse)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingAuthorizationsAuthorizationReverse = ( params: Params< t_PostTestHelpersIssuingAuthorizationsAuthorizationReverseParamSchema, @@ -15274,7 +13750,7 @@ export type PostTestHelpersIssuingAuthorizationsAuthorizationReverse = ( | undefined, void >, - respond: PostTestHelpersIssuingAuthorizationsAuthorizationReverseResponder, + respond: (typeof postTestHelpersIssuingAuthorizationsAuthorizationReverse)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15288,10 +13764,6 @@ const postTestHelpersIssuingCardsCardShippingDeliver = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingCardsCardShippingDeliverResponder = - (typeof postTestHelpersIssuingCardsCardShippingDeliver)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingCardsCardShippingDeliver = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingDeliverParamSchema, @@ -15299,7 +13771,7 @@ export type PostTestHelpersIssuingCardsCardShippingDeliver = ( t_PostTestHelpersIssuingCardsCardShippingDeliverBodySchema | undefined, void >, - respond: PostTestHelpersIssuingCardsCardShippingDeliverResponder, + respond: (typeof postTestHelpersIssuingCardsCardShippingDeliver)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15313,10 +13785,6 @@ const postTestHelpersIssuingCardsCardShippingFail = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingCardsCardShippingFailResponder = - (typeof postTestHelpersIssuingCardsCardShippingFail)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingCardsCardShippingFail = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingFailParamSchema, @@ -15324,7 +13792,7 @@ export type PostTestHelpersIssuingCardsCardShippingFail = ( t_PostTestHelpersIssuingCardsCardShippingFailBodySchema | undefined, void >, - respond: PostTestHelpersIssuingCardsCardShippingFailResponder, + respond: (typeof postTestHelpersIssuingCardsCardShippingFail)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15338,10 +13806,6 @@ const postTestHelpersIssuingCardsCardShippingReturn = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingCardsCardShippingReturnResponder = - (typeof postTestHelpersIssuingCardsCardShippingReturn)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingCardsCardShippingReturn = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingReturnParamSchema, @@ -15349,7 +13813,7 @@ export type PostTestHelpersIssuingCardsCardShippingReturn = ( t_PostTestHelpersIssuingCardsCardShippingReturnBodySchema | undefined, void >, - respond: PostTestHelpersIssuingCardsCardShippingReturnResponder, + respond: (typeof postTestHelpersIssuingCardsCardShippingReturn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15363,10 +13827,6 @@ const postTestHelpersIssuingCardsCardShippingShip = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingCardsCardShippingShipResponder = - (typeof postTestHelpersIssuingCardsCardShippingShip)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingCardsCardShippingShip = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingShipParamSchema, @@ -15374,7 +13834,7 @@ export type PostTestHelpersIssuingCardsCardShippingShip = ( t_PostTestHelpersIssuingCardsCardShippingShipBodySchema | undefined, void >, - respond: PostTestHelpersIssuingCardsCardShippingShipResponder, + respond: (typeof postTestHelpersIssuingCardsCardShippingShip)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15388,10 +13848,6 @@ const postTestHelpersIssuingCardsCardShippingSubmit = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingCardsCardShippingSubmitResponder = - (typeof postTestHelpersIssuingCardsCardShippingSubmit)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingCardsCardShippingSubmit = ( params: Params< t_PostTestHelpersIssuingCardsCardShippingSubmitParamSchema, @@ -15399,7 +13855,7 @@ export type PostTestHelpersIssuingCardsCardShippingSubmit = ( t_PostTestHelpersIssuingCardsCardShippingSubmitBodySchema | undefined, void >, - respond: PostTestHelpersIssuingCardsCardShippingSubmitResponder, + respond: (typeof postTestHelpersIssuingCardsCardShippingSubmit)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15416,10 +13872,6 @@ const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate withStatus: r.withStatus, })) -type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder = - (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate = ( params: Params< @@ -15429,7 +13881,7 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignAct | undefined, void >, - respond: PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponder, + respond: (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15446,10 +13898,6 @@ const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivat withStatus: r.withStatus, })) -type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder = - (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate = ( params: Params< @@ -15459,7 +13907,7 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDea | undefined, void >, - respond: PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponder, + respond: (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15476,10 +13924,6 @@ const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject = withStatus: r.withStatus, })) -type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder = - (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject = ( params: Params< @@ -15488,7 +13932,7 @@ export type PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRej t_PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectBodySchema, void >, - respond: PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponder, + respond: (typeof postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15502,9 +13946,6 @@ const postTestHelpersIssuingSettlements = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingSettlementsResponder = - (typeof postTestHelpersIssuingSettlements)["responder"] & KoaRuntimeResponder - export type PostTestHelpersIssuingSettlements = ( params: Params< void, @@ -15512,7 +13953,7 @@ export type PostTestHelpersIssuingSettlements = ( t_PostTestHelpersIssuingSettlementsBodySchema, void >, - respond: PostTestHelpersIssuingSettlementsResponder, + respond: (typeof postTestHelpersIssuingSettlements)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15526,10 +13967,6 @@ const postTestHelpersIssuingSettlementsSettlementComplete = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingSettlementsSettlementCompleteResponder = - (typeof postTestHelpersIssuingSettlementsSettlementComplete)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingSettlementsSettlementComplete = ( params: Params< t_PostTestHelpersIssuingSettlementsSettlementCompleteParamSchema, @@ -15537,7 +13974,7 @@ export type PostTestHelpersIssuingSettlementsSettlementComplete = ( t_PostTestHelpersIssuingSettlementsSettlementCompleteBodySchema | undefined, void >, - respond: PostTestHelpersIssuingSettlementsSettlementCompleteResponder, + respond: (typeof postTestHelpersIssuingSettlementsSettlementComplete)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15551,10 +13988,6 @@ const postTestHelpersIssuingTransactionsCreateForceCapture = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingTransactionsCreateForceCaptureResponder = - (typeof postTestHelpersIssuingTransactionsCreateForceCapture)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingTransactionsCreateForceCapture = ( params: Params< void, @@ -15562,7 +13995,7 @@ export type PostTestHelpersIssuingTransactionsCreateForceCapture = ( t_PostTestHelpersIssuingTransactionsCreateForceCaptureBodySchema, void >, - respond: PostTestHelpersIssuingTransactionsCreateForceCaptureResponder, + respond: (typeof postTestHelpersIssuingTransactionsCreateForceCapture)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15576,10 +14009,6 @@ const postTestHelpersIssuingTransactionsCreateUnlinkedRefund = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder = - (typeof postTestHelpersIssuingTransactionsCreateUnlinkedRefund)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingTransactionsCreateUnlinkedRefund = ( params: Params< void, @@ -15587,7 +14016,7 @@ export type PostTestHelpersIssuingTransactionsCreateUnlinkedRefund = ( t_PostTestHelpersIssuingTransactionsCreateUnlinkedRefundBodySchema, void >, - respond: PostTestHelpersIssuingTransactionsCreateUnlinkedRefundResponder, + respond: (typeof postTestHelpersIssuingTransactionsCreateUnlinkedRefund)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15601,10 +14030,6 @@ const postTestHelpersIssuingTransactionsTransactionRefund = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersIssuingTransactionsTransactionRefundResponder = - (typeof postTestHelpersIssuingTransactionsTransactionRefund)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersIssuingTransactionsTransactionRefund = ( params: Params< t_PostTestHelpersIssuingTransactionsTransactionRefundParamSchema, @@ -15612,7 +14037,7 @@ export type PostTestHelpersIssuingTransactionsTransactionRefund = ( t_PostTestHelpersIssuingTransactionsTransactionRefundBodySchema | undefined, void >, - respond: PostTestHelpersIssuingTransactionsTransactionRefundResponder, + respond: (typeof postTestHelpersIssuingTransactionsTransactionRefund)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15626,9 +14051,6 @@ const postTestHelpersRefundsRefundExpire = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersRefundsRefundExpireResponder = - (typeof postTestHelpersRefundsRefundExpire)["responder"] & KoaRuntimeResponder - export type PostTestHelpersRefundsRefundExpire = ( params: Params< t_PostTestHelpersRefundsRefundExpireParamSchema, @@ -15636,7 +14058,7 @@ export type PostTestHelpersRefundsRefundExpire = ( t_PostTestHelpersRefundsRefundExpireBodySchema | undefined, void >, - respond: PostTestHelpersRefundsRefundExpireResponder, + respond: (typeof postTestHelpersRefundsRefundExpire)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15650,10 +14072,6 @@ const postTestHelpersTerminalReadersReaderPresentPaymentMethod = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTerminalReadersReaderPresentPaymentMethodResponder = - (typeof postTestHelpersTerminalReadersReaderPresentPaymentMethod)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTerminalReadersReaderPresentPaymentMethod = ( params: Params< t_PostTestHelpersTerminalReadersReaderPresentPaymentMethodParamSchema, @@ -15662,7 +14080,7 @@ export type PostTestHelpersTerminalReadersReaderPresentPaymentMethod = ( | undefined, void >, - respond: PostTestHelpersTerminalReadersReaderPresentPaymentMethodResponder, + respond: (typeof postTestHelpersTerminalReadersReaderPresentPaymentMethod)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15691,9 +14109,6 @@ const getTestHelpersTestClocks = b((r) => ({ withStatus: r.withStatus, })) -type GetTestHelpersTestClocksResponder = - (typeof getTestHelpersTestClocks)["responder"] & KoaRuntimeResponder - export type GetTestHelpersTestClocks = ( params: Params< void, @@ -15701,7 +14116,7 @@ export type GetTestHelpersTestClocks = ( t_GetTestHelpersTestClocksBodySchema | undefined, void >, - respond: GetTestHelpersTestClocksResponder, + respond: (typeof getTestHelpersTestClocks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15723,12 +14138,9 @@ const postTestHelpersTestClocks = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTestClocksResponder = - (typeof postTestHelpersTestClocks)["responder"] & KoaRuntimeResponder - export type PostTestHelpersTestClocks = ( params: Params, - respond: PostTestHelpersTestClocksResponder, + respond: (typeof postTestHelpersTestClocks)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15744,10 +14156,6 @@ const deleteTestHelpersTestClocksTestClock = b((r) => ({ withStatus: r.withStatus, })) -type DeleteTestHelpersTestClocksTestClockResponder = - (typeof deleteTestHelpersTestClocksTestClock)["responder"] & - KoaRuntimeResponder - export type DeleteTestHelpersTestClocksTestClock = ( params: Params< t_DeleteTestHelpersTestClocksTestClockParamSchema, @@ -15755,7 +14163,7 @@ export type DeleteTestHelpersTestClocksTestClock = ( t_DeleteTestHelpersTestClocksTestClockBodySchema | undefined, void >, - respond: DeleteTestHelpersTestClocksTestClockResponder, + respond: (typeof deleteTestHelpersTestClocksTestClock)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15769,9 +14177,6 @@ const getTestHelpersTestClocksTestClock = b((r) => ({ withStatus: r.withStatus, })) -type GetTestHelpersTestClocksTestClockResponder = - (typeof getTestHelpersTestClocksTestClock)["responder"] & KoaRuntimeResponder - export type GetTestHelpersTestClocksTestClock = ( params: Params< t_GetTestHelpersTestClocksTestClockParamSchema, @@ -15779,7 +14184,7 @@ export type GetTestHelpersTestClocksTestClock = ( t_GetTestHelpersTestClocksTestClockBodySchema | undefined, void >, - respond: GetTestHelpersTestClocksTestClockResponder, + respond: (typeof getTestHelpersTestClocksTestClock)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15793,10 +14198,6 @@ const postTestHelpersTestClocksTestClockAdvance = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTestClocksTestClockAdvanceResponder = - (typeof postTestHelpersTestClocksTestClockAdvance)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTestClocksTestClockAdvance = ( params: Params< t_PostTestHelpersTestClocksTestClockAdvanceParamSchema, @@ -15804,7 +14205,7 @@ export type PostTestHelpersTestClocksTestClockAdvance = ( t_PostTestHelpersTestClocksTestClockAdvanceBodySchema, void >, - respond: PostTestHelpersTestClocksTestClockAdvanceResponder, + respond: (typeof postTestHelpersTestClocksTestClockAdvance)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15818,10 +14219,6 @@ const postTestHelpersTreasuryInboundTransfersIdFail = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryInboundTransfersIdFailResponder = - (typeof postTestHelpersTreasuryInboundTransfersIdFail)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryInboundTransfersIdFail = ( params: Params< t_PostTestHelpersTreasuryInboundTransfersIdFailParamSchema, @@ -15829,7 +14226,7 @@ export type PostTestHelpersTreasuryInboundTransfersIdFail = ( t_PostTestHelpersTreasuryInboundTransfersIdFailBodySchema | undefined, void >, - respond: PostTestHelpersTreasuryInboundTransfersIdFailResponder, + respond: (typeof postTestHelpersTreasuryInboundTransfersIdFail)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15843,10 +14240,6 @@ const postTestHelpersTreasuryInboundTransfersIdReturn = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryInboundTransfersIdReturnResponder = - (typeof postTestHelpersTreasuryInboundTransfersIdReturn)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryInboundTransfersIdReturn = ( params: Params< t_PostTestHelpersTreasuryInboundTransfersIdReturnParamSchema, @@ -15854,7 +14247,7 @@ export type PostTestHelpersTreasuryInboundTransfersIdReturn = ( t_PostTestHelpersTreasuryInboundTransfersIdReturnBodySchema | undefined, void >, - respond: PostTestHelpersTreasuryInboundTransfersIdReturnResponder, + respond: (typeof postTestHelpersTreasuryInboundTransfersIdReturn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15868,10 +14261,6 @@ const postTestHelpersTreasuryInboundTransfersIdSucceed = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryInboundTransfersIdSucceedResponder = - (typeof postTestHelpersTreasuryInboundTransfersIdSucceed)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryInboundTransfersIdSucceed = ( params: Params< t_PostTestHelpersTreasuryInboundTransfersIdSucceedParamSchema, @@ -15879,7 +14268,7 @@ export type PostTestHelpersTreasuryInboundTransfersIdSucceed = ( t_PostTestHelpersTreasuryInboundTransfersIdSucceedBodySchema | undefined, void >, - respond: PostTestHelpersTreasuryInboundTransfersIdSucceedResponder, + respond: (typeof postTestHelpersTreasuryInboundTransfersIdSucceed)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15893,10 +14282,6 @@ const postTestHelpersTreasuryOutboundPaymentsId = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryOutboundPaymentsIdResponder = - (typeof postTestHelpersTreasuryOutboundPaymentsId)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryOutboundPaymentsId = ( params: Params< t_PostTestHelpersTreasuryOutboundPaymentsIdParamSchema, @@ -15904,7 +14289,7 @@ export type PostTestHelpersTreasuryOutboundPaymentsId = ( t_PostTestHelpersTreasuryOutboundPaymentsIdBodySchema, void >, - respond: PostTestHelpersTreasuryOutboundPaymentsIdResponder, + respond: (typeof postTestHelpersTreasuryOutboundPaymentsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15918,10 +14303,6 @@ const postTestHelpersTreasuryOutboundPaymentsIdFail = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryOutboundPaymentsIdFailResponder = - (typeof postTestHelpersTreasuryOutboundPaymentsIdFail)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryOutboundPaymentsIdFail = ( params: Params< t_PostTestHelpersTreasuryOutboundPaymentsIdFailParamSchema, @@ -15929,7 +14310,7 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdFail = ( t_PostTestHelpersTreasuryOutboundPaymentsIdFailBodySchema | undefined, void >, - respond: PostTestHelpersTreasuryOutboundPaymentsIdFailResponder, + respond: (typeof postTestHelpersTreasuryOutboundPaymentsIdFail)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15943,10 +14324,6 @@ const postTestHelpersTreasuryOutboundPaymentsIdPost = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryOutboundPaymentsIdPostResponder = - (typeof postTestHelpersTreasuryOutboundPaymentsIdPost)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryOutboundPaymentsIdPost = ( params: Params< t_PostTestHelpersTreasuryOutboundPaymentsIdPostParamSchema, @@ -15954,7 +14331,7 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdPost = ( t_PostTestHelpersTreasuryOutboundPaymentsIdPostBodySchema | undefined, void >, - respond: PostTestHelpersTreasuryOutboundPaymentsIdPostResponder, + respond: (typeof postTestHelpersTreasuryOutboundPaymentsIdPost)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15968,10 +14345,6 @@ const postTestHelpersTreasuryOutboundPaymentsIdReturn = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryOutboundPaymentsIdReturnResponder = - (typeof postTestHelpersTreasuryOutboundPaymentsIdReturn)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryOutboundPaymentsIdReturn = ( params: Params< t_PostTestHelpersTreasuryOutboundPaymentsIdReturnParamSchema, @@ -15979,7 +14352,7 @@ export type PostTestHelpersTreasuryOutboundPaymentsIdReturn = ( t_PostTestHelpersTreasuryOutboundPaymentsIdReturnBodySchema | undefined, void >, - respond: PostTestHelpersTreasuryOutboundPaymentsIdReturnResponder, + respond: (typeof postTestHelpersTreasuryOutboundPaymentsIdReturn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -15995,10 +14368,6 @@ const postTestHelpersTreasuryOutboundTransfersOutboundTransfer = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryOutboundTransfersOutboundTransferResponder = - (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransfer)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryOutboundTransfersOutboundTransfer = ( params: Params< t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferParamSchema, @@ -16006,7 +14375,7 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransfer = ( t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferBodySchema, void >, - respond: PostTestHelpersTreasuryOutboundTransfersOutboundTransferResponder, + respond: (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransfer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16022,10 +14391,6 @@ const postTestHelpersTreasuryOutboundTransfersOutboundTransferFail = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder = - (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferFail)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail = ( params: Params< t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailParamSchema, @@ -16034,7 +14399,7 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail = ( | undefined, void >, - respond: PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponder, + respond: (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferFail)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16050,10 +14415,6 @@ const postTestHelpersTreasuryOutboundTransfersOutboundTransferPost = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder = - (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferPost)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost = ( params: Params< t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostParamSchema, @@ -16062,7 +14423,7 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost = ( | undefined, void >, - respond: PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponder, + respond: (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferPost)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16080,10 +14441,6 @@ const postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = b( }), ) -type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder = - (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = ( params: Params< t_PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnParamSchema, @@ -16092,7 +14449,7 @@ export type PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = ( | undefined, void >, - respond: PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponder, + respond: (typeof postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16106,10 +14463,6 @@ const postTestHelpersTreasuryReceivedCredits = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryReceivedCreditsResponder = - (typeof postTestHelpersTreasuryReceivedCredits)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryReceivedCredits = ( params: Params< void, @@ -16117,7 +14470,7 @@ export type PostTestHelpersTreasuryReceivedCredits = ( t_PostTestHelpersTreasuryReceivedCreditsBodySchema, void >, - respond: PostTestHelpersTreasuryReceivedCreditsResponder, + respond: (typeof postTestHelpersTreasuryReceivedCredits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16131,10 +14484,6 @@ const postTestHelpersTreasuryReceivedDebits = b((r) => ({ withStatus: r.withStatus, })) -type PostTestHelpersTreasuryReceivedDebitsResponder = - (typeof postTestHelpersTreasuryReceivedDebits)["responder"] & - KoaRuntimeResponder - export type PostTestHelpersTreasuryReceivedDebits = ( params: Params< void, @@ -16142,7 +14491,7 @@ export type PostTestHelpersTreasuryReceivedDebits = ( t_PostTestHelpersTreasuryReceivedDebitsBodySchema, void >, - respond: PostTestHelpersTreasuryReceivedDebitsResponder, + respond: (typeof postTestHelpersTreasuryReceivedDebits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16156,12 +14505,9 @@ const postTokens = b((r) => ({ withStatus: r.withStatus, })) -type PostTokensResponder = (typeof postTokens)["responder"] & - KoaRuntimeResponder - export type PostTokens = ( params: Params, - respond: PostTokensResponder, + respond: (typeof postTokens)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16175,9 +14521,6 @@ const getTokensToken = b((r) => ({ withStatus: r.withStatus, })) -type GetTokensTokenResponder = (typeof getTokensToken)["responder"] & - KoaRuntimeResponder - export type GetTokensToken = ( params: Params< t_GetTokensTokenParamSchema, @@ -16185,7 +14528,7 @@ export type GetTokensToken = ( t_GetTokensTokenBodySchema | undefined, void >, - respond: GetTokensTokenResponder, + respond: (typeof getTokensToken)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16211,8 +14554,6 @@ const getTopups = b((r) => ({ withStatus: r.withStatus, })) -type GetTopupsResponder = (typeof getTopups)["responder"] & KoaRuntimeResponder - export type GetTopups = ( params: Params< void, @@ -16220,7 +14561,7 @@ export type GetTopups = ( t_GetTopupsBodySchema | undefined, void >, - respond: GetTopupsResponder, + respond: (typeof getTopups)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16242,12 +14583,9 @@ const postTopups = b((r) => ({ withStatus: r.withStatus, })) -type PostTopupsResponder = (typeof postTopups)["responder"] & - KoaRuntimeResponder - export type PostTopups = ( params: Params, - respond: PostTopupsResponder, + respond: (typeof postTopups)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16261,9 +14599,6 @@ const getTopupsTopup = b((r) => ({ withStatus: r.withStatus, })) -type GetTopupsTopupResponder = (typeof getTopupsTopup)["responder"] & - KoaRuntimeResponder - export type GetTopupsTopup = ( params: Params< t_GetTopupsTopupParamSchema, @@ -16271,7 +14606,7 @@ export type GetTopupsTopup = ( t_GetTopupsTopupBodySchema | undefined, void >, - respond: GetTopupsTopupResponder, + respond: (typeof getTopupsTopup)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16285,9 +14620,6 @@ const postTopupsTopup = b((r) => ({ withStatus: r.withStatus, })) -type PostTopupsTopupResponder = (typeof postTopupsTopup)["responder"] & - KoaRuntimeResponder - export type PostTopupsTopup = ( params: Params< t_PostTopupsTopupParamSchema, @@ -16295,7 +14627,7 @@ export type PostTopupsTopup = ( t_PostTopupsTopupBodySchema | undefined, void >, - respond: PostTopupsTopupResponder, + respond: (typeof postTopupsTopup)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16309,9 +14641,6 @@ const postTopupsTopupCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostTopupsTopupCancelResponder = - (typeof postTopupsTopupCancel)["responder"] & KoaRuntimeResponder - export type PostTopupsTopupCancel = ( params: Params< t_PostTopupsTopupCancelParamSchema, @@ -16319,7 +14648,7 @@ export type PostTopupsTopupCancel = ( t_PostTopupsTopupCancelBodySchema | undefined, void >, - respond: PostTopupsTopupCancelResponder, + respond: (typeof postTopupsTopupCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16345,9 +14674,6 @@ const getTransfers = b((r) => ({ withStatus: r.withStatus, })) -type GetTransfersResponder = (typeof getTransfers)["responder"] & - KoaRuntimeResponder - export type GetTransfers = ( params: Params< void, @@ -16355,7 +14681,7 @@ export type GetTransfers = ( t_GetTransfersBodySchema | undefined, void >, - respond: GetTransfersResponder, + respond: (typeof getTransfers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16377,12 +14703,9 @@ const postTransfers = b((r) => ({ withStatus: r.withStatus, })) -type PostTransfersResponder = (typeof postTransfers)["responder"] & - KoaRuntimeResponder - export type PostTransfers = ( params: Params, - respond: PostTransfersResponder, + respond: (typeof postTransfers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16408,9 +14731,6 @@ const getTransfersIdReversals = b((r) => ({ withStatus: r.withStatus, })) -type GetTransfersIdReversalsResponder = - (typeof getTransfersIdReversals)["responder"] & KoaRuntimeResponder - export type GetTransfersIdReversals = ( params: Params< t_GetTransfersIdReversalsParamSchema, @@ -16418,7 +14738,7 @@ export type GetTransfersIdReversals = ( t_GetTransfersIdReversalsBodySchema | undefined, void >, - respond: GetTransfersIdReversalsResponder, + respond: (typeof getTransfersIdReversals)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16440,9 +14760,6 @@ const postTransfersIdReversals = b((r) => ({ withStatus: r.withStatus, })) -type PostTransfersIdReversalsResponder = - (typeof postTransfersIdReversals)["responder"] & KoaRuntimeResponder - export type PostTransfersIdReversals = ( params: Params< t_PostTransfersIdReversalsParamSchema, @@ -16450,7 +14767,7 @@ export type PostTransfersIdReversals = ( t_PostTransfersIdReversalsBodySchema | undefined, void >, - respond: PostTransfersIdReversalsResponder, + respond: (typeof postTransfersIdReversals)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16464,9 +14781,6 @@ const getTransfersTransfer = b((r) => ({ withStatus: r.withStatus, })) -type GetTransfersTransferResponder = - (typeof getTransfersTransfer)["responder"] & KoaRuntimeResponder - export type GetTransfersTransfer = ( params: Params< t_GetTransfersTransferParamSchema, @@ -16474,7 +14788,7 @@ export type GetTransfersTransfer = ( t_GetTransfersTransferBodySchema | undefined, void >, - respond: GetTransfersTransferResponder, + respond: (typeof getTransfersTransfer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16488,9 +14802,6 @@ const postTransfersTransfer = b((r) => ({ withStatus: r.withStatus, })) -type PostTransfersTransferResponder = - (typeof postTransfersTransfer)["responder"] & KoaRuntimeResponder - export type PostTransfersTransfer = ( params: Params< t_PostTransfersTransferParamSchema, @@ -16498,7 +14809,7 @@ export type PostTransfersTransfer = ( t_PostTransfersTransferBodySchema | undefined, void >, - respond: PostTransfersTransferResponder, + respond: (typeof postTransfersTransfer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16512,9 +14823,6 @@ const getTransfersTransferReversalsId = b((r) => ({ withStatus: r.withStatus, })) -type GetTransfersTransferReversalsIdResponder = - (typeof getTransfersTransferReversalsId)["responder"] & KoaRuntimeResponder - export type GetTransfersTransferReversalsId = ( params: Params< t_GetTransfersTransferReversalsIdParamSchema, @@ -16522,7 +14830,7 @@ export type GetTransfersTransferReversalsId = ( t_GetTransfersTransferReversalsIdBodySchema | undefined, void >, - respond: GetTransfersTransferReversalsIdResponder, + respond: (typeof getTransfersTransferReversalsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16536,9 +14844,6 @@ const postTransfersTransferReversalsId = b((r) => ({ withStatus: r.withStatus, })) -type PostTransfersTransferReversalsIdResponder = - (typeof postTransfersTransferReversalsId)["responder"] & KoaRuntimeResponder - export type PostTransfersTransferReversalsId = ( params: Params< t_PostTransfersTransferReversalsIdParamSchema, @@ -16546,7 +14851,7 @@ export type PostTransfersTransferReversalsId = ( t_PostTransfersTransferReversalsIdBodySchema | undefined, void >, - respond: PostTransfersTransferReversalsIdResponder, + respond: (typeof postTransfersTransferReversalsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16572,9 +14877,6 @@ const getTreasuryCreditReversals = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryCreditReversalsResponder = - (typeof getTreasuryCreditReversals)["responder"] & KoaRuntimeResponder - export type GetTreasuryCreditReversals = ( params: Params< void, @@ -16582,7 +14884,7 @@ export type GetTreasuryCreditReversals = ( t_GetTreasuryCreditReversalsBodySchema | undefined, void >, - respond: GetTreasuryCreditReversalsResponder, + respond: (typeof getTreasuryCreditReversals)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16604,12 +14906,9 @@ const postTreasuryCreditReversals = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryCreditReversalsResponder = - (typeof postTreasuryCreditReversals)["responder"] & KoaRuntimeResponder - export type PostTreasuryCreditReversals = ( params: Params, - respond: PostTreasuryCreditReversalsResponder, + respond: (typeof postTreasuryCreditReversals)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16623,10 +14922,6 @@ const getTreasuryCreditReversalsCreditReversal = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryCreditReversalsCreditReversalResponder = - (typeof getTreasuryCreditReversalsCreditReversal)["responder"] & - KoaRuntimeResponder - export type GetTreasuryCreditReversalsCreditReversal = ( params: Params< t_GetTreasuryCreditReversalsCreditReversalParamSchema, @@ -16634,7 +14929,7 @@ export type GetTreasuryCreditReversalsCreditReversal = ( t_GetTreasuryCreditReversalsCreditReversalBodySchema | undefined, void >, - respond: GetTreasuryCreditReversalsCreditReversalResponder, + respond: (typeof getTreasuryCreditReversalsCreditReversal)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16660,9 +14955,6 @@ const getTreasuryDebitReversals = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryDebitReversalsResponder = - (typeof getTreasuryDebitReversals)["responder"] & KoaRuntimeResponder - export type GetTreasuryDebitReversals = ( params: Params< void, @@ -16670,7 +14962,7 @@ export type GetTreasuryDebitReversals = ( t_GetTreasuryDebitReversalsBodySchema | undefined, void >, - respond: GetTreasuryDebitReversalsResponder, + respond: (typeof getTreasuryDebitReversals)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16692,12 +14984,9 @@ const postTreasuryDebitReversals = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryDebitReversalsResponder = - (typeof postTreasuryDebitReversals)["responder"] & KoaRuntimeResponder - export type PostTreasuryDebitReversals = ( params: Params, - respond: PostTreasuryDebitReversalsResponder, + respond: (typeof postTreasuryDebitReversals)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16711,10 +15000,6 @@ const getTreasuryDebitReversalsDebitReversal = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryDebitReversalsDebitReversalResponder = - (typeof getTreasuryDebitReversalsDebitReversal)["responder"] & - KoaRuntimeResponder - export type GetTreasuryDebitReversalsDebitReversal = ( params: Params< t_GetTreasuryDebitReversalsDebitReversalParamSchema, @@ -16722,7 +15007,7 @@ export type GetTreasuryDebitReversalsDebitReversal = ( t_GetTreasuryDebitReversalsDebitReversalBodySchema | undefined, void >, - respond: GetTreasuryDebitReversalsDebitReversalResponder, + respond: (typeof getTreasuryDebitReversalsDebitReversal)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16751,9 +15036,6 @@ const getTreasuryFinancialAccounts = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryFinancialAccountsResponder = - (typeof getTreasuryFinancialAccounts)["responder"] & KoaRuntimeResponder - export type GetTreasuryFinancialAccounts = ( params: Params< void, @@ -16761,7 +15043,7 @@ export type GetTreasuryFinancialAccounts = ( t_GetTreasuryFinancialAccountsBodySchema | undefined, void >, - respond: GetTreasuryFinancialAccountsResponder, + respond: (typeof getTreasuryFinancialAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16785,12 +15067,9 @@ const postTreasuryFinancialAccounts = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryFinancialAccountsResponder = - (typeof postTreasuryFinancialAccounts)["responder"] & KoaRuntimeResponder - export type PostTreasuryFinancialAccounts = ( params: Params, - respond: PostTreasuryFinancialAccountsResponder, + respond: (typeof postTreasuryFinancialAccounts)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16806,10 +15085,6 @@ const getTreasuryFinancialAccountsFinancialAccount = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryFinancialAccountsFinancialAccountResponder = - (typeof getTreasuryFinancialAccountsFinancialAccount)["responder"] & - KoaRuntimeResponder - export type GetTreasuryFinancialAccountsFinancialAccount = ( params: Params< t_GetTreasuryFinancialAccountsFinancialAccountParamSchema, @@ -16817,7 +15092,7 @@ export type GetTreasuryFinancialAccountsFinancialAccount = ( t_GetTreasuryFinancialAccountsFinancialAccountBodySchema | undefined, void >, - respond: GetTreasuryFinancialAccountsFinancialAccountResponder, + respond: (typeof getTreasuryFinancialAccountsFinancialAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16833,10 +15108,6 @@ const postTreasuryFinancialAccountsFinancialAccount = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryFinancialAccountsFinancialAccountResponder = - (typeof postTreasuryFinancialAccountsFinancialAccount)["responder"] & - KoaRuntimeResponder - export type PostTreasuryFinancialAccountsFinancialAccount = ( params: Params< t_PostTreasuryFinancialAccountsFinancialAccountParamSchema, @@ -16844,7 +15115,7 @@ export type PostTreasuryFinancialAccountsFinancialAccount = ( t_PostTreasuryFinancialAccountsFinancialAccountBodySchema | undefined, void >, - respond: PostTreasuryFinancialAccountsFinancialAccountResponder, + respond: (typeof postTreasuryFinancialAccountsFinancialAccount)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16860,10 +15131,6 @@ const postTreasuryFinancialAccountsFinancialAccountClose = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryFinancialAccountsFinancialAccountCloseResponder = - (typeof postTreasuryFinancialAccountsFinancialAccountClose)["responder"] & - KoaRuntimeResponder - export type PostTreasuryFinancialAccountsFinancialAccountClose = ( params: Params< t_PostTreasuryFinancialAccountsFinancialAccountCloseParamSchema, @@ -16871,7 +15138,7 @@ export type PostTreasuryFinancialAccountsFinancialAccountClose = ( t_PostTreasuryFinancialAccountsFinancialAccountCloseBodySchema | undefined, void >, - respond: PostTreasuryFinancialAccountsFinancialAccountCloseResponder, + respond: (typeof postTreasuryFinancialAccountsFinancialAccountClose)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16887,10 +15154,6 @@ const getTreasuryFinancialAccountsFinancialAccountFeatures = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryFinancialAccountsFinancialAccountFeaturesResponder = - (typeof getTreasuryFinancialAccountsFinancialAccountFeatures)["responder"] & - KoaRuntimeResponder - export type GetTreasuryFinancialAccountsFinancialAccountFeatures = ( params: Params< t_GetTreasuryFinancialAccountsFinancialAccountFeaturesParamSchema, @@ -16899,7 +15162,7 @@ export type GetTreasuryFinancialAccountsFinancialAccountFeatures = ( | undefined, void >, - respond: GetTreasuryFinancialAccountsFinancialAccountFeaturesResponder, + respond: (typeof getTreasuryFinancialAccountsFinancialAccountFeatures)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16915,10 +15178,6 @@ const postTreasuryFinancialAccountsFinancialAccountFeatures = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryFinancialAccountsFinancialAccountFeaturesResponder = - (typeof postTreasuryFinancialAccountsFinancialAccountFeatures)["responder"] & - KoaRuntimeResponder - export type PostTreasuryFinancialAccountsFinancialAccountFeatures = ( params: Params< t_PostTreasuryFinancialAccountsFinancialAccountFeaturesParamSchema, @@ -16927,7 +15186,7 @@ export type PostTreasuryFinancialAccountsFinancialAccountFeatures = ( | undefined, void >, - respond: PostTreasuryFinancialAccountsFinancialAccountFeaturesResponder, + respond: (typeof postTreasuryFinancialAccountsFinancialAccountFeatures)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16953,9 +15212,6 @@ const getTreasuryInboundTransfers = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryInboundTransfersResponder = - (typeof getTreasuryInboundTransfers)["responder"] & KoaRuntimeResponder - export type GetTreasuryInboundTransfers = ( params: Params< void, @@ -16963,7 +15219,7 @@ export type GetTreasuryInboundTransfers = ( t_GetTreasuryInboundTransfersBodySchema | undefined, void >, - respond: GetTreasuryInboundTransfersResponder, + respond: (typeof getTreasuryInboundTransfers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -16985,12 +15241,9 @@ const postTreasuryInboundTransfers = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryInboundTransfersResponder = - (typeof postTreasuryInboundTransfers)["responder"] & KoaRuntimeResponder - export type PostTreasuryInboundTransfers = ( params: Params, - respond: PostTreasuryInboundTransfersResponder, + respond: (typeof postTreasuryInboundTransfers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17004,9 +15257,6 @@ const getTreasuryInboundTransfersId = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryInboundTransfersIdResponder = - (typeof getTreasuryInboundTransfersId)["responder"] & KoaRuntimeResponder - export type GetTreasuryInboundTransfersId = ( params: Params< t_GetTreasuryInboundTransfersIdParamSchema, @@ -17014,7 +15264,7 @@ export type GetTreasuryInboundTransfersId = ( t_GetTreasuryInboundTransfersIdBodySchema | undefined, void >, - respond: GetTreasuryInboundTransfersIdResponder, + respond: (typeof getTreasuryInboundTransfersId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17028,10 +15278,6 @@ const postTreasuryInboundTransfersInboundTransferCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryInboundTransfersInboundTransferCancelResponder = - (typeof postTreasuryInboundTransfersInboundTransferCancel)["responder"] & - KoaRuntimeResponder - export type PostTreasuryInboundTransfersInboundTransferCancel = ( params: Params< t_PostTreasuryInboundTransfersInboundTransferCancelParamSchema, @@ -17039,7 +15285,7 @@ export type PostTreasuryInboundTransfersInboundTransferCancel = ( t_PostTreasuryInboundTransfersInboundTransferCancelBodySchema | undefined, void >, - respond: PostTreasuryInboundTransfersInboundTransferCancelResponder, + respond: (typeof postTreasuryInboundTransfersInboundTransferCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17068,9 +15314,6 @@ const getTreasuryOutboundPayments = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryOutboundPaymentsResponder = - (typeof getTreasuryOutboundPayments)["responder"] & KoaRuntimeResponder - export type GetTreasuryOutboundPayments = ( params: Params< void, @@ -17078,7 +15321,7 @@ export type GetTreasuryOutboundPayments = ( t_GetTreasuryOutboundPaymentsBodySchema | undefined, void >, - respond: GetTreasuryOutboundPaymentsResponder, + respond: (typeof getTreasuryOutboundPayments)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17100,12 +15343,9 @@ const postTreasuryOutboundPayments = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryOutboundPaymentsResponder = - (typeof postTreasuryOutboundPayments)["responder"] & KoaRuntimeResponder - export type PostTreasuryOutboundPayments = ( params: Params, - respond: PostTreasuryOutboundPaymentsResponder, + respond: (typeof postTreasuryOutboundPayments)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17119,9 +15359,6 @@ const getTreasuryOutboundPaymentsId = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryOutboundPaymentsIdResponder = - (typeof getTreasuryOutboundPaymentsId)["responder"] & KoaRuntimeResponder - export type GetTreasuryOutboundPaymentsId = ( params: Params< t_GetTreasuryOutboundPaymentsIdParamSchema, @@ -17129,7 +15366,7 @@ export type GetTreasuryOutboundPaymentsId = ( t_GetTreasuryOutboundPaymentsIdBodySchema | undefined, void >, - respond: GetTreasuryOutboundPaymentsIdResponder, + respond: (typeof getTreasuryOutboundPaymentsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17143,10 +15380,6 @@ const postTreasuryOutboundPaymentsIdCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryOutboundPaymentsIdCancelResponder = - (typeof postTreasuryOutboundPaymentsIdCancel)["responder"] & - KoaRuntimeResponder - export type PostTreasuryOutboundPaymentsIdCancel = ( params: Params< t_PostTreasuryOutboundPaymentsIdCancelParamSchema, @@ -17154,7 +15387,7 @@ export type PostTreasuryOutboundPaymentsIdCancel = ( t_PostTreasuryOutboundPaymentsIdCancelBodySchema | undefined, void >, - respond: PostTreasuryOutboundPaymentsIdCancelResponder, + respond: (typeof postTreasuryOutboundPaymentsIdCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17180,9 +15413,6 @@ const getTreasuryOutboundTransfers = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryOutboundTransfersResponder = - (typeof getTreasuryOutboundTransfers)["responder"] & KoaRuntimeResponder - export type GetTreasuryOutboundTransfers = ( params: Params< void, @@ -17190,7 +15420,7 @@ export type GetTreasuryOutboundTransfers = ( t_GetTreasuryOutboundTransfersBodySchema | undefined, void >, - respond: GetTreasuryOutboundTransfersResponder, + respond: (typeof getTreasuryOutboundTransfers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17214,12 +15444,9 @@ const postTreasuryOutboundTransfers = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryOutboundTransfersResponder = - (typeof postTreasuryOutboundTransfers)["responder"] & KoaRuntimeResponder - export type PostTreasuryOutboundTransfers = ( params: Params, - respond: PostTreasuryOutboundTransfersResponder, + respond: (typeof postTreasuryOutboundTransfers)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17235,10 +15462,6 @@ const getTreasuryOutboundTransfersOutboundTransfer = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryOutboundTransfersOutboundTransferResponder = - (typeof getTreasuryOutboundTransfersOutboundTransfer)["responder"] & - KoaRuntimeResponder - export type GetTreasuryOutboundTransfersOutboundTransfer = ( params: Params< t_GetTreasuryOutboundTransfersOutboundTransferParamSchema, @@ -17246,7 +15469,7 @@ export type GetTreasuryOutboundTransfersOutboundTransfer = ( t_GetTreasuryOutboundTransfersOutboundTransferBodySchema | undefined, void >, - respond: GetTreasuryOutboundTransfersOutboundTransferResponder, + respond: (typeof getTreasuryOutboundTransfersOutboundTransfer)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17262,10 +15485,6 @@ const postTreasuryOutboundTransfersOutboundTransferCancel = b((r) => ({ withStatus: r.withStatus, })) -type PostTreasuryOutboundTransfersOutboundTransferCancelResponder = - (typeof postTreasuryOutboundTransfersOutboundTransferCancel)["responder"] & - KoaRuntimeResponder - export type PostTreasuryOutboundTransfersOutboundTransferCancel = ( params: Params< t_PostTreasuryOutboundTransfersOutboundTransferCancelParamSchema, @@ -17273,7 +15492,7 @@ export type PostTreasuryOutboundTransfersOutboundTransferCancel = ( t_PostTreasuryOutboundTransfersOutboundTransferCancelBodySchema | undefined, void >, - respond: PostTreasuryOutboundTransfersOutboundTransferCancelResponder, + respond: (typeof postTreasuryOutboundTransfersOutboundTransferCancel)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17299,9 +15518,6 @@ const getTreasuryReceivedCredits = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryReceivedCreditsResponder = - (typeof getTreasuryReceivedCredits)["responder"] & KoaRuntimeResponder - export type GetTreasuryReceivedCredits = ( params: Params< void, @@ -17309,7 +15525,7 @@ export type GetTreasuryReceivedCredits = ( t_GetTreasuryReceivedCreditsBodySchema | undefined, void >, - respond: GetTreasuryReceivedCreditsResponder, + respond: (typeof getTreasuryReceivedCredits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17331,9 +15547,6 @@ const getTreasuryReceivedCreditsId = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryReceivedCreditsIdResponder = - (typeof getTreasuryReceivedCreditsId)["responder"] & KoaRuntimeResponder - export type GetTreasuryReceivedCreditsId = ( params: Params< t_GetTreasuryReceivedCreditsIdParamSchema, @@ -17341,7 +15554,7 @@ export type GetTreasuryReceivedCreditsId = ( t_GetTreasuryReceivedCreditsIdBodySchema | undefined, void >, - respond: GetTreasuryReceivedCreditsIdResponder, + respond: (typeof getTreasuryReceivedCreditsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17367,9 +15580,6 @@ const getTreasuryReceivedDebits = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryReceivedDebitsResponder = - (typeof getTreasuryReceivedDebits)["responder"] & KoaRuntimeResponder - export type GetTreasuryReceivedDebits = ( params: Params< void, @@ -17377,7 +15587,7 @@ export type GetTreasuryReceivedDebits = ( t_GetTreasuryReceivedDebitsBodySchema | undefined, void >, - respond: GetTreasuryReceivedDebitsResponder, + respond: (typeof getTreasuryReceivedDebits)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17399,9 +15609,6 @@ const getTreasuryReceivedDebitsId = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryReceivedDebitsIdResponder = - (typeof getTreasuryReceivedDebitsId)["responder"] & KoaRuntimeResponder - export type GetTreasuryReceivedDebitsId = ( params: Params< t_GetTreasuryReceivedDebitsIdParamSchema, @@ -17409,7 +15616,7 @@ export type GetTreasuryReceivedDebitsId = ( t_GetTreasuryReceivedDebitsIdBodySchema | undefined, void >, - respond: GetTreasuryReceivedDebitsIdResponder, + respond: (typeof getTreasuryReceivedDebitsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17438,9 +15645,6 @@ const getTreasuryTransactionEntries = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryTransactionEntriesResponder = - (typeof getTreasuryTransactionEntries)["responder"] & KoaRuntimeResponder - export type GetTreasuryTransactionEntries = ( params: Params< void, @@ -17448,7 +15652,7 @@ export type GetTreasuryTransactionEntries = ( t_GetTreasuryTransactionEntriesBodySchema | undefined, void >, - respond: GetTreasuryTransactionEntriesResponder, + respond: (typeof getTreasuryTransactionEntries)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17472,9 +15676,6 @@ const getTreasuryTransactionEntriesId = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryTransactionEntriesIdResponder = - (typeof getTreasuryTransactionEntriesId)["responder"] & KoaRuntimeResponder - export type GetTreasuryTransactionEntriesId = ( params: Params< t_GetTreasuryTransactionEntriesIdParamSchema, @@ -17482,7 +15683,7 @@ export type GetTreasuryTransactionEntriesId = ( t_GetTreasuryTransactionEntriesIdBodySchema | undefined, void >, - respond: GetTreasuryTransactionEntriesIdResponder, + respond: (typeof getTreasuryTransactionEntriesId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17508,9 +15709,6 @@ const getTreasuryTransactions = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryTransactionsResponder = - (typeof getTreasuryTransactions)["responder"] & KoaRuntimeResponder - export type GetTreasuryTransactions = ( params: Params< void, @@ -17518,7 +15716,7 @@ export type GetTreasuryTransactions = ( t_GetTreasuryTransactionsBodySchema | undefined, void >, - respond: GetTreasuryTransactionsResponder, + respond: (typeof getTreasuryTransactions)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17540,9 +15738,6 @@ const getTreasuryTransactionsId = b((r) => ({ withStatus: r.withStatus, })) -type GetTreasuryTransactionsIdResponder = - (typeof getTreasuryTransactionsId)["responder"] & KoaRuntimeResponder - export type GetTreasuryTransactionsId = ( params: Params< t_GetTreasuryTransactionsIdParamSchema, @@ -17550,7 +15745,7 @@ export type GetTreasuryTransactionsId = ( t_GetTreasuryTransactionsIdBodySchema | undefined, void >, - respond: GetTreasuryTransactionsIdResponder, + respond: (typeof getTreasuryTransactionsId)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17576,9 +15771,6 @@ const getWebhookEndpoints = b((r) => ({ withStatus: r.withStatus, })) -type GetWebhookEndpointsResponder = (typeof getWebhookEndpoints)["responder"] & - KoaRuntimeResponder - export type GetWebhookEndpoints = ( params: Params< void, @@ -17586,7 +15778,7 @@ export type GetWebhookEndpoints = ( t_GetWebhookEndpointsBodySchema | undefined, void >, - respond: GetWebhookEndpointsResponder, + respond: (typeof getWebhookEndpoints)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17608,12 +15800,9 @@ const postWebhookEndpoints = b((r) => ({ withStatus: r.withStatus, })) -type PostWebhookEndpointsResponder = - (typeof postWebhookEndpoints)["responder"] & KoaRuntimeResponder - export type PostWebhookEndpoints = ( params: Params, - respond: PostWebhookEndpointsResponder, + respond: (typeof postWebhookEndpoints)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17627,10 +15816,6 @@ const deleteWebhookEndpointsWebhookEndpoint = b((r) => ({ withStatus: r.withStatus, })) -type DeleteWebhookEndpointsWebhookEndpointResponder = - (typeof deleteWebhookEndpointsWebhookEndpoint)["responder"] & - KoaRuntimeResponder - export type DeleteWebhookEndpointsWebhookEndpoint = ( params: Params< t_DeleteWebhookEndpointsWebhookEndpointParamSchema, @@ -17638,7 +15823,7 @@ export type DeleteWebhookEndpointsWebhookEndpoint = ( t_DeleteWebhookEndpointsWebhookEndpointBodySchema | undefined, void >, - respond: DeleteWebhookEndpointsWebhookEndpointResponder, + respond: (typeof deleteWebhookEndpointsWebhookEndpoint)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17652,9 +15837,6 @@ const getWebhookEndpointsWebhookEndpoint = b((r) => ({ withStatus: r.withStatus, })) -type GetWebhookEndpointsWebhookEndpointResponder = - (typeof getWebhookEndpointsWebhookEndpoint)["responder"] & KoaRuntimeResponder - export type GetWebhookEndpointsWebhookEndpoint = ( params: Params< t_GetWebhookEndpointsWebhookEndpointParamSchema, @@ -17662,7 +15844,7 @@ export type GetWebhookEndpointsWebhookEndpoint = ( t_GetWebhookEndpointsWebhookEndpointBodySchema | undefined, void >, - respond: GetWebhookEndpointsWebhookEndpointResponder, + respond: (typeof getWebhookEndpointsWebhookEndpoint)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -17676,10 +15858,6 @@ const postWebhookEndpointsWebhookEndpoint = b((r) => ({ withStatus: r.withStatus, })) -type PostWebhookEndpointsWebhookEndpointResponder = - (typeof postWebhookEndpointsWebhookEndpoint)["responder"] & - KoaRuntimeResponder - export type PostWebhookEndpointsWebhookEndpoint = ( params: Params< t_PostWebhookEndpointsWebhookEndpointParamSchema, @@ -17687,7 +15865,7 @@ export type PostWebhookEndpointsWebhookEndpoint = ( t_PostWebhookEndpointsWebhookEndpointBodySchema | undefined, void >, - respond: PostWebhookEndpointsWebhookEndpointResponder, + respond: (typeof postWebhookEndpointsWebhookEndpoint)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse diff --git a/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts b/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts index 23815890a..c4ec8c542 100644 --- a/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts +++ b/integration-tests/typescript-koa/src/generated/todo-lists.yaml/generated.ts @@ -29,7 +29,6 @@ import { RequestInputType, } from "@nahkies/typescript-koa-runtime/errors" import { - KoaRuntimeResponder, KoaRuntimeResponse, Params, Response, @@ -48,12 +47,9 @@ const getTodoLists = b((r) => ({ withStatus: r.withStatus, })) -type GetTodoListsResponder = (typeof getTodoLists)["responder"] & - KoaRuntimeResponder - export type GetTodoLists = ( params: Params, - respond: GetTodoListsResponder, + respond: (typeof getTodoLists)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_TodoList[]>> @@ -64,12 +60,9 @@ const getTodoListById = b((r) => ({ withStatus: r.withStatus, })) -type GetTodoListByIdResponder = (typeof getTodoListById)["responder"] & - KoaRuntimeResponder - export type GetTodoListById = ( params: Params, - respond: GetTodoListByIdResponder, + respond: (typeof getTodoListById)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -85,9 +78,6 @@ const updateTodoListById = b((r) => ({ withStatus: r.withStatus, })) -type UpdateTodoListByIdResponder = (typeof updateTodoListById)["responder"] & - KoaRuntimeResponder - export type UpdateTodoListById = ( params: Params< t_UpdateTodoListByIdParamSchema, @@ -95,7 +85,7 @@ export type UpdateTodoListById = ( t_UpdateTodoListByIdBodySchema, void >, - respond: UpdateTodoListByIdResponder, + respond: (typeof updateTodoListById)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -111,12 +101,9 @@ const deleteTodoListById = b((r) => ({ withStatus: r.withStatus, })) -type DeleteTodoListByIdResponder = (typeof deleteTodoListById)["responder"] & - KoaRuntimeResponder - export type DeleteTodoListById = ( params: Params, - respond: DeleteTodoListByIdResponder, + respond: (typeof deleteTodoListById)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -146,12 +133,9 @@ const getTodoListItems = b((r) => ({ withStatus: r.withStatus, })) -type GetTodoListItemsResponder = (typeof getTodoListItems)["responder"] & - KoaRuntimeResponder - export type GetTodoListItems = ( params: Params, - respond: GetTodoListItemsResponder, + respond: (typeof getTodoListItems)["responder"], ctx: RouterContext, ) => Promise< | KoaRuntimeResponse @@ -178,9 +162,6 @@ const createTodoListItem = b((r) => ({ withStatus: r.withStatus, })) -type CreateTodoListItemResponder = (typeof createTodoListItem)["responder"] & - KoaRuntimeResponder - export type CreateTodoListItem = ( params: Params< t_CreateTodoListItemParamSchema, @@ -188,7 +169,7 @@ export type CreateTodoListItem = ( t_CreateTodoListItemBodySchema, void >, - respond: CreateTodoListItemResponder, + respond: (typeof createTodoListItem)["responder"], ctx: RouterContext, ) => Promise | Response<204, void>> @@ -197,12 +178,9 @@ const listAttachments = b((r) => ({ withStatus: r.withStatus, })) -type ListAttachmentsResponder = (typeof listAttachments)["responder"] & - KoaRuntimeResponder - export type ListAttachments = ( params: Params, - respond: ListAttachmentsResponder, + respond: (typeof listAttachments)["responder"], ctx: RouterContext, ) => Promise | Response<200, t_UnknownObject[]>> @@ -211,12 +189,9 @@ const uploadAttachment = b((r) => ({ withStatus: r.withStatus, })) -type UploadAttachmentResponder = (typeof uploadAttachment)["responder"] & - KoaRuntimeResponder - export type UploadAttachment = ( params: Params, - respond: UploadAttachmentResponder, + respond: (typeof uploadAttachment)["responder"], ctx: RouterContext, ) => Promise | Response<202, void>>