Skip to content

Commit

Permalink
Update to [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Dec 10, 2024
1 parent 3a60b41 commit 025d826
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions proto/authcontrol.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions proto/authcontrol.gen.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* eslint-disable */
// authcontrol v0.9.1 809804f85757ee407e93c191d6d5bfb75b82cb56
// --
// Code generated by [email protected].0 with typescript@v0.16.1 generator. DO NOT EDIT.
// Code generated by [email protected].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 = "[email protected].0;[email protected].1;[email protected]"
export const WebrpcHeaderValue = "[email protected].1;[email protected].2;[email protected]"

// WebRPC description and code-gen version
export const WebRPCVersion = "v1"
Expand Down Expand Up @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand All @@ -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
) {
Expand Down
4 changes: 2 additions & 2 deletions proto/proto.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tools/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 025d826

Please sign in to comment.