Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit beced32

Browse files
committed
SDK regeneration
1 parent 6dbe575 commit beced32

File tree

16 files changed

+141
-168
lines changed

16 files changed

+141
-168
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,3 @@ jobs:
2828

2929
- name: Compile
3030
run: yarn && yarn test
31-
32-
publish:
33-
needs: [ compile, test ]
34-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: Checkout repo
38-
uses: actions/checkout@v3
39-
- name: Set up node
40-
uses: actions/setup-node@v3
41-
- name: Install dependencies
42-
run: yarn install
43-
- name: Build
44-
run: yarn build
45-
46-
- name: Publish to npm
47-
run: |
48-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
49-
if [[ ${GITHUB_REF} == *alpha* ]]; then
50-
npm publish --access public --tag alpha
51-
elif [[ ${GITHUB_REF} == *beta* ]]; then
52-
npm publish --access public --tag beta
53-
else
54-
npm publish --access public
55-
fi
56-
env:
57-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# Crossmint TypeScript Library
22

33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
4-
[![npm shield](https://img.shields.io/npm/v/crossmint)](https://www.npmjs.com/package/crossmint)
4+
[![npm shield](https://img.shields.io/npm/v/@crossmint/autogen-sdk-ts)](https://www.npmjs.com/package/@crossmint/autogen-sdk-ts)
55

66
The Crossmint TypeScript library provides convenient access to the Crossmint API from TypeScript.
77

88
## Installation
99

1010
```sh
11-
npm i -s crossmint
11+
npm i -s @crossmint/autogen-sdk-ts
1212
```
1313

1414
## Usage
1515

1616
Instantiate and use the client with the following:
1717

1818
```typescript
19-
import { CrossmintClient, Crossmint } from "crossmint";
19+
import { CrossmintClient, Crossmint } from "@crossmint/autogen-sdk-ts";
2020

2121
const client = new CrossmintClient({ apiKey: "YOUR_API_KEY", clientSecret: "YOUR_CLIENT_SECRET" });
2222
await client.wallets({});
@@ -28,7 +28,7 @@ The SDK exports all request and response types as TypeScript interfaces. Simply
2828
following namespace:
2929

3030
```typescript
31-
import { Crossmint } from "crossmint";
31+
import { Crossmint } from "@crossmint/autogen-sdk-ts";
3232

3333
const request: Crossmint.CreateOrderRequest = {
3434
...
@@ -41,7 +41,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
4141
will be thrown.
4242

4343
```typescript
44-
import { CrossmintError } from "crossmint";
44+
import { CrossmintError } from "@crossmint/autogen-sdk-ts";
4545

4646
try {
4747
await client.wallets(...);
@@ -116,7 +116,7 @@ The SDK provides a way for your to customize the underlying HTTP client / Fetch
116116
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
117117

118118
```typescript
119-
import { CrossmintClient } from "crossmint";
119+
import { CrossmintClient } from "@crossmint/autogen-sdk-ts";
120120

121121
const client = new CrossmintClient({
122122
...

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "crossmint",
3-
"version": "0.2.2",
2+
"name": "@crossmint/autogen-sdk-ts",
3+
"version": "0.2.3",
44
"private": false,
5-
"repository": "https://github.com/Paella-Labs/typescript-sdk",
5+
"repository": "https://github.com/Crossmint/autogen-sdk-ts",
66
"main": "./index.js",
77
"types": "./index.d.ts",
88
"scripts": {

src/Client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export class CrossmintClient {
8383
method: "GET",
8484
headers: {
8585
"X-Fern-Language": "JavaScript",
86-
"X-Fern-SDK-Name": "crossmint",
87-
"X-Fern-SDK-Version": "0.2.2",
86+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
87+
"X-Fern-SDK-Version": "0.2.3",
8888
"X-Fern-Runtime": core.RUNTIME.type,
8989
"X-Fern-Runtime-Version": core.RUNTIME.version,
9090
...(await this._getCustomAuthorizationHeaders()),
@@ -164,8 +164,8 @@ export class CrossmintClient {
164164
method: "POST",
165165
headers: {
166166
"X-Fern-Language": "JavaScript",
167-
"X-Fern-SDK-Name": "crossmint",
168-
"X-Fern-SDK-Version": "0.2.2",
167+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
168+
"X-Fern-SDK-Version": "0.2.3",
169169
"X-Fern-Runtime": core.RUNTIME.type,
170170
"X-Fern-Runtime-Version": core.RUNTIME.version,
171171
...(await this._getCustomAuthorizationHeaders()),
@@ -244,8 +244,8 @@ export class CrossmintClient {
244244
method: "POST",
245245
headers: {
246246
"X-Fern-Language": "JavaScript",
247-
"X-Fern-SDK-Name": "crossmint",
248-
"X-Fern-SDK-Version": "0.2.2",
247+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
248+
"X-Fern-SDK-Version": "0.2.3",
249249
"X-Fern-Runtime": core.RUNTIME.type,
250250
"X-Fern-Runtime-Version": core.RUNTIME.version,
251251
...(await this._getCustomAuthorizationHeaders()),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export class Actions {
5959
method: "GET",
6060
headers: {
6161
"X-Fern-Language": "JavaScript",
62-
"X-Fern-SDK-Name": "crossmint",
63-
"X-Fern-SDK-Version": "0.2.2",
62+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
63+
"X-Fern-SDK-Version": "0.2.3",
6464
"X-Fern-Runtime": core.RUNTIME.type,
6565
"X-Fern-Runtime-Version": core.RUNTIME.version,
6666
...(await this._getCustomAuthorizationHeaders()),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export class Checkout {
6161
method: "POST",
6262
headers: {
6363
"X-Fern-Language": "JavaScript",
64-
"X-Fern-SDK-Name": "crossmint",
65-
"X-Fern-SDK-Version": "0.2.2",
64+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
65+
"X-Fern-SDK-Version": "0.2.3",
6666
"X-Fern-Runtime": core.RUNTIME.type,
6767
"X-Fern-Runtime-Version": core.RUNTIME.version,
6868
...(await this._getCustomAuthorizationHeaders()),

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export class Headless {
6767
method: "POST",
6868
headers: {
6969
"X-Fern-Language": "JavaScript",
70-
"X-Fern-SDK-Name": "crossmint",
71-
"X-Fern-SDK-Version": "0.2.2",
70+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
71+
"X-Fern-SDK-Version": "0.2.3",
7272
"X-Fern-Runtime": core.RUNTIME.type,
7373
"X-Fern-Runtime-Version": core.RUNTIME.version,
7474
...(await this._getCustomAuthorizationHeaders()),
@@ -148,8 +148,8 @@ export class Headless {
148148
method: "GET",
149149
headers: {
150150
"X-Fern-Language": "JavaScript",
151-
"X-Fern-SDK-Name": "crossmint",
152-
"X-Fern-SDK-Version": "0.2.2",
151+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
152+
"X-Fern-SDK-Version": "0.2.3",
153153
"X-Fern-Runtime": core.RUNTIME.type,
154154
"X-Fern-Runtime-Version": core.RUNTIME.version,
155155
...(await this._getCustomAuthorizationHeaders()),
@@ -233,8 +233,8 @@ export class Headless {
233233
method: "PATCH",
234234
headers: {
235235
"X-Fern-Language": "JavaScript",
236-
"X-Fern-SDK-Name": "crossmint",
237-
"X-Fern-SDK-Version": "0.2.2",
236+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
237+
"X-Fern-SDK-Version": "0.2.3",
238238
"X-Fern-Runtime": core.RUNTIME.type,
239239
"X-Fern-Runtime-Version": core.RUNTIME.version,
240240
...(await this._getCustomAuthorizationHeaders()),

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export class NfTs {
7070
method: "POST",
7171
headers: {
7272
"X-Fern-Language": "JavaScript",
73-
"X-Fern-SDK-Name": "crossmint",
74-
"X-Fern-SDK-Version": "0.2.2",
73+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
74+
"X-Fern-SDK-Version": "0.2.3",
7575
"X-Fern-Runtime": core.RUNTIME.type,
7676
"X-Fern-Runtime-Version": core.RUNTIME.version,
7777
...(await this._getCustomAuthorizationHeaders()),
@@ -170,8 +170,8 @@ export class NfTs {
170170
method: "GET",
171171
headers: {
172172
"X-Fern-Language": "JavaScript",
173-
"X-Fern-SDK-Name": "crossmint",
174-
"X-Fern-SDK-Version": "0.2.2",
173+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
174+
"X-Fern-SDK-Version": "0.2.3",
175175
"X-Fern-Runtime": core.RUNTIME.type,
176176
"X-Fern-Runtime-Version": core.RUNTIME.version,
177177
...(await this._getCustomAuthorizationHeaders()),
@@ -268,8 +268,8 @@ export class NfTs {
268268
method: "POST",
269269
headers: {
270270
"X-Fern-Language": "JavaScript",
271-
"X-Fern-SDK-Name": "crossmint",
272-
"X-Fern-SDK-Version": "0.2.2",
271+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
272+
"X-Fern-SDK-Version": "0.2.3",
273273
"X-Fern-Runtime": core.RUNTIME.type,
274274
"X-Fern-Runtime-Version": core.RUNTIME.version,
275275
...(await this._getCustomAuthorizationHeaders()),
@@ -364,8 +364,8 @@ export class NfTs {
364364
method: "POST",
365365
headers: {
366366
"X-Fern-Language": "JavaScript",
367-
"X-Fern-SDK-Name": "crossmint",
368-
"X-Fern-SDK-Version": "0.2.2",
367+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
368+
"X-Fern-SDK-Version": "0.2.3",
369369
"X-Fern-Runtime": core.RUNTIME.type,
370370
"X-Fern-Runtime-Version": core.RUNTIME.version,
371371
"x-idempotency-key": idempotencyKey != null ? idempotencyKey : undefined,
@@ -457,8 +457,8 @@ export class NfTs {
457457
method: "GET",
458458
headers: {
459459
"X-Fern-Language": "JavaScript",
460-
"X-Fern-SDK-Name": "crossmint",
461-
"X-Fern-SDK-Version": "0.2.2",
460+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
461+
"X-Fern-SDK-Version": "0.2.3",
462462
"X-Fern-Runtime": core.RUNTIME.type,
463463
"X-Fern-Runtime-Version": core.RUNTIME.version,
464464
...(await this._getCustomAuthorizationHeaders()),
@@ -558,8 +558,8 @@ export class NfTs {
558558
method: "PUT",
559559
headers: {
560560
"X-Fern-Language": "JavaScript",
561-
"X-Fern-SDK-Name": "crossmint",
562-
"X-Fern-SDK-Version": "0.2.2",
561+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
562+
"X-Fern-SDK-Version": "0.2.3",
563563
"X-Fern-Runtime": core.RUNTIME.type,
564564
"X-Fern-Runtime-Version": core.RUNTIME.version,
565565
...(await this._getCustomAuthorizationHeaders()),
@@ -650,8 +650,8 @@ export class NfTs {
650650
method: "DELETE",
651651
headers: {
652652
"X-Fern-Language": "JavaScript",
653-
"X-Fern-SDK-Name": "crossmint",
654-
"X-Fern-SDK-Version": "0.2.2",
653+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
654+
"X-Fern-SDK-Version": "0.2.3",
655655
"X-Fern-Runtime": core.RUNTIME.type,
656656
"X-Fern-Runtime-Version": core.RUNTIME.version,
657657
...(await this._getCustomAuthorizationHeaders()),
@@ -751,8 +751,8 @@ export class NfTs {
751751
method: "PATCH",
752752
headers: {
753753
"X-Fern-Language": "JavaScript",
754-
"X-Fern-SDK-Name": "crossmint",
755-
"X-Fern-SDK-Version": "0.2.2",
754+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
755+
"X-Fern-SDK-Version": "0.2.3",
756756
"X-Fern-Runtime": core.RUNTIME.type,
757757
"X-Fern-Runtime-Version": core.RUNTIME.version,
758758
...(await this._getCustomAuthorizationHeaders()),
@@ -836,8 +836,8 @@ export class NfTs {
836836
method: "DELETE",
837837
headers: {
838838
"X-Fern-Language": "JavaScript",
839-
"X-Fern-SDK-Name": "crossmint",
840-
"X-Fern-SDK-Version": "0.2.2",
839+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
840+
"X-Fern-SDK-Version": "0.2.3",
841841
"X-Fern-Runtime": core.RUNTIME.type,
842842
"X-Fern-Runtime-Version": core.RUNTIME.version,
843843
...(await this._getCustomAuthorizationHeaders()),
@@ -939,8 +939,8 @@ export class NfTs {
939939
method: "PATCH",
940940
headers: {
941941
"X-Fern-Language": "JavaScript",
942-
"X-Fern-SDK-Name": "crossmint",
943-
"X-Fern-SDK-Version": "0.2.2",
942+
"X-Fern-SDK-Name": "@crossmint/autogen-sdk-ts",
943+
"X-Fern-SDK-Version": "0.2.3",
944944
"X-Fern-Runtime": core.RUNTIME.type,
945945
"X-Fern-Runtime-Version": core.RUNTIME.version,
946946
...(await this._getCustomAuthorizationHeaders()),

0 commit comments

Comments
 (0)