@0xmonaco/types 1.0.92 → 1.0.94

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.
@@ -1,5 +1,6 @@
1
1
  /**
2
- * This file was auto-generated by openapi-typescript.
2
+ * This file was auto-generated by scripts/gen-wire-schema.ts (`make ts-wire-gen`)
3
+ * from docs/src/proto-openapi/api/openapi.yaml.
3
4
  * Do not make direct changes to the file.
4
5
  */
5
6
  export interface paths {
@@ -979,16 +980,18 @@ export interface paths {
979
980
  * Get the caller's region status
980
981
  * @description Get the caller's region status.
981
982
  *
982
- * Reports whether Monaco is available in the caller's region, so a
983
- * frontend can show a region notice instead of failing on the next call.
984
- * Public endpoint — no authentication required — and always answers 200.
985
- * Over REST it answers from restricted regions too: GET on this path is
986
- * the one request the production edge lets through. Over gRPC the edge
987
- * refuses a restricted caller with HTTP 451 before it reaches this RPC,
988
- * so clients that need the notice should call the REST endpoint. Every
989
- * other endpoint refuses callers from a restricted region with 451
990
- * REGION_RESTRICTED (gRPC: PERMISSION_DENIED with a google.rpc.ErrorInfo
991
- * reason REGION_RESTRICTED).
983
+ * Reports whether trading is available in the caller's region, so a
984
+ * frontend can show a region notice and hide trading instead of failing on
985
+ * the next write. Public endpoint — no authentication required — and always
986
+ * answers 200, from every region.
987
+ *
988
+ * A caller from a restricted region keeps every read (market data,
989
+ * balances, positions, orders, withdrawal lists), the WebSocket API,
990
+ * signing in (POST /api/v1/auth/challenge, /verify, /refresh, /revoke)
991
+ * and withdrawing (POST /api/v1/withdrawals). Every other write — placing,
992
+ * replacing or cancelling orders, closing positions, deposits, transfers
993
+ * and account changes — is refused with 451 REGION_RESTRICTED (gRPC:
994
+ * PERMISSION_DENIED with a google.rpc.ErrorInfo reason REGION_RESTRICTED).
992
995
  */
993
996
  get: operations["get_region_status"];
994
997
  put?: never;
@@ -3515,31 +3518,6 @@ export interface paths {
3515
3518
  patch?: never;
3516
3519
  trace?: never;
3517
3520
  };
3518
- "/api/v1/whitelist": {
3519
- parameters: {
3520
- query?: never;
3521
- header?: never;
3522
- path?: never;
3523
- cookie?: never;
3524
- };
3525
- get?: never;
3526
- put?: never;
3527
- /**
3528
- * Whitelist applications closed
3529
- * @deprecated
3530
- * @description Public whitelist applications are closed.
3531
- *
3532
- * Retained for client compatibility. Every decoded submission is rejected with
3533
- * HTTP 403 Forbidden / gRPC PERMISSION_DENIED and no applicant data is changed.
3534
- * Existing applications and administrative approvals remain available.
3535
- */
3536
- post: operations["submit_whitelist"];
3537
- delete?: never;
3538
- options?: never;
3539
- head?: never;
3540
- patch?: never;
3541
- trace?: never;
3542
- };
3543
3521
  "/api/v1/withdrawals": {
3544
3522
  parameters: {
3545
3523
  query?: never;
@@ -7268,7 +7246,7 @@ export interface components {
7268
7246
  };
7269
7247
  GetRegionStatusResponse: {
7270
7248
  /**
7271
- * @description True when Monaco is not available in the caller's region; every other endpoint then answers 451 REGION_RESTRICTED
7249
+ * @description True when trading is not available in the caller's region; writes other than signing in and withdrawing then answer 451 REGION_RESTRICTED
7272
7250
  * @example false
7273
7251
  */
7274
7252
  restricted?: boolean | null;
@@ -10724,42 +10702,6 @@ export interface components {
10724
10702
  */
10725
10703
  isActive?: boolean | null;
10726
10704
  };
10727
- SubmitWhitelistRequest: {
10728
- /**
10729
- * @description Applicant wallet address
10730
- * @example 0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5
10731
- */
10732
- walletAddress: string;
10733
- /**
10734
- * Format: email
10735
- * @description Applicant email address
10736
- * @example user@example.com
10737
- */
10738
- email: string;
10739
- /**
10740
- * @description Applicant Twitter/X username
10741
- * @example monaco_user
10742
- */
10743
- twitterUsername?: string | null;
10744
- /**
10745
- * @description Applicant Telegram username
10746
- * @example monaco_user
10747
- */
10748
- telegramUsername?: string | null;
10749
- };
10750
- SubmitWhitelistResponse: {
10751
- /**
10752
- * @description Legacy success message; submissions now return HTTP 403 / gRPC PERMISSION_DENIED
10753
- * @example Your whitelist application has been submitted successfully! We'll review it and get back to you soon.
10754
- */
10755
- message?: string | null;
10756
- /**
10757
- * Format: uuid
10758
- * @description Legacy created user UUID; retired submissions do not create users
10759
- * @example 123e4567-e89b-12d3-a456-426614174000
10760
- */
10761
- userId?: string | null;
10762
- };
10763
10705
  SweeperChain: {
10764
10706
  /**
10765
10707
  * Format: int64
@@ -19824,51 +19766,6 @@ export interface operations {
19824
19766
  };
19825
19767
  };
19826
19768
  };
19827
- submit_whitelist: {
19828
- parameters: {
19829
- query?: never;
19830
- header?: never;
19831
- path?: never;
19832
- cookie?: never;
19833
- };
19834
- requestBody: {
19835
- content: {
19836
- "application/json": components["schemas"]["SubmitWhitelistRequest"];
19837
- };
19838
- };
19839
- responses: {
19840
- /** @description OK */
19841
- 200: {
19842
- headers: {
19843
- [name: string]: unknown;
19844
- };
19845
- content: {
19846
- "application/json": components["schemas"]["SubmitWhitelistResponse"];
19847
- };
19848
- };
19849
- /** @description Invalid request parameters */
19850
- 400: {
19851
- headers: {
19852
- [name: string]: unknown;
19853
- };
19854
- content?: never;
19855
- };
19856
- /** @description Public whitelist applications are closed. No applicant data is changed. */
19857
- 403: {
19858
- headers: {
19859
- [name: string]: unknown;
19860
- };
19861
- content?: never;
19862
- };
19863
- /** @description Internal server error */
19864
- 500: {
19865
- headers: {
19866
- [name: string]: unknown;
19867
- };
19868
- content?: never;
19869
- };
19870
- };
19871
- };
19872
19769
  list_pending_withdrawals: {
19873
19770
  parameters: {
19874
19771
  query?: {
@@ -1,4 +1,5 @@
1
1
  /**
2
- * This file was auto-generated by openapi-typescript.
2
+ * This file was auto-generated by scripts/gen-wire-schema.ts (`make ts-wire-gen`)
3
+ * from docs/src/proto-openapi/api/openapi.yaml.
3
4
  * Do not make direct changes to the file.
4
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "1.0.92",
3
+ "version": "1.0.94",
4
4
  "type": "module",
5
5
  "homepage": "https://docs.0xmonaco.com/sdk/typescript",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "lint": "biome lint ."
17
17
  },
18
18
  "dependencies": {
19
- "@0xmonaco/contracts": "1.0.92",
19
+ "@0xmonaco/contracts": "1.0.94",
20
20
  "zod": "^4.1.12"
21
21
  },
22
22
  "peerDependencies": {
@@ -1,33 +0,0 @@
1
- /**
2
- * Compatibility types for the retired public whitelist endpoint.
3
- * Submissions return HTTP 403 FORBIDDEN without changing applicant data.
4
- */
5
- import type { BaseAPI } from "../api";
6
- /** Body for a whitelist application. */
7
- export interface SubmitWhitelistRequest {
8
- /** Applicant wallet address (0x-prefixed, 40 hex chars) */
9
- walletAddress: string;
10
- /** Applicant email address */
11
- email: string;
12
- /** Applicant Twitter/X username (1-15 chars) */
13
- twitterUsername?: string;
14
- /** Applicant Telegram username (5-32 chars) */
15
- telegramUsername?: string;
16
- }
17
- /** Legacy success response, retained for compatibility; retired submissions return HTTP 403. */
18
- export interface SubmitWhitelistResponse {
19
- /** Human-readable status message */
20
- message: string;
21
- /** Created user UUID (pending approval) */
22
- userId: string | null;
23
- }
24
- /**
25
- * Whitelist API interface. The submit endpoint is public (no auth required).
26
- */
27
- export interface WhitelistAPI extends BaseAPI {
28
- /**
29
- * @deprecated Public whitelist applications are closed. The server returns HTTP 403.
30
- * @param body - Legacy applicant details; the request shape is retained for compatibility.
31
- */
32
- submit(body: SubmitWhitelistRequest): Promise<SubmitWhitelistResponse>;
33
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Compatibility types for the retired public whitelist endpoint.
3
- * Submissions return HTTP 403 FORBIDDEN without changing applicant data.
4
- */