@lumavox/server 0.32.0 → 0.37.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/README.md +1 -1
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/types.gen.d.ts +1013 -70
- package/dist/index.d.ts +1 -1
- package/dist/resources/agents.d.ts +9 -2
- package/dist/resources/agents.js +9 -1
- package/dist/resources/end-users.d.ts +41 -1
- package/dist/resources/end-users.js +13 -0
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -1837,10 +1837,66 @@ export type AgentPage = {
|
|
|
1837
1837
|
next_cursor: string | null;
|
|
1838
1838
|
};
|
|
1839
1839
|
export type AgentSummary = {
|
|
1840
|
+
/**
|
|
1841
|
+
* Whether a report is written after each conversation with this agent, for your server: a summary, the fields you list in `report_fields`, success by `report_success`, and its numbers. **Off by default**: each report is a model call, charged to the conversation's key while it has credit and to your balance after.
|
|
1842
|
+
*
|
|
1843
|
+
* A conversation is over when the app sends `end` on the socket, or after five minutes with no turn; a person who comes back later gets a new report of only the new part. Read reports with `GET /v1/end-users/{end_user_id}/reports`.
|
|
1844
|
+
*/
|
|
1845
|
+
report_enabled: boolean;
|
|
1846
|
+
/**
|
|
1847
|
+
* What a conversation's report fills, besides its summary, at most 20: each read from the conversation by the model, `null` when the conversation did not say. Old Bram the shopkeeper's might be `quest_started` (yes or no) and `item` (text). `[]` for none.
|
|
1848
|
+
*/
|
|
1849
|
+
report_fields: Array<AgentReportFieldInfo>;
|
|
1850
|
+
/**
|
|
1851
|
+
* What counts as a success, in plain words the model judges each conversation by: `success = the problem was solved`. A report's `success` is `true` or `false` by it; unset, `null`. At most 1000 characters.
|
|
1852
|
+
*/
|
|
1853
|
+
report_success: string | null;
|
|
1854
|
+
/**
|
|
1855
|
+
* Anything else the report should follow, added to the platform's request: `Write the summary in English.` At most 2000 characters.
|
|
1856
|
+
*/
|
|
1857
|
+
report_instruction: string | null;
|
|
1858
|
+
/**
|
|
1859
|
+
* Model for writing a conversation's report. Unset uses the agent's own.
|
|
1860
|
+
*/
|
|
1861
|
+
report_model: string | null;
|
|
1862
|
+
/**
|
|
1863
|
+
* Thinking level for the report. Unset sends none, so the model's own default applies.
|
|
1864
|
+
*/
|
|
1865
|
+
report_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
1866
|
+
/**
|
|
1867
|
+
* Length cap on a report's answer, in tokens — the model's thinking included. Unset sends none.
|
|
1868
|
+
*/
|
|
1869
|
+
report_max_output_tokens: number | null;
|
|
1870
|
+
/**
|
|
1871
|
+
* Whether a report carries the messages it read, as `transcript` — in the webhook and on the API. Off by default: a report says what happened; the transcript is the conversation again, up to 200,000 characters.
|
|
1872
|
+
*/
|
|
1873
|
+
report_transcript: boolean;
|
|
1874
|
+
/**
|
|
1875
|
+
* Where this agent's events go — a conversation's report, signed with your organisation's webhook secret: an `https://` address of yours. Unset uses your organisation's `webhook_url` (`/v1/agents/settings`). Refused (422) until your organisation has a secret: `POST /v1/agents/settings/webhook-secret`.
|
|
1876
|
+
*/
|
|
1877
|
+
webhook_url: string | null;
|
|
1840
1878
|
/**
|
|
1841
1879
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. `[]` for none. A target deleted since is gone from the list.
|
|
1842
1880
|
*/
|
|
1843
1881
|
handoffs: Array<AgentHandoffInfo>;
|
|
1882
|
+
/**
|
|
1883
|
+
* Whether this agent may write to a person first, while they are away — a message your server schedules with `POST /v1/end-users/{end_user_id}/scheduled-messages`, or one the agent schedules itself when the person asks (`outreach_tool`). **Off by default.**
|
|
1884
|
+
*
|
|
1885
|
+
* A message is one model call, paid from your organisation's balance: the person has no live key while away. It is kept in their conversation with the agent, so it is there when they come back, and your server is sent it to show as a notification.
|
|
1886
|
+
*/
|
|
1887
|
+
outreach_enabled: boolean;
|
|
1888
|
+
/**
|
|
1889
|
+
* No message of the agent's own between these times, in the person's time zone: one due then waits for the end — a 23:00 message is written at 08:00. `null` for none.
|
|
1890
|
+
*/
|
|
1891
|
+
outreach_quiet_hours: AgentQuietHours | null;
|
|
1892
|
+
/**
|
|
1893
|
+
* The time zone the agent reads quiet hours in for a person with none of their own — your main market. A person's own is the one your server sets (`time_zone` on `PATCH /v1/end-users/{end_user_id}/personalization`), else the one their app reported. `null` is UTC.
|
|
1894
|
+
*/
|
|
1895
|
+
outreach_time_zone: string | null;
|
|
1896
|
+
/**
|
|
1897
|
+
* Whether the agent may schedule a message itself when the person asks ("remind me at 6") — the platform's tool `schedule_message`, offered only with `outreach_enabled` on. **On by default**: turn it off for your server alone to write.
|
|
1898
|
+
*/
|
|
1899
|
+
outreach_tool: boolean;
|
|
1844
1900
|
/**
|
|
1845
1901
|
* Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
|
|
1846
1902
|
*
|
|
@@ -2091,6 +2147,24 @@ export type AgentSummary = {
|
|
|
2091
2147
|
*/
|
|
2092
2148
|
last_used_at: string | null;
|
|
2093
2149
|
};
|
|
2150
|
+
export type AgentReportFieldInfo = {
|
|
2151
|
+
/**
|
|
2152
|
+
* The field's name in the report: lowercase letters, digits and `_`, starting with a letter, at most 40 characters, each name once.
|
|
2153
|
+
*/
|
|
2154
|
+
name: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* `text`, `number`, `boolean` (yes or no), or `choice`, one of `choices`.
|
|
2157
|
+
*/
|
|
2158
|
+
type: 'text' | 'number' | 'boolean' | 'choice';
|
|
2159
|
+
/**
|
|
2160
|
+
* What it means, in a line the model reads to fill it: `Whether the player agreed to start a quest.` 1 to 500 characters.
|
|
2161
|
+
*/
|
|
2162
|
+
description: string;
|
|
2163
|
+
/**
|
|
2164
|
+
* A `choice`'s values, in order; `null` for any other type.
|
|
2165
|
+
*/
|
|
2166
|
+
choices: Array<string> | null;
|
|
2167
|
+
};
|
|
2094
2168
|
export type AgentHandoffInfo = {
|
|
2095
2169
|
agent_id: string;
|
|
2096
2170
|
/**
|
|
@@ -2099,6 +2173,16 @@ export type AgentHandoffInfo = {
|
|
|
2099
2173
|
name: string;
|
|
2100
2174
|
when: string;
|
|
2101
2175
|
};
|
|
2176
|
+
export type AgentQuietHours = {
|
|
2177
|
+
/**
|
|
2178
|
+
* When the quiet starts, `HH:MM` on a 24-hour clock, the person's time.
|
|
2179
|
+
*/
|
|
2180
|
+
start: string;
|
|
2181
|
+
/**
|
|
2182
|
+
* When it ends, `HH:MM`. Earlier than `start` crosses midnight: 22:00 to 08:00 is the night.
|
|
2183
|
+
*/
|
|
2184
|
+
end: string;
|
|
2185
|
+
};
|
|
2102
2186
|
export type AgentSttInfo = {
|
|
2103
2187
|
/**
|
|
2104
2188
|
* ISO-639-1 or -639-3 code the agent's spoken turns are transcribed in. Omit it and the language is detected per turn. A `language` on `user_audio.start` overrides it.
|
|
@@ -2146,10 +2230,66 @@ export type AgentVoiceInfo = {
|
|
|
2146
2230
|
voice_id: string | null;
|
|
2147
2231
|
};
|
|
2148
2232
|
export type AgentInfo = {
|
|
2233
|
+
/**
|
|
2234
|
+
* Whether a report is written after each conversation with this agent, for your server: a summary, the fields you list in `report_fields`, success by `report_success`, and its numbers. **Off by default**: each report is a model call, charged to the conversation's key while it has credit and to your balance after.
|
|
2235
|
+
*
|
|
2236
|
+
* A conversation is over when the app sends `end` on the socket, or after five minutes with no turn; a person who comes back later gets a new report of only the new part. Read reports with `GET /v1/end-users/{end_user_id}/reports`.
|
|
2237
|
+
*/
|
|
2238
|
+
report_enabled: boolean;
|
|
2239
|
+
/**
|
|
2240
|
+
* What a conversation's report fills, besides its summary, at most 20: each read from the conversation by the model, `null` when the conversation did not say. Old Bram the shopkeeper's might be `quest_started` (yes or no) and `item` (text). `[]` for none.
|
|
2241
|
+
*/
|
|
2242
|
+
report_fields: Array<AgentReportFieldInfo>;
|
|
2243
|
+
/**
|
|
2244
|
+
* What counts as a success, in plain words the model judges each conversation by: `success = the problem was solved`. A report's `success` is `true` or `false` by it; unset, `null`. At most 1000 characters.
|
|
2245
|
+
*/
|
|
2246
|
+
report_success: string | null;
|
|
2247
|
+
/**
|
|
2248
|
+
* Anything else the report should follow, added to the platform's request: `Write the summary in English.` At most 2000 characters.
|
|
2249
|
+
*/
|
|
2250
|
+
report_instruction: string | null;
|
|
2251
|
+
/**
|
|
2252
|
+
* Model for writing a conversation's report. Unset uses the agent's own.
|
|
2253
|
+
*/
|
|
2254
|
+
report_model: string | null;
|
|
2255
|
+
/**
|
|
2256
|
+
* Thinking level for the report. Unset sends none, so the model's own default applies.
|
|
2257
|
+
*/
|
|
2258
|
+
report_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
2259
|
+
/**
|
|
2260
|
+
* Length cap on a report's answer, in tokens — the model's thinking included. Unset sends none.
|
|
2261
|
+
*/
|
|
2262
|
+
report_max_output_tokens: number | null;
|
|
2263
|
+
/**
|
|
2264
|
+
* Whether a report carries the messages it read, as `transcript` — in the webhook and on the API. Off by default: a report says what happened; the transcript is the conversation again, up to 200,000 characters.
|
|
2265
|
+
*/
|
|
2266
|
+
report_transcript: boolean;
|
|
2267
|
+
/**
|
|
2268
|
+
* Where this agent's events go — a conversation's report, signed with your organisation's webhook secret: an `https://` address of yours. Unset uses your organisation's `webhook_url` (`/v1/agents/settings`). Refused (422) until your organisation has a secret: `POST /v1/agents/settings/webhook-secret`.
|
|
2269
|
+
*/
|
|
2270
|
+
webhook_url: string | null;
|
|
2149
2271
|
/**
|
|
2150
2272
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. `[]` for none. A target deleted since is gone from the list.
|
|
2151
2273
|
*/
|
|
2152
2274
|
handoffs: Array<AgentHandoffInfo>;
|
|
2275
|
+
/**
|
|
2276
|
+
* Whether this agent may write to a person first, while they are away — a message your server schedules with `POST /v1/end-users/{end_user_id}/scheduled-messages`, or one the agent schedules itself when the person asks (`outreach_tool`). **Off by default.**
|
|
2277
|
+
*
|
|
2278
|
+
* A message is one model call, paid from your organisation's balance: the person has no live key while away. It is kept in their conversation with the agent, so it is there when they come back, and your server is sent it to show as a notification.
|
|
2279
|
+
*/
|
|
2280
|
+
outreach_enabled: boolean;
|
|
2281
|
+
/**
|
|
2282
|
+
* No message of the agent's own between these times, in the person's time zone: one due then waits for the end — a 23:00 message is written at 08:00. `null` for none.
|
|
2283
|
+
*/
|
|
2284
|
+
outreach_quiet_hours: AgentQuietHours | null;
|
|
2285
|
+
/**
|
|
2286
|
+
* The time zone the agent reads quiet hours in for a person with none of their own — your main market. A person's own is the one your server sets (`time_zone` on `PATCH /v1/end-users/{end_user_id}/personalization`), else the one their app reported. `null` is UTC.
|
|
2287
|
+
*/
|
|
2288
|
+
outreach_time_zone: string | null;
|
|
2289
|
+
/**
|
|
2290
|
+
* Whether the agent may schedule a message itself when the person asks ("remind me at 6") — the platform's tool `schedule_message`, offered only with `outreach_enabled` on. **On by default**: turn it off for your server alone to write.
|
|
2291
|
+
*/
|
|
2292
|
+
outreach_tool: boolean;
|
|
2153
2293
|
/**
|
|
2154
2294
|
* Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
|
|
2155
2295
|
*
|
|
@@ -2389,10 +2529,66 @@ export type AgentInfo = {
|
|
|
2389
2529
|
version: number;
|
|
2390
2530
|
};
|
|
2391
2531
|
export type AgentCreateRequest = {
|
|
2532
|
+
/**
|
|
2533
|
+
* Whether a report is written after each conversation with this agent, for your server: a summary, the fields you list in `report_fields`, success by `report_success`, and its numbers. **Off by default**: each report is a model call, charged to the conversation's key while it has credit and to your balance after.
|
|
2534
|
+
*
|
|
2535
|
+
* A conversation is over when the app sends `end` on the socket, or after five minutes with no turn; a person who comes back later gets a new report of only the new part. Read reports with `GET /v1/end-users/{end_user_id}/reports`.
|
|
2536
|
+
*/
|
|
2537
|
+
report_enabled?: boolean | null;
|
|
2538
|
+
/**
|
|
2539
|
+
* What a conversation's report fills, besides its summary, at most 20: each read from the conversation by the model, `null` when the conversation did not say. Old Bram the shopkeeper's might be `quest_started` (yes or no) and `item` (text). The complete list, in order: `null` or `[]` clears it.
|
|
2540
|
+
*/
|
|
2541
|
+
report_fields?: Array<AgentReportField> | null;
|
|
2542
|
+
/**
|
|
2543
|
+
* What counts as a success, in plain words the model judges each conversation by: `success = the problem was solved`. A report's `success` is `true` or `false` by it; unset, `null`. At most 1000 characters.
|
|
2544
|
+
*/
|
|
2545
|
+
report_success?: string | null;
|
|
2546
|
+
/**
|
|
2547
|
+
* Anything else the report should follow, added to the platform's request: `Write the summary in English.` At most 2000 characters.
|
|
2548
|
+
*/
|
|
2549
|
+
report_instruction?: string | null;
|
|
2550
|
+
/**
|
|
2551
|
+
* Model for writing a conversation's report. Unset uses the agent's own.
|
|
2552
|
+
*/
|
|
2553
|
+
report_model?: string | null;
|
|
2554
|
+
/**
|
|
2555
|
+
* Thinking level for the report. Unset sends none, so the model's own default applies.
|
|
2556
|
+
*/
|
|
2557
|
+
report_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
2558
|
+
/**
|
|
2559
|
+
* Length cap on a report's answer, in tokens — the model's thinking included. Unset sends none.
|
|
2560
|
+
*/
|
|
2561
|
+
report_max_output_tokens?: number | null;
|
|
2562
|
+
/**
|
|
2563
|
+
* Whether a report carries the messages it read, as `transcript` — in the webhook and on the API. Off by default: a report says what happened; the transcript is the conversation again, up to 200,000 characters.
|
|
2564
|
+
*/
|
|
2565
|
+
report_transcript?: boolean | null;
|
|
2566
|
+
/**
|
|
2567
|
+
* Where this agent's events go — a conversation's report, signed with your organisation's webhook secret: an `https://` address of yours. Unset uses your organisation's `webhook_url` (`/v1/agents/settings`). Refused (422) until your organisation has a secret: `POST /v1/agents/settings/webhook-secret`.
|
|
2568
|
+
*/
|
|
2569
|
+
webhook_url?: string | null;
|
|
2392
2570
|
/**
|
|
2393
2571
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
|
|
2394
2572
|
*/
|
|
2395
2573
|
handoffs?: Array<AgentHandoff> | null;
|
|
2574
|
+
/**
|
|
2575
|
+
* Whether this agent may write to a person first, while they are away — a message your server schedules with `POST /v1/end-users/{end_user_id}/scheduled-messages`, or one the agent schedules itself when the person asks (`outreach_tool`). **Off by default.**
|
|
2576
|
+
*
|
|
2577
|
+
* A message is one model call, paid from your organisation's balance: the person has no live key while away. It is kept in their conversation with the agent, so it is there when they come back, and your server is sent it to show as a notification.
|
|
2578
|
+
*/
|
|
2579
|
+
outreach_enabled?: boolean | null;
|
|
2580
|
+
/**
|
|
2581
|
+
* No message of the agent's own between these times, in the person's time zone: one due then waits for the end — a 23:00 message is written at 08:00. `null` for none.
|
|
2582
|
+
*/
|
|
2583
|
+
outreach_quiet_hours?: AgentQuietHours | null;
|
|
2584
|
+
/**
|
|
2585
|
+
* The time zone the agent reads quiet hours in for a person with none of their own — your main market. A person's own is the one your server sets (`time_zone` on `PATCH /v1/end-users/{end_user_id}/personalization`), else the one their app reported. `null` is UTC.
|
|
2586
|
+
*/
|
|
2587
|
+
outreach_time_zone?: string | null;
|
|
2588
|
+
/**
|
|
2589
|
+
* Whether the agent may schedule a message itself when the person asks ("remind me at 6") — the platform's tool `schedule_message`, offered only with `outreach_enabled` on. **On by default**: turn it off for your server alone to write.
|
|
2590
|
+
*/
|
|
2591
|
+
outreach_tool?: boolean | null;
|
|
2396
2592
|
/**
|
|
2397
2593
|
* Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
|
|
2398
2594
|
*
|
|
@@ -2624,6 +2820,24 @@ export type AgentCreateRequest = {
|
|
|
2624
2820
|
*/
|
|
2625
2821
|
voice_enabled?: boolean | null;
|
|
2626
2822
|
};
|
|
2823
|
+
export type AgentReportField = {
|
|
2824
|
+
/**
|
|
2825
|
+
* The field's name in the report: lowercase letters, digits and `_`, starting with a letter, at most 40 characters, each name once.
|
|
2826
|
+
*/
|
|
2827
|
+
name: string;
|
|
2828
|
+
/**
|
|
2829
|
+
* `text`, `number`, `boolean` (yes or no), or `choice`, one of `choices`.
|
|
2830
|
+
*/
|
|
2831
|
+
type: 'text' | 'number' | 'boolean' | 'choice';
|
|
2832
|
+
/**
|
|
2833
|
+
* What it means, in a line the model reads to fill it: `Whether the player agreed to start a quest.` 1 to 500 characters.
|
|
2834
|
+
*/
|
|
2835
|
+
description: string;
|
|
2836
|
+
/**
|
|
2837
|
+
* A `choice`'s values, 2 to 20, each 1 to 100 characters and listed once; the report's value is one of them, or `null`. Only for a `choice`.
|
|
2838
|
+
*/
|
|
2839
|
+
choices?: Array<string> | null;
|
|
2840
|
+
};
|
|
2627
2841
|
export type AgentHandoff = {
|
|
2628
2842
|
/**
|
|
2629
2843
|
* Another agent of yours: never this one, nor one already listed.
|
|
@@ -2711,6 +2925,10 @@ export type AgentSettingsInfo = {
|
|
|
2711
2925
|
* Organisation-wide: every agent here uses it. It is read when a socket connects, so a change reaches the next connection rather than the ones already open.
|
|
2712
2926
|
*/
|
|
2713
2927
|
resume_greeting_after_minutes: number | null;
|
|
2928
|
+
/**
|
|
2929
|
+
* Where every agent's events go — a conversation's report — unless the agent sets its own `webhook_url`: an `https://` address of yours, each post signed with your organisation's webhook secret. Refused (422) until there is one: `POST /v1/agents/settings/webhook-secret`.
|
|
2930
|
+
*/
|
|
2931
|
+
webhook_url: string | null;
|
|
2714
2932
|
/**
|
|
2715
2933
|
* How old this person's last conversation may be and still be **continued** rather than replaced, in days.
|
|
2716
2934
|
*
|
|
@@ -2735,6 +2953,10 @@ export type AgentSettingsInfo = {
|
|
|
2735
2953
|
* The platform's relationship instruction, served as it stands so the console never shows a stale copy of it.
|
|
2736
2954
|
*/
|
|
2737
2955
|
built_in_relation_instruction: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* Your organisation's webhook secret's last four characters, to tell which one your server holds; `null` until one is made. The secret itself is shown once, when it is made.
|
|
2958
|
+
*/
|
|
2959
|
+
webhook_secret_hint: string | null;
|
|
2738
2960
|
/**
|
|
2739
2961
|
* Every mood label the gateway accepts. A reply reporting anything else is stored with no mood rather than with a made-up one, so an overridden instruction should name these.
|
|
2740
2962
|
*/
|
|
@@ -2771,6 +2993,10 @@ export type AgentSettingsUpdate = {
|
|
|
2771
2993
|
* Organisation-wide: every agent here uses it. It is read when a socket connects, so a change reaches the next connection rather than the ones already open.
|
|
2772
2994
|
*/
|
|
2773
2995
|
resume_greeting_after_minutes?: number | null;
|
|
2996
|
+
/**
|
|
2997
|
+
* Where every agent's events go — a conversation's report — unless the agent sets its own `webhook_url`: an `https://` address of yours, each post signed with your organisation's webhook secret. Refused (422) until there is one: `POST /v1/agents/settings/webhook-secret`.
|
|
2998
|
+
*/
|
|
2999
|
+
webhook_url?: string | null;
|
|
2774
3000
|
/**
|
|
2775
3001
|
* How old this person's last conversation may be and still be **continued** rather than replaced, in days.
|
|
2776
3002
|
*
|
|
@@ -2780,11 +3006,77 @@ export type AgentSettingsUpdate = {
|
|
|
2780
3006
|
*/
|
|
2781
3007
|
resume_max_age_days?: number | null;
|
|
2782
3008
|
};
|
|
3009
|
+
export type WebhookSecret = {
|
|
3010
|
+
/**
|
|
3011
|
+
* The secret your server checks each post's `X-Webhook-Signature` with. **Shown this once**: store it now. The one before it stops signing at once.
|
|
3012
|
+
*/
|
|
3013
|
+
secret: string;
|
|
3014
|
+
/**
|
|
3015
|
+
* Its last four characters.
|
|
3016
|
+
*/
|
|
3017
|
+
secret_hint: string;
|
|
3018
|
+
};
|
|
2783
3019
|
export type AgentUpdate = {
|
|
3020
|
+
/**
|
|
3021
|
+
* Whether a report is written after each conversation with this agent, for your server: a summary, the fields you list in `report_fields`, success by `report_success`, and its numbers. **Off by default**: each report is a model call, charged to the conversation's key while it has credit and to your balance after.
|
|
3022
|
+
*
|
|
3023
|
+
* A conversation is over when the app sends `end` on the socket, or after five minutes with no turn; a person who comes back later gets a new report of only the new part. Read reports with `GET /v1/end-users/{end_user_id}/reports`.
|
|
3024
|
+
*/
|
|
3025
|
+
report_enabled?: boolean | null;
|
|
3026
|
+
/**
|
|
3027
|
+
* What a conversation's report fills, besides its summary, at most 20: each read from the conversation by the model, `null` when the conversation did not say. Old Bram the shopkeeper's might be `quest_started` (yes or no) and `item` (text). The complete list, in order: `null` or `[]` clears it.
|
|
3028
|
+
*/
|
|
3029
|
+
report_fields?: Array<AgentReportField> | null;
|
|
3030
|
+
/**
|
|
3031
|
+
* What counts as a success, in plain words the model judges each conversation by: `success = the problem was solved`. A report's `success` is `true` or `false` by it; unset, `null`. At most 1000 characters.
|
|
3032
|
+
*/
|
|
3033
|
+
report_success?: string | null;
|
|
3034
|
+
/**
|
|
3035
|
+
* Anything else the report should follow, added to the platform's request: `Write the summary in English.` At most 2000 characters.
|
|
3036
|
+
*/
|
|
3037
|
+
report_instruction?: string | null;
|
|
3038
|
+
/**
|
|
3039
|
+
* Model for writing a conversation's report. Unset uses the agent's own.
|
|
3040
|
+
*/
|
|
3041
|
+
report_model?: string | null;
|
|
3042
|
+
/**
|
|
3043
|
+
* Thinking level for the report. Unset sends none, so the model's own default applies.
|
|
3044
|
+
*/
|
|
3045
|
+
report_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
3046
|
+
/**
|
|
3047
|
+
* Length cap on a report's answer, in tokens — the model's thinking included. Unset sends none.
|
|
3048
|
+
*/
|
|
3049
|
+
report_max_output_tokens?: number | null;
|
|
3050
|
+
/**
|
|
3051
|
+
* Whether a report carries the messages it read, as `transcript` — in the webhook and on the API. Off by default: a report says what happened; the transcript is the conversation again, up to 200,000 characters.
|
|
3052
|
+
*/
|
|
3053
|
+
report_transcript?: boolean | null;
|
|
3054
|
+
/**
|
|
3055
|
+
* Where this agent's events go — a conversation's report, signed with your organisation's webhook secret: an `https://` address of yours. Unset uses your organisation's `webhook_url` (`/v1/agents/settings`). Refused (422) until your organisation has a secret: `POST /v1/agents/settings/webhook-secret`.
|
|
3056
|
+
*/
|
|
3057
|
+
webhook_url?: string | null;
|
|
2784
3058
|
/**
|
|
2785
3059
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
|
|
2786
3060
|
*/
|
|
2787
3061
|
handoffs?: Array<AgentHandoff> | null;
|
|
3062
|
+
/**
|
|
3063
|
+
* Whether this agent may write to a person first, while they are away — a message your server schedules with `POST /v1/end-users/{end_user_id}/scheduled-messages`, or one the agent schedules itself when the person asks (`outreach_tool`). **Off by default.**
|
|
3064
|
+
*
|
|
3065
|
+
* A message is one model call, paid from your organisation's balance: the person has no live key while away. It is kept in their conversation with the agent, so it is there when they come back, and your server is sent it to show as a notification.
|
|
3066
|
+
*/
|
|
3067
|
+
outreach_enabled?: boolean | null;
|
|
3068
|
+
/**
|
|
3069
|
+
* No message of the agent's own between these times, in the person's time zone: one due then waits for the end — a 23:00 message is written at 08:00. `null` for none.
|
|
3070
|
+
*/
|
|
3071
|
+
outreach_quiet_hours?: AgentQuietHours | null;
|
|
3072
|
+
/**
|
|
3073
|
+
* The time zone the agent reads quiet hours in for a person with none of their own — your main market. A person's own is the one your server sets (`time_zone` on `PATCH /v1/end-users/{end_user_id}/personalization`), else the one their app reported. `null` is UTC.
|
|
3074
|
+
*/
|
|
3075
|
+
outreach_time_zone?: string | null;
|
|
3076
|
+
/**
|
|
3077
|
+
* Whether the agent may schedule a message itself when the person asks ("remind me at 6") — the platform's tool `schedule_message`, offered only with `outreach_enabled` on. **On by default**: turn it off for your server alone to write.
|
|
3078
|
+
*/
|
|
3079
|
+
outreach_tool?: boolean | null;
|
|
2788
3080
|
/**
|
|
2789
3081
|
* Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
|
|
2790
3082
|
*
|
|
@@ -3020,6 +3312,28 @@ export type AgentUpdate = {
|
|
|
3020
3312
|
*/
|
|
3021
3313
|
expected_version?: number | null;
|
|
3022
3314
|
};
|
|
3315
|
+
export type WebhookTestResult = {
|
|
3316
|
+
/**
|
|
3317
|
+
* Your server answered a 2xx.
|
|
3318
|
+
*/
|
|
3319
|
+
ok: boolean;
|
|
3320
|
+
/**
|
|
3321
|
+
* Its HTTP status; `null` when none came.
|
|
3322
|
+
*/
|
|
3323
|
+
status: number | null;
|
|
3324
|
+
/**
|
|
3325
|
+
* From sending to its answer.
|
|
3326
|
+
*/
|
|
3327
|
+
duration_ms: number;
|
|
3328
|
+
/**
|
|
3329
|
+
* The first 2 KB of what it said, as text.
|
|
3330
|
+
*/
|
|
3331
|
+
answer: string;
|
|
3332
|
+
/**
|
|
3333
|
+
* Why it is not taken, or `null`.
|
|
3334
|
+
*/
|
|
3335
|
+
error: string | null;
|
|
3336
|
+
};
|
|
3023
3337
|
export type EndUserInfo = {
|
|
3024
3338
|
created_at: string;
|
|
3025
3339
|
/**
|
|
@@ -3154,6 +3468,16 @@ export type EndUserPersonalization = {
|
|
|
3154
3468
|
* When they were last set or cleared. Null: never.
|
|
3155
3469
|
*/
|
|
3156
3470
|
updated_at: string | null;
|
|
3471
|
+
/**
|
|
3472
|
+
* The person's IANA time zone (`Europe/Paris`): an agent's quiet hours and the day its own messages count against are read in it (docs: *Reaching out first*). Yours wins; without one, the time zone their app reported when they last connected — the client SDK sends the device's by itself.
|
|
3473
|
+
*
|
|
3474
|
+
* Null for none known.
|
|
3475
|
+
*/
|
|
3476
|
+
time_zone: string | null;
|
|
3477
|
+
/**
|
|
3478
|
+
* Who set `time_zone`: `server`, your server, which the app never overrides; `app`, the device's own, reported when the person connects. Null for none.
|
|
3479
|
+
*/
|
|
3480
|
+
time_zone_source: 'server' | 'app' | null;
|
|
3157
3481
|
};
|
|
3158
3482
|
export type EndUserPersonalizationUpdate = {
|
|
3159
3483
|
/**
|
|
@@ -3167,121 +3491,367 @@ export type EndUserPersonalizationUpdate = {
|
|
|
3167
3491
|
*/
|
|
3168
3492
|
instructions?: string | null;
|
|
3169
3493
|
variables?: Variables | null;
|
|
3494
|
+
/**
|
|
3495
|
+
* The person's IANA time zone (`Europe/Paris`): an agent's quiet hours and the day its own messages count against are read in it (docs: *Reaching out first*). Yours wins; without one, the time zone their app reported when they last connected — the client SDK sends the device's by itself.
|
|
3496
|
+
*
|
|
3497
|
+
* Absent, it is left as it is; `null` clears yours, and the app's may fill it again.
|
|
3498
|
+
*/
|
|
3499
|
+
time_zone?: string | null;
|
|
3170
3500
|
};
|
|
3171
|
-
export type
|
|
3172
|
-
data: Array<
|
|
3501
|
+
export type ConversationReportPage = {
|
|
3502
|
+
data: Array<ConversationReport>;
|
|
3173
3503
|
/**
|
|
3174
3504
|
* Pass as `cursor` for the next page; `null` when this is the last.
|
|
3175
3505
|
*/
|
|
3176
3506
|
next_cursor: string | null;
|
|
3177
3507
|
};
|
|
3178
|
-
export type
|
|
3179
|
-
days: number;
|
|
3180
|
-
entries: Array<KnowledgeEntryUsage>;
|
|
3508
|
+
export type ConversationReport = {
|
|
3181
3509
|
/**
|
|
3182
|
-
* The
|
|
3510
|
+
* The report's id.
|
|
3183
3511
|
*/
|
|
3184
|
-
|
|
3185
|
-
};
|
|
3186
|
-
export type KnowledgeEntryUsage = {
|
|
3187
|
-
entry_id: string;
|
|
3512
|
+
id: string;
|
|
3188
3513
|
/**
|
|
3189
|
-
*
|
|
3514
|
+
* The person's `eu_...` id.
|
|
3190
3515
|
*/
|
|
3191
|
-
|
|
3192
|
-
};
|
|
3193
|
-
export type UnansweredQuestion = {
|
|
3194
|
-
agent_id: string;
|
|
3195
|
-
agent_name: string;
|
|
3516
|
+
end_user_id: string;
|
|
3196
3517
|
/**
|
|
3197
|
-
*
|
|
3518
|
+
* The conversation it reports on.
|
|
3198
3519
|
*/
|
|
3199
|
-
|
|
3200
|
-
asked_at: string;
|
|
3520
|
+
session_id: string;
|
|
3201
3521
|
/**
|
|
3202
|
-
*
|
|
3522
|
+
* The agent that had the conversation when the report was written: its `report_fields` and `report_success` are what it answers.
|
|
3203
3523
|
*/
|
|
3204
|
-
|
|
3524
|
+
agent_id: string;
|
|
3205
3525
|
/**
|
|
3206
|
-
*
|
|
3526
|
+
* Every agent that spoke in the part reported, in order of first word: more than one when an agent handed the conversation on.
|
|
3207
3527
|
*/
|
|
3208
|
-
|
|
3209
|
-
session_id: string;
|
|
3528
|
+
agent_ids: Array<string>;
|
|
3210
3529
|
/**
|
|
3211
|
-
*
|
|
3530
|
+
* What made it due: `ended`, the app sent `end`; `quiet`, five minutes with no turn; `max_wait`, a conversation that never went quiet, reported after the platform's `agents.memory.max_wait_hours`.
|
|
3212
3531
|
*/
|
|
3213
|
-
|
|
3214
|
-
};
|
|
3215
|
-
export type KnowledgeSearchResult = {
|
|
3532
|
+
trigger: 'ended' | 'quiet' | 'max_wait';
|
|
3216
3533
|
/**
|
|
3217
|
-
*
|
|
3534
|
+
* What happened, in one to three plain sentences.
|
|
3218
3535
|
*/
|
|
3219
|
-
|
|
3220
|
-
hits: Array<KnowledgeSearchHit>;
|
|
3536
|
+
summary: string;
|
|
3221
3537
|
/**
|
|
3222
|
-
*
|
|
3538
|
+
* Whether the conversation met the agent's `report_success` rule; `null` when the agent has none.
|
|
3223
3539
|
*/
|
|
3224
|
-
|
|
3540
|
+
success: boolean | null;
|
|
3225
3541
|
/**
|
|
3226
|
-
*
|
|
3542
|
+
* Each of the agent's `report_fields` by name, in its order: text, a number, `true` or `false`, or one of a choice's values — `null` when the conversation did not say.
|
|
3227
3543
|
*/
|
|
3228
|
-
|
|
3544
|
+
fields: {
|
|
3545
|
+
[key: string]: string | number | boolean | null;
|
|
3546
|
+
};
|
|
3229
3547
|
/**
|
|
3230
|
-
*
|
|
3548
|
+
* The first message of the part reported.
|
|
3231
3549
|
*/
|
|
3232
|
-
|
|
3233
|
-
};
|
|
3234
|
-
export type KnowledgeSearchHit = {
|
|
3235
|
-
entry_id: string;
|
|
3550
|
+
started_at: string;
|
|
3236
3551
|
/**
|
|
3237
|
-
*
|
|
3552
|
+
* Its last message.
|
|
3238
3553
|
*/
|
|
3239
|
-
|
|
3554
|
+
ended_at: string;
|
|
3240
3555
|
/**
|
|
3241
|
-
*
|
|
3556
|
+
* From the part's first message to its last.
|
|
3242
3557
|
*/
|
|
3243
|
-
|
|
3244
|
-
title: string;
|
|
3245
|
-
};
|
|
3246
|
-
export type KnowledgeSearchRequest = {
|
|
3558
|
+
duration_seconds: number;
|
|
3247
3559
|
/**
|
|
3248
|
-
*
|
|
3560
|
+
* Messages in the part: the person's and the agents'.
|
|
3249
3561
|
*/
|
|
3250
|
-
|
|
3251
|
-
max_results?: number | null;
|
|
3562
|
+
message_count: number;
|
|
3252
3563
|
/**
|
|
3253
|
-
*
|
|
3564
|
+
* The person's messages in it.
|
|
3254
3565
|
*/
|
|
3255
|
-
|
|
3256
|
-
};
|
|
3257
|
-
export type KnowledgePage = {
|
|
3258
|
-
data: Array<KnowledgeInfo>;
|
|
3566
|
+
turn_count: number;
|
|
3259
3567
|
/**
|
|
3260
|
-
*
|
|
3568
|
+
* Your tools the agent called in the part, by name: how many times, and how many failed.
|
|
3261
3569
|
*/
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3570
|
+
tool_calls: Array<{
|
|
3571
|
+
name: string;
|
|
3572
|
+
calls: number;
|
|
3573
|
+
failed: number;
|
|
3574
|
+
}>;
|
|
3265
3575
|
/**
|
|
3266
|
-
*
|
|
3576
|
+
* What the part's turns charged — the model, speech and hearing — not this report.
|
|
3267
3577
|
*/
|
|
3268
|
-
|
|
3269
|
-
body: string;
|
|
3578
|
+
credits_micros: number;
|
|
3270
3579
|
/**
|
|
3271
|
-
*
|
|
3580
|
+
* What this report's own model call charged: to the conversation's key while it had credit, and past it to your balance, when the key settles.
|
|
3272
3581
|
*/
|
|
3273
|
-
|
|
3274
|
-
category: string | null;
|
|
3582
|
+
report_credits_micros: number;
|
|
3275
3583
|
/**
|
|
3276
|
-
*
|
|
3584
|
+
* The model that wrote it.
|
|
3277
3585
|
*/
|
|
3278
|
-
|
|
3586
|
+
model: string;
|
|
3279
3587
|
created_at: string;
|
|
3588
|
+
webhook: ReportDelivery;
|
|
3280
3589
|
/**
|
|
3281
|
-
*
|
|
3590
|
+
* The messages the report read, oldest first — the part reported and the few before it — with the agent's `report_transcript` on when it was written; `null` without.
|
|
3282
3591
|
*/
|
|
3283
|
-
|
|
3284
|
-
|
|
3592
|
+
transcript: Array<ReportLine> | null;
|
|
3593
|
+
};
|
|
3594
|
+
export type ReportDelivery = {
|
|
3595
|
+
/**
|
|
3596
|
+
* `none`: the agent had no webhook address when it was written; `pending`: being posted, and tried again while your server does not answer a 2xx; `delivered`; `failed`: not taken within the platform's `agents.webhooks.retry_minutes`.
|
|
3597
|
+
*/
|
|
3598
|
+
status: 'none' | 'pending' | 'delivered' | 'failed';
|
|
3599
|
+
/**
|
|
3600
|
+
* Posts so far.
|
|
3601
|
+
*/
|
|
3602
|
+
attempts: number;
|
|
3603
|
+
/**
|
|
3604
|
+
* Your server's last answer's status; `null` for none.
|
|
3605
|
+
*/
|
|
3606
|
+
last_status: number | null;
|
|
3607
|
+
/**
|
|
3608
|
+
* Why the last post was not taken; `null` once one was.
|
|
3609
|
+
*/
|
|
3610
|
+
last_error: string | null;
|
|
3611
|
+
/**
|
|
3612
|
+
* When your server took it.
|
|
3613
|
+
*/
|
|
3614
|
+
delivered_at: string | null;
|
|
3615
|
+
};
|
|
3616
|
+
export type ReportLine = {
|
|
3617
|
+
seq: number;
|
|
3618
|
+
role: 'user' | 'assistant';
|
|
3619
|
+
content: string;
|
|
3620
|
+
/**
|
|
3621
|
+
* The agent that had the conversation; `null` for its first.
|
|
3622
|
+
*/
|
|
3623
|
+
agent_id: string | null;
|
|
3624
|
+
created_at: string;
|
|
3625
|
+
};
|
|
3626
|
+
export type ScheduledMessage = {
|
|
3627
|
+
/**
|
|
3628
|
+
* The message's id, `om_…`.
|
|
3629
|
+
*/
|
|
3630
|
+
id: string;
|
|
3631
|
+
/**
|
|
3632
|
+
* The person's `eu_…` id.
|
|
3633
|
+
*/
|
|
3634
|
+
end_user_id: string;
|
|
3635
|
+
agent_id: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* The conversation it was written into — or the one you named. Null until it is written.
|
|
3638
|
+
*/
|
|
3639
|
+
session_id: string | null;
|
|
3640
|
+
/**
|
|
3641
|
+
* `server` when your server scheduled it; `agent` when the agent did, because the person asked (`outreach_tool`).
|
|
3642
|
+
*/
|
|
3643
|
+
source: 'server' | 'agent';
|
|
3644
|
+
/**
|
|
3645
|
+
* `scheduled`, waiting; `sent`, written; `skipped`, not written — `skip_reason` says why; `cancelled` by you; `failed`, the model could not write it, tried again three times.
|
|
3646
|
+
*/
|
|
3647
|
+
status: 'scheduled' | 'sent' | 'skipped' | 'cancelled' | 'failed';
|
|
3648
|
+
/**
|
|
3649
|
+
* Why a `skipped` one was not written: `daily_limit`, the person's day already had `agents.outreach.per_day_max`; `ignored`, the last `agents.outreach.ignored_max` were not answered and the person has not been back since; `agent_off`, the agent's `outreach_enabled` was turned off; `agent_gone`, it was deleted; `unfunded`, your balance could not pay for it; `org_blocked`, your organisation was suspended. Null otherwise.
|
|
3650
|
+
*/
|
|
3651
|
+
skip_reason: 'daily_limit' | 'ignored' | 'agent_off' | 'agent_gone' | 'unfunded' | 'org_blocked' | null;
|
|
3652
|
+
/**
|
|
3653
|
+
* What the agent should write about, in its own words and character: "Tell them their tomatoes are ready to harvest." The model reads it as your direction, never as the person's words, and the person never sees it.
|
|
3654
|
+
*/
|
|
3655
|
+
note: string;
|
|
3656
|
+
/**
|
|
3657
|
+
* Your own JSON object, up to 1 KB, given back as it is with the message — in the webhook too — so your server knows what it was for (`{"kind": "harvest"}`). `null` for none.
|
|
3658
|
+
*/
|
|
3659
|
+
metadata: {
|
|
3660
|
+
[key: string]: unknown;
|
|
3661
|
+
} | null;
|
|
3662
|
+
/**
|
|
3663
|
+
* When you asked for it.
|
|
3664
|
+
*/
|
|
3665
|
+
send_at: string;
|
|
3666
|
+
/**
|
|
3667
|
+
* When it is written: out of the agent's quiet hours in the person's time zone, and spread over up to two minutes, so many messages of one minute do not all go at once.
|
|
3668
|
+
*/
|
|
3669
|
+
due_at: string;
|
|
3670
|
+
/**
|
|
3671
|
+
* When it was written; null until then.
|
|
3672
|
+
*/
|
|
3673
|
+
sent_at: string | null;
|
|
3674
|
+
/**
|
|
3675
|
+
* What the agent wrote; null until it is written.
|
|
3676
|
+
*/
|
|
3677
|
+
text: string | null;
|
|
3678
|
+
/**
|
|
3679
|
+
* `away` when it was written with no app connected — show it as a notification; `socket` when the person's app was on the conversation and heard it there. Null until written.
|
|
3680
|
+
*/
|
|
3681
|
+
delivered: 'socket' | 'away' | null;
|
|
3682
|
+
webhook: ScheduledMessageDelivery;
|
|
3683
|
+
created_at: string;
|
|
3684
|
+
};
|
|
3685
|
+
/**
|
|
3686
|
+
* Its delivery to your webhook as `outreach.message`, posted once it is written — where it stands, as a report's.
|
|
3687
|
+
*/
|
|
3688
|
+
export type ScheduledMessageDelivery = {
|
|
3689
|
+
/**
|
|
3690
|
+
* `none`: not written yet, or written while the agent had no webhook address; `pending`: being posted, and tried again while your server does not answer a 2xx; `delivered`; `failed`: not taken within the platform's `agents.webhooks.retry_minutes`.
|
|
3691
|
+
*/
|
|
3692
|
+
status: 'none' | 'pending' | 'delivered' | 'failed';
|
|
3693
|
+
/**
|
|
3694
|
+
* Posts so far.
|
|
3695
|
+
*/
|
|
3696
|
+
attempts: number;
|
|
3697
|
+
/**
|
|
3698
|
+
* Your server's last answer's status; `null` for none.
|
|
3699
|
+
*/
|
|
3700
|
+
last_status: number | null;
|
|
3701
|
+
/**
|
|
3702
|
+
* Why the last post was not taken; `null` once one was.
|
|
3703
|
+
*/
|
|
3704
|
+
last_error: string | null;
|
|
3705
|
+
/**
|
|
3706
|
+
* When your server took it.
|
|
3707
|
+
*/
|
|
3708
|
+
delivered_at: string | null;
|
|
3709
|
+
};
|
|
3710
|
+
export type ScheduledMessageCreateRequest = {
|
|
3711
|
+
/**
|
|
3712
|
+
* The agent that writes it: one of yours with `outreach_enabled` on.
|
|
3713
|
+
*/
|
|
3714
|
+
agent_id: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* When to write it: an instant with its zone, at least a minute from now and at most `agents.outreach.ahead_max_days` ahead (the Limits page). Inside the agent's quiet hours, in the person's time zone, it waits for their end.
|
|
3717
|
+
*/
|
|
3718
|
+
send_at: string;
|
|
3719
|
+
/**
|
|
3720
|
+
* What the agent should write about, in its own words and character: "Tell them their tomatoes are ready to harvest." The model reads it as your direction, never as the person's words, and the person never sees it. 1 to 1,000 characters.
|
|
3721
|
+
*/
|
|
3722
|
+
note: string;
|
|
3723
|
+
/**
|
|
3724
|
+
* The conversation it joins: one of the person's with this agent. Unset, their latest with the agent still young enough to continue (`resume_max_age_days`), else a new one — chosen when it is written.
|
|
3725
|
+
*/
|
|
3726
|
+
session_id?: string | null;
|
|
3727
|
+
/**
|
|
3728
|
+
* Your own JSON object, up to 1 KB, given back as it is with the message — in the webhook too — so your server knows what it was for (`{"kind": "harvest"}`). `null` for none.
|
|
3729
|
+
*/
|
|
3730
|
+
metadata?: {
|
|
3731
|
+
[key: string]: unknown;
|
|
3732
|
+
} | null;
|
|
3733
|
+
};
|
|
3734
|
+
export type ScheduledMessagePage = {
|
|
3735
|
+
data: Array<ScheduledMessage>;
|
|
3736
|
+
/**
|
|
3737
|
+
* Pass as `cursor` for the next page; `null` when this is the last.
|
|
3738
|
+
*/
|
|
3739
|
+
next_cursor: string | null;
|
|
3740
|
+
};
|
|
3741
|
+
export type KnowledgeCategoryPage = {
|
|
3742
|
+
data: Array<string>;
|
|
3743
|
+
/**
|
|
3744
|
+
* Pass as `cursor` for the next page; `null` when this is the last.
|
|
3745
|
+
*/
|
|
3746
|
+
next_cursor: string | null;
|
|
3747
|
+
};
|
|
3748
|
+
export type KnowledgeInsights = {
|
|
3749
|
+
days: number;
|
|
3750
|
+
entries: Array<KnowledgeEntryUsage>;
|
|
3751
|
+
/**
|
|
3752
|
+
* The newest fifty, newest first.
|
|
3753
|
+
*/
|
|
3754
|
+
unanswered: Array<UnansweredQuestion>;
|
|
3755
|
+
};
|
|
3756
|
+
export type KnowledgeEntryUsage = {
|
|
3757
|
+
entry_id: string;
|
|
3758
|
+
/**
|
|
3759
|
+
* Replies that drew on this entry in the window.
|
|
3760
|
+
*/
|
|
3761
|
+
replies: number;
|
|
3762
|
+
};
|
|
3763
|
+
export type UnansweredQuestion = {
|
|
3764
|
+
agent_id: string;
|
|
3765
|
+
agent_name: string;
|
|
3766
|
+
/**
|
|
3767
|
+
* What the person said.
|
|
3768
|
+
*/
|
|
3769
|
+
asked: string;
|
|
3770
|
+
asked_at: string;
|
|
3771
|
+
/**
|
|
3772
|
+
* `none` — nothing relevant enough; `failed` — the lookup could not be done.
|
|
3773
|
+
*/
|
|
3774
|
+
outcome: 'none' | 'failed';
|
|
3775
|
+
/**
|
|
3776
|
+
* What was searched for.
|
|
3777
|
+
*/
|
|
3778
|
+
query: string;
|
|
3779
|
+
session_id: string;
|
|
3780
|
+
/**
|
|
3781
|
+
* Who asked, by `eu_...` id — the conversation is theirs, read per end user. Null once they are deleted.
|
|
3782
|
+
*/
|
|
3783
|
+
end_user_id: string | null;
|
|
3784
|
+
};
|
|
3785
|
+
export type KnowledgeSearchResult = {
|
|
3786
|
+
/**
|
|
3787
|
+
* How long the question's embedding took; null unasked.
|
|
3788
|
+
*/
|
|
3789
|
+
embed_ms: number | null;
|
|
3790
|
+
hits: Array<KnowledgeSearchHit>;
|
|
3791
|
+
/**
|
|
3792
|
+
* When `agent_id` was given: `prompt` if that agent has its whole knowledge in its prompt and looks nothing up — the results show what a lookup would find all the same — or `lookup`. Null without one.
|
|
3793
|
+
*/
|
|
3794
|
+
mode: 'lookup' | 'prompt' | null;
|
|
3795
|
+
/**
|
|
3796
|
+
* `found`, `none` (nothing relevant enough), or `failed`.
|
|
3797
|
+
*/
|
|
3798
|
+
outcome: 'found' | 'none' | 'failed';
|
|
3799
|
+
/**
|
|
3800
|
+
* How long the index search took; null unasked.
|
|
3801
|
+
*/
|
|
3802
|
+
query_ms: number | null;
|
|
3803
|
+
};
|
|
3804
|
+
export type KnowledgeSearchHit = {
|
|
3805
|
+
entry_id: string;
|
|
3806
|
+
/**
|
|
3807
|
+
* Cosine similarity, 0-1. Nothing under the platform's `agents.knowledge.min_score` (`GET /v1/platform/limits`) is handed over.
|
|
3808
|
+
*/
|
|
3809
|
+
score: number;
|
|
3810
|
+
/**
|
|
3811
|
+
* The piece the agent would read.
|
|
3812
|
+
*/
|
|
3813
|
+
text: string;
|
|
3814
|
+
title: string;
|
|
3815
|
+
};
|
|
3816
|
+
export type KnowledgeSearchRequest = {
|
|
3817
|
+
/**
|
|
3818
|
+
* Search what this agent can find. Omitted, every entry of the organisation that can be searched.
|
|
3819
|
+
*/
|
|
3820
|
+
agent_id?: string | null;
|
|
3821
|
+
max_results?: number | null;
|
|
3822
|
+
/**
|
|
3823
|
+
* A question, as a person would ask it.
|
|
3824
|
+
*/
|
|
3825
|
+
query: string;
|
|
3826
|
+
};
|
|
3827
|
+
export type KnowledgePage = {
|
|
3828
|
+
data: Array<KnowledgeInfo>;
|
|
3829
|
+
/**
|
|
3830
|
+
* Pass as `cursor` for the next page; `null` when this is the last.
|
|
3831
|
+
*/
|
|
3832
|
+
next_cursor: string | null;
|
|
3833
|
+
};
|
|
3834
|
+
export type KnowledgeInfo = {
|
|
3835
|
+
/**
|
|
3836
|
+
* Which agents have been given this entry. Empty means nobody has yet — the entry exists and no agent can look it up, which is a draft rather than a fault.
|
|
3837
|
+
*/
|
|
3838
|
+
agents: Array<AssignedAgent>;
|
|
3839
|
+
body: string;
|
|
3840
|
+
/**
|
|
3841
|
+
* How long `body` is in full, in characters. A listing on the console sends the first few hundred characters only; read the entry for all of it.
|
|
3842
|
+
*/
|
|
3843
|
+
body_chars: number;
|
|
3844
|
+
category: string | null;
|
|
3845
|
+
/**
|
|
3846
|
+
* How many pieces the body was split into for searching. Most hand-written entries are one.
|
|
3847
|
+
*/
|
|
3848
|
+
chunks: number;
|
|
3849
|
+
created_at: string;
|
|
3850
|
+
/**
|
|
3851
|
+
* Why indexing failed, when it did.
|
|
3852
|
+
*/
|
|
3853
|
+
error: string | null;
|
|
3854
|
+
id: string;
|
|
3285
3855
|
/**
|
|
3286
3856
|
* For an entry made from a web page: how often it is read again. Null for the rest.
|
|
3287
3857
|
*/
|
|
@@ -6704,6 +7274,42 @@ export type UpdateAgentSettingsResponses = {
|
|
|
6704
7274
|
200: AgentSettingsInfo;
|
|
6705
7275
|
};
|
|
6706
7276
|
export type UpdateAgentSettingsResponse = UpdateAgentSettingsResponses[keyof UpdateAgentSettingsResponses];
|
|
7277
|
+
export type RotateWebhookSecretData = {
|
|
7278
|
+
body?: never;
|
|
7279
|
+
path?: never;
|
|
7280
|
+
query?: never;
|
|
7281
|
+
url: '/v1/agents/settings/webhook-secret';
|
|
7282
|
+
};
|
|
7283
|
+
export type RotateWebhookSecretErrors = {
|
|
7284
|
+
/**
|
|
7285
|
+
* Missing or invalid credentials
|
|
7286
|
+
*/
|
|
7287
|
+
401: ErrorResponse;
|
|
7288
|
+
/**
|
|
7289
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
7290
|
+
*/
|
|
7291
|
+
403: ErrorResponse;
|
|
7292
|
+
/**
|
|
7293
|
+
* The request failed validation
|
|
7294
|
+
*/
|
|
7295
|
+
422: ErrorResponse;
|
|
7296
|
+
/**
|
|
7297
|
+
* Rate limit exceeded
|
|
7298
|
+
*/
|
|
7299
|
+
429: ErrorResponse;
|
|
7300
|
+
/**
|
|
7301
|
+
* This deployment cannot seal secrets (TOOL_SECRET_KEY is missing or invalid)
|
|
7302
|
+
*/
|
|
7303
|
+
503: ErrorResponse;
|
|
7304
|
+
};
|
|
7305
|
+
export type RotateWebhookSecretError = RotateWebhookSecretErrors[keyof RotateWebhookSecretErrors];
|
|
7306
|
+
export type RotateWebhookSecretResponses = {
|
|
7307
|
+
/**
|
|
7308
|
+
* The secret, shown this once
|
|
7309
|
+
*/
|
|
7310
|
+
200: WebhookSecret;
|
|
7311
|
+
};
|
|
7312
|
+
export type RotateWebhookSecretResponse = RotateWebhookSecretResponses[keyof RotateWebhookSecretResponses];
|
|
6707
7313
|
export type DeleteAgentData = {
|
|
6708
7314
|
body?: never;
|
|
6709
7315
|
path: {
|
|
@@ -6826,6 +7432,48 @@ export type UpdateAgentResponses = {
|
|
|
6826
7432
|
200: AgentInfo;
|
|
6827
7433
|
};
|
|
6828
7434
|
export type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
|
|
7435
|
+
export type TestAgentWebhookData = {
|
|
7436
|
+
body?: never;
|
|
7437
|
+
path: {
|
|
7438
|
+
agent_id: string;
|
|
7439
|
+
};
|
|
7440
|
+
query?: never;
|
|
7441
|
+
url: '/v1/agents/{agent_id}/webhook-test';
|
|
7442
|
+
};
|
|
7443
|
+
export type TestAgentWebhookErrors = {
|
|
7444
|
+
/**
|
|
7445
|
+
* Missing or invalid credentials
|
|
7446
|
+
*/
|
|
7447
|
+
401: ErrorResponse;
|
|
7448
|
+
/**
|
|
7449
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
7450
|
+
*/
|
|
7451
|
+
403: ErrorResponse;
|
|
7452
|
+
/**
|
|
7453
|
+
* Unknown agent id
|
|
7454
|
+
*/
|
|
7455
|
+
404: ErrorResponse;
|
|
7456
|
+
/**
|
|
7457
|
+
* The stored secret cannot be opened any more: make another
|
|
7458
|
+
*/
|
|
7459
|
+
409: ErrorResponse;
|
|
7460
|
+
/**
|
|
7461
|
+
* This agent has no webhook address, nor does your organisation: set `webhook_url` on the agent or in /v1/agents/settings. Or: Your organisation has no webhook secret to sign with: POST /v1/agents/settings/webhook-secret.
|
|
7462
|
+
*/
|
|
7463
|
+
422: ErrorResponse;
|
|
7464
|
+
/**
|
|
7465
|
+
* Rate limit exceeded
|
|
7466
|
+
*/
|
|
7467
|
+
429: ErrorResponse;
|
|
7468
|
+
};
|
|
7469
|
+
export type TestAgentWebhookError = TestAgentWebhookErrors[keyof TestAgentWebhookErrors];
|
|
7470
|
+
export type TestAgentWebhookResponses = {
|
|
7471
|
+
/**
|
|
7472
|
+
* What your server answered
|
|
7473
|
+
*/
|
|
7474
|
+
200: WebhookTestResult;
|
|
7475
|
+
};
|
|
7476
|
+
export type TestAgentWebhookResponse = TestAgentWebhookResponses[keyof TestAgentWebhookResponses];
|
|
6829
7477
|
export type ListEndUsersData = {
|
|
6830
7478
|
body?: never;
|
|
6831
7479
|
path?: never;
|
|
@@ -7509,6 +8157,96 @@ export type UpdateEndUserPersonalizationResponses = {
|
|
|
7509
8157
|
200: EndUserPersonalization;
|
|
7510
8158
|
};
|
|
7511
8159
|
export type UpdateEndUserPersonalizationResponse = UpdateEndUserPersonalizationResponses[keyof UpdateEndUserPersonalizationResponses];
|
|
8160
|
+
export type ListEndUserReportsData = {
|
|
8161
|
+
body?: never;
|
|
8162
|
+
path: {
|
|
8163
|
+
end_user_id: string;
|
|
8164
|
+
};
|
|
8165
|
+
query?: {
|
|
8166
|
+
/**
|
|
8167
|
+
* Only this conversation's reports; one that is not this person's lists none.
|
|
8168
|
+
*/
|
|
8169
|
+
session_id?: string;
|
|
8170
|
+
/**
|
|
8171
|
+
* How many to answer, 1 to 100.
|
|
8172
|
+
*/
|
|
8173
|
+
limit?: number;
|
|
8174
|
+
/**
|
|
8175
|
+
* The `next_cursor` of the page before.
|
|
8176
|
+
*/
|
|
8177
|
+
cursor?: string;
|
|
8178
|
+
};
|
|
8179
|
+
url: '/v1/end-users/{end_user_id}/reports';
|
|
8180
|
+
};
|
|
8181
|
+
export type ListEndUserReportsErrors = {
|
|
8182
|
+
/**
|
|
8183
|
+
* Missing or invalid credentials
|
|
8184
|
+
*/
|
|
8185
|
+
401: ErrorResponse;
|
|
8186
|
+
/**
|
|
8187
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
8188
|
+
*/
|
|
8189
|
+
403: ErrorResponse;
|
|
8190
|
+
/**
|
|
8191
|
+
* Unknown end user id
|
|
8192
|
+
*/
|
|
8193
|
+
404: ErrorResponse;
|
|
8194
|
+
/**
|
|
8195
|
+
* The request failed validation
|
|
8196
|
+
*/
|
|
8197
|
+
422: ErrorResponse;
|
|
8198
|
+
/**
|
|
8199
|
+
* Rate limit exceeded
|
|
8200
|
+
*/
|
|
8201
|
+
429: ErrorResponse;
|
|
8202
|
+
};
|
|
8203
|
+
export type ListEndUserReportsError = ListEndUserReportsErrors[keyof ListEndUserReportsErrors];
|
|
8204
|
+
export type ListEndUserReportsResponses = {
|
|
8205
|
+
/**
|
|
8206
|
+
* One page of reports, newest first
|
|
8207
|
+
*/
|
|
8208
|
+
200: ConversationReportPage;
|
|
8209
|
+
};
|
|
8210
|
+
export type ListEndUserReportsResponse = ListEndUserReportsResponses[keyof ListEndUserReportsResponses];
|
|
8211
|
+
export type GetEndUserReportData = {
|
|
8212
|
+
body?: never;
|
|
8213
|
+
path: {
|
|
8214
|
+
end_user_id: string;
|
|
8215
|
+
report_id: string;
|
|
8216
|
+
};
|
|
8217
|
+
query?: never;
|
|
8218
|
+
url: '/v1/end-users/{end_user_id}/reports/{report_id}';
|
|
8219
|
+
};
|
|
8220
|
+
export type GetEndUserReportErrors = {
|
|
8221
|
+
/**
|
|
8222
|
+
* Missing or invalid credentials
|
|
8223
|
+
*/
|
|
8224
|
+
401: ErrorResponse;
|
|
8225
|
+
/**
|
|
8226
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
8227
|
+
*/
|
|
8228
|
+
403: ErrorResponse;
|
|
8229
|
+
/**
|
|
8230
|
+
* Unknown end user id, or Unknown report id
|
|
8231
|
+
*/
|
|
8232
|
+
404: ErrorResponse;
|
|
8233
|
+
/**
|
|
8234
|
+
* The request failed validation
|
|
8235
|
+
*/
|
|
8236
|
+
422: ErrorResponse;
|
|
8237
|
+
/**
|
|
8238
|
+
* Rate limit exceeded
|
|
8239
|
+
*/
|
|
8240
|
+
429: ErrorResponse;
|
|
8241
|
+
};
|
|
8242
|
+
export type GetEndUserReportError = GetEndUserReportErrors[keyof GetEndUserReportErrors];
|
|
8243
|
+
export type GetEndUserReportResponses = {
|
|
8244
|
+
/**
|
|
8245
|
+
* The report
|
|
8246
|
+
*/
|
|
8247
|
+
200: ConversationReport;
|
|
8248
|
+
};
|
|
8249
|
+
export type GetEndUserReportResponse = GetEndUserReportResponses[keyof GetEndUserReportResponses];
|
|
7512
8250
|
export type PostToolResultData = {
|
|
7513
8251
|
body: ToolResultRequest;
|
|
7514
8252
|
path: {
|
|
@@ -7560,6 +8298,211 @@ export type PostToolResultResponses = {
|
|
|
7560
8298
|
200: ToolResultTaken;
|
|
7561
8299
|
};
|
|
7562
8300
|
export type PostToolResultResponse = PostToolResultResponses[keyof PostToolResultResponses];
|
|
8301
|
+
export type ListScheduledMessagesData = {
|
|
8302
|
+
body?: never;
|
|
8303
|
+
path: {
|
|
8304
|
+
/**
|
|
8305
|
+
* The end user's `eu_...` id, or your own id for them.
|
|
8306
|
+
*/
|
|
8307
|
+
end_user_id: string;
|
|
8308
|
+
};
|
|
8309
|
+
query?: {
|
|
8310
|
+
/**
|
|
8311
|
+
* How many to answer, 1 to 200.
|
|
8312
|
+
*/
|
|
8313
|
+
limit?: number;
|
|
8314
|
+
/**
|
|
8315
|
+
* The `next_cursor` of the page before.
|
|
8316
|
+
*/
|
|
8317
|
+
cursor?: string;
|
|
8318
|
+
/**
|
|
8319
|
+
* Only messages in this status.
|
|
8320
|
+
*/
|
|
8321
|
+
status?: 'scheduled' | 'sent' | 'skipped' | 'cancelled' | 'failed';
|
|
8322
|
+
};
|
|
8323
|
+
url: '/v1/end-users/{end_user_id}/scheduled-messages';
|
|
8324
|
+
};
|
|
8325
|
+
export type ListScheduledMessagesErrors = {
|
|
8326
|
+
/**
|
|
8327
|
+
* Missing or invalid credentials
|
|
8328
|
+
*/
|
|
8329
|
+
401: ErrorResponse;
|
|
8330
|
+
/**
|
|
8331
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
8332
|
+
*/
|
|
8333
|
+
403: ErrorResponse;
|
|
8334
|
+
/**
|
|
8335
|
+
* Unknown end user id Or: No such scheduled message for this end user.
|
|
8336
|
+
*/
|
|
8337
|
+
404: ErrorResponse;
|
|
8338
|
+
/**
|
|
8339
|
+
* The request failed validation
|
|
8340
|
+
*/
|
|
8341
|
+
422: ErrorResponse;
|
|
8342
|
+
/**
|
|
8343
|
+
* Rate limit exceeded
|
|
8344
|
+
*/
|
|
8345
|
+
429: ErrorResponse;
|
|
8346
|
+
};
|
|
8347
|
+
export type ListScheduledMessagesError = ListScheduledMessagesErrors[keyof ListScheduledMessagesErrors];
|
|
8348
|
+
export type ListScheduledMessagesResponses = {
|
|
8349
|
+
/**
|
|
8350
|
+
* Success
|
|
8351
|
+
*/
|
|
8352
|
+
200: ScheduledMessagePage;
|
|
8353
|
+
};
|
|
8354
|
+
export type ListScheduledMessagesResponse = ListScheduledMessagesResponses[keyof ListScheduledMessagesResponses];
|
|
8355
|
+
export type CreateScheduledMessageData = {
|
|
8356
|
+
body: ScheduledMessageCreateRequest;
|
|
8357
|
+
path: {
|
|
8358
|
+
/**
|
|
8359
|
+
* The end user's `eu_...` id, or your own id for them.
|
|
8360
|
+
*/
|
|
8361
|
+
end_user_id: string;
|
|
8362
|
+
};
|
|
8363
|
+
query?: never;
|
|
8364
|
+
url: '/v1/end-users/{end_user_id}/scheduled-messages';
|
|
8365
|
+
};
|
|
8366
|
+
export type CreateScheduledMessageErrors = {
|
|
8367
|
+
/**
|
|
8368
|
+
* The request could not be read: malformed JSON
|
|
8369
|
+
*/
|
|
8370
|
+
400: ErrorResponse;
|
|
8371
|
+
/**
|
|
8372
|
+
* Missing or invalid credentials
|
|
8373
|
+
*/
|
|
8374
|
+
401: ErrorResponse;
|
|
8375
|
+
/**
|
|
8376
|
+
* Your balance cannot set this message's reserve aside
|
|
8377
|
+
*/
|
|
8378
|
+
402: ErrorResponse;
|
|
8379
|
+
/**
|
|
8380
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
8381
|
+
*/
|
|
8382
|
+
403: ErrorResponse;
|
|
8383
|
+
/**
|
|
8384
|
+
* Unknown end user id Or: No such scheduled message for this end user.
|
|
8385
|
+
*/
|
|
8386
|
+
404: ErrorResponse;
|
|
8387
|
+
/**
|
|
8388
|
+
* The agent does not write first, or the person's day or queue is full
|
|
8389
|
+
*/
|
|
8390
|
+
409: ErrorResponse;
|
|
8391
|
+
/**
|
|
8392
|
+
* The request failed validation
|
|
8393
|
+
*/
|
|
8394
|
+
422: ErrorResponse;
|
|
8395
|
+
/**
|
|
8396
|
+
* Rate limit exceeded
|
|
8397
|
+
*/
|
|
8398
|
+
429: ErrorResponse;
|
|
8399
|
+
/**
|
|
8400
|
+
* The end user's store could not be reached
|
|
8401
|
+
*/
|
|
8402
|
+
503: ErrorResponse;
|
|
8403
|
+
};
|
|
8404
|
+
export type CreateScheduledMessageError = CreateScheduledMessageErrors[keyof CreateScheduledMessageErrors];
|
|
8405
|
+
export type CreateScheduledMessageResponses = {
|
|
8406
|
+
/**
|
|
8407
|
+
* Scheduled
|
|
8408
|
+
*/
|
|
8409
|
+
201: ScheduledMessage;
|
|
8410
|
+
};
|
|
8411
|
+
export type CreateScheduledMessageResponse = CreateScheduledMessageResponses[keyof CreateScheduledMessageResponses];
|
|
8412
|
+
export type CancelScheduledMessageData = {
|
|
8413
|
+
body?: never;
|
|
8414
|
+
path: {
|
|
8415
|
+
/**
|
|
8416
|
+
* The end user's `eu_...` id, or your own id for them.
|
|
8417
|
+
*/
|
|
8418
|
+
end_user_id: string;
|
|
8419
|
+
/**
|
|
8420
|
+
* The message's `om_...` id.
|
|
8421
|
+
*/
|
|
8422
|
+
message_id: string;
|
|
8423
|
+
};
|
|
8424
|
+
query?: never;
|
|
8425
|
+
url: '/v1/end-users/{end_user_id}/scheduled-messages/{message_id}';
|
|
8426
|
+
};
|
|
8427
|
+
export type CancelScheduledMessageErrors = {
|
|
8428
|
+
/**
|
|
8429
|
+
* Missing or invalid credentials
|
|
8430
|
+
*/
|
|
8431
|
+
401: ErrorResponse;
|
|
8432
|
+
/**
|
|
8433
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
8434
|
+
*/
|
|
8435
|
+
403: ErrorResponse;
|
|
8436
|
+
/**
|
|
8437
|
+
* Unknown end user id Or: No such scheduled message for this end user.
|
|
8438
|
+
*/
|
|
8439
|
+
404: ErrorResponse;
|
|
8440
|
+
/**
|
|
8441
|
+
* Already written, skipped, cancelled or failed
|
|
8442
|
+
*/
|
|
8443
|
+
409: ErrorResponse;
|
|
8444
|
+
/**
|
|
8445
|
+
* The request failed validation
|
|
8446
|
+
*/
|
|
8447
|
+
422: ErrorResponse;
|
|
8448
|
+
/**
|
|
8449
|
+
* Rate limit exceeded
|
|
8450
|
+
*/
|
|
8451
|
+
429: ErrorResponse;
|
|
8452
|
+
};
|
|
8453
|
+
export type CancelScheduledMessageError = CancelScheduledMessageErrors[keyof CancelScheduledMessageErrors];
|
|
8454
|
+
export type CancelScheduledMessageResponses = {
|
|
8455
|
+
/**
|
|
8456
|
+
* Cancelled
|
|
8457
|
+
*/
|
|
8458
|
+
200: ScheduledMessage;
|
|
8459
|
+
};
|
|
8460
|
+
export type CancelScheduledMessageResponse = CancelScheduledMessageResponses[keyof CancelScheduledMessageResponses];
|
|
8461
|
+
export type GetScheduledMessageData = {
|
|
8462
|
+
body?: never;
|
|
8463
|
+
path: {
|
|
8464
|
+
/**
|
|
8465
|
+
* The end user's `eu_...` id, or your own id for them.
|
|
8466
|
+
*/
|
|
8467
|
+
end_user_id: string;
|
|
8468
|
+
/**
|
|
8469
|
+
* The message's `om_...` id.
|
|
8470
|
+
*/
|
|
8471
|
+
message_id: string;
|
|
8472
|
+
};
|
|
8473
|
+
query?: never;
|
|
8474
|
+
url: '/v1/end-users/{end_user_id}/scheduled-messages/{message_id}';
|
|
8475
|
+
};
|
|
8476
|
+
export type GetScheduledMessageErrors = {
|
|
8477
|
+
/**
|
|
8478
|
+
* Missing or invalid credentials
|
|
8479
|
+
*/
|
|
8480
|
+
401: ErrorResponse;
|
|
8481
|
+
/**
|
|
8482
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
8483
|
+
*/
|
|
8484
|
+
403: ErrorResponse;
|
|
8485
|
+
/**
|
|
8486
|
+
* Unknown end user id Or: No such scheduled message for this end user.
|
|
8487
|
+
*/
|
|
8488
|
+
404: ErrorResponse;
|
|
8489
|
+
/**
|
|
8490
|
+
* The request failed validation
|
|
8491
|
+
*/
|
|
8492
|
+
422: ErrorResponse;
|
|
8493
|
+
/**
|
|
8494
|
+
* Rate limit exceeded
|
|
8495
|
+
*/
|
|
8496
|
+
429: ErrorResponse;
|
|
8497
|
+
};
|
|
8498
|
+
export type GetScheduledMessageError = GetScheduledMessageErrors[keyof GetScheduledMessageErrors];
|
|
8499
|
+
export type GetScheduledMessageResponses = {
|
|
8500
|
+
/**
|
|
8501
|
+
* Success
|
|
8502
|
+
*/
|
|
8503
|
+
200: ScheduledMessage;
|
|
8504
|
+
};
|
|
8505
|
+
export type GetScheduledMessageResponse = GetScheduledMessageResponses[keyof GetScheduledMessageResponses];
|
|
7563
8506
|
export type ListKnowledgeCategoriesData = {
|
|
7564
8507
|
body?: never;
|
|
7565
8508
|
path?: never;
|