@terminal3/t3n-sdk 3.12.5 → 3.12.7

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
 
@@ -3248,6 +3257,18 @@ interface TenantClientConfig {
3248
3257
  environment?: TenantSdkEnvironment;
3249
3258
  /** Node URL for `getScriptVersion` during business contract execution. Falls back to `baseUrl`. */
3250
3259
  endpoint?: string;
3260
+ /**
3261
+ * Authenticated base client the TenantClient dispatches RPCs through.
3262
+ * **Optional**, but required by every operation that issues a control or
3263
+ * business RPC: all `tenant.*` and `maps.*` helpers,
3264
+ * `contracts.register`/`publish`/`disable`/`enable`/`unregister`/`execute`,
3265
+ * and `token.getUsage` (which additionally needs a full authenticated
3266
+ * `T3nClient` exposing `getUsage`). Those throw
3267
+ * `"TenantClient config requires t3n ..."` at call time when it is absent.
3268
+ * Operations that do NOT need `t3n`: `admitForOrg` (signed cluster-admin call
3269
+ * over `fetch`), `executeBusinessContract` (dispatches through the `session`
3270
+ * argument), and pure config accessors such as `getEnvironment`.
3271
+ */
3251
3272
  t3n?: TenantBaseClient;
3252
3273
  baseUrl?: string;
3253
3274
  tenantDid?: string;