@arbidocs/client 0.3.166 → 0.3.167

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.cts CHANGED
@@ -412,6 +412,29 @@ interface paths {
412
412
  patch?: never;
413
413
  trace?: never;
414
414
  };
415
+ '/v1/user/sessions/{session_id}': {
416
+ parameters: {
417
+ query?: never;
418
+ header?: never;
419
+ path?: never;
420
+ cookie?: never;
421
+ };
422
+ get?: never;
423
+ put?: never;
424
+ post?: never;
425
+ delete?: never;
426
+ options?: never;
427
+ head?: never;
428
+ /**
429
+ * Patch Session
430
+ * @description Expire (ttl=0) or reset the remaining TTL of one of the caller's own sessions.
431
+ *
432
+ * Agents (as with /logout) may only touch their own session; principals may target
433
+ * any session in their session set, including ones other than the one they're on.
434
+ */
435
+ patch: operations['patch_session'];
436
+ trace?: never;
437
+ };
415
438
  '/v1/user/change_password': {
416
439
  parameters: {
417
440
  query?: never;
@@ -9989,6 +10012,17 @@ interface components {
9989
10012
  /** Ttl */
9990
10013
  ttl: number;
9991
10014
  };
10015
+ /**
10016
+ * SessionTTLPatchRequest
10017
+ * @description Body for PATCH /user/sessions/{session_id}.
10018
+ */
10019
+ SessionTTLPatchRequest: {
10020
+ /**
10021
+ * Ttl
10022
+ * @description New remaining TTL in seconds. 0 expires the session immediately; any other value resets its remaining time (capped at the server's max session TTL).
10023
+ */
10024
+ ttl: number;
10025
+ };
9992
10026
  /**
9993
10027
  * SessionTokenBridge
9994
10028
  * @description Client-decrypted tokens re-sealed to the session public key, posted at login.
@@ -12453,6 +12487,41 @@ interface operations {
12453
12487
  };
12454
12488
  };
12455
12489
  };
12490
+ patch_session: {
12491
+ parameters: {
12492
+ query?: never;
12493
+ header?: never;
12494
+ path: {
12495
+ session_id: string;
12496
+ };
12497
+ cookie?: never;
12498
+ };
12499
+ requestBody: {
12500
+ content: {
12501
+ 'application/json': components['schemas']['SessionTTLPatchRequest'];
12502
+ };
12503
+ };
12504
+ responses: {
12505
+ /** @description Successful Response */
12506
+ 200: {
12507
+ headers: {
12508
+ [name: string]: unknown;
12509
+ };
12510
+ content: {
12511
+ 'application/json': components['schemas']['SessionInfoResponse'];
12512
+ };
12513
+ };
12514
+ /** @description Validation Error */
12515
+ 422: {
12516
+ headers: {
12517
+ [name: string]: unknown;
12518
+ };
12519
+ content: {
12520
+ 'application/json': components['schemas']['HTTPValidationError'];
12521
+ };
12522
+ };
12523
+ };
12524
+ };
12456
12525
  change_password: {
12457
12526
  parameters: {
12458
12527
  query?: never;
package/dist/index.d.ts CHANGED
@@ -412,6 +412,29 @@ interface paths {
412
412
  patch?: never;
413
413
  trace?: never;
414
414
  };
415
+ '/v1/user/sessions/{session_id}': {
416
+ parameters: {
417
+ query?: never;
418
+ header?: never;
419
+ path?: never;
420
+ cookie?: never;
421
+ };
422
+ get?: never;
423
+ put?: never;
424
+ post?: never;
425
+ delete?: never;
426
+ options?: never;
427
+ head?: never;
428
+ /**
429
+ * Patch Session
430
+ * @description Expire (ttl=0) or reset the remaining TTL of one of the caller's own sessions.
431
+ *
432
+ * Agents (as with /logout) may only touch their own session; principals may target
433
+ * any session in their session set, including ones other than the one they're on.
434
+ */
435
+ patch: operations['patch_session'];
436
+ trace?: never;
437
+ };
415
438
  '/v1/user/change_password': {
416
439
  parameters: {
417
440
  query?: never;
@@ -9989,6 +10012,17 @@ interface components {
9989
10012
  /** Ttl */
9990
10013
  ttl: number;
9991
10014
  };
10015
+ /**
10016
+ * SessionTTLPatchRequest
10017
+ * @description Body for PATCH /user/sessions/{session_id}.
10018
+ */
10019
+ SessionTTLPatchRequest: {
10020
+ /**
10021
+ * Ttl
10022
+ * @description New remaining TTL in seconds. 0 expires the session immediately; any other value resets its remaining time (capped at the server's max session TTL).
10023
+ */
10024
+ ttl: number;
10025
+ };
9992
10026
  /**
9993
10027
  * SessionTokenBridge
9994
10028
  * @description Client-decrypted tokens re-sealed to the session public key, posted at login.
@@ -12453,6 +12487,41 @@ interface operations {
12453
12487
  };
12454
12488
  };
12455
12489
  };
12490
+ patch_session: {
12491
+ parameters: {
12492
+ query?: never;
12493
+ header?: never;
12494
+ path: {
12495
+ session_id: string;
12496
+ };
12497
+ cookie?: never;
12498
+ };
12499
+ requestBody: {
12500
+ content: {
12501
+ 'application/json': components['schemas']['SessionTTLPatchRequest'];
12502
+ };
12503
+ };
12504
+ responses: {
12505
+ /** @description Successful Response */
12506
+ 200: {
12507
+ headers: {
12508
+ [name: string]: unknown;
12509
+ };
12510
+ content: {
12511
+ 'application/json': components['schemas']['SessionInfoResponse'];
12512
+ };
12513
+ };
12514
+ /** @description Validation Error */
12515
+ 422: {
12516
+ headers: {
12517
+ [name: string]: unknown;
12518
+ };
12519
+ content: {
12520
+ 'application/json': components['schemas']['HTTPValidationError'];
12521
+ };
12522
+ };
12523
+ };
12524
+ };
12456
12525
  change_password: {
12457
12526
  parameters: {
12458
12527
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.166",
3
+ "version": "0.3.167",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",