@omelhorsite/sdk 0.4.2 → 0.4.3

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.js CHANGED
@@ -10106,6 +10106,9 @@ class AccountSessionsNamespace extends Resource {
10106
10106
  const session = await this.current(options);
10107
10107
  await this.http.delete(`/sessions/${encodeURIComponent(session.id)}`, options);
10108
10108
  }
10109
+ async revoke(id, options = {}) {
10110
+ await this.http.delete(`/sessions/${encodeURIComponent(id)}`, options);
10111
+ }
10109
10112
  }
10110
10113
 
10111
10114
  class AccountNamespace extends Resource {
@@ -229,6 +229,13 @@ export declare class AccountSessionsNamespace extends Resource {
229
229
  * endpoint ignores it, so the call stays correct if that is ever fixed.
230
230
  */
231
231
  revokeCurrent(options?: RequestOptions): Promise<void>;
232
+ /**
233
+ * `DELETE /sessions/:id` - ends one of YOUR sessions, e.g. another device's.
234
+ * Ending the calling session clears its cookie as well.
235
+ *
236
+ * @throws {OmsApiError} 404 for a session that is not yours or no longer exists.
237
+ */
238
+ revoke(id: Id, options?: RequestOptions): Promise<void>;
232
239
  }
233
240
  /** The `account` namespace, reachable as `oms.account`. */
234
241
  export declare class AccountNamespace extends Resource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omelhorsite/sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "TypeScript SDK for the omelhorsite API. Isolate-safe: no node builtins, no environment access, no stdout.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",