New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@epilot/user-client

Package Overview
Dependencies
Maintainers
22
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@epilot/user-client - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

LICENSE

2

dist/definition.js

@@ -1,1 +0,1 @@

!function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(r(279));t.default=i.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"User API","version":"2.0.0","description":"Manage users in epilot organization(s)\\n"},"tags":[{"name":"User V2","description":"User API V2"},{"name":"User V1","description":"Legacy User API"}],"security":[{"EpilotAuth":[]}],"paths":{"/v2/users/public/signup":{"post":{"operationId":"signUpUser","summary":"signUpUser","security":[],"parameters":[{"name":"token","in":"query","description":"Invitation partner token","required":false,"schema":{"type":"string"}}],"tags":["User V2"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"organization_detail":{"additionalProperties":true,"type":"object","properties":{"type":{"type":"string","enum":["Vendor","Partner"]},"name":{"type":"string","example":"Epilot"},"pricing_tier":{"type":"string","example":"professional"},"email":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"is_privacy_policy_checked":{"type":"boolean","example":false,"nullable":true},"is_terms_and_conditions_checked":{"type":"boolean","example":false,"nullable":true}},"required":["type","name","pricing_tier","email"]},"user_detail":{"type":"object","properties":{"full_name":{"type":"string","example":"Example user"},"email":{"type":"string","format":"email"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}},"required":["full_name","email","password"]},"language":{"type":"string","description":"Language for user invitation email","enum":["en","de"],"default":"en"}}}}}},"responses":{"200":{"description":"The created user and organization","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"email":{"type":"string","format":"email"},"display_name":{"type":"string","example":"Example user","deprecated":true},"name":{"type":"string","example":"Example user","deprecated":true},"preferred_language":{"type":"string","example":"de"},"signature":{"type":"string","example":"<p>Thanks</p>"},"roles":{"type":"array","items":{"type":"string","example":"Owner"},"deprecated":true,"description":"Deprecated! Please use Permissions API instead"},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar.png"},"thumbnail_32":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}},"required":["id","organization_id","email","name","preferred_language","roles","properties"]},"organization":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["Vendor","Partner"],"nullable":true},"name":{"type":"string","example":"Epilot","nullable":true},"signature":{"type":"string","example":"<p>Thanks</p>","nullable":true},"symbol":{"type":"string","example":"EPI","nullable":true},"pricing_tier":{"type":"string","example":"professional","nullable":true},"email":{"type":"string","example":"someone@epilot.cloud","nullable":true},"phone":{"type":"string","example":49123123123,"nullable":true},"website":{"type":"string","example":"https://epilot.cloud","nullable":true},"address":{"type":"object","properties":{"country":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"street":{"type":"string","nullable":true},"street_number":{"type":"string","nullable":true}}},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png","nullable":true},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png","nullable":true},"is_unlicensed_org":{"type":"boolean","example":false,"nullable":true}}}}}}}}}}},"/v2/users/me":{"get":{"operationId":"getMeV2","summary":"getMeV2","description":"Get currently logged in user","tags":["User V2"],"responses":{"200":{"description":"currently logged in user","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}}}}}}}},"/v2/users":{"get":{"operationId":"listUsersV2","summary":"listUsersV2","parameters":[{"name":"query","in":"query","description":"Query text to filter by","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Limit the results size","required":false,"schema":{"type":"number"}},{"name":"offset","in":"query","description":"Specify the page","required":false,"schema":{"type":"number"}}],"description":"Get the list of organization users","tags":["User V2"],"responses":{"200":{"description":"List of organization users","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}}}}}}}}}}},"/v2/users/{id}":{"get":{"operationId":"getUserV2","summary":"getUserV2","description":"Get user details by user id","tags":["User V2"],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of user"}],"responses":{"200":{"description":"The returned user","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}}}}}}},"patch":{"operationId":"updateUserV2","summary":"updateUserV2","description":"Update user details","tags":["User V2"],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of user"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}}}}},"responses":{"200":{"description":"The returned user","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}}}}}}},"delete":{"operationId":"deleteUserV2","summary":"deleteUserV2","description":"Delete user by user id","tags":["User V2"],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of user"}],"responses":{"200":{"description":"The deleted user","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"email":{"type":"string","format":"email"},"display_name":{"type":"string","example":"Example user","deprecated":true},"name":{"type":"string","example":"Example user","deprecated":true},"preferred_language":{"type":"string","example":"de"},"signature":{"type":"string","example":"<p>Thanks</p>"},"roles":{"type":"array","items":{"type":"string","example":"Owner"},"deprecated":true,"description":"Deprecated! Please use Permissions API instead"},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar.png"},"thumbnail_32":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}},"required":["id","organization_id","email","name","preferred_language","roles","properties"]}}}}}}},"/v2/users/invite":{"post":{"operationId":"inviteUser","summary":"inviteUser","description":"Creates a new user in the caller\'s organization and sends an invite email to activate","tags":["User V2"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the address","example":"test@example.com"},"language":{"type":"string","description":"Language for user invitation email","enum":["en","de"],"default":"en"},"roles":{"type":"array","items":{"type":"string","description":"Role IDs for the user","example":"123:owner"}}}}}}},"responses":{"201":{"description":"Invited successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}}}}},"400":{"description":"Unable to invite the above email address."}}}},"/v2/users/invite:resendEmail":{"post":{"operationId":"resendUserInvitation","summary":"resendUserInvitation","description":"Resend user invitation email","tags":["User V2"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the address","example":"test@example.com"},"language":{"type":"string","description":"Language for user invitation email","enum":["en","de"],"default":"en"}}}}}},"responses":{"200":{"description":"User Invitation sent successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}}}}},"400":{"description":"User not found."}}}},"/v2/users/public/verifyEmail":{"post":{"operationId":"verifyEmailWithToken","summary":"verifyEmailWithToken","description":"Update new email using an verification token","security":[],"tags":["User V2"],"parameters":[{"in":"query","name":"token","schema":{"type":"string"},"required":true,"description":"Verification Token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}}}}},"responses":{"200":{"description":"Verified successfully"},"404":{"description":"Token not found for the user"}}}},"/v2/users/public/activate":{"post":{"operationId":"activateUser","summary":"activateUser","description":"Activate user using an invite token","security":[],"tags":["User V2"],"parameters":[{"in":"query","name":"token","schema":{"type":"string"},"required":true,"description":"Invite Token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}}}}},"responses":{"200":{"description":"Activated successfully"},"404":{"description":"Token not found for the user"}}}},"/v2/users/public/username/{username}:getLoginParameters":{"get":{"operationId":"getUserLoginParametersV2","summary":"getUserLoginParametersV2","description":"Get user organization login parameters by username","security":[],"parameters":[{"name":"username","in":"path","description":"Username","required":true,"schema":{"type":"string"}}],"tags":["User V2"],"responses":{"200":{"description":"User","content":{"application/json":{"schema":{"type":"object","properties":{"login_parameters":{"type":"array","items":{"type":"object","properties":{"organization_id":{"type":"string","example":"123"},"organization_name":{"type":"string","example":"epilot GmbH"},"organization_type":{"type":"string","example":"Vendor"},"cognito_region":{"type":"string","example":"eu-central-1"},"cognito_identity_pool_id":{"type":"string","example":"eu-central-1:d24af723-7b40-4c3d-be57-d0a732a59a5d"},"cognito_user_pool_id":{"type":"string","example":"eu-central-sample"},"cognito_user_pool_client_id":{"type":"string","example":"asbkh213ehkquwhdi"},"cognito_oauth_domain":{"type":"string","example":"epilot-org-123"},"cognito_oauth_scopes":{"type":"array","items":{"type":"string"},"example":["openid"]},"oauth_response_type":{"type":"string","enum":["code","token"]}}}}}}}}}}}},"/v1/users/me":{"get":{"operationId":"getMe","summary":"getMe","description":"Get currently logged in user","tags":["User V1"],"responses":{"200":{"description":"Currently logged in user","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"email":{"type":"string","format":"email"},"display_name":{"type":"string","example":"Example user","deprecated":true},"name":{"type":"string","example":"Example user","deprecated":true},"preferred_language":{"type":"string","example":"de"},"signature":{"type":"string","example":"<p>Thanks</p>"},"roles":{"type":"array","items":{"type":"string","example":"Owner"},"deprecated":true,"description":"Deprecated! Please use Permissions API instead"},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar.png"},"thumbnail_32":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}},"required":["id","organization_id","email","name","preferred_language","roles","properties"]}}}}}}},"/v1/users":{"get":{"operationId":"listUsers","summary":"listUsers","description":"Lists users in organizations you have access to","parameters":[{"name":"org_ids","in":"query","description":"Comma-separated list of organization ids to filter by","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"query","in":"query","description":"Query text to filter by","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Limit the results size","required":false,"schema":{"type":"number"}},{"name":"offset","in":"query","description":"Specify the page","required":false,"schema":{"type":"number"}}],"tags":["User V1"],"responses":{"200":{"description":"List of users","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"email":{"type":"string","format":"email"},"display_name":{"type":"string","example":"Example user","deprecated":true},"name":{"type":"string","example":"Example user","deprecated":true},"preferred_language":{"type":"string","example":"de"},"signature":{"type":"string","example":"<p>Thanks</p>"},"roles":{"type":"array","items":{"type":"string","example":"Owner"},"deprecated":true,"description":"Deprecated! Please use Permissions API instead"},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar.png"},"thumbnail_32":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}},"required":["id","organization_id","email","name","preferred_language","roles","properties"]}}}}}}}}}},"/v1/users/{id}":{"get":{"operationId":"getUser","summary":"getUser","description":"Get user by id","parameters":[{"name":"id","in":"path","description":"User id","required":true,"schema":{"type":"string"}}],"tags":["User V1"],"responses":{"200":{"description":"User","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"email":{"type":"string","format":"email"},"display_name":{"type":"string","example":"Example user","deprecated":true},"name":{"type":"string","example":"Example user","deprecated":true},"preferred_language":{"type":"string","example":"de"},"signature":{"type":"string","example":"<p>Thanks</p>"},"roles":{"type":"array","items":{"type":"string","example":"Owner"},"deprecated":true,"description":"Deprecated! Please use Permissions API instead"},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar.png"},"thumbnail_32":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}},"required":["id","organization_id","email","name","preferred_language","roles","properties"]}}}}}}},"/v1/users/username/{username}:getLoginParameters":{"get":{"operationId":"getUserLoginParameters","summary":"getUserLoginParameters","description":"Get user organization login parameters by username","security":[],"parameters":[{"name":"username","in":"path","description":"Username","required":true,"schema":{"type":"string"}}],"tags":["User V1"],"responses":{"200":{"description":"User","content":{"application/json":{"schema":{"type":"object","properties":{"login_parameters":{"type":"array","items":{"type":"object","properties":{"organization_id":{"type":"string","example":"123"},"organization_name":{"type":"string","example":"epilot GmbH"},"organization_type":{"type":"string","example":"Vendor"},"cognito_region":{"type":"string","example":"eu-central-1"},"cognito_identity_pool_id":{"type":"string","example":"eu-central-1:d24af723-7b40-4c3d-be57-d0a732a59a5d"},"cognito_user_pool_id":{"type":"string","example":"eu-central-sample"},"cognito_user_pool_client_id":{"type":"string","example":"asbkh213ehkquwhdi"},"cognito_oauth_domain":{"type":"string","example":"epilot-org-123"},"cognito_oauth_scopes":{"type":"array","items":{"type":"string"},"example":["openid"]},"oauth_response_type":{"type":"string","enum":["code","token"]}}}}}}}}}}}}},"components":{"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with epilot OAuth2 bearer token","bearerFormat":"JWT"}},"schemas":{"PartnerInvitationToken":{"type":"string"},"InviteToken":{"type":"string"},"VerificationToken":{"type":"string"},"UserId":{"type":"string"},"Query":{"type":"string"},"OrganizationId":{"type":"string"},"Limit":{"type":"number"},"Offset":{"type":"number"},"Username":{"type":"string"},"UserInvitationPayload":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the address","example":"test@example.com"},"language":{"type":"string","description":"Language for user invitation email","enum":["en","de"],"default":"en"},"roles":{"type":"array","items":{"type":"string","description":"Role IDs for the user","example":"123:owner"}}}},"UserActivationPayload":{"type":"object","properties":{"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}},"UserVerificationPayload":{"type":"object","properties":{"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}},"UserV2":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}},"User":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"email":{"type":"string","format":"email"},"display_name":{"type":"string","example":"Example user","deprecated":true},"name":{"type":"string","example":"Example user","deprecated":true},"preferred_language":{"type":"string","example":"de"},"signature":{"type":"string","example":"<p>Thanks</p>"},"roles":{"type":"array","items":{"type":"string","example":"Owner"},"deprecated":true,"description":"Deprecated! Please use Permissions API instead"},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar.png"},"thumbnail_32":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}},"required":["id","organization_id","email","name","preferred_language","roles","properties"]},"LoginParameters":{"type":"object","properties":{"organization_id":{"type":"string","example":"123"},"organization_name":{"type":"string","example":"epilot GmbH"},"organization_type":{"type":"string","example":"Vendor"},"cognito_region":{"type":"string","example":"eu-central-1"},"cognito_identity_pool_id":{"type":"string","example":"eu-central-1:d24af723-7b40-4c3d-be57-d0a732a59a5d"},"cognito_user_pool_id":{"type":"string","example":"eu-central-sample"},"cognito_user_pool_client_id":{"type":"string","example":"asbkh213ehkquwhdi"},"cognito_oauth_domain":{"type":"string","example":"epilot-org-123"},"cognito_oauth_scopes":{"type":"array","items":{"type":"string"},"example":["openid"]},"oauth_response_type":{"type":"string","enum":["code","token"]}}},"SignupUserPayload":{"type":"object","properties":{"organization_detail":{"additionalProperties":true,"type":"object","properties":{"type":{"type":"string","enum":["Vendor","Partner"]},"name":{"type":"string","example":"Epilot"},"pricing_tier":{"type":"string","example":"professional"},"email":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"is_privacy_policy_checked":{"type":"boolean","example":false,"nullable":true},"is_terms_and_conditions_checked":{"type":"boolean","example":false,"nullable":true}},"required":["type","name","pricing_tier","email"]},"user_detail":{"type":"object","properties":{"full_name":{"type":"string","example":"Example user"},"email":{"type":"string","format":"email"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}},"required":["full_name","email","password"]},"language":{"type":"string","description":"Language for user invitation email","enum":["en","de"],"default":"en"}}},"OrganizationDetail":{"additionalProperties":true,"type":"object","properties":{"type":{"type":"string","enum":["Vendor","Partner"]},"name":{"type":"string","example":"Epilot"},"pricing_tier":{"type":"string","example":"professional"},"email":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"is_privacy_policy_checked":{"type":"boolean","example":false,"nullable":true},"is_terms_and_conditions_checked":{"type":"boolean","example":false,"nullable":true}},"required":["type","name","pricing_tier","email"]},"UserDetail":{"type":"object","properties":{"full_name":{"type":"string","example":"Example user"},"email":{"type":"string","format":"email"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}},"required":["full_name","email","password"]},"Organization":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["Vendor","Partner"],"nullable":true},"name":{"type":"string","example":"Epilot","nullable":true},"signature":{"type":"string","example":"<p>Thanks</p>","nullable":true},"symbol":{"type":"string","example":"EPI","nullable":true},"pricing_tier":{"type":"string","example":"professional","nullable":true},"email":{"type":"string","example":"someone@epilot.cloud","nullable":true},"phone":{"type":"string","example":49123123123,"nullable":true},"website":{"type":"string","example":"https://epilot.cloud","nullable":true},"address":{"type":"object","properties":{"country":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"street":{"type":"string","nullable":true},"street_number":{"type":"string","nullable":true}}},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png","nullable":true},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png","nullable":true},"is_unlicensed_org":{"type":"boolean","example":false,"nullable":true}}}}},"servers":[{"url":"https://user.sls.epilot.io"}]}')}},t={};return function r(a){if(t[a])return t[a].exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,r),i.exports}(914)})());
!function(e,t){for(var s in t)e[s]=t[s];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,s){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(s(279));t.default=a.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"User API","version":"2.0.0","description":"Manage users in epilot organization(s)\\n"},"tags":[{"name":"User V2","description":"User API V2"},{"name":"User V1","description":"Legacy User API"}],"security":[{"EpilotAuth":[]}],"paths":{"/v2/users/public/signup":{"post":{"operationId":"signUpUser","summary":"signUpUser","security":[],"parameters":[{"name":"token","in":"query","description":"Invitation partner token","required":false,"schema":{"$ref":"#/components/schemas/PartnerInvitationToken"}}],"tags":["User V2"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupUserPayload"}}}},"responses":{"200":{"description":"The created user and organization","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"},"organization":{"$ref":"#/components/schemas/Organization"}}}}}}}}},"/v2/users/me":{"get":{"operationId":"getMeV2","summary":"getMeV2","description":"Get currently logged in user","tags":["User V2"],"responses":{"200":{"description":"currently logged in user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserV2"}}}}}}},"/v2/users":{"get":{"operationId":"listUsersV2","summary":"listUsersV2","parameters":[{"name":"query","in":"query","description":"Query text to filter by","required":false,"schema":{"$ref":"#/components/schemas/Query"}},{"name":"limit","in":"query","description":"Limit the results size","required":false,"schema":{"$ref":"#/components/schemas/Limit"}},{"name":"offset","in":"query","description":"Specify the page","required":false,"schema":{"$ref":"#/components/schemas/Offset"}}],"description":"Get the list of organization users","tags":["User V2"],"responses":{"200":{"description":"List of organization users","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/UserV2"}}}}}}}}}},"/v2/users/{id}":{"get":{"operationId":"getUserV2","summary":"getUserV2","description":"Get user details by user id","tags":["User V2"],"parameters":[{"in":"path","name":"id","schema":{"$ref":"#/components/schemas/UserId"},"required":true,"description":"The Id of user"}],"responses":{"200":{"description":"The returned user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserV2"}}}}}},"patch":{"operationId":"updateUserV2","summary":"updateUserV2","description":"Update user details","tags":["User V2"],"parameters":[{"in":"path","name":"id","schema":{"$ref":"#/components/schemas/UserId"},"required":true,"description":"The Id of user"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserV2"}}}},"responses":{"200":{"description":"The returned user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserV2"}}}}}},"delete":{"operationId":"deleteUserV2","summary":"deleteUserV2","description":"Delete user by user id","tags":["User V2"],"parameters":[{"in":"path","name":"id","schema":{"$ref":"#/components/schemas/UserId"},"required":true,"description":"The Id of user"}],"responses":{"200":{"description":"The deleted user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}}}},"/v2/users/invite":{"post":{"operationId":"inviteUser","summary":"inviteUser","description":"Creates a new user in the caller\'s organization and sends an invite email to activate","tags":["User V2"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInvitationPayload"}}}},"responses":{"201":{"description":"Invited successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserV2"}}}},"400":{"description":"Unable to invite the above email address."}}}},"/v2/users/invite:resendEmail":{"post":{"operationId":"resendUserInvitation","summary":"resendUserInvitation","description":"Resend user invitation email","tags":["User V2"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the address","example":"test@example.com"},"language":{"type":"string","description":"Language for user invitation email","enum":["en","de"],"default":"en"}}}}}},"responses":{"200":{"description":"User Invitation sent successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserV2"}}}},"400":{"description":"User not found."}}}},"/v2/users/public/verifyEmail":{"post":{"operationId":"verifyEmailWithToken","summary":"verifyEmailWithToken","description":"Update new email using an verification token","security":[],"tags":["User V2"],"parameters":[{"in":"query","name":"token","schema":{"$ref":"#/components/schemas/VerificationToken"},"required":true,"description":"Verification Token"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserVerificationPayload"}}}},"responses":{"200":{"description":"Verified successfully"},"404":{"description":"Token not found for the user"}}}},"/v2/users/public/activate":{"post":{"operationId":"activateUser","summary":"activateUser","description":"Activate user using an invite token","security":[],"tags":["User V2"],"parameters":[{"in":"query","name":"token","schema":{"$ref":"#/components/schemas/InviteToken"},"required":true,"description":"Invite Token"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserActivationPayload"}}}},"responses":{"200":{"description":"Activated successfully"},"404":{"description":"Token not found for the user"}}}},"/v2/users/public/username/{username}:getLoginParameters":{"get":{"operationId":"getUserLoginParametersV2","summary":"getUserLoginParametersV2","description":"Get user organization login parameters by username","security":[],"parameters":[{"name":"username","in":"path","description":"Username","required":true,"schema":{"$ref":"#/components/schemas/Username"}}],"tags":["User V2"],"responses":{"200":{"description":"User","content":{"application/json":{"schema":{"type":"object","properties":{"login_parameters":{"type":"array","items":{"$ref":"#/components/schemas/LoginParameters"}}}}}}}}}},"/v1/users/me":{"get":{"operationId":"getMe","summary":"getMe","description":"Get currently logged in user","tags":["User V1"],"responses":{"200":{"description":"Currently logged in user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}}}},"/v1/users":{"get":{"operationId":"listUsers","summary":"listUsers","description":"Lists users in organizations you have access to","parameters":[{"name":"org_ids","in":"query","description":"Comma-separated list of organization ids to filter by","style":"form","explode":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationId"}}},{"name":"query","in":"query","description":"Query text to filter by","required":false,"schema":{"$ref":"#/components/schemas/Query"}},{"name":"limit","in":"query","description":"Limit the results size","required":false,"schema":{"$ref":"#/components/schemas/Limit"}},{"name":"offset","in":"query","description":"Specify the page","required":false,"schema":{"$ref":"#/components/schemas/Offset"}}],"tags":["User V1"],"responses":{"200":{"description":"List of users","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}}}}}}},"/v1/users/{id}":{"get":{"operationId":"getUser","summary":"getUser","description":"Get user by id","parameters":[{"name":"id","in":"path","description":"User id","required":true,"schema":{"$ref":"#/components/schemas/UserId"}}],"tags":["User V1"],"responses":{"200":{"description":"User","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}}}},"/v1/users/username/{username}:getLoginParameters":{"get":{"operationId":"getUserLoginParameters","summary":"getUserLoginParameters","description":"Get user organization login parameters by username","security":[],"parameters":[{"name":"username","in":"path","description":"Username","required":true,"schema":{"$ref":"#/components/schemas/Username"}}],"tags":["User V1"],"responses":{"200":{"description":"User","content":{"application/json":{"schema":{"type":"object","properties":{"login_parameters":{"type":"array","items":{"$ref":"#/components/schemas/LoginParameters"}}}}}}}}}}},"components":{"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with epilot OAuth2 bearer token","bearerFormat":"JWT"}},"schemas":{"PartnerInvitationToken":{"type":"string"},"InviteToken":{"type":"string"},"VerificationToken":{"type":"string"},"UserId":{"type":"string"},"Query":{"type":"string"},"OrganizationId":{"type":"string"},"Limit":{"type":"number"},"Offset":{"type":"number"},"Username":{"type":"string"},"UserInvitationPayload":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the address","example":"test@example.com"},"language":{"type":"string","description":"Language for user invitation email","enum":["en","de"],"default":"en"},"roles":{"type":"array","items":{"type":"string","description":"Role IDs for the user","example":"123:owner"}}}},"UserActivationPayload":{"type":"object","properties":{"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}},"UserVerificationPayload":{"type":"object","properties":{"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}},"UserV2":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UserId"},"organization_id":{"$ref":"#/components/schemas/OrganizationId"},"created_at":{"type":"string","example":"2022-02-08T04:44:32.246Z"},"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"status":{"type":"string","enum":["Active","Pending","Deactivated","Deleted"]},"email":{"type":"string","format":"email"},"draft_email":{"type":"string","nullable":true,"format":"email"},"phone":{"type":"string","nullable":true,"example":1234567890},"preferred_language":{"type":"string","example":"de"},"token":{"type":"string","example":"65dc527f-cb2d-4158-8f2e-8978dbceb599"},"signature":{"type":"string","example":"<p>Thanks</p>"},"is_signature_enabled":{"type":"boolean","example":true},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri"},"thumbnail_32":{"type":"string","format":"uri"}},"example":{"original":"https://account-profile-images.epilot.cloud/1/avatar.png","thumbnail_32":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}}},"User":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UserId"},"organization_id":{"$ref":"#/components/schemas/OrganizationId"},"email":{"type":"string","format":"email"},"display_name":{"type":"string","example":"Example user","deprecated":true},"name":{"type":"string","example":"Example user","deprecated":true},"preferred_language":{"type":"string","example":"de"},"signature":{"type":"string","example":"<p>Thanks</p>"},"roles":{"type":"array","items":{"type":"string","example":"Owner"},"deprecated":true,"description":"Deprecated! Please use Permissions API instead"},"image_uri":{"type":"object","additionalProperties":true,"properties":{"original":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar.png"},"thumbnail_32":{"type":"string","format":"uri","example":"https://account-profile-images.epilot.cloud/1/avatar_32x32.png"}}},"properties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"profileImageName"},"value":{"type":"string","example":"avatar.png"}},"required":["name","value"]}}},"required":["id","organization_id","email","name","preferred_language","roles","properties"]},"LoginParameters":{"type":"object","properties":{"organization_id":{"type":"string","example":"123"},"organization_name":{"type":"string","example":"epilot GmbH"},"organization_type":{"type":"string","example":"Vendor"},"cognito_region":{"type":"string","example":"eu-central-1"},"cognito_identity_pool_id":{"type":"string","example":"eu-central-1:d24af723-7b40-4c3d-be57-d0a732a59a5d"},"cognito_user_pool_id":{"type":"string","example":"eu-central-sample"},"cognito_user_pool_client_id":{"type":"string","example":"asbkh213ehkquwhdi"},"cognito_oauth_domain":{"type":"string","example":"epilot-org-123"},"cognito_oauth_scopes":{"type":"array","items":{"type":"string"},"example":["openid"]},"oauth_response_type":{"type":"string","enum":["code","token"]}}},"SignupUserPayload":{"type":"object","properties":{"organization_detail":{"$ref":"#/components/schemas/OrganizationDetail"},"user_detail":{"$ref":"#/components/schemas/UserDetail"},"language":{"type":"string","description":"Language for user invitation email","enum":["en","de"],"default":"en"}}},"OrganizationDetail":{"additionalProperties":true,"type":"object","properties":{"type":{"type":"string","enum":["Vendor","Partner"]},"name":{"type":"string","example":"Epilot"},"pricing_tier":{"type":"string","example":"professional"},"email":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"is_privacy_policy_checked":{"type":"boolean","example":false,"nullable":true},"is_terms_and_conditions_checked":{"type":"boolean","example":false,"nullable":true}},"required":["type","name","pricing_tier","email"]},"UserDetail":{"type":"object","properties":{"full_name":{"type":"string","example":"Example user"},"email":{"type":"string","format":"email"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}},"required":["full_name","email","password"]},"Organization":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OrganizationId"},"type":{"type":"string","enum":["Vendor","Partner"],"nullable":true},"name":{"type":"string","example":"Epilot","nullable":true},"signature":{"type":"string","example":"<p>Thanks</p>","nullable":true},"symbol":{"type":"string","example":"EPI","nullable":true},"pricing_tier":{"type":"string","example":"professional","nullable":true},"email":{"type":"string","example":"someone@epilot.cloud","nullable":true},"phone":{"type":"string","example":49123123123,"nullable":true},"website":{"type":"string","example":"https://epilot.cloud","nullable":true},"address":{"type":"object","properties":{"country":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"street":{"type":"string","nullable":true},"street_number":{"type":"string","nullable":true}}},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png","nullable":true},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png","nullable":true},"is_unlicensed_org":{"type":"boolean","example":false,"nullable":true}}}}},"servers":[{"url":"https://user.sls.epilot.io"}]}')}},t={};return function s(r){if(t[r])return t[r].exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,s),a.exports}(914)})());

@@ -1,5 +0,3 @@

declare const client: import("./openapi").Client;
export default client;
export type { Client, Components, Paths, PathsDictionary, OperationMethods } from './openapi';
export type { OpenAPIClient, OpenAPIClientAxios, Document } from 'openapi-client-axios';
export * from './client';

@@ -17,6 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var client_1 = require("./client");
var client = (0, client_1.getClient)();
exports.default = client;
__exportStar(require("./client"), exports);
//# sourceMappingURL=index.js.map

@@ -66,3 +66,3 @@ /* eslint-disable */

export interface Organization {
id?: string;
id?: OrganizationId;
type?: "Vendor" | "Partner";

@@ -158,43 +158,4 @@ /**

export interface SignupUserPayload {
organization_detail?: {
[name: string]: any;
type: "Vendor" | "Partner";
/**
* example:
* Epilot
*/
name: string;
/**
* example:
* professional
*/
pricing_tier: string;
email: string;
phone?: string;
website?: string;
/**
* example:
* false
*/
is_privacy_policy_checked?: boolean | null;
/**
* example:
* false
*/
is_terms_and_conditions_checked?: boolean | null;
};
user_detail?: {
/**
* example:
* Example user
*/
full_name: string;
email: string; // email
/**
* User's password
* example:
* AKjhdakjsdh@!34
*/
password: string;
};
organization_detail?: OrganizationDetail;
user_detail?: UserDetail;
/**

@@ -206,4 +167,4 @@ * Language for user invitation email

export interface User {
id: string;
organization_id: string;
id: UserId;
organization_id: OrganizationId;
email: string; // email

@@ -303,4 +264,4 @@ /**

export interface UserV2 {
id?: string;
organization_id?: string;
id?: UserId;
organization_id?: OrganizationId;
/**

@@ -385,3 +346,3 @@ * example:

namespace Parameters {
export type Token = string;
export type Token = Components.Schemas.InviteToken;
}

@@ -391,16 +352,3 @@ export interface QueryParameters {

}
export interface RequestBody {
/**
* User's display name (default: email address)
* example:
* Example User
*/
display_name?: string;
/**
* User's password
* example:
* AKjhdakjsdh@!34
*/
password?: string;
}
export type RequestBody = Components.Schemas.UserActivationPayload;
namespace Responses {

@@ -415,3 +363,3 @@ export interface $200 {

namespace Parameters {
export type Id = string;
export type Id = Components.Schemas.UserId;
}

@@ -422,56 +370,3 @@ export interface PathParameters {

namespace Responses {
export interface $200 {
id: string;
organization_id: string;
email: string; // email
/**
* example:
* Example user
*/
display_name?: string;
/**
* example:
* Example user
*/
name: string;
/**
* example:
* de
*/
preferred_language: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* Deprecated! Please use Permissions API instead
*/
roles: string[];
image_uri?: {
[name: string]: any;
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar.png
*/
original?: string; // uri
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar_32x32.png
*/
thumbnail_32?: string; // uri
};
properties: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type $200 = Components.Schemas.User;
}

@@ -481,56 +376,3 @@ }

namespace Responses {
export interface $200 {
id: string;
organization_id: string;
email: string; // email
/**
* example:
* Example user
*/
display_name?: string;
/**
* example:
* Example user
*/
name: string;
/**
* example:
* de
*/
preferred_language: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* Deprecated! Please use Permissions API instead
*/
roles: string[];
image_uri?: {
[name: string]: any;
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar.png
*/
original?: string; // uri
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar_32x32.png
*/
thumbnail_32?: string; // uri
};
properties: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type $200 = Components.Schemas.User;
}

@@ -540,69 +382,3 @@ }

namespace Responses {
export interface $200 {
id?: string;
organization_id?: string;
/**
* example:
* 2022-02-08T04:44:32.246Z
*/
created_at?: string;
/**
* User's display name (default: email address)
* example:
* Example User
*/
display_name?: string;
status?: "Active" | "Pending" | "Deactivated" | "Deleted";
email?: string; // email
draft_email?: string | null; // email
/**
* example:
* 1234567890
*/
phone?: string | null;
/**
* example:
* de
*/
preferred_language?: string;
/**
* example:
* 65dc527f-cb2d-4158-8f2e-8978dbceb599
*/
token?: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* example:
* true
*/
is_signature_enabled?: boolean;
/**
* example:
* {
* "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
* "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
* }
*/
image_uri?: {
[name: string]: any;
original?: string; // uri
thumbnail_32?: string; // uri
};
properties?: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type $200 = Components.Schemas.UserV2;
}

@@ -612,3 +388,3 @@ }

namespace Parameters {
export type Id = string;
export type Id = Components.Schemas.UserId;
}

@@ -619,56 +395,3 @@ export interface PathParameters {

namespace Responses {
export interface $200 {
id: string;
organization_id: string;
email: string; // email
/**
* example:
* Example user
*/
display_name?: string;
/**
* example:
* Example user
*/
name: string;
/**
* example:
* de
*/
preferred_language: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* Deprecated! Please use Permissions API instead
*/
roles: string[];
image_uri?: {
[name: string]: any;
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar.png
*/
original?: string; // uri
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar_32x32.png
*/
thumbnail_32?: string; // uri
};
properties: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type $200 = Components.Schemas.User;
}

@@ -678,3 +401,3 @@ }

namespace Parameters {
export type Username = string;
export type Username = Components.Schemas.Username;
}

@@ -686,52 +409,3 @@ export interface PathParameters {

export interface $200 {
login_parameters?: {
/**
* example:
* 123
*/
organization_id?: string;
/**
* example:
* epilot GmbH
*/
organization_name?: string;
/**
* example:
* Vendor
*/
organization_type?: string;
/**
* example:
* eu-central-1
*/
cognito_region?: string;
/**
* example:
* eu-central-1:d24af723-7b40-4c3d-be57-d0a732a59a5d
*/
cognito_identity_pool_id?: string;
/**
* example:
* eu-central-sample
*/
cognito_user_pool_id?: string;
/**
* example:
* asbkh213ehkquwhdi
*/
cognito_user_pool_client_id?: string;
/**
* example:
* epilot-org-123
*/
cognito_oauth_domain?: string;
/**
* example:
* [
* "openid"
* ]
*/
cognito_oauth_scopes?: string[];
oauth_response_type?: "code" | "token";
}[];
login_parameters?: Components.Schemas.LoginParameters[];
}

@@ -742,3 +416,3 @@ }

namespace Parameters {
export type Username = string;
export type Username = Components.Schemas.Username;
}

@@ -750,52 +424,3 @@ export interface PathParameters {

export interface $200 {
login_parameters?: {
/**
* example:
* 123
*/
organization_id?: string;
/**
* example:
* epilot GmbH
*/
organization_name?: string;
/**
* example:
* Vendor
*/
organization_type?: string;
/**
* example:
* eu-central-1
*/
cognito_region?: string;
/**
* example:
* eu-central-1:d24af723-7b40-4c3d-be57-d0a732a59a5d
*/
cognito_identity_pool_id?: string;
/**
* example:
* eu-central-sample
*/
cognito_user_pool_id?: string;
/**
* example:
* asbkh213ehkquwhdi
*/
cognito_user_pool_client_id?: string;
/**
* example:
* epilot-org-123
*/
cognito_oauth_domain?: string;
/**
* example:
* [
* "openid"
* ]
*/
cognito_oauth_scopes?: string[];
oauth_response_type?: "code" | "token";
}[];
login_parameters?: Components.Schemas.LoginParameters[];
}

@@ -806,3 +431,3 @@ }

namespace Parameters {
export type Id = string;
export type Id = Components.Schemas.UserId;
}

@@ -813,153 +438,9 @@ export interface PathParameters {

namespace Responses {
export interface $200 {
id?: string;
organization_id?: string;
/**
* example:
* 2022-02-08T04:44:32.246Z
*/
created_at?: string;
/**
* User's display name (default: email address)
* example:
* Example User
*/
display_name?: string;
status?: "Active" | "Pending" | "Deactivated" | "Deleted";
email?: string; // email
draft_email?: string | null; // email
/**
* example:
* 1234567890
*/
phone?: string | null;
/**
* example:
* de
*/
preferred_language?: string;
/**
* example:
* 65dc527f-cb2d-4158-8f2e-8978dbceb599
*/
token?: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* example:
* true
*/
is_signature_enabled?: boolean;
/**
* example:
* {
* "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
* "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
* }
*/
image_uri?: {
[name: string]: any;
original?: string; // uri
thumbnail_32?: string; // uri
};
properties?: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type $200 = Components.Schemas.UserV2;
}
}
namespace InviteUser {
export interface RequestBody {
/**
* Email address of the address
* example:
* test@example.com
*/
email?: string;
/**
* Language for user invitation email
*/
language?: "en" | "de";
roles?: string[];
}
export type RequestBody = Components.Schemas.UserInvitationPayload;
namespace Responses {
export interface $201 {
id?: string;
organization_id?: string;
/**
* example:
* 2022-02-08T04:44:32.246Z
*/
created_at?: string;
/**
* User's display name (default: email address)
* example:
* Example User
*/
display_name?: string;
status?: "Active" | "Pending" | "Deactivated" | "Deleted";
email?: string; // email
draft_email?: string | null; // email
/**
* example:
* 1234567890
*/
phone?: string | null;
/**
* example:
* de
*/
preferred_language?: string;
/**
* example:
* 65dc527f-cb2d-4158-8f2e-8978dbceb599
*/
token?: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* example:
* true
*/
is_signature_enabled?: boolean;
/**
* example:
* {
* "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
* "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
* }
*/
image_uri?: {
[name: string]: any;
original?: string; // uri
thumbnail_32?: string; // uri
};
properties?: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type $201 = Components.Schemas.UserV2;
export interface $400 {

@@ -971,6 +452,6 @@ }

namespace Parameters {
export type Limit = number;
export type Offset = number;
export type OrgIds = string[];
export type Query = string;
export type Limit = Components.Schemas.Limit;
export type Offset = Components.Schemas.Offset;
export type OrgIds = Components.Schemas.OrganizationId[];
export type Query = Components.Schemas.Query;
}

@@ -985,56 +466,3 @@ export interface QueryParameters {

export interface $200 {
users?: {
id: string;
organization_id: string;
email: string; // email
/**
* example:
* Example user
*/
display_name?: string;
/**
* example:
* Example user
*/
name: string;
/**
* example:
* de
*/
preferred_language: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* Deprecated! Please use Permissions API instead
*/
roles: string[];
image_uri?: {
[name: string]: any;
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar.png
*/
original?: string; // uri
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar_32x32.png
*/
thumbnail_32?: string; // uri
};
properties: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}[];
users?: Components.Schemas.User[];
}

@@ -1045,5 +473,5 @@ }

namespace Parameters {
export type Limit = number;
export type Offset = number;
export type Query = string;
export type Limit = Components.Schemas.Limit;
export type Offset = Components.Schemas.Offset;
export type Query = Components.Schemas.Query;
}

@@ -1057,69 +485,3 @@ export interface QueryParameters {

export interface $200 {
results?: {
id?: string;
organization_id?: string;
/**
* example:
* 2022-02-08T04:44:32.246Z
*/
created_at?: string;
/**
* User's display name (default: email address)
* example:
* Example User
*/
display_name?: string;
status?: "Active" | "Pending" | "Deactivated" | "Deleted";
email?: string; // email
draft_email?: string | null; // email
/**
* example:
* 1234567890
*/
phone?: string | null;
/**
* example:
* de
*/
preferred_language?: string;
/**
* example:
* 65dc527f-cb2d-4158-8f2e-8978dbceb599
*/
token?: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* example:
* true
*/
is_signature_enabled?: boolean;
/**
* example:
* {
* "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
* "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
* }
*/
image_uri?: {
[name: string]: any;
original?: string; // uri
thumbnail_32?: string; // uri
};
properties?: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}[];
results?: Components.Schemas.UserV2[];
}

@@ -1142,69 +504,3 @@ }

namespace Responses {
export interface $200 {
id?: string;
organization_id?: string;
/**
* example:
* 2022-02-08T04:44:32.246Z
*/
created_at?: string;
/**
* User's display name (default: email address)
* example:
* Example User
*/
display_name?: string;
status?: "Active" | "Pending" | "Deactivated" | "Deleted";
email?: string; // email
draft_email?: string | null; // email
/**
* example:
* 1234567890
*/
phone?: string | null;
/**
* example:
* de
*/
preferred_language?: string;
/**
* example:
* 65dc527f-cb2d-4158-8f2e-8978dbceb599
*/
token?: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* example:
* true
*/
is_signature_enabled?: boolean;
/**
* example:
* {
* "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
* "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
* }
*/
image_uri?: {
[name: string]: any;
original?: string; // uri
thumbnail_32?: string; // uri
};
properties?: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type $200 = Components.Schemas.UserV2;
export interface $400 {

@@ -1216,3 +512,3 @@ }

namespace Parameters {
export type Token = string;
export type Token = Components.Schemas.PartnerInvitationToken;
}

@@ -1222,166 +518,7 @@ export interface QueryParameters {

}
export interface RequestBody {
organization_detail?: {
[name: string]: any;
type: "Vendor" | "Partner";
/**
* example:
* Epilot
*/
name: string;
/**
* example:
* professional
*/
pricing_tier: string;
email: string;
phone?: string;
website?: string;
/**
* example:
* false
*/
is_privacy_policy_checked?: boolean | null;
/**
* example:
* false
*/
is_terms_and_conditions_checked?: boolean | null;
};
user_detail?: {
/**
* example:
* Example user
*/
full_name: string;
email: string; // email
/**
* User's password
* example:
* AKjhdakjsdh@!34
*/
password: string;
};
/**
* Language for user invitation email
*/
language?: "en" | "de";
}
export type RequestBody = Components.Schemas.SignupUserPayload;
namespace Responses {
export interface $200 {
user?: {
id: string;
organization_id: string;
email: string; // email
/**
* example:
* Example user
*/
display_name?: string;
/**
* example:
* Example user
*/
name: string;
/**
* example:
* de
*/
preferred_language: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* Deprecated! Please use Permissions API instead
*/
roles: string[];
image_uri?: {
[name: string]: any;
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar.png
*/
original?: string; // uri
/**
* example:
* https://account-profile-images.epilot.cloud/1/avatar_32x32.png
*/
thumbnail_32?: string; // uri
};
properties: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
};
organization?: {
id?: string;
type?: "Vendor" | "Partner";
/**
* example:
* Epilot
*/
name?: string | null;
/**
* example:
* <p>Thanks</p>
*/
signature?: string | null;
/**
* example:
* EPI
*/
symbol?: string | null;
/**
* example:
* professional
*/
pricing_tier?: string | null;
/**
* example:
* someone@epilot.cloud
*/
email?: string | null;
/**
* example:
* 49123123123
*/
phone?: string | null;
/**
* example:
* https://epilot.cloud
*/
website?: string | null;
address?: {
country?: string | null;
city?: string | null;
postal_code?: string | null;
street?: string | null;
street_number?: string | null;
};
/**
* example:
* https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png
*/
logo_url?: string | null;
/**
* example:
* https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png
*/
logo_thumbnail_url?: string | null;
/**
* example:
* false
*/
is_unlicensed_org?: boolean | null;
};
user?: Components.Schemas.User;
organization?: Components.Schemas.Organization;
}

@@ -1392,3 +529,3 @@ }

namespace Parameters {
export type Id = string;
export type Id = Components.Schemas.UserId;
}

@@ -1398,137 +535,5 @@ export interface PathParameters {

}
export interface RequestBody {
id?: string;
organization_id?: string;
/**
* example:
* 2022-02-08T04:44:32.246Z
*/
created_at?: string;
/**
* User's display name (default: email address)
* example:
* Example User
*/
display_name?: string;
status?: "Active" | "Pending" | "Deactivated" | "Deleted";
email?: string; // email
draft_email?: string | null; // email
/**
* example:
* 1234567890
*/
phone?: string | null;
/**
* example:
* de
*/
preferred_language?: string;
/**
* example:
* 65dc527f-cb2d-4158-8f2e-8978dbceb599
*/
token?: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* example:
* true
*/
is_signature_enabled?: boolean;
/**
* example:
* {
* "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
* "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
* }
*/
image_uri?: {
[name: string]: any;
original?: string; // uri
thumbnail_32?: string; // uri
};
properties?: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type RequestBody = Components.Schemas.UserV2;
namespace Responses {
export interface $200 {
id?: string;
organization_id?: string;
/**
* example:
* 2022-02-08T04:44:32.246Z
*/
created_at?: string;
/**
* User's display name (default: email address)
* example:
* Example User
*/
display_name?: string;
status?: "Active" | "Pending" | "Deactivated" | "Deleted";
email?: string; // email
draft_email?: string | null; // email
/**
* example:
* 1234567890
*/
phone?: string | null;
/**
* example:
* de
*/
preferred_language?: string;
/**
* example:
* 65dc527f-cb2d-4158-8f2e-8978dbceb599
*/
token?: string;
/**
* example:
* <p>Thanks</p>
*/
signature?: string;
/**
* example:
* true
*/
is_signature_enabled?: boolean;
/**
* example:
* {
* "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
* "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
* }
*/
image_uri?: {
[name: string]: any;
original?: string; // uri
thumbnail_32?: string; // uri
};
properties?: {
/**
* example:
* profileImageName
*/
name: string;
/**
* example:
* avatar.png
*/
value: string;
}[];
}
export type $200 = Components.Schemas.UserV2;
}

@@ -1538,3 +543,3 @@ }

namespace Parameters {
export type Token = string;
export type Token = Components.Schemas.VerificationToken;
}

@@ -1544,10 +549,3 @@ export interface QueryParameters {

}
export interface RequestBody {
/**
* User's password
* example:
* AKjhdakjsdh@!34
*/
password?: string;
}
export type RequestBody = Components.Schemas.UserVerificationPayload;
namespace Responses {

@@ -1554,0 +552,0 @@ export interface $200 {

{
"name": "@epilot/user-client",
"version": "3.0.2",
"version": "3.0.3",
"description": "Client library for the epilot User API",

@@ -11,7 +11,7 @@ "main": "dist/index.js",

"bundle-definition": "webpack",
"openapi": "openapi read --json --dereference --bundle https://docs.api.epilot.io/user.yaml > src/openapi.json",
"openapi": "openapi read --json https://docs.api.epilot.io/user.yaml > src/openapi.json",
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
"build": "npm run typegen && tsc && npm run bundle-definition",
"build": "tsc && npm run bundle-definition",
"build:watch": "npm run build && tsc -w",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run typegen && npm run build",
"lint": "../../node_modules/eslint/bin/eslint.js src"

@@ -73,3 +73,4 @@ },

"webpack-cli": "^4.4.0"
}
},
"gitHead": "7b83c1f1eae808b0184858ee471818cf4dca3295"
}

@@ -21,4 +21,5 @@ # @epilot/user-client

```typescript
import userClient from '@epilot/user-client';
import { getClient } from '@epilot/user-client';
const userCLient = getClient();
const currentUser = await userClient.getMe().then(res => res.data);

@@ -25,0 +26,0 @@ ```

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc