-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a60b41
commit 025d826
Showing
5 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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 | ||
) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters