@axivoy/api 3.2.0 → 3.5.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.
@@ -14633,6 +14633,28 @@ export interface paths {
14633
14633
  patch?: never;
14634
14634
  trace?: never;
14635
14635
  };
14636
+ "/ops/recruiting.candidates.document_extractions.correct": {
14637
+ parameters: {
14638
+ query?: never;
14639
+ header?: never;
14640
+ path?: never;
14641
+ cookie?: never;
14642
+ };
14643
+ get?: never;
14644
+ put?: never;
14645
+ /**
14646
+ * Correct an approved document reading
14647
+ * @description Corrects a CDL or medical card reading that was already approved, keeping the original; the corrected values become the verified facts.
14648
+ *
14649
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
14650
+ */
14651
+ post: operations["ops.recruiting.candidates.document_extractions.correct"];
14652
+ delete?: never;
14653
+ options?: never;
14654
+ head?: never;
14655
+ patch?: never;
14656
+ trace?: never;
14657
+ };
14636
14658
  "/ops/recruiting.candidates.document_extractions.reject": {
14637
14659
  parameters: {
14638
14660
  query?: never;
@@ -15480,7 +15502,7 @@ export interface paths {
15480
15502
  put?: never;
15481
15503
  /**
15482
15504
  * Edit a candidate
15483
- * @description Edits a candidate's name, contact details, assigned recruiter, date of birth or license number; only the fields sent change.
15505
+ * @description Edits a candidate's name, contact details, assigned recruiter, date of birth or license number and state; only the fields sent change.
15484
15506
  *
15485
15507
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
15486
15508
  */
@@ -132007,6 +132029,180 @@ export interface operations {
132007
132029
  };
132008
132030
  };
132009
132031
  };
132032
+ "ops.recruiting.candidates.document_extractions.correct": {
132033
+ parameters: {
132034
+ query?: never;
132035
+ header?: {
132036
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
132037
+ "Idempotency-Key"?: string;
132038
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
132039
+ "Axivoy-Dry-Run"?: "true" | "false";
132040
+ };
132041
+ path?: never;
132042
+ cookie?: never;
132043
+ };
132044
+ requestBody?: {
132045
+ content: {
132046
+ /**
132047
+ * @example {
132048
+ * "candidate_id": 1,
132049
+ * "extraction_id": 1,
132050
+ * "license_number": "W1234587",
132051
+ * "notes": "Corrected license number from the card photo."
132052
+ * }
132053
+ */
132054
+ "application/json": {
132055
+ /** @description The candidate. Find it with recruiting.candidates.list. */
132056
+ candidate_id: number;
132057
+ /** @description The approved AI reading on that candidate. Find it with recruiting.candidates.documents.list. */
132058
+ extraction_id: number;
132059
+ /** @description First name */
132060
+ first_name?: string | null;
132061
+ /** @description Middle name */
132062
+ middle_name?: string | null;
132063
+ /** @description Last name */
132064
+ last_name?: string | null;
132065
+ /** @description License number */
132066
+ license_number?: string | null;
132067
+ /** @description License class */
132068
+ license_class?: string | null;
132069
+ /** @description License class when not listed */
132070
+ license_class_other?: string | null;
132071
+ /** @description Issuing state */
132072
+ issuing_state?: string | null;
132073
+ /** @description Issuing state when not listed */
132074
+ issuing_state_other?: string | null;
132075
+ /** @description Issue date */
132076
+ issue_date?: string | null;
132077
+ /** @description Expiration date */
132078
+ expiration_date?: string | null;
132079
+ /** @description Date of birth */
132080
+ date_of_birth?: string | null;
132081
+ /** @description Street */
132082
+ address_street?: string | null;
132083
+ /** @description City */
132084
+ address_city?: string | null;
132085
+ /** @description State */
132086
+ address_state?: string | null;
132087
+ /** @description State when not listed */
132088
+ address_state_other?: string | null;
132089
+ /** @description ZIP */
132090
+ address_zip?: string | null;
132091
+ /** @description Whether it is a commercial license */
132092
+ is_commercial_license?: boolean | string | number | null;
132093
+ /** @description Driver first name (medical card) */
132094
+ driver_first_name?: string | null;
132095
+ /** @description Driver last name (medical card) */
132096
+ driver_last_name?: string | null;
132097
+ /** @description Medical examiner name */
132098
+ examiner_name?: string | null;
132099
+ /** @description Medical examiner registry number */
132100
+ examiner_national_registry_number?: string | null;
132101
+ /** @description License endorsements */
132102
+ endorsements?: (string | number | boolean | null)[] | null;
132103
+ /** @description License restrictions */
132104
+ restrictions?: (string | number | boolean | null)[] | null;
132105
+ /** @description Medical card exemptions */
132106
+ exemptions?: (string | number | boolean | null)[] | null;
132107
+ /** @description Why it was corrected, max 2000 */
132108
+ notes: string;
132109
+ };
132110
+ };
132111
+ };
132112
+ responses: {
132113
+ /** @description The operation ran. */
132114
+ 200: {
132115
+ headers: {
132116
+ [name: string]: unknown;
132117
+ };
132118
+ content: {
132119
+ /**
132120
+ * @example {
132121
+ * "result": {
132122
+ * "message": "Read corrected. Verified facts recorded again.",
132123
+ * "candidate_id": 1,
132124
+ * "extraction_id": 1
132125
+ * }
132126
+ * }
132127
+ */
132128
+ "application/json": {
132129
+ result: {
132130
+ /** @description What happened, in the operator's words */
132131
+ message: string;
132132
+ /** @description The candidate */
132133
+ candidate_id: number;
132134
+ /** @description The corrected reading */
132135
+ extraction_id: number;
132136
+ };
132137
+ };
132138
+ };
132139
+ };
132140
+ 202: components["responses"]["Proposal"];
132141
+ /** @description Refused: credits_exhausted. */
132142
+ 402: {
132143
+ headers: {
132144
+ [name: string]: unknown;
132145
+ };
132146
+ content: {
132147
+ "application/json": components["schemas"]["OperationError"];
132148
+ };
132149
+ };
132150
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
132151
+ 403: {
132152
+ headers: {
132153
+ [name: string]: unknown;
132154
+ };
132155
+ content: {
132156
+ "application/json": components["schemas"]["OperationError"];
132157
+ };
132158
+ };
132159
+ /** @description Refused: not_found. */
132160
+ 404: {
132161
+ headers: {
132162
+ [name: string]: unknown;
132163
+ };
132164
+ content: {
132165
+ "application/json": components["schemas"]["OperationError"];
132166
+ };
132167
+ };
132168
+ /** @description Refused: idempotency_conflict, stale_state. */
132169
+ 409: {
132170
+ headers: {
132171
+ [name: string]: unknown;
132172
+ };
132173
+ content: {
132174
+ "application/json": components["schemas"]["OperationError"];
132175
+ };
132176
+ };
132177
+ /** @description Refused: operation_retired. */
132178
+ 410: {
132179
+ headers: {
132180
+ [name: string]: unknown;
132181
+ };
132182
+ content: {
132183
+ "application/json": components["schemas"]["OperationError"];
132184
+ };
132185
+ };
132186
+ /** @description Refused: invalid_input, domain_rule. */
132187
+ 422: {
132188
+ headers: {
132189
+ [name: string]: unknown;
132190
+ };
132191
+ content: {
132192
+ "application/json": components["schemas"]["OperationError"];
132193
+ };
132194
+ };
132195
+ /** @description Refused: rate_limited. */
132196
+ 429: {
132197
+ headers: {
132198
+ [name: string]: unknown;
132199
+ };
132200
+ content: {
132201
+ "application/json": components["schemas"]["OperationError"];
132202
+ };
132203
+ };
132204
+ };
132205
+ };
132010
132206
  "ops.recruiting.candidates.document_extractions.reject": {
132011
132207
  parameters: {
132012
132208
  query?: never;
@@ -134361,6 +134557,8 @@ export interface operations {
134361
134557
  pinned?: boolean;
134362
134558
  /** @description Mark it as a promise as it is saved */
134363
134559
  promise?: boolean;
134560
+ /** @description The note this promise was taken from (a call summary, a copy): a note shown on the same record that is not removed or redacted; send with promise true. Find it with recruiting.candidates.notes.list. */
134561
+ from_note_id?: number | null;
134364
134562
  /** @description Teammates mentioned in the note (from recruiting.candidates.notes.mention_options), each able to open the record; each is told once per note, with a link and never the words. Find it with users.directory.list. */
134365
134563
  mention_user_ids?: number[];
134366
134564
  /** @description Save words the wording check flagged (protected traits or screening report details) anyway; send only after the person saw the check */
@@ -137162,6 +137360,8 @@ export interface operations {
137162
137360
  date_of_birth?: string | null;
137163
137361
  /** @description Driver license number */
137164
137362
  license_number?: string | null;
137363
+ /** @description The state that issued the driver license (two-letter U.S. code), or other to keep a non-U.S. state already on file */
137364
+ license_state?: string | null;
137165
137365
  };
137166
137366
  };
137167
137367
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axivoy/api",
3
- "version": "3.2.0",
3
+ "version": "3.5.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",