Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"cliVersion": "5.6.0",
"cliVersion": "5.50.0",
"generatorName": "fernapi/fern-csharp-sdk",
"generatorVersion": "2.68.5",
"generatorVersion": "2.71.1",
"generatorConfig": {
"namespace": "SchematicHQ.Client",
"client-class-name": "SchematicApi",
"exported-client-class-name": "Schematic",
"generate-mock-server-tests": false
},
"originGitCommit": "deb8532a1f84f6daa08b5c611a66a5ec92f53f0e",
"originGitCommit": "19cafdf92ab056ef6ba803bf1e352b0422a8ec45",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.4.10",
"requestedVersion": "1.5.1",
"ciProvider": "github",
"sdkVersion": "1.4.10"
"sdkVersion": "1.5.1"
}
10 changes: 8 additions & 2 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ jobs:
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push src/SchematicHQ.Client/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source "nuget.org"

84 changes: 84 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -4253,6 +4253,90 @@ await client.Companies.LookupCompanyAsync(
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.Companies.<a href="/src/SchematicHQ.Client/Companies/CompaniesClient.cs">GetCompanyBillingEntityAsync</a>(GetCompanyBillingEntityRequest { ... }) -> WithRawResponseTask&lt;GetCompanyBillingEntityResponse&gt;</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```csharp
await client.Companies.GetCompanyBillingEntityAsync(
new GetCompanyBillingEntityRequest { CompanyId = "company_id" }
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `GetCompanyBillingEntityRequest`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.Companies.<a href="/src/SchematicHQ.Client/Companies/CompaniesClient.cs">GetBillingEntityChildSubscriptionsAsync</a>(GetBillingEntityChildSubscriptionsRequest { ... }) -> WithRawResponseTask&lt;GetBillingEntityChildSubscriptionsResponse&gt;</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```csharp
await client.Companies.GetBillingEntityChildSubscriptionsAsync(
new GetBillingEntityChildSubscriptionsRequest { CompanyId = "company_id" }
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `GetBillingEntityChildSubscriptionsRequest`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_OnRetryableStatusCodes(int
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));

var request = new EmptyRequest
var request = new SchematicHQ.Client.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
Expand Down Expand Up @@ -89,7 +89,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_OnNonRetryableStatusCodes(i
.WillSetStateTo("Server Error")
.RespondWith(WireMockResponse.Create().WithStatusCode(statusCode).WithBody("Failure"));

var request = new JsonRequest
var request = new SchematicHQ.Client.Core.JsonRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
Expand Down Expand Up @@ -118,7 +118,7 @@ public async SystemTask SendRequestAsync_ShouldNotRetry_WithStreamRequest()
.WillSetStateTo("Server Error")
.RespondWith(WireMockResponse.Create().WithStatusCode(429).WithBody("Failure"));

var request = new StreamRequest
var request = new SchematicHQ.Client.Core.StreamRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
Expand Down Expand Up @@ -223,7 +223,7 @@ public async SystemTask SendRequestAsync_ShouldRespectRetryAfterHeader_WithSecon
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));

var request = new EmptyRequest
var request = new SchematicHQ.Client.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
Expand Down Expand Up @@ -262,7 +262,7 @@ public async SystemTask SendRequestAsync_ShouldRespectRetryAfterHeader_WithHttpD
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));

var request = new EmptyRequest
var request = new SchematicHQ.Client.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
Expand Down Expand Up @@ -301,7 +301,7 @@ public async SystemTask SendRequestAsync_ShouldRespectXRateLimitResetHeader()
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));

var request = new EmptyRequest
var request = new SchematicHQ.Client.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
Expand Down Expand Up @@ -334,7 +334,7 @@ public async SystemTask SendRequestAsync_ShouldPreserveJsonBody_OnRetry()
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));

var request = new JsonRequest
var request = new SchematicHQ.Client.Core.JsonRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
Expand Down Expand Up @@ -424,7 +424,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_WhenHandlerDisposesRequestC
BaseRetryDelay = 0,
};

var request = new JsonRequest
var request = new SchematicHQ.Client.Core.JsonRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
Expand Down Expand Up @@ -487,7 +487,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_WhenHandlerDisposesRequestC
BaseRetryDelay = 0,
};

var request = new JsonRequest
var request = new SchematicHQ.Client.Core.JsonRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
Expand Down
4 changes: 4 additions & 0 deletions src/SchematicHQ.Client/Accesstokens/AccesstokensClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ private async Task<
CancellationToken cancellationToken = default
)
{
var _queryString = new SchematicHQ.Client.Core.QueryStringBuilder.Builder(capacity: 0)
.MergeAdditional(options?.AdditionalQueryParameters)
.Build();
var _headers = await new SchematicHQ.Client.Core.HeadersBuilder.Builder()
.Add(_client.Options.Headers)
.Add(_client.Options.AdditionalHeaders)
Expand All @@ -33,6 +36,7 @@ private async Task<
Method = HttpMethod.Post,
Path = "temporary-access-tokens",
Body = request,
QueryString = _queryString,
Headers = _headers,
ContentType = "application/json",
Options = options,
Expand Down
Loading
Loading