Skip to content

Commit 2c40d98

Browse files
authored
Merge pull request #1 from namedotcom/fern-bot/2026-07-07_20-27-03_135
SDK regeneration
2 parents 482e360 + 77feb33 commit 2c40d98

39 files changed

Lines changed: 377 additions & 206 deletions

.fern/metadata.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
"homepage": "https://github.com/namedotcom/core-api-php"
1313
}
1414
},
15-
"originGitCommit": "c3ab257628a7366dab6a8ad857854de9416d2338",
16-
"originGitCommitIsDirty": true,
17-
"invokedBy": "manual",
18-
"requestedVersion": "1.29.0",
19-
"ciProvider": null,
20-
"sdkVersion": "1.29.0"
15+
"originGitCommitIsDirty": null,
16+
"invokedBy": "ci",
17+
"requestedVersion": "1.31.0",
18+
"ciProvider": "gitlab",
19+
"sdkVersion": "1.31.0"
2120
}

.fern/replay.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.fernignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
# Specify files that shouldn't be modified by Fern
2+
.fern/replay.lock
3+
.fern/replay.yml
4+
.gitattributes

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.fern/replay.lock linguist-generated=true

README.md

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The Namecom PHP library provides convenient access to the Namecom APIs from PHP.
77

88
## Table of Contents
99

10+
- [Documentation](#documentation)
1011
- [Requirements](#requirements)
1112
- [Installation](#installation)
1213
- [Usage](#usage)
@@ -18,6 +19,10 @@ The Namecom PHP library provides convenient access to the Namecom APIs from PHP.
1819
- [Timeouts](#timeouts)
1920
- [Contributing](#contributing)
2021

22+
## Documentation
23+
24+
API reference documentation is available [here](https://docs.name.com).
25+
2126
## Requirements
2227

2328
This SDK requires PHP ^8.1.
@@ -38,38 +43,12 @@ Instantiate and use the client with the following:
3843
namespace Example;
3944

4045
use Namecom\NamecomClient;
41-
use Namecom\Accounts\Requests\CreateAccountRequest;
42-
use Namecom\Types\AccountRequest;
43-
use Namecom\Types\ContactsRequest;
44-
use Namecom\Types\RegistrantContactRequest;
4546

4647
$client = new NamecomClient(
4748
username: '<username>',
4849
password: '<password>',
4950
);
50-
$client->accounts->createAccount(
51-
new CreateAccountRequest([
52-
'account' => new AccountRequest([
53-
'contacts' => new ContactsRequest([
54-
'registrant' => new RegistrantContactRequest([
55-
'firstName' => 'Jane',
56-
'lastName' => 'Doe',
57-
'address1' => '123 Main St.',
58-
'city' => 'Denver',
59-
'state' => 'CO',
60-
'zip' => '12345',
61-
'country' => 'US',
62-
'email' => 'admin@example.net',
63-
'phone' => '+13035551212',
64-
]),
65-
]),
66-
'accountName' => 'reseller_subaccount',
67-
'password' => 'SecureP4ss!',
68-
]),
69-
'apiTos' => true,
70-
'tos' => true,
71-
]),
72-
);
51+
$client->hello();
7352

7453
```
7554

@@ -78,7 +57,7 @@ $client->accounts->createAccount(
7857
This SDK allows you to configure different environments for API requests.
7958

8059
```php
81-
The SDK defaults to the `Default_` environment. To use a different environment, pass it to the client constructor:
60+
The SDK defaults to the `Sandbox` environment. To use a different environment, pass it to the client constructor:
8261

8362
```php
8463
use Namecom\NamecomClient;
@@ -93,7 +72,8 @@ $client = new NamecomClient(
9372
```
9473

9574
Available environments:
96-
- `Environments::Default_`
75+
- `Environments::Sandbox`
76+
- `Environments::Production`
9777
```
9878
9979
## Exception Handling
@@ -105,7 +85,7 @@ use Namecom\Exceptions\NamecomApiException;
10585
use Namecom\Exceptions\NamecomException;
10686
10787
try {
108-
$response = $client->accounts->createAccount(...);
88+
$response = $client->hello(...);
10989
} catch (NamecomApiException $e) {
11090
echo 'API Exception occurred: ' . $e->getMessage() . "\n";
11191
echo 'Status Code: ' . $e->getCode() . "\n";
@@ -164,7 +144,7 @@ The `retryStatusCodes` configuration controls which [5XX](https://developer.mozi
164144
Use the `maxRetries` request option to configure this behavior.
165145

166146
```php
167-
$response = $client->accounts->createAccount(
147+
$response = $client->hello(
168148
...,
169149
options: [
170150
'maxRetries' => 0 // Override maxRetries at the request level
@@ -177,7 +157,7 @@ $response = $client->accounts->createAccount(
177157
The SDK defaults to a 30 second timeout. Use the `timeout` option to configure this behavior.
178158

179159
```php
180-
$response = $client->accounts->createAccount(
160+
$response = $client->hello(
181161
...,
182162
options: [
183163
'timeout' => 3.0 // Override timeout at the request level

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "namecom/core-api",
3-
"version": "1.29.0",
3+
"version": "1.31.0",
44
"description": "Official PHP SDK for the name.com Core API",
55
"keywords": [
66
"namecom",

reference.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,12 @@ Adds (registers) a new DNSSEC DS record for a domain.
17521752
```php
17531753
$client->dnsseCs->createDnssec(
17541754
'domainName',
1755-
new CreateDnssecBody([]),
1755+
new CreateDnssecBody([
1756+
'algorithm' => 1,
1757+
'digest' => 'digest',
1758+
'digestType' => 1,
1759+
'keyTag' => 1,
1760+
]),
17561761
);
17571762
```
17581763
</dd>
@@ -1776,39 +1781,31 @@ $client->dnsseCs->createDnssec(
17761781
<dl>
17771782
<dd>
17781783

1779-
**$algorithm:** `?int`
1780-
1781-
</dd>
1782-
</dl>
1783-
1784-
<dl>
1785-
<dd>
1786-
1787-
**$digest:** `?string` — Digest is a digest of the DNSKEY RR that is registered with the registry.
1784+
**$algorithm:** `int`
17881785

17891786
</dd>
17901787
</dl>
17911788

17921789
<dl>
17931790
<dd>
17941791

1795-
**$createDnssecBodyDomainName:** `?string`The name of the domain.
1792+
**$digest:** `string`Digest is a digest of the DNSKEY RR that is registered with the registry.
17961793

17971794
</dd>
17981795
</dl>
17991796

18001797
<dl>
18011798
<dd>
18021799

1803-
**$digestType:** `?int`
1800+
**$digestType:** `int`
18041801

18051802
</dd>
18061803
</dl>
18071804

18081805
<dl>
18091806
<dd>
18101807

1811-
**$keyTag:** `?int`
1808+
**$keyTag:** `int`
18121809

18131810
</dd>
18141811
</dl>
@@ -2866,10 +2863,10 @@ Sets up a new URL forwarding (redirect) for a domain or subdomain. If this is th
28662863
$client->urlForwardings->createUrlForwarding(
28672864
'example.com',
28682865
new CreateUrlForwardingRequest([
2869-
'body' => new UrlForwarding([
2866+
'body' => new UrlForwardingInput([
28702867
'forwardsTo' => 'https://destination-site.com',
28712868
'host' => 'www',
2872-
'type' => UrlForwardingType::Masked->value,
2869+
'type' => UrlForwardingInputType::Masked->value,
28732870
]),
28742871
]),
28752872
);
@@ -2895,7 +2892,7 @@ $client->urlForwardings->createUrlForwarding(
28952892
<dl>
28962893
<dd>
28972894

2898-
**$request:** `UrlForwarding`
2895+
**$request:** `UrlForwardingInput`
28992896

29002897
</dd>
29012898
</dl>
@@ -3003,9 +3000,10 @@ $client->urlForwardings->updateUrlForwarding(
30033000
'example.com',
30043001
'www.example.org',
30053002
new UpdateUrlForwardingRequest([
3006-
'body' => new UpdateUrlForwardingBody([
3003+
'body' => new UrlForwardingInput([
30073004
'forwardsTo' => 'https://destination-site.com',
3008-
'type' => UrlForwardingType::Masked->value,
3005+
'host' => 'www',
3006+
'type' => UrlForwardingInputType::Masked->value,
30093007
]),
30103008
]),
30113009
);
@@ -3039,7 +3037,7 @@ $client->urlForwardings->updateUrlForwarding(
30393037
<dl>
30403038
<dd>
30413039

3042-
**$request:** `UpdateUrlForwardingBody`
3040+
**$request:** `UrlForwardingInput`
30433041

30443042
</dd>
30453043
</dl>
@@ -3353,9 +3351,10 @@ $client->urlForwardings->updateUrlForwardingById(
33533351
'example.com',
33543352
12345,
33553353
new UpdateUrlForwardingByIdRequest([
3356-
'body' => new UpdateUrlForwardingBody([
3354+
'body' => new UrlForwardingInput([
33573355
'forwardsTo' => 'https://destination-site.com',
3358-
'type' => UrlForwardingType::Masked->value,
3356+
'host' => 'www',
3357+
'type' => UrlForwardingInputType::Masked->value,
33593358
]),
33603359
]),
33613360
);
@@ -3389,7 +3388,7 @@ $client->urlForwardings->updateUrlForwardingById(
33893388
<dl>
33903389
<dd>
33913390

3392-
**$request:** `UpdateUrlForwardingBody`
3391+
**$request:** `UrlForwardingInput`
33933392

33943393
</dd>
33953394
</dl>
@@ -3819,9 +3818,11 @@ Supported webhook event names:
38193818
- `domain.lock.status_change` – domain lock added or removed.
38203819
- `domain.transfer.status_change` – domain transfer IN to name.com; status updates while name.com is the gaining registrar.
38213820
- `domain.transfer_out.status_change` – domain transfer OUT from name.com to another registrar; fires when the domain is removed from the account.
3822-
- `domain.transfer.internal_in` - name.com domain transfers in to the subscribing account.
3821+
- `domain.transfer.internal_in` - name.com domain transfers in to the subscribing account via internal transfer.
3822+
- `domain.transfer.internal_out` - name.com domain transfers out of the subscribing account via internal transfer.
38233823
- `contact.verification.status_change` - contact verification status changes (verified or unverified).
38243824
- `domain.registry.rejection` – domain **create** failed after asynchronous registry processing (uncommon; most creates succeed at request time).
3825+
- `domain.expiration` – domain has expired and entered the post-expiry grace period. This is informational only.
38253826
</dd>
38263827
</dl>
38273828
</dd>

src/AccountInfo/AccountInfoClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function checkAccountBalance(?array $options = null): ?CheckAccountBalanc
7070
try {
7171
$response = $this->client->sendRequest(
7272
new JsonApiRequest(
73-
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Default_->value,
73+
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Sandbox->value,
7474
path: "core/v1/accountinfo/balance",
7575
method: HttpMethod::GET,
7676
),

src/Accounts/AccountsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function createAccount(CreateAccountRequest $request, ?array $options = n
7272
try {
7373
$response = $this->client->sendRequest(
7474
new JsonApiRequest(
75-
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Default_->value,
75+
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Sandbox->value,
7676
path: "core/v1/accounts",
7777
method: HttpMethod::POST,
7878
body: $request,

src/ContactVerification/ContactVerificationClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function unverifiedContactsList(UnverifiedContactsListRequest $request =
8383
try {
8484
$response = $this->client->sendRequest(
8585
new JsonApiRequest(
86-
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Default_->value,
86+
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Sandbox->value,
8787
path: "core/v1/contacts/unverified",
8888
method: HttpMethod::GET,
8989
query: $query,
@@ -137,7 +137,7 @@ public function verifyContact(int $verificationId, VerifyContactRequest $request
137137
try {
138138
$response = $this->client->sendRequest(
139139
new JsonApiRequest(
140-
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Default_->value,
140+
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Sandbox->value,
141141
path: "core/v1/contacts/verify/{$verificationId}",
142142
method: HttpMethod::POST,
143143
headers: $headers,
@@ -194,7 +194,7 @@ public function resendContactVerificationEmail(int $verificationId, ResendContac
194194
try {
195195
$response = $this->client->sendRequest(
196196
new JsonApiRequest(
197-
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Default_->value,
197+
baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? Environments::Sandbox->value,
198198
path: "core/v1/contacts/verify/{$verificationId}:resend",
199199
method: HttpMethod::POST,
200200
headers: $headers,

0 commit comments

Comments
 (0)