From d072300bc8707f82480555f7b72c402afd6a61e6 Mon Sep 17 00:00:00 2001 From: "Vojtech Vitek (golang.cz)" Date: Tue, 10 Dec 2024 15:26:39 +0100 Subject: [PATCH] Update to webrpc@v0.22.1 (#32) --- proto/authcontrol.gen.go | 6 +++--- proto/authcontrol.gen.ts | 46 ++++++++++++++++++++-------------------- proto/proto.go | 4 ++-- tools/go.mod | 4 ++-- tools/go.sum | 8 +++---- 5 files changed, 34 insertions(+), 34 deletions(-) diff --git a/proto/authcontrol.gen.go b/proto/authcontrol.gen.go index 8ac7be7..fedf599 100644 --- a/proto/authcontrol.gen.go +++ b/proto/authcontrol.gen.go @@ -1,8 +1,8 @@ // authcontrol v0.9.1 809804f85757ee407e93c191d6d5bfb75b82cb56 // -- -// Code generated by webrpc-gen@v0.22.0 with golang@v0.17.0 generator. DO NOT EDIT. +// Code generated by webrpc-gen@v0.22.1 with golang generator. DO NOT EDIT. // -// webrpc-gen -schema=authcontrol.ridl -target=golang@v0.17.0 -pkg=proto -client -out=./authcontrol.gen.go +// webrpc-gen -schema=authcontrol.ridl -target=golang -pkg=proto -client -out=./authcontrol.gen.go package proto import ( @@ -15,7 +15,7 @@ import ( const WebrpcHeader = "Webrpc" -const WebrpcHeaderValue = "webrpc@v0.22.0;gen-golang@v0.17.0;authcontrol@v0.9.1" +const WebrpcHeaderValue = "webrpc@v0.22.1;gen-golang@v0.17.0;authcontrol@v0.9.1" // WebRPC description and code-gen version func WebRPCVersion() string { diff --git a/proto/authcontrol.gen.ts b/proto/authcontrol.gen.ts index 5d6ac73..8e14b4e 100644 --- a/proto/authcontrol.gen.ts +++ b/proto/authcontrol.gen.ts @@ -1,13 +1,13 @@ /* eslint-disable */ // authcontrol v0.9.1 809804f85757ee407e93c191d6d5bfb75b82cb56 // -- -// Code generated by webrpc-gen@v0.22.0 with typescript@v0.16.1 generator. DO NOT EDIT. +// Code generated by webrpc-gen@v0.22.1 with typescript generator. DO NOT EDIT. // -// webrpc-gen -schema=authcontrol.ridl -target=typescript@v0.16.1 -client -out=./authcontrol.gen.ts +// webrpc-gen -schema=authcontrol.ridl -target=typescript -client -out=./authcontrol.gen.ts export const WebrpcHeader = "Webrpc" -export const WebrpcHeaderValue = "webrpc@v0.22.0;gen-typescript@v0.16.1;authcontrol@v0.9.1" +export const WebrpcHeaderValue = "webrpc@v0.22.1;gen-typescript@v0.16.2;authcontrol@v0.9.1" // WebRPC description and code-gen version export const WebRPCVersion = "v1" @@ -154,7 +154,7 @@ export class WebrpcEndpointError extends WebrpcError { constructor( name: string = 'WebrpcEndpoint', code: number = 0, - message: string = 'endpoint error', + message: string = `endpoint error`, status: number = 0, cause?: string ) { @@ -167,7 +167,7 @@ export class WebrpcRequestFailedError extends WebrpcError { constructor( name: string = 'WebrpcRequestFailed', code: number = -1, - message: string = 'request failed', + message: string = `request failed`, status: number = 0, cause?: string ) { @@ -180,7 +180,7 @@ export class WebrpcBadRouteError extends WebrpcError { constructor( name: string = 'WebrpcBadRoute', code: number = -2, - message: string = 'bad route', + message: string = `bad route`, status: number = 0, cause?: string ) { @@ -193,7 +193,7 @@ export class WebrpcBadMethodError extends WebrpcError { constructor( name: string = 'WebrpcBadMethod', code: number = -3, - message: string = 'bad method', + message: string = `bad method`, status: number = 0, cause?: string ) { @@ -206,7 +206,7 @@ export class WebrpcBadRequestError extends WebrpcError { constructor( name: string = 'WebrpcBadRequest', code: number = -4, - message: string = 'bad request', + message: string = `bad request`, status: number = 0, cause?: string ) { @@ -219,7 +219,7 @@ export class WebrpcBadResponseError extends WebrpcError { constructor( name: string = 'WebrpcBadResponse', code: number = -5, - message: string = 'bad response', + message: string = `bad response`, status: number = 0, cause?: string ) { @@ -232,7 +232,7 @@ export class WebrpcServerPanicError extends WebrpcError { constructor( name: string = 'WebrpcServerPanic', code: number = -6, - message: string = 'server panic', + message: string = `server panic`, status: number = 0, cause?: string ) { @@ -245,7 +245,7 @@ export class WebrpcInternalErrorError extends WebrpcError { constructor( name: string = 'WebrpcInternalError', code: number = -7, - message: string = 'internal error', + message: string = `internal error`, status: number = 0, cause?: string ) { @@ -258,7 +258,7 @@ export class WebrpcClientDisconnectedError extends WebrpcError { constructor( name: string = 'WebrpcClientDisconnected', code: number = -8, - message: string = 'client disconnected', + message: string = `client disconnected`, status: number = 0, cause?: string ) { @@ -271,7 +271,7 @@ export class WebrpcStreamLostError extends WebrpcError { constructor( name: string = 'WebrpcStreamLost', code: number = -9, - message: string = 'stream lost', + message: string = `stream lost`, status: number = 0, cause?: string ) { @@ -284,7 +284,7 @@ export class WebrpcStreamFinishedError extends WebrpcError { constructor( name: string = 'WebrpcStreamFinished', code: number = -10, - message: string = 'stream finished', + message: string = `stream finished`, status: number = 0, cause?: string ) { @@ -300,7 +300,7 @@ export class UnauthorizedError extends WebrpcError { constructor( name: string = 'Unauthorized', code: number = 1000, - message: string = 'Unauthorized access', + message: string = `Unauthorized access`, status: number = 0, cause?: string ) { @@ -313,7 +313,7 @@ export class PermissionDeniedError extends WebrpcError { constructor( name: string = 'PermissionDenied', code: number = 1001, - message: string = 'Permission denied', + message: string = `Permission denied`, status: number = 0, cause?: string ) { @@ -326,7 +326,7 @@ export class SessionExpiredError extends WebrpcError { constructor( name: string = 'SessionExpired', code: number = 1002, - message: string = 'Session expired', + message: string = `Session expired`, status: number = 0, cause?: string ) { @@ -339,7 +339,7 @@ export class MethodNotFoundError extends WebrpcError { constructor( name: string = 'MethodNotFound', code: number = 1003, - message: string = 'Method not found', + message: string = `Method not found`, status: number = 0, cause?: string ) { @@ -352,7 +352,7 @@ export class RequestConflictError extends WebrpcError { constructor( name: string = 'RequestConflict', code: number = 1004, - message: string = 'Conflict with target resource', + message: string = `Conflict with target resource`, status: number = 0, cause?: string ) { @@ -365,7 +365,7 @@ export class AbortedError extends WebrpcError { constructor( name: string = 'Aborted', code: number = 1005, - message: string = 'Request aborted', + message: string = `Request aborted`, status: number = 0, cause?: string ) { @@ -378,7 +378,7 @@ export class GeoblockedError extends WebrpcError { constructor( name: string = 'Geoblocked', code: number = 1006, - message: string = 'Geoblocked region', + message: string = `Geoblocked region`, status: number = 0, cause?: string ) { @@ -391,7 +391,7 @@ export class RateLimitedError extends WebrpcError { constructor( name: string = 'RateLimited', code: number = 1007, - message: string = 'Rate-limited. Please slow down.', + message: string = `Rate-limited. Please slow down.`, status: number = 0, cause?: string ) { @@ -404,7 +404,7 @@ export class ProjectNotFoundError extends WebrpcError { constructor( name: string = 'ProjectNotFound', code: number = 1008, - message: string = 'Project not found', + message: string = `Project not found`, status: number = 0, cause?: string ) { diff --git a/proto/proto.go b/proto/proto.go index 8438526..abea749 100644 --- a/proto/proto.go +++ b/proto/proto.go @@ -1,5 +1,5 @@ -//go:generate go run github.com/webrpc/webrpc/cmd/webrpc-gen -schema=authcontrol.ridl -target=golang@v0.17.0 -pkg=proto -client -out=./authcontrol.gen.go -//go:generate go run github.com/webrpc/webrpc/cmd/webrpc-gen -schema=authcontrol.ridl -target=typescript@v0.16.1 -client -out=./authcontrol.gen.ts +//go:generate go run github.com/webrpc/webrpc/cmd/webrpc-gen -schema=authcontrol.ridl -target=golang -pkg=proto -client -out=./authcontrol.gen.go +//go:generate go run github.com/webrpc/webrpc/cmd/webrpc-gen -schema=authcontrol.ridl -target=typescript -client -out=./authcontrol.gen.ts package proto const SessionType_Max SessionType = SessionType_InternalService + 1 diff --git a/tools/go.mod b/tools/go.mod index 81934ec..4acae69 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/goware/rerun v0.0.9 - github.com/webrpc/webrpc v0.22.0 + github.com/webrpc/webrpc v0.22.1 ) require ( @@ -49,7 +49,7 @@ require ( github.com/webrpc/gen-javascript v0.13.0 // indirect github.com/webrpc/gen-kotlin v0.1.0 // indirect github.com/webrpc/gen-openapi v0.15.0 // indirect - github.com/webrpc/gen-typescript v0.16.1 // indirect + github.com/webrpc/gen-typescript v0.16.2 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect golang.org/x/crypto v0.28.0 // indirect golang.org/x/mod v0.20.0 // indirect diff --git a/tools/go.sum b/tools/go.sum index 5ca1403..6e8627f 100644 --- a/tools/go.sum +++ b/tools/go.sum @@ -214,10 +214,10 @@ github.com/webrpc/gen-kotlin v0.1.0 h1:tnlinqbDgowEoSy8E3VovTdP2OjyOIbgACCbahRjN github.com/webrpc/gen-kotlin v0.1.0/go.mod h1:PIPys9Gn1Ro7q7uoacydEX8CtqBlAJSV98A++tdj4ak= github.com/webrpc/gen-openapi v0.15.0 h1:RrHAcDTlm0YH+YCz12p0KLCYIwfHrxf4x6/LjJ6kePY= github.com/webrpc/gen-openapi v0.15.0/go.mod h1:fwY3ylZmdiCr+WXjR8Ek8wm08CFRr2/GaXI7Zd/Ou4Y= -github.com/webrpc/gen-typescript v0.16.1 h1:4t9YNGROOV2ZL0UyB5wjWMpJklXDDNEj8eg05+8BF5Y= -github.com/webrpc/gen-typescript v0.16.1/go.mod h1:xQzYnVaSMfcygDXA5SuW8eYyCLHBHkj15wCF7gcJF5Y= -github.com/webrpc/webrpc v0.22.0 h1:DkpXYA9p7em+Oqn76+VZrQJkrlbMEO8vBPpcjQ+lGvo= -github.com/webrpc/webrpc v0.22.0/go.mod h1:eeABnLz9BC4F9GGw6UKebVPkzkFYLrZRlcOvh6o8n10= +github.com/webrpc/gen-typescript v0.16.2 h1:SfQ/S6S2/N855g6iqjWOkjNrVrV/Abm2bgXQj4zaYL0= +github.com/webrpc/gen-typescript v0.16.2/go.mod h1:xQzYnVaSMfcygDXA5SuW8eYyCLHBHkj15wCF7gcJF5Y= +github.com/webrpc/webrpc v0.22.1 h1:9zzo1YUzf8NuBo3Vq6u4bHUuaccEemleIDezqXSl2vU= +github.com/webrpc/webrpc v0.22.1/go.mod h1:wZyWn1SswtXEABcSy7P8MeY88fIJA6KoondfHpZ5z8Q= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=