@vitrina/api 14.20.0 → 14.21.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.
- package/dist/index.d.cts +510 -3
- package/dist/index.d.ts +510 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -24795,12 +24795,12 @@ interface paths {
|
|
|
24795
24795
|
/** @description Antigüedad laboral in approximate whole years («8 años»). */
|
|
24796
24796
|
employment_tenure?: string | null;
|
|
24797
24797
|
/**
|
|
24798
|
-
* @description Currency of `budget_max_amount` (UF | CLP). null = the lead `value_currency`.
|
|
24798
|
+
* @description Currency of `budget_max_amount` (UF | CLP). null = the lead `value_currency`. A UF amount keeps up to 2 decimals (62.5); any other currency is rounded to a whole number.
|
|
24799
24799
|
* @enum {string|null}
|
|
24800
24800
|
*/
|
|
24801
24801
|
budget_currency?: "UF" | "CLP" | null;
|
|
24802
24802
|
/**
|
|
24803
|
-
* @description Currency of the pie (`down_payment_amount`, `max_down_payment_amount`). null = the lead `value_currency`.
|
|
24803
|
+
* @description Currency of the pie (`down_payment_amount`, `max_down_payment_amount`). null = the lead `value_currency`. A UF amount keeps up to 2 decimals (62.5); any other currency is rounded to a whole number.
|
|
24804
24804
|
* @enum {string|null}
|
|
24805
24805
|
*/
|
|
24806
24806
|
down_payment_currency?: "UF" | "CLP" | null;
|
|
@@ -24814,7 +24814,7 @@ interface paths {
|
|
|
24814
24814
|
/** @description Amount the bank pre-approved, in `mortgage_preapproved_currency`. */
|
|
24815
24815
|
mortgage_preapproved_amount?: number | null;
|
|
24816
24816
|
/**
|
|
24817
|
-
* @description Currency of `mortgage_preapproved_amount` (UF | CLP).
|
|
24817
|
+
* @description Currency of `mortgage_preapproved_amount` (UF | CLP). A UF amount keeps up to 2 decimals; any other currency is rounded to a whole number.
|
|
24818
24818
|
* @enum {string|null}
|
|
24819
24819
|
*/
|
|
24820
24820
|
mortgage_preapproved_currency?: "UF" | "CLP" | null;
|
|
@@ -81677,6 +81677,256 @@ interface paths {
|
|
|
81677
81677
|
patch?: never;
|
|
81678
81678
|
trace?: never;
|
|
81679
81679
|
};
|
|
81680
|
+
"/appointments/booking-agents": {
|
|
81681
|
+
parameters: {
|
|
81682
|
+
query?: never;
|
|
81683
|
+
header?: never;
|
|
81684
|
+
path?: never;
|
|
81685
|
+
cookie?: never;
|
|
81686
|
+
};
|
|
81687
|
+
/**
|
|
81688
|
+
* Which agents can book on the agenda
|
|
81689
|
+
* @description Every AI agent of the workspace and how far it can book on the native agenda: `booking` is `on` (every scheduling tool on, or the rest switched off by the owner), `partial`, `off`, or `switched_off` (the owner switched every one off). `missing_tools` are the scheduling tools the agent has neither on nor switched off — what `POST` would add. `agenda_configured` is the same flag as `GET /appointments/config`; `has_open_hours` is false when the effective week has no open interval, i.e. an agent could not offer a single slot. Scope `ai_agents:read`.
|
|
81690
|
+
*/
|
|
81691
|
+
get: {
|
|
81692
|
+
parameters: {
|
|
81693
|
+
query?: never;
|
|
81694
|
+
header?: never;
|
|
81695
|
+
path?: never;
|
|
81696
|
+
cookie?: never;
|
|
81697
|
+
};
|
|
81698
|
+
requestBody?: never;
|
|
81699
|
+
responses: {
|
|
81700
|
+
/** @description `{ agenda_configured, has_open_hours, agents }` */
|
|
81701
|
+
200: {
|
|
81702
|
+
headers: {
|
|
81703
|
+
[name: string]: unknown;
|
|
81704
|
+
};
|
|
81705
|
+
content: {
|
|
81706
|
+
/**
|
|
81707
|
+
* @example {
|
|
81708
|
+
* "agenda_configured": true,
|
|
81709
|
+
* "has_open_hours": true,
|
|
81710
|
+
* "agents": [
|
|
81711
|
+
* {
|
|
81712
|
+
* "id": "6f1c2a4e-0b7d-4c1e-9a55-3d2e8f7a9b10",
|
|
81713
|
+
* "name": "Vera",
|
|
81714
|
+
* "status": "active",
|
|
81715
|
+
* "booking": "off",
|
|
81716
|
+
* "missing_tools": [
|
|
81717
|
+
* "list_appointment_types",
|
|
81718
|
+
* "find_slots",
|
|
81719
|
+
* "book_appointment",
|
|
81720
|
+
* "reschedule_appointment",
|
|
81721
|
+
* "cancel_appointment",
|
|
81722
|
+
* "list_appointments"
|
|
81723
|
+
* ],
|
|
81724
|
+
* "switched_off_tools": []
|
|
81725
|
+
* },
|
|
81726
|
+
* {
|
|
81727
|
+
* "id": "0a9e7c3b-5d2f-4e8a-b1c6-7f4d3e2a1b09",
|
|
81728
|
+
* "name": "Tomás",
|
|
81729
|
+
* "status": "active",
|
|
81730
|
+
* "booking": "on",
|
|
81731
|
+
* "missing_tools": [],
|
|
81732
|
+
* "switched_off_tools": [
|
|
81733
|
+
* "cancel_appointment"
|
|
81734
|
+
* ]
|
|
81735
|
+
* }
|
|
81736
|
+
* ]
|
|
81737
|
+
* }
|
|
81738
|
+
*/
|
|
81739
|
+
"application/json": {
|
|
81740
|
+
data?: unknown;
|
|
81741
|
+
meta?: {
|
|
81742
|
+
[key: string]: unknown;
|
|
81743
|
+
};
|
|
81744
|
+
};
|
|
81745
|
+
};
|
|
81746
|
+
};
|
|
81747
|
+
/** @description Validation error */
|
|
81748
|
+
400: {
|
|
81749
|
+
headers: {
|
|
81750
|
+
[name: string]: unknown;
|
|
81751
|
+
};
|
|
81752
|
+
content: {
|
|
81753
|
+
"application/json": components["schemas"]["Error"];
|
|
81754
|
+
};
|
|
81755
|
+
};
|
|
81756
|
+
/** @description Unauthorized */
|
|
81757
|
+
401: {
|
|
81758
|
+
headers: {
|
|
81759
|
+
[name: string]: unknown;
|
|
81760
|
+
};
|
|
81761
|
+
content: {
|
|
81762
|
+
"application/json": components["schemas"]["Error"];
|
|
81763
|
+
};
|
|
81764
|
+
};
|
|
81765
|
+
/** @description Forbidden */
|
|
81766
|
+
403: {
|
|
81767
|
+
headers: {
|
|
81768
|
+
[name: string]: unknown;
|
|
81769
|
+
};
|
|
81770
|
+
content: {
|
|
81771
|
+
"application/json": components["schemas"]["Error"];
|
|
81772
|
+
};
|
|
81773
|
+
};
|
|
81774
|
+
/** @description Not found */
|
|
81775
|
+
404: {
|
|
81776
|
+
headers: {
|
|
81777
|
+
[name: string]: unknown;
|
|
81778
|
+
};
|
|
81779
|
+
content: {
|
|
81780
|
+
"application/json": components["schemas"]["Error"];
|
|
81781
|
+
};
|
|
81782
|
+
};
|
|
81783
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
81784
|
+
409: {
|
|
81785
|
+
headers: {
|
|
81786
|
+
[name: string]: unknown;
|
|
81787
|
+
};
|
|
81788
|
+
content: {
|
|
81789
|
+
"application/json": components["schemas"]["Error"];
|
|
81790
|
+
};
|
|
81791
|
+
};
|
|
81792
|
+
/** @description Rate limited */
|
|
81793
|
+
429: {
|
|
81794
|
+
headers: {
|
|
81795
|
+
[name: string]: unknown;
|
|
81796
|
+
};
|
|
81797
|
+
content: {
|
|
81798
|
+
"application/json": components["schemas"]["Error"];
|
|
81799
|
+
};
|
|
81800
|
+
};
|
|
81801
|
+
};
|
|
81802
|
+
};
|
|
81803
|
+
put?: never;
|
|
81804
|
+
/**
|
|
81805
|
+
* Enable booking on the agents the owner confirmed
|
|
81806
|
+
* @description Adds the scheduling tools (`list_appointment_types`, `find_slots`, `book_appointment`, `reschedule_appointment`, `cancel_appointment`, `list_appointments`) to each agent in `ai_agent_ids`, live. A tool the owner switched off on an agent stays off (`switched_off_tools`). An agent with a pending draft tool wiring also gets the tools staged into the draft, so publishing it keeps them (`draft_updated`). Changing an agent is the owner’s decision: call this only with agents the owner confirmed. `409 agenda_not_configured` until a scheduling policy is saved (`PUT /appointments/config`); `404` if any id is not one of the workspace’s agents (nothing is written). Scope `ai_agents:write`.
|
|
81807
|
+
*/
|
|
81808
|
+
post: {
|
|
81809
|
+
parameters: {
|
|
81810
|
+
query?: never;
|
|
81811
|
+
header?: {
|
|
81812
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
81813
|
+
"Idempotency-Key"?: string;
|
|
81814
|
+
};
|
|
81815
|
+
path?: never;
|
|
81816
|
+
cookie?: never;
|
|
81817
|
+
};
|
|
81818
|
+
requestBody?: {
|
|
81819
|
+
content: {
|
|
81820
|
+
/**
|
|
81821
|
+
* @example {
|
|
81822
|
+
* "ai_agent_ids": [
|
|
81823
|
+
* "6f1c2a4e-0b7d-4c1e-9a55-3d2e8f7a9b10"
|
|
81824
|
+
* ]
|
|
81825
|
+
* }
|
|
81826
|
+
*/
|
|
81827
|
+
"application/json": {
|
|
81828
|
+
ai_agent_ids: string[];
|
|
81829
|
+
};
|
|
81830
|
+
};
|
|
81831
|
+
};
|
|
81832
|
+
responses: {
|
|
81833
|
+
/** @description `{ has_open_hours, agents }` — per agent, the tools this call turned on */
|
|
81834
|
+
200: {
|
|
81835
|
+
headers: {
|
|
81836
|
+
[name: string]: unknown;
|
|
81837
|
+
};
|
|
81838
|
+
content: {
|
|
81839
|
+
/**
|
|
81840
|
+
* @example {
|
|
81841
|
+
* "has_open_hours": true,
|
|
81842
|
+
* "agents": [
|
|
81843
|
+
* {
|
|
81844
|
+
* "id": "6f1c2a4e-0b7d-4c1e-9a55-3d2e8f7a9b10",
|
|
81845
|
+
* "name": "Vera",
|
|
81846
|
+
* "tools_added": [
|
|
81847
|
+
* "list_appointment_types",
|
|
81848
|
+
* "find_slots",
|
|
81849
|
+
* "book_appointment",
|
|
81850
|
+
* "reschedule_appointment",
|
|
81851
|
+
* "cancel_appointment",
|
|
81852
|
+
* "list_appointments"
|
|
81853
|
+
* ],
|
|
81854
|
+
* "switched_off_tools": [],
|
|
81855
|
+
* "draft_updated": false
|
|
81856
|
+
* }
|
|
81857
|
+
* ]
|
|
81858
|
+
* }
|
|
81859
|
+
*/
|
|
81860
|
+
"application/json": {
|
|
81861
|
+
data?: unknown;
|
|
81862
|
+
meta?: {
|
|
81863
|
+
[key: string]: unknown;
|
|
81864
|
+
};
|
|
81865
|
+
};
|
|
81866
|
+
};
|
|
81867
|
+
};
|
|
81868
|
+
/** @description Validation error */
|
|
81869
|
+
400: {
|
|
81870
|
+
headers: {
|
|
81871
|
+
[name: string]: unknown;
|
|
81872
|
+
};
|
|
81873
|
+
content: {
|
|
81874
|
+
"application/json": components["schemas"]["Error"];
|
|
81875
|
+
};
|
|
81876
|
+
};
|
|
81877
|
+
/** @description Unauthorized */
|
|
81878
|
+
401: {
|
|
81879
|
+
headers: {
|
|
81880
|
+
[name: string]: unknown;
|
|
81881
|
+
};
|
|
81882
|
+
content: {
|
|
81883
|
+
"application/json": components["schemas"]["Error"];
|
|
81884
|
+
};
|
|
81885
|
+
};
|
|
81886
|
+
/** @description Forbidden */
|
|
81887
|
+
403: {
|
|
81888
|
+
headers: {
|
|
81889
|
+
[name: string]: unknown;
|
|
81890
|
+
};
|
|
81891
|
+
content: {
|
|
81892
|
+
"application/json": components["schemas"]["Error"];
|
|
81893
|
+
};
|
|
81894
|
+
};
|
|
81895
|
+
/** @description Not found */
|
|
81896
|
+
404: {
|
|
81897
|
+
headers: {
|
|
81898
|
+
[name: string]: unknown;
|
|
81899
|
+
};
|
|
81900
|
+
content: {
|
|
81901
|
+
"application/json": components["schemas"]["Error"];
|
|
81902
|
+
};
|
|
81903
|
+
};
|
|
81904
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
81905
|
+
409: {
|
|
81906
|
+
headers: {
|
|
81907
|
+
[name: string]: unknown;
|
|
81908
|
+
};
|
|
81909
|
+
content: {
|
|
81910
|
+
"application/json": components["schemas"]["Error"];
|
|
81911
|
+
};
|
|
81912
|
+
};
|
|
81913
|
+
/** @description Rate limited */
|
|
81914
|
+
429: {
|
|
81915
|
+
headers: {
|
|
81916
|
+
[name: string]: unknown;
|
|
81917
|
+
};
|
|
81918
|
+
content: {
|
|
81919
|
+
"application/json": components["schemas"]["Error"];
|
|
81920
|
+
};
|
|
81921
|
+
};
|
|
81922
|
+
};
|
|
81923
|
+
};
|
|
81924
|
+
delete?: never;
|
|
81925
|
+
options?: never;
|
|
81926
|
+
head?: never;
|
|
81927
|
+
patch?: never;
|
|
81928
|
+
trace?: never;
|
|
81929
|
+
};
|
|
81680
81930
|
"/appointments/config": {
|
|
81681
81931
|
parameters: {
|
|
81682
81932
|
query?: never;
|
|
@@ -159845,6 +160095,257 @@ interface paths {
|
|
|
159845
160095
|
patch?: never;
|
|
159846
160096
|
trace?: never;
|
|
159847
160097
|
};
|
|
160098
|
+
"/messaging-accounts/email/discover": {
|
|
160099
|
+
parameters: {
|
|
160100
|
+
query?: never;
|
|
160101
|
+
header?: never;
|
|
160102
|
+
path?: never;
|
|
160103
|
+
cookie?: never;
|
|
160104
|
+
};
|
|
160105
|
+
get?: never;
|
|
160106
|
+
put?: never;
|
|
160107
|
+
/**
|
|
160108
|
+
* Detect a mailbox's IMAP/SMTP settings from its address
|
|
160109
|
+
* @description Finds the IMAP and SMTP host, port and TLS mode for an email address the way Thunderbird and Outlook do, trying in order: the MX (Google / Microsoft 365 → `oauth` hint), the domain's autoconfig, Thunderbird's ISPDB, Outlook autodiscover (what cPanel hosting answers), SRV records, and finally the usual hostnames that accept a connection. The first source with a hit wins; each candidate names its `source`. **Nothing is persisted.**
|
|
160110
|
+
*
|
|
160111
|
+
* Without `password`: the ranked `candidates`. With `password`: the candidates are also logged in to, in order (at most 4, about 15 s in all), and `verified` is the first whose IMAP AND SMTP logins passed; otherwise `attempts` carries each leg's error and `error_kind` — `auth` means the server answered and refused the password, `unreachable` / `timeout` / `tls` mean the server could not be reached. When `oauth` is set (Gmail / Microsoft 365), connect through the OAuth flow instead; no login is tried.
|
|
160112
|
+
*
|
|
160113
|
+
* Then connect with `POST /messaging-accounts/email`, sending `verified` (or the chosen candidate) with the password on both legs. Finding nothing is `200` with `candidates: []`. Rate-limited per workspace (`429`).
|
|
160114
|
+
*/
|
|
160115
|
+
post: {
|
|
160116
|
+
parameters: {
|
|
160117
|
+
query?: never;
|
|
160118
|
+
header?: {
|
|
160119
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
160120
|
+
"Idempotency-Key"?: string;
|
|
160121
|
+
};
|
|
160122
|
+
path?: never;
|
|
160123
|
+
cookie?: never;
|
|
160124
|
+
};
|
|
160125
|
+
requestBody?: {
|
|
160126
|
+
content: {
|
|
160127
|
+
/**
|
|
160128
|
+
* @example {
|
|
160129
|
+
* "email": "contacto@automotora-ejemplo.cl",
|
|
160130
|
+
* "password": "contraseña-del-buzón"
|
|
160131
|
+
* }
|
|
160132
|
+
*/
|
|
160133
|
+
"application/json": {
|
|
160134
|
+
/** Format: email */
|
|
160135
|
+
email: string;
|
|
160136
|
+
password?: string;
|
|
160137
|
+
};
|
|
160138
|
+
};
|
|
160139
|
+
};
|
|
160140
|
+
responses: {
|
|
160141
|
+
/** @description Ranked candidates and, with a password, the login results */
|
|
160142
|
+
200: {
|
|
160143
|
+
headers: {
|
|
160144
|
+
[name: string]: unknown;
|
|
160145
|
+
};
|
|
160146
|
+
content: {
|
|
160147
|
+
/**
|
|
160148
|
+
* @example {
|
|
160149
|
+
* "data": {
|
|
160150
|
+
* "domain": "automotora-ejemplo.cl",
|
|
160151
|
+
* "oauth": null,
|
|
160152
|
+
* "candidates": [
|
|
160153
|
+
* {
|
|
160154
|
+
* "source": "autodiscover",
|
|
160155
|
+
* "imap": {
|
|
160156
|
+
* "host": "mail.automotora-ejemplo.cl",
|
|
160157
|
+
* "port": 993,
|
|
160158
|
+
* "secure": true,
|
|
160159
|
+
* "user": "contacto@automotora-ejemplo.cl"
|
|
160160
|
+
* },
|
|
160161
|
+
* "smtp": {
|
|
160162
|
+
* "host": "mail.automotora-ejemplo.cl",
|
|
160163
|
+
* "port": 465,
|
|
160164
|
+
* "secure": true,
|
|
160165
|
+
* "user": "contacto@automotora-ejemplo.cl"
|
|
160166
|
+
* }
|
|
160167
|
+
* }
|
|
160168
|
+
* ],
|
|
160169
|
+
* "verified": null,
|
|
160170
|
+
* "attempts": [
|
|
160171
|
+
* {
|
|
160172
|
+
* "candidate": {
|
|
160173
|
+
* "source": "autodiscover",
|
|
160174
|
+
* "imap": {
|
|
160175
|
+
* "host": "mail.automotora-ejemplo.cl",
|
|
160176
|
+
* "port": 993,
|
|
160177
|
+
* "secure": true,
|
|
160178
|
+
* "user": "contacto@automotora-ejemplo.cl"
|
|
160179
|
+
* },
|
|
160180
|
+
* "smtp": {
|
|
160181
|
+
* "host": "mail.automotora-ejemplo.cl",
|
|
160182
|
+
* "port": 465,
|
|
160183
|
+
* "secure": true,
|
|
160184
|
+
* "user": "contacto@automotora-ejemplo.cl"
|
|
160185
|
+
* }
|
|
160186
|
+
* },
|
|
160187
|
+
* "ok": false,
|
|
160188
|
+
* "imap": {
|
|
160189
|
+
* "ok": false,
|
|
160190
|
+
* "error": "Command failed: Authentication failed.",
|
|
160191
|
+
* "error_kind": "auth"
|
|
160192
|
+
* },
|
|
160193
|
+
* "smtp": {
|
|
160194
|
+
* "ok": false,
|
|
160195
|
+
* "error": "Invalid login: 535 Incorrect authentication data",
|
|
160196
|
+
* "error_kind": "auth"
|
|
160197
|
+
* }
|
|
160198
|
+
* }
|
|
160199
|
+
* ]
|
|
160200
|
+
* }
|
|
160201
|
+
* }
|
|
160202
|
+
*/
|
|
160203
|
+
"application/json": {
|
|
160204
|
+
data: {
|
|
160205
|
+
domain: string;
|
|
160206
|
+
/** @enum {string|null} */
|
|
160207
|
+
oauth: "gmail" | "outlook" | null;
|
|
160208
|
+
candidates: {
|
|
160209
|
+
/** @enum {string} */
|
|
160210
|
+
source: "oauth_hint" | "autoconfig" | "ispdb" | "autodiscover" | "srv" | "guess";
|
|
160211
|
+
imap: {
|
|
160212
|
+
host: string;
|
|
160213
|
+
port: number;
|
|
160214
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160215
|
+
secure: boolean;
|
|
160216
|
+
/** @description Login name, placeholders already expanded */
|
|
160217
|
+
user: string;
|
|
160218
|
+
};
|
|
160219
|
+
smtp: {
|
|
160220
|
+
host: string;
|
|
160221
|
+
port: number;
|
|
160222
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160223
|
+
secure: boolean;
|
|
160224
|
+
/** @description Login name, placeholders already expanded */
|
|
160225
|
+
user: string;
|
|
160226
|
+
};
|
|
160227
|
+
}[];
|
|
160228
|
+
verified: {
|
|
160229
|
+
/** @enum {string} */
|
|
160230
|
+
source: "oauth_hint" | "autoconfig" | "ispdb" | "autodiscover" | "srv" | "guess";
|
|
160231
|
+
imap: {
|
|
160232
|
+
host: string;
|
|
160233
|
+
port: number;
|
|
160234
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160235
|
+
secure: boolean;
|
|
160236
|
+
/** @description Login name, placeholders already expanded */
|
|
160237
|
+
user: string;
|
|
160238
|
+
};
|
|
160239
|
+
smtp: {
|
|
160240
|
+
host: string;
|
|
160241
|
+
port: number;
|
|
160242
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160243
|
+
secure: boolean;
|
|
160244
|
+
/** @description Login name, placeholders already expanded */
|
|
160245
|
+
user: string;
|
|
160246
|
+
};
|
|
160247
|
+
} | null;
|
|
160248
|
+
attempts: {
|
|
160249
|
+
candidate: {
|
|
160250
|
+
/** @enum {string} */
|
|
160251
|
+
source: "oauth_hint" | "autoconfig" | "ispdb" | "autodiscover" | "srv" | "guess";
|
|
160252
|
+
imap: {
|
|
160253
|
+
host: string;
|
|
160254
|
+
port: number;
|
|
160255
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160256
|
+
secure: boolean;
|
|
160257
|
+
/** @description Login name, placeholders already expanded */
|
|
160258
|
+
user: string;
|
|
160259
|
+
};
|
|
160260
|
+
smtp: {
|
|
160261
|
+
host: string;
|
|
160262
|
+
port: number;
|
|
160263
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160264
|
+
secure: boolean;
|
|
160265
|
+
/** @description Login name, placeholders already expanded */
|
|
160266
|
+
user: string;
|
|
160267
|
+
};
|
|
160268
|
+
};
|
|
160269
|
+
ok: boolean;
|
|
160270
|
+
imap: {
|
|
160271
|
+
ok: boolean;
|
|
160272
|
+
error: string | null;
|
|
160273
|
+
/** @enum {string|null} */
|
|
160274
|
+
error_kind: "auth" | "unreachable" | "tls" | "timeout" | "other" | null;
|
|
160275
|
+
};
|
|
160276
|
+
smtp: {
|
|
160277
|
+
ok: boolean;
|
|
160278
|
+
error: string | null;
|
|
160279
|
+
/** @enum {string|null} */
|
|
160280
|
+
error_kind: "auth" | "unreachable" | "tls" | "timeout" | "other" | null;
|
|
160281
|
+
};
|
|
160282
|
+
}[];
|
|
160283
|
+
};
|
|
160284
|
+
};
|
|
160285
|
+
};
|
|
160286
|
+
};
|
|
160287
|
+
/** @description Validation error */
|
|
160288
|
+
400: {
|
|
160289
|
+
headers: {
|
|
160290
|
+
[name: string]: unknown;
|
|
160291
|
+
};
|
|
160292
|
+
content: {
|
|
160293
|
+
"application/json": components["schemas"]["Error"];
|
|
160294
|
+
};
|
|
160295
|
+
};
|
|
160296
|
+
/** @description Unauthorized */
|
|
160297
|
+
401: {
|
|
160298
|
+
headers: {
|
|
160299
|
+
[name: string]: unknown;
|
|
160300
|
+
};
|
|
160301
|
+
content: {
|
|
160302
|
+
"application/json": components["schemas"]["Error"];
|
|
160303
|
+
};
|
|
160304
|
+
};
|
|
160305
|
+
/** @description Forbidden */
|
|
160306
|
+
403: {
|
|
160307
|
+
headers: {
|
|
160308
|
+
[name: string]: unknown;
|
|
160309
|
+
};
|
|
160310
|
+
content: {
|
|
160311
|
+
"application/json": components["schemas"]["Error"];
|
|
160312
|
+
};
|
|
160313
|
+
};
|
|
160314
|
+
/** @description Not found */
|
|
160315
|
+
404: {
|
|
160316
|
+
headers: {
|
|
160317
|
+
[name: string]: unknown;
|
|
160318
|
+
};
|
|
160319
|
+
content: {
|
|
160320
|
+
"application/json": components["schemas"]["Error"];
|
|
160321
|
+
};
|
|
160322
|
+
};
|
|
160323
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
160324
|
+
409: {
|
|
160325
|
+
headers: {
|
|
160326
|
+
[name: string]: unknown;
|
|
160327
|
+
};
|
|
160328
|
+
content: {
|
|
160329
|
+
"application/json": components["schemas"]["Error"];
|
|
160330
|
+
};
|
|
160331
|
+
};
|
|
160332
|
+
/** @description Rate limited */
|
|
160333
|
+
429: {
|
|
160334
|
+
headers: {
|
|
160335
|
+
[name: string]: unknown;
|
|
160336
|
+
};
|
|
160337
|
+
content: {
|
|
160338
|
+
"application/json": components["schemas"]["Error"];
|
|
160339
|
+
};
|
|
160340
|
+
};
|
|
160341
|
+
};
|
|
160342
|
+
};
|
|
160343
|
+
delete?: never;
|
|
160344
|
+
options?: never;
|
|
160345
|
+
head?: never;
|
|
160346
|
+
patch?: never;
|
|
160347
|
+
trace?: never;
|
|
160348
|
+
};
|
|
159848
160349
|
"/products": {
|
|
159849
160350
|
parameters: {
|
|
159850
160351
|
query?: never;
|
|
@@ -190913,6 +191414,12 @@ interface components {
|
|
|
190913
191414
|
/** @enum {string} */
|
|
190914
191415
|
source: "native" | "shopify" | "woocommerce";
|
|
190915
191416
|
external_id: string | null;
|
|
191417
|
+
/** @description A store order: the number the store shows (it can differ from `external_id`). Null for a native order. */
|
|
191418
|
+
external_number: string | null;
|
|
191419
|
+
/** @description A store order: the store's own payment page, where the buyer pays with the store's gateways. Null for a native order. */
|
|
191420
|
+
store_payment_url: string | null;
|
|
191421
|
+
/** @description A store order: the store's modification time as of the last applied store event. */
|
|
191422
|
+
external_updated_at: string | null;
|
|
190916
191423
|
/** @enum {string} */
|
|
190917
191424
|
status: "draft" | "pending_payment" | "paid" | "preparing" | "shipped" | "delivered" | "cancelled";
|
|
190918
191425
|
/** Format: uuid */
|
package/dist/index.d.ts
CHANGED
|
@@ -24795,12 +24795,12 @@ interface paths {
|
|
|
24795
24795
|
/** @description Antigüedad laboral in approximate whole years («8 años»). */
|
|
24796
24796
|
employment_tenure?: string | null;
|
|
24797
24797
|
/**
|
|
24798
|
-
* @description Currency of `budget_max_amount` (UF | CLP). null = the lead `value_currency`.
|
|
24798
|
+
* @description Currency of `budget_max_amount` (UF | CLP). null = the lead `value_currency`. A UF amount keeps up to 2 decimals (62.5); any other currency is rounded to a whole number.
|
|
24799
24799
|
* @enum {string|null}
|
|
24800
24800
|
*/
|
|
24801
24801
|
budget_currency?: "UF" | "CLP" | null;
|
|
24802
24802
|
/**
|
|
24803
|
-
* @description Currency of the pie (`down_payment_amount`, `max_down_payment_amount`). null = the lead `value_currency`.
|
|
24803
|
+
* @description Currency of the pie (`down_payment_amount`, `max_down_payment_amount`). null = the lead `value_currency`. A UF amount keeps up to 2 decimals (62.5); any other currency is rounded to a whole number.
|
|
24804
24804
|
* @enum {string|null}
|
|
24805
24805
|
*/
|
|
24806
24806
|
down_payment_currency?: "UF" | "CLP" | null;
|
|
@@ -24814,7 +24814,7 @@ interface paths {
|
|
|
24814
24814
|
/** @description Amount the bank pre-approved, in `mortgage_preapproved_currency`. */
|
|
24815
24815
|
mortgage_preapproved_amount?: number | null;
|
|
24816
24816
|
/**
|
|
24817
|
-
* @description Currency of `mortgage_preapproved_amount` (UF | CLP).
|
|
24817
|
+
* @description Currency of `mortgage_preapproved_amount` (UF | CLP). A UF amount keeps up to 2 decimals; any other currency is rounded to a whole number.
|
|
24818
24818
|
* @enum {string|null}
|
|
24819
24819
|
*/
|
|
24820
24820
|
mortgage_preapproved_currency?: "UF" | "CLP" | null;
|
|
@@ -81677,6 +81677,256 @@ interface paths {
|
|
|
81677
81677
|
patch?: never;
|
|
81678
81678
|
trace?: never;
|
|
81679
81679
|
};
|
|
81680
|
+
"/appointments/booking-agents": {
|
|
81681
|
+
parameters: {
|
|
81682
|
+
query?: never;
|
|
81683
|
+
header?: never;
|
|
81684
|
+
path?: never;
|
|
81685
|
+
cookie?: never;
|
|
81686
|
+
};
|
|
81687
|
+
/**
|
|
81688
|
+
* Which agents can book on the agenda
|
|
81689
|
+
* @description Every AI agent of the workspace and how far it can book on the native agenda: `booking` is `on` (every scheduling tool on, or the rest switched off by the owner), `partial`, `off`, or `switched_off` (the owner switched every one off). `missing_tools` are the scheduling tools the agent has neither on nor switched off — what `POST` would add. `agenda_configured` is the same flag as `GET /appointments/config`; `has_open_hours` is false when the effective week has no open interval, i.e. an agent could not offer a single slot. Scope `ai_agents:read`.
|
|
81690
|
+
*/
|
|
81691
|
+
get: {
|
|
81692
|
+
parameters: {
|
|
81693
|
+
query?: never;
|
|
81694
|
+
header?: never;
|
|
81695
|
+
path?: never;
|
|
81696
|
+
cookie?: never;
|
|
81697
|
+
};
|
|
81698
|
+
requestBody?: never;
|
|
81699
|
+
responses: {
|
|
81700
|
+
/** @description `{ agenda_configured, has_open_hours, agents }` */
|
|
81701
|
+
200: {
|
|
81702
|
+
headers: {
|
|
81703
|
+
[name: string]: unknown;
|
|
81704
|
+
};
|
|
81705
|
+
content: {
|
|
81706
|
+
/**
|
|
81707
|
+
* @example {
|
|
81708
|
+
* "agenda_configured": true,
|
|
81709
|
+
* "has_open_hours": true,
|
|
81710
|
+
* "agents": [
|
|
81711
|
+
* {
|
|
81712
|
+
* "id": "6f1c2a4e-0b7d-4c1e-9a55-3d2e8f7a9b10",
|
|
81713
|
+
* "name": "Vera",
|
|
81714
|
+
* "status": "active",
|
|
81715
|
+
* "booking": "off",
|
|
81716
|
+
* "missing_tools": [
|
|
81717
|
+
* "list_appointment_types",
|
|
81718
|
+
* "find_slots",
|
|
81719
|
+
* "book_appointment",
|
|
81720
|
+
* "reschedule_appointment",
|
|
81721
|
+
* "cancel_appointment",
|
|
81722
|
+
* "list_appointments"
|
|
81723
|
+
* ],
|
|
81724
|
+
* "switched_off_tools": []
|
|
81725
|
+
* },
|
|
81726
|
+
* {
|
|
81727
|
+
* "id": "0a9e7c3b-5d2f-4e8a-b1c6-7f4d3e2a1b09",
|
|
81728
|
+
* "name": "Tomás",
|
|
81729
|
+
* "status": "active",
|
|
81730
|
+
* "booking": "on",
|
|
81731
|
+
* "missing_tools": [],
|
|
81732
|
+
* "switched_off_tools": [
|
|
81733
|
+
* "cancel_appointment"
|
|
81734
|
+
* ]
|
|
81735
|
+
* }
|
|
81736
|
+
* ]
|
|
81737
|
+
* }
|
|
81738
|
+
*/
|
|
81739
|
+
"application/json": {
|
|
81740
|
+
data?: unknown;
|
|
81741
|
+
meta?: {
|
|
81742
|
+
[key: string]: unknown;
|
|
81743
|
+
};
|
|
81744
|
+
};
|
|
81745
|
+
};
|
|
81746
|
+
};
|
|
81747
|
+
/** @description Validation error */
|
|
81748
|
+
400: {
|
|
81749
|
+
headers: {
|
|
81750
|
+
[name: string]: unknown;
|
|
81751
|
+
};
|
|
81752
|
+
content: {
|
|
81753
|
+
"application/json": components["schemas"]["Error"];
|
|
81754
|
+
};
|
|
81755
|
+
};
|
|
81756
|
+
/** @description Unauthorized */
|
|
81757
|
+
401: {
|
|
81758
|
+
headers: {
|
|
81759
|
+
[name: string]: unknown;
|
|
81760
|
+
};
|
|
81761
|
+
content: {
|
|
81762
|
+
"application/json": components["schemas"]["Error"];
|
|
81763
|
+
};
|
|
81764
|
+
};
|
|
81765
|
+
/** @description Forbidden */
|
|
81766
|
+
403: {
|
|
81767
|
+
headers: {
|
|
81768
|
+
[name: string]: unknown;
|
|
81769
|
+
};
|
|
81770
|
+
content: {
|
|
81771
|
+
"application/json": components["schemas"]["Error"];
|
|
81772
|
+
};
|
|
81773
|
+
};
|
|
81774
|
+
/** @description Not found */
|
|
81775
|
+
404: {
|
|
81776
|
+
headers: {
|
|
81777
|
+
[name: string]: unknown;
|
|
81778
|
+
};
|
|
81779
|
+
content: {
|
|
81780
|
+
"application/json": components["schemas"]["Error"];
|
|
81781
|
+
};
|
|
81782
|
+
};
|
|
81783
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
81784
|
+
409: {
|
|
81785
|
+
headers: {
|
|
81786
|
+
[name: string]: unknown;
|
|
81787
|
+
};
|
|
81788
|
+
content: {
|
|
81789
|
+
"application/json": components["schemas"]["Error"];
|
|
81790
|
+
};
|
|
81791
|
+
};
|
|
81792
|
+
/** @description Rate limited */
|
|
81793
|
+
429: {
|
|
81794
|
+
headers: {
|
|
81795
|
+
[name: string]: unknown;
|
|
81796
|
+
};
|
|
81797
|
+
content: {
|
|
81798
|
+
"application/json": components["schemas"]["Error"];
|
|
81799
|
+
};
|
|
81800
|
+
};
|
|
81801
|
+
};
|
|
81802
|
+
};
|
|
81803
|
+
put?: never;
|
|
81804
|
+
/**
|
|
81805
|
+
* Enable booking on the agents the owner confirmed
|
|
81806
|
+
* @description Adds the scheduling tools (`list_appointment_types`, `find_slots`, `book_appointment`, `reschedule_appointment`, `cancel_appointment`, `list_appointments`) to each agent in `ai_agent_ids`, live. A tool the owner switched off on an agent stays off (`switched_off_tools`). An agent with a pending draft tool wiring also gets the tools staged into the draft, so publishing it keeps them (`draft_updated`). Changing an agent is the owner’s decision: call this only with agents the owner confirmed. `409 agenda_not_configured` until a scheduling policy is saved (`PUT /appointments/config`); `404` if any id is not one of the workspace’s agents (nothing is written). Scope `ai_agents:write`.
|
|
81807
|
+
*/
|
|
81808
|
+
post: {
|
|
81809
|
+
parameters: {
|
|
81810
|
+
query?: never;
|
|
81811
|
+
header?: {
|
|
81812
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
81813
|
+
"Idempotency-Key"?: string;
|
|
81814
|
+
};
|
|
81815
|
+
path?: never;
|
|
81816
|
+
cookie?: never;
|
|
81817
|
+
};
|
|
81818
|
+
requestBody?: {
|
|
81819
|
+
content: {
|
|
81820
|
+
/**
|
|
81821
|
+
* @example {
|
|
81822
|
+
* "ai_agent_ids": [
|
|
81823
|
+
* "6f1c2a4e-0b7d-4c1e-9a55-3d2e8f7a9b10"
|
|
81824
|
+
* ]
|
|
81825
|
+
* }
|
|
81826
|
+
*/
|
|
81827
|
+
"application/json": {
|
|
81828
|
+
ai_agent_ids: string[];
|
|
81829
|
+
};
|
|
81830
|
+
};
|
|
81831
|
+
};
|
|
81832
|
+
responses: {
|
|
81833
|
+
/** @description `{ has_open_hours, agents }` — per agent, the tools this call turned on */
|
|
81834
|
+
200: {
|
|
81835
|
+
headers: {
|
|
81836
|
+
[name: string]: unknown;
|
|
81837
|
+
};
|
|
81838
|
+
content: {
|
|
81839
|
+
/**
|
|
81840
|
+
* @example {
|
|
81841
|
+
* "has_open_hours": true,
|
|
81842
|
+
* "agents": [
|
|
81843
|
+
* {
|
|
81844
|
+
* "id": "6f1c2a4e-0b7d-4c1e-9a55-3d2e8f7a9b10",
|
|
81845
|
+
* "name": "Vera",
|
|
81846
|
+
* "tools_added": [
|
|
81847
|
+
* "list_appointment_types",
|
|
81848
|
+
* "find_slots",
|
|
81849
|
+
* "book_appointment",
|
|
81850
|
+
* "reschedule_appointment",
|
|
81851
|
+
* "cancel_appointment",
|
|
81852
|
+
* "list_appointments"
|
|
81853
|
+
* ],
|
|
81854
|
+
* "switched_off_tools": [],
|
|
81855
|
+
* "draft_updated": false
|
|
81856
|
+
* }
|
|
81857
|
+
* ]
|
|
81858
|
+
* }
|
|
81859
|
+
*/
|
|
81860
|
+
"application/json": {
|
|
81861
|
+
data?: unknown;
|
|
81862
|
+
meta?: {
|
|
81863
|
+
[key: string]: unknown;
|
|
81864
|
+
};
|
|
81865
|
+
};
|
|
81866
|
+
};
|
|
81867
|
+
};
|
|
81868
|
+
/** @description Validation error */
|
|
81869
|
+
400: {
|
|
81870
|
+
headers: {
|
|
81871
|
+
[name: string]: unknown;
|
|
81872
|
+
};
|
|
81873
|
+
content: {
|
|
81874
|
+
"application/json": components["schemas"]["Error"];
|
|
81875
|
+
};
|
|
81876
|
+
};
|
|
81877
|
+
/** @description Unauthorized */
|
|
81878
|
+
401: {
|
|
81879
|
+
headers: {
|
|
81880
|
+
[name: string]: unknown;
|
|
81881
|
+
};
|
|
81882
|
+
content: {
|
|
81883
|
+
"application/json": components["schemas"]["Error"];
|
|
81884
|
+
};
|
|
81885
|
+
};
|
|
81886
|
+
/** @description Forbidden */
|
|
81887
|
+
403: {
|
|
81888
|
+
headers: {
|
|
81889
|
+
[name: string]: unknown;
|
|
81890
|
+
};
|
|
81891
|
+
content: {
|
|
81892
|
+
"application/json": components["schemas"]["Error"];
|
|
81893
|
+
};
|
|
81894
|
+
};
|
|
81895
|
+
/** @description Not found */
|
|
81896
|
+
404: {
|
|
81897
|
+
headers: {
|
|
81898
|
+
[name: string]: unknown;
|
|
81899
|
+
};
|
|
81900
|
+
content: {
|
|
81901
|
+
"application/json": components["schemas"]["Error"];
|
|
81902
|
+
};
|
|
81903
|
+
};
|
|
81904
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
81905
|
+
409: {
|
|
81906
|
+
headers: {
|
|
81907
|
+
[name: string]: unknown;
|
|
81908
|
+
};
|
|
81909
|
+
content: {
|
|
81910
|
+
"application/json": components["schemas"]["Error"];
|
|
81911
|
+
};
|
|
81912
|
+
};
|
|
81913
|
+
/** @description Rate limited */
|
|
81914
|
+
429: {
|
|
81915
|
+
headers: {
|
|
81916
|
+
[name: string]: unknown;
|
|
81917
|
+
};
|
|
81918
|
+
content: {
|
|
81919
|
+
"application/json": components["schemas"]["Error"];
|
|
81920
|
+
};
|
|
81921
|
+
};
|
|
81922
|
+
};
|
|
81923
|
+
};
|
|
81924
|
+
delete?: never;
|
|
81925
|
+
options?: never;
|
|
81926
|
+
head?: never;
|
|
81927
|
+
patch?: never;
|
|
81928
|
+
trace?: never;
|
|
81929
|
+
};
|
|
81680
81930
|
"/appointments/config": {
|
|
81681
81931
|
parameters: {
|
|
81682
81932
|
query?: never;
|
|
@@ -159845,6 +160095,257 @@ interface paths {
|
|
|
159845
160095
|
patch?: never;
|
|
159846
160096
|
trace?: never;
|
|
159847
160097
|
};
|
|
160098
|
+
"/messaging-accounts/email/discover": {
|
|
160099
|
+
parameters: {
|
|
160100
|
+
query?: never;
|
|
160101
|
+
header?: never;
|
|
160102
|
+
path?: never;
|
|
160103
|
+
cookie?: never;
|
|
160104
|
+
};
|
|
160105
|
+
get?: never;
|
|
160106
|
+
put?: never;
|
|
160107
|
+
/**
|
|
160108
|
+
* Detect a mailbox's IMAP/SMTP settings from its address
|
|
160109
|
+
* @description Finds the IMAP and SMTP host, port and TLS mode for an email address the way Thunderbird and Outlook do, trying in order: the MX (Google / Microsoft 365 → `oauth` hint), the domain's autoconfig, Thunderbird's ISPDB, Outlook autodiscover (what cPanel hosting answers), SRV records, and finally the usual hostnames that accept a connection. The first source with a hit wins; each candidate names its `source`. **Nothing is persisted.**
|
|
160110
|
+
*
|
|
160111
|
+
* Without `password`: the ranked `candidates`. With `password`: the candidates are also logged in to, in order (at most 4, about 15 s in all), and `verified` is the first whose IMAP AND SMTP logins passed; otherwise `attempts` carries each leg's error and `error_kind` — `auth` means the server answered and refused the password, `unreachable` / `timeout` / `tls` mean the server could not be reached. When `oauth` is set (Gmail / Microsoft 365), connect through the OAuth flow instead; no login is tried.
|
|
160112
|
+
*
|
|
160113
|
+
* Then connect with `POST /messaging-accounts/email`, sending `verified` (or the chosen candidate) with the password on both legs. Finding nothing is `200` with `candidates: []`. Rate-limited per workspace (`429`).
|
|
160114
|
+
*/
|
|
160115
|
+
post: {
|
|
160116
|
+
parameters: {
|
|
160117
|
+
query?: never;
|
|
160118
|
+
header?: {
|
|
160119
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
160120
|
+
"Idempotency-Key"?: string;
|
|
160121
|
+
};
|
|
160122
|
+
path?: never;
|
|
160123
|
+
cookie?: never;
|
|
160124
|
+
};
|
|
160125
|
+
requestBody?: {
|
|
160126
|
+
content: {
|
|
160127
|
+
/**
|
|
160128
|
+
* @example {
|
|
160129
|
+
* "email": "contacto@automotora-ejemplo.cl",
|
|
160130
|
+
* "password": "contraseña-del-buzón"
|
|
160131
|
+
* }
|
|
160132
|
+
*/
|
|
160133
|
+
"application/json": {
|
|
160134
|
+
/** Format: email */
|
|
160135
|
+
email: string;
|
|
160136
|
+
password?: string;
|
|
160137
|
+
};
|
|
160138
|
+
};
|
|
160139
|
+
};
|
|
160140
|
+
responses: {
|
|
160141
|
+
/** @description Ranked candidates and, with a password, the login results */
|
|
160142
|
+
200: {
|
|
160143
|
+
headers: {
|
|
160144
|
+
[name: string]: unknown;
|
|
160145
|
+
};
|
|
160146
|
+
content: {
|
|
160147
|
+
/**
|
|
160148
|
+
* @example {
|
|
160149
|
+
* "data": {
|
|
160150
|
+
* "domain": "automotora-ejemplo.cl",
|
|
160151
|
+
* "oauth": null,
|
|
160152
|
+
* "candidates": [
|
|
160153
|
+
* {
|
|
160154
|
+
* "source": "autodiscover",
|
|
160155
|
+
* "imap": {
|
|
160156
|
+
* "host": "mail.automotora-ejemplo.cl",
|
|
160157
|
+
* "port": 993,
|
|
160158
|
+
* "secure": true,
|
|
160159
|
+
* "user": "contacto@automotora-ejemplo.cl"
|
|
160160
|
+
* },
|
|
160161
|
+
* "smtp": {
|
|
160162
|
+
* "host": "mail.automotora-ejemplo.cl",
|
|
160163
|
+
* "port": 465,
|
|
160164
|
+
* "secure": true,
|
|
160165
|
+
* "user": "contacto@automotora-ejemplo.cl"
|
|
160166
|
+
* }
|
|
160167
|
+
* }
|
|
160168
|
+
* ],
|
|
160169
|
+
* "verified": null,
|
|
160170
|
+
* "attempts": [
|
|
160171
|
+
* {
|
|
160172
|
+
* "candidate": {
|
|
160173
|
+
* "source": "autodiscover",
|
|
160174
|
+
* "imap": {
|
|
160175
|
+
* "host": "mail.automotora-ejemplo.cl",
|
|
160176
|
+
* "port": 993,
|
|
160177
|
+
* "secure": true,
|
|
160178
|
+
* "user": "contacto@automotora-ejemplo.cl"
|
|
160179
|
+
* },
|
|
160180
|
+
* "smtp": {
|
|
160181
|
+
* "host": "mail.automotora-ejemplo.cl",
|
|
160182
|
+
* "port": 465,
|
|
160183
|
+
* "secure": true,
|
|
160184
|
+
* "user": "contacto@automotora-ejemplo.cl"
|
|
160185
|
+
* }
|
|
160186
|
+
* },
|
|
160187
|
+
* "ok": false,
|
|
160188
|
+
* "imap": {
|
|
160189
|
+
* "ok": false,
|
|
160190
|
+
* "error": "Command failed: Authentication failed.",
|
|
160191
|
+
* "error_kind": "auth"
|
|
160192
|
+
* },
|
|
160193
|
+
* "smtp": {
|
|
160194
|
+
* "ok": false,
|
|
160195
|
+
* "error": "Invalid login: 535 Incorrect authentication data",
|
|
160196
|
+
* "error_kind": "auth"
|
|
160197
|
+
* }
|
|
160198
|
+
* }
|
|
160199
|
+
* ]
|
|
160200
|
+
* }
|
|
160201
|
+
* }
|
|
160202
|
+
*/
|
|
160203
|
+
"application/json": {
|
|
160204
|
+
data: {
|
|
160205
|
+
domain: string;
|
|
160206
|
+
/** @enum {string|null} */
|
|
160207
|
+
oauth: "gmail" | "outlook" | null;
|
|
160208
|
+
candidates: {
|
|
160209
|
+
/** @enum {string} */
|
|
160210
|
+
source: "oauth_hint" | "autoconfig" | "ispdb" | "autodiscover" | "srv" | "guess";
|
|
160211
|
+
imap: {
|
|
160212
|
+
host: string;
|
|
160213
|
+
port: number;
|
|
160214
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160215
|
+
secure: boolean;
|
|
160216
|
+
/** @description Login name, placeholders already expanded */
|
|
160217
|
+
user: string;
|
|
160218
|
+
};
|
|
160219
|
+
smtp: {
|
|
160220
|
+
host: string;
|
|
160221
|
+
port: number;
|
|
160222
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160223
|
+
secure: boolean;
|
|
160224
|
+
/** @description Login name, placeholders already expanded */
|
|
160225
|
+
user: string;
|
|
160226
|
+
};
|
|
160227
|
+
}[];
|
|
160228
|
+
verified: {
|
|
160229
|
+
/** @enum {string} */
|
|
160230
|
+
source: "oauth_hint" | "autoconfig" | "ispdb" | "autodiscover" | "srv" | "guess";
|
|
160231
|
+
imap: {
|
|
160232
|
+
host: string;
|
|
160233
|
+
port: number;
|
|
160234
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160235
|
+
secure: boolean;
|
|
160236
|
+
/** @description Login name, placeholders already expanded */
|
|
160237
|
+
user: string;
|
|
160238
|
+
};
|
|
160239
|
+
smtp: {
|
|
160240
|
+
host: string;
|
|
160241
|
+
port: number;
|
|
160242
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160243
|
+
secure: boolean;
|
|
160244
|
+
/** @description Login name, placeholders already expanded */
|
|
160245
|
+
user: string;
|
|
160246
|
+
};
|
|
160247
|
+
} | null;
|
|
160248
|
+
attempts: {
|
|
160249
|
+
candidate: {
|
|
160250
|
+
/** @enum {string} */
|
|
160251
|
+
source: "oauth_hint" | "autoconfig" | "ispdb" | "autodiscover" | "srv" | "guess";
|
|
160252
|
+
imap: {
|
|
160253
|
+
host: string;
|
|
160254
|
+
port: number;
|
|
160255
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160256
|
+
secure: boolean;
|
|
160257
|
+
/** @description Login name, placeholders already expanded */
|
|
160258
|
+
user: string;
|
|
160259
|
+
};
|
|
160260
|
+
smtp: {
|
|
160261
|
+
host: string;
|
|
160262
|
+
port: number;
|
|
160263
|
+
/** @description true = implicit TLS (993/465); false = STARTTLS (143/587) */
|
|
160264
|
+
secure: boolean;
|
|
160265
|
+
/** @description Login name, placeholders already expanded */
|
|
160266
|
+
user: string;
|
|
160267
|
+
};
|
|
160268
|
+
};
|
|
160269
|
+
ok: boolean;
|
|
160270
|
+
imap: {
|
|
160271
|
+
ok: boolean;
|
|
160272
|
+
error: string | null;
|
|
160273
|
+
/** @enum {string|null} */
|
|
160274
|
+
error_kind: "auth" | "unreachable" | "tls" | "timeout" | "other" | null;
|
|
160275
|
+
};
|
|
160276
|
+
smtp: {
|
|
160277
|
+
ok: boolean;
|
|
160278
|
+
error: string | null;
|
|
160279
|
+
/** @enum {string|null} */
|
|
160280
|
+
error_kind: "auth" | "unreachable" | "tls" | "timeout" | "other" | null;
|
|
160281
|
+
};
|
|
160282
|
+
}[];
|
|
160283
|
+
};
|
|
160284
|
+
};
|
|
160285
|
+
};
|
|
160286
|
+
};
|
|
160287
|
+
/** @description Validation error */
|
|
160288
|
+
400: {
|
|
160289
|
+
headers: {
|
|
160290
|
+
[name: string]: unknown;
|
|
160291
|
+
};
|
|
160292
|
+
content: {
|
|
160293
|
+
"application/json": components["schemas"]["Error"];
|
|
160294
|
+
};
|
|
160295
|
+
};
|
|
160296
|
+
/** @description Unauthorized */
|
|
160297
|
+
401: {
|
|
160298
|
+
headers: {
|
|
160299
|
+
[name: string]: unknown;
|
|
160300
|
+
};
|
|
160301
|
+
content: {
|
|
160302
|
+
"application/json": components["schemas"]["Error"];
|
|
160303
|
+
};
|
|
160304
|
+
};
|
|
160305
|
+
/** @description Forbidden */
|
|
160306
|
+
403: {
|
|
160307
|
+
headers: {
|
|
160308
|
+
[name: string]: unknown;
|
|
160309
|
+
};
|
|
160310
|
+
content: {
|
|
160311
|
+
"application/json": components["schemas"]["Error"];
|
|
160312
|
+
};
|
|
160313
|
+
};
|
|
160314
|
+
/** @description Not found */
|
|
160315
|
+
404: {
|
|
160316
|
+
headers: {
|
|
160317
|
+
[name: string]: unknown;
|
|
160318
|
+
};
|
|
160319
|
+
content: {
|
|
160320
|
+
"application/json": components["schemas"]["Error"];
|
|
160321
|
+
};
|
|
160322
|
+
};
|
|
160323
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
160324
|
+
409: {
|
|
160325
|
+
headers: {
|
|
160326
|
+
[name: string]: unknown;
|
|
160327
|
+
};
|
|
160328
|
+
content: {
|
|
160329
|
+
"application/json": components["schemas"]["Error"];
|
|
160330
|
+
};
|
|
160331
|
+
};
|
|
160332
|
+
/** @description Rate limited */
|
|
160333
|
+
429: {
|
|
160334
|
+
headers: {
|
|
160335
|
+
[name: string]: unknown;
|
|
160336
|
+
};
|
|
160337
|
+
content: {
|
|
160338
|
+
"application/json": components["schemas"]["Error"];
|
|
160339
|
+
};
|
|
160340
|
+
};
|
|
160341
|
+
};
|
|
160342
|
+
};
|
|
160343
|
+
delete?: never;
|
|
160344
|
+
options?: never;
|
|
160345
|
+
head?: never;
|
|
160346
|
+
patch?: never;
|
|
160347
|
+
trace?: never;
|
|
160348
|
+
};
|
|
159848
160349
|
"/products": {
|
|
159849
160350
|
parameters: {
|
|
159850
160351
|
query?: never;
|
|
@@ -190913,6 +191414,12 @@ interface components {
|
|
|
190913
191414
|
/** @enum {string} */
|
|
190914
191415
|
source: "native" | "shopify" | "woocommerce";
|
|
190915
191416
|
external_id: string | null;
|
|
191417
|
+
/** @description A store order: the number the store shows (it can differ from `external_id`). Null for a native order. */
|
|
191418
|
+
external_number: string | null;
|
|
191419
|
+
/** @description A store order: the store's own payment page, where the buyer pays with the store's gateways. Null for a native order. */
|
|
191420
|
+
store_payment_url: string | null;
|
|
191421
|
+
/** @description A store order: the store's modification time as of the last applied store event. */
|
|
191422
|
+
external_updated_at: string | null;
|
|
190916
191423
|
/** @enum {string} */
|
|
190917
191424
|
status: "draft" | "pending_payment" | "paid" | "preparing" | "shipped" | "delivered" | "cancelled";
|
|
190918
191425
|
/** Format: uuid */
|
package/package.json
CHANGED