@triveria/wallet / Exports / Configuration
Class: Configuration
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Configuration(param?): Configuration
Parameters
| Name | Type |
|---|---|
param | ConfigurationParameters |
Returns
Defined in
Properties
accessToken
• Optional accessToken: string | Promise<string> | (name?: string, scopes?: string[]) => string | (name?: string, scopes?: string[]) => Promise<string>
parameter for oauth2 security
Param
security name
Param
oauth2 scope
Defined in
apiKey
• Optional apiKey: string | Promise<string> | (name: string) => string | (name: string) => Promise<string>
parameter for apiKey security
Param
security name
Defined in
awsv4
• Optional awsv4: AWSv4Configuration
parameter for aws4 signature security
Param
AWS4 Signature security
Param
aws region
Param
name of the service.
Param
aws access key id
Param
aws access key
Param
aws session token
Memberof
Configuration
Defined in
baseOptions
• Optional baseOptions: any
base options for axios calls
Defined in
basePath
• Optional basePath: string
override base path
Defined in
formDataCtor
• Optional formDataCtor: () => any
The FormData constructor that will be used to create multipart form data requests. You can inject this here so that execution environments that do not support the FormData class can still run the generated client.
Type declaration
• new formDataCtor(): any
The FormData constructor that will be used to create multipart form data requests. You can inject this here so that execution environments that do not support the FormData class can still run the generated client.
Returns
any
Defined in
password
• Optional password: string
parameter for basic security
Defined in
serverIndex
• Optional serverIndex: number
override server index
Defined in
username
• Optional username: string
parameter for basic security
Defined in
Methods
isJsonMime
▸ isJsonMime(mime): boolean
Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; charset=UTF8 APPLICATION/JSON application/vnd.company+json
Parameters
| Name | Type | Description |
|---|---|---|
mime | string | MIME (Multipurpose Internet Mail Extensions) |
Returns
boolean
True if the given MIME is JSON, false otherwise.