1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge pull request #1855 from oceanprotocol/feature/credentials-on-service-level

add credentials to service type
This commit is contained in:
Filip Masar 2024-10-01 12:02:27 +02:00 committed by GitHub
commit fdfe741013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
import { ConsumerParameter } from './ConsumerParameter' import { ConsumerParameter } from './ConsumerParameter'
import { Credentials } from './Credentials'
export interface PublisherTrustedAlgorithm { export interface PublisherTrustedAlgorithm {
/** /**
@ -80,6 +81,12 @@ export interface Service {
*/ */
serviceEndpoint: string serviceEndpoint: string
/**
* Describes the credentials needed to access a service
* @type {Credentials}
*/
credentials?: Credentials
/** /**
* Describing how long the service can be used after consumption is initiated. * Describing how long the service can be used after consumption is initiated.
* @type {number} * @type {number}