Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@great-detail/support-sdk

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@great-detail/support-sdk - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

dist/chunk-AVKSGUMM.js

2

dist/cli.js
#!/usr/bin/env node
import{a as r}from"./chunk-6P6PJOYL.js";import"./chunk-WWLNDX6W.js";r.parseAsync(process.argv);
import{a as r}from"./chunk-YM5DPCH2.js";import"./chunk-AVKSGUMM.js";r.parseAsync(process.argv);
import { Command } from 'commander';
import { C as Client } from '../index-Dfbt8roX.js';
import { C as Client } from '../index-D5qMSL8Q.js';
import { Options as Options$1 } from 'ora';
import 'ky';
import 'cross-fetch';

@@ -5,0 +6,0 @@ import 'zod';

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

import{a}from"../chunk-6P6PJOYL.js";import"../chunk-WWLNDX6W.js";export{a as default};
import{a}from"../chunk-YM5DPCH2.js";import"../chunk-AVKSGUMM.js";export{a as default};

@@ -1,3 +0,4 @@

import { A as Authentication } from './index-Dfbt8roX.js';
export { C as Client, y as CreateContactNoteResponsePayload, e as CreateContactResponsePayload, x as CreateConversationNoteResponsePayload, r as CreateCorrectionResponsePayload, j as CreateLabelResponsePayload, s as CreateResponseResponsePayload, D as DeleteLabelResponsePayload, G as GetContactResponsePayload, f as GetConversationResponsePayload, k as GetLabelResponsePayload, p as GetModelResponsePayload, t as GetNoteResponsePayload, z as GetSourceResponsePayload, L as ListActionsResponsePayload, b as ListChannelsResponsePayload, w as ListContactNotesResponsePayload, c as ListContactsResponsePayload, n as ListConversationMessagesResponsePayload, v as ListConversationNotesResponsePayload, g as ListConversationsResponsePayload, d as ListLabelContactsResponsePayload, h as ListLabelConversationsResponsePayload, l as ListLabelsResponsePayload, o as ListMessagesResponsePayload, q as ListModelsResponsePayload, B as ListSourcesResponsePayload, O as Options, R as RequestFilterable, a as TransportOptions, U as UpdateContactResponsePayload, i as UpdateConversationResponsePayload, m as UpdateLabelResponsePayload, u as UpdateNoteResponsePayload, C as default } from './index-Dfbt8roX.js';
import { A as Authentication } from './index-D5qMSL8Q.js';
export { C as Client, y as CreateContactNoteResponsePayload, e as CreateContactResponsePayload, x as CreateConversationNoteResponsePayload, r as CreateCorrectionResponsePayload, j as CreateLabelResponsePayload, s as CreateResponseResponsePayload, D as DeleteLabelResponsePayload, G as GetContactResponsePayload, f as GetConversationResponsePayload, k as GetLabelResponsePayload, p as GetModelResponsePayload, t as GetNoteResponsePayload, z as GetSourceResponsePayload, L as ListActionsResponsePayload, b as ListChannelsResponsePayload, w as ListContactNotesResponsePayload, c as ListContactsResponsePayload, n as ListConversationMessagesResponsePayload, v as ListConversationNotesResponsePayload, g as ListConversationsResponsePayload, d as ListLabelContactsResponsePayload, h as ListLabelConversationsResponsePayload, l as ListLabelsResponsePayload, o as ListMessagesResponsePayload, q as ListModelsResponsePayload, B as ListSourcesResponsePayload, O as Options, R as RequestFilterable, a as TransportOptions, U as UpdateContactResponsePayload, i as UpdateConversationResponsePayload, m as UpdateLabelResponsePayload, u as UpdateNoteResponsePayload, C as default } from './index-D5qMSL8Q.js';
import 'ky';
import 'cross-fetch';

@@ -4,0 +5,0 @@ import 'zod';

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

import{a as P,b as A,c as a,d as p,e as n,f as i,g as f,h as l,i as y,j as m,k as d,l as x,m as u,n as c,o as h}from"./chunk-WWLNDX6W.js";var R={};P(R,{AuthError:()=>l,AuthenticationError:()=>y,AuthorizationError:()=>m,LogicError:()=>d,NetworkError:()=>x,SupportError:()=>f,ValidationError:()=>u});var o=class r{static DEFAULT_NAME=a;name;#e;constructor({name:e=process.env[i]??r.DEFAULT_NAME,key:s=process.env[n]}={}){if(!s)throw new Error("API Key option must be specified when using Key Authentication");this.name=e,this.#e=s}async filter(){return{headers:this.getHeaders()}}getHeaders(){return{Authorization:`Basic ${btoa(this.name+":"+this.#e)}`}}};var t=class{#e;constructor({token:e=process.env[p]}={}){if(!e)throw new Error("Access Token option must be specified when using Token Authentication");this.#e=e}async filter(){return{headers:this.getHeaders()}}getHeaders(){return{Authorization:`Bearer ${this.#e}`}}};export{c as Client,A as DEFAULT_SUPPORT_BASE_URL,R as Error,o as KeyAuthentication,h as PublicAuthentication,t as TokenAuthentication,c as default};
import{a as P,b as A,c as a,d as p,e as n,f as i,g as f,h as l,i as y,j as m,k as d,l as x,m as u,n as c,o as h}from"./chunk-AVKSGUMM.js";var R={};P(R,{AuthError:()=>l,AuthenticationError:()=>y,AuthorizationError:()=>m,LogicError:()=>d,NetworkError:()=>x,SupportError:()=>f,ValidationError:()=>u});var o=class r{static DEFAULT_NAME=a;name;#e;constructor({name:e=process.env[i]??r.DEFAULT_NAME,key:s=process.env[n]}={}){if(!s)throw new Error("API Key option must be specified when using Key Authentication");this.name=e,this.#e=s}async filter(){return{headers:this.getHeaders()}}getHeaders(){return{Authorization:`Basic ${btoa(this.name+":"+this.#e)}`}}};var t=class{#e;constructor({token:e=process.env[p]}={}){if(!e)throw new Error("Access Token option must be specified when using Token Authentication");this.#e=e}async filter(){return{headers:this.getHeaders()}}getHeaders(){return{Authorization:`Bearer ${this.#e}`}}};export{c as Client,A as DEFAULT_SUPPORT_BASE_URL,R as Error,o as KeyAuthentication,h as PublicAuthentication,t as TokenAuthentication,c as default};
{
"name": "@great-detail/support-sdk",
"version": "0.2.6",
"version": "0.2.7",
"type": "module",

@@ -66,2 +66,3 @@ "description": "JavaScript SDK for the Great Detail Support System",

"is-network-error": "^1.1.0",
"ky": "^1.7.2",
"ora": "^8.0.1",

@@ -68,0 +69,0 @@ "zod": "^3.23.8"

@@ -12,2 +12,3 @@ /**

import isNetworkError from "is-network-error";
import ky from "ky";
import AuthenticationError from "../Error/AuthenticationError.js";

@@ -74,4 +75,3 @@ import AuthorizationError from "../Error/AuthorizationError.js";

// See: https://github.com/node-fetch/node-fetch/issues/481#issuecomment-592491825
return await this.options
.fetch(this.getRequest(url, request))
return await ky(this.getRequest(url, request))
.then((response) => {

@@ -78,0 +78,0 @@ if (!response.ok) {

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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