@winning-sales/nexo 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -3
- package/assets/connect/connect-sdk.d.ts +294 -11
- package/assets/connect/manifest.schema.json +598 -9
- package/assets/docs/pages.json +1 -1
- package/assets/skills/nexo-api/SKILL.md +8 -0
- package/assets/skills/nexo-automations/SKILL.md +6 -0
- package/assets/skills/nexo-connect/SKILL.md +15 -4
- package/assets/skills/nexo-dashboards/SKILL.md +2 -0
- package/dist/commands/agents.js +241 -0
- package/dist/commands/automations.js +32 -17
- package/dist/commands/connect-access.js +64 -23
- package/dist/connect/access.js +81 -7
- package/dist/connect/changes.js +12 -1
- package/dist/connect/runs.js +1 -1
- package/dist/program-agents.js +65 -0
- package/dist/program-connect-access.js +16 -9
- package/dist/program.js +2 -0
- package/dist/tools/tool-manifest.js +13 -1
- package/package.json +1 -1
- package/reference.json +210 -39
package/dist/connect/access.js
CHANGED
|
@@ -37,7 +37,25 @@ export function isSecretList(value) {
|
|
|
37
37
|
}
|
|
38
38
|
export function isWebhook(value) {
|
|
39
39
|
const fields = fieldsOf(value);
|
|
40
|
-
return fields !== null && typeof fields.url === 'string' &&
|
|
40
|
+
return fields !== null && typeof fields.url === 'string' && isAuthOrNull(fields.auth) && isAuthOrNull(fields.authInEdit);
|
|
41
|
+
}
|
|
42
|
+
function isAuthOrNull(value) {
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
const fields = fieldsOf(value);
|
|
47
|
+
return fields !== null && typeof fields.type === 'string' && typeof fields.secret === 'string';
|
|
48
|
+
}
|
|
49
|
+
export function isWebhookDeliveryList(value) {
|
|
50
|
+
const fields = fieldsOf(value);
|
|
51
|
+
return (fields !== null &&
|
|
52
|
+
Array.isArray(fields.deliveries) &&
|
|
53
|
+
fields.deliveries.every((item) => isDelivery(item)) &&
|
|
54
|
+
(fields.next === null || typeof fields.next === 'string'));
|
|
55
|
+
}
|
|
56
|
+
function isDelivery(item) {
|
|
57
|
+
const delivery = fieldsOf(item);
|
|
58
|
+
return delivery !== null && typeof delivery.receivedAt === 'string' && typeof delivery.outcome === 'string';
|
|
41
59
|
}
|
|
42
60
|
export function isOAuthStatus(value) {
|
|
43
61
|
const fields = fieldsOf(value);
|
|
@@ -68,12 +86,68 @@ export function isMailFileList(value) {
|
|
|
68
86
|
export function describeSecret(slot) {
|
|
69
87
|
return `${slot.name.padEnd(28)} ${slot.filled ? `preenchido${slot.setAt === null ? '' : ` desde ${slot.setAt}`}` : 'faltando'}`;
|
|
70
88
|
}
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
89
|
+
export const WEBHOOK_URL_WARNING = 'O endereço é a credencial do webhook: quem o tem pode chamá-lo. Não o cole em lugar público nem em chat; só no outro sistema.';
|
|
90
|
+
const OUTCOME_NAMES = {
|
|
91
|
+
ran: 'rodou',
|
|
92
|
+
waiting: 'esperando a vez',
|
|
93
|
+
refused: 'recusada',
|
|
94
|
+
discarded: 'descartada'
|
|
95
|
+
};
|
|
96
|
+
const REASON_NAMES = {
|
|
97
|
+
missing: 'a chamada veio sem a autenticação declarada',
|
|
98
|
+
mismatch: 'a autenticação não confere com o segredo',
|
|
99
|
+
stale: 'a hora da chamada está fora da tolerância',
|
|
100
|
+
secret_missing: 'o segredo da autenticação não está preenchido no Nexo',
|
|
101
|
+
not_published: 'o conector não tem versão publicada',
|
|
102
|
+
no_webhook_trigger: 'a versão publicada não tem gatilho de webhook',
|
|
103
|
+
disabled: 'o conector está desligado',
|
|
104
|
+
paused: 'o conector está pausado',
|
|
105
|
+
unstorable: 'o corpo não pôde ser guardado'
|
|
106
|
+
};
|
|
107
|
+
/** Os nomes dos segredos que a autenticação usa, sem repetir. */
|
|
108
|
+
export function authSecretNames(auth) {
|
|
109
|
+
return auth === null
|
|
110
|
+
? []
|
|
111
|
+
: [...new Set([auth.user, auth.secret].filter((name) => name !== undefined))];
|
|
112
|
+
}
|
|
113
|
+
function describeHmac(auth) {
|
|
114
|
+
const timed = auth.signed === 'timestamp.body';
|
|
115
|
+
const prefix = auth.prefix === undefined || auth.prefix === '' ? '' : ` (com o prefixo ${auth.prefix})`;
|
|
116
|
+
const time = timed
|
|
117
|
+
? `; o cabeçalho ${auth.timestampHeader ?? '?'} leva a hora, em segundos (${String(auth.toleranceSeconds ?? 300)} s de tolerância)`
|
|
118
|
+
: '';
|
|
119
|
+
const algorithm = (auth.algorithm ?? 'sha256').toUpperCase();
|
|
120
|
+
return `assinatura HMAC-${algorithm} (${auth.encoding ?? 'hex'}) ${timed ? 'de "<hora>.<corpo>"' : 'do corpo'} com o segredo ${auth.secret}, no cabeçalho ${auth.header ?? '?'}${prefix}${time}`;
|
|
121
|
+
}
|
|
122
|
+
export function describeAuth(auth) {
|
|
123
|
+
if (auth.type === 'header') {
|
|
124
|
+
return `o cabeçalho ${auth.header ?? '?'} leva o valor do segredo ${auth.secret}`;
|
|
125
|
+
}
|
|
126
|
+
if (auth.type === 'basic') {
|
|
127
|
+
return `HTTP Basic, com o usuário do segredo ${auth.user ?? '?'} e a senha do segredo ${auth.secret}`;
|
|
128
|
+
}
|
|
129
|
+
return describeHmac(auth);
|
|
130
|
+
}
|
|
131
|
+
/** `missing`: os nomes de segredo da autenticação que o Nexo ainda não tem preenchidos. */
|
|
132
|
+
export function describeWebhook(webhook, missing) {
|
|
133
|
+
const lines = [`URL: ${webhook.url} (POST)`, WEBHOOK_URL_WARNING];
|
|
134
|
+
lines.push(webhook.auth === null
|
|
135
|
+
? 'Autenticação publicada: nenhuma `auth` declarada. Com versão publicada e gatilho de webhook, a autenticação é o token do endereço (/webhooks/connect/<token>): o Nexo não exige assinatura, e quem tem o endereço pode chamar. Sem versão publicada ou sem gatilho de webhook, a chamada é descartada e nada roda. Para exigir também um cabeçalho, HTTP Basic ou HMAC, declare `auth` no manifesto e publique.'
|
|
136
|
+
: `Autenticação publicada (a que confere as chamadas agora, além do token do endereço): ${describeAuth(webhook.auth)}.`);
|
|
137
|
+
if (JSON.stringify(webhook.authInEdit) !== JSON.stringify(webhook.auth)) {
|
|
138
|
+
lines.push(webhook.authInEdit === null
|
|
139
|
+
? 'Na versão em edição: nenhuma `auth` declarada; só o token do endereço (vale depois de publicar).'
|
|
140
|
+
: `Na versão em edição (vale depois de publicar): ${describeAuth(webhook.authInEdit)}.`);
|
|
141
|
+
}
|
|
142
|
+
if (missing.length > 0) {
|
|
143
|
+
lines.push(`Falta preencher: ${missing.join(', ')}. Preencha com \`nexo connect secrets set <NOME>\`.`);
|
|
144
|
+
}
|
|
145
|
+
return lines;
|
|
146
|
+
}
|
|
147
|
+
export function describeDelivery(delivery) {
|
|
148
|
+
const reason = delivery.reason === null ? null : (REASON_NAMES[delivery.reason] ?? delivery.reason);
|
|
149
|
+
const run = delivery.runId === null ? '' : ` execução ${delivery.runId}${delivery.runStatus === null ? '' : ` (${delivery.runStatus})`}`;
|
|
150
|
+
return `${delivery.receivedAt} ${(OUTCOME_NAMES[delivery.outcome] ?? delivery.outcome).padEnd(15)} ${delivery.contentType ?? 'sem tipo'}, ${String(delivery.sizeBytes)} bytes${reason === null ? '' : `; motivo: ${reason}`}${run === '' ? '' : `;${run}`}`;
|
|
77
151
|
}
|
|
78
152
|
const APP_NAMES = {
|
|
79
153
|
nexo: 'o app do Nexo',
|
package/dist/connect/changes.js
CHANGED
|
@@ -34,6 +34,17 @@ async function apply(context, session, request, token) {
|
|
|
34
34
|
printLine(context, line);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
/** Com `--json` o stdout é um JSON só em todo caminho: a prévia vai para o stderr. */
|
|
38
|
+
function showPreviewFor(context, preview, json) {
|
|
39
|
+
if (!json) {
|
|
40
|
+
showPreview(context, preview);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
printNotice(context, preview.title);
|
|
44
|
+
for (const change of preview.changes) {
|
|
45
|
+
printNotice(context, ` - ${change}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
37
48
|
export function showPreview(context, preview) {
|
|
38
49
|
printLine(context, preview.title);
|
|
39
50
|
for (const change of preview.changes) {
|
|
@@ -94,7 +105,7 @@ export async function requestChange(context, session, request) {
|
|
|
94
105
|
printJson(context, response.body);
|
|
95
106
|
return;
|
|
96
107
|
}
|
|
97
|
-
|
|
108
|
+
showPreviewFor(context, response.body, request.json);
|
|
98
109
|
await decide(context, session, request, response.body);
|
|
99
110
|
}
|
|
100
111
|
function reportApplied(context, change, response) {
|
package/dist/connect/runs.js
CHANGED
|
@@ -43,7 +43,7 @@ function plannedLines(title, calls) {
|
|
|
43
43
|
];
|
|
44
44
|
}
|
|
45
45
|
function failedSteps(steps) {
|
|
46
|
-
const failed = (steps ?? []).filter((step) => step.errorCode !== null || (step.status ?? 0) >= 400);
|
|
46
|
+
const failed = (steps ?? []).filter((step) => (step.errorCode ?? null) !== null || (step.status ?? 0) >= 400);
|
|
47
47
|
return failed
|
|
48
48
|
.slice(0, 10)
|
|
49
49
|
.map((step) => ` ${step.kind} ${step.target ?? ''} → ${step.errorCode ?? String(step.status)}: ${step.message ?? ''}`.trimEnd());
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { agentsHours, agentsList, agentsSet, agentsShow } from './commands/agents.js';
|
|
2
|
+
import { usageError } from './errors.js';
|
|
3
|
+
function collect(value, previous) {
|
|
4
|
+
return [...(previous ?? []), value];
|
|
5
|
+
}
|
|
6
|
+
function addShowAndSet(agents, context) {
|
|
7
|
+
agents
|
|
8
|
+
.command('show')
|
|
9
|
+
.description('Mostra a configuração de um agente')
|
|
10
|
+
.argument('<agente>', 'sdr ou cs')
|
|
11
|
+
.action(async (role, _options, command) => {
|
|
12
|
+
await agentsShow(context, role, command.optsWithGlobals());
|
|
13
|
+
});
|
|
14
|
+
agents
|
|
15
|
+
.command('set')
|
|
16
|
+
.description('Muda um agente: mostra o que muda e só salva depois do sim (só administrador)')
|
|
17
|
+
.argument('<agente>', 'sdr ou cs')
|
|
18
|
+
.option('--on', 'liga o agente')
|
|
19
|
+
.option('--off', 'desliga o agente')
|
|
20
|
+
.option('--cases <casos>', 'after_hours, stalled_queue e covered_by_knowledge, separados por vírgula; none para nenhum')
|
|
21
|
+
.option('--book-meeting', 'o Agente SDR marca reunião na agenda do vendedor')
|
|
22
|
+
.option('--no-book-meeting', 'o Agente SDR deixa de marcar reunião')
|
|
23
|
+
.option('--meeting-minutes <min>', 'duração da reunião: 30, 45 ou 60')
|
|
24
|
+
.option('--meeting-lead <min>', 'antecedência mínima da reunião: 120, 240 ou 1440')
|
|
25
|
+
.option('--name <nome>', 'nome do agente nas conversas (até 30 caracteres)')
|
|
26
|
+
.option('-y, --yes', 'salva logo depois de mostrar o que muda')
|
|
27
|
+
.action(async (role, _options, command) => {
|
|
28
|
+
refuseBothBookFlags(command);
|
|
29
|
+
await agentsSet(context, role, command.optsWithGlobals());
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function addHours(agents, context) {
|
|
33
|
+
agents
|
|
34
|
+
.command('hours')
|
|
35
|
+
.description('O horário de reunião: sem vendedor, lê e muda o seu; com o id de um vendedor, só lê (cada um muda o próprio). Mudar mostra o que muda e pede o sim')
|
|
36
|
+
.argument('[vendedor]', 'id do vendedor, só para ler')
|
|
37
|
+
.option('--day <dias=faixas>', 'o horário próprio inteiro, como seg-sex=09:00-12:00,14:00-18:00 (repita por dia ou grupo de dias)', collect)
|
|
38
|
+
.option('--company', 'apaga o horário próprio e volta ao da empresa')
|
|
39
|
+
.option('-y, --yes', 'salva logo depois de mostrar o que muda')
|
|
40
|
+
.action(async (seller, _options, command) => {
|
|
41
|
+
await agentsHours(context, seller, command.optsWithGlobals());
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/** Commander keeps only the last of --book-meeting and --no-book-meeting, so the contradiction is read from the arguments. */
|
|
45
|
+
function refuseBothBookFlags(command) {
|
|
46
|
+
let root = command;
|
|
47
|
+
while (root.parent !== null) {
|
|
48
|
+
root = root.parent;
|
|
49
|
+
}
|
|
50
|
+
const args = root.rawArgs;
|
|
51
|
+
if (args.includes('--book-meeting') && args.includes('--no-book-meeting')) {
|
|
52
|
+
throw usageError('Escolha --book-meeting ou --no-book-meeting, não os dois.');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export function addAgentCommands(program, context) {
|
|
56
|
+
const agents = program
|
|
57
|
+
.command('agents')
|
|
58
|
+
.alias('agentes')
|
|
59
|
+
.description('Os Agentes de atendimento (SDR e CS): o estado, a configuração e o horário de reunião')
|
|
60
|
+
.action(async (_options, command) => {
|
|
61
|
+
await agentsList(context, command.optsWithGlobals());
|
|
62
|
+
});
|
|
63
|
+
addShowAndSet(agents, context);
|
|
64
|
+
addHours(agents, context);
|
|
65
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { emailFiles, emailRenew, emailShow, oauthAuthorize, oauthClientRemove, oauthClientSet, oauthShow, sftpAccept, sftpKeys,
|
|
1
|
+
import { emailFiles, emailRenew, emailShow, oauthAuthorize, oauthClientRemove, oauthClientSet, oauthShow, sftpAccept, sftpKeys, webhookDeliveries, webhookRotate, webhookShow } from './commands/connect-access.js';
|
|
2
2
|
import { hostsApprove, hostsList } from './commands/connect-hosts.js';
|
|
3
3
|
const FOLDER_HELP = 'pasta do conector';
|
|
4
4
|
const CONFIRM_HELP = 'aplica, depois do sim da pessoa';
|
|
@@ -23,21 +23,28 @@ function addHostsCommands(connect, context) {
|
|
|
23
23
|
function addWebhookCommands(connect, context) {
|
|
24
24
|
const webhook = connect
|
|
25
25
|
.command('webhook')
|
|
26
|
-
.description('O webhook do conector: a
|
|
26
|
+
.description('O webhook do conector: o endereço (que é a credencial), a autenticação declarada e os segredos que faltam')
|
|
27
27
|
.argument('[pasta]', FOLDER_HELP, '.')
|
|
28
28
|
.action(async (dir, _options, command) => {
|
|
29
29
|
await webhookShow(context, dir, command.optsWithGlobals());
|
|
30
30
|
});
|
|
31
31
|
webhook
|
|
32
|
-
.command('
|
|
33
|
-
.description('
|
|
34
|
-
.
|
|
35
|
-
.
|
|
32
|
+
.command('deliveries')
|
|
33
|
+
.description('As últimas chamadas que o outro sistema fez ao webhook, da mais nova à mais antiga, com o desfecho e o motivo')
|
|
34
|
+
.argument('[pasta]', FOLDER_HELP, '.')
|
|
35
|
+
.option('--limit <n>', 'quantas entregas por página (1 a 100; padrão 25)')
|
|
36
|
+
.option('--before <id>', 'a próxima página: o id que a página anterior mostrou em "Há mais"')
|
|
37
|
+
.action(async (dir, _options, command) => {
|
|
38
|
+
await webhookDeliveries(context, dir, command.optsWithGlobals());
|
|
39
|
+
});
|
|
40
|
+
webhook
|
|
41
|
+
.command('rotate')
|
|
42
|
+
.description('Troca o token do endereço: mostra o que muda e pede o sim; o endereço antigo para de valer na hora')
|
|
36
43
|
.argument('[pasta]', FOLDER_HELP, '.')
|
|
37
|
-
.option('--
|
|
38
|
-
.option('--
|
|
44
|
+
.option('--confirm <token>', 'aplica com o token da prévia, depois do sim da pessoa')
|
|
45
|
+
.option('-y, --yes', YES_HELP)
|
|
39
46
|
.action(async (dir, _options, command) => {
|
|
40
|
-
await
|
|
47
|
+
await webhookRotate(context, dir, command.optsWithGlobals());
|
|
41
48
|
});
|
|
42
49
|
}
|
|
43
50
|
function addOAuthClientCommands(oauth, context) {
|
package/dist/program.js
CHANGED
|
@@ -10,6 +10,7 @@ import { addArtifactCommands, addDealCommands } from './program-artifacts.js';
|
|
|
10
10
|
import { addTemplateCommands } from './program-templates.js';
|
|
11
11
|
import { addBrainCommands } from './program-brain.js';
|
|
12
12
|
import { addErpCommands } from './program-erp.js';
|
|
13
|
+
import { addAgentCommands } from './program-agents.js';
|
|
13
14
|
import { addDashboardCommands } from './program-dashboards.js';
|
|
14
15
|
import { skillsInstall, skillsList, skillsShow } from './commands/skills.js';
|
|
15
16
|
import { login } from './commands/login.js';
|
|
@@ -193,5 +194,6 @@ export function buildProgram(context) {
|
|
|
193
194
|
addTemplateCommands(program, context);
|
|
194
195
|
addBrainCommands(program, context);
|
|
195
196
|
addErpCommands(program, context);
|
|
197
|
+
addAgentCommands(program, context);
|
|
196
198
|
return program;
|
|
197
199
|
}
|
|
@@ -34,6 +34,9 @@ export const TOOL_KEYS = [
|
|
|
34
34
|
'analyses',
|
|
35
35
|
'analysis_change',
|
|
36
36
|
'app_guide',
|
|
37
|
+
'attendance_agent',
|
|
38
|
+
'attendance_agent_preview',
|
|
39
|
+
'attendance_agent_save',
|
|
37
40
|
'automation_apply',
|
|
38
41
|
'automation_change',
|
|
39
42
|
'automations',
|
|
@@ -72,6 +75,7 @@ export const TOOL_KEYS = [
|
|
|
72
75
|
'connectors_list',
|
|
73
76
|
'connector_version_diff',
|
|
74
77
|
'connector_version_write',
|
|
78
|
+
'connector_webhook_deliveries',
|
|
75
79
|
'connect_sdk',
|
|
76
80
|
'connect_systems',
|
|
77
81
|
'contact_change',
|
|
@@ -124,6 +128,9 @@ export const TOOL_KEYS = [
|
|
|
124
128
|
'knowledge_search',
|
|
125
129
|
'lead_change',
|
|
126
130
|
'meeting_change',
|
|
131
|
+
'meeting_hours',
|
|
132
|
+
'meeting_hours_preview',
|
|
133
|
+
'meeting_hours_save',
|
|
127
134
|
'meeting_prep',
|
|
128
135
|
'meeting_scorecard_change',
|
|
129
136
|
'meeting_summary',
|
|
@@ -158,6 +165,10 @@ export const COMMAND_TOOLS = {
|
|
|
158
165
|
'nexo docs list': { none: 'Documentação embutida na CLI' },
|
|
159
166
|
'nexo docs search': { none: 'Documentação embutida na CLI' },
|
|
160
167
|
'nexo docs show': { none: 'Documentação embutida na CLI' },
|
|
168
|
+
'nexo agents': { key: 'attendance_agent' },
|
|
169
|
+
'nexo agents show': { key: 'attendance_agent' },
|
|
170
|
+
'nexo agents set': { key: ['attendance_agent', 'attendance_agent_preview', 'attendance_agent_save'] },
|
|
171
|
+
'nexo agents hours': { key: ['meeting_hours', 'meeting_hours_preview', 'meeting_hours_save'] },
|
|
161
172
|
'nexo brain areas': { none: 'Skills do Cérebro pela ideia, em /v1/brain; ainda sem chave de ferramenta no produto' },
|
|
162
173
|
'nexo brain moments': { none: 'Skills do Cérebro pela ideia, em /v1/brain; ainda sem chave de ferramenta no produto' },
|
|
163
174
|
'nexo brain list': { none: 'Skills do Cérebro pela ideia, em /v1/brain; ainda sem chave de ferramenta no produto' },
|
|
@@ -217,7 +228,8 @@ export const COMMAND_TOOLS = {
|
|
|
217
228
|
'nexo connect hosts approve': { key: ['connector_hosts_approve', 'connector_change_preview', 'connector_change_apply'] },
|
|
218
229
|
'nexo connect secrets list': { key: 'connector_access' },
|
|
219
230
|
'nexo connect webhook': { key: 'connector_access' },
|
|
220
|
-
'nexo connect webhook
|
|
231
|
+
'nexo connect webhook deliveries': { key: 'connector_webhook_deliveries' },
|
|
232
|
+
'nexo connect webhook rotate': { key: ['connector_change_preview', 'connector_change_apply'] },
|
|
221
233
|
'nexo connect oauth': { key: 'connector_access' },
|
|
222
234
|
'nexo connect oauth authorize': { key: 'connector_oauth_authorize' },
|
|
223
235
|
'nexo connect oauth client set': { none: 'O client secret é digitado por uma pessoa e nunca passa por IA/MCP' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@winning-sales/nexo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "CLI do Nexo: a API, o Connect, os dashboards, os fluxos, os documentos e as análises no terminal, com a documentação e as skills do produto para a sua IA",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/reference.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.8.0",
|
|
3
3
|
"program": {
|
|
4
4
|
"name": "nexo",
|
|
5
5
|
"path": "nexo",
|
|
@@ -1622,7 +1622,7 @@
|
|
|
1622
1622
|
"name": "webhook",
|
|
1623
1623
|
"path": "nexo connect webhook",
|
|
1624
1624
|
"aliases": [],
|
|
1625
|
-
"description": "O webhook do conector: a
|
|
1625
|
+
"description": "O webhook do conector: o endereço (que é a credencial), a autenticação declarada e os segredos que faltam",
|
|
1626
1626
|
"arguments": [
|
|
1627
1627
|
{
|
|
1628
1628
|
"name": "pasta",
|
|
@@ -1635,46 +1635,68 @@
|
|
|
1635
1635
|
"options": [],
|
|
1636
1636
|
"commands": [
|
|
1637
1637
|
{
|
|
1638
|
-
"name": "
|
|
1639
|
-
"path": "nexo connect webhook
|
|
1638
|
+
"name": "deliveries",
|
|
1639
|
+
"path": "nexo connect webhook deliveries",
|
|
1640
1640
|
"aliases": [],
|
|
1641
|
-
"description": "
|
|
1642
|
-
"arguments": [
|
|
1643
|
-
"options": [],
|
|
1644
|
-
"commands": [
|
|
1641
|
+
"description": "As últimas chamadas que o outro sistema fez ao webhook, da mais nova à mais antiga, com o desfecho e o motivo",
|
|
1642
|
+
"arguments": [
|
|
1645
1643
|
{
|
|
1646
|
-
"name": "
|
|
1647
|
-
"
|
|
1648
|
-
"
|
|
1649
|
-
"
|
|
1650
|
-
"
|
|
1651
|
-
{
|
|
1652
|
-
"name": "pasta",
|
|
1653
|
-
"description": "pasta do conector",
|
|
1654
|
-
"required": false,
|
|
1655
|
-
"variadic": false,
|
|
1656
|
-
"default": "."
|
|
1657
|
-
}
|
|
1658
|
-
],
|
|
1659
|
-
"options": [
|
|
1660
|
-
{
|
|
1661
|
-
"flags": "--stdin",
|
|
1662
|
-
"description": "lê o valor do stdin (para script)",
|
|
1663
|
-
"required": false,
|
|
1664
|
-
"default": null,
|
|
1665
|
-
"choices": null
|
|
1666
|
-
},
|
|
1667
|
-
{
|
|
1668
|
-
"flags": "--generate",
|
|
1669
|
-
"description": "gera 32 bytes em hexadecimal nesta máquina e mostra o valor uma vez",
|
|
1670
|
-
"required": false,
|
|
1671
|
-
"default": null,
|
|
1672
|
-
"choices": null
|
|
1673
|
-
}
|
|
1674
|
-
],
|
|
1675
|
-
"commands": []
|
|
1644
|
+
"name": "pasta",
|
|
1645
|
+
"description": "pasta do conector",
|
|
1646
|
+
"required": false,
|
|
1647
|
+
"variadic": false,
|
|
1648
|
+
"default": "."
|
|
1676
1649
|
}
|
|
1677
|
-
]
|
|
1650
|
+
],
|
|
1651
|
+
"options": [
|
|
1652
|
+
{
|
|
1653
|
+
"flags": "--limit <n>",
|
|
1654
|
+
"description": "quantas entregas por página (1 a 100; padrão 25)",
|
|
1655
|
+
"required": false,
|
|
1656
|
+
"default": null,
|
|
1657
|
+
"choices": null
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"flags": "--before <id>",
|
|
1661
|
+
"description": "a próxima página: o id que a página anterior mostrou em \"Há mais\"",
|
|
1662
|
+
"required": false,
|
|
1663
|
+
"default": null,
|
|
1664
|
+
"choices": null
|
|
1665
|
+
}
|
|
1666
|
+
],
|
|
1667
|
+
"commands": []
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"name": "rotate",
|
|
1671
|
+
"path": "nexo connect webhook rotate",
|
|
1672
|
+
"aliases": [],
|
|
1673
|
+
"description": "Troca o token do endereço: mostra o que muda e pede o sim; o endereço antigo para de valer na hora",
|
|
1674
|
+
"arguments": [
|
|
1675
|
+
{
|
|
1676
|
+
"name": "pasta",
|
|
1677
|
+
"description": "pasta do conector",
|
|
1678
|
+
"required": false,
|
|
1679
|
+
"variadic": false,
|
|
1680
|
+
"default": "."
|
|
1681
|
+
}
|
|
1682
|
+
],
|
|
1683
|
+
"options": [
|
|
1684
|
+
{
|
|
1685
|
+
"flags": "--confirm <token>",
|
|
1686
|
+
"description": "aplica com o token da prévia, depois do sim da pessoa",
|
|
1687
|
+
"required": false,
|
|
1688
|
+
"default": null,
|
|
1689
|
+
"choices": null
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"flags": "-y, --yes",
|
|
1693
|
+
"description": "aplica logo depois de mostrar a prévia",
|
|
1694
|
+
"required": false,
|
|
1695
|
+
"default": null,
|
|
1696
|
+
"choices": null
|
|
1697
|
+
}
|
|
1698
|
+
],
|
|
1699
|
+
"commands": []
|
|
1678
1700
|
}
|
|
1679
1701
|
]
|
|
1680
1702
|
},
|
|
@@ -3973,6 +3995,155 @@
|
|
|
3973
3995
|
"commands": []
|
|
3974
3996
|
}
|
|
3975
3997
|
]
|
|
3998
|
+
},
|
|
3999
|
+
{
|
|
4000
|
+
"name": "agents",
|
|
4001
|
+
"path": "nexo agents",
|
|
4002
|
+
"aliases": [
|
|
4003
|
+
"agentes"
|
|
4004
|
+
],
|
|
4005
|
+
"description": "Os Agentes de atendimento (SDR e CS): o estado, a configuração e o horário de reunião",
|
|
4006
|
+
"arguments": [],
|
|
4007
|
+
"options": [],
|
|
4008
|
+
"commands": [
|
|
4009
|
+
{
|
|
4010
|
+
"name": "show",
|
|
4011
|
+
"path": "nexo agents show",
|
|
4012
|
+
"aliases": [],
|
|
4013
|
+
"description": "Mostra a configuração de um agente",
|
|
4014
|
+
"arguments": [
|
|
4015
|
+
{
|
|
4016
|
+
"name": "agente",
|
|
4017
|
+
"description": "sdr ou cs",
|
|
4018
|
+
"required": true,
|
|
4019
|
+
"variadic": false,
|
|
4020
|
+
"default": null
|
|
4021
|
+
}
|
|
4022
|
+
],
|
|
4023
|
+
"options": [],
|
|
4024
|
+
"commands": []
|
|
4025
|
+
},
|
|
4026
|
+
{
|
|
4027
|
+
"name": "set",
|
|
4028
|
+
"path": "nexo agents set",
|
|
4029
|
+
"aliases": [],
|
|
4030
|
+
"description": "Muda um agente: mostra o que muda e só salva depois do sim (só administrador)",
|
|
4031
|
+
"arguments": [
|
|
4032
|
+
{
|
|
4033
|
+
"name": "agente",
|
|
4034
|
+
"description": "sdr ou cs",
|
|
4035
|
+
"required": true,
|
|
4036
|
+
"variadic": false,
|
|
4037
|
+
"default": null
|
|
4038
|
+
}
|
|
4039
|
+
],
|
|
4040
|
+
"options": [
|
|
4041
|
+
{
|
|
4042
|
+
"flags": "--on",
|
|
4043
|
+
"description": "liga o agente",
|
|
4044
|
+
"required": false,
|
|
4045
|
+
"default": null,
|
|
4046
|
+
"choices": null
|
|
4047
|
+
},
|
|
4048
|
+
{
|
|
4049
|
+
"flags": "--off",
|
|
4050
|
+
"description": "desliga o agente",
|
|
4051
|
+
"required": false,
|
|
4052
|
+
"default": null,
|
|
4053
|
+
"choices": null
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
"flags": "--cases <casos>",
|
|
4057
|
+
"description": "after_hours, stalled_queue e covered_by_knowledge, separados por vírgula; none para nenhum",
|
|
4058
|
+
"required": false,
|
|
4059
|
+
"default": null,
|
|
4060
|
+
"choices": null
|
|
4061
|
+
},
|
|
4062
|
+
{
|
|
4063
|
+
"flags": "--book-meeting",
|
|
4064
|
+
"description": "o Agente SDR marca reunião na agenda do vendedor",
|
|
4065
|
+
"required": false,
|
|
4066
|
+
"default": null,
|
|
4067
|
+
"choices": null
|
|
4068
|
+
},
|
|
4069
|
+
{
|
|
4070
|
+
"flags": "--no-book-meeting",
|
|
4071
|
+
"description": "o Agente SDR deixa de marcar reunião",
|
|
4072
|
+
"required": false,
|
|
4073
|
+
"default": null,
|
|
4074
|
+
"choices": null
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
"flags": "--meeting-minutes <min>",
|
|
4078
|
+
"description": "duração da reunião: 30, 45 ou 60",
|
|
4079
|
+
"required": false,
|
|
4080
|
+
"default": null,
|
|
4081
|
+
"choices": null
|
|
4082
|
+
},
|
|
4083
|
+
{
|
|
4084
|
+
"flags": "--meeting-lead <min>",
|
|
4085
|
+
"description": "antecedência mínima da reunião: 120, 240 ou 1440",
|
|
4086
|
+
"required": false,
|
|
4087
|
+
"default": null,
|
|
4088
|
+
"choices": null
|
|
4089
|
+
},
|
|
4090
|
+
{
|
|
4091
|
+
"flags": "--name <nome>",
|
|
4092
|
+
"description": "nome do agente nas conversas (até 30 caracteres)",
|
|
4093
|
+
"required": false,
|
|
4094
|
+
"default": null,
|
|
4095
|
+
"choices": null
|
|
4096
|
+
},
|
|
4097
|
+
{
|
|
4098
|
+
"flags": "-y, --yes",
|
|
4099
|
+
"description": "salva logo depois de mostrar o que muda",
|
|
4100
|
+
"required": false,
|
|
4101
|
+
"default": null,
|
|
4102
|
+
"choices": null
|
|
4103
|
+
}
|
|
4104
|
+
],
|
|
4105
|
+
"commands": []
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
"name": "hours",
|
|
4109
|
+
"path": "nexo agents hours",
|
|
4110
|
+
"aliases": [],
|
|
4111
|
+
"description": "O horário de reunião: sem vendedor, lê e muda o seu; com o id de um vendedor, só lê (cada um muda o próprio). Mudar mostra o que muda e pede o sim",
|
|
4112
|
+
"arguments": [
|
|
4113
|
+
{
|
|
4114
|
+
"name": "vendedor",
|
|
4115
|
+
"description": "id do vendedor, só para ler",
|
|
4116
|
+
"required": false,
|
|
4117
|
+
"variadic": false,
|
|
4118
|
+
"default": null
|
|
4119
|
+
}
|
|
4120
|
+
],
|
|
4121
|
+
"options": [
|
|
4122
|
+
{
|
|
4123
|
+
"flags": "--day <dias=faixas>",
|
|
4124
|
+
"description": "o horário próprio inteiro, como seg-sex=09:00-12:00,14:00-18:00 (repita por dia ou grupo de dias)",
|
|
4125
|
+
"required": false,
|
|
4126
|
+
"default": null,
|
|
4127
|
+
"choices": null
|
|
4128
|
+
},
|
|
4129
|
+
{
|
|
4130
|
+
"flags": "--company",
|
|
4131
|
+
"description": "apaga o horário próprio e volta ao da empresa",
|
|
4132
|
+
"required": false,
|
|
4133
|
+
"default": null,
|
|
4134
|
+
"choices": null
|
|
4135
|
+
},
|
|
4136
|
+
{
|
|
4137
|
+
"flags": "-y, --yes",
|
|
4138
|
+
"description": "salva logo depois de mostrar o que muda",
|
|
4139
|
+
"required": false,
|
|
4140
|
+
"default": null,
|
|
4141
|
+
"choices": null
|
|
4142
|
+
}
|
|
4143
|
+
],
|
|
4144
|
+
"commands": []
|
|
4145
|
+
}
|
|
4146
|
+
]
|
|
3976
4147
|
}
|
|
3977
4148
|
]
|
|
3978
4149
|
}
|