mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 06:29:28 -07:00
feat: improve jsdoc for documentation
This commit is contained in:
parent
336029fd87
commit
deaa858345
38 changed files with 364 additions and 13 deletions
|
@ -363,6 +363,7 @@ export class Claim {
|
|||
}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
* @param {object} claimObject - JSON representation of a claim
|
||||
* @returns {Claim | Error} Parsed claim
|
||||
*/
|
||||
|
@ -404,6 +405,7 @@ function importJsonClaimVersion1 (claimObject) {
|
|||
}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
* @param {object} claimObject - JSON representation of a claim
|
||||
* @returns {Claim | Error} Parsed claim
|
||||
*/
|
||||
|
|
|
@ -13,6 +13,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs using ActivityPub HTTP requests
|
||||
* @module fetcher/activitypub
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.activitypub.fn({ url: 'https://domain.example/@alice' });
|
||||
*/
|
||||
|
||||
import axios from 'axios'
|
||||
import isURL from 'validator/lib/isURL.js'
|
||||
import { isNode } from 'browser-or-node'
|
||||
|
@ -21,9 +29,10 @@ import { version } from '../constants.js'
|
|||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
|
|
@ -13,6 +13,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs from {@link module:profile~Profile} obtained through ASPE
|
||||
* @module fetcher/aspe
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.aspe.fn({ aspeUri: 'aspe:domain.example:abc123def456' });
|
||||
*/
|
||||
import axios from 'axios'
|
||||
import isFQDN from 'validator/lib/isFQDN.js'
|
||||
import { version } from '../constants.js'
|
||||
|
@ -20,9 +27,10 @@ import { parseProfileJws } from '../asp.js'
|
|||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
|
|
@ -13,14 +13,23 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs using DNS TXT records
|
||||
* @module fetcher/dns
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.dns.fn({ domain: 'domain.example' });
|
||||
*/
|
||||
|
||||
import { isBrowser } from 'browser-or-node'
|
||||
import dns from 'dns'
|
||||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
|
|
@ -13,14 +13,23 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs using GraphQL queries
|
||||
* @module fetcher/graphql
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.graphql.fn({ url: 'https://domain.example/graphql/v2', query: '{ "query": "..." }' });
|
||||
*/
|
||||
|
||||
import axios from 'axios'
|
||||
import { version } from '../constants.js'
|
||||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
|
|
@ -13,15 +13,24 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs using HTTP requests
|
||||
* @module fetcher/http
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.http.fn({ url: 'https://domain.example/data.json', format: 'json' });
|
||||
*/
|
||||
|
||||
import axios from 'axios'
|
||||
import { ProofFormat } from '../enums.js'
|
||||
import { version } from '../constants.js'
|
||||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
|
|
@ -13,14 +13,23 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs using IRC
|
||||
* @module fetcher/irc
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.irc.fn({ nick: 'alice', domain: 'domain.example' });
|
||||
*/
|
||||
|
||||
import irc from 'irc-upd'
|
||||
import isAscii from 'validator/lib/isAscii.js'
|
||||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 20000
|
||||
*/
|
||||
export const timeout = 20000
|
||||
|
||||
|
|
|
@ -13,6 +13,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs using Matrix messages
|
||||
* @module fetcher/matrix
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.matrix.fn({ eventId: '$abc123def456', roomId: '!dBfQZxCoGVmSTujfiv:matrix.org' });
|
||||
*/
|
||||
|
||||
import axios from 'axios'
|
||||
import isFQDN from 'validator/lib/isFQDN.js'
|
||||
import isAscii from 'validator/lib/isAscii.js'
|
||||
|
@ -20,9 +28,10 @@ import { version } from '../constants.js'
|
|||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
|
|
@ -13,6 +13,21 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs from OpenPGP notations
|
||||
* @module fetcher/openpgp
|
||||
* @example
|
||||
* import { fetcher, enums as E } from 'doipjs';
|
||||
*
|
||||
* const hkpProtocol = E.OpenPgpQueryProtocol.HKP;
|
||||
* const hkpUrl = 'https://keys.openpgp.org/vks/v1/by-fingerprint/ABC123DEF456';
|
||||
* const hkpData = await fetcher.openpgp.fn({ url: hkpUrl, protocol: hkpProtocol });
|
||||
*
|
||||
* const wkdProtocol = E.OpenPgpQueryProtocol.WKD;
|
||||
* const wkdUrl = 'https://domain.example/.well-known/openpgpkey/hu/kei1q4tipxxu1yj79k9kfukdhfy631xe?l=alice';
|
||||
* const wkdData = await fetcher.openpgp.fn({ url: wkdUrl, protocol: wkdProtocol });
|
||||
*/
|
||||
|
||||
import axios from 'axios'
|
||||
import { readKey } from 'openpgp'
|
||||
import { OpenPgpQueryProtocol } from '../enums.js'
|
||||
|
@ -21,9 +36,10 @@ import { parsePublicKey } from '../openpgp.js'
|
|||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
|
|
@ -13,15 +13,24 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs using Telegram groups
|
||||
* @module fetcher/telegram
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.telegram.fn({ user: 'alice', chat: 'alice_identity_proof' });
|
||||
*/
|
||||
|
||||
import axios from 'axios'
|
||||
import isAscii from 'validator/lib/isAscii.js'
|
||||
import { version } from '../constants.js'
|
||||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
@ -30,8 +39,8 @@ export const timeout = 5000
|
|||
* @function
|
||||
* @async
|
||||
* @param {object} data - Data used in the request
|
||||
* @param {string} data.chat - Telegram public chat username
|
||||
* @param {string} data.user - Telegram user username
|
||||
* @param {string} data.chat - Telegram public group name (slug)
|
||||
* @param {string} data.user - Telegram username
|
||||
* @param {number} [data.fetcherTimeout] - Optional timeout for the fetcher
|
||||
* @param {Types.VerificationConfig} [opts] - Options used to enable the request
|
||||
* @returns {Promise<object|string>} The fetched Telegram object
|
||||
|
|
|
@ -13,6 +13,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Fetch proofs from XMPP accounts
|
||||
* @module fetcher/xmpp
|
||||
* @example
|
||||
* import { fetcher } from 'doipjs';
|
||||
* const data = await fetcher.xmpp.fn({ id: 'alice@domain.example' });
|
||||
*/
|
||||
|
||||
import { client, xml } from '@xmpp/client'
|
||||
import debug from '@xmpp/debug'
|
||||
import isFQDN from 'validator/lib/isFQDN.js'
|
||||
|
@ -20,9 +28,10 @@ import isAscii from 'validator/lib/isAscii.js'
|
|||
import * as Types from '../types.js'
|
||||
|
||||
/**
|
||||
* Timeout after which the fetch is aborted
|
||||
* Default timeout after which the fetch is aborted
|
||||
* @constant
|
||||
* @type {number}
|
||||
* @default 5000
|
||||
*/
|
||||
export const timeout = 5000
|
||||
|
||||
|
@ -31,6 +40,7 @@ let iqCaller = null
|
|||
|
||||
/**
|
||||
* Start the XMPP client
|
||||
* @ignore
|
||||
* @function
|
||||
* @async
|
||||
* @param {Types.XmppClaimVerificationConfig} params - XMPP claim verification config
|
||||
|
|
|
@ -184,6 +184,7 @@ export class Persona {
|
|||
}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
* @param {object} personaObject - JSON representation of a persona
|
||||
* @returns {Persona | Error} Parsed persona
|
||||
*/
|
||||
|
|
|
@ -18,7 +18,7 @@ import { Persona } from './persona.js'
|
|||
import * as Types from './types.js'
|
||||
|
||||
/**
|
||||
* @class [Types.Profile]
|
||||
* @class
|
||||
* @classdesc A profile of personas with identity claims
|
||||
* @param {Array<Persona>} personas - Personas of the profile
|
||||
* @public
|
||||
|
@ -157,6 +157,7 @@ export class Profile {
|
|||
}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
* @param {object} profileObject - JSON representation of the profile
|
||||
* @returns {Profile | Error} Parsed profile
|
||||
*/
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* ActivityPub service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/activitypub/)
|
||||
* @module serviceProviders/activitypub
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.activitypub.processURI('https://domain.example/@alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { fetcher } from '../index.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* ASPE service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/aspe/)
|
||||
* @module serviceProviders/aspe
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.activitypub.processURI('aspe:domain.example:abc123def456');
|
||||
*/
|
||||
|
||||
import isFQDN from 'validator/lib/isFQDN.js'
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Discourse service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/discourse/)
|
||||
* @module serviceProviders/discourse
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.activitypub.processURI('https://domain.example/u/alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* DNS service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/dns/)
|
||||
* @module serviceProviders/dns
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.dns.processURI('dns:domain.example?type=TXT');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Forem service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/forem/)
|
||||
* @module serviceProviders/forem
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.forem.processURI('https://domain.example/alice/title');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Forgejo service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/forgejo/)
|
||||
* @module serviceProviders/forgejo
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.forgejo.processURI('https://domain.example/alice/repo');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { fetcher } from '../index.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Gitea service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/gitea/)
|
||||
* @module serviceProviders/gitea
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.gitea.processURI('https://domain.example/alice/repo');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Github service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/github/)
|
||||
* @module serviceProviders/github
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.github.processURI('https://gist.github.com/alice/title');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Gitlab service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/gitlab/)
|
||||
* @module serviceProviders/gitlab
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.gitlab.processURI('https://domain.example/alice/repo');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Hackernews service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/hackernews/)
|
||||
* @module serviceProviders/hackernews
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.hackernews.processURI('https://news.ycombinator.com/user?id=alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* IRC service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/irc/)
|
||||
* @module serviceProviders/irc
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.irc.processURI('irc://domain.example/alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Keybase service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/keybase/)
|
||||
* @module serviceProviders/keybase
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.keybase.processURI('https://keybase.io/alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Liberapay service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/liberapay/)
|
||||
* @module serviceProviders/liberapay
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.liberapay.processURI('https://liberapay.com/alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Lichess service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/lichess/)
|
||||
* @module serviceProviders/lichess
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.lichess.processURI('https://lichess.org/@/alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Lobste.rs service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/lobsters/)
|
||||
* @module serviceProviders/lobsters
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.lobsters.processURI('https://lobste.rs/~alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Matrix service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/matrix/)
|
||||
* @module serviceProviders/matrix
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.matrix.processURI('matrix:u/...');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* OpenCollective service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/opencollective/)
|
||||
* @module serviceProviders/opencollective
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.opencollective.processURI('https://opencollective.com/alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* OpenPGP service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/openpgp/)
|
||||
* @module serviceProviders/openpgp
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.openpgp.processURI('openpgp4fpr:ABC123DEF456');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* ORCiD service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/orcid/)
|
||||
* @module serviceProviders/orcid
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.orcid.processURI('https://orcid.org/123-456-789-123');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Owncast service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/owncast/)
|
||||
* @module serviceProviders/owncast
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.owncast.processURI('https://domain.example');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Reddit service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/reddit/)
|
||||
* @module serviceProviders/reddit
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.reddit.processURI('https://reddit.com/...');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* StackExchange service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/stackexchange/)
|
||||
* @module serviceProviders/stackexchange
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.stackexchange.processURI('https://stackoverflow.com/users/123/alice');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Telegram service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/telegram/)
|
||||
* @module serviceProviders/telegram
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.telegram.processURI('https://t.me/alice?proof=mygroup');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Twitter service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/twitter/)
|
||||
* @module serviceProviders/twitter
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.twitter.processURI('https://twitter.com/alice/status/123456789');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
|
@ -13,6 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* XMPP service provider
|
||||
*
|
||||
* Link: [Keyoxide documentation](https://docs.keyoxide.org/service-providers/xmpp/)
|
||||
* @module serviceProviders/xmpp
|
||||
* @example
|
||||
* import { ServiceProviderDefinitions } from 'doipjs';
|
||||
* const sp = ServiceProviderDefinitions.data.xmpp.processURI('xmpp:alice@domain.example');
|
||||
*/
|
||||
|
||||
import * as E from '../enums.js'
|
||||
import { ServiceProvider } from '../serviceProvider.js'
|
||||
|
||||
|
|
Loading…
Reference in a new issue