@litehex/node-vault
Advanced tools
Comparing version 1.0.0-canary.0 to 1.0.0
@@ -1,2 +0,1 @@ | ||
import{fetch as ee}from"undici";import{setGlobalFetch as te}from"zod-request";import{z as e}from"zod";import{z as r}from"zod";var u=class{constructor(s){this.client=s}};import X from"lodash.omit";import R from"lodash.pick";import{trySafe as B}from"p-safe";import{fetch as Q}from"undici";import{z as A}from"zod";import{generateRequest as W,ZodResponse as Y}from"zod-request";var f=class extends Error{constructor(s){Array.isArray(s)&&(s=s.join(` | ||
`)),super(`VaultError: ${s&&s!==""?s:"Not Found"}`)}};function w(c){if(typeof c!="string"||c===""||c[0]!=="{")return!1;try{let s=JSON.parse(c);return s||!1}catch{return!1}}function O(c){let s={};for(let h in c){let b=c[h];b!==void 0&&(s[h]=b)}return s}function n(c,s=!1){return async(h,b={})=>B(async()=>{let{method:v="GET",path:d,client:_,schema:p}=c,{strictSchema:M=!0,...G}=b,{url:N,input:J}=W(`${_.endpoint}/${_.apiVersion}${_.pathPrefix}${d}`,{method:v,...G,path:p?.path?R(h||{},Object.keys(p.path.shape)):void 0,params:p?.searchParams?R(h||{},Object.keys(p.searchParams.shape)):void 0,body:p?.body?p.body instanceof A.ZodObject?R(h||{},Object.keys(p.body.shape)):O(X(h,Object.keys(p.searchParams?.shape||{}).concat(Object.keys(p.path?.shape||{})).concat(Object.keys(p.headers?.shape||{})))):void 0,headers:O(Object.assign({"X-Vault-Token":_.token,"X-Vault-Namespace":_.namespace},G.headers||{})),schema:p}),$=c.fetcher||_.fetcher||Q,q=Object.assign(J,{url:new URL(N.toString().replace(///g,"/"))}),{url:K,...y}=c.refine?c.refine(q,h):q;y.body&&!w(y.body)&&(y.body=JSON.stringify(y.body));let g=await $(K,y);if(s!==!1)return{data:g};let{headers:j}=g,H=j.has("content-length")&&j.get("content-length")!=="0";if(!g.body&&!H)return{data:g.ok};let I=j.has("content-type")&&j.get("content-type")==="application/json";if(!M||!p.response||p.response instanceof A.ZodAny)return P(I?await g.json():z(await g.text()));let L=new Y(g,p.response);return P(I?await L.json():z(await L.text()))})}function P(c){return typeof c=="object"&&"errors"in c?{error:new f(c.errors)}:{data:c}}function z(c){let s=w(c);return s||c}var T=class extends u{get config(){return n({method:"POST",path:"/aws/config/root",client:this.client,schema:{body:r.object({max_retries:r.number().optional(),access_key:r.string().optional(),secret_key:r.string().optional(),role_arn:r.string().optional(),identity_token_audience:r.string().optional(),identity_token_ttl:r.string().optional(),region:r.string().optional(),iam_endpoint:r.string().optional(),sts_endpoint:r.string().optional(),username_template:r.string().optional()}),response:r.any()}})}get rootInfo(){return n({method:"GET",path:"/aws/config/root",client:this.client,schema:{response:r.any()}})}get rotateRoot(){return n({method:"POST",path:"/aws/config/rotate-root",client:this.client,schema:{response:r.any()}})}get configLease(){return n({method:"POST",path:"/aws/config/lease",client:this.client,schema:{body:r.object({lease:r.string(),lease_max:r.number()}),response:r.any()}})}get lease(){return n({method:"POST",path:"/aws/config/lease",client:this.client,schema:{response:r.any()}})}get role(){return n({method:"POST",path:"/aws/config/role",client:this.client,schema:{body:r.object({name:r.string(),credential_type:r.string(),role_arns:r.array(r.string()).optional(),policy_arns:r.array(r.string()).optional(),policy_document:r.string().optional(),iam_groups:r.array(r.string()).optional(),iam_tags:r.array(r.string()).optional(),default_sts_ttl:r.string().optional(),max_sts_ttl:r.string().optional(),user_path:r.string().optional(),permissions_boundary_arn:r.string().optional(),mfa_serial_number:r.string().optional(),policy:r.string().optional(),arn:r.string().optional()}),response:r.any()}})}get roleInfo(){return n({method:"GET",path:"/aws/roles/{{name}}",client:this.client,schema:{path:r.object({name:r.string()}),response:r.any()}})}get roles(){return n({method:"LIST",path:"/aws/roles",client:this.client,schema:{response:r.any()}})}get deleteRole(){return n({method:"DELETE",path:"/aws/roles/{{name}}",client:this.client,schema:{path:r.object({name:r.string()}),response:r.any()}})}get credentials(){return n({method:"GET",path:"/aws/creds/{{name}}",client:this.client,schema:{path:r.object({name:r.string()}),searchParams:D,response:r.any()}})}get stsCredentials(){return n({method:"POST",path:"/aws/sts/{{name}}",client:this.client,schema:{path:r.object({name:r.string()}),body:D,response:r.any()}})}get staticRole(){return n({method:"POST",path:"/aws/static-roles/{{name}}",client:this.client,schema:{path:r.object({name:r.string()}),body:r.object({username:r.string(),rotation_period:r.union([r.string(),r.number()])}),response:r.any()}})}get staticRoleInfo(){return n({method:"GET",path:"/aws/static-roles/{{name}}",client:this.client,schema:{path:r.object({name:r.string()}),response:r.any()}})}get deleteStaticRole(){return n({method:"DELETE",path:"/aws/static-roles/{{name}}",client:this.client,schema:{path:r.object({name:r.string()}),response:r.any()}})}get staticCredentials(){return n({method:"GET",path:"/aws/static-creds/{{name}}",client:this.client,schema:{path:r.object({name:r.string()}),response:r.any()}})}},D=r.object({role_arn:r.string().optional(),role_session_name:r.string().optional(),ttl:r.string().optional(),mfa_code:r.string().optional()});import{z as i}from"zod";import{z as a}from"zod";var Se=a.object({client_token:a.string(),policies:a.array(a.string()),metadata:a.any(),lease_duration:a.number(),renewable:a.boolean()}),V=a.object({accessor:a.string(),config:a.record(a.any()).nullable(),description:a.string(),external_entropy_access:a.boolean(),local:a.boolean(),options:a.record(a.any()).nullable(),plugin_version:a.string(),running_plugin_version:a.string(),running_sha256:a.string(),seal_wrap:a.boolean(),type:a.string(),uuid:a.string()}),m=a.object({request_id:a.string(),lease_id:a.string(),renewable:a.boolean(),lease_duration:a.number(),wrap_info:a.record(a.any()).nullable(),warnings:a.record(a.any()).nullable(),auth:a.record(a.any()).nullable()}),Z=a.object({endpoint:a.string().optional(),apiVersion:a.string().optional(),pathPrefix:a.string().optional(),token:a.string().optional(),namespace:a.string().optional()}),l=a.record(a.any());var S=class extends u{get config(){return n({method:"POST",path:"/kubernetes/config",client:this.client,schema:{body:i.object({kubernetes_host:i.string().optional(),kubernetes_ca_cert:i.string().optional(),service_account_jwt:i.string().optional(),disable_local_ca_jwt:i.boolean().optional()}),response:l}})}get readConfig(){return n({method:"GET",path:"/kubernetes/config",client:this.client,schema:{response:l}})}get deleteConfig(){return n({method:"DELETE",path:"/kubernetes/config",client:this.client,schema:{response:i.boolean()}})}get createRole(){return n({method:"POST",path:"/kubernetes/roles/{{name}}",client:this.client,schema:{path:i.object({name:i.string()}),body:i.object({allowed_kubernetes_namespaces:i.array(i.string()).optional(),allowed_kubernetes_namespace_selector:i.string().optional(),token_max_ttl:i.string().optional(),token_default_ttl:i.string().optional(),token_default_audiences:i.string().optional(),service_account_name:i.string().optional(),kubernetes_role_name:i.string().optional(),kubernetes_role_type:i.string().optional(),generated_role_rules:i.string().optional(),name_template:i.string().optional(),extra_annotations:i.record(i.string()).optional(),extra_labels:i.record(i.string()).optional()}),response:l}})}get role(){return n({method:"GET",path:"/kubernetes/roles/{{name}}",client:this.client,schema:{path:i.object({name:i.string()}),response:l}})}get roles(){return n({method:"LIST",path:"/kubernetes/roles",client:this.client,schema:{response:l}})}get deleteRole(){return n({method:"DELETE",path:"/kubernetes/roles/{{name}}",client:this.client,schema:{path:i.object({name:i.string()}),response:i.boolean()}})}get generateCreds(){return n({method:"POST",path:"/kubernetes/creds/{{name}}",client:this.client,schema:{path:i.object({name:i.string()}),body:i.object({role:i.string(),kubernetes_namespace:i.string().optional(),cluster_role_binding:i.boolean().optional(),ttl:i.string().optional(),audiences:i.string().optional()}),response:l}})}};import{z as o}from"zod";var x=class extends u{get read(){return n({method:"GET",path:"/{{mountPath}}/{{path}}",client:this.client,schema:{path:o.object({mountPath:o.string(),path:o.string()}),response:m.extend({data:l})}})}get list(){return n({method:"LIST",path:"/{{mountPath}}/{{path}}",client:this.client,schema:{path:o.object({mountPath:o.string(),path:o.string()}),response:m.extend({data:o.object({keys:o.array(o.string())})})}})}get write(){return n({method:"POST",path:"/{{mountPath}}/{{path}}",client:this.client,schema:{path:o.object({mountPath:o.string(),path:o.string()}),body:o.object({data:l}),response:o.boolean()},refine:s=>(s.body=s.body?s.body.data||{}:{},s)})}get delete(){return n({method:"DELETE",path:"/{{mountPath}}/{{path}}",client:this.client,schema:{path:o.object({mountPath:o.string(),path:o.string()}),response:o.boolean()}})}get info(){return n({method:"GET",path:"/sys/mounts/{{mountPath}}",client:this.client,schema:{path:o.object({mountPath:o.string()}),response:m.extend({deprecation_status:o.string(),type:o.string(),description:o.string(),seal_wrap:o.boolean(),options:l,running_plugin_version:o.string(),running_sha256:o.string(),config:o.object({default_lease_ttl:o.number(),force_no_cache:o.boolean(),max_lease_ttl:o.number()}),accessor:o.string(),local:o.boolean(),external_entropy_access:o.boolean(),uuid:o.string(),plugin_version:o.string(),data:o.object({accessor:o.string(),config:o.object({default_lease_ttl:o.number(),force_no_cache:o.boolean(),max_lease_ttl:o.number()}),deprecation_status:o.string(),description:o.string(),external_entropy_access:o.boolean(),local:o.boolean(),options:l,plugin_version:o.string(),running_plugin_version:o.string(),running_sha256:o.string(),seal_wrap:o.boolean(),type:o.string(),uuid:o.string()})})}})}};import{z as t}from"zod";var E=class extends u{get config(){return n({method:"POST",path:"/{{mountPath}}/config",client:this.client,schema:{path:t.object({mountPath:t.string()}),body:t.object({max_versions:t.number().optional(),cas_required:t.boolean().optional(),delete_version_after:t.string().optional()}),response:t.boolean()}})}get readConfig(){return n({method:"GET",path:"/{{mountPath}}/config",client:this.client,schema:{path:t.object({mountPath:t.string()}),response:m.extend({data:t.object({cas_required:t.boolean(),delete_version_after:t.string(),max_versions:t.number()})})}})}get read(){return n({method:"GET",path:"/{{mountPath}}/data/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),searchParams:t.object({version:t.number().default(0).optional()}),response:m.extend({data:t.object({data:t.record(t.string()),metadata:k})})}})}get write(){return n({method:"POST",path:"/{{mountPath}}/data/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),body:t.object({data:t.record(t.any()).default({}),options:U.default({}).optional()}),response:m.extend({data:k})}})}get patch(){return n({method:"PATCH",path:"/{{mountPath}}/data/{{path}}",client:this.client,refine:s=>(s.headers=Object.assign(s.headers||{},{"Content-Type":"application/merge-patch+json"}),s),schema:{path:t.object({mountPath:t.string(),path:t.string()}),body:t.object({data:t.any(),options:U}),response:t.object({data:k})}})}get subKeys(){return n({method:"GET",path:"/{{mountPath}}/subkeys/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),searchParams:t.object({version:t.number().optional(),depth:t.number().optional()}),response:m.extend({data:t.object({metadata:k,subkeys:t.record(t.any())})})}})}get deleteLatest(){return n({method:"DELETE",path:"/{{mountPath}}/data/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),response:t.boolean()}})}get delete(){return n({method:"POST",path:"/{{mountPath}}/delete/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),body:t.object({versions:t.array(t.number())}),response:t.boolean()}})}get undelete(){return n({method:"POST",path:"/{{mountPath}}/undelete/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),body:t.object({versions:t.array(t.number())}),response:t.boolean()}})}get destroy(){return n({method:"POST",path:"/{{mountPath}}/destroy/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),body:t.object({versions:t.array(t.number())}),response:t.boolean()}})}get list(){return n({method:"LIST",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),response:m.extend({data:t.object({keys:t.array(t.string())})})}})}get readMetadata(){return n({method:"GET",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),response:m.extend({data:t.object({cas_required:t.boolean(),created_time:t.string(),current_version:t.number(),custom_metadata:t.record(t.string()).nullable(),delete_version_after:t.string(),max_versions:t.number(),oldest_version:t.number(),updated_time:t.string(),versions:t.record(t.object({created_time:t.string(),deletion_time:t.string(),destroyed:t.boolean()}))})})}})}get writeMetadata(){return n({method:"POST",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),body:F,response:t.boolean()}})}get patchMetadata(){return n({method:"PATCH",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,refine:s=>(s.headers=Object.assign(s.headers||{},{"Content-Type":"application/merge-patch+json"}),s),schema:{path:t.object({mountPath:t.string(),path:t.string()}),body:F,response:t.boolean()}})}get deleteMetadata(){return n({method:"DELETE",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,schema:{path:t.object({mountPath:t.string(),path:t.string()}),response:t.boolean()}})}get info(){return n({method:"GET",path:"/sys/mounts/{{mountPath}}",client:this.client,schema:{path:t.object({mountPath:t.string()}),response:m.extend({local:t.boolean(),seal_wrap:t.boolean(),external_entropy_access:t.boolean(),options:l,running_sha256:t.string(),deprecation_status:t.string(),config:t.object({default_lease_ttl:t.number(),force_no_cache:t.boolean(),max_lease_ttl:t.number()}),type:t.string(),description:t.string(),accessor:t.string(),uuid:t.string(),plugin_version:t.string(),running_plugin_version:t.string(),data:t.object({accessor:t.string(),config:t.object({default_lease_ttl:t.number(),force_no_cache:t.boolean(),max_lease_ttl:t.number()}),deprecation_status:t.string(),description:t.string(),external_entropy_access:t.boolean(),local:t.boolean(),options:l,plugin_version:t.string(),running_plugin_version:t.string(),running_sha256:t.string(),seal_wrap:t.boolean(),type:t.string(),uuid:t.string()})})}})}},k=t.object({created_time:t.string(),custom_metadata:t.record(t.string()).nullable(),deletion_time:t.string(),destroyed:t.boolean(),version:t.number()}),F=t.object({max_versions:t.number().optional(),cas_required:t.boolean().optional(),delete_version_after:t.string().optional(),custom_metadata:t.record(t.string()).nullable().optional()}),U=t.object({cas:t.number().default(0),check_and_set:t.string().optional(),max_versions:t.number().optional(),prelease:t.number().optional(),version:t.number().optional()});var C=class{constructor(s={}){this.opts=s;let{request:h,fetcher:b,...v}=s,d=Z.parse(v);this.endpoint=d.endpoint||process.env.VAULT_ADDR||"http://127.0.0.1:8200",this.apiVersion=d.apiVersion||"v1",this.pathPrefix=d.pathPrefix||"",this.namespace=d.namespace||process.env.VAULT_NAMESPACE,this.token=d.token||process.env.VAULT_TOKEN,this.fetcher=b,this.request=h}endpoint;apiVersion;pathPrefix;namespace;token;request;fetcher;get aws(){return new T(this)}get kubernetes(){return new S(this)}get kv(){return new x(this)}get kv2(){return new E(this)}config=n({method:"POST",path:"/{{mountPath}}/config",client:this,schema:{path:e.object({mountPath:e.string()}),body:e.any(),response:e.any()}});read=n({method:"GET",path:"/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:l}});write=n({method:"POST",path:"/{{path}}",client:this,schema:{path:e.object({path:e.string()}),body:e.object({data:l}),response:e.union([l,e.boolean()])},refine:s=>(s.body=s.body?s.body.data||{}:{},s)});delete=n({method:"DELETE",path:"/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:e.boolean()}});list=n({method:"LIST",path:"/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:l}});get listDevices(){return n({method:"GET",path:"/sys/audit",client:this,schema:{response:m.extend({data:e.record(e.object({type:e.string(),description:e.string(),options:e.record(e.any())}))})}})}get disableDevice(){return n({method:"DELETE",path:"/sys/audit/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:e.boolean()}})}get enableDevice(){return n({method:"POST",path:"/sys/audit/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:e.boolean()}})}get queryCapabilities(){return n({method:"POST",path:"/sys/capabilities",client:this,schema:{body:e.object({token:e.string(),paths:e.array(e.string())}),response:e.boolean()}})}get sealStatus(){return n({method:"GET",path:"/sys/seal-status",client:this,schema:{response:e.object({type:e.string(),initialized:e.boolean(),sealed:e.boolean(),t:e.number(),n:e.number(),progress:e.number(),nonce:e.string(),version:e.string(),build_date:e.string(),migration:e.boolean(),recovery_seal:e.boolean(),storage_type:e.string()})}})}get initialized(){return n({method:"GET",path:"/sys/init",client:this,schema:{response:e.object({initialized:e.boolean()})}})}get init(){return n({method:"POST",path:"/sys/init",client:this,schema:{body:e.object({pgp_keys:e.array(e.string()).optional(),root_token_pgp_key:e.string().default("").optional(),secret_shares:e.number(),secret_threshold:e.number(),stored_shares:e.number().optional(),recovery_shares:e.number().default(0).optional(),recovery_threshold:e.number().default(0).optional(),recovery_pgp_keys:e.array(e.string()).optional()}),response:e.object({keys:e.array(e.string()),keys_base64:e.array(e.string()),root_token:e.string()})}})}get unseal(){return n({method:"POST",path:"/sys/unseal",client:this,schema:{body:e.object({key:e.string(),reset:e.boolean().default(!1).optional(),migrate:e.boolean().default(!1).optional()}),response:e.discriminatedUnion("sealed",[e.object({sealed:e.literal(!0),t:e.number(),n:e.number(),progress:e.number(),version:e.string()}),e.object({sealed:e.literal(!1),t:e.number(),n:e.number(),progress:e.number(),version:e.string(),cluster_name:e.string(),cluster_id:e.string()})])}})}get seal(){return n({method:"POST",path:"/sys/seal",client:this,schema:{response:e.boolean()}})}get getRootGenerationProgress(){return n({method:"GET",path:"/sys/generate-root/attempt",client:this,schema:{response:e.object({started:e.boolean(),nonce:e.string(),progress:e.number(),required:e.number(),encoded_token:e.string(),pgp_fingerprint:e.string(),otp_length:e.number(),complete:e.boolean()})}})}get startRootGeneration(){return n({method:"POST",path:"/sys/generate-root/attempt",client:this,schema:{body:e.object({otp:e.string()}),response:e.object({started:e.boolean(),nonce:e.string(),progress:e.number(),required:e.number(),encoded_token:e.string(),otp:e.string(),otp_length:e.number(),complete:e.boolean()})}})}get cancelRootGeneration(){return n({method:"DELETE",path:"/sys/generate-root/attempt",client:this,schema:{response:e.record(e.any())}})}get provideKeyShare(){return n({method:"POST",path:"/sys/generate-root/update",client:this,schema:{body:e.object({key:e.string(),nonce:e.string()}),response:e.object({started:e.boolean(),nonce:e.string(),progress:e.number(),required:e.number(),pgp_fingerprint:e.string(),complete:e.boolean(),encoded_token:e.string()})}})}get mounts(){return n({method:"GET",path:"/sys/mounts",client:this,schema:{response:e.object({request_id:e.string(),lease_id:e.string(),lease_duration:e.number(),renewable:e.boolean(),data:e.record(V),warnings:e.array(e.string()).nullable()})}})}get mount(){return n({method:"POST",path:"/sys/mounts/{{mountPath}}",client:this,schema:{path:e.object({mountPath:e.string()}),body:e.object({type:e.string(),description:e.string().optional(),config:e.record(e.string()).optional()})}})}get unmount(){return n({method:"DELETE",path:"/sys/mounts/{{mountPath}}",client:this,schema:{path:e.object({mountPath:e.string()})}})}get engineInfo(){return n({method:"GET",path:"/sys/mounts/{{mountPath}}",client:this,schema:{path:e.object({mountPath:e.string()}),response:l}})}get tune(){return n({method:"GET",path:"/sys/mounts/{{mountPath}}/tune",client:this,schema:{path:e.object({mountPath:e.string()}),response:e.object({default_lease_ttl:e.number(),max_lease_ttl:e.number(),force_no_cache:e.boolean()})}})}get tuneMount(){return n({method:"POST",path:"/sys/mounts/{{mountPath}}/tune",client:this,schema:{path:e.object({mountPath:e.string()}),body:e.object({default_lease_ttl:e.number().optional(),max_lease_ttl:e.number().optional(),description:e.string().optional(),audit_non_hmac_request_keys:e.array(e.string()).optional(),audit_non_hmac_response_keys:e.array(e.string()).optional(),listing_visibility:e.string().optional(),passthrough_request_headers:e.array(e.string()).optional(),allowed_response_headers:e.array(e.string()).optional(),allowed_managed_keys:e.array(e.string()).optional(),plugin_version:e.string().optional()}),response:l}})}get health(){return n({method:"GET",path:"/sys/health",client:this,schema:{response:e.object({initialized:e.boolean(),sealed:e.boolean(),standby:e.boolean(),performance_standby:e.boolean(),replication_performance_mode:e.string(),replication_dr_mode:e.string(),server_time_utc:e.number(),version:e.string(),cluster_name:e.string(),cluster_id:e.string()})}})}get hostInfo(){return n({method:"GET",path:"/sys/host-info",client:this,schema:{response:m.extend({data:e.object({cpu:e.array(e.object({cpu:e.number(),vendorId:e.string(),family:e.string(),model:e.string(),stepping:e.number(),physicalId:e.string(),coreId:e.string(),cores:e.number(),modelName:e.string(),mhz:e.number(),cacheSize:e.number(),flags:e.array(e.string()),microcode:e.string()})),cpu_times:e.array(e.object({cpu:e.string(),user:e.number(),system:e.number(),idle:e.number(),nice:e.number(),iowait:e.number(),irq:e.number(),softirq:e.number(),steal:e.number(),guest:e.number(),guestNice:e.number()})),disk:e.array(e.object({path:e.string(),fstype:e.string(),total:e.number(),free:e.number(),used:e.number(),usedPercent:e.number(),inodesTotal:e.number(),inodesUsed:e.number(),inodesFree:e.number(),inodesUsedPercent:e.number()})),host:e.object({hostname:e.string(),uptime:e.number(),bootTime:e.number(),procs:e.number(),os:e.string(),platform:e.string(),platformFamily:e.string(),platformVersion:e.string(),kernelVersion:e.string(),kernelArch:e.string(),virtualizationSystem:e.string(),virtualizationRole:e.string(),hostid:e.string()}),memory:e.object({total:e.number(),available:e.number(),used:e.number(),usedPercent:e.number(),free:e.number(),active:e.number(),inactive:e.number(),wired:e.number(),laundry:e.number(),buffers:e.number(),cached:e.number(),writeback:e.number(),dirty:e.number(),writebacktmp:e.number(),shared:e.number(),slab:e.number(),sreclaimable:e.number(),sunreclaim:e.number(),pagetables:e.number(),swapcached:e.number(),commitlimit:e.number(),committedas:e.number(),hightotal:e.number(),highfree:e.number(),lowtotal:e.number(),lowfree:e.number(),swaptotal:e.number(),swapfree:e.number(),mapped:e.number(),vmalloctotal:e.number(),vmallocused:e.number(),vmallocchunk:e.number(),hugepagestotal:e.number(),hugepagesfree:e.number(),hugepagesize:e.number()}),timestamp:e.string()})})}})}};te(ee);export{C as Client,f as VaultError,n as generateCommand}; | ||
import{z as e}from"zod";import{trySafe as t}from"p-safe";import{generateRequest as o,ZodResponse as n}from"zod-request";var s=Object.create,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,i=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,u=(e,t)=>function(){return t||(0,e[l(e)[0]])((t={exports:{}}).exports,t),t.exports},p=(e,t,o)=>(o=null!=e?s(i(e)):{},((e,t,o,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of l(t))d.call(e,s)||s===o||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e})(r(o,"default",{value:e,enumerable:!0}),e)),c=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(e,t){t.exports=function(e,t){for(var o=-1,n=null==e?0:e.length,s=Array(n);++o<n;)s[o]=t(e[o],o,e);return s}}}),h=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(e,t){t.exports=function(){this.__data__=[],this.size=0}}}),m=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(e,t){t.exports=function(e,t){return e===t||e!=e&&t!=t}}}),_=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(e,t){var o=m();t.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}}}),b=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(e,t){var o=_(),n=Array.prototype.splice;t.exports=function(e){var t=this.__data__,s=o(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}}}),g=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(e,t){var o=_();t.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}}}),f=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(e,t){var o=_();t.exports=function(e){return o(this.__data__,e)>-1}}}),y=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(e,t){var o=_();t.exports=function(e,t){var n=this.__data__,s=o(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}}}),j=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(e,t){var o=h(),n=b(),s=g(),r=f(),a=y();function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=o,l.prototype.delete=n,l.prototype.get=s,l.prototype.has=r,l.prototype.set=a,t.exports=l}}),v=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(e,t){var o=j();t.exports=function(){this.__data__=new o,this.size=0}}}),x=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(e,t){t.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}}}),P=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(e,t){t.exports=function(e){return this.__data__.get(e)}}}),O=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(e,t){t.exports=function(e){return this.__data__.has(e)}}}),w=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(e,t){var o="object"==typeof global&&global&&global.Object===Object&&global;t.exports=o}}),T=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(e,t){var o=w(),n="object"==typeof self&&self&&self.Object===Object&&self,s=o||n||Function("return this")();t.exports=s}}),S=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(e,t){var o=T().Symbol;t.exports=o}}),k=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(e,t){var o=S(),n=Object.prototype,s=n.hasOwnProperty,r=n.toString,a=o?o.toStringTag:void 0;t.exports=function(e){var t=s.call(e,a),o=e[a];try{e[a]=void 0;var n=!0}catch(e){}var l=r.call(e);return n&&(t?e[a]=o:delete e[a]),l}}}),A=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(e,t){var o=Object.prototype.toString;t.exports=function(e){return o.call(e)}}}),E=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(e,t){var o=S(),n=k(),s=A(),r=o?o.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?n(e):s(e)}}}),C=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"(e,t){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}}),I=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"(e,t){var o=E(),n=C();t.exports=function(e){if(!n(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}}),G=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js"(e,t){var o=T()["__core-js_shared__"];t.exports=o}}),z=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js"(e,t){var o,n=G(),s=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(e){return!!s&&s in e}}}),D=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js"(e,t){var o=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}}}),L=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js"(e,t){var o=I(),n=z(),s=C(),r=D(),a=/^\[object .+?Constructor\]$/,l=Function.prototype,i=Object.prototype,d=l.toString,u=i.hasOwnProperty,p=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!s(e)||n(e))&&(o(e)?p:a).test(r(e))}}}),M=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js"(e,t){t.exports=function(e,t){return null==e?void 0:e[t]}}}),U=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js"(e,t){var o=L(),n=M();t.exports=function(e,t){var s=n(e,t);return o(s)?s:void 0}}}),F=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(e,t){var o=U()(T(),"Map");t.exports=o}}),V=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(e,t){var o=U()(Object,"create");t.exports=o}}),R=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js"(e,t){var o=V();t.exports=function(){this.__data__=o?o(null):{},this.size=0}}}),q=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js"(e,t){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}}),$=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js"(e,t){var o=V(),n=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(o){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}}}),B=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js"(e,t){var o=V(),n=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:n.call(t,e)}}}),N=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js"(e,t){var o=V();t.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}}}),K=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js"(e,t){var o=R(),n=q(),s=$(),r=B(),a=N();function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=o,l.prototype.delete=n,l.prototype.get=s,l.prototype.has=r,l.prototype.set=a,t.exports=l}}),H=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(e,t){var o=K(),n=j(),s=F();t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(s||n),string:new o}}}}),W=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js"(e,t){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}}),J=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js"(e,t){var o=W();t.exports=function(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}}}),X=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"(e,t){var o=J();t.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}}}),Z=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"(e,t){var o=J();t.exports=function(e){return o(this,e).get(e)}}}),Q=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"(e,t){var o=J();t.exports=function(e){return o(this,e).has(e)}}}),Y=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js"(e,t){var o=J();t.exports=function(e,t){var n=o(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}}}),ee=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js"(e,t){var o=H(),n=X(),s=Z(),r=Q(),a=Y();function l(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=o,l.prototype.delete=n,l.prototype.get=s,l.prototype.has=r,l.prototype.set=a,t.exports=l}}),te=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(e,t){var o=j(),n=F(),s=ee();t.exports=function(e,t){var r=this.__data__;if(r instanceof o){var a=r.__data__;if(!n||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(a)}return r.set(e,t),this.size=r.size,this}}}),oe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(e,t){var o=j(),n=v(),s=x(),r=P(),a=O(),l=te();function i(e){var t=this.__data__=new o(e);this.size=t.size}i.prototype.clear=n,i.prototype.delete=s,i.prototype.get=r,i.prototype.has=a,i.prototype.set=l,t.exports=i}}),ne=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayEach.js"(e,t){t.exports=function(e,t){for(var o=-1,n=null==e?0:e.length;++o<n&&!1!==t(e[o],o,e););return e}}}),se=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(e,t){var o=U(),n=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=n}}),re=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(e,t){var o=se();t.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}}}),ae=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(e,t){var o=re(),n=m(),s=Object.prototype.hasOwnProperty;t.exports=function(e,t,r){var a=e[t];s.call(e,t)&&n(a,r)&&(void 0!==r||t in e)||o(e,t,r)}}}),le=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"(e,t){var o=ae(),n=re();t.exports=function(e,t,s,r){var a=!s;s||(s={});for(var l=-1,i=t.length;++l<i;){var d=t[l],u=r?r(s[d],e[d],d,s,e):void 0;void 0===u&&(u=e[d]),a?n(s,d,u):o(s,d,u)}return s}}}),ie=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(e,t){t.exports=function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}}}),de=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(e,t){t.exports=function(e){return null!=e&&"object"==typeof e}}}),ue=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js"(e,t){var o=E(),n=de();t.exports=function(e){return n(e)&&"[object Arguments]"==o(e)}}}),pe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"(e,t){var o=ue(),n=de(),s=Object.prototype,r=s.hasOwnProperty,a=s.propertyIsEnumerable,l=o(function(){return arguments}())?o:function(e){return n(e)&&r.call(e,"callee")&&!a.call(e,"callee")};t.exports=l}}),ce=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(e,t){var o=Array.isArray;t.exports=o}}),he=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(e,t){t.exports=function(){return!1}}}),me=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js"(e,t){var o=T(),n=he(),s="object"==typeof e&&e&&!e.nodeType&&e,r=s&&"object"==typeof t&&t&&!t.nodeType&&t,a=r&&r.exports===s?o.Buffer:void 0,l=(a?a.isBuffer:void 0)||n;t.exports=l}}),_e=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"(e,t){var o=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&o.test(e))&&e>-1&&e%1==0&&e<t}}}),be=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(e,t){t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}}),ge=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js"(e,t){var o=E(),n=be(),s=de(),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(e){return s(e)&&n(e.length)&&!!r[o(e)]}}}),fe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"(e,t){t.exports=function(e){return function(t){return e(t)}}}}),ye=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js"(e,t){var o=w(),n="object"==typeof e&&e&&!e.nodeType&&e,s=n&&"object"==typeof t&&t&&!t.nodeType&&t,r=s&&s.exports===n&&o.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(e){}}();t.exports=a}}),je=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js"(e,t){var o=ge(),n=fe(),s=ye(),r=s&&s.isTypedArray,a=r?n(r):o;t.exports=a}}),ve=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(e,t){var o=ie(),n=pe(),s=ce(),r=me(),a=_e(),l=je(),i=Object.prototype.hasOwnProperty;t.exports=function(e,t){var d=s(e),u=!d&&n(e),p=!d&&!u&&r(e),c=!d&&!u&&!p&&l(e),h=d||u||p||c,m=h?o(e.length,String):[],_=m.length;for(var b in e)!t&&!i.call(e,b)||h&&("length"==b||p&&("offset"==b||"parent"==b)||c&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||a(b,_))||m.push(b);return m}}}),xe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(e,t){var o=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||o)}}}),Pe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(e,t){t.exports=function(e,t){return function(o){return e(t(o))}}}}),Oe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js"(e,t){var o=Pe()(Object.keys,Object);t.exports=o}}),we=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js"(e,t){var o=xe(),n=Oe(),s=Object.prototype.hasOwnProperty;t.exports=function(e){if(!o(e))return n(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}}}),Te=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(e,t){var o=I(),n=be();t.exports=function(e){return null!=e&&n(e.length)&&!o(e)}}}),Se=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"(e,t){var o=ve(),n=we(),s=Te();t.exports=function(e){return s(e)?o(e):n(e)}}}),ke=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssign.js"(e,t){var o=le(),n=Se();t.exports=function(e,t){return e&&o(t,n(t),e)}}}),Ae=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(e,t){t.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}}}),Ee=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(e,t){var o=C(),n=xe(),s=Ae(),r=Object.prototype.hasOwnProperty;t.exports=function(e){if(!o(e))return s(e);var t=n(e),a=[];for(var l in e)("constructor"!=l||!t&&r.call(e,l))&&a.push(l);return a}}}),Ce=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(e,t){var o=ve(),n=Ee(),s=Te();t.exports=function(e){return s(e)?o(e,!0):n(e)}}}),Ie=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignIn.js"(e,t){var o=le(),n=Ce();t.exports=function(e,t){return e&&o(t,n(t),e)}}}),Ge=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(e,t){var o=T(),n="object"==typeof e&&e&&!e.nodeType&&e,s=n&&"object"==typeof t&&t&&!t.nodeType&&t,r=s&&s.exports===n?o.Buffer:void 0,a=r?r.allocUnsafe:void 0;t.exports=function(e,t){if(t)return e.slice();var o=e.length,n=a?a(o):new e.constructor(o);return e.copy(n),n}}}),ze=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js"(e,t){t.exports=function(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}}}),De=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js"(e,t){t.exports=function(e,t){for(var o=-1,n=null==e?0:e.length,s=0,r=[];++o<n;){var a=e[o];t(a,o,e)&&(r[s++]=a)}return r}}}),Le=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js"(e,t){t.exports=function(){return[]}}}),Me=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js"(e,t){var o=De(),n=Le(),s=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,a=r?function(e){return null==e?[]:(e=Object(e),o(r(e),(function(t){return s.call(e,t)})))}:n;t.exports=a}}),Ue=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copySymbols.js"(e,t){var o=le(),n=Me();t.exports=function(e,t){return o(e,n(e),t)}}}),Fe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js"(e,t){t.exports=function(e,t){for(var o=-1,n=t.length,s=e.length;++o<n;)e[s+o]=t[o];return e}}}),Ve=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(e,t){var o=Pe()(Object.getPrototypeOf,Object);t.exports=o}}),Re=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js"(e,t){var o=Fe(),n=Ve(),s=Me(),r=Le(),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,s(e)),e=n(e);return t}:r;t.exports=a}}),qe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copySymbolsIn.js"(e,t){var o=le(),n=Re();t.exports=function(e,t){return o(e,n(e),t)}}}),$e=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js"(e,t){var o=Fe(),n=ce();t.exports=function(e,t,s){var r=t(e);return n(e)?r:o(r,s(e))}}}),Be=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js"(e,t){var o=$e(),n=Me(),s=Se();t.exports=function(e){return o(e,s,n)}}}),Ne=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js"(e,t){var o=$e(),n=Re(),s=Ce();t.exports=function(e){return o(e,s,n)}}}),Ke=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js"(e,t){var o=U()(T(),"DataView");t.exports=o}}),He=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js"(e,t){var o=U()(T(),"Promise");t.exports=o}}),We=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js"(e,t){var o=U()(T(),"Set");t.exports=o}}),Je=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js"(e,t){var o=U()(T(),"WeakMap");t.exports=o}}),Xe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js"(e,t){var o=Ke(),n=F(),s=He(),r=We(),a=Je(),l=E(),i=D(),d="[object Map]",u="[object Promise]",p="[object Set]",c="[object WeakMap]",h="[object DataView]",m=i(o),_=i(n),b=i(s),g=i(r),f=i(a),y=l;(o&&y(new o(new ArrayBuffer(1)))!=h||n&&y(new n)!=d||s&&y(s.resolve())!=u||r&&y(new r)!=p||a&&y(new a)!=c)&&(y=function(e){var t=l(e),o="[object Object]"==t?e.constructor:void 0,n=o?i(o):"";if(n)switch(n){case m:return h;case _:return d;case b:return u;case g:return p;case f:return c}return t}),t.exports=y}}),Ze=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneArray.js"(e,t){var o=Object.prototype.hasOwnProperty;t.exports=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(n.index=e.index,n.input=e.input),n}}}),Qe=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(e,t){var o=T().Uint8Array;t.exports=o}}),Ye=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(e,t){var o=Qe();t.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}}}),et=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneDataView.js"(e,t){var o=Ye();t.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}}),tt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneRegExp.js"(e,t){var o=/\w*$/;t.exports=function(e){var t=new e.constructor(e.source,o.exec(e));return t.lastIndex=e.lastIndex,t}}}),ot=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneSymbol.js"(e,t){var o=S(),n=o?o.prototype:void 0,s=n?n.valueOf:void 0;t.exports=function(e){return s?Object(s.call(e)):{}}}}),nt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(e,t){var o=Ye();t.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}}),st=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneByTag.js"(e,t){var o=Ye(),n=et(),s=tt(),r=ot(),a=nt();t.exports=function(e,t,l){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return n(e,l);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,l);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return s(e);case"[object Symbol]":return r(e)}}}}),rt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(e,t){var o=C(),n=Object.create,s=function(){function e(){}return function(t){if(!o(t))return{};if(n)return n(t);e.prototype=t;var s=new e;return e.prototype=void 0,s}}();t.exports=s}}),at=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(e,t){var o=rt(),n=Ve(),s=xe();t.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:o(n(e))}}}),lt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMap.js"(e,t){var o=Xe(),n=de();t.exports=function(e){return n(e)&&"[object Map]"==o(e)}}}),it=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isMap.js"(e,t){var o=lt(),n=fe(),s=ye(),r=s&&s.isMap,a=r?n(r):o;t.exports=a}}),dt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsSet.js"(e,t){var o=Xe(),n=de();t.exports=function(e){return n(e)&&"[object Set]"==o(e)}}}),ut=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSet.js"(e,t){var o=dt(),n=fe(),s=ye(),r=s&&s.isSet,a=r?n(r):o;t.exports=a}}),pt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseClone.js"(e,t){var o=oe(),n=ne(),s=ae(),r=ke(),a=Ie(),l=Ge(),i=ze(),d=Ue(),u=qe(),p=Be(),c=Ne(),h=Xe(),m=Ze(),_=st(),b=at(),g=ce(),f=me(),y=it(),j=C(),v=ut(),x=Se(),P=Ce(),O="[object Arguments]",w="[object Function]",T="[object Object]",S={};S[O]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[T]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[w]=S["[object WeakMap]"]=!1,t.exports=function e(t,k,A,E,C,I){var G,z=1&k,D=2&k,L=4&k;if(A&&(G=C?A(t,E,C,I):A(t)),void 0!==G)return G;if(!j(t))return t;var M=g(t);if(M){if(G=m(t),!z)return i(t,G)}else{var U=h(t),F=U==w||"[object GeneratorFunction]"==U;if(f(t))return l(t,z);if(U==T||U==O||F&&!C){if(G=D||F?{}:b(t),!z)return D?u(t,a(G,t)):d(t,r(G,t))}else{if(!S[U])return C?t:{};G=_(t,U,z)}}I||(I=new o);var V=I.get(t);if(V)return V;I.set(t,G),v(t)?t.forEach((function(o){G.add(e(o,k,A,o,t,I))})):y(t)&&t.forEach((function(o,n){G.set(n,e(o,k,A,n,t,I))}));var R=M?void 0:(L?D?c:p:D?P:x)(t);return n(R||t,(function(o,n){R&&(o=t[n=o]),s(G,n,e(o,k,A,n,t,I))})),G}}}),ct=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(e,t){var o=E(),n=de();t.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==o(e)}}}),ht=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"(e,t){var o=ce(),n=ct(),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(e,t){if(o(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!n(e))||(r.test(e)||!s.test(e)||null!=t&&e in Object(t))}}}),mt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js"(e,t){var o=ee();function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var s=function(){var o=arguments,n=t?t.apply(this,o):o[0],r=s.cache;if(r.has(n))return r.get(n);var a=e.apply(this,o);return s.cache=r.set(n,a)||r,a};return s.cache=new(n.Cache||o),s}n.Cache=o,t.exports=n}}),_t=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js"(e,t){var o=mt();t.exports=function(e){var t=o(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}}}),bt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js"(e,t){var o=_t(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,r=o((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,(function(e,o,n,r){t.push(n?r.replace(s,"$1"):o||e)})),t}));t.exports=r}}),gt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(e,t){var o=S(),n=c(),s=ce(),r=ct(),a=o?o.prototype:void 0,l=a?a.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(s(t))return n(t,e)+"";if(r(t))return l?l.call(t):"";var o=t+"";return"0"==o&&1/t==-1/0?"-0":o}}}),ft=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(e,t){var o=gt();t.exports=function(e){return null==e?"":o(e)}}}),yt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"(e,t){var o=ce(),n=ht(),s=bt(),r=ft();t.exports=function(e,t){return o(e)?e:n(e,t)?[e]:s(r(e))}}}),jt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js"(e,t){t.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}}}),vt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js"(e,t){var o=ct();t.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}}}),xt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(e,t){var o=yt(),n=vt();t.exports=function(e,t){for(var s=0,r=(t=o(t,e)).length;null!=e&&s<r;)e=e[n(t[s++])];return s&&s==r?e:void 0}}}),Pt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js"(e,t){t.exports=function(e,t,o){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(o=o>s?s:o)<0&&(o+=s),s=t>o?0:o-t>>>0,t>>>=0;for(var r=Array(s);++n<s;)r[n]=e[n+t];return r}}}),Ot=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_parent.js"(e,t){var o=xt(),n=Pt();t.exports=function(e,t){return t.length<2?e:o(e,n(t,0,-1))}}}),wt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnset.js"(e,t){var o=yt(),n=jt(),s=Ot(),r=vt();t.exports=function(e,t){return t=o(t,e),null==(e=s(e,t))||delete e[r(n(t))]}}}),Tt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(e,t){var o=E(),n=Ve(),s=de(),r=Function.prototype,a=Object.prototype,l=r.toString,i=a.hasOwnProperty,d=l.call(Object);t.exports=function(e){if(!s(e)||"[object Object]"!=o(e))return!1;var t=n(e);if(null===t)return!0;var r=i.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==d}}}),St=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_customOmitClone.js"(e,t){var o=Tt();t.exports=function(e){return o(e)?void 0:e}}}),kt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js"(e,t){var o=S(),n=pe(),s=ce(),r=o?o.isConcatSpreadable:void 0;t.exports=function(e){return s(e)||n(e)||!!(r&&e&&e[r])}}}),At=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js"(e,t){var o=Fe(),n=kt();t.exports=function e(t,s,r,a,l){var i=-1,d=t.length;for(r||(r=n),l||(l=[]);++i<d;){var u=t[i];s>0&&r(u)?s>1?e(u,s-1,r,a,l):o(l,u):a||(l[l.length]=u)}return l}}}),Et=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js"(e,t){var o=At();t.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}}}),Ct=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js"(e,t){t.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}}}),It=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(e,t){var o=Ct(),n=Math.max;t.exports=function(e,t,s){return t=n(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,l=n(r.length-t,0),i=Array(l);++a<l;)i[a]=r[t+a];a=-1;for(var d=Array(t+1);++a<t;)d[a]=r[a];return d[t]=s(i),o(e,this,d)}}}}),Gt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"(e,t){t.exports=function(e){return function(){return e}}}}),zt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(e,t){t.exports=function(e){return e}}}),Dt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(e,t){var o=Gt(),n=se(),s=zt(),r=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:s;t.exports=r}}),Lt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js"(e,t){var o=Date.now;t.exports=function(e){var t=0,n=0;return function(){var s=o(),r=16-(s-n);if(n=s,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}}}),Mt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js"(e,t){var o=Dt(),n=Lt()(o);t.exports=n}}),Ut=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js"(e,t){var o=Et(),n=It(),s=Mt();t.exports=function(e){return s(n(e,void 0,o),e+"")}}}),Ft=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omit.js"(e,t){var o=c(),n=pt(),s=wt(),r=yt(),a=le(),l=St(),i=Ut(),d=Ne(),u=i((function(e,t){var i={};if(null==e)return i;var u=!1;t=o(t,(function(t){return t=r(t,e),u||(u=t.length>1),t})),a(e,d(e),i),u&&(i=n(i,7,l));for(var p=t.length;p--;)s(i,t[p]);return i}));t.exports=u}}),Vt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js"(e,t){var o=ae(),n=yt(),s=_e(),r=C(),a=vt();t.exports=function(e,t,l,i){if(!r(e))return e;for(var d=-1,u=(t=n(t,e)).length,p=u-1,c=e;null!=c&&++d<u;){var h=a(t[d]),m=l;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(d!=p){var _=c[h];void 0===(m=i?i(_,h,c):void 0)&&(m=r(_)?_:s(t[d+1])?[]:{})}o(c,h,m),c=c[h]}return e}}}),Rt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js"(e,t){var o=xt(),n=Vt(),s=yt();t.exports=function(e,t,r){for(var a=-1,l=t.length,i={};++a<l;){var d=t[a],u=o(e,d);r(u,d)&&n(i,s(d,e),u)}return i}}}),qt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js"(e,t){t.exports=function(e,t){return null!=e&&t in Object(e)}}}),$t=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js"(e,t){var o=yt(),n=pe(),s=ce(),r=_e(),a=be(),l=vt();t.exports=function(e,t,i){for(var d=-1,u=(t=o(t,e)).length,p=!1;++d<u;){var c=l(t[d]);if(!(p=null!=e&&i(e,c)))break;e=e[c]}return p||++d!=u?p:!!(u=null==e?0:e.length)&&a(u)&&r(c,u)&&(s(e)||n(e))}}}),Bt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js"(e,t){var o=qt(),n=$t();t.exports=function(e,t){return null!=e&&n(e,t,o)}}}),Nt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePick.js"(e,t){var o=Rt(),n=Bt();t.exports=function(e,t){return o(e,t,(function(t,o){return n(e,o)}))}}}),Kt=u({"node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js"(e,t){var o=Nt(),n=Ut()((function(e,t){return null==e?{}:o(e,t)}));t.exports=n}}),Ht=class{constructor(e){this.client=e}},Wt=p(Ft()),Jt=p(Kt()),Xt=class extends Error{constructor(e){Array.isArray(e)&&(e=e.join("\n")),super(`VaultError: ${e&&""!==e?e:"Not Found"}`)}};function Zt(e){if("string"!=typeof e)return!1;if(""===e||"{"!==e[0])return!1;try{const t=JSON.parse(e);return t||!1}catch(e){return!1}}function Qt(e){const t={};for(const o in e){const n=e[o];void 0!==n&&(t[o]=n)}return t}function Yt(s,r=!1){return async(a,l={})=>t((async()=>{const{method:t="GET",path:i,client:d,schema:u}=s,{strictSchema:p=!0,...c}=l,{url:h,input:m}=o(`${d.endpoint}/${d.apiVersion}${d.pathPrefix}${i}`,{method:t,...c,path:u?.path?(0,Jt.default)(a||{},Object.keys(u.path.shape)):void 0,params:u?.searchParams?(0,Jt.default)(a||{},Object.keys(u.searchParams.shape)):void 0,body:u?.body?u.body instanceof e.ZodObject?(0,Jt.default)(a||{},Object.keys(u.body.shape)):Qt((0,Wt.default)(a,Object.keys(u.searchParams?.shape||{}).concat(Object.keys(u.path?.shape||{})).concat(Object.keys(u.headers?.shape||{})))):void 0,headers:Qt(Object.assign({"X-Vault-Token":d.token,"X-Vault-Namespace":d.namespace},c.headers||{})),schema:u}),_=s.fetcher||d.fetcher||fetch,b=Object.assign(m,{url:new URL(h.toString().replace(///g,"/"))}),{url:g,...f}=s.refine?s.refine(b,a):b;f.body&&!Zt(f.body)&&(f.body=JSON.stringify(f.body));const y=await _(g,f);if(!1!==r)return{data:y};const{headers:j}=y,v=j.has("content-length")&&"0"!==j.get("content-length");if(!y.body&&!v)return{data:y.ok};const x=j.has("content-type")&&"application/json"===j.get("content-type");if(!p||!u.response||u.response instanceof e.ZodAny)return eo(x?await y.json():to(await y.text()));const P=new n(y,u.response);return eo(x?await P.json():to(await P.text()))}))}function eo(e){return"object"==typeof e&&"errors"in e?{error:new Xt(e.errors)}:{data:e}}function to(e){const t=Zt(e);return t||e}var oo=class extends Ht{get config(){return Yt({method:"POST",path:"/aws/config/root",client:this.client,schema:{body:e.object({max_retries:e.number().optional(),access_key:e.string().optional(),secret_key:e.string().optional(),role_arn:e.string().optional(),identity_token_audience:e.string().optional(),identity_token_ttl:e.string().optional(),region:e.string().optional(),iam_endpoint:e.string().optional(),sts_endpoint:e.string().optional(),username_template:e.string().optional()}),response:e.any()}})}get rootInfo(){return Yt({method:"GET",path:"/aws/config/root",client:this.client,schema:{response:e.any()}})}get rotateRoot(){return Yt({method:"POST",path:"/aws/config/rotate-root",client:this.client,schema:{response:e.any()}})}get configLease(){return Yt({method:"POST",path:"/aws/config/lease",client:this.client,schema:{body:e.object({lease:e.string(),lease_max:e.number()}),response:e.any()}})}get lease(){return Yt({method:"POST",path:"/aws/config/lease",client:this.client,schema:{response:e.any()}})}get role(){return Yt({method:"POST",path:"/aws/config/role",client:this.client,schema:{body:e.object({name:e.string(),credential_type:e.string(),role_arns:e.array(e.string()).optional(),policy_arns:e.array(e.string()).optional(),policy_document:e.string().optional(),iam_groups:e.array(e.string()).optional(),iam_tags:e.array(e.string()).optional(),default_sts_ttl:e.string().optional(),max_sts_ttl:e.string().optional(),user_path:e.string().optional(),permissions_boundary_arn:e.string().optional(),mfa_serial_number:e.string().optional(),policy:e.string().optional(),arn:e.string().optional()}),response:e.any()}})}get roleInfo(){return Yt({method:"GET",path:"/aws/roles/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),response:e.any()}})}get roles(){return Yt({method:"LIST",path:"/aws/roles",client:this.client,schema:{response:e.any()}})}get deleteRole(){return Yt({method:"DELETE",path:"/aws/roles/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),response:e.any()}})}get credentials(){return Yt({method:"GET",path:"/aws/creds/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),searchParams:no,response:e.any()}})}get stsCredentials(){return Yt({method:"POST",path:"/aws/sts/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),body:no,response:e.any()}})}get staticRole(){return Yt({method:"POST",path:"/aws/static-roles/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),body:e.object({username:e.string(),rotation_period:e.union([e.string(),e.number()])}),response:e.any()}})}get staticRoleInfo(){return Yt({method:"GET",path:"/aws/static-roles/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),response:e.any()}})}get deleteStaticRole(){return Yt({method:"DELETE",path:"/aws/static-roles/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),response:e.any()}})}get staticCredentials(){return Yt({method:"GET",path:"/aws/static-creds/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),response:e.any()}})}},no=e.object({role_arn:e.string().optional(),role_session_name:e.string().optional(),ttl:e.string().optional(),mfa_code:e.string().optional()});e.object({client_token:e.string(),policies:e.array(e.string()),metadata:e.any(),lease_duration:e.number(),renewable:e.boolean()});var so=e.object({accessor:e.string(),config:e.record(e.any()).nullable(),description:e.string(),external_entropy_access:e.boolean(),local:e.boolean(),options:e.record(e.any()).nullable(),plugin_version:e.string(),running_plugin_version:e.string(),running_sha256:e.string(),seal_wrap:e.boolean(),type:e.string(),uuid:e.string()}),ro=e.object({request_id:e.string(),lease_id:e.string(),renewable:e.boolean(),lease_duration:e.number(),wrap_info:e.record(e.any()).nullable(),warnings:e.record(e.any()).nullable(),auth:e.record(e.any()).nullable()}),ao=e.object({endpoint:e.string().optional(),apiVersion:e.string().optional(),pathPrefix:e.string().optional(),token:e.string().optional(),namespace:e.string().optional()}),lo=e.record(e.any()),io=class extends Ht{get config(){return Yt({method:"POST",path:"/kubernetes/config",client:this.client,schema:{body:e.object({kubernetes_host:e.string().optional(),kubernetes_ca_cert:e.string().optional(),service_account_jwt:e.string().optional(),disable_local_ca_jwt:e.boolean().optional()}),response:lo}})}get readConfig(){return Yt({method:"GET",path:"/kubernetes/config",client:this.client,schema:{response:lo}})}get deleteConfig(){return Yt({method:"DELETE",path:"/kubernetes/config",client:this.client,schema:{response:e.boolean()}})}get createRole(){return Yt({method:"POST",path:"/kubernetes/roles/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),body:e.object({allowed_kubernetes_namespaces:e.array(e.string()).optional(),allowed_kubernetes_namespace_selector:e.string().optional(),token_max_ttl:e.string().optional(),token_default_ttl:e.string().optional(),token_default_audiences:e.string().optional(),service_account_name:e.string().optional(),kubernetes_role_name:e.string().optional(),kubernetes_role_type:e.string().optional(),generated_role_rules:e.string().optional(),name_template:e.string().optional(),extra_annotations:e.record(e.string()).optional(),extra_labels:e.record(e.string()).optional()}),response:lo}})}get role(){return Yt({method:"GET",path:"/kubernetes/roles/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),response:lo}})}get roles(){return Yt({method:"LIST",path:"/kubernetes/roles",client:this.client,schema:{response:lo}})}get deleteRole(){return Yt({method:"DELETE",path:"/kubernetes/roles/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),response:e.boolean()}})}get generateCreds(){return Yt({method:"POST",path:"/kubernetes/creds/{{name}}",client:this.client,schema:{path:e.object({name:e.string()}),body:e.object({role:e.string(),kubernetes_namespace:e.string().optional(),cluster_role_binding:e.boolean().optional(),ttl:e.string().optional(),audiences:e.string().optional()}),response:lo}})}},uo=class extends Ht{get read(){return Yt({method:"GET",path:"/{{mountPath}}/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),response:ro.extend({data:lo})}})}get list(){return Yt({method:"LIST",path:"/{{mountPath}}/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),response:ro.extend({data:e.object({keys:e.array(e.string())})})}})}get write(){return Yt({method:"POST",path:"/{{mountPath}}/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),body:e.object({data:lo}),response:e.boolean()},refine:e=>(e.body=e.body&&e.body.data||{},e)})}get delete(){return Yt({method:"DELETE",path:"/{{mountPath}}/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),response:e.boolean()}})}get info(){return Yt({method:"GET",path:"/sys/mounts/{{mountPath}}",client:this.client,schema:{path:e.object({mountPath:e.string()}),response:ro.extend({deprecation_status:e.string(),type:e.string(),description:e.string(),seal_wrap:e.boolean(),options:lo,running_plugin_version:e.string(),running_sha256:e.string(),config:e.object({default_lease_ttl:e.number(),force_no_cache:e.boolean(),max_lease_ttl:e.number()}),accessor:e.string(),local:e.boolean(),external_entropy_access:e.boolean(),uuid:e.string(),plugin_version:e.string(),data:e.object({accessor:e.string(),config:e.object({default_lease_ttl:e.number(),force_no_cache:e.boolean(),max_lease_ttl:e.number()}),deprecation_status:e.string(),description:e.string(),external_entropy_access:e.boolean(),local:e.boolean(),options:lo,plugin_version:e.string(),running_plugin_version:e.string(),running_sha256:e.string(),seal_wrap:e.boolean(),type:e.string(),uuid:e.string()})})}})}},po=class extends Ht{get config(){return Yt({method:"POST",path:"/{{mountPath}}/config",client:this.client,schema:{path:e.object({mountPath:e.string()}),body:e.object({max_versions:e.number().optional(),cas_required:e.boolean().optional(),delete_version_after:e.string().optional()}),response:e.boolean()}})}get readConfig(){return Yt({method:"GET",path:"/{{mountPath}}/config",client:this.client,schema:{path:e.object({mountPath:e.string()}),response:ro.extend({data:e.object({cas_required:e.boolean(),delete_version_after:e.string(),max_versions:e.number()})})}})}get read(){return Yt({method:"GET",path:"/{{mountPath}}/data/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),searchParams:e.object({version:e.number().default(0).optional()}),response:ro.extend({data:e.object({data:e.record(e.string()),metadata:co})})}})}get write(){return Yt({method:"POST",path:"/{{mountPath}}/data/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),body:e.object({data:e.record(e.any()).default({}),options:mo.default({}).optional()}),response:ro.extend({data:co})}})}get patch(){return Yt({method:"PATCH",path:"/{{mountPath}}/data/{{path}}",client:this.client,refine:e=>(e.headers=Object.assign(e.headers||{},{"Content-Type":"application/merge-patch+json"}),e),schema:{path:e.object({mountPath:e.string(),path:e.string()}),body:e.object({data:e.any(),options:mo}),response:e.object({data:co})}})}get subKeys(){return Yt({method:"GET",path:"/{{mountPath}}/subkeys/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),searchParams:e.object({version:e.number().optional(),depth:e.number().optional()}),response:ro.extend({data:e.object({metadata:co,subkeys:e.record(e.any())})})}})}get deleteLatest(){return Yt({method:"DELETE",path:"/{{mountPath}}/data/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),response:e.boolean()}})}get delete(){return Yt({method:"POST",path:"/{{mountPath}}/delete/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),body:e.object({versions:e.array(e.number())}),response:e.boolean()}})}get undelete(){return Yt({method:"POST",path:"/{{mountPath}}/undelete/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),body:e.object({versions:e.array(e.number())}),response:e.boolean()}})}get destroy(){return Yt({method:"POST",path:"/{{mountPath}}/destroy/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),body:e.object({versions:e.array(e.number())}),response:e.boolean()}})}get list(){return Yt({method:"LIST",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),response:ro.extend({data:e.object({keys:e.array(e.string())})})}})}get readMetadata(){return Yt({method:"GET",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),response:ro.extend({data:e.object({cas_required:e.boolean(),created_time:e.string(),current_version:e.number(),custom_metadata:e.record(e.string()).nullable(),delete_version_after:e.string(),max_versions:e.number(),oldest_version:e.number(),updated_time:e.string(),versions:e.record(e.object({created_time:e.string(),deletion_time:e.string(),destroyed:e.boolean()}))})})}})}get writeMetadata(){return Yt({method:"POST",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),body:ho,response:e.boolean()}})}get patchMetadata(){return Yt({method:"PATCH",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,refine:e=>(e.headers=Object.assign(e.headers||{},{"Content-Type":"application/merge-patch+json"}),e),schema:{path:e.object({mountPath:e.string(),path:e.string()}),body:ho,response:e.boolean()}})}get deleteMetadata(){return Yt({method:"DELETE",path:"/{{mountPath}}/metadata/{{path}}",client:this.client,schema:{path:e.object({mountPath:e.string(),path:e.string()}),response:e.boolean()}})}get info(){return Yt({method:"GET",path:"/sys/mounts/{{mountPath}}",client:this.client,schema:{path:e.object({mountPath:e.string()}),response:ro.extend({local:e.boolean(),seal_wrap:e.boolean(),external_entropy_access:e.boolean(),options:lo,running_sha256:e.string(),deprecation_status:e.string(),config:e.object({default_lease_ttl:e.number(),force_no_cache:e.boolean(),max_lease_ttl:e.number()}),type:e.string(),description:e.string(),accessor:e.string(),uuid:e.string(),plugin_version:e.string(),running_plugin_version:e.string(),data:e.object({accessor:e.string(),config:e.object({default_lease_ttl:e.number(),force_no_cache:e.boolean(),max_lease_ttl:e.number()}),deprecation_status:e.string(),description:e.string(),external_entropy_access:e.boolean(),local:e.boolean(),options:lo,plugin_version:e.string(),running_plugin_version:e.string(),running_sha256:e.string(),seal_wrap:e.boolean(),type:e.string(),uuid:e.string()})})}})}},co=e.object({created_time:e.string(),custom_metadata:e.record(e.string()).nullable(),deletion_time:e.string(),destroyed:e.boolean(),version:e.number()}),ho=e.object({max_versions:e.number().optional(),cas_required:e.boolean().optional(),delete_version_after:e.string().optional(),custom_metadata:e.record(e.string()).nullable().optional()}),mo=e.object({cas:e.number().default(0),check_and_set:e.string().optional(),max_versions:e.number().optional(),prelease:e.number().optional(),version:e.number().optional()}),_o=class{constructor(e={}){this.opts=e;const{request:t,fetcher:o,...n}=e,s=ao.parse(n);this.endpoint=s.endpoint||process.env.VAULT_ADDR||"http://127.0.0.1:8200",this.apiVersion=s.apiVersion||"v1",this.pathPrefix=s.pathPrefix||"",this.namespace=s.namespace||process.env.VAULT_NAMESPACE,this.token=s.token||process.env.VAULT_TOKEN,this.fetcher=o,this.request=t}endpoint;apiVersion;pathPrefix;namespace;token;request;fetcher;get aws(){return new oo(this)}get kubernetes(){return new io(this)}get kv(){return new uo(this)}get kv2(){return new po(this)}config=Yt({method:"POST",path:"/{{mountPath}}/config",client:this,schema:{path:e.object({mountPath:e.string()}),body:e.any(),response:e.any()}});read=Yt({method:"GET",path:"/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:lo}});write=Yt({method:"POST",path:"/{{path}}",client:this,schema:{path:e.object({path:e.string()}),body:e.object({data:lo}),response:e.union([lo,e.boolean()])},refine:e=>(e.body=e.body&&e.body.data||{},e)});delete=Yt({method:"DELETE",path:"/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:e.boolean()}});list=Yt({method:"LIST",path:"/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:lo}});get listDevices(){return Yt({method:"GET",path:"/sys/audit",client:this,schema:{response:ro.extend({data:e.record(e.object({type:e.string(),description:e.string(),options:e.record(e.any())}))})}})}get disableDevice(){return Yt({method:"DELETE",path:"/sys/audit/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:e.boolean()}})}get enableDevice(){return Yt({method:"POST",path:"/sys/audit/{{path}}",client:this,schema:{path:e.object({path:e.string()}),response:e.boolean()}})}get queryCapabilities(){return Yt({method:"POST",path:"/sys/capabilities",client:this,schema:{body:e.object({token:e.string(),paths:e.array(e.string())}),response:e.boolean()}})}get sealStatus(){return Yt({method:"GET",path:"/sys/seal-status",client:this,schema:{response:e.object({type:e.string(),initialized:e.boolean(),sealed:e.boolean(),t:e.number(),n:e.number(),progress:e.number(),nonce:e.string(),version:e.string(),build_date:e.string(),migration:e.boolean(),recovery_seal:e.boolean(),storage_type:e.string()})}})}get initialized(){return Yt({method:"GET",path:"/sys/init",client:this,schema:{response:e.object({initialized:e.boolean()})}})}get init(){return Yt({method:"POST",path:"/sys/init",client:this,schema:{body:e.object({pgp_keys:e.array(e.string()).optional(),root_token_pgp_key:e.string().default("").optional(),secret_shares:e.number(),secret_threshold:e.number(),stored_shares:e.number().optional(),recovery_shares:e.number().default(0).optional(),recovery_threshold:e.number().default(0).optional(),recovery_pgp_keys:e.array(e.string()).optional()}),response:e.object({keys:e.array(e.string()),keys_base64:e.array(e.string()),root_token:e.string()})}})}get unseal(){return Yt({method:"POST",path:"/sys/unseal",client:this,schema:{body:e.object({key:e.string(),reset:e.boolean().default(!1).optional(),migrate:e.boolean().default(!1).optional()}),response:e.discriminatedUnion("sealed",[e.object({sealed:e.literal(!0),t:e.number(),n:e.number(),progress:e.number(),version:e.string()}),e.object({sealed:e.literal(!1),t:e.number(),n:e.number(),progress:e.number(),version:e.string(),cluster_name:e.string(),cluster_id:e.string()})])}})}get seal(){return Yt({method:"POST",path:"/sys/seal",client:this,schema:{response:e.boolean()}})}get getRootGenerationProgress(){return Yt({method:"GET",path:"/sys/generate-root/attempt",client:this,schema:{response:e.object({started:e.boolean(),nonce:e.string(),progress:e.number(),required:e.number(),encoded_token:e.string(),pgp_fingerprint:e.string(),otp_length:e.number(),complete:e.boolean()})}})}get startRootGeneration(){return Yt({method:"POST",path:"/sys/generate-root/attempt",client:this,schema:{body:e.object({otp:e.string()}),response:e.object({started:e.boolean(),nonce:e.string(),progress:e.number(),required:e.number(),encoded_token:e.string(),otp:e.string(),otp_length:e.number(),complete:e.boolean()})}})}get cancelRootGeneration(){return Yt({method:"DELETE",path:"/sys/generate-root/attempt",client:this,schema:{response:e.record(e.any())}})}get provideKeyShare(){return Yt({method:"POST",path:"/sys/generate-root/update",client:this,schema:{body:e.object({key:e.string(),nonce:e.string()}),response:e.object({started:e.boolean(),nonce:e.string(),progress:e.number(),required:e.number(),pgp_fingerprint:e.string(),complete:e.boolean(),encoded_token:e.string()})}})}get mounts(){return Yt({method:"GET",path:"/sys/mounts",client:this,schema:{response:e.object({request_id:e.string(),lease_id:e.string(),lease_duration:e.number(),renewable:e.boolean(),data:e.record(so),warnings:e.array(e.string()).nullable()})}})}get mount(){return Yt({method:"POST",path:"/sys/mounts/{{mountPath}}",client:this,schema:{path:e.object({mountPath:e.string()}),body:e.object({type:e.string(),description:e.string().optional(),config:e.record(e.string()).optional()})}})}get unmount(){return Yt({method:"DELETE",path:"/sys/mounts/{{mountPath}}",client:this,schema:{path:e.object({mountPath:e.string()})}})}get engineInfo(){return Yt({method:"GET",path:"/sys/mounts/{{mountPath}}",client:this,schema:{path:e.object({mountPath:e.string()}),response:lo}})}get tune(){return Yt({method:"GET",path:"/sys/mounts/{{mountPath}}/tune",client:this,schema:{path:e.object({mountPath:e.string()}),response:e.object({default_lease_ttl:e.number(),max_lease_ttl:e.number(),force_no_cache:e.boolean()})}})}get tuneMount(){return Yt({method:"POST",path:"/sys/mounts/{{mountPath}}/tune",client:this,schema:{path:e.object({mountPath:e.string()}),body:e.object({default_lease_ttl:e.number().optional(),max_lease_ttl:e.number().optional(),description:e.string().optional(),audit_non_hmac_request_keys:e.array(e.string()).optional(),audit_non_hmac_response_keys:e.array(e.string()).optional(),listing_visibility:e.string().optional(),passthrough_request_headers:e.array(e.string()).optional(),allowed_response_headers:e.array(e.string()).optional(),allowed_managed_keys:e.array(e.string()).optional(),plugin_version:e.string().optional()}),response:lo}})}get health(){return Yt({method:"GET",path:"/sys/health",client:this,schema:{response:e.object({initialized:e.boolean(),sealed:e.boolean(),standby:e.boolean(),performance_standby:e.boolean(),replication_performance_mode:e.string(),replication_dr_mode:e.string(),server_time_utc:e.number(),version:e.string(),cluster_name:e.string(),cluster_id:e.string()})}})}get hostInfo(){return Yt({method:"GET",path:"/sys/host-info",client:this,schema:{response:ro.extend({data:e.object({cpu:e.array(e.object({cpu:e.number(),vendorId:e.string(),family:e.string(),model:e.string(),stepping:e.number(),physicalId:e.string(),coreId:e.string(),cores:e.number(),modelName:e.string(),mhz:e.number(),cacheSize:e.number(),flags:e.array(e.string()),microcode:e.string()})),cpu_times:e.array(e.object({cpu:e.string(),user:e.number(),system:e.number(),idle:e.number(),nice:e.number(),iowait:e.number(),irq:e.number(),softirq:e.number(),steal:e.number(),guest:e.number(),guestNice:e.number()})),disk:e.array(e.object({path:e.string(),fstype:e.string(),total:e.number(),free:e.number(),used:e.number(),usedPercent:e.number(),inodesTotal:e.number(),inodesUsed:e.number(),inodesFree:e.number(),inodesUsedPercent:e.number()})),host:e.object({hostname:e.string(),uptime:e.number(),bootTime:e.number(),procs:e.number(),os:e.string(),platform:e.string(),platformFamily:e.string(),platformVersion:e.string(),kernelVersion:e.string(),kernelArch:e.string(),virtualizationSystem:e.string(),virtualizationRole:e.string(),hostid:e.string()}),memory:e.object({total:e.number(),available:e.number(),used:e.number(),usedPercent:e.number(),free:e.number(),active:e.number(),inactive:e.number(),wired:e.number(),laundry:e.number(),buffers:e.number(),cached:e.number(),writeback:e.number(),dirty:e.number(),writebacktmp:e.number(),shared:e.number(),slab:e.number(),sreclaimable:e.number(),sunreclaim:e.number(),pagetables:e.number(),swapcached:e.number(),commitlimit:e.number(),committedas:e.number(),hightotal:e.number(),highfree:e.number(),lowtotal:e.number(),lowfree:e.number(),swaptotal:e.number(),swapfree:e.number(),mapped:e.number(),vmalloctotal:e.number(),vmallocused:e.number(),vmallocchunk:e.number(),hugepagestotal:e.number(),hugepagesfree:e.number(),hugepagesize:e.number()}),timestamp:e.string()})})}})}};export{_o as Client,Xt as VaultError,Yt as generateCommand}; |
{ | ||
"name": "@litehex/node-vault", | ||
"version": "1.0.0-canary.0", | ||
"version": "1.0.0", | ||
"description": "A client for the HashiCorp's Vault API written for Node.js", | ||
@@ -23,19 +23,5 @@ "main": "dist/index.cjs", | ||
}, | ||
"scripts": { | ||
"build": "tsup", | ||
"test": "mocha \"**/*.test.ts\" --retries 2", | ||
"typecheck": "tsc --noEmit", | ||
"lint": "pnpm typecheck && eslint .", | ||
"lint:fix": "eslint --fix .", | ||
"format:check": "prettier --check .", | ||
"format": "prettier --write .", | ||
"ci:publish": "changeset publish", | ||
"prepublishOnly": "pnpm test && pnpm lint && pnpm format:check && pnpm build" | ||
}, | ||
"packageManager": "pnpm@8.15.7", | ||
"dependencies": { | ||
"lodash.omit": "^4.5.0", | ||
"lodash.pick": "^4.4.0", | ||
"p-safe": "^1.0.0", | ||
"undici": "^6.19.2", | ||
"zod": "^3.23.8", | ||
@@ -45,19 +31,21 @@ "zod-request": "^0.2.2" | ||
"devDependencies": { | ||
"@changesets/cli": "^2.27.5", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.2.1", | ||
"@types/chai": "^4.3.16", | ||
"@types/lodash.omit": "^4.5.9", | ||
"@types/lodash.pick": "^4.4.9", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^20.14.8", | ||
"@typescript-eslint/eslint-plugin": "^7.13.1", | ||
"@changesets/cli": "^2.27.9", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.3.1", | ||
"@types/chai": "^5.0.0", | ||
"@types/lodash": "^4.17.10", | ||
"@types/mocha": "^10.0.9", | ||
"@types/node": "^20.16.11", | ||
"@typescript-eslint/eslint-plugin": "^7.18.0", | ||
"chai": "^5.1.1", | ||
"dotenv": "^16.4.5", | ||
"eslint": "^8.57.0", | ||
"mocha": "^10.4.0", | ||
"prettier": "^3.3.2", | ||
"tsd": "^0.31.1", | ||
"tsup": "^8.1.0", | ||
"tsx": "^4.15.7", | ||
"typescript": "^5.5.2" | ||
"eslint": "^8.57.1", | ||
"lodash": "^4.17.21", | ||
"mocha": "^10.7.3", | ||
"prettier": "^3.3.3", | ||
"terser": "^5.34.1", | ||
"tsd": "^0.31.2", | ||
"tsup": "^8.3.0", | ||
"tsx": "^4.19.1", | ||
"typescript": "^5.6.2", | ||
"undici": "^6.19.8" | ||
}, | ||
@@ -85,7 +73,17 @@ "type": "module", | ||
"author": "Shahrad Elahi <shahrad@litehex.com> (https://github.com/shahradelahi)", | ||
"license": "GPL-3.0", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/shahradelahi/node-vault/issues" | ||
}, | ||
"homepage": "https://github.com/shahradelahi/node-vault#readme" | ||
} | ||
"homepage": "https://github.com/shahradelahi/node-vault#readme", | ||
"scripts": { | ||
"build": "tsup", | ||
"test": "mocha \"**/*.test.ts\" --retries 2", | ||
"typecheck": "tsc --noEmit", | ||
"lint": "pnpm typecheck && eslint .", | ||
"lint:fix": "eslint --fix .", | ||
"format:check": "prettier --check .", | ||
"format": "prettier --write .", | ||
"ci:publish": "changeset publish" | ||
} | ||
} |
@@ -10,3 +10,3 @@ <p align="center"> | ||
<a href="https://www.npmjs.com/package/@litehex/node-vault" title="Downloads"><img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@litehex%2Fnode-vault.svg"></a> | ||
<a href="https://opensource.org/licenses/GPL-3.0" title="License"><img src="https://img.shields.io/badge/License-GPL3.0-blue.svg?style=flat" alt="GPL-3.0 Licensed"></a> | ||
<a href="https://opensource.org/licenses/MIT" title="License"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat" alt="MIT Licensed"></a> | ||
</h1> | ||
@@ -108,3 +108,3 @@ | ||
For all configuration options, please see [the API docs](https://paka.dev/npm/@litehex/node-vault). | ||
For all configuration options, please see [the API docs](https://www.jsdocs.io/package/@litehex/node-vault). | ||
@@ -124,2 +124,2 @@ ### 🤝 Contributing | ||
[GPL-3.0](LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi) | ||
[MIT](LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
366252
3
0
100
1
19
3443
4
- Removedlodash.omit@^4.5.0
- Removedlodash.pick@^4.4.0
- Removedundici@^6.19.2
- Removedlodash.omit@4.5.0(transitive)
- Removedlodash.pick@4.4.0(transitive)
- Removedundici@6.21.0(transitive)