client manager complete, client and client channels next
This commit is contained in:
21
node_modules/@types/cors/LICENSE
generated
vendored
Normal file
21
node_modules/@types/cors/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
16
node_modules/@types/cors/README.md
generated
vendored
Normal file
16
node_modules/@types/cors/README.md
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
# Installation
|
||||
> `npm install --save @types/cors`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for cors (https://github.com/troygoode/node-cors/).
|
||||
|
||||
# Details
|
||||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cors
|
||||
|
||||
Additional Details
|
||||
* Last updated: Mon, 23 Apr 2018 15:06:47 GMT
|
||||
* Dependencies: express
|
||||
* Global values: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by Alan Plum <https://github.com/pluma>.
|
34
node_modules/@types/cors/index.d.ts
generated
vendored
Normal file
34
node_modules/@types/cors/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
// Type definitions for cors 2.8
|
||||
// Project: https://github.com/troygoode/node-cors/
|
||||
// Definitions by: Alan Plum <https://github.com/pluma>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import express = require('express');
|
||||
|
||||
type CustomOrigin = (
|
||||
requestOrigin: string,
|
||||
callback: (err: Error | null, allow?: boolean) => void
|
||||
) => void;
|
||||
|
||||
declare namespace e {
|
||||
interface CorsOptions {
|
||||
origin?: boolean | string | RegExp | (string | RegExp)[] | CustomOrigin;
|
||||
methods?: string | string[];
|
||||
allowedHeaders?: string | string[];
|
||||
exposedHeaders?: string | string[];
|
||||
credentials?: boolean;
|
||||
maxAge?: number;
|
||||
preflightContinue?: boolean;
|
||||
optionsSuccessStatus?: number;
|
||||
}
|
||||
type CorsOptionsDelegate = (
|
||||
req: express.Request,
|
||||
callback: (err: Error | null, options?: CorsOptions) => void
|
||||
) => void;
|
||||
}
|
||||
|
||||
declare function e(
|
||||
options?: e.CorsOptions | e.CorsOptionsDelegate
|
||||
): express.RequestHandler;
|
||||
export = e;
|
54
node_modules/@types/cors/package.json
generated
vendored
Normal file
54
node_modules/@types/cors/package.json
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
"_from": "@types/cors",
|
||||
"_id": "@types/cors@2.8.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ipZjBVsm2tF/n8qFGOuGBkUij9X9ZswVi9G3bx/6dz7POpVa6gVHcj1wsX/LVEn9MMF41fxK/PnZPPoTD1UFPw==",
|
||||
"_location": "/@types/cors",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"registry": true,
|
||||
"raw": "@types/cors",
|
||||
"name": "@types/cors",
|
||||
"escapedName": "@types%2fcors",
|
||||
"scope": "@types",
|
||||
"rawSpec": "",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#DEV:/",
|
||||
"#USER"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.4.tgz",
|
||||
"_shasum": "50991a759a29c0b89492751008c6af7a7c8267b0",
|
||||
"_spec": "@types/cors",
|
||||
"_where": "/Users/josh.burman/Projects/braid",
|
||||
"bugs": {
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Alan Plum",
|
||||
"url": "https://github.com/pluma"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"@types/express": "*"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "TypeScript definitions for cors",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
|
||||
"license": "MIT",
|
||||
"main": "",
|
||||
"name": "@types/cors",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
||||
},
|
||||
"scripts": {},
|
||||
"typeScriptVersion": "2.2",
|
||||
"typesPublisherContentHash": "c206254f8940d61a0375ce4f7a7d68e0ebf14d7b49b8abefec6375a8955615f7",
|
||||
"version": "2.8.4"
|
||||
}
|
21
node_modules/@types/jsonwebtoken/LICENSE
generated
vendored
Normal file
21
node_modules/@types/jsonwebtoken/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
16
node_modules/@types/jsonwebtoken/README.md
generated
vendored
Normal file
16
node_modules/@types/jsonwebtoken/README.md
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
# Installation
|
||||
> `npm install --save @types/jsonwebtoken`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for jsonwebtoken (https://github.com/auth0/node-jsonwebtoken).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonwebtoken
|
||||
|
||||
Additional Details
|
||||
* Last updated: Thu, 01 Nov 2018 23:52:59 GMT
|
||||
* Dependencies: node
|
||||
* Global values: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by Maxime LUCE <https://github.com/SomaticIT>, Daniel Heim <https://github.com/danielheim>, Brice BERNARD <https://github.com/brikou>, Veli-Pekka Kestilä <https://github.com/vpk>, Daniel Parker <https://github.com/rlgod>.
|
187
node_modules/@types/jsonwebtoken/index.d.ts
generated
vendored
Normal file
187
node_modules/@types/jsonwebtoken/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,187 @@
|
||||
// Type definitions for jsonwebtoken 8.3
|
||||
// Project: https://github.com/auth0/node-jsonwebtoken
|
||||
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>,
|
||||
// Daniel Heim <https://github.com/danielheim>,
|
||||
// Brice BERNARD <https://github.com/brikou>,
|
||||
// Veli-Pekka Kestilä <https://github.com/vpk>,
|
||||
// Daniel Parker <https://github.com/rlgod>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
export class JsonWebTokenError extends Error {
|
||||
inner: Error;
|
||||
|
||||
constructor(message: string, error?: Error);
|
||||
}
|
||||
|
||||
export class TokenExpiredError extends JsonWebTokenError {
|
||||
expiredAt: number;
|
||||
|
||||
constructor(message: string, expiredAt: number);
|
||||
}
|
||||
|
||||
export class NotBeforeError extends JsonWebTokenError {
|
||||
date: Date;
|
||||
|
||||
constructor(message: string, date: Date);
|
||||
}
|
||||
|
||||
export interface SignOptions {
|
||||
/**
|
||||
* Signature algorithm. Could be one of these values :
|
||||
* - HS256: HMAC using SHA-256 hash algorithm (default)
|
||||
* - HS384: HMAC using SHA-384 hash algorithm
|
||||
* - HS512: HMAC using SHA-512 hash algorithm
|
||||
* - RS256: RSASSA using SHA-256 hash algorithm
|
||||
* - RS384: RSASSA using SHA-384 hash algorithm
|
||||
* - RS512: RSASSA using SHA-512 hash algorithm
|
||||
* - ES256: ECDSA using P-256 curve and SHA-256 hash algorithm
|
||||
* - ES384: ECDSA using P-384 curve and SHA-384 hash algorithm
|
||||
* - ES512: ECDSA using P-521 curve and SHA-512 hash algorithm
|
||||
* - none: No digital signature or MAC value included
|
||||
*/
|
||||
algorithm?: string;
|
||||
keyid?: string;
|
||||
/** expressed in seconds or a string describing a time span [zeit/ms](https://github.com/zeit/ms.js). Eg: 60, "2 days", "10h", "7d" */
|
||||
expiresIn?: string | number;
|
||||
/** expressed in seconds or a string describing a time span [zeit/ms](https://github.com/zeit/ms.js). Eg: 60, "2 days", "10h", "7d" */
|
||||
notBefore?: string | number;
|
||||
audience?: string | string[];
|
||||
subject?: string;
|
||||
issuer?: string;
|
||||
jwtid?: string;
|
||||
noTimestamp?: boolean;
|
||||
header?: object;
|
||||
encoding?: string;
|
||||
}
|
||||
|
||||
export interface VerifyOptions {
|
||||
algorithms?: string[];
|
||||
audience?: string | string[];
|
||||
clockTimestamp?: number;
|
||||
clockTolerance?: number;
|
||||
issuer?: string | string[];
|
||||
ignoreExpiration?: boolean;
|
||||
ignoreNotBefore?: boolean;
|
||||
jwtid?: string;
|
||||
subject?: string;
|
||||
/**
|
||||
* @deprecated
|
||||
* Max age of token
|
||||
*/
|
||||
maxAge?: string;
|
||||
}
|
||||
|
||||
export interface DecodeOptions {
|
||||
complete?: boolean;
|
||||
json?: boolean;
|
||||
}
|
||||
export type VerifyErrors= JsonWebTokenError | NotBeforeError | TokenExpiredError;
|
||||
export type VerifyCallback = (
|
||||
err: VerifyErrors,
|
||||
decoded: object | string,
|
||||
) => void;
|
||||
|
||||
export type SignCallback = (
|
||||
err: Error, encoded: string
|
||||
) => void;
|
||||
|
||||
export interface JwtHeader {
|
||||
alg: string;
|
||||
typ?: string;
|
||||
kid?: string;
|
||||
jku?: string;
|
||||
x5u?: string;
|
||||
x5t?: string;
|
||||
}
|
||||
|
||||
export type SigningKeyCallback = (
|
||||
err: any,
|
||||
signingKey?: Secret,
|
||||
) => void;
|
||||
|
||||
export type GetPublicKeyOrSecret = (
|
||||
header: JwtHeader,
|
||||
callback: SigningKeyCallback
|
||||
) => void;
|
||||
|
||||
export type Secret = string | Buffer | { key: string; passphrase: string };
|
||||
|
||||
/**
|
||||
* Synchronously sign the given payload into a JSON Web Token string
|
||||
* payload - Payload to sign, could be an literal, buffer or string
|
||||
* secretOrPrivateKey - Either the secret for HMAC algorithms, or the PEM encoded private key for RSA and ECDSA.
|
||||
* [options] - Options for the signature
|
||||
* returns - The JSON Web Token string
|
||||
*/
|
||||
export function sign(
|
||||
payload: string | Buffer | object,
|
||||
secretOrPrivateKey: Secret,
|
||||
options?: SignOptions,
|
||||
): string;
|
||||
|
||||
/**
|
||||
* Sign the given payload into a JSON Web Token string
|
||||
* payload - Payload to sign, could be an literal, buffer or string
|
||||
* secretOrPrivateKey - Either the secret for HMAC algorithms, or the PEM encoded private key for RSA and ECDSA.
|
||||
* [options] - Options for the signature
|
||||
* callback - Callback to get the encoded token on
|
||||
*/
|
||||
export function sign(
|
||||
payload: string | Buffer | object,
|
||||
secretOrPrivateKey: Secret,
|
||||
callback: SignCallback,
|
||||
): void;
|
||||
export function sign(
|
||||
payload: string | Buffer | object,
|
||||
secretOrPrivateKey: Secret,
|
||||
options: SignOptions,
|
||||
callback: SignCallback,
|
||||
): void;
|
||||
|
||||
/**
|
||||
* Synchronously verify given token using a secret or a public key to get a decoded token
|
||||
* token - JWT string to verify
|
||||
* secretOrPublicKey - Either the secret for HMAC algorithms, or the PEM encoded public key for RSA and ECDSA.
|
||||
* [options] - Options for the verification
|
||||
* returns - The decoded token.
|
||||
*/
|
||||
export function verify(
|
||||
token: string,
|
||||
secretOrPublicKey: string | Buffer,
|
||||
options?: VerifyOptions,
|
||||
): object | string;
|
||||
|
||||
/**
|
||||
* Asynchronously verify given token using a secret or a public key to get a decoded token
|
||||
* token - JWT string to verify
|
||||
* secretOrPublicKey - A string or buffer containing either the secret for HMAC algorithms,
|
||||
* or the PEM encoded public key for RSA and ECDSA. If jwt.verify is called asynchronous,
|
||||
* secretOrPublicKey can be a function that should fetch the secret or public key
|
||||
* [options] - Options for the verification
|
||||
* callback - Callback to get the decoded token on
|
||||
*/
|
||||
export function verify(
|
||||
token: string,
|
||||
secretOrPublicKey: string | Buffer | GetPublicKeyOrSecret,
|
||||
callback?: VerifyCallback,
|
||||
): void;
|
||||
export function verify(
|
||||
token: string,
|
||||
secretOrPublicKey: string | Buffer | GetPublicKeyOrSecret,
|
||||
options?: VerifyOptions,
|
||||
callback?: VerifyCallback,
|
||||
): void;
|
||||
|
||||
/**
|
||||
* Returns the decoded payload without verifying if the signature is valid.
|
||||
* token - JWT string to decode
|
||||
* [options] - Options for decoding
|
||||
* returns - The decoded Token
|
||||
*/
|
||||
export function decode(
|
||||
token: string,
|
||||
options?: DecodeOptions,
|
||||
): null | { [key: string]: any } | string;
|
71
node_modules/@types/jsonwebtoken/package.json
generated
vendored
Normal file
71
node_modules/@types/jsonwebtoken/package.json
generated
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"_from": "@types/jsonwebtoken",
|
||||
"_id": "@types/jsonwebtoken@8.3.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-YKnUTR4VxwljbPORPrRon9E3uel1aD8nUdvzqArCCdMTWPvo0gnI2UZkwIHN2QATdj6HYXV/Iq3/KcecAO42Ww==",
|
||||
"_location": "/@types/jsonwebtoken",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"registry": true,
|
||||
"raw": "@types/jsonwebtoken",
|
||||
"name": "@types/jsonwebtoken",
|
||||
"escapedName": "@types%2fjsonwebtoken",
|
||||
"scope": "@types",
|
||||
"rawSpec": "",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#DEV:/",
|
||||
"#USER"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.3.0.tgz",
|
||||
"_shasum": "1fe79489df97b49273401ac3c8019cbf1dae4578",
|
||||
"_spec": "@types/jsonwebtoken",
|
||||
"_where": "/Users/josh.burman/Projects/braid",
|
||||
"bugs": {
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Maxime LUCE",
|
||||
"url": "https://github.com/SomaticIT"
|
||||
},
|
||||
{
|
||||
"name": "Daniel Heim",
|
||||
"url": "https://github.com/danielheim"
|
||||
},
|
||||
{
|
||||
"name": "Brice BERNARD",
|
||||
"url": "https://github.com/brikou"
|
||||
},
|
||||
{
|
||||
"name": "Veli-Pekka Kestilä",
|
||||
"url": "https://github.com/vpk"
|
||||
},
|
||||
{
|
||||
"name": "Daniel Parker",
|
||||
"url": "https://github.com/rlgod"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"@types/node": "*"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "TypeScript definitions for jsonwebtoken",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
|
||||
"license": "MIT",
|
||||
"main": "",
|
||||
"name": "@types/jsonwebtoken",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
||||
},
|
||||
"scripts": {},
|
||||
"typeScriptVersion": "2.2",
|
||||
"types": "",
|
||||
"typesPublisherContentHash": "0c6eebd46a6b5087408b4ad4afa03e49ed368589c17d6b6134f16a6942fab234",
|
||||
"version": "8.3.0"
|
||||
}
|
Reference in New Issue
Block a user