@proveanything/smartlinks 2.1.23 → 2.1.24

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.
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 2.1.23 | Generated: 2026-11-19T11:28:05.726Z
3
+ Version: 2.1.24 | Generated: 2026-11-19T13:27:14.982Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -3208,10 +3208,29 @@ interface AppManifest {
3208
3208
  headless?: AppHeadlessDeclaration;
3209
3209
  connector?: AppConnectorDeclaration;
3210
3210
  assistant?: AppAssistantDeclaration;
3211
+ docs?: AppDocsDeclaration;
3211
3212
  [key: string]: any;
3212
3213
  }
3213
3214
  ```
3214
3215
 
3216
+ **AppDocsPage** (interface)
3217
+ ```typescript
3218
+ interface AppDocsPage {
3219
+ file: string;
3220
+ title: string;
3221
+ description?: string;
3222
+ audience?: AppDocsAudience;
3223
+ }
3224
+ ```
3225
+
3226
+ **AppDocsDeclaration** (interface)
3227
+ ```typescript
3228
+ interface AppDocsDeclaration {
3229
+ pages: AppDocsPage[];
3230
+ listed?: boolean;
3231
+ }
3232
+ ```
3233
+
3215
3234
  **AppAssistantFile** (interface)
3216
3235
  ```typescript
3217
3236
  interface AppAssistantFile {
@@ -3483,6 +3502,8 @@ interface GetCollectionWidgetsOptions {
3483
3502
  type ServerFunctionFileInput = { base64: string; contentType: string }
3484
3503
  ```
3485
3504
 
3505
+ **AppDocsAudience** = `'team' | 'admin' | 'customer' | 'developer'`
3506
+
3486
3507
  ### appObjects
3487
3508
 
3488
3509
  **PaginatedResponse<T>** (interface)
@@ -0,0 +1,73 @@
1
+ # App docs: the manual that ships with your app
2
+
3
+ Every app can carry a manual for the people who use it: how to set it up, how to use it day to day,
4
+ what its settings do, what to do when something looks wrong. The manual lives in the app's own repo,
5
+ ships with every release, and for first-party apps is published on
6
+ [docs.smartlinks.app](https://docs.smartlinks.app) straight from the stable release. Nobody copies it
7
+ anywhere: release the app and its manual is live.
8
+
9
+ ## Where it goes
10
+
11
+ ```
12
+ public/
13
+ app.manifest.json
14
+ docs/
15
+ index.md ← front page
16
+ setup.md
17
+ settings.md
18
+ images/
19
+ inbox.png
20
+ ```
21
+
22
+ `public/docs/` is copied into the build like any static file, so it reaches the CDN with the release:
23
+ `https://smartlinks.app/apps/<appId>/<channel>/docs/index.md`.
24
+
25
+ Keep internal notes (designs, plans, decisions) in `src/docs/` or anywhere outside `public/`.
26
+ Everything in `public/docs/` is public.
27
+
28
+ ## Declare it in the manifest
29
+
30
+ ```jsonc
31
+ // public/app.manifest.json
32
+ "docs": {
33
+ "pages": [
34
+ { "file": "docs/index.md", "title": "Messages", "description": "Send campaigns and answer people in one inbox.", "audience": "team" },
35
+ { "file": "docs/setup.md", "title": "Setting up", "description": "Senders, channels and who can reply.", "audience": "admin" },
36
+ { "file": "docs/settings.md", "title": "Settings", "audience": "admin" }
37
+ ]
38
+ }
39
+ ```
40
+
41
+ | Field | |
42
+ |---|---|
43
+ | `pages[].file` | Path in the build, relative to `public/`. |
44
+ | `pages[].title` | Title in the docs menu. |
45
+ | `pages[].description` | One sentence: what the page helps with. Shown in listings and search. |
46
+ | `pages[].audience` | `team` (staff using the app, default), `admin` (setting it up), `customer` (the public), `developer` (building on it). |
47
+ | `listed` | `false` keeps the manual off docs.smartlinks.app. Default `true`. |
48
+
49
+ The first page is the front page. Pages appear in the order listed.
50
+
51
+ ## Writing the pages
52
+
53
+ - Write for the person in front of the screen, in their words: "New campaign", not "the campaign
54
+ creation flow". Name buttons and screens exactly as the app shows them.
55
+ - One page per job: getting started, setting up, each main task, settings, troubleshooting.
56
+ - Short numbered steps for anything done in order.
57
+ - Images: put them in `public/docs/images/` and link them relatively (`![The inbox](images/inbox.png)`).
58
+ Links between pages are relative too (`[Setting up](setup.md)`). The docs site rewrites both.
59
+ - Start each page with a `# ` heading. No frontmatter needed: the manifest carries title and order.
60
+
61
+ ## Keep it current
62
+
63
+ Update the manual in the same change as the behaviour. Forge checks at release time: an app with no
64
+ `docs`, or a release whose code changed while `public/docs/` did not, gets a prompt to look at the
65
+ manual. It never blocks a release.
66
+
67
+ ## Related
68
+
69
+ - [`ai-guide.md`](ai-guide-template.md) is for the AI that configures the app, not for people. Keep
70
+ both: the AI guide says what to set, the manual says how to use it.
71
+ - The manifest's `adminViews`, `functions` (with `agent` for [agent tools](agent-tools.md)) and
72
+ `assistant` blocks describe the app to software. The docs site lists them on a generated
73
+ reference page; the manual is the human-written part.
@@ -507,6 +507,26 @@ should say and how the assistant changes config with undo: **[assistant-apps.md]
507
507
 
508
508
  ---
509
509
 
510
+ #### `docs`
511
+
512
+ The app's manual, for the people who use it: Markdown pages under `public/docs/`, shipped with every
513
+ release. For first-party apps, docs.smartlinks.app reads the stable release's pages directly, so
514
+ releasing the app publishes its manual.
515
+
516
+ ```jsonc
517
+ "docs": {
518
+ "pages": [
519
+ { "file": "docs/index.md", "title": "Messages", "description": "Send campaigns and answer people in one inbox.", "audience": "team" },
520
+ { "file": "docs/setup.md", "title": "Setting up", "audience": "admin" }
521
+ ]
522
+ }
523
+ ```
524
+
525
+ The first page is the front page. `audience` is `team` (default), `admin`, `customer` or `developer`.
526
+ `listed: false` keeps a manual off the docs site. What to write and how: **[app-docs.md](app-docs.md)**.
527
+
528
+ ---
529
+
510
530
  ## `app.admin.json`
511
531
 
512
532
  Fetched only by the admin UI and AI-assisted setup flows — never loaded on the public-facing page. Keep setup logic and configuration schemas here, not in the manifest.
package/dist/openapi.yaml CHANGED
@@ -22097,6 +22097,8 @@ components:
22097
22097
  $ref: "#/components/schemas/AppConnectorDeclaration"
22098
22098
  assistant:
22099
22099
  $ref: "#/components/schemas/AppAssistantDeclaration"
22100
+ docs:
22101
+ $ref: "#/components/schemas/AppDocsDeclaration"
22100
22102
  required:
22101
22103
  - name
22102
22104
  - version
@@ -22104,6 +22106,31 @@ components:
22104
22106
  - function
22105
22107
  - files
22106
22108
  - components
22109
+ AppDocsPage:
22110
+ type: object
22111
+ properties:
22112
+ file:
22113
+ type: string
22114
+ title:
22115
+ type: string
22116
+ description:
22117
+ type: string
22118
+ audience:
22119
+ $ref: "#/components/schemas/AppDocsAudience"
22120
+ required:
22121
+ - file
22122
+ - title
22123
+ AppDocsDeclaration:
22124
+ type: object
22125
+ properties:
22126
+ pages:
22127
+ type: array
22128
+ items:
22129
+ $ref: "#/components/schemas/AppDocsPage"
22130
+ listed:
22131
+ type: boolean
22132
+ required:
22133
+ - pages
22107
22134
  AppAssistantFile:
22108
22135
  type: object
22109
22136
  properties:
@@ -22593,6 +22620,13 @@ components:
22593
22620
  ServerFunctionMessageResult:
22594
22621
  type: object
22595
22622
  additionalProperties: true
22623
+ AppDocsAudience:
22624
+ type: string
22625
+ enum:
22626
+ - team
22627
+ - admin
22628
+ - customer
22629
+ - developer
22596
22630
  PaginatedResponse:
22597
22631
  type: object
22598
22632
  properties:
@@ -1351,8 +1351,37 @@ export interface AppManifest {
1351
1351
  * planned change set. See docs/assistant-apps.md. @see AppAssistantDeclaration
1352
1352
  */
1353
1353
  assistant?: AppAssistantDeclaration;
1354
+ /**
1355
+ * The app's manual: Markdown pages (and their images) under `public/docs/`, shipped with every
1356
+ * release. First-party apps' manuals are published on docs.smartlinks.app straight from the
1357
+ * stable release. See docs/app-docs.md. @see AppDocsDeclaration
1358
+ */
1359
+ docs?: AppDocsDeclaration;
1354
1360
  [key: string]: any;
1355
1361
  }
1362
+ /** Who a manual page is written for. */
1363
+ export type AppDocsAudience = 'team' | 'admin' | 'customer' | 'developer';
1364
+ /** One page of an app's manual. */
1365
+ export interface AppDocsPage {
1366
+ /**
1367
+ * Path of the Markdown file in the published build, relative to the app's root (`public/` in the
1368
+ * project): `docs/index.md`. Images it links with relative paths ship beside it (`docs/images/...`).
1369
+ */
1370
+ file: string;
1371
+ /** Page title, as it appears in the docs menu. */
1372
+ title: string;
1373
+ /** One sentence: what the page helps with. Used for listings and search results. */
1374
+ description?: string;
1375
+ /** Who it is for. Default `team` (the staff who use the app). */
1376
+ audience?: AppDocsAudience;
1377
+ }
1378
+ /** The `docs` block in `app.manifest.json`. */
1379
+ export interface AppDocsDeclaration {
1380
+ /** Pages in reading order. The first one is the manual's front page. */
1381
+ pages: AppDocsPage[];
1382
+ /** `false` keeps this manual off docs.smartlinks.app (it still ships with the app). Default `true`. */
1383
+ listed?: boolean;
1384
+ }
1356
1385
  /** One skill or knowledge file the app ships for the assistant. */
1357
1386
  export interface AppAssistantFile {
1358
1387
  /** Short id, unique within the app (`theme`, `pages`, `settings-schema`). */
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 2.1.23 | Generated: 2026-11-19T11:28:05.726Z
3
+ Version: 2.1.24 | Generated: 2026-11-19T13:27:14.982Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -3208,10 +3208,29 @@ interface AppManifest {
3208
3208
  headless?: AppHeadlessDeclaration;
3209
3209
  connector?: AppConnectorDeclaration;
3210
3210
  assistant?: AppAssistantDeclaration;
3211
+ docs?: AppDocsDeclaration;
3211
3212
  [key: string]: any;
3212
3213
  }
3213
3214
  ```
3214
3215
 
3216
+ **AppDocsPage** (interface)
3217
+ ```typescript
3218
+ interface AppDocsPage {
3219
+ file: string;
3220
+ title: string;
3221
+ description?: string;
3222
+ audience?: AppDocsAudience;
3223
+ }
3224
+ ```
3225
+
3226
+ **AppDocsDeclaration** (interface)
3227
+ ```typescript
3228
+ interface AppDocsDeclaration {
3229
+ pages: AppDocsPage[];
3230
+ listed?: boolean;
3231
+ }
3232
+ ```
3233
+
3215
3234
  **AppAssistantFile** (interface)
3216
3235
  ```typescript
3217
3236
  interface AppAssistantFile {
@@ -3483,6 +3502,8 @@ interface GetCollectionWidgetsOptions {
3483
3502
  type ServerFunctionFileInput = { base64: string; contentType: string }
3484
3503
  ```
3485
3504
 
3505
+ **AppDocsAudience** = `'team' | 'admin' | 'customer' | 'developer'`
3506
+
3486
3507
  ### appObjects
3487
3508
 
3488
3509
  **PaginatedResponse<T>** (interface)
@@ -0,0 +1,73 @@
1
+ # App docs: the manual that ships with your app
2
+
3
+ Every app can carry a manual for the people who use it: how to set it up, how to use it day to day,
4
+ what its settings do, what to do when something looks wrong. The manual lives in the app's own repo,
5
+ ships with every release, and for first-party apps is published on
6
+ [docs.smartlinks.app](https://docs.smartlinks.app) straight from the stable release. Nobody copies it
7
+ anywhere: release the app and its manual is live.
8
+
9
+ ## Where it goes
10
+
11
+ ```
12
+ public/
13
+ app.manifest.json
14
+ docs/
15
+ index.md ← front page
16
+ setup.md
17
+ settings.md
18
+ images/
19
+ inbox.png
20
+ ```
21
+
22
+ `public/docs/` is copied into the build like any static file, so it reaches the CDN with the release:
23
+ `https://smartlinks.app/apps/<appId>/<channel>/docs/index.md`.
24
+
25
+ Keep internal notes (designs, plans, decisions) in `src/docs/` or anywhere outside `public/`.
26
+ Everything in `public/docs/` is public.
27
+
28
+ ## Declare it in the manifest
29
+
30
+ ```jsonc
31
+ // public/app.manifest.json
32
+ "docs": {
33
+ "pages": [
34
+ { "file": "docs/index.md", "title": "Messages", "description": "Send campaigns and answer people in one inbox.", "audience": "team" },
35
+ { "file": "docs/setup.md", "title": "Setting up", "description": "Senders, channels and who can reply.", "audience": "admin" },
36
+ { "file": "docs/settings.md", "title": "Settings", "audience": "admin" }
37
+ ]
38
+ }
39
+ ```
40
+
41
+ | Field | |
42
+ |---|---|
43
+ | `pages[].file` | Path in the build, relative to `public/`. |
44
+ | `pages[].title` | Title in the docs menu. |
45
+ | `pages[].description` | One sentence: what the page helps with. Shown in listings and search. |
46
+ | `pages[].audience` | `team` (staff using the app, default), `admin` (setting it up), `customer` (the public), `developer` (building on it). |
47
+ | `listed` | `false` keeps the manual off docs.smartlinks.app. Default `true`. |
48
+
49
+ The first page is the front page. Pages appear in the order listed.
50
+
51
+ ## Writing the pages
52
+
53
+ - Write for the person in front of the screen, in their words: "New campaign", not "the campaign
54
+ creation flow". Name buttons and screens exactly as the app shows them.
55
+ - One page per job: getting started, setting up, each main task, settings, troubleshooting.
56
+ - Short numbered steps for anything done in order.
57
+ - Images: put them in `public/docs/images/` and link them relatively (`![The inbox](images/inbox.png)`).
58
+ Links between pages are relative too (`[Setting up](setup.md)`). The docs site rewrites both.
59
+ - Start each page with a `# ` heading. No frontmatter needed: the manifest carries title and order.
60
+
61
+ ## Keep it current
62
+
63
+ Update the manual in the same change as the behaviour. Forge checks at release time: an app with no
64
+ `docs`, or a release whose code changed while `public/docs/` did not, gets a prompt to look at the
65
+ manual. It never blocks a release.
66
+
67
+ ## Related
68
+
69
+ - [`ai-guide.md`](ai-guide-template.md) is for the AI that configures the app, not for people. Keep
70
+ both: the AI guide says what to set, the manual says how to use it.
71
+ - The manifest's `adminViews`, `functions` (with `agent` for [agent tools](agent-tools.md)) and
72
+ `assistant` blocks describe the app to software. The docs site lists them on a generated
73
+ reference page; the manual is the human-written part.
@@ -507,6 +507,26 @@ should say and how the assistant changes config with undo: **[assistant-apps.md]
507
507
 
508
508
  ---
509
509
 
510
+ #### `docs`
511
+
512
+ The app's manual, for the people who use it: Markdown pages under `public/docs/`, shipped with every
513
+ release. For first-party apps, docs.smartlinks.app reads the stable release's pages directly, so
514
+ releasing the app publishes its manual.
515
+
516
+ ```jsonc
517
+ "docs": {
518
+ "pages": [
519
+ { "file": "docs/index.md", "title": "Messages", "description": "Send campaigns and answer people in one inbox.", "audience": "team" },
520
+ { "file": "docs/setup.md", "title": "Setting up", "audience": "admin" }
521
+ ]
522
+ }
523
+ ```
524
+
525
+ The first page is the front page. `audience` is `team` (default), `admin`, `customer` or `developer`.
526
+ `listed: false` keeps a manual off the docs site. What to write and how: **[app-docs.md](app-docs.md)**.
527
+
528
+ ---
529
+
510
530
  ## `app.admin.json`
511
531
 
512
532
  Fetched only by the admin UI and AI-assisted setup flows — never loaded on the public-facing page. Keep setup logic and configuration schemas here, not in the manifest.
package/openapi.yaml CHANGED
@@ -22097,6 +22097,8 @@ components:
22097
22097
  $ref: "#/components/schemas/AppConnectorDeclaration"
22098
22098
  assistant:
22099
22099
  $ref: "#/components/schemas/AppAssistantDeclaration"
22100
+ docs:
22101
+ $ref: "#/components/schemas/AppDocsDeclaration"
22100
22102
  required:
22101
22103
  - name
22102
22104
  - version
@@ -22104,6 +22106,31 @@ components:
22104
22106
  - function
22105
22107
  - files
22106
22108
  - components
22109
+ AppDocsPage:
22110
+ type: object
22111
+ properties:
22112
+ file:
22113
+ type: string
22114
+ title:
22115
+ type: string
22116
+ description:
22117
+ type: string
22118
+ audience:
22119
+ $ref: "#/components/schemas/AppDocsAudience"
22120
+ required:
22121
+ - file
22122
+ - title
22123
+ AppDocsDeclaration:
22124
+ type: object
22125
+ properties:
22126
+ pages:
22127
+ type: array
22128
+ items:
22129
+ $ref: "#/components/schemas/AppDocsPage"
22130
+ listed:
22131
+ type: boolean
22132
+ required:
22133
+ - pages
22107
22134
  AppAssistantFile:
22108
22135
  type: object
22109
22136
  properties:
@@ -22593,6 +22620,13 @@ components:
22593
22620
  ServerFunctionMessageResult:
22594
22621
  type: object
22595
22622
  additionalProperties: true
22623
+ AppDocsAudience:
22624
+ type: string
22625
+ enum:
22626
+ - team
22627
+ - admin
22628
+ - customer
22629
+ - developer
22596
22630
  PaginatedResponse:
22597
22631
  type: object
22598
22632
  properties:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "2.1.23",
3
+ "version": "2.1.24",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",