initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
30
github/codeql-action-v2/node_modules/twirp-ts/build/protoc-gen-twirp-ts/gen/gateway.d.ts
generated
vendored
Normal file
30
github/codeql-action-v2/node_modules/twirp-ts/build/protoc-gen-twirp-ts/gen/gateway.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { FileDescriptorProto } from "@protobuf-ts/plugin-framework";
|
||||
import { MatchFunction } from "path-to-regexp";
|
||||
export declare enum Pattern {
|
||||
POST = "post",
|
||||
GET = "get",
|
||||
PATCH = "patch",
|
||||
PUT = "put",
|
||||
DELETE = "delete"
|
||||
}
|
||||
export interface HttpRoute {
|
||||
serviceName: string;
|
||||
methodName: string;
|
||||
packageName: string;
|
||||
matchingPath: string;
|
||||
matcher: MatchFunction;
|
||||
httpMethod: Pattern;
|
||||
bodyKey?: string;
|
||||
responseBodyKey?: string;
|
||||
additionalBindings?: HttpRoute;
|
||||
}
|
||||
export declare type HttpRulePattern = {
|
||||
[key in Pattern]: string;
|
||||
};
|
||||
export interface HttpOption extends HttpRulePattern {
|
||||
body: string;
|
||||
responseBody: string;
|
||||
additional_bindings: HttpOption;
|
||||
}
|
||||
export declare function genGateway(ctx: any, files: readonly FileDescriptorProto[]): Promise<string>;
|
||||
export declare function getMethod(httpSpec: HttpOption): Pattern;
|
||||
Loading…
Add table
Add a link
Reference in a new issue