@inploi/plugin-chatbot 14.6.0 → 14.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.
@@ -7,6 +7,7 @@ export declare const idb: {
7
7
  currentInput: ChatInput | null;
8
8
  nodeHistory: string[];
9
9
  startedWriteNodeIds?: string[];
10
+ failedAttemptAt?: Record<string, number>;
10
11
  unconfirmedAttemptKeys?: string[];
11
12
  submitCooldown?: SubmitCooldown;
12
13
  applicationRecovery?: ApplicationRecovery;
@@ -425,10 +425,15 @@ export type FlowStateData = {
425
425
  */
426
426
  startedWriteNodeIds?: string[];
427
427
  /**
428
- * Submit node (and job, when known) keys where an earlier attempt in this conversation may have been written without our knowing: an
429
- * unknown verdict or a failure with no semantics (e.g. a lost response), never a not_submitted or confirmed
430
- * outcome. A later duplicate is then most likely that attempt landing (PROD-7055). Kept across Restart, which is how a candidate retries after a failure;
431
- * it is browser-local, like the barrier.
428
+ * When the most recent unsuccessful submit of any kind, other than a duplicate, happened (epoch ms), by submit
429
+ * node (and job, when known) key. A duplicate within an hour of it is most likely that attempt having landed
430
+ * (PROD-7208). Kept across Restart, which is how a candidate retries after a failure; browser-local, like the barrier.
431
+ */
432
+ failedAttemptAt?: Record<string, number>;
433
+ /**
434
+ * Legacy, read-only: keys of attempts with an unknown or missing verdict, written before failures carried a time
435
+ * (PROD-7055). Still in candidates' browser storage; with no time to compare, a key here counts as a recent
436
+ * failure until a new failure on that key replaces it with a time in `failedAttemptAt`. Never added to.
432
437
  */
433
438
  unconfirmedAttemptKeys?: string[];
434
439
  /**
package/dist/i18n.d.ts CHANGED
@@ -10,10 +10,11 @@ export declare const TranslationProvider: (props: {
10
10
  readonly skipped: "Skipped";
11
11
  readonly submission_closed: "This role is no longer accepting applications.";
12
12
  readonly submission_duplicate: "You've already applied for this role, so we haven't submitted a second application. If that doesn't sound right, check your email for a confirmation or try again in a few minutes.";
13
- readonly submission_duplicate_earlier_attempt: "It looks like your earlier attempt did go through. You don't need to apply again — check your email for confirmation.";
13
+ readonly submission_duplicate_earlier_attempt: "You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.";
14
14
  readonly submission_retryable: "We couldn't submit your application. Please try again.";
15
15
  readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
16
16
  readonly submission_unknown: "We couldn't confirm whether your application was sent. Please check your email for a confirmation. If nothing arrives, choose Restart to apply again.";
17
+ readonly submission_unknown_do_not_resubmit: "We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.";
17
18
  readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
18
19
  readonly submission_cooldown: {
19
20
  readonly one: "Submit will be available again in {{count}} second.";
@@ -110,10 +111,11 @@ export declare const TranslationProvider: (props: {
110
111
  readonly skipped: "Skipped";
111
112
  readonly submission_closed: "This role is no longer accepting applications.";
112
113
  readonly submission_duplicate: "You've already applied for this role, so we haven't submitted a second application. If that doesn't sound right, check your email for a confirmation or try again in a few minutes.";
113
- readonly submission_duplicate_earlier_attempt: "It looks like your earlier attempt did go through. You don't need to apply again — check your email for confirmation.";
114
+ readonly submission_duplicate_earlier_attempt: "You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.";
114
115
  readonly submission_retryable: "We couldn't submit your application. Please try again.";
115
116
  readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
116
117
  readonly submission_unknown: "We couldn't confirm whether your application was sent. Please check your email for a confirmation. If nothing arrives, choose Restart to apply again.";
118
+ readonly submission_unknown_do_not_resubmit: "We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.";
117
119
  readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
118
120
  readonly submission_cooldown: {
119
121
  readonly one: "Submit will be available again in {{count}} second.";
@@ -207,10 +209,11 @@ export declare const TranslationProvider: (props: {
207
209
  readonly skipped: "Skipped";
208
210
  readonly submission_closed: "This role is no longer accepting applications.";
209
211
  readonly submission_duplicate: "You've already applied for this role, so we haven't submitted a second application. If that doesn't sound right, check your email for a confirmation or try again in a few minutes.";
210
- readonly submission_duplicate_earlier_attempt: "It looks like your earlier attempt did go through. You don't need to apply again — check your email for confirmation.";
212
+ readonly submission_duplicate_earlier_attempt: "You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.";
211
213
  readonly submission_retryable: "We couldn't submit your application. Please try again.";
212
214
  readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
213
215
  readonly submission_unknown: "We couldn't confirm whether your application was sent. Please check your email for a confirmation. If nothing arrives, choose Restart to apply again.";
216
+ readonly submission_unknown_do_not_resubmit: "We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.";
214
217
  readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
215
218
  readonly submission_cooldown: {
216
219
  readonly one: "Submit will be available again in {{count}} second.";
@@ -307,10 +310,11 @@ export declare const TranslationProvider: (props: {
307
310
  readonly skipped: "Skipped";
308
311
  readonly submission_closed: "This role is no longer accepting applications.";
309
312
  readonly submission_duplicate: "You've already applied for this role, so we haven't submitted a second application. If that doesn't sound right, check your email for a confirmation or try again in a few minutes.";
310
- readonly submission_duplicate_earlier_attempt: "It looks like your earlier attempt did go through. You don't need to apply again — check your email for confirmation.";
313
+ readonly submission_duplicate_earlier_attempt: "You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.";
311
314
  readonly submission_retryable: "We couldn't submit your application. Please try again.";
312
315
  readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
313
316
  readonly submission_unknown: "We couldn't confirm whether your application was sent. Please check your email for a confirmation. If nothing arrives, choose Restart to apply again.";
317
+ readonly submission_unknown_do_not_resubmit: "We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.";
314
318
  readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
315
319
  readonly submission_cooldown: {
316
320
  readonly one: "Submit will be available again in {{count}} second.";
@@ -404,10 +408,11 @@ export declare const TranslationProvider: (props: {
404
408
  readonly skipped: "Skipped";
405
409
  readonly submission_closed: "This role is no longer accepting applications.";
406
410
  readonly submission_duplicate: "You've already applied for this role, so we haven't submitted a second application. If that doesn't sound right, check your email for a confirmation or try again in a few minutes.";
407
- readonly submission_duplicate_earlier_attempt: "It looks like your earlier attempt did go through. You don't need to apply again — check your email for confirmation.";
411
+ readonly submission_duplicate_earlier_attempt: "You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.";
408
412
  readonly submission_retryable: "We couldn't submit your application. Please try again.";
409
413
  readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
410
414
  readonly submission_unknown: "We couldn't confirm whether your application was sent. Please check your email for a confirmation. If nothing arrives, choose Restart to apply again.";
415
+ readonly submission_unknown_do_not_resubmit: "We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.";
411
416
  readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
412
417
  readonly submission_cooldown: {
413
418
  readonly one: "Submit will be available again in {{count}} second.";
@@ -502,10 +507,11 @@ export declare const TranslationProvider: (props: {
502
507
  readonly skipped: "Skipped";
503
508
  readonly submission_closed: "This role is no longer accepting applications.";
504
509
  readonly submission_duplicate: "You've already applied for this role, so we haven't submitted a second application. If that doesn't sound right, check your email for a confirmation or try again in a few minutes.";
505
- readonly submission_duplicate_earlier_attempt: "It looks like your earlier attempt did go through. You don't need to apply again — check your email for confirmation.";
510
+ readonly submission_duplicate_earlier_attempt: "You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.";
506
511
  readonly submission_retryable: "We couldn't submit your application. Please try again.";
507
512
  readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
508
513
  readonly submission_unknown: "We couldn't confirm whether your application was sent. Please check your email for a confirmation. If nothing arrives, choose Restart to apply again.";
514
+ readonly submission_unknown_do_not_resubmit: "We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.";
509
515
  readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
510
516
  readonly submission_cooldown: {
511
517
  readonly one: "Submit will be available again in {{count}} second.";