@terminal3/t3n-sdk 5.27.0 → 5.29.0

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
@@ -310,6 +310,12 @@ interface OidcCredentials {
310
310
  interface EmailOtpCredentials {
311
311
  email: string;
312
312
  getOtpCode: () => Promise<string>;
313
+ /**
314
+ * BCP-47 language tag for the OTP email (e.g. `"ja"`, `"ja-JP"`).
315
+ * A tag whose primary language subtag is `ja` gets the Japanese email;
316
+ * anything else, or no tag, gets English.
317
+ */
318
+ locale?: string;
313
319
  }
314
320
  /**
315
321
  * Base authentication input with method discriminator
@@ -1124,8 +1130,8 @@ declare function parseContractResponse<T = unknown>(raw: string, schema?: Contra
1124
1130
 
1125
1131
  /**
1126
1132
  * Delegated agents and the T3N OAuth connections that act as them. Wire types
1127
- * and strict decoders for the `tee:organisation` functions the `T3nClient`
1128
- * wrappers dispatch.
1133
+ * and strict decoders for the functions the `T3nClient` wrappers dispatch:
1134
+ * agents on `tee:organisation`, OAuth connections on `tee:session`.
1129
1135
  */
1130
1136
 
1131
1137
  /**
@@ -3518,7 +3524,7 @@ declare class T3nClient {
3518
3524
  * What the consent page shows about an OAuth client, before any
3519
3525
  * authorisation. Read only.
3520
3526
  *
3521
- * Dispatches `oauth-describe-client` on `tee:organisation/contracts`. The
3527
+ * Dispatches `oauth-describe-client` on `tee:session/contracts`. The
3522
3528
  * enclave fetches a CIMD client's metadata document itself and checks
3523
3529
  * `redirectUri` against the client's registration and the operator's
3524
3530
  * policy. On a refusal the page shows the error and does not redirect.
@@ -3532,7 +3538,7 @@ declare class T3nClient {
3532
3538
  * Let an OAuth client act as one of the caller's own T3N agents, and get the
3533
3539
  * one-time code to send back to it.
3534
3540
  *
3535
- * Dispatches `oauth-authorise` on `tee:organisation/contracts`. The session
3541
+ * Dispatches `oauth-authorise` on `tee:session/contracts`. The session
3536
3542
  * must be a person acting for themselves. The code is bound to the client,
3537
3543
  * the redirect URI, the resource and the PKCE challenge; the client redeems
3538
3544
  * it at the node's token endpoint.
@@ -3547,7 +3553,7 @@ declare class T3nClient {
3547
3553
  * The caller's own OAuth connections, including revoked and expired ones
3548
3554
  * not yet swept. Self only.
3549
3555
  *
3550
- * Dispatches `list-oauth-connections` on `tee:organisation/contracts`.
3556
+ * Dispatches `list-oauth-connections` on `tee:session/contracts`.
3551
3557
  *
3552
3558
  * @throws {RpcError} when the contract refuses
3553
3559
  * @throws {ContractResponseError} when the response does not match its shape
@@ -3558,7 +3564,7 @@ declare class T3nClient {
3558
3564
  * working at once; an access token already issued runs to its expiry. The
3559
3565
  * agent is untouched. Idempotent.
3560
3566
  *
3561
- * Dispatches `revoke-oauth-connection` on `tee:organisation/contracts`.
3567
+ * Dispatches `revoke-oauth-connection` on `tee:session/contracts`.
3562
3568
  *
3563
3569
  * @throws {RpcError} when the caller owns no connection with that id
3564
3570
  * @throws {ContractResponseError} when the response does not name the connection