@0xmonaco/types 1.0.7 → 1.0.15

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.
@@ -29,6 +29,15 @@ export interface FailedMint {
29
29
  /** Error message describing why the mint failed */
30
30
  error: string;
31
31
  }
32
+ /** Parameters for a faucet mint request. */
33
+ export interface MintTokensParams {
34
+ /**
35
+ * Cloudflare Turnstile token proving the request came from a real client.
36
+ * Required when the gateway has captcha enforcement enabled; ignored
37
+ * otherwise.
38
+ */
39
+ turnstileToken?: string;
40
+ }
32
41
  /** Result of a faucet mint request. */
33
42
  export interface MintTokensResponse {
34
43
  /** Tokens that were successfully minted */
@@ -53,7 +62,9 @@ export interface FaucetAPI extends BaseAPI {
53
62
  * minted/failed breakdown; delivered legs still consume the quota), and
54
63
  * 503 when the faucet is unavailable (nothing credited, safe to retry).
55
64
  *
65
+ * @param params - Optional parameters (Turnstile captcha token when the
66
+ * gateway requires one)
56
67
  * @returns Promise resolving to the minted tokens and remaining quota
57
68
  */
58
- mint(): Promise<MintTokensResponse>;
69
+ mint(params?: MintTokensParams): Promise<MintTokensResponse>;
59
70
  }
@@ -4708,6 +4708,10 @@ export interface components {
4708
4708
  maxSlippageBps?: number | null;
4709
4709
  executionPriceRange?: components["schemas"]["ExecutionPriceRange"];
4710
4710
  };
4711
+ MintTokensRequest: {
4712
+ /** @description Cloudflare Turnstile token; required when faucet captcha enforcement is enabled */
4713
+ turnstileToken?: string | null;
4714
+ };
4711
4715
  MintTokensResponse: {
4712
4716
  minted?: components["schemas"]["MintedToken"][] | null;
4713
4717
  failed?: components["schemas"]["FailedMint"][] | null;
@@ -7510,7 +7514,11 @@ export interface operations {
7510
7514
  path?: never;
7511
7515
  cookie?: never;
7512
7516
  };
7513
- requestBody?: never;
7517
+ requestBody?: {
7518
+ content: {
7519
+ "application/json": components["schemas"]["MintTokensRequest"];
7520
+ };
7521
+ };
7514
7522
  responses: {
7515
7523
  /** @description OK */
7516
7524
  200: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "1.0.7",
3
+ "version": "1.0.15",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "lint": "biome lint ."
21
21
  },
22
22
  "dependencies": {
23
- "@0xmonaco/contracts": "1.0.7",
23
+ "@0xmonaco/contracts": "1.0.15",
24
24
  "zod": "^4.1.12"
25
25
  },
26
26
  "peerDependencies": {