mirror of
https://github.com/Kong/insomnia.git
synced 2026-08-04 03:42:20 -04:00
* Create new methods colors * Implement first request logic * feat: enhance first request treatment logic with backend support and caching * feat: add experiment assignment analytics and related utility functions * feat: add reportRequestsCreated function to track request creation for first-request experiments * feat: enhance request creation reporting with session tracking * feat: add tests for reportRequestsCreated function to validate API interactions * feat: refactor localStorage methods for better error handling and state management * feat: enhance accessibility of error message in FirstRequestCreation component * feat: simplify user ownership check in project component * feat: update user tests to include onboarding state and related functions * feat: replace reportRequestCreated function with maybeLatchRequestThreshold for request tracking * feat: integrate onboarding state into first request treatment logic and refactor related functions * feat: integrate onboarding state into FirstRequestCreation component and enhance treatment logic * feat: implement maybeLatchRequestThreshold function for tracking first-request graduation * feat: refactor onboarding request handling and replace reportRequestsCreated with latchRequestThresholdReached * feat: simplify first request treatment logic and remove unused functions * feat: update latchRequestThresholdReached to use PATCH method for idempotent threshold latch * feat: update onboarding state interface and test to use reached_request_threshold instead of has_reached_request_threshold * feat: update latchRequestThresholdReached to use PUT method and correct endpoint for idempotent threshold latch * feat: remove reached_request_threshold from onboarding state and related tests * feat: integrate request tracking with maybeLatchRequestThreshold in clientAction * feat: update onboarding state handling and treatment logic in user module * feat: update @getinsomnia/insomnia-v3-fetch to version 1.0.20 in package-lock and package.json * feat: add padding to request URL bar and adjust MethodSelector alignment * feat: enhance request threshold handling by adding per-account request count baseline * feat: update analytics event emission for treatment assignments in first request flow
Insomnia API
This package contains the API functionality and types for the Insomnia application which could be shared across insomnia and inso-cli.
Usage
Install
Uses npm workspace, so no need to install.
Import
import { getUserProfile, getEncryptionKeys, type User, type UserEncryptionKeys } from 'insomnia-api';