-
Notifications
You must be signed in to change notification settings - Fork 3
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
5432f2e
commit d5cc2f7
Showing
4 changed files
with
43 additions
and
25 deletions.
There are no files selected for viewing
File renamed without changes.
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,5 +1,5 @@ | ||
/* eslint-disable */ | ||
// quota-control v0.19.2 09f1fbfa25b6f946a0158c6e92a2044bdbe0845c | ||
// quota-control v0.19.2 906ffd4bfef795875b325957bdc54bc44e0ea5ed | ||
// -- | ||
// Code generated by [email protected] with [email protected] generator. DO NOT EDIT. | ||
// | ||
|
@@ -16,7 +16,7 @@ export const WebRPCVersion = "v1" | |
export const WebRPCSchemaVersion = "v0.19.2" | ||
|
||
// Schema hash generated from your RIDL schema | ||
export const WebRPCSchemaHash = "09f1fbfa25b6f946a0158c6e92a2044bdbe0845c" | ||
export const WebRPCSchemaHash = "906ffd4bfef795875b325957bdc54bc44e0ea5ed" | ||
|
||
type WebrpcGenVersions = { | ||
webrpcGenVersion: string; | ||
|
@@ -1030,6 +1030,19 @@ export class ProjectNotFoundError extends WebrpcError { | |
} | ||
} | ||
|
||
export class SecretKeyCorsDisallowedError extends WebrpcError { | ||
constructor( | ||
name: string = 'SecretKeyCorsDisallowed', | ||
code: number = 1009, | ||
message: string = 'CORS disallowed. Admin API Secret Key can't be used from a web app.', | ||
status: number = 0, | ||
cause?: string | ||
) { | ||
super(name, code, message, status, cause) | ||
Object.setPrototypeOf(this, SecretKeyCorsDisallowedError.prototype) | ||
} | ||
} | ||
|
||
export class AccessKeyNotFoundError extends WebrpcError { | ||
constructor( | ||
name: string = 'AccessKeyNotFound', | ||
|
@@ -1195,6 +1208,7 @@ export enum errors { | |
Geoblocked = 'Geoblocked', | ||
RateLimited = 'RateLimited', | ||
ProjectNotFound = 'ProjectNotFound', | ||
SecretKeyCorsDisallowed = 'SecretKeyCorsDisallowed', | ||
AccessKeyNotFound = 'AccessKeyNotFound', | ||
AccessKeyMismatch = 'AccessKeyMismatch', | ||
InvalidOrigin = 'InvalidOrigin', | ||
|
@@ -1229,6 +1243,7 @@ export enum WebrpcErrorCodes { | |
Geoblocked = 1006, | ||
RateLimited = 1007, | ||
ProjectNotFound = 1008, | ||
SecretKeyCorsDisallowed = 1009, | ||
AccessKeyNotFound = 1101, | ||
AccessKeyMismatch = 1102, | ||
InvalidOrigin = 1103, | ||
|
@@ -1263,6 +1278,7 @@ export const webrpcErrorByCode: { [code: number]: any } = { | |
[1006]: GeoblockedError, | ||
[1007]: RateLimitedError, | ||
[1008]: ProjectNotFoundError, | ||
[1009]: SecretKeyCorsDisallowedError, | ||
[1101]: AccessKeyNotFoundError, | ||
[1102]: AccessKeyMismatchError, | ||
[1103]: InvalidOriginError, | ||
|
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