@axivoy/api 2.43.0 → 2.45.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.
@@ -14501,6 +14501,50 @@ export interface paths {
14501
14501
  patch?: never;
14502
14502
  trace?: never;
14503
14503
  };
14504
+ "/ops/recruiting.candidates.promises.clear": {
14505
+ parameters: {
14506
+ query?: never;
14507
+ header?: never;
14508
+ path?: never;
14509
+ cookie?: never;
14510
+ };
14511
+ get?: never;
14512
+ put?: never;
14513
+ /**
14514
+ * Undo the day a candidate said
14515
+ * @description Ends the wait for the day a candidate said, or dismisses a suggested day; the item goes back to its usual reminders.
14516
+ *
14517
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
14518
+ */
14519
+ post: operations["ops.recruiting.candidates.promises.clear"];
14520
+ delete?: never;
14521
+ options?: never;
14522
+ head?: never;
14523
+ patch?: never;
14524
+ trace?: never;
14525
+ };
14526
+ "/ops/recruiting.candidates.promises.record": {
14527
+ parameters: {
14528
+ query?: never;
14529
+ header?: never;
14530
+ path?: never;
14531
+ cookie?: never;
14532
+ };
14533
+ get?: never;
14534
+ put?: never;
14535
+ /**
14536
+ * Set the day a candidate said they'd do something
14537
+ * @description Records the day (and optional time) a candidate said they will do one or more things they owe; reminders for those items wait until that day, then one reminder goes out that morning or before the time.
14538
+ *
14539
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
14540
+ */
14541
+ post: operations["ops.recruiting.candidates.promises.record"];
14542
+ delete?: never;
14543
+ options?: never;
14544
+ head?: never;
14545
+ patch?: never;
14546
+ trace?: never;
14547
+ };
14504
14548
  "/ops/recruiting.candidates.reject": {
14505
14549
  parameters: {
14506
14550
  query?: never;
@@ -125666,7 +125710,7 @@ export interface operations {
125666
125710
  at?: string | null;
125667
125711
  /** @description text or ai_recruiter */
125668
125712
  route?: string | null;
125669
- /** @description reminder, keep_in_touch or check_in */
125713
+ /** @description reminder, keep_in_touch, check_in or promise (the reminder on the day the candidate said) */
125670
125714
  purpose?: string | null;
125671
125715
  /** @description The open item the reminder is about */
125672
125716
  item?: string | null;
@@ -125677,6 +125721,49 @@ export interface operations {
125677
125721
  /** @description Out of how many */
125678
125722
  reminder_of?: number | null;
125679
125723
  } | null;
125724
+ /** @description Open items the candidate owes that a day they said can cover */
125725
+ open_items: {
125726
+ /** @description The item, as recruiting.candidates.promises.record names it */
125727
+ wait_id: number;
125728
+ /** @description What the candidate owes */
125729
+ kind: string;
125730
+ /** @description That item in words */
125731
+ label: string;
125732
+ /**
125733
+ * Format: date-time
125734
+ * @description When the item is next followed up
125735
+ */
125736
+ next_contact_at?: string | null;
125737
+ /** @description The day they said that covers it, if any */
125738
+ promise_id?: number | null;
125739
+ }[];
125740
+ /** @description Days the candidate said they would do open items */
125741
+ promises: {
125742
+ /** @description The day they said */
125743
+ promise_id: number;
125744
+ /** @description The item it covers */
125745
+ wait_id: number;
125746
+ /** @description active or suggested */
125747
+ status: string;
125748
+ /**
125749
+ * Format: date
125750
+ * @description The candidate's local day
125751
+ */
125752
+ promised_on: string;
125753
+ /** @description HH:MM on the candidate's clock */
125754
+ after_time?: string | null;
125755
+ /** @description recruiter, ai_recruiter, call, text or hub */
125756
+ source: string;
125757
+ /** @description Who set it, in words */
125758
+ source_label: string;
125759
+ /** @description A read's short quote of what the candidate said (call, text or hub only) */
125760
+ evidence?: string | null;
125761
+ /**
125762
+ * Format: date-time
125763
+ * @description When the day-of reminder goes out
125764
+ */
125765
+ reminder_at?: string | null;
125766
+ }[];
125680
125767
  };
125681
125768
  };
125682
125769
  };
@@ -126371,7 +126458,7 @@ export interface operations {
126371
126458
  at?: string | null;
126372
126459
  /** @description text or ai_recruiter */
126373
126460
  route?: string | null;
126374
- /** @description reminder, keep_in_touch or check_in */
126461
+ /** @description reminder, keep_in_touch, check_in or promise (the reminder on the day the candidate said) */
126375
126462
  purpose?: string | null;
126376
126463
  /** @description The open item the reminder is about */
126377
126464
  item?: string | null;
@@ -127197,6 +127284,268 @@ export interface operations {
127197
127284
  };
127198
127285
  };
127199
127286
  };
127287
+ "ops.recruiting.candidates.promises.clear": {
127288
+ parameters: {
127289
+ query?: never;
127290
+ header?: {
127291
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
127292
+ "Idempotency-Key"?: string;
127293
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
127294
+ "Axivoy-Dry-Run"?: "true" | "false";
127295
+ };
127296
+ path?: never;
127297
+ cookie?: never;
127298
+ };
127299
+ requestBody?: {
127300
+ content: {
127301
+ "application/json": {
127302
+ /** @description The candidate */
127303
+ candidate_id: number;
127304
+ /** @description The day to undo, or the suggestion to dismiss */
127305
+ promise_id: number;
127306
+ };
127307
+ };
127308
+ };
127309
+ responses: {
127310
+ /** @description The operation ran. */
127311
+ 200: {
127312
+ headers: {
127313
+ [name: string]: unknown;
127314
+ };
127315
+ content: {
127316
+ "application/json": {
127317
+ result: {
127318
+ /** @description What happened, in the operator's words */
127319
+ message: string;
127320
+ /** @description The candidate */
127321
+ candidate_id: number;
127322
+ /** @description The day undone */
127323
+ promise_id: number;
127324
+ /** @description cleared (the item is back on its usual reminders) or dismissed (a suggestion) */
127325
+ outcome: string;
127326
+ /**
127327
+ * Format: date-time
127328
+ * @description When the item is next followed up
127329
+ */
127330
+ next_contact_at?: string | null;
127331
+ };
127332
+ };
127333
+ };
127334
+ };
127335
+ 202: components["responses"]["Proposal"];
127336
+ /** @description Refused: credits_exhausted. */
127337
+ 402: {
127338
+ headers: {
127339
+ [name: string]: unknown;
127340
+ };
127341
+ content: {
127342
+ "application/json": components["schemas"]["OperationError"];
127343
+ };
127344
+ };
127345
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
127346
+ 403: {
127347
+ headers: {
127348
+ [name: string]: unknown;
127349
+ };
127350
+ content: {
127351
+ "application/json": components["schemas"]["OperationError"];
127352
+ };
127353
+ };
127354
+ /** @description Refused: not_found. */
127355
+ 404: {
127356
+ headers: {
127357
+ [name: string]: unknown;
127358
+ };
127359
+ content: {
127360
+ "application/json": components["schemas"]["OperationError"];
127361
+ };
127362
+ };
127363
+ /** @description Refused: idempotency_conflict, stale_state. */
127364
+ 409: {
127365
+ headers: {
127366
+ [name: string]: unknown;
127367
+ };
127368
+ content: {
127369
+ "application/json": components["schemas"]["OperationError"];
127370
+ };
127371
+ };
127372
+ /** @description Refused: operation_retired. */
127373
+ 410: {
127374
+ headers: {
127375
+ [name: string]: unknown;
127376
+ };
127377
+ content: {
127378
+ "application/json": components["schemas"]["OperationError"];
127379
+ };
127380
+ };
127381
+ /** @description Refused: invalid_input, domain_rule. */
127382
+ 422: {
127383
+ headers: {
127384
+ [name: string]: unknown;
127385
+ };
127386
+ content: {
127387
+ "application/json": components["schemas"]["OperationError"];
127388
+ };
127389
+ };
127390
+ /** @description Refused: rate_limited. */
127391
+ 429: {
127392
+ headers: {
127393
+ [name: string]: unknown;
127394
+ };
127395
+ content: {
127396
+ "application/json": components["schemas"]["OperationError"];
127397
+ };
127398
+ };
127399
+ };
127400
+ };
127401
+ "ops.recruiting.candidates.promises.record": {
127402
+ parameters: {
127403
+ query?: never;
127404
+ header?: {
127405
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
127406
+ "Idempotency-Key"?: string;
127407
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
127408
+ "Axivoy-Dry-Run"?: "true" | "false";
127409
+ };
127410
+ path?: never;
127411
+ cookie?: never;
127412
+ };
127413
+ requestBody?: {
127414
+ content: {
127415
+ "application/json": {
127416
+ /** @description The candidate */
127417
+ candidate_id: number;
127418
+ /** @description The open items the day covers */
127419
+ wait_ids: number[];
127420
+ /**
127421
+ * Format: date
127422
+ * @description businessDate: the candidate's local day, today to 14 days ahead
127423
+ */
127424
+ promised_on: string;
127425
+ /** @description HH:MM on the candidate's clock */
127426
+ after_time?: string | null;
127427
+ /** @description Use a suggested day read from a call or text */
127428
+ suggestion_id?: number | null;
127429
+ /**
127430
+ * @description automation only (refused on other channels, which set the source themselves): where the day was read
127431
+ * @enum {string|null}
127432
+ */
127433
+ source?: "call" | "text" | "hub" | null;
127434
+ /** @description automation only: the call transcript, inbound message or conversation turn */
127435
+ source_type?: string | null;
127436
+ /** @description automation only */
127437
+ source_id?: number | null;
127438
+ /** @description automation only: 0.8 or more records, 0.5 to 0.8 suggests */
127439
+ confidence?: number | null;
127440
+ /** @description automation only: short paraphrase, at most 120 characters, shown to recruiters only */
127441
+ evidence?: string | null;
127442
+ };
127443
+ };
127444
+ };
127445
+ responses: {
127446
+ /** @description The operation ran. */
127447
+ 200: {
127448
+ headers: {
127449
+ [name: string]: unknown;
127450
+ };
127451
+ content: {
127452
+ "application/json": {
127453
+ result: {
127454
+ /** @description What happened, in the operator's words */
127455
+ message: string;
127456
+ /** @description The candidate */
127457
+ candidate_id: number;
127458
+ /** @description One per item */
127459
+ promises: {
127460
+ /** @description The day they said */
127461
+ promise_id: number;
127462
+ /** @description The item it covers */
127463
+ wait_id: number;
127464
+ /**
127465
+ * Format: date
127466
+ * @description The candidate's local day
127467
+ */
127468
+ promised_on: string;
127469
+ /** @description HH:MM on the candidate's clock */
127470
+ after_time?: string | null;
127471
+ /**
127472
+ * Format: date-time
127473
+ * @description When the day-of reminder goes out; null when none will
127474
+ */
127475
+ reminder_at?: string | null;
127476
+ /** @description recorded, replaced (an older day), suggested (a read the recruiter confirms) or conflict_clinic_closed / conflict_past_pass (the day cannot work; one heads-up text instead) */
127477
+ outcome: string;
127478
+ }[];
127479
+ };
127480
+ };
127481
+ };
127482
+ };
127483
+ 202: components["responses"]["Proposal"];
127484
+ /** @description Refused: credits_exhausted. */
127485
+ 402: {
127486
+ headers: {
127487
+ [name: string]: unknown;
127488
+ };
127489
+ content: {
127490
+ "application/json": components["schemas"]["OperationError"];
127491
+ };
127492
+ };
127493
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
127494
+ 403: {
127495
+ headers: {
127496
+ [name: string]: unknown;
127497
+ };
127498
+ content: {
127499
+ "application/json": components["schemas"]["OperationError"];
127500
+ };
127501
+ };
127502
+ /** @description Refused: not_found. */
127503
+ 404: {
127504
+ headers: {
127505
+ [name: string]: unknown;
127506
+ };
127507
+ content: {
127508
+ "application/json": components["schemas"]["OperationError"];
127509
+ };
127510
+ };
127511
+ /** @description Refused: idempotency_conflict, stale_state. */
127512
+ 409: {
127513
+ headers: {
127514
+ [name: string]: unknown;
127515
+ };
127516
+ content: {
127517
+ "application/json": components["schemas"]["OperationError"];
127518
+ };
127519
+ };
127520
+ /** @description Refused: operation_retired. */
127521
+ 410: {
127522
+ headers: {
127523
+ [name: string]: unknown;
127524
+ };
127525
+ content: {
127526
+ "application/json": components["schemas"]["OperationError"];
127527
+ };
127528
+ };
127529
+ /** @description Refused: invalid_input, domain_rule. */
127530
+ 422: {
127531
+ headers: {
127532
+ [name: string]: unknown;
127533
+ };
127534
+ content: {
127535
+ "application/json": components["schemas"]["OperationError"];
127536
+ };
127537
+ };
127538
+ /** @description Refused: rate_limited. */
127539
+ 429: {
127540
+ headers: {
127541
+ [name: string]: unknown;
127542
+ };
127543
+ content: {
127544
+ "application/json": components["schemas"]["OperationError"];
127545
+ };
127546
+ };
127547
+ };
127548
+ };
127200
127549
  "ops.recruiting.candidates.reject": {
127201
127550
  parameters: {
127202
127551
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axivoy/api",
3
- "version": "2.43.0",
3
+ "version": "2.45.0",
4
4
  "description": "Typed client for the Axivoy API: operations, webhooks and errors.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://app.axivoy.ai/developers",