Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 54 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47224,7 +47224,7 @@ components:
description: Where the caller saw or copied it.
AppError:
type: object
description: An error the app hit and did not handle, as the app saw it. OpenBot scrubs and bounds it again before it is sent anywhere.
description: An error the app hit and did not handle, as the app saw it. OpenBot scrubs and bounds it again before it is sent anywhere. Where it happened is said only by the route's pattern, the page's and browser's languages and the browser's and operating system's names and major versions, never by an address, an ID or anything on the page.
additionalProperties: false
required:
- source
Expand Down Expand Up @@ -47265,6 +47265,51 @@ components:
minLength: 1
maxLength: 32
pattern: ^v?\d+(?:\.\d+){1,3}(?:-[a-z]+(?:\.\d{1,9})?)?$
route:
type: string
description: The pattern of the app's route the page was on, such as /bots/$botId, never its address. No IDs, query or fragment.
minLength: 1
maxLength: 200
pattern: ^/[A-Za-z0-9_$./~{}*-]*$
pageLanguage:
type: string
description: The page's language, from the lang attribute of its html element, such as en. A page translated in the browser often says the language it was translated into.
minLength: 1
maxLength: 35
pattern: ^[A-Za-z]{1,8}(?:-[A-Za-z0-9]{1,8}){0,4}$
pageTranslated:
type: boolean
description: Whether the browser had translated the page when the error happened, by the marks a page translator leaves on it.
browserLanguage:
type: string
description: The browser's preferred language, such as pt-BR.
minLength: 1
maxLength: 35
pattern: ^[A-Za-z]{1,8}(?:-[A-Za-z0-9]{1,8}){0,4}$
browserName:
type: string
description: The browser's name, such as Chrome or Safari.
minLength: 1
maxLength: 64
pattern: ^[A-Za-z0-9 ._()-]+$
browserVersion:
type: string
description: The browser's major version, such as 141.
minLength: 1
maxLength: 6
pattern: ^\d{1,6}$
osName:
type: string
description: The operating system's name, such as Windows or macOS.
minLength: 1
maxLength: 64
pattern: ^[A-Za-z0-9 ._()-]+$
osVersion:
type: string
description: The operating system's major version, such as 11, when the browser says it.
minLength: 1
maxLength: 6
pattern: ^\d{1,6}$
NudgeEvent:
type: object
description: What the caller did with a nudge, and where. Names nothing about the person, who is the caller. The moment that made the nudge due is added by OpenBot, not sent.
Expand Down Expand Up @@ -64899,6 +64944,14 @@ components:
at BotCard (/assets/route-app-secondary.js:12:345)
surface: web
appVersion: 1.1.0-rc.2
route: /bots/$botId
pageLanguage: ja
pageTranslated: true
browserLanguage: ja-JP
browserName: Chrome
browserVersion: '141'
osName: Windows
osVersion: '11'
NudgeClicked:
summary: The caller opened OpenBot's repository from the star card, in OpenBot Desktop.
value:
Expand Down
57 changes: 55 additions & 2 deletions api/openapi/conversations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2800,7 +2800,10 @@ components:
AppError:
type: object
description: An error the app hit and did not handle, as the app saw it.
OpenBot scrubs and bounds it again before it is sent anywhere.
OpenBot scrubs and bounds it again before it is sent anywhere. Where it
happened is said only by the route's pattern, the page's and browser's
languages and the browser's and operating system's names and major
versions, never by an address, an ID or anything on the page.
additionalProperties: false
required:
- source
Expand Down Expand Up @@ -2844,6 +2847,56 @@ components:
minLength: 1
maxLength: 32
pattern: ^v?\d+(?:\.\d+){1,3}(?:-[a-z]+(?:\.\d{1,9})?)?$
route:
type: string
description: The pattern of the app's route the page was on, such as
/bots/$botId, never its address. No IDs, query or fragment.
minLength: 1
maxLength: 200
pattern: ^/[A-Za-z0-9_$./~{}*-]*$
pageLanguage:
type: string
description: The page's language, from the lang attribute of its html
element, such as en. A page translated in the browser often says the
language it was translated into.
minLength: 1
maxLength: 35
pattern: ^[A-Za-z]{1,8}(?:-[A-Za-z0-9]{1,8}){0,4}$
pageTranslated:
type: boolean
description: Whether the browser had translated the page when the error
happened, by the marks a page translator leaves on it.
browserLanguage:
type: string
description: The browser's preferred language, such as pt-BR.
minLength: 1
maxLength: 35
pattern: ^[A-Za-z]{1,8}(?:-[A-Za-z0-9]{1,8}){0,4}$
browserName:
type: string
description: The browser's name, such as Chrome or Safari.
minLength: 1
maxLength: 64
pattern: ^[A-Za-z0-9 ._()-]+$
browserVersion:
type: string
description: The browser's major version, such as 141.
minLength: 1
maxLength: 6
pattern: ^\d{1,6}$
osName:
type: string
description: The operating system's name, such as Windows or macOS.
minLength: 1
maxLength: 64
pattern: ^[A-Za-z0-9 ._()-]+$
osVersion:
type: string
description: The operating system's major version, such as 11, when the
browser says it.
minLength: 1
maxLength: 6
pattern: ^\d{1,6}$
RouteMessageRequest:
type: object
additionalProperties: false
Expand Down Expand Up @@ -4226,4 +4279,4 @@ components:
value: {"nudge": "star-on-github", "action": "clicked", "place": "card", "surface": "desktop"}
AppErrorBoundary:
summary: "An error the web app's error screen caught."
value: {"source": "error_boundary", "type": "TypeError", "message": "Cannot read properties of undefined (reading 'title')", "stack": "TypeError: Cannot read properties of undefined (reading 'title')\n at BotCard (/assets/route-app-secondary.js:12:345)", "surface": "web", "appVersion": "1.1.0-rc.2"}
value: {"source": "error_boundary", "type": "TypeError", "message": "Cannot read properties of undefined (reading 'title')", "stack": "TypeError: Cannot read properties of undefined (reading 'title')\n at BotCard (/assets/route-app-secondary.js:12:345)", "surface": "web", "appVersion": "1.1.0-rc.2", "route": "/bots/$botId", "pageLanguage": "ja", "pageTranslated": true, "browserLanguage": "ja-JP", "browserName": "Chrome", "browserVersion": "141", "osName": "Windows", "osVersion": "11"}
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@xterm/xterm": "6.0.0",
"better-auth": "^1.6.27",
"boring-avatars": "^2.0.4",
"bowser": "^2.15.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"colorjs.io": "0.7.1",
Expand Down
53 changes: 52 additions & 1 deletion app/src/lib/api/generated/model/appError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { AppErrorSource } from "./appErrorSource";
import type { AppErrorSurface } from "./appErrorSurface";

/**
* An error the app hit and did not handle, as the app saw it. OpenBot scrubs and bounds it again before it is sent anywhere.
* An error the app hit and did not handle, as the app saw it. OpenBot scrubs and bounds it again before it is sent anywhere. Where it happened is said only by the route's pattern, the page's and browser's languages and the browser's and operating system's names and major versions, never by an address, an ID or anything on the page.
*/
export interface AppError {
/** How the app caught it. error_boundary when its error screen was shown, window_error for an error the page threw, and unhandled_rejection for a promise nobody handled. */
Expand Down Expand Up @@ -35,4 +35,55 @@ export interface AppError {
* @pattern ^v?\d+(?:\.\d+){1,3}(?:-[a-z]+(?:\.\d{1,9})?)?$
*/
appVersion?: string;
/**
* The pattern of the app's route the page was on, such as /bots/$botId, never its address. No IDs, query or fragment.
* @minLength 1
* @maxLength 200
* @pattern ^/[A-Za-z0-9_$./~{}*-]*$
*/
route?: string;
/**
* The page's language, from the lang attribute of its html element, such as en. A page translated in the browser often says the language it was translated into.
* @minLength 1
* @maxLength 35
* @pattern ^[A-Za-z]{1,8}(?:-[A-Za-z0-9]{1,8}){0,4}$
*/
pageLanguage?: string;
/** Whether the browser had translated the page when the error happened, by the marks a page translator leaves on it. */
pageTranslated?: boolean;
/**
* The browser's preferred language, such as pt-BR.
* @minLength 1
* @maxLength 35
* @pattern ^[A-Za-z]{1,8}(?:-[A-Za-z0-9]{1,8}){0,4}$
*/
browserLanguage?: string;
/**
* The browser's name, such as Chrome or Safari.
* @minLength 1
* @maxLength 64
* @pattern ^[A-Za-z0-9 ._()-]+$
*/
browserName?: string;
/**
* The browser's major version, such as 141.
* @minLength 1
* @maxLength 6
* @pattern ^\d{1,6}$
*/
browserVersion?: string;
/**
* The operating system's name, such as Windows or macOS.
* @minLength 1
* @maxLength 64
* @pattern ^[A-Za-z0-9 ._()-]+$
*/
osName?: string;
/**
* The operating system's major version, such as 11, when the browser says it.
* @minLength 1
* @maxLength 6
* @pattern ^\d{1,6}$
*/
osVersion?: string;
}
Loading
Loading