mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-06 02:48:25 +00:00
By selecting a region configuration, devices using the device-profile will only stick to the selected region configuration, rather than the configurations provided by the selected region common-name. This change also renames the region 'name' option to 'id' in the region configuration, as well it adds a 'description' to provide a human readable description, which is used in the drop-down in the UI. This also fixes the JS API generation. In a previous commit the the protobuf package was updated, but the latest protobuf compiler no longer supports generating JS code (this now requires an external plugin). This has been fixed. Please note that if you have implemented custom ADR algorithms that are referring to the 'regionName' key, that you must change this to 'regionConfigId' (see the ADR code example).
184 lines
6.2 KiB
TypeScript
Vendored
184 lines
6.2 KiB
TypeScript
Vendored
import * as jspb from 'google-protobuf'
|
|
|
|
|
|
|
|
export class Authentication extends jspb.Message {
|
|
getRulesList(): Array<AuthenticationRule>;
|
|
setRulesList(value: Array<AuthenticationRule>): Authentication;
|
|
clearRulesList(): Authentication;
|
|
addRules(value?: AuthenticationRule, index?: number): AuthenticationRule;
|
|
|
|
getProvidersList(): Array<AuthProvider>;
|
|
setProvidersList(value: Array<AuthProvider>): Authentication;
|
|
clearProvidersList(): Authentication;
|
|
addProviders(value?: AuthProvider, index?: number): AuthProvider;
|
|
|
|
serializeBinary(): Uint8Array;
|
|
toObject(includeInstance?: boolean): Authentication.AsObject;
|
|
static toObject(includeInstance: boolean, msg: Authentication): Authentication.AsObject;
|
|
static serializeBinaryToWriter(message: Authentication, writer: jspb.BinaryWriter): void;
|
|
static deserializeBinary(bytes: Uint8Array): Authentication;
|
|
static deserializeBinaryFromReader(message: Authentication, reader: jspb.BinaryReader): Authentication;
|
|
}
|
|
|
|
export namespace Authentication {
|
|
export type AsObject = {
|
|
rulesList: Array<AuthenticationRule.AsObject>,
|
|
providersList: Array<AuthProvider.AsObject>,
|
|
}
|
|
}
|
|
|
|
export class AuthenticationRule extends jspb.Message {
|
|
getSelector(): string;
|
|
setSelector(value: string): AuthenticationRule;
|
|
|
|
getOauth(): OAuthRequirements | undefined;
|
|
setOauth(value?: OAuthRequirements): AuthenticationRule;
|
|
hasOauth(): boolean;
|
|
clearOauth(): AuthenticationRule;
|
|
|
|
getAllowWithoutCredential(): boolean;
|
|
setAllowWithoutCredential(value: boolean): AuthenticationRule;
|
|
|
|
getRequirementsList(): Array<AuthRequirement>;
|
|
setRequirementsList(value: Array<AuthRequirement>): AuthenticationRule;
|
|
clearRequirementsList(): AuthenticationRule;
|
|
addRequirements(value?: AuthRequirement, index?: number): AuthRequirement;
|
|
|
|
serializeBinary(): Uint8Array;
|
|
toObject(includeInstance?: boolean): AuthenticationRule.AsObject;
|
|
static toObject(includeInstance: boolean, msg: AuthenticationRule): AuthenticationRule.AsObject;
|
|
static serializeBinaryToWriter(message: AuthenticationRule, writer: jspb.BinaryWriter): void;
|
|
static deserializeBinary(bytes: Uint8Array): AuthenticationRule;
|
|
static deserializeBinaryFromReader(message: AuthenticationRule, reader: jspb.BinaryReader): AuthenticationRule;
|
|
}
|
|
|
|
export namespace AuthenticationRule {
|
|
export type AsObject = {
|
|
selector: string,
|
|
oauth?: OAuthRequirements.AsObject,
|
|
allowWithoutCredential: boolean,
|
|
requirementsList: Array<AuthRequirement.AsObject>,
|
|
}
|
|
}
|
|
|
|
export class JwtLocation extends jspb.Message {
|
|
getHeader(): string;
|
|
setHeader(value: string): JwtLocation;
|
|
|
|
getQuery(): string;
|
|
setQuery(value: string): JwtLocation;
|
|
|
|
getCookie(): string;
|
|
setCookie(value: string): JwtLocation;
|
|
|
|
getValuePrefix(): string;
|
|
setValuePrefix(value: string): JwtLocation;
|
|
|
|
getInCase(): JwtLocation.InCase;
|
|
|
|
serializeBinary(): Uint8Array;
|
|
toObject(includeInstance?: boolean): JwtLocation.AsObject;
|
|
static toObject(includeInstance: boolean, msg: JwtLocation): JwtLocation.AsObject;
|
|
static serializeBinaryToWriter(message: JwtLocation, writer: jspb.BinaryWriter): void;
|
|
static deserializeBinary(bytes: Uint8Array): JwtLocation;
|
|
static deserializeBinaryFromReader(message: JwtLocation, reader: jspb.BinaryReader): JwtLocation;
|
|
}
|
|
|
|
export namespace JwtLocation {
|
|
export type AsObject = {
|
|
header: string,
|
|
query: string,
|
|
cookie: string,
|
|
valuePrefix: string,
|
|
}
|
|
|
|
export enum InCase {
|
|
IN_NOT_SET = 0,
|
|
HEADER = 1,
|
|
QUERY = 2,
|
|
COOKIE = 4,
|
|
}
|
|
}
|
|
|
|
export class AuthProvider extends jspb.Message {
|
|
getId(): string;
|
|
setId(value: string): AuthProvider;
|
|
|
|
getIssuer(): string;
|
|
setIssuer(value: string): AuthProvider;
|
|
|
|
getJwksUri(): string;
|
|
setJwksUri(value: string): AuthProvider;
|
|
|
|
getAudiences(): string;
|
|
setAudiences(value: string): AuthProvider;
|
|
|
|
getAuthorizationUrl(): string;
|
|
setAuthorizationUrl(value: string): AuthProvider;
|
|
|
|
getJwtLocationsList(): Array<JwtLocation>;
|
|
setJwtLocationsList(value: Array<JwtLocation>): AuthProvider;
|
|
clearJwtLocationsList(): AuthProvider;
|
|
addJwtLocations(value?: JwtLocation, index?: number): JwtLocation;
|
|
|
|
serializeBinary(): Uint8Array;
|
|
toObject(includeInstance?: boolean): AuthProvider.AsObject;
|
|
static toObject(includeInstance: boolean, msg: AuthProvider): AuthProvider.AsObject;
|
|
static serializeBinaryToWriter(message: AuthProvider, writer: jspb.BinaryWriter): void;
|
|
static deserializeBinary(bytes: Uint8Array): AuthProvider;
|
|
static deserializeBinaryFromReader(message: AuthProvider, reader: jspb.BinaryReader): AuthProvider;
|
|
}
|
|
|
|
export namespace AuthProvider {
|
|
export type AsObject = {
|
|
id: string,
|
|
issuer: string,
|
|
jwksUri: string,
|
|
audiences: string,
|
|
authorizationUrl: string,
|
|
jwtLocationsList: Array<JwtLocation.AsObject>,
|
|
}
|
|
}
|
|
|
|
export class OAuthRequirements extends jspb.Message {
|
|
getCanonicalScopes(): string;
|
|
setCanonicalScopes(value: string): OAuthRequirements;
|
|
|
|
serializeBinary(): Uint8Array;
|
|
toObject(includeInstance?: boolean): OAuthRequirements.AsObject;
|
|
static toObject(includeInstance: boolean, msg: OAuthRequirements): OAuthRequirements.AsObject;
|
|
static serializeBinaryToWriter(message: OAuthRequirements, writer: jspb.BinaryWriter): void;
|
|
static deserializeBinary(bytes: Uint8Array): OAuthRequirements;
|
|
static deserializeBinaryFromReader(message: OAuthRequirements, reader: jspb.BinaryReader): OAuthRequirements;
|
|
}
|
|
|
|
export namespace OAuthRequirements {
|
|
export type AsObject = {
|
|
canonicalScopes: string,
|
|
}
|
|
}
|
|
|
|
export class AuthRequirement extends jspb.Message {
|
|
getProviderId(): string;
|
|
setProviderId(value: string): AuthRequirement;
|
|
|
|
getAudiences(): string;
|
|
setAudiences(value: string): AuthRequirement;
|
|
|
|
serializeBinary(): Uint8Array;
|
|
toObject(includeInstance?: boolean): AuthRequirement.AsObject;
|
|
static toObject(includeInstance: boolean, msg: AuthRequirement): AuthRequirement.AsObject;
|
|
static serializeBinaryToWriter(message: AuthRequirement, writer: jspb.BinaryWriter): void;
|
|
static deserializeBinary(bytes: Uint8Array): AuthRequirement;
|
|
static deserializeBinaryFromReader(message: AuthRequirement, reader: jspb.BinaryReader): AuthRequirement;
|
|
}
|
|
|
|
export namespace AuthRequirement {
|
|
export type AsObject = {
|
|
providerId: string,
|
|
audiences: string,
|
|
}
|
|
}
|
|
|