From 53d6abedd0ffc3c7c0a69ac55838aa16b2d7958c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 08:28:06 +0000 Subject: [PATCH] Document List Deep Links CP-9235 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xpSo2UobPNHBqkyNXT --- openapi.yaml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ server.js | 5 +++++ 2 files changed, 66 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 7badd14..6409140 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1035,6 +1035,32 @@ paths: $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/ForbiddenError' + /deep_links: + get: + tags: [Announcements] + summary: List Deep Links + description: | + The pages a link can open in the signed-in person's own organisation, such as Manage Checklists + (`checklists`) or Create a contact (`create_contact`): every link in Makerble's deep links catalogue, the + same links the User Guide uses as https://www.makerble.com/deeplink/. Each has its `name`, a readable + `label` in on-screen words, the `group` it belongs to (Contacts, Events, Surveys, ...) and the `role` the + person needs: `user` (anyone signed in), `member` (an Editor, Reporter or Observer of the organisation or one + of its Workspaces) or `editor` (an Editor of the organisation). A `record` link opens one record, such as the + first Contact the person can see. Use a `name` as an announcement's `button_deep_link`. The list only changes + with a release, so it comes on one page. System Access users only; anyone else gets 403. + operationId: listDeepLinks + security: [{tokenAuth: []}] + responses: + "200": + description: Every deep link, on one page + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeepLinks' + "401": + $ref: '#/components/responses/Unauthorized' + "403": + $ref: '#/components/responses/ForbiddenError' /announcements/{id}: parameters: - name: id @@ -18292,6 +18318,41 @@ components: type: string description: type: string + DeepLink: + type: object + properties: + name: + type: string + example: checklists + description: The link's name. Never changes, since User Guide articles link to it. + label: + type: string + example: Checklists + group: + type: string + example: Checklists + role: + type: string + enum: [user, member, editor] + description: The role the person needs in their organisation to open the page. + record: + type: boolean + description: True when the link opens one record (the first the person can see), falling back to a page. + PaginatedDeepLinks: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/DeepLink' PaginatedAnnouncementFacts: type: object properties: diff --git a/server.js b/server.js index 32a070a..69c7cd3 100644 --- a/server.js +++ b/server.js @@ -4531,6 +4531,11 @@ function buildDocsPage() { { code: "401", cls: "response-4xx", desc: "Missing or invalid token" }, { code: "403", cls: "response-4xx", desc: "The user doesn't have System Access" } ], "A fact about a person's organisations takes across: for someone in several organisations, whether it must hold for any one of them (any_organisation, the default), every one (all_organisations) or the oldest one they belong to (first_organisation). Facts are written in Makerble's code, so this list only changes with a release.")} + ${endpointCard("GET", "/deep_links", "List Deep Links", true, [], [ + { code: "200", cls: "response-2xx", desc: "Every deep link, on one page, each with name, label, group, role (user, member or editor) and record" }, + { code: "401", cls: "response-4xx", desc: "Missing or invalid token" }, + { code: "403", cls: "response-4xx", desc: "The user doesn't have System Access" } + ], "The pages a link can open in the person's own organisation, such as Manage Checklists (checklists), the same links the User Guide uses as /deeplink/<name>. Use a name as an announcement's button_deep_link. The list only changes with a release.")} ${endpointCard("GET", "/announcements/{id}", "Get an Announcement", true, [ { name: "id", in: "path", type: "integer", required: true, desc: "Announcement ID" } ], [