@terminal3/t3n-sdk 3.12.4 → 3.12.6

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/dist/index.d.ts CHANGED
@@ -3148,7 +3148,16 @@ declare function verifyDkgAttestation(encapsKeyB64: string, attestationMsgB64: s
3148
3148
  */
3149
3149
 
3150
3150
  /**
3151
- * Validate SDK configuration
3151
+ * Validate the shape of an {@link SdkConfig}-like object.
3152
+ *
3153
+ * Checks that `config` is an object with:
3154
+ * - `environment` — a string that is one of {@link VALID_ENVS};
3155
+ * - `nodeUrl` — a string beginning with `http://` or `https://`;
3156
+ * - `version` — a non-empty string.
3157
+ *
3158
+ * Returns `{ valid, errors }`: `valid` is `true` only when `errors` is empty;
3159
+ * `errors` collects one human-readable message per failed check (it does not
3160
+ * throw). Pairs with {@link loadConfig}, whose output always validates.
3152
3161
  */
3153
3162
  declare function validateConfig(config: unknown): ConfigValidationResult;
3154
3163