jsfe 1.95.0 → 1.95.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-flows.d.ts","sourceRoot":"","sources":["../../src/forms/identity-flows.js"],"names":[],"mappings":"AAkDA,+GAA+G;AAC/G,oFAOC;AAQD,wFAAwF;AACxF,iDAGC;AACD,0CAWC;AACD,qHAQC;AASD,qHAAqH;AACrH,6FAKC;AACD,4EAYC;AAED;kIACkI;AAClI;;;;SAUC;AAwHD,2DAOC;AACD,4DAOC;AACD,gHAAgH;AAChH,8DAGC;
|
|
1
|
+
{"version":3,"file":"identity-flows.d.ts","sourceRoot":"","sources":["../../src/forms/identity-flows.js"],"names":[],"mappings":"AAkDA,+GAA+G;AAC/G,oFAOC;AAQD,wFAAwF;AACxF,iDAGC;AACD,0CAWC;AACD,qHAQC;AASD,qHAAqH;AACrH,6FAKC;AACD,4EAYC;AAED;kIACkI;AAClI;;;;SAUC;AAwHD,2DAOC;AACD,4DAOC;AACD,gHAAgH;AAChH,8DAGC;AAkKD,8EAGC;AAgCD,4FAA4F;AAC5F;;;;EAOC;AAWD,oGAOC;AAjRD,iCAAgC,wIAAwI,CAAC;AACzK,wCAAuC,CAAC,CAAC;AAoSzC,0BAAsK"}
|
|
@@ -361,7 +361,9 @@ const validateCode = worker('validate-otp-code', 'ValidateOtpCode', 'Validate a
|
|
|
361
361
|
'condition: wants_other_account': toParent(call('otp_change_account', 'authenticate-user', { cell_number: '', email: '', retrying: true, declined_caller: true }, 'replace')),
|
|
362
362
|
// Email asked for at a code sent by text: authentication is an input step, so the contact question is asked again
|
|
363
363
|
// (without the caller-ID offer) and the caller gives the email; a code sent by email keeps "no me llegó el correo" a resend.
|
|
364
|
-
|
|
364
|
+
// "I don't have that phone" (owner 2026-11-26) is the strongest case for the second code: the code went to the account's
|
|
365
|
+
// cell on file (an account number was given) and the caller no longer has it.
|
|
366
|
+
['condition: email_too && normalized_otp_code.length !== 6 && (' + 'matchesChoice(user_choice,otp_phrases.resend) || matchesChoice(user_choice,otp_phrases.cannot_find) || matchesChoice(user_choice,otp_phrases.another_way) || matchesChoice(user_choice,otp_phrases.email) || matchesChoice(user_choice,otp_phrases.noPhone) || ' + expression(otpPhoneUnavailable, 'user_choice') + ')']: call('otp_email_too', 'send-otp-email-too'),
|
|
365
367
|
'condition: !!cargo.otp_cell_number && normalized_otp_code.length !== 6 && matchesChoice(user_choice,otp_phrases.email)': toParent(call('otp_use_email', 'authenticate-user', { cell_number: '', email: '', retrying: true, declined_caller: true }, 'replace')),
|
|
366
368
|
"condition: isExitRequest(user_choice)": call('otp_exit', '{{otp_cancel}}', undefined, 'reboot'),
|
|
367
369
|
"condition: isAgentRequest(user_choice)": call('otp_agent', 'live-agent-requested', undefined, 'reboot'),
|
|
@@ -374,7 +376,7 @@ const validateCode = worker('validate-otp-code', 'ValidateOtpCode', 'Validate a
|
|
|
374
376
|
"condition: answer_key === 'code_notice'": effect('otp_tenant_notice_said', 'true'),
|
|
375
377
|
'condition: normalized_otp_code.length > 0 && Number(cargo.otpFormatMisses || 0)<2': say('otp_bad_format', "I was expecting a 6-digit code. Let's try again.", "Esperaba un código de 6 dígitos. Intentemos de nuevo."),
|
|
376
378
|
'condition: normalized_otp_code.length > 0': effect('otp_format_cap_next', 'true'),
|
|
377
|
-
['condition: matchesChoice(user_choice,otp_phrases.noPhone) || ' + expression(otpPhoneUnavailable, 'user_choice')]: otpMenu('otp_no_phone', "No problem. Then the code can't reach you there.
|
|
379
|
+
['condition: matchesChoice(user_choice,otp_phrases.noPhone) || ' + expression(otpPhoneUnavailable, 'user_choice')]: otpMenu('otp_no_phone', "No problem. Then the code can't reach you there. To reach a person, {{cargo.verb}} AGENT.", 'No hay problema. Entonces el código no le puede llegar ahí. Para hablar con una persona, {{cargo.verb_es}} AGENTE.', false),
|
|
378
380
|
default: set('otp_words_missing', 'no_code_given', 'true')
|
|
379
381
|
}),
|
|
380
382
|
// An answer none of the above reads goes to the reply ranker (owner 2026-10-29: prod 10-28, 128 of 238 such replies were
|
|
@@ -396,14 +398,14 @@ const validateCode = worker('validate-otp-code', 'ValidateOtpCode', 'Validate a
|
|
|
396
398
|
// is answering, so it is no miss. Its own bound: from the fourth, it counts as a word miss again.
|
|
397
399
|
set('otp_hold_cap', 'no_code_given', "no_code_given || !!(otp_reply && otp_reply.key === 'has_code' && (cargo.otpCodeHolds=Number(cargo.otpCodeHolds || 0)+1) > 3)"),
|
|
398
400
|
cases('otp_reply_route', {
|
|
399
|
-
"condition: !no_code_given && email_too && otp_reply && ['email','resend','cannot_find','another_way'].includes(otp_reply.key)": call('otp_ranked_email_too', 'send-otp-email-too'),
|
|
401
|
+
"condition: !no_code_given && email_too && otp_reply && ['email','resend','cannot_find','another_way','no_phone'].includes(otp_reply.key)": call('otp_ranked_email_too', 'send-otp-email-too'),
|
|
400
402
|
"condition: !no_code_given && otp_reply && otp_reply.key === 'email'": toParent(call('otp_ranked_email', 'authenticate-user', { cell_number: '', email: '', retrying: true, declined_caller: true }, 'replace')),
|
|
401
403
|
"condition: !no_code_given && otp_reply && otp_reply.key === 'another_account'": toParent(call('otp_ranked_account', 'authenticate-user', { cell_number: '', email: '', retrying: true, declined_caller: true }, 'replace')),
|
|
402
404
|
"condition: !no_code_given && otp_reply && (otp_reply.key === 'where' || otp_reply.key === 'cannot_find')": say('otp_ranked_where', '{{otp_where}}', '{{otp_where_es}}'),
|
|
403
405
|
"condition: !no_code_given && otp_reply && otp_reply.key === 'another_way'": say('otp_ranked_no_other_way', '{{otp_where}} To reach a person, {{cargo.verb}} AGENT.', '{{otp_where_es}} Para hablar con una persona, {{cargo.verb_es}} AGENTE.'),
|
|
404
406
|
"condition: !no_code_given && otp_reply && otp_reply.key === 'has_code'": say('otp_ranked_has_code', 'Go ahead. Read me the six digits when you have them.', 'Adelante. Dígame los seis dígitos cuando los tenga.'),
|
|
405
407
|
"condition: !no_code_given && otp_reply && otp_reply.key === 'resend'": call('otp_ranked_resend', 'resend-otp-code', { resend_reason: 'requested' }),
|
|
406
|
-
"condition: !no_code_given && otp_reply && otp_reply.key === 'no_phone'": otpMenu('otp_ranked_no_phone', "No problem. Then the code can't reach you there.
|
|
408
|
+
"condition: !no_code_given && otp_reply && otp_reply.key === 'no_phone'": otpMenu('otp_ranked_no_phone', "No problem. Then the code can't reach you there. To reach a person, {{cargo.verb}} AGENT.", 'No hay problema. Entonces el código no le puede llegar ahí. Para hablar con una persona, {{cargo.verb_es}} AGENTE.', false),
|
|
407
409
|
"condition: !no_code_given && otp_reply && otp_reply.key === 'no_other_account'": say('otp_ranked_no_other_account', 'I understand. We still need to secure access to your account.', 'Entiendo. Aún necesitamos asegurar el acceso a su cuenta.'),
|
|
408
410
|
"condition: !no_code_given && otp_reply && otp_reply.key === '__agent'": call('otp_ranked_agent', 'live-agent-requested', undefined, 'reboot'),
|
|
409
411
|
default: effect('otp_reply_route_none', 'true')
|
package/dist/runtime-identity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const JSFE_RUNTIME_FINGERPRINT = "sha256:
|
|
1
|
+
export const JSFE_RUNTIME_FINGERPRINT = "sha256:493220aa2e49f0f7dc6280917ff389665487e77baab92182b724bc9cea648ab1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsfe",
|
|
3
|
-
"version": "1.95.
|
|
3
|
+
"version": "1.95.1",
|
|
4
4
|
"description": "TypeScript workflow engine for conversational/automation apps: multi-flow orchestration, interrupt/resume, stack-based control, robust errors, and flexible tool/REST integration.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ron Pinkas",
|