@stable_sea/sdk 0.2.20 → 0.2.21

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.
package/README.md CHANGED
@@ -142,6 +142,12 @@ Use the member client before issuing an API key. Signup uses the existing
142
142
  business-email/OTP flow. After account and authenticator setup, sign in and select
143
143
  your business using the same session flow as Terminal.
144
144
 
145
+ Where the signup bot challenge is on, `GET /identity/bot_challenge_settings`
146
+ answers `required: true`, and the screener submit and code resend refuse a
147
+ request without a Cloudflare Turnstile `challenge_token` (`bot_challenge_required`,
148
+ `bot_challenge_failed`). Turnstile issues tokens only to its widget on a hostname
149
+ the site key allows.
150
+
145
151
  Read `/onboarding/status` and `/compliance/kyb/fields` to discover the current
146
152
  requirements and saved answers. Review registry proposals before confirming
147
153
  prefilled answers. Draft writes retain their native revision checks: send the
@@ -1491,7 +1491,7 @@ export interface components {
1491
1491
  /** @enum {string} */
1492
1492
  payment_rail: "onchain_ethereum" | "onchain_stellar" | "onchain_solana";
1493
1493
  /** @enum {string} */
1494
- symbol?: "USDC" | "XLM";
1494
+ symbol?: "USDC" | "XLM" | "YLDS";
1495
1495
  };
1496
1496
  ExternalWalletHolding: {
1497
1497
  /** @description The quantity held, in the token's own units. Exact, never rounded, and always above zero. */
@@ -839,6 +839,26 @@ export interface paths {
839
839
  patch?: never;
840
840
  trace?: never;
841
841
  };
842
+ "/identity/bot_challenge_settings": {
843
+ parameters: {
844
+ query?: never;
845
+ header?: never;
846
+ path?: never;
847
+ cookie?: never;
848
+ };
849
+ /**
850
+ * Get bot challenge settings
851
+ * @description Reports whether the signup screener submit and the signup code resend require a bot-challenge token, and the public site key to render the challenge widget with. Public.
852
+ */
853
+ get: operations["identity.bot_challenge_settings.get"];
854
+ put?: never;
855
+ post?: never;
856
+ delete?: never;
857
+ options?: never;
858
+ head?: never;
859
+ patch?: never;
860
+ trace?: never;
861
+ };
842
862
  "/identity/business/networks": {
843
863
  parameters: {
844
864
  query?: never;
@@ -1708,7 +1728,7 @@ export interface paths {
1708
1728
  put?: never;
1709
1729
  /**
1710
1730
  * Resend signup OTP
1711
- * @description Re-issues the OTP for an in-flight screener session by re-running registration step 1 for the supplied business email, minting a fresh OTP and re-delivering the email. Acknowledges the same way for an address that already has an account, which is then emailed a sign-in prompt rather than a code: this endpoint never reveals whether an address is registered.
1731
+ * @description Re-issues the OTP for an in-flight screener session by re-running registration step 1 for the supplied business email, minting a fresh OTP and re-delivering the email. Acknowledges the same way for an address that already has an account, which is then emailed a sign-in prompt rather than a code: this endpoint never reveals whether an address is registered. While GET /identity/bot_challenge_settings answers required=true, a request without a valid challenge_token is refused (bot_challenge_required / bot_challenge_failed) before any email.
1712
1732
  */
1713
1733
  post: operations["signup.screener.resend_otp"];
1714
1734
  delete?: never;
@@ -1728,7 +1748,7 @@ export interface paths {
1728
1748
  put?: never;
1729
1749
  /**
1730
1750
  * Submit signup screener
1731
- * @description Validates the screener payload (business email + business name) and starts an identity registration session. Answers the same way for an address that already has an account, which is then emailed a sign-in prompt rather than a code: this endpoint never reveals whether an address is registered.
1751
+ * @description Validates the screener payload (business email + business name) and starts an identity registration session. Answers the same way for an address that already has an account, which is then emailed a sign-in prompt rather than a code: this endpoint never reveals whether an address is registered. While GET /identity/bot_challenge_settings answers required=true, a request without a valid challenge_token is refused (bot_challenge_required / bot_challenge_failed) before any email or CRM lead.
1732
1752
  */
1733
1753
  post: operations["signup.screener.submit"];
1734
1754
  delete?: never;
@@ -2491,6 +2511,12 @@ export interface components {
2491
2511
  /** @description Required for Live keys; omitted for Test keys */
2492
2512
  totp_code?: string;
2493
2513
  };
2514
+ SignupBotChallengeSettings: {
2515
+ /** @description Whether POST /signup/screener/submit and POST /signup/screener/resend_otp refuse a request without a valid challenge_token. */
2516
+ required: boolean;
2517
+ /** @description The public site key to render the challenge widget with. Empty when required is false. */
2518
+ site_key: string;
2519
+ };
2494
2520
  NetworksOutput: {
2495
2521
  networks: components["schemas"]["NetworksNetworkItem"][] | null;
2496
2522
  /** @description Whether this deployment accepts changes to the networks. */
@@ -2979,6 +3005,8 @@ export interface components {
2979
3005
  Success?: boolean;
2980
3006
  };
2981
3007
  SignupResendOTPInput: {
3008
+ /** @description The bot-challenge token the widget issued for the resend_otp action. Required while GET /identity/bot_challenge_settings answers required=true; ignored otherwise. Single use. */
3009
+ challenge_token?: string;
2982
3010
  email?: string;
2983
3011
  otp_session_id?: string;
2984
3012
  };
@@ -2987,6 +3015,8 @@ export interface components {
2987
3015
  };
2988
3016
  SignupScreenerSubmitInput: {
2989
3017
  business_name?: string;
3018
+ /** @description The bot-challenge token the widget issued for the signup action. Required while GET /identity/bot_challenge_settings answers required=true; ignored otherwise. Single use. */
3019
+ challenge_token?: string;
2990
3020
  email?: string;
2991
3021
  first_name?: string;
2992
3022
  last_name?: string;
@@ -5903,6 +5933,35 @@ export interface operations {
5903
5933
  };
5904
5934
  };
5905
5935
  };
5936
+ "identity.bot_challenge_settings.get": {
5937
+ parameters: {
5938
+ query?: never;
5939
+ header?: never;
5940
+ path?: never;
5941
+ cookie?: never;
5942
+ };
5943
+ requestBody?: never;
5944
+ responses: {
5945
+ /** @description OK */
5946
+ 200: {
5947
+ headers: {
5948
+ [name: string]: unknown;
5949
+ };
5950
+ content: {
5951
+ "application/json": components["schemas"]["SignupBotChallengeSettings"];
5952
+ };
5953
+ };
5954
+ /** @description Error response. */
5955
+ default: {
5956
+ headers: {
5957
+ [name: string]: unknown;
5958
+ };
5959
+ content: {
5960
+ "application/json": components["schemas"]["HttputilAPIError"];
5961
+ };
5962
+ };
5963
+ };
5964
+ };
5906
5965
  "identity.business.networks.get": {
5907
5966
  parameters: {
5908
5967
  query?: never;
@@ -8064,6 +8123,33 @@ export interface operations {
8064
8123
  "application/json": components["schemas"]["SignupResendOTPAck"];
8065
8124
  };
8066
8125
  };
8126
+ /** @description Bad Request */
8127
+ 400: {
8128
+ headers: {
8129
+ [name: string]: unknown;
8130
+ };
8131
+ content: {
8132
+ "application/json": components["schemas"]["HttputilAPIError"];
8133
+ };
8134
+ };
8135
+ /** @description Too Many Requests */
8136
+ 429: {
8137
+ headers: {
8138
+ [name: string]: unknown;
8139
+ };
8140
+ content: {
8141
+ "application/json": components["schemas"]["HttputilAPIError"];
8142
+ };
8143
+ };
8144
+ /** @description Service Unavailable */
8145
+ 503: {
8146
+ headers: {
8147
+ [name: string]: unknown;
8148
+ };
8149
+ content: {
8150
+ "application/json": components["schemas"]["HttputilAPIError"];
8151
+ };
8152
+ };
8067
8153
  /** @description Error response. */
8068
8154
  default: {
8069
8155
  headers: {
@@ -8097,6 +8183,33 @@ export interface operations {
8097
8183
  "application/json": components["schemas"]["SignupScreenerSubmitOutput"];
8098
8184
  };
8099
8185
  };
8186
+ /** @description Bad Request */
8187
+ 400: {
8188
+ headers: {
8189
+ [name: string]: unknown;
8190
+ };
8191
+ content: {
8192
+ "application/json": components["schemas"]["HttputilAPIError"];
8193
+ };
8194
+ };
8195
+ /** @description Too Many Requests */
8196
+ 429: {
8197
+ headers: {
8198
+ [name: string]: unknown;
8199
+ };
8200
+ content: {
8201
+ "application/json": components["schemas"]["HttputilAPIError"];
8202
+ };
8203
+ };
8204
+ /** @description Service Unavailable */
8205
+ 503: {
8206
+ headers: {
8207
+ [name: string]: unknown;
8208
+ };
8209
+ content: {
8210
+ "application/json": components["schemas"]["HttputilAPIError"];
8211
+ };
8212
+ };
8100
8213
  /** @description Error response. */
8101
8214
  default: {
8102
8215
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stable_sea/sdk",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [