@aoxborrow/registrar-client 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/registrars/cloudflare.ts +1 -0
- package/src/registrars/dynadot.ts +1 -0
- package/src/registrars/gandi.ts +1 -0
- package/src/registrars/godaddy.ts +1 -0
- package/src/registrars/namebright.ts +1 -0
- package/src/registrars/namecheap.ts +1 -0
- package/src/registrars/namesilo.ts +1 -0
- package/src/registrars/porkbun.ts +1 -0
- package/src/registrars/spaceship.ts +1 -0
- package/src/types.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aoxborrow/registrar-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "One consistent, fully-typed TypeScript interface to many domain registrar APIs (GoDaddy, Cloudflare, Namecheap, Spaceship, Dynadot, Porkbun, and more) behind a single pluggable multi-provider client",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aaron Oxborrow",
|
|
@@ -175,6 +175,7 @@ export class CloudflareRegistrar extends BaseRegistrar {
|
|
|
175
175
|
readonly name = 'cloudflare';
|
|
176
176
|
|
|
177
177
|
static readonly displayName = 'Cloudflare';
|
|
178
|
+
static readonly website = 'cloudflare.com';
|
|
178
179
|
static readonly helpText =
|
|
179
180
|
'Create an API token in your Cloudflare dashboard under My Profile > API Tokens. ' +
|
|
180
181
|
'The token needs "Account.Registrar" read/write permissions. Find your Account ID ' +
|
|
@@ -180,6 +180,7 @@ export class DynadotRegistrar extends BaseRegistrar {
|
|
|
180
180
|
readonly name = 'dynadot';
|
|
181
181
|
|
|
182
182
|
static readonly displayName = 'Dynadot';
|
|
183
|
+
static readonly website = 'dynadot.com';
|
|
183
184
|
static readonly helpText =
|
|
184
185
|
'Under Tools > API in your Dynadot account, generate an API Key and API Secret. ' +
|
|
185
186
|
'The account must be unlocked with API access enabled. The key identifies you; ' +
|
package/src/registrars/gandi.ts
CHANGED
|
@@ -161,6 +161,7 @@ export class GandiRegistrar extends BaseRegistrar {
|
|
|
161
161
|
readonly name = 'gandi';
|
|
162
162
|
|
|
163
163
|
static readonly displayName = 'Gandi.net';
|
|
164
|
+
static readonly website = 'gandi.net';
|
|
164
165
|
static readonly helpText =
|
|
165
166
|
'Generate a Personal Access Token (PAT) in your Gandi account under Account ' +
|
|
166
167
|
'Settings > Security. The token needs permission to manage domains. (Gandi has ' +
|
|
@@ -269,6 +269,7 @@ export class GoDaddyRegistrar extends BaseRegistrar {
|
|
|
269
269
|
readonly name = 'godaddy';
|
|
270
270
|
|
|
271
271
|
static readonly displayName = 'GoDaddy';
|
|
272
|
+
static readonly website = 'godaddy.com';
|
|
272
273
|
static readonly helpText =
|
|
273
274
|
'Authenticate one of two ways. For production, create a Personal Access ' +
|
|
274
275
|
'Token (PAT) at https://developer.godaddy.com and pass it as `apiToken` — ' +
|
|
@@ -198,6 +198,7 @@ export class NameBrightRegistrar extends BaseRegistrar {
|
|
|
198
198
|
readonly name = 'namebright';
|
|
199
199
|
|
|
200
200
|
static readonly displayName = 'NameBright';
|
|
201
|
+
static readonly website = 'namebright.com';
|
|
201
202
|
static readonly helpText =
|
|
202
203
|
'API access is not enabled by default — you must request it from NameBright ' +
|
|
203
204
|
'(contact support / your account manager) before the API Management page is ' +
|
|
@@ -188,6 +188,7 @@ export class NamecheapRegistrar extends BaseRegistrar {
|
|
|
188
188
|
readonly name = 'namecheap';
|
|
189
189
|
|
|
190
190
|
static readonly displayName = 'Namecheap';
|
|
191
|
+
static readonly website = 'namecheap.com';
|
|
191
192
|
static readonly helpText =
|
|
192
193
|
'Enable API access in your Namecheap account under Profile > Tools > API Access, ' +
|
|
193
194
|
'generate an API key, and whitelist your request IP(s) in the API settings. ' +
|
|
@@ -157,6 +157,7 @@ export class NameSiloRegistrar extends BaseRegistrar {
|
|
|
157
157
|
readonly name = 'namesilo';
|
|
158
158
|
|
|
159
159
|
static readonly displayName = 'NameSilo';
|
|
160
|
+
static readonly website = 'namesilo.com';
|
|
160
161
|
static readonly helpText =
|
|
161
162
|
'Generate an API key in your NameSilo account under Account Options > API Manager. ' +
|
|
162
163
|
'You can optionally restrict the key to specific IP addresses there. For sandbox ' +
|
|
@@ -182,6 +182,7 @@ export class PorkbunRegistrar extends BaseRegistrar {
|
|
|
182
182
|
readonly name = 'porkbun';
|
|
183
183
|
|
|
184
184
|
static readonly displayName = 'Porkbun';
|
|
185
|
+
static readonly website = 'porkbun.com';
|
|
185
186
|
static readonly helpText =
|
|
186
187
|
'Create an API key and secret in your Porkbun account under Account > API Access, ' +
|
|
187
188
|
'then enable "API Access" on each domain you want to manage (per-domain toggle in ' +
|
|
@@ -133,6 +133,7 @@ export class SpaceshipRegistrar extends BaseRegistrar {
|
|
|
133
133
|
readonly name = 'spaceship';
|
|
134
134
|
|
|
135
135
|
static readonly displayName = 'Spaceship';
|
|
136
|
+
static readonly website = 'spaceship.com';
|
|
136
137
|
static readonly helpText =
|
|
137
138
|
'Generate your API key and secret in the API Manager at Spaceship using the ' +
|
|
138
139
|
'"New API key" button. The API requires both X-API-Key and X-API-Secret headers.';
|
package/src/types.ts
CHANGED
|
@@ -431,11 +431,13 @@ export interface Registrar {
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
// static side of a registrar class: the constructor plus discovery metadata
|
|
434
|
-
// (display name, the credential fields it needs, where to get
|
|
435
|
-
// it offers a sandbox/test environment).
|
|
434
|
+
// (display name, public website, the credential fields it needs, where to get
|
|
435
|
+
// them, and whether it offers a sandbox/test environment).
|
|
436
436
|
export interface RegistrarConstructor {
|
|
437
437
|
new (credentials: RegistrarCredentials, options?: RegistrarOptions): Registrar;
|
|
438
438
|
readonly displayName: string;
|
|
439
|
+
// the provider's public website domain, e.g. "gandi.net"
|
|
440
|
+
readonly website: string;
|
|
439
441
|
readonly configFields: ConfigField[];
|
|
440
442
|
readonly helpText: string;
|
|
441
443
|
readonly supportsSandbox: boolean;
|