@axivoy/api 2.10.0 → 2.13.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.
@@ -1070,7 +1070,7 @@ export interface paths {
1070
1070
  put?: never;
1071
1071
  /**
1072
1072
  * Show a team
1073
- * @description One team in full: its people (each person or role with their Email, Texts and Calls switches, the status of people who take calls, and any permission warnings), its email address, From name, own address, filing copies and sent-mail alerts, its phone numbers (whether each one's calls and texts come to the team), its calls settings and what Axivoy sends from it.
1073
+ * @description One team in full: its people (each person or role with their Email, Texts and Calls switches, the status of people who take calls, and any permission warnings), its email address, where its mail goes out from (its own confirmed address, the default sending address or its Axivoy address), From name, own address and its test, filing copies and sent-mail alerts, its phone numbers (whether each one's calls and texts come to the team), its calls settings and what Axivoy sends from it.
1074
1074
  *
1075
1075
  * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1076
1076
  */
@@ -1092,7 +1092,7 @@ export interface paths {
1092
1092
  put?: never;
1093
1093
  /**
1094
1094
  * List teams
1095
- * @description The company's teams: each one's name, email address, phone numbers, how many people see its email and its texts and how many take its calls, its main phone menu digit, whether it is the company's default team and whether it is ready. Built-in teams the company can add (their module is off) only with include_available; archived teams only with include_archived. With member_user_id, only the teams that person is on, directly or through a role, with their Email, Texts and Calls switches and the row that decides them (needs Manage teams and a person in the company).
1095
+ * @description The company's teams: each one's name, email address, where its mail goes out from (its own confirmed address, the default sending address or its Axivoy address), phone numbers, how many people see its email and its texts and how many take its calls, its main phone menu digit, whether it is the company's default team and whether it is ready. Built-in teams the company can add (their module is off) only with include_available; archived teams only with include_archived. With member_user_id, only the teams that person is on, directly or through a role, with their Email, Texts and Calls switches and the row that decides them (needs Manage teams and a person in the company).
1096
1096
  *
1097
1097
  * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1098
1098
  */
@@ -1202,7 +1202,7 @@ export interface paths {
1202
1202
  put?: never;
1203
1203
  /**
1204
1204
  * Stop using your own address for a team
1205
- * @description Stops using the company's own address on a team's mail; the team sends from its Axivoy address again.
1205
+ * @description Stops using a team's own address, or cancels one waiting for its test; the team sends from the default sending address, or its Axivoy address when the default isn't confirmed.
1206
1206
  *
1207
1207
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1208
1208
  */
@@ -1224,7 +1224,7 @@ export interface paths {
1224
1224
  put?: never;
1225
1225
  /**
1226
1226
  * Resend a team address confirmation
1227
- * @description Emails the confirmation link for a team's own address again while it waits for confirmation.
1227
+ * @description Sends a team's own address its test again while it waits for confirmation; the new test replaces the old link.
1228
1228
  *
1229
1229
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1230
1230
  */
@@ -1246,7 +1246,7 @@ export interface paths {
1246
1246
  put?: never;
1247
1247
  /**
1248
1248
  * Use your own address for a team
1249
- * @description Sets the address customers see on a team's mail, on the company's live sending domain, and emails that mailbox a confirmation link. The address is used once someone confirms it.
1249
+ * @description Sets the address customers see on a team's mail, on the company's live sending domain, and emails that mailbox a test. The address is used once the test comes back through the mailbox's forwarding or someone clicks its link; until then the team sends from the default sending address or its Axivoy address. The default sending address itself is refused.
1250
1250
  *
1251
1251
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1252
1252
  */
@@ -1257,6 +1257,28 @@ export interface paths {
1257
1257
  patch?: never;
1258
1258
  trace?: never;
1259
1259
  };
1260
+ "/ops/communication_teams.public_from.test_forwarding": {
1261
+ parameters: {
1262
+ query?: never;
1263
+ header?: never;
1264
+ path?: never;
1265
+ cookie?: never;
1266
+ };
1267
+ get?: never;
1268
+ put?: never;
1269
+ /**
1270
+ * Test a team address forwarding
1271
+ * @description Sends a team's confirmed own address a test email. If it comes back to the company in Axivoy through the mailbox's forwarding, the address is marked as reaching the team. The address keeps sending whatever the result.
1272
+ *
1273
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1274
+ */
1275
+ post: operations["ops.communication_teams.public_from.test_forwarding"];
1276
+ delete?: never;
1277
+ options?: never;
1278
+ head?: never;
1279
+ patch?: never;
1280
+ trace?: never;
1281
+ };
1260
1282
  "/ops/communication_teams.update": {
1261
1283
  parameters: {
1262
1284
  query?: never;
@@ -16305,6 +16327,28 @@ export interface paths {
16305
16327
  patch?: never;
16306
16328
  trace?: never;
16307
16329
  };
16330
+ "/ops/system.domains.default_address.get": {
16331
+ parameters: {
16332
+ query?: never;
16333
+ header?: never;
16334
+ path?: never;
16335
+ cookie?: never;
16336
+ };
16337
+ get?: never;
16338
+ put?: never;
16339
+ /**
16340
+ * Default sending address
16341
+ * @description The address the company's mail goes out from when a team has no confirmed address of its own: the confirmed address, a first or changed address waiting for confirmation, an expired link or a delivery failure, and what mail uses meanwhile.
16342
+ *
16343
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
16344
+ */
16345
+ post: operations["ops.system.domains.default_address.get"];
16346
+ delete?: never;
16347
+ options?: never;
16348
+ head?: never;
16349
+ patch?: never;
16350
+ trace?: never;
16351
+ };
16308
16352
  "/ops/system.domains.list": {
16309
16353
  parameters: {
16310
16354
  query?: never;
@@ -27457,6 +27501,7 @@ export interface operations {
27457
27501
  * },
27458
27502
  * "phone_numbers": [],
27459
27503
  * "is_default": true,
27504
+ * "sealed": false,
27460
27505
  * "sends": [
27461
27506
  * "Detention and accessorial mail",
27462
27507
  * "Broker negotiations",
@@ -27483,14 +27528,65 @@ export interface operations {
27483
27528
  menu_phrase?: string | null;
27484
27529
  /** @description Email settings */
27485
27530
  email: {
27486
- /** @description The team's Axivoy address; null before the company has a mail domain */
27531
+ /** @description The team's Axivoy address (on the shared reply domain under the company's name once it sends from its own domain); null before the company has a mail domain */
27487
27532
  address?: string | null;
27488
- /** @description The address customers see: the confirmed own address, else the Axivoy address */
27533
+ /** @description The address customers see: sends_from.address */
27489
27534
  from_address?: string | null;
27535
+ /** @description Where its mail goes out from now; null when none can send yet */
27536
+ sends_from?: {
27537
+ /** @description own (its confirmed own address), default (the confirmed default sending address under its name) or axivoy (its Axivoy address) */
27538
+ kind: string;
27539
+ /** @description The address */
27540
+ address: string;
27541
+ } | null;
27542
+ /** @description The company's confirmed default sending address; null when it has none */
27543
+ default_address?: string | null;
27544
+ /** @description The receive address to forward its own mailbox to; null before the company has a mail domain */
27545
+ forward_target?: string | null;
27546
+ /** @description Where the team receives email, and where to copy the company's own mailbox; on the mail subdomain even when its mail is sent from the company domain; null before the company has a mail domain */
27547
+ replies_address?: string | null;
27490
27548
  /** @description The name customers see on its mail */
27491
27549
  from_name: string;
27492
27550
  /** @description pending_confirmation, active or failed; null without an own address */
27493
27551
  own_address_status?: string | null;
27552
+ /** @description The team's own address; null without one */
27553
+ own_address?: {
27554
+ /** @description The address on the live sending domain */
27555
+ address: string;
27556
+ /** @description confirmed, else checking (test out), waiting (didn't come back), expired (link expired) or failed (bounced) */
27557
+ state: string;
27558
+ /** @description forwarding or link once confirmed */
27559
+ confirmed_via?: string | null;
27560
+ /** @description The team its forwarding reached; null until a test came back through it */
27561
+ forwards_to?: {
27562
+ /** @description Team key */
27563
+ key: string;
27564
+ /** @description Team name */
27565
+ name: string;
27566
+ } | null;
27567
+ /**
27568
+ * Format: date-time
27569
+ * @description When its latest test was sent
27570
+ */
27571
+ test_sent_at?: string | null;
27572
+ /**
27573
+ * Format: date-time
27574
+ * @description When it was confirmed
27575
+ */
27576
+ confirmed_at?: string | null;
27577
+ /**
27578
+ * Format: date-time
27579
+ * @description When a test last came back through its forwarding
27580
+ */
27581
+ forwarding_verified_at?: string | null;
27582
+ /**
27583
+ * Format: date-time
27584
+ * @description A forwarding test of the confirmed address that hasn't come back
27585
+ */
27586
+ forwarding_test_sent_at?: string | null;
27587
+ /** @description Why its test could not be delivered */
27588
+ failure_reason?: string | null;
27589
+ } | null;
27494
27590
  /** @description {mode, people}: who is emailed when Axivoy sends mail from the team (off, email or chosen); null on a team Axivoy sends nothing from */
27495
27591
  alerts?: Record<string, never> | null;
27496
27592
  };
@@ -27538,6 +27634,8 @@ export interface operations {
27538
27634
  phone_numbers: unknown[];
27539
27635
  /** @description Whether it is the company's default team */
27540
27636
  is_default: boolean;
27637
+ /** @description Whether its people follow its default roles (Drug & alcohol testing follows the DER role): people can't be added, removed or shared, a ring group never answers, it files no copies, alerts only its people, is never the default team, and its conversations and calls stay with its people */
27638
+ sealed: boolean;
27541
27639
  /** @description What Axivoy sends from it */
27542
27640
  sends: unknown[];
27543
27641
  /** @description {state, label, tone}; null when archived */
@@ -27840,7 +27938,7 @@ export interface operations {
27840
27938
  id: number;
27841
27939
  /** @description With member_user_id: {member_id, via, back_to_role, shares_people_with, email, texts, calls} for that person. via is person (their own row, member_id) or the name of the role whose row puts them on the team (member_id is that role row); back_to_role is the role row their own row replaces, else null; shares_people_with is the team whose people this team uses (its rows decide), else null. Null without member_user_id */
27842
27940
  membership?: Record<string, never> | null;
27843
- /** @description Team key: dispatch, safety, maintenance, receivables, onboarding, driver_payroll, hr, fleet, or a company team's key */
27941
+ /** @description Team key: dispatch, safety, maintenance, receivables, onboarding, driver_payroll, hr, fleet, drug_testing, or a company team's key */
27844
27942
  key: string;
27845
27943
  /** @description Team name */
27846
27944
  name: string;
@@ -27850,8 +27948,15 @@ export interface operations {
27850
27948
  state: string;
27851
27949
  /** @description The module that turns a built-in team on, for example Compliance; null when it is always on or a company team */
27852
27950
  module_label?: string | null;
27853
- /** @description The team's Axivoy address; null before the company has a mail domain */
27951
+ /** @description The team's Axivoy address (on the shared reply domain under the company's name once it sends from its own domain); null before the company has a mail domain */
27854
27952
  email_address?: string | null;
27953
+ /** @description Where its mail goes out from now; null unless on, or when none can send yet */
27954
+ sends_from?: {
27955
+ /** @description own (its confirmed own address), default (the confirmed default sending address under its name) or axivoy (its Axivoy address) */
27956
+ kind: string;
27957
+ /** @description The address */
27958
+ address: string;
27959
+ } | null;
27855
27960
  /** @description Numbers whose calls or texts come to the team: {number_id, e164, calls, texts} */
27856
27961
  phone_numbers: unknown[];
27857
27962
  /** @description Active people with any switch on */
@@ -28717,7 +28822,7 @@ export interface operations {
28717
28822
  result: {
28718
28823
  /** @description The team's own address */
28719
28824
  identity_id: number;
28720
- /** @description pending_confirmation until someone opens the link */
28825
+ /** @description pending_confirmation until the test comes back or someone clicks its link; failed when it could not be delivered; active when the address was already confirmed */
28721
28826
  status: string;
28722
28827
  /** @description What happened, in the operator's words */
28723
28828
  message: string;
@@ -28791,6 +28896,114 @@ export interface operations {
28791
28896
  };
28792
28897
  };
28793
28898
  };
28899
+ "ops.communication_teams.public_from.test_forwarding": {
28900
+ parameters: {
28901
+ query?: never;
28902
+ header?: {
28903
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
28904
+ "Idempotency-Key"?: string;
28905
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
28906
+ "Axivoy-Dry-Run"?: "true" | "false";
28907
+ };
28908
+ path?: never;
28909
+ cookie?: never;
28910
+ };
28911
+ requestBody?: {
28912
+ content: {
28913
+ "application/json": {
28914
+ /** @description The team (from communication_teams.list) */
28915
+ team_key: string;
28916
+ };
28917
+ };
28918
+ };
28919
+ responses: {
28920
+ /** @description The operation ran. */
28921
+ 200: {
28922
+ headers: {
28923
+ [name: string]: unknown;
28924
+ };
28925
+ content: {
28926
+ "application/json": {
28927
+ result: {
28928
+ /** @description The team's own address */
28929
+ identity_id: number;
28930
+ /**
28931
+ * Format: date-time
28932
+ * @description When the forwarding test was sent
28933
+ */
28934
+ forwarding_test_sent_at?: string | null;
28935
+ /** @description What happened, in the operator's words */
28936
+ message: string;
28937
+ };
28938
+ };
28939
+ };
28940
+ };
28941
+ 202: components["responses"]["Proposal"];
28942
+ /** @description Refused: credits_exhausted. */
28943
+ 402: {
28944
+ headers: {
28945
+ [name: string]: unknown;
28946
+ };
28947
+ content: {
28948
+ "application/json": components["schemas"]["OperationError"];
28949
+ };
28950
+ };
28951
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
28952
+ 403: {
28953
+ headers: {
28954
+ [name: string]: unknown;
28955
+ };
28956
+ content: {
28957
+ "application/json": components["schemas"]["OperationError"];
28958
+ };
28959
+ };
28960
+ /** @description Refused: not_found. */
28961
+ 404: {
28962
+ headers: {
28963
+ [name: string]: unknown;
28964
+ };
28965
+ content: {
28966
+ "application/json": components["schemas"]["OperationError"];
28967
+ };
28968
+ };
28969
+ /** @description Refused: idempotency_conflict, stale_state. */
28970
+ 409: {
28971
+ headers: {
28972
+ [name: string]: unknown;
28973
+ };
28974
+ content: {
28975
+ "application/json": components["schemas"]["OperationError"];
28976
+ };
28977
+ };
28978
+ /** @description Refused: operation_retired. */
28979
+ 410: {
28980
+ headers: {
28981
+ [name: string]: unknown;
28982
+ };
28983
+ content: {
28984
+ "application/json": components["schemas"]["OperationError"];
28985
+ };
28986
+ };
28987
+ /** @description Refused: invalid_input, domain_rule. */
28988
+ 422: {
28989
+ headers: {
28990
+ [name: string]: unknown;
28991
+ };
28992
+ content: {
28993
+ "application/json": components["schemas"]["OperationError"];
28994
+ };
28995
+ };
28996
+ /** @description Refused: rate_limited. */
28997
+ 429: {
28998
+ headers: {
28999
+ [name: string]: unknown;
29000
+ };
29001
+ content: {
29002
+ "application/json": components["schemas"]["OperationError"];
29003
+ };
29004
+ };
29005
+ };
29006
+ };
28794
29007
  "ops.communication_teams.update": {
28795
29008
  parameters: {
28796
29009
  query?: never;
@@ -141088,6 +141301,142 @@ export interface operations {
141088
141301
  };
141089
141302
  };
141090
141303
  };
141304
+ "ops.system.domains.default_address.get": {
141305
+ parameters: {
141306
+ query?: never;
141307
+ header?: {
141308
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
141309
+ "Idempotency-Key"?: string;
141310
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
141311
+ "Axivoy-Dry-Run"?: "true" | "false";
141312
+ };
141313
+ path?: never;
141314
+ cookie?: never;
141315
+ };
141316
+ requestBody?: {
141317
+ content: {
141318
+ /** @example {} */
141319
+ "application/json": Record<string, never>;
141320
+ };
141321
+ };
141322
+ responses: {
141323
+ /** @description The operation ran. */
141324
+ 200: {
141325
+ headers: {
141326
+ [name: string]: unknown;
141327
+ };
141328
+ content: {
141329
+ /**
141330
+ * @example {
141331
+ * "result": {
141332
+ * "domain": "carrier.example.com",
141333
+ * "address": "billing@carrier.example.com",
141334
+ * "state": "confirmed",
141335
+ * "pending_address": null,
141336
+ * "pending_sent_at": null,
141337
+ * "failure_reason": null,
141338
+ * "fallback": null,
141339
+ * "confirmed_via": "grandfathered",
141340
+ * "forwards_to": null,
141341
+ * "forward_target": null
141342
+ * }
141343
+ * }
141344
+ */
141345
+ "application/json": {
141346
+ result: {
141347
+ /** @description The live sending domain */
141348
+ domain: string;
141349
+ /** @description The confirmed default sending address, or null */
141350
+ address?: string | null;
141351
+ /** @description confirmed or untested, else checking, waiting, expired or failed for the address waiting for confirmation */
141352
+ state: string;
141353
+ /** @description The first or changed address waiting for confirmation */
141354
+ pending_address?: string | null;
141355
+ /**
141356
+ * Format: date-time
141357
+ * @description When its test was sent
141358
+ */
141359
+ pending_sent_at?: string | null;
141360
+ /** @description Why the test could not be delivered */
141361
+ failure_reason?: string | null;
141362
+ /** @description What mail uses meanwhile */
141363
+ fallback?: string | null;
141364
+ /** @description forwarding, link or grandfathered */
141365
+ confirmed_via?: string | null;
141366
+ /** @description The team its forwarding reached, or null */
141367
+ forwards_to?: string | null;
141368
+ /** @description The receive address to forward the mailbox to */
141369
+ forward_target?: string | null;
141370
+ };
141371
+ };
141372
+ };
141373
+ };
141374
+ 202: components["responses"]["Proposal"];
141375
+ /** @description Refused: credits_exhausted. */
141376
+ 402: {
141377
+ headers: {
141378
+ [name: string]: unknown;
141379
+ };
141380
+ content: {
141381
+ "application/json": components["schemas"]["OperationError"];
141382
+ };
141383
+ };
141384
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
141385
+ 403: {
141386
+ headers: {
141387
+ [name: string]: unknown;
141388
+ };
141389
+ content: {
141390
+ "application/json": components["schemas"]["OperationError"];
141391
+ };
141392
+ };
141393
+ /** @description Refused: not_found. */
141394
+ 404: {
141395
+ headers: {
141396
+ [name: string]: unknown;
141397
+ };
141398
+ content: {
141399
+ "application/json": components["schemas"]["OperationError"];
141400
+ };
141401
+ };
141402
+ /** @description Refused: idempotency_conflict, stale_state. */
141403
+ 409: {
141404
+ headers: {
141405
+ [name: string]: unknown;
141406
+ };
141407
+ content: {
141408
+ "application/json": components["schemas"]["OperationError"];
141409
+ };
141410
+ };
141411
+ /** @description Refused: operation_retired. */
141412
+ 410: {
141413
+ headers: {
141414
+ [name: string]: unknown;
141415
+ };
141416
+ content: {
141417
+ "application/json": components["schemas"]["OperationError"];
141418
+ };
141419
+ };
141420
+ /** @description Refused: invalid_input, domain_rule. */
141421
+ 422: {
141422
+ headers: {
141423
+ [name: string]: unknown;
141424
+ };
141425
+ content: {
141426
+ "application/json": components["schemas"]["OperationError"];
141427
+ };
141428
+ };
141429
+ /** @description Refused: rate_limited. */
141430
+ 429: {
141431
+ headers: {
141432
+ [name: string]: unknown;
141433
+ };
141434
+ content: {
141435
+ "application/json": components["schemas"]["OperationError"];
141436
+ };
141437
+ };
141438
+ };
141439
+ };
141091
141440
  "ops.system.domains.list": {
141092
141441
  parameters: {
141093
141442
  query?: never;
@@ -143929,17 +144278,17 @@ export interface operations {
143929
144278
  * {
143930
144279
  * "slug": "account_notice_reply_answer",
143931
144280
  * "display_name": "Notices address reply answer",
143932
- * "help_summary": "Answers a reply sent to the notices address once, pointing to the page the notice is about (or the DER for drug and alcohol testing mail), since nobody reads that address.",
144281
+ * "help_summary": "Retired. Replies to notices used to get this automatic answer; notices now come from an address that doesn't take replies, and each one links to the page it's about.",
143933
144282
  * "audience": "operator",
143934
144283
  * "editability": "operator",
143935
- * "status": "active",
144284
+ * "status": "deprecated",
143936
144285
  * "replacement_slug": null,
143937
144286
  * "channel": "email",
143938
144287
  * "inheritance": "inherited",
143939
144288
  * "health_ok": true,
143940
144289
  * "health_errors": [],
143941
- * "can_edit": true,
143942
- * "read_only": false
144290
+ * "can_edit": false,
144291
+ * "read_only": true
143943
144292
  * },
143944
144293
  * {
143945
144294
  * "slug": "password_reset",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axivoy/api",
3
- "version": "2.10.0",
3
+ "version": "2.13.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",