corellium-typescript
Version:
A beautiful TypeScript Corellium library.
1 lines • 760 B
JavaScript
;exports.createAuthProviderEndpoints=r=>({update:async a=>{const o=await r.PUT("/v1/domain/{domainId}/auth/{providerId}",{params:{path:{domainId:"string",providerId:"string"}},body:a});if(o.error)throw new Error(o.error.error);return o.data},delete:async(a,o)=>{const t=await r.DELETE("/v1/domain/{domainId}/auth/{providerId}",{params:{path:{domainId:a,providerId:o}}});if(t.error)throw new Error(t.error.error);return t.data},list:async a=>{const o=await r.GET("/v1/domain/{domainId}/auth",{params:{path:{domainId:a}}});if(o.error)throw new Error(o.error.error);return o.data},create:async a=>{const o=await r.POST("/v1/domain/{domainId}/auth",{params:{path:{domainId:"string"}},body:a});if(o.error)throw new Error(o.error.error);return o.data}});