Skip to content

Commit ea70c00

Browse files
committed
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-typescript-sdk: 3.43.8
1 parent 5566d34 commit ea70c00

273 files changed

Lines changed: 1274 additions & 1795 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/metadata.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"cliVersion": "4.23.1",
2+
"cliVersion": "3.98.5",
33
"generatorName": "fernapi/fern-typescript-sdk",
4-
"generatorVersion": "3.54.0",
4+
"generatorVersion": "3.43.8",
55
"generatorConfig": {
66
"namespaceExport": "Square",
77
"allowCustomFetcher": true,
@@ -54,6 +54,5 @@
5454
}
5555
}
5656
},
57-
"originGitCommit": "809bbe97ec8c4928c84c231c117042f8f36cc91d",
58-
"sdkVersion": "44.0.1"
57+
"sdkVersion": "44.1.0"
5958
}

.fern/replay.lock

Lines changed: 10 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
@@ -12,3 +12,6 @@ tests/unit/fetcher/stream-wrappers/webpack.test.ts
1212
tests/integration
1313
legacy
1414
jest.config.mjs
15+
.fern/replay.lock
16+
.fern/replay.yml
17+
.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: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ The Square TypeScript library provides convenient access to the Square APIs from
1818
- [Pagination](#pagination)
1919
- [Webhook Signature Verification](#webhook-signature-verification)
2020
- [Advanced](#advanced)
21-
- [Subpackage Exports](#subpackage-exports)
2221
- [Additional Headers](#additional-headers)
2322
- [Additional Query String Parameters](#additional-query-string-parameters)
2423
- [Retries](#retries)
@@ -273,16 +272,6 @@ const isValid = WebhooksHelper.verifySignature({
273272

274273
## Advanced
275274

276-
### Subpackage Exports
277-
278-
This SDK supports direct imports of subpackage clients, which allows JavaScript bundlers to tree-shake and include only the imported subpackage code. This results in much smaller bundle sizes.
279-
280-
```typescript
281-
import { OAuthClient } from 'square/oAuth';
282-
283-
const client = new OAuthClient({...});
284-
```
285-
286275
### Additional Headers
287276

288277
If you would like to send additional headers as part of the request, use the `headers` request option.
@@ -470,4 +459,4 @@ otherwise they would be overwritten upon the next generated release. Feel free t
470459
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
471460
an issue first to discuss with us!
472461

473-
On the other hand, contributions to the README are always very welcome!
462+
On the other hand, contributions to the README are always very welcome!

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.4.3/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
33
"root": true,
44
"vcs": {
55
"enabled": false

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "square",
3-
"version": "44.0.1",
3+
"version": "44.1.0",
44
"private": false,
55
"repository": {
66
"type": "git",
@@ -44,14 +44,13 @@
4444
"msw": "2.11.2",
4545
"@types/node": "^18.19.70",
4646
"typescript": "~5.7.2",
47-
"@biomejs/biome": "2.4.3"
47+
"@biomejs/biome": "2.3.1"
4848
},
4949
"browser": {
5050
"fs": false,
5151
"os": false,
5252
"path": false,
53-
"stream": false,
54-
"crypto": false
53+
"stream": false
5554
},
5655
"packageManager": "yarn@1.22.22",
5756
"engines": {

reference.md

Lines changed: 48 additions & 49 deletions
Large diffs are not rendered by default.

src/BaseClient.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type BaseClientOptions = {
1010
/** Specify a custom URL to connect the client to. */
1111
baseUrl?: core.Supplier<string>;
1212
/** Override the Square-Version header */
13-
version?: "2026-01-22";
13+
version?: "2026-05-20";
1414
/** Additional headers to include in requests. */
1515
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
1616
/** The default maximum time to wait for a response in seconds. */
@@ -32,7 +32,7 @@ export interface BaseRequestOptions {
3232
/** A hook to abort the request. */
3333
abortSignal?: AbortSignal;
3434
/** Override the Square-Version header */
35-
version?: "2026-01-22";
35+
version?: "2026-05-20";
3636
/** Additional query string parameters to include in the request. */
3737
queryParams?: Record<string, unknown>;
3838
/** Additional headers to include in the request. */
@@ -56,11 +56,11 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
5656
{
5757
"X-Fern-Language": "JavaScript",
5858
"X-Fern-SDK-Name": "square",
59-
"X-Fern-SDK-Version": "44.0.1",
60-
"User-Agent": "square/44.0.1",
59+
"X-Fern-SDK-Version": "44.1.0",
60+
"User-Agent": "square/44.1.0",
6161
"X-Fern-Runtime": core.RUNTIME.type,
6262
"X-Fern-Runtime-Version": core.RUNTIME.version,
63-
"Square-Version": options?.version ?? "2026-01-22",
63+
"Square-Version": options?.version ?? "2026-05-20",
6464
},
6565
options?.headers,
6666
);

src/api/resources/applePay/client/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class ApplePayClient {
6262
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
6363
_authRequest.headers,
6464
this._options?.headers,
65-
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-01-22" }),
65+
mergeOnlyDefinedHeaders({ "Square-Version": requestOptions?.version ?? "2026-05-20" }),
6666
requestOptions?.headers,
6767
);
6868
const _response = await (this._options.fetcher ?? core.fetcher)({

0 commit comments

Comments
 (0)