@great-detail/support-sdk
Advanced tools
Comparing version 0.2.3 to 0.2.4
#!/usr/bin/env node | ||
import{a as r}from"./chunk-JLXFVLGR.js";import"./chunk-ALRXWW2N.js";r.parseAsync(process.argv); | ||
import{a as r}from"./chunk-Z2LEUYUK.js";import"./chunk-DQ4HNN5U.js";r.parseAsync(process.argv); |
import { Command } from 'commander'; | ||
import { C as Client } from '../index-cTKZe1yJ.js'; | ||
import { C as Client } from '../index-Cjm56Jad.js'; | ||
import { Options as Options$1 } from 'ora'; | ||
@@ -4,0 +4,0 @@ import 'zod'; |
@@ -1,1 +0,1 @@ | ||
import{a}from"../chunk-JLXFVLGR.js";import"../chunk-ALRXWW2N.js";export{a as default}; | ||
import{a}from"../chunk-Z2LEUYUK.js";import"../chunk-DQ4HNN5U.js";export{a as default}; |
@@ -1,3 +0,3 @@ | ||
import { A as Authentication } from './index-cTKZe1yJ.js'; | ||
export { C as Client, e as CreateContactResponsePayload, 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, w as GetSourceResponsePayload, L as ListActionsResponsePayload, b as ListChannelsResponsePayload, 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, x 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-cTKZe1yJ.js'; | ||
import { A as Authentication } from './index-Cjm56Jad.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-Cjm56Jad.js'; | ||
import 'zod'; | ||
@@ -4,0 +4,0 @@ |
@@ -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 m,j as y,k as d,l as u,m as x,n as c,o as h}from"./chunk-ALRXWW2N.js";var R={};P(R,{AuthError:()=>l,AuthenticationError:()=>m,AuthorizationError:()=>y,LogicError:()=>d,NetworkError:()=>u,SupportError:()=>f,ValidationError:()=>x});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-DQ4HNN5U.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.3", | ||
"version": "0.2.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "JavaScript SDK for the Great Detail Support System", |
@@ -36,3 +36,6 @@ /** | ||
import CreateResponseModel from "../Model/Response/CreateResponseModel.js"; | ||
import CreateContactNote from "../Note/CreateContactNote.js"; | ||
import CreateConversationNote from "../Note/CreateConversationNote.js"; | ||
import GetNote from "../Note/GetNote.js"; | ||
import ListContactNotes from "../Note/ListContactNotes.js"; | ||
import ListConversationNotes from "../Note/ListConversationNotes.js"; | ||
@@ -90,2 +93,6 @@ import UpdateNote from "../Note/UpdateNote.js"; | ||
}, | ||
note: { | ||
list: new ListContactNotes(this._transport), | ||
create: new CreateContactNote(this._transport), | ||
}, | ||
}; | ||
@@ -104,2 +111,3 @@ } | ||
list: new ListConversationNotes(this._transport), | ||
create: new CreateConversationNote(this._transport), | ||
}, | ||
@@ -106,0 +114,0 @@ }; |
@@ -67,2 +67,5 @@ /** | ||
export { type ListConversationNotesResponsePayload } from "./Note/ListConversationNotes.js"; | ||
export { type ListContactNotesResponsePayload } from "./Note/ListContactNotes.js"; | ||
export { type CreateConversationNoteResponsePayload } from "./Note/CreateConversationNote.js"; | ||
export { type CreateContactNoteResponsePayload } from "./Note/CreateContactNote.js"; | ||
@@ -69,0 +72,0 @@ // Sources |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
235650
80
4121