@aoxborrow/registrar-client 0.3.0 → 0.5.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/dist/index.cjs +21 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/registrars/godaddy.ts +21 -13
- package/src/registrars/namecheap.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -3042,12 +3042,24 @@ var GoDaddyRegistrar = class _GoDaddyRegistrar extends BaseRegistrar {
|
|
|
3042
3042
|
name = "godaddy";
|
|
3043
3043
|
static displayName = "GoDaddy";
|
|
3044
3044
|
static website = "godaddy.com";
|
|
3045
|
-
static helpText =
|
|
3045
|
+
static helpText = "Create a Personal Access Token (PAT) at https://developer.godaddy.com and paste it here. The PAT is GoDaddy's modern credential: it unlocks the v3 API (discovery, registration, DNS, nameservers) and also authenticates the legacy v1 API for management operations (renew, transfer, auto-renew, lock, privacy, contacts) \u2014 one token covers everything.";
|
|
3046
|
+
// Only the PAT is exposed for configuration — it is the sole credential
|
|
3047
|
+
// GoDaddy recommends going forward, and it covers every production operation.
|
|
3048
|
+
//
|
|
3049
|
+
// The legacy `apiKey` + `apiSecret` (sso-key) pair and the `customerId` field
|
|
3050
|
+
// are intentionally NOT advertised here. The code that consumes them is kept
|
|
3051
|
+
// (see `authHeader`, `useV3`, `resolveCustomerId`, and the forwarding methods)
|
|
3052
|
+
// so OTE/sandbox testing and direct programmatic use still work when those
|
|
3053
|
+
// values are passed in credentials explicitly. But because they are no longer
|
|
3054
|
+
// configurable, two capabilities are effectively unreachable through normal
|
|
3055
|
+
// (config-driven) setup:
|
|
3056
|
+
// - OTE/sandbox, which needs an sso-key (`apiKey` + `apiSecret`), and
|
|
3057
|
+
// - domain forwarding, which needs `customerId` (a customer UUID), plus an
|
|
3058
|
+
// sso-key to resolve a numeric shopper ID to that UUID.
|
|
3059
|
+
// GoDaddy is deprecating the sso-key scheme in 2026, so this is the direction
|
|
3060
|
+
// of travel regardless.
|
|
3046
3061
|
static configFields = [
|
|
3047
|
-
{ name: "apiToken", label: "API Token (PAT)", type: "password", required:
|
|
3048
|
-
{ name: "apiKey", label: "API Key", type: "password", required: false },
|
|
3049
|
-
{ name: "apiSecret", label: "API Secret", type: "password", required: false },
|
|
3050
|
-
{ name: "customerId", label: "Customer ID or Shopper ID", type: "text", required: false }
|
|
3062
|
+
{ name: "apiToken", label: "API Token (PAT)", type: "password", required: true }
|
|
3051
3063
|
];
|
|
3052
3064
|
// GoDaddy's OTE ("Operational Test Environment") is its sandbox
|
|
3053
3065
|
static supportsSandbox = true;
|
|
@@ -4405,7 +4417,10 @@ var NamecheapRegistrar = class extends BaseRegistrar {
|
|
|
4405
4417
|
static configFields = [
|
|
4406
4418
|
{ name: "username", label: "Username", type: "text", required: true },
|
|
4407
4419
|
{ name: "apiKey", label: "API Key", type: "password", required: true },
|
|
4408
|
-
|
|
4420
|
+
// Required: Namecheap rejects any request whose ClientIp isn't on the
|
|
4421
|
+
// account's whitelist, so a placeholder like 0.0.0.0 only defers the
|
|
4422
|
+
// failure to the first call. Make the user supply the whitelisted IP.
|
|
4423
|
+
{ name: "clientIp", label: "Client IP", type: "text", required: true }
|
|
4409
4424
|
];
|
|
4410
4425
|
// Namecheap runs a sandbox at api.sandbox.namecheap.com (separate account at
|
|
4411
4426
|
// sandbox.namecheap.com with its own API key)
|