@keystrokehq/roam 0.1.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 +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-group-members.cjs +20 -0
- package/dist/actions/add-group-members.cjs.map +1 -0
- package/dist/actions/add-group-members.d.cts +9 -0
- package/dist/actions/add-group-members.d.cts.map +1 -0
- package/dist/actions/add-group-members.d.mts +9 -0
- package/dist/actions/add-group-members.d.mts.map +1 -0
- package/dist/actions/add-group-members.mjs +17 -0
- package/dist/actions/add-group-members.mjs.map +1 -0
- package/dist/actions/add-reaction.cjs +28 -0
- package/dist/actions/add-reaction.cjs.map +1 -0
- package/dist/actions/add-reaction.d.cts +9 -0
- package/dist/actions/add-reaction.d.cts.map +1 -0
- package/dist/actions/add-reaction.d.mts +9 -0
- package/dist/actions/add-reaction.d.mts.map +1 -0
- package/dist/actions/add-reaction.mjs +25 -0
- package/dist/actions/add-reaction.mjs.map +1 -0
- package/dist/actions/create-group.cjs +28 -0
- package/dist/actions/create-group.cjs.map +1 -0
- package/dist/actions/create-group.d.cts +9 -0
- package/dist/actions/create-group.d.cts.map +1 -0
- package/dist/actions/create-group.d.mts +9 -0
- package/dist/actions/create-group.d.mts.map +1 -0
- package/dist/actions/create-group.mjs +25 -0
- package/dist/actions/create-group.mjs.map +1 -0
- package/dist/actions/create-roam-scim-group.cjs +26 -0
- package/dist/actions/create-roam-scim-group.cjs.map +1 -0
- package/dist/actions/create-roam-scim-group.d.cts +9 -0
- package/dist/actions/create-roam-scim-group.d.cts.map +1 -0
- package/dist/actions/create-roam-scim-group.d.mts +9 -0
- package/dist/actions/create-roam-scim-group.d.mts.map +1 -0
- package/dist/actions/create-roam-scim-group.mjs +23 -0
- package/dist/actions/create-roam-scim-group.mjs.map +1 -0
- package/dist/actions/create-user.cjs +51 -0
- package/dist/actions/create-user.cjs.map +1 -0
- package/dist/actions/create-user.d.cts +9 -0
- package/dist/actions/create-user.d.cts.map +1 -0
- package/dist/actions/create-user.d.mts +9 -0
- package/dist/actions/create-user.d.mts.map +1 -0
- package/dist/actions/create-user.mjs +50 -0
- package/dist/actions/create-user.mjs.map +1 -0
- package/dist/actions/delete-group.cjs +19 -0
- package/dist/actions/delete-group.cjs.map +1 -0
- package/dist/actions/delete-group.d.cts +9 -0
- package/dist/actions/delete-group.d.cts.map +1 -0
- package/dist/actions/delete-group.d.mts +9 -0
- package/dist/actions/delete-group.d.mts.map +1 -0
- package/dist/actions/delete-group.mjs +16 -0
- package/dist/actions/delete-group.mjs.map +1 -0
- package/dist/actions/delete-user.cjs +19 -0
- package/dist/actions/delete-user.cjs.map +1 -0
- package/dist/actions/delete-user.d.cts +9 -0
- package/dist/actions/delete-user.d.cts.map +1 -0
- package/dist/actions/delete-user.d.mts +9 -0
- package/dist/actions/delete-user.d.mts.map +1 -0
- package/dist/actions/delete-user.mjs +16 -0
- package/dist/actions/delete-user.mjs.map +1 -0
- package/dist/actions/get-address-info.cjs +25 -0
- package/dist/actions/get-address-info.cjs.map +1 -0
- package/dist/actions/get-address-info.d.cts +9 -0
- package/dist/actions/get-address-info.d.cts.map +1 -0
- package/dist/actions/get-address-info.d.mts +9 -0
- package/dist/actions/get-address-info.d.mts.map +1 -0
- package/dist/actions/get-address-info.mjs +24 -0
- package/dist/actions/get-address-info.mjs.map +1 -0
- package/dist/actions/get-chat-history.cjs +35 -0
- package/dist/actions/get-chat-history.cjs.map +1 -0
- package/dist/actions/get-chat-history.d.cts +9 -0
- package/dist/actions/get-chat-history.d.cts.map +1 -0
- package/dist/actions/get-chat-history.d.mts +9 -0
- package/dist/actions/get-chat-history.d.mts.map +1 -0
- package/dist/actions/get-chat-history.mjs +34 -0
- package/dist/actions/get-chat-history.mjs.map +1 -0
- package/dist/actions/get-meeting-link.cjs +23 -0
- package/dist/actions/get-meeting-link.cjs.map +1 -0
- package/dist/actions/get-meeting-link.d.cts +9 -0
- package/dist/actions/get-meeting-link.d.cts.map +1 -0
- package/dist/actions/get-meeting-link.d.mts +9 -0
- package/dist/actions/get-meeting-link.d.mts.map +1 -0
- package/dist/actions/get-meeting-link.mjs +20 -0
- package/dist/actions/get-meeting-link.mjs.map +1 -0
- package/dist/actions/get-resource-types.cjs +27 -0
- package/dist/actions/get-resource-types.cjs.map +1 -0
- package/dist/actions/get-resource-types.d.cts +9 -0
- package/dist/actions/get-resource-types.d.cts.map +1 -0
- package/dist/actions/get-resource-types.d.mts +9 -0
- package/dist/actions/get-resource-types.d.mts.map +1 -0
- package/dist/actions/get-resource-types.mjs +26 -0
- package/dist/actions/get-resource-types.mjs.map +1 -0
- package/dist/actions/get-roam-scim-config.cjs +49 -0
- package/dist/actions/get-roam-scim-config.cjs.map +1 -0
- package/dist/actions/get-roam-scim-config.d.cts +9 -0
- package/dist/actions/get-roam-scim-config.d.cts.map +1 -0
- package/dist/actions/get-roam-scim-config.d.mts +9 -0
- package/dist/actions/get-roam-scim-config.d.mts.map +1 -0
- package/dist/actions/get-roam-scim-config.mjs +48 -0
- package/dist/actions/get-roam-scim-config.mjs.map +1 -0
- package/dist/actions/get-scim-schema.cjs +23 -0
- package/dist/actions/get-scim-schema.cjs.map +1 -0
- package/dist/actions/get-scim-schema.d.cts +9 -0
- package/dist/actions/get-scim-schema.d.cts.map +1 -0
- package/dist/actions/get-scim-schema.d.mts +9 -0
- package/dist/actions/get-scim-schema.d.mts.map +1 -0
- package/dist/actions/get-scim-schema.mjs +20 -0
- package/dist/actions/get-scim-schema.mjs.map +1 -0
- package/dist/actions/get-scim-user.cjs +43 -0
- package/dist/actions/get-scim-user.cjs.map +1 -0
- package/dist/actions/get-scim-user.d.cts +9 -0
- package/dist/actions/get-scim-user.d.cts.map +1 -0
- package/dist/actions/get-scim-user.d.mts +9 -0
- package/dist/actions/get-scim-user.d.mts.map +1 -0
- package/dist/actions/get-scim-user.mjs +42 -0
- package/dist/actions/get-scim-user.mjs.map +1 -0
- package/dist/actions/get-test.cjs +16 -0
- package/dist/actions/get-test.cjs.map +1 -0
- package/dist/actions/get-test.d.cts +9 -0
- package/dist/actions/get-test.d.cts.map +1 -0
- package/dist/actions/get-test.d.mts +9 -0
- package/dist/actions/get-test.d.mts.map +1 -0
- package/dist/actions/get-test.mjs +13 -0
- package/dist/actions/get-test.mjs.map +1 -0
- package/dist/actions/get-token-info.cjs +26 -0
- package/dist/actions/get-token-info.cjs.map +1 -0
- package/dist/actions/get-token-info.d.cts +9 -0
- package/dist/actions/get-token-info.d.cts.map +1 -0
- package/dist/actions/get-token-info.d.mts +9 -0
- package/dist/actions/get-token-info.d.mts.map +1 -0
- package/dist/actions/get-token-info.mjs +25 -0
- package/dist/actions/get-token-info.mjs.map +1 -0
- package/dist/actions/get-user-info.cjs +27 -0
- package/dist/actions/get-user-info.cjs.map +1 -0
- package/dist/actions/get-user-info.d.cts +9 -0
- package/dist/actions/get-user-info.d.cts.map +1 -0
- package/dist/actions/get-user-info.d.mts +9 -0
- package/dist/actions/get-user-info.d.mts.map +1 -0
- package/dist/actions/get-user-info.mjs +24 -0
- package/dist/actions/get-user-info.mjs.map +1 -0
- package/dist/actions/index.cjs +79 -0
- package/dist/actions/index.d.cts +40 -0
- package/dist/actions/index.d.mts +40 -0
- package/dist/actions/index.mjs +40 -0
- package/dist/actions/list-chats.cjs +28 -0
- package/dist/actions/list-chats.cjs.map +1 -0
- package/dist/actions/list-chats.d.cts +9 -0
- package/dist/actions/list-chats.d.cts.map +1 -0
- package/dist/actions/list-chats.d.mts +9 -0
- package/dist/actions/list-chats.d.mts.map +1 -0
- package/dist/actions/list-chats.mjs +27 -0
- package/dist/actions/list-chats.mjs.map +1 -0
- package/dist/actions/list-group-members.cjs +27 -0
- package/dist/actions/list-group-members.cjs.map +1 -0
- package/dist/actions/list-group-members.d.cts +9 -0
- package/dist/actions/list-group-members.d.cts.map +1 -0
- package/dist/actions/list-group-members.d.mts +9 -0
- package/dist/actions/list-group-members.d.mts.map +1 -0
- package/dist/actions/list-group-members.mjs +26 -0
- package/dist/actions/list-group-members.mjs.map +1 -0
- package/dist/actions/list-groups.cjs +38 -0
- package/dist/actions/list-groups.cjs.map +1 -0
- package/dist/actions/list-groups.d.cts +9 -0
- package/dist/actions/list-groups.d.cts.map +1 -0
- package/dist/actions/list-groups.d.mts +9 -0
- package/dist/actions/list-groups.d.mts.map +1 -0
- package/dist/actions/list-groups.mjs +37 -0
- package/dist/actions/list-groups.mjs.map +1 -0
- package/dist/actions/list-lobbies.cjs +24 -0
- package/dist/actions/list-lobbies.cjs.map +1 -0
- package/dist/actions/list-lobbies.d.cts +9 -0
- package/dist/actions/list-lobbies.d.cts.map +1 -0
- package/dist/actions/list-lobbies.d.mts +9 -0
- package/dist/actions/list-lobbies.d.mts.map +1 -0
- package/dist/actions/list-lobbies.mjs +23 -0
- package/dist/actions/list-lobbies.mjs.map +1 -0
- package/dist/actions/list-meetings.cjs +38 -0
- package/dist/actions/list-meetings.cjs.map +1 -0
- package/dist/actions/list-meetings.d.cts +9 -0
- package/dist/actions/list-meetings.d.cts.map +1 -0
- package/dist/actions/list-meetings.d.mts +9 -0
- package/dist/actions/list-meetings.d.mts.map +1 -0
- package/dist/actions/list-meetings.mjs +37 -0
- package/dist/actions/list-meetings.mjs.map +1 -0
- package/dist/actions/list-recordings.cjs +31 -0
- package/dist/actions/list-recordings.cjs.map +1 -0
- package/dist/actions/list-recordings.d.cts +9 -0
- package/dist/actions/list-recordings.d.cts.map +1 -0
- package/dist/actions/list-recordings.d.mts +9 -0
- package/dist/actions/list-recordings.d.mts.map +1 -0
- package/dist/actions/list-recordings.mjs +30 -0
- package/dist/actions/list-recordings.mjs.map +1 -0
- package/dist/actions/list-roam-scim-users.cjs +54 -0
- package/dist/actions/list-roam-scim-users.cjs.map +1 -0
- package/dist/actions/list-roam-scim-users.d.cts +9 -0
- package/dist/actions/list-roam-scim-users.d.cts.map +1 -0
- package/dist/actions/list-roam-scim-users.d.mts +9 -0
- package/dist/actions/list-roam-scim-users.d.mts.map +1 -0
- package/dist/actions/list-roam-scim-users.mjs +53 -0
- package/dist/actions/list-roam-scim-users.mjs.map +1 -0
- package/dist/actions/list-schemas.cjs +27 -0
- package/dist/actions/list-schemas.cjs.map +1 -0
- package/dist/actions/list-schemas.d.cts +9 -0
- package/dist/actions/list-schemas.d.cts.map +1 -0
- package/dist/actions/list-schemas.d.mts +9 -0
- package/dist/actions/list-schemas.d.mts.map +1 -0
- package/dist/actions/list-schemas.mjs +26 -0
- package/dist/actions/list-schemas.mjs.map +1 -0
- package/dist/actions/list-transcripts.cjs +36 -0
- package/dist/actions/list-transcripts.cjs.map +1 -0
- package/dist/actions/list-transcripts.d.cts +9 -0
- package/dist/actions/list-transcripts.d.cts.map +1 -0
- package/dist/actions/list-transcripts.d.mts +9 -0
- package/dist/actions/list-transcripts.d.mts.map +1 -0
- package/dist/actions/list-transcripts.mjs +35 -0
- package/dist/actions/list-transcripts.mjs.map +1 -0
- package/dist/actions/list-user-audit-log.cjs +35 -0
- package/dist/actions/list-user-audit-log.cjs.map +1 -0
- package/dist/actions/list-user-audit-log.d.cts +9 -0
- package/dist/actions/list-user-audit-log.d.cts.map +1 -0
- package/dist/actions/list-user-audit-log.d.mts +9 -0
- package/dist/actions/list-user-audit-log.d.mts.map +1 -0
- package/dist/actions/list-user-audit-log.mjs +34 -0
- package/dist/actions/list-user-audit-log.mjs.map +1 -0
- package/dist/actions/list-users.cjs +31 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +30 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/lookup-user.cjs +24 -0
- package/dist/actions/lookup-user.cjs.map +1 -0
- package/dist/actions/lookup-user.d.cts +9 -0
- package/dist/actions/lookup-user.d.cts.map +1 -0
- package/dist/actions/lookup-user.d.mts +9 -0
- package/dist/actions/lookup-user.d.mts.map +1 -0
- package/dist/actions/lookup-user.mjs +21 -0
- package/dist/actions/lookup-user.mjs.map +1 -0
- package/dist/actions/patch-group.cjs +44 -0
- package/dist/actions/patch-group.cjs.map +1 -0
- package/dist/actions/patch-group.d.cts +9 -0
- package/dist/actions/patch-group.d.cts.map +1 -0
- package/dist/actions/patch-group.d.mts +9 -0
- package/dist/actions/patch-group.d.mts.map +1 -0
- package/dist/actions/patch-group.mjs +43 -0
- package/dist/actions/patch-group.mjs.map +1 -0
- package/dist/actions/patch-user.cjs +64 -0
- package/dist/actions/patch-user.cjs.map +1 -0
- package/dist/actions/patch-user.d.cts +9 -0
- package/dist/actions/patch-user.d.cts.map +1 -0
- package/dist/actions/patch-user.d.mts +9 -0
- package/dist/actions/patch-user.d.mts.map +1 -0
- package/dist/actions/patch-user.mjs +63 -0
- package/dist/actions/patch-user.mjs.map +1 -0
- package/dist/actions/post-chat.cjs +30 -0
- package/dist/actions/post-chat.cjs.map +1 -0
- package/dist/actions/post-chat.d.cts +9 -0
- package/dist/actions/post-chat.d.cts.map +1 -0
- package/dist/actions/post-chat.d.mts +9 -0
- package/dist/actions/post-chat.d.mts.map +1 -0
- package/dist/actions/post-chat.mjs +27 -0
- package/dist/actions/post-chat.mjs.map +1 -0
- package/dist/actions/remove-group-members.cjs +19 -0
- package/dist/actions/remove-group-members.cjs.map +1 -0
- package/dist/actions/remove-group-members.d.cts +9 -0
- package/dist/actions/remove-group-members.d.cts.map +1 -0
- package/dist/actions/remove-group-members.d.mts +9 -0
- package/dist/actions/remove-group-members.d.mts.map +1 -0
- package/dist/actions/remove-group-members.mjs +16 -0
- package/dist/actions/remove-group-members.mjs.map +1 -0
- package/dist/actions/replace-group.cjs +36 -0
- package/dist/actions/replace-group.cjs.map +1 -0
- package/dist/actions/replace-group.d.cts +9 -0
- package/dist/actions/replace-group.d.cts.map +1 -0
- package/dist/actions/replace-group.d.mts +9 -0
- package/dist/actions/replace-group.d.mts.map +1 -0
- package/dist/actions/replace-group.mjs +35 -0
- package/dist/actions/replace-group.mjs.map +1 -0
- package/dist/actions/replace-user.cjs +52 -0
- package/dist/actions/replace-user.cjs.map +1 -0
- package/dist/actions/replace-user.d.cts +9 -0
- package/dist/actions/replace-user.d.cts.map +1 -0
- package/dist/actions/replace-user.d.mts +9 -0
- package/dist/actions/replace-user.d.mts.map +1 -0
- package/dist/actions/replace-user.mjs +51 -0
- package/dist/actions/replace-user.mjs.map +1 -0
- package/dist/actions/send-message.cjs +28 -0
- package/dist/actions/send-message.cjs.map +1 -0
- package/dist/actions/send-message.d.cts +9 -0
- package/dist/actions/send-message.d.cts.map +1 -0
- package/dist/actions/send-message.d.mts +9 -0
- package/dist/actions/send-message.d.mts.map +1 -0
- package/dist/actions/send-message.mjs +25 -0
- package/dist/actions/send-message.mjs.map +1 -0
- package/dist/actions/send-typing.cjs +19 -0
- package/dist/actions/send-typing.cjs.map +1 -0
- package/dist/actions/send-typing.d.cts +9 -0
- package/dist/actions/send-typing.d.cts.map +1 -0
- package/dist/actions/send-typing.d.mts +9 -0
- package/dist/actions/send-typing.d.mts.map +1 -0
- package/dist/actions/send-typing.mjs +16 -0
- package/dist/actions/send-typing.mjs.map +1 -0
- package/dist/actions/update-meeting-link.cjs +22 -0
- package/dist/actions/update-meeting-link.cjs.map +1 -0
- package/dist/actions/update-meeting-link.d.cts +9 -0
- package/dist/actions/update-meeting-link.d.cts.map +1 -0
- package/dist/actions/update-meeting-link.d.mts +9 -0
- package/dist/actions/update-meeting-link.d.mts.map +1 -0
- package/dist/actions/update-meeting-link.mjs +19 -0
- package/dist/actions/update-meeting-link.mjs.map +1 -0
- package/dist/actions/upload-item.cjs +33 -0
- package/dist/actions/upload-item.cjs.map +1 -0
- package/dist/actions/upload-item.d.cts +9 -0
- package/dist/actions/upload-item.d.cts.map +1 -0
- package/dist/actions/upload-item.d.mts +9 -0
- package/dist/actions/upload-item.d.mts.map +1 -0
- package/dist/actions/upload-item.mjs +30 -0
- package/dist/actions/upload-item.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +84 -0
- package/dist/index.d.cts +42 -0
- package/dist/index.d.mts +42 -0
- package/dist/index.mjs +43 -0
- package/package.json +49 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-roam-scim-users.ts
|
|
4
|
+
const RoamListRoamScimUsersInput = z.object({
|
|
5
|
+
count: z.number().int().default(100).describe("The maximum number of users to return per page. Use this for pagination to control page size.").optional(),
|
|
6
|
+
filter: z.string().describe("A SCIM filter expression to narrow down results. For example, 'userName eq \"alice@example.com\"' to find a specific user. Supports filtering by userName, name, emails, and active attributes.").optional(),
|
|
7
|
+
start_index: z.number().int().default(1).describe("The 1-based index of the first result to return. Use this for pagination to retrieve subsequent pages of results.").optional()
|
|
8
|
+
}).describe("Request schema for listing users via SCIM 2.0.\n\nSupports pagination via startIndex and count parameters, as well as\nfiltering by user attributes using SCIM filter expressions.");
|
|
9
|
+
const RoamListRoamScimUsers_UserMetaSchema = z.object({
|
|
10
|
+
created: z.string().describe("The date and time the user was created (ISO 8601 format).").nullable().optional(),
|
|
11
|
+
location: z.string().describe("The URI of the user resource.").nullable().optional(),
|
|
12
|
+
lastModified: z.string().describe("The date and time the user was last modified (ISO 8601 format).").nullable().optional(),
|
|
13
|
+
resourceType: z.string().describe("The type of resource (User).").nullable().optional()
|
|
14
|
+
}).describe("Metadata about the SCIM user resource.");
|
|
15
|
+
const RoamListRoamScimUsers_UserNameSchema = z.object({
|
|
16
|
+
givenName: z.string().describe("The first name of the user.").nullable().optional(),
|
|
17
|
+
familyName: z.string().describe("The last name of the user.").nullable().optional()
|
|
18
|
+
}).describe("Name component of a SCIM user.");
|
|
19
|
+
const RoamListRoamScimUsers_EmailValueSchema = z.object({
|
|
20
|
+
type: z.string().describe("Type of email address (e.g., 'work').").nullable().optional(),
|
|
21
|
+
value: z.string().describe("Email address value.").nullable().optional(),
|
|
22
|
+
primary: z.boolean().describe("Whether this is the primary email address.").nullable().optional()
|
|
23
|
+
}).describe("Email address in the SCIM user resource.");
|
|
24
|
+
const RoamListRoamScimUsers_RoamUserExtensionSchema = z.object({ role: z.string().describe("The user's role in Roam (e.g., 'User' or 'Admin').").nullable().optional() }).describe("Roam-specific SCIM extension for user resources.");
|
|
25
|
+
const RoamListRoamScimUsers_UserResourceSchema = z.object({
|
|
26
|
+
id: z.string().describe("The unique identifier for the user in Roam (SCIM ID / Person ID).").nullable().optional(),
|
|
27
|
+
meta: RoamListRoamScimUsers_UserMetaSchema.nullable().optional(),
|
|
28
|
+
name: RoamListRoamScimUsers_UserNameSchema.nullable().optional(),
|
|
29
|
+
active: z.boolean().describe("Whether the user account is active. True = active, False = archived.").nullable().optional(),
|
|
30
|
+
emails: z.array(RoamListRoamScimUsers_EmailValueSchema).describe("List of email addresses for the user.").nullable().optional(),
|
|
31
|
+
schemas: z.array(z.string()).describe("List of SCIM schema URIs that describe the user resource.").nullable().optional(),
|
|
32
|
+
userName: z.string().describe("The username, typically the primary email address of the user.").nullable().optional(),
|
|
33
|
+
externalId: z.string().describe("External identifier from the identity provider (if synced via SCIM).").nullable().optional(),
|
|
34
|
+
displayName: z.string().describe("The display name of the user (typically firstName lastName).").nullable().optional(),
|
|
35
|
+
"urn:ro.am:params:scim:schemas:extension:roam:2.0:User": RoamListRoamScimUsers_RoamUserExtensionSchema.nullable().optional()
|
|
36
|
+
}).describe("A single user resource in the SCIM list response.");
|
|
37
|
+
const roamListRoamScimUsers = action("ROAM_LIST_ROAM_SCIM_USERS", {
|
|
38
|
+
slug: "roam-list-roam-scim-users",
|
|
39
|
+
name: "List users (SCIM)",
|
|
40
|
+
description: "Tool to list users in your Roam organization using SCIM 2.0 protocol. Use when you need to retrieve a paginated list of users in your Roam workspace via the SCIM 2.0 API for identity provider integration. Supports pagination via startIndex and count parameters, as well as filtering by user attributes using SCIM filter expressions. Endpoint: GET /scim/v2/Users",
|
|
41
|
+
input: RoamListRoamScimUsersInput,
|
|
42
|
+
output: z.object({
|
|
43
|
+
schemas: z.array(z.string()).describe("List of SCIM schema URIs used in the response.").nullable().optional(),
|
|
44
|
+
Resources: z.array(RoamListRoamScimUsers_UserResourceSchema).describe("List of user resources matching the query.").nullable().optional(),
|
|
45
|
+
startIndex: z.number().int().describe("The 1-based index of the first result in the current page.").nullable().optional(),
|
|
46
|
+
itemsPerPage: z.number().int().describe("The number of users returned in this page.").nullable().optional(),
|
|
47
|
+
totalResults: z.number().int().describe("The total number of users matching the query.").nullable().optional()
|
|
48
|
+
}).describe("Response schema for listing users via SCIM 2.0.\n\nReturns a paginated list of user resources with total count information.")
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
export { roamListRoamScimUsers };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=list-roam-scim-users.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-roam-scim-users.mjs","names":[],"sources":["../../src/actions/list-roam-scim-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListRoamScimUsersInput: z.ZodTypeAny = z.object({\n count: z.number().int().default(100).describe(\"The maximum number of users to return per page. Use this for pagination to control page size.\").optional(),\n filter: z.string().describe(\"A SCIM filter expression to narrow down results. For example, 'userName eq \\\"alice@example.com\\\"' to find a specific user. Supports filtering by userName, name, emails, and active attributes.\").optional(),\n start_index: z.number().int().default(1).describe(\"The 1-based index of the first result to return. Use this for pagination to retrieve subsequent pages of results.\").optional(),\n}).describe(\"Request schema for listing users via SCIM 2.0.\\n\\nSupports pagination via startIndex and count parameters, as well as\\nfiltering by user attributes using SCIM filter expressions.\");\nconst RoamListRoamScimUsers_UserMetaSchema: z.ZodTypeAny = z.object({\n created: z.string().describe(\"The date and time the user was created (ISO 8601 format).\").nullable().optional(),\n location: z.string().describe(\"The URI of the user resource.\").nullable().optional(),\n lastModified: z.string().describe(\"The date and time the user was last modified (ISO 8601 format).\").nullable().optional(),\n resourceType: z.string().describe(\"The type of resource (User).\").nullable().optional(),\n}).describe(\"Metadata about the SCIM user resource.\");\nconst RoamListRoamScimUsers_UserNameSchema: z.ZodTypeAny = z.object({\n givenName: z.string().describe(\"The first name of the user.\").nullable().optional(),\n familyName: z.string().describe(\"The last name of the user.\").nullable().optional(),\n}).describe(\"Name component of a SCIM user.\");\nconst RoamListRoamScimUsers_EmailValueSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of email address (e.g., 'work').\").nullable().optional(),\n value: z.string().describe(\"Email address value.\").nullable().optional(),\n primary: z.boolean().describe(\"Whether this is the primary email address.\").nullable().optional(),\n}).describe(\"Email address in the SCIM user resource.\");\nconst RoamListRoamScimUsers_RoamUserExtensionSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"The user's role in Roam (e.g., 'User' or 'Admin').\").nullable().optional(),\n}).describe(\"Roam-specific SCIM extension for user resources.\");\nconst RoamListRoamScimUsers_UserResourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the user in Roam (SCIM ID / Person ID).\").nullable().optional(),\n meta: RoamListRoamScimUsers_UserMetaSchema.nullable().optional(),\n name: RoamListRoamScimUsers_UserNameSchema.nullable().optional(),\n active: z.boolean().describe(\"Whether the user account is active. True = active, False = archived.\").nullable().optional(),\n emails: z.array(RoamListRoamScimUsers_EmailValueSchema).describe(\"List of email addresses for the user.\").nullable().optional(),\n schemas: z.array(z.string()).describe(\"List of SCIM schema URIs that describe the user resource.\").nullable().optional(),\n userName: z.string().describe(\"The username, typically the primary email address of the user.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier from the identity provider (if synced via SCIM).\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the user (typically firstName lastName).\").nullable().optional(),\n \"urn:ro.am:params:scim:schemas:extension:roam:2.0:User\": RoamListRoamScimUsers_RoamUserExtensionSchema.nullable().optional(),\n}).describe(\"A single user resource in the SCIM list response.\");\nexport const RoamListRoamScimUsersOutput: z.ZodTypeAny = z.object({\n schemas: z.array(z.string()).describe(\"List of SCIM schema URIs used in the response.\").nullable().optional(),\n Resources: z.array(RoamListRoamScimUsers_UserResourceSchema).describe(\"List of user resources matching the query.\").nullable().optional(),\n startIndex: z.number().int().describe(\"The 1-based index of the first result in the current page.\").nullable().optional(),\n itemsPerPage: z.number().int().describe(\"The number of users returned in this page.\").nullable().optional(),\n totalResults: z.number().int().describe(\"The total number of users matching the query.\").nullable().optional(),\n}).describe(\"Response schema for listing users via SCIM 2.0.\\n\\nReturns a paginated list of user resources with total count information.\");\n\nexport const roamListRoamScimUsers = action(\"ROAM_LIST_ROAM_SCIM_USERS\", {\n slug: \"roam-list-roam-scim-users\",\n name: \"List users (SCIM)\",\n description: \"Tool to list users in your Roam organization using SCIM 2.0 protocol. Use when you need to retrieve a paginated list of users in your Roam workspace via the SCIM 2.0 API for identity provider integration. Supports pagination via startIndex and count parameters, as well as filtering by user attributes using SCIM filter expressions. Endpoint: GET /scim/v2/Users\",\n input: RoamListRoamScimUsersInput,\n output: RoamListRoamScimUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACxJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iMAAiM,CAAC,CAAC,SAAS;CACxO,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AAClL,CAAC,CAAC,CAAC,SAAS,oLAAoL;AAChM,MAAM,uCAAqD,EAAE,OAAO;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,uCAAqD,EAAE,OAAO;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,yCAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,gDAA8D,EAAE,OAAO,EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtG,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,QAAQ,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,yDAAyD,8CAA8C,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAS/D,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuD,EAAE,OAAO;EAChE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,6HAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-schemas.ts
|
|
4
|
+
const RoamListSchemasInput = zod.z.object({}).describe("Request model for listing SCIM schemas.\nNo parameters required - this is a discovery endpoint.");
|
|
5
|
+
const RoamListSchemas_SchemaResourceSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("The schema URN identifier (e.g., urn:ietf:params:scim:schemas:core:2.0:User)"),
|
|
7
|
+
name: zod.z.string().describe("Schema name (e.g., User)"),
|
|
8
|
+
description: zod.z.string().describe("Description of what this schema defines")
|
|
9
|
+
}).describe("Individual schema resource in the list response.");
|
|
10
|
+
const RoamListSchemasOutput = zod.z.object({
|
|
11
|
+
schemas: zod.z.array(zod.z.string()).describe("List of SCIM schema URNs"),
|
|
12
|
+
Resources: zod.z.array(RoamListSchemas_SchemaResourceSchema).describe("Array of schema definitions"),
|
|
13
|
+
startIndex: zod.z.number().int().describe("Starting index (1-based)"),
|
|
14
|
+
itemsPerPage: zod.z.number().int().describe("Number of items per page"),
|
|
15
|
+
totalResults: zod.z.number().int().describe("Total number of schemas available")
|
|
16
|
+
}).describe("Response model for listing SCIM schemas.");
|
|
17
|
+
const roamListSchemas = require_action.action("ROAM_LIST_SCHEMAS", {
|
|
18
|
+
slug: "roam-list-schemas",
|
|
19
|
+
name: "List SCIM Schemas",
|
|
20
|
+
description: "Tool to list all SCIM 2.0 schemas supported by Roam. Use when you need to discover available SCIM resource schemas. Returns the core User and Group schemas plus Roam's custom role extension schemas.",
|
|
21
|
+
input: RoamListSchemasInput,
|
|
22
|
+
output: RoamListSchemasOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.roamListSchemas = roamListSchemas;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=list-schemas.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schemas.cjs","names":["z","action"],"sources":["../../src/actions/list-schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListSchemasInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing SCIM schemas.\\nNo parameters required - this is a discovery endpoint.\");\nconst RoamListSchemas_SchemaResourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The schema URN identifier (e.g., urn:ietf:params:scim:schemas:core:2.0:User)\"),\n name: z.string().describe(\"Schema name (e.g., User)\"),\n description: z.string().describe(\"Description of what this schema defines\"),\n}).describe(\"Individual schema resource in the list response.\");\nexport const RoamListSchemasOutput: z.ZodTypeAny = z.object({\n schemas: z.array(z.string()).describe(\"List of SCIM schema URNs\"),\n Resources: z.array(RoamListSchemas_SchemaResourceSchema).describe(\"Array of schema definitions\"),\n startIndex: z.number().int().describe(\"Starting index (1-based)\"),\n itemsPerPage: z.number().int().describe(\"Number of items per page\"),\n totalResults: z.number().int().describe(\"Total number of schemas available\"),\n}).describe(\"Response model for listing SCIM schemas.\");\n\nexport const roamListSchemas = action(\"ROAM_LIST_SCHEMAS\", {\n slug: \"roam-list-schemas\",\n name: \"List SCIM Schemas\",\n description: \"Tool to list all SCIM 2.0 schemas supported by Roam. Use when you need to discover available SCIM resource schemas. Returns the core User and Group schemas plus Roam's custom role extension schemas.\",\n input: RoamListSchemasInput,\n output: RoamListSchemasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG;AACzK,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CACtG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC5E,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0BAA0B;CAChE,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,6BAA6B;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;AAC7E,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-schemas.d.ts
|
|
4
|
+
declare const RoamListSchemasInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamListSchemasOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamListSchemas: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamListSchemas };
|
|
9
|
+
//# sourceMappingURL=list-schemas.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schemas.d.cts","names":[],"sources":["../../src/actions/list-schemas.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAAqI;AAAA,cAM7J,qBAAA,EAAuB,CAAA,CAAE,UAMiB;AAAA,cAE1C,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-schemas.d.ts
|
|
4
|
+
declare const RoamListSchemasInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamListSchemasOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamListSchemas: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamListSchemas };
|
|
9
|
+
//# sourceMappingURL=list-schemas.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schemas.d.mts","names":[],"sources":["../../src/actions/list-schemas.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAAqI;AAAA,cAM7J,qBAAA,EAAuB,CAAA,CAAE,UAMiB;AAAA,cAE1C,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-schemas.ts
|
|
4
|
+
const RoamListSchemasInput = z.object({}).describe("Request model for listing SCIM schemas.\nNo parameters required - this is a discovery endpoint.");
|
|
5
|
+
const RoamListSchemas_SchemaResourceSchema = z.object({
|
|
6
|
+
id: z.string().describe("The schema URN identifier (e.g., urn:ietf:params:scim:schemas:core:2.0:User)"),
|
|
7
|
+
name: z.string().describe("Schema name (e.g., User)"),
|
|
8
|
+
description: z.string().describe("Description of what this schema defines")
|
|
9
|
+
}).describe("Individual schema resource in the list response.");
|
|
10
|
+
const roamListSchemas = action("ROAM_LIST_SCHEMAS", {
|
|
11
|
+
slug: "roam-list-schemas",
|
|
12
|
+
name: "List SCIM Schemas",
|
|
13
|
+
description: "Tool to list all SCIM 2.0 schemas supported by Roam. Use when you need to discover available SCIM resource schemas. Returns the core User and Group schemas plus Roam's custom role extension schemas.",
|
|
14
|
+
input: RoamListSchemasInput,
|
|
15
|
+
output: z.object({
|
|
16
|
+
schemas: z.array(z.string()).describe("List of SCIM schema URNs"),
|
|
17
|
+
Resources: z.array(RoamListSchemas_SchemaResourceSchema).describe("Array of schema definitions"),
|
|
18
|
+
startIndex: z.number().int().describe("Starting index (1-based)"),
|
|
19
|
+
itemsPerPage: z.number().int().describe("Number of items per page"),
|
|
20
|
+
totalResults: z.number().int().describe("Total number of schemas available")
|
|
21
|
+
}).describe("Response model for listing SCIM schemas.")
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { roamListSchemas };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=list-schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-schemas.mjs","names":[],"sources":["../../src/actions/list-schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListSchemasInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing SCIM schemas.\\nNo parameters required - this is a discovery endpoint.\");\nconst RoamListSchemas_SchemaResourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The schema URN identifier (e.g., urn:ietf:params:scim:schemas:core:2.0:User)\"),\n name: z.string().describe(\"Schema name (e.g., User)\"),\n description: z.string().describe(\"Description of what this schema defines\"),\n}).describe(\"Individual schema resource in the list response.\");\nexport const RoamListSchemasOutput: z.ZodTypeAny = z.object({\n schemas: z.array(z.string()).describe(\"List of SCIM schema URNs\"),\n Resources: z.array(RoamListSchemas_SchemaResourceSchema).describe(\"Array of schema definitions\"),\n startIndex: z.number().int().describe(\"Starting index (1-based)\"),\n itemsPerPage: z.number().int().describe(\"Number of items per page\"),\n totalResults: z.number().int().describe(\"Total number of schemas available\"),\n}).describe(\"Response model for listing SCIM schemas.\");\n\nexport const roamListSchemas = action(\"ROAM_LIST_SCHEMAS\", {\n slug: \"roam-list-schemas\",\n name: \"List SCIM Schemas\",\n description: \"Tool to list all SCIM 2.0 schemas supported by Roam. Use when you need to discover available SCIM resource schemas. Returns the core User and Group schemas plus Roam's custom role extension schemas.\",\n input: RoamListSchemasInput,\n output: RoamListSchemasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG;AACzK,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CACtG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC5E,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAS9D,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbiD,EAAE,OAAO;EAC1D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0BAA0B;EAChE,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,6BAA6B;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;EAChE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;EAClE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CAC7E,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-transcripts.ts
|
|
4
|
+
const RoamListTranscriptsInput = zod.z.object({
|
|
5
|
+
after: zod.z.string().describe("Filter for transcripts that started after this date/time (UTC). Format: YYYY-MM-DD or RFC-3339 datetime.").optional(),
|
|
6
|
+
limit: zod.z.number().int().describe("Number of transcripts to return.").optional(),
|
|
7
|
+
before: zod.z.string().describe("Filter for transcripts that started before this date/time (UTC). Format: YYYY-MM-DD or RFC-3339 datetime.").optional(),
|
|
8
|
+
cursor: zod.z.string().describe("Opaque cursor from a previous response to fetch the next page of results.").optional()
|
|
9
|
+
});
|
|
10
|
+
const RoamListTranscripts_TranscriptParticipantSchema = zod.z.object({
|
|
11
|
+
name: zod.z.string().describe("Participant's display name").nullable().optional(),
|
|
12
|
+
user: zod.z.string().describe("User ID if available").nullable().optional(),
|
|
13
|
+
email: zod.z.string().describe("Participant's email address").nullable().optional()
|
|
14
|
+
});
|
|
15
|
+
const RoamListTranscripts_TranscriptMetadataSchema = zod.z.object({
|
|
16
|
+
id: zod.z.string().describe("Unique transcript ID (UUID)"),
|
|
17
|
+
end: zod.z.string().describe("Transcript end datetime (ISO-8601)"),
|
|
18
|
+
start: zod.z.string().describe("Transcript start datetime (ISO-8601)"),
|
|
19
|
+
meeting_id: zod.z.string().describe("Meeting ID (UUID)"),
|
|
20
|
+
participants: zod.z.array(RoamListTranscripts_TranscriptParticipantSchema).describe("List of participants in the transcript").nullable().optional()
|
|
21
|
+
});
|
|
22
|
+
const RoamListTranscriptsOutput = zod.z.object({
|
|
23
|
+
nextCursor: zod.z.string().describe("Cursor for fetching the next page of results").nullable().optional(),
|
|
24
|
+
transcripts: zod.z.array(RoamListTranscripts_TranscriptMetadataSchema).describe("List of transcript metadata").nullable().optional()
|
|
25
|
+
});
|
|
26
|
+
const roamListTranscripts = require_action.action("ROAM_LIST_TRANSCRIPTS", {
|
|
27
|
+
slug: "roam-list-transcripts",
|
|
28
|
+
name: "List Roam Transcripts",
|
|
29
|
+
description: "Lists all transcripts in your Roam workspace, filtered by date range. Supports pagination via cursor and limiting the number of results. Returns transcript metadata (id, meetingId, start, end, participants) without full content. Use this action to discover available transcripts before retrieving detailed content.",
|
|
30
|
+
input: RoamListTranscriptsInput,
|
|
31
|
+
output: RoamListTranscriptsOutput
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.roamListTranscripts = roamListTranscripts;
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=list-transcripts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-transcripts.cjs","names":["z","action"],"sources":["../../src/actions/list-transcripts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListTranscriptsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Filter for transcripts that started after this date/time (UTC). Format: YYYY-MM-DD or RFC-3339 datetime.\").optional(),\n limit: z.number().int().describe(\"Number of transcripts to return.\").optional(),\n before: z.string().describe(\"Filter for transcripts that started before this date/time (UTC). Format: YYYY-MM-DD or RFC-3339 datetime.\").optional(),\n cursor: z.string().describe(\"Opaque cursor from a previous response to fetch the next page of results.\").optional(),\n});\nconst RoamListTranscripts_TranscriptParticipantSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Participant's display name\").nullable().optional(),\n user: z.string().describe(\"User ID if available\").nullable().optional(),\n email: z.string().describe(\"Participant's email address\").nullable().optional(),\n});\nconst RoamListTranscripts_TranscriptMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique transcript ID (UUID)\"),\n end: z.string().describe(\"Transcript end datetime (ISO-8601)\"),\n start: z.string().describe(\"Transcript start datetime (ISO-8601)\"),\n meeting_id: z.string().describe(\"Meeting ID (UUID)\"),\n participants: z.array(RoamListTranscripts_TranscriptParticipantSchema).describe(\"List of participants in the transcript\").nullable().optional(),\n});\nexport const RoamListTranscriptsOutput: z.ZodTypeAny = z.object({\n nextCursor: z.string().describe(\"Cursor for fetching the next page of results\").nullable().optional(),\n transcripts: z.array(RoamListTranscripts_TranscriptMetadataSchema).describe(\"List of transcript metadata\").nullable().optional(),\n});\n\nexport const roamListTranscripts = action(\"ROAM_LIST_TRANSCRIPTS\", {\n slug: \"roam-list-transcripts\",\n name: \"List Roam Transcripts\",\n description: \"Lists all transcripts in your Roam workspace, filtered by date range. Supports pagination via cursor and limiting the number of results. Returns transcript metadata (id, meetingId, start, end, participants) without full content. Use this action to discover available transcripts before retrieving detailed content.\",\n input: RoamListTranscriptsInput,\n output: RoamListTranscriptsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAClJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACpH,CAAC;AACD,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC;AACD,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CACnD,cAAcA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,aAAaA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-transcripts.d.ts
|
|
4
|
+
declare const RoamListTranscriptsInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamListTranscriptsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamListTranscripts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamListTranscripts };
|
|
9
|
+
//# sourceMappingURL=list-transcripts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-transcripts.d.cts","names":[],"sources":["../../src/actions/list-transcripts.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKvC;AAAA,cAaW,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-transcripts.d.ts
|
|
4
|
+
declare const RoamListTranscriptsInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamListTranscriptsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamListTranscripts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamListTranscripts };
|
|
9
|
+
//# sourceMappingURL=list-transcripts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-transcripts.d.mts","names":[],"sources":["../../src/actions/list-transcripts.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKvC;AAAA,cAaW,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-transcripts.ts
|
|
4
|
+
const RoamListTranscriptsInput = z.object({
|
|
5
|
+
after: z.string().describe("Filter for transcripts that started after this date/time (UTC). Format: YYYY-MM-DD or RFC-3339 datetime.").optional(),
|
|
6
|
+
limit: z.number().int().describe("Number of transcripts to return.").optional(),
|
|
7
|
+
before: z.string().describe("Filter for transcripts that started before this date/time (UTC). Format: YYYY-MM-DD or RFC-3339 datetime.").optional(),
|
|
8
|
+
cursor: z.string().describe("Opaque cursor from a previous response to fetch the next page of results.").optional()
|
|
9
|
+
});
|
|
10
|
+
const RoamListTranscripts_TranscriptParticipantSchema = z.object({
|
|
11
|
+
name: z.string().describe("Participant's display name").nullable().optional(),
|
|
12
|
+
user: z.string().describe("User ID if available").nullable().optional(),
|
|
13
|
+
email: z.string().describe("Participant's email address").nullable().optional()
|
|
14
|
+
});
|
|
15
|
+
const RoamListTranscripts_TranscriptMetadataSchema = z.object({
|
|
16
|
+
id: z.string().describe("Unique transcript ID (UUID)"),
|
|
17
|
+
end: z.string().describe("Transcript end datetime (ISO-8601)"),
|
|
18
|
+
start: z.string().describe("Transcript start datetime (ISO-8601)"),
|
|
19
|
+
meeting_id: z.string().describe("Meeting ID (UUID)"),
|
|
20
|
+
participants: z.array(RoamListTranscripts_TranscriptParticipantSchema).describe("List of participants in the transcript").nullable().optional()
|
|
21
|
+
});
|
|
22
|
+
const roamListTranscripts = action("ROAM_LIST_TRANSCRIPTS", {
|
|
23
|
+
slug: "roam-list-transcripts",
|
|
24
|
+
name: "List Roam Transcripts",
|
|
25
|
+
description: "Lists all transcripts in your Roam workspace, filtered by date range. Supports pagination via cursor and limiting the number of results. Returns transcript metadata (id, meetingId, start, end, participants) without full content. Use this action to discover available transcripts before retrieving detailed content.",
|
|
26
|
+
input: RoamListTranscriptsInput,
|
|
27
|
+
output: z.object({
|
|
28
|
+
nextCursor: z.string().describe("Cursor for fetching the next page of results").nullable().optional(),
|
|
29
|
+
transcripts: z.array(RoamListTranscripts_TranscriptMetadataSchema).describe("List of transcript metadata").nullable().optional()
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { roamListTranscripts };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=list-transcripts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-transcripts.mjs","names":[],"sources":["../../src/actions/list-transcripts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListTranscriptsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Filter for transcripts that started after this date/time (UTC). Format: YYYY-MM-DD or RFC-3339 datetime.\").optional(),\n limit: z.number().int().describe(\"Number of transcripts to return.\").optional(),\n before: z.string().describe(\"Filter for transcripts that started before this date/time (UTC). Format: YYYY-MM-DD or RFC-3339 datetime.\").optional(),\n cursor: z.string().describe(\"Opaque cursor from a previous response to fetch the next page of results.\").optional(),\n});\nconst RoamListTranscripts_TranscriptParticipantSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Participant's display name\").nullable().optional(),\n user: z.string().describe(\"User ID if available\").nullable().optional(),\n email: z.string().describe(\"Participant's email address\").nullable().optional(),\n});\nconst RoamListTranscripts_TranscriptMetadataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique transcript ID (UUID)\"),\n end: z.string().describe(\"Transcript end datetime (ISO-8601)\"),\n start: z.string().describe(\"Transcript start datetime (ISO-8601)\"),\n meeting_id: z.string().describe(\"Meeting ID (UUID)\"),\n participants: z.array(RoamListTranscripts_TranscriptParticipantSchema).describe(\"List of participants in the transcript\").nullable().optional(),\n});\nexport const RoamListTranscriptsOutput: z.ZodTypeAny = z.object({\n nextCursor: z.string().describe(\"Cursor for fetching the next page of results\").nullable().optional(),\n transcripts: z.array(RoamListTranscripts_TranscriptMetadataSchema).describe(\"List of transcript metadata\").nullable().optional(),\n});\n\nexport const roamListTranscripts = action(\"ROAM_LIST_TRANSCRIPTS\", {\n slug: \"roam-list-transcripts\",\n name: \"List Roam Transcripts\",\n description: \"Lists all transcripts in your Roam workspace, filtered by date range. Supports pagination via cursor and limiting the number of results. Returns transcript metadata (id, meetingId, start, end, participants) without full content. Use this action to discover available transcripts before retrieving detailed content.\",\n input: RoamListTranscriptsInput,\n output: RoamListTranscriptsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAClJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACpH,CAAC;AACD,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC;AACD,MAAM,+CAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CACnD,cAAc,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC;AAMD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,aAAa,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-user-audit-log.ts
|
|
4
|
+
const RoamListUserAuditLogInput = zod.z.object({
|
|
5
|
+
date: zod.z.string().describe("Date to retrieve audit logs for. Format: YYYY-MM-DD."),
|
|
6
|
+
limit: zod.z.number().int().describe("Number of audit log entries to return. Must be between 1 and 100.").optional(),
|
|
7
|
+
cursor: zod.z.string().describe("Pagination cursor from a previous response to fetch the next page of results.").optional()
|
|
8
|
+
}).describe("Request model for listing user audit log entries.");
|
|
9
|
+
const RoamListUserAuditLog_AuditLogEntrySchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the audit log entry.").nullable().optional(),
|
|
11
|
+
action: zod.z.string().describe("Action performed by the user.").nullable().optional(),
|
|
12
|
+
details: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional details about the action.").nullable().optional(),
|
|
13
|
+
user_id: zod.z.string().describe("User ID associated with this action.").nullable().optional(),
|
|
14
|
+
timestamp: zod.z.string().describe("Timestamp of when the action occurred (ISO-8601).").nullable().optional(),
|
|
15
|
+
ip_address: zod.z.string().describe("IP address from which the action was performed.").nullable().optional(),
|
|
16
|
+
user_agent: zod.z.string().describe("User agent string of the client.").nullable().optional(),
|
|
17
|
+
user_email: zod.z.string().describe("Email of the user associated with this action.").nullable().optional(),
|
|
18
|
+
resource_id: zod.z.string().describe("ID of the resource affected.").nullable().optional(),
|
|
19
|
+
resource_type: zod.z.string().describe("Type of resource affected.").nullable().optional()
|
|
20
|
+
}).describe("A single user audit log entry.");
|
|
21
|
+
const RoamListUserAuditLogOutput = zod.z.object({
|
|
22
|
+
entries: zod.z.array(RoamListUserAuditLog_AuditLogEntrySchema).describe("List of audit log entries.").nullable().optional(),
|
|
23
|
+
nextCursor: zod.z.string().describe("Cursor to use for fetching the next page of results.").nullable().optional()
|
|
24
|
+
}).describe("Response model for listing user audit log entries.");
|
|
25
|
+
const roamListUserAuditLog = require_action.action("ROAM_LIST_USER_AUDIT_LOG", {
|
|
26
|
+
slug: "roam-list-user-audit-log",
|
|
27
|
+
name: "List User Audit Log",
|
|
28
|
+
description: "Tool to get a list of user audit log entries for the account. Use when you need to retrieve audit logs for compliance and security monitoring purposes. This action requires the 'userauditlog:read' scope and organization-level access. Required parameter: date (format: YYYY-MM-DD) Optional: limit for pagination, cursor for paginating through results.",
|
|
29
|
+
input: RoamListUserAuditLogInput,
|
|
30
|
+
output: RoamListUserAuditLogOutput
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.roamListUserAuditLog = roamListUserAuditLog;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=list-user-audit-log.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-user-audit-log.cjs","names":["z","action"],"sources":["../../src/actions/list-user-audit-log.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListUserAuditLogInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date to retrieve audit logs for. Format: YYYY-MM-DD.\"),\n limit: z.number().int().describe(\"Number of audit log entries to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"Pagination cursor from a previous response to fetch the next page of results.\").optional(),\n}).describe(\"Request model for listing user audit log entries.\");\nconst RoamListUserAuditLog_AuditLogEntrySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the audit log entry.\").nullable().optional(),\n action: z.string().describe(\"Action performed by the user.\").nullable().optional(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details about the action.\").nullable().optional(),\n user_id: z.string().describe(\"User ID associated with this action.\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp of when the action occurred (ISO-8601).\").nullable().optional(),\n ip_address: z.string().describe(\"IP address from which the action was performed.\").nullable().optional(),\n user_agent: z.string().describe(\"User agent string of the client.\").nullable().optional(),\n user_email: z.string().describe(\"Email of the user associated with this action.\").nullable().optional(),\n resource_id: z.string().describe(\"ID of the resource affected.\").nullable().optional(),\n resource_type: z.string().describe(\"Type of resource affected.\").nullable().optional(),\n}).describe(\"A single user audit log entry.\");\nexport const RoamListUserAuditLogOutput: z.ZodTypeAny = z.object({\n entries: z.array(RoamListUserAuditLog_AuditLogEntrySchema).describe(\"List of audit log entries.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results.\").nullable().optional(),\n}).describe(\"Response model for listing user audit log entries.\");\n\nexport const roamListUserAuditLog = action(\"ROAM_LIST_USER_AUDIT_LOG\", {\n slug: \"roam-list-user-audit-log\",\n name: \"List User Audit Log\",\n description: \"Tool to get a list of user audit log entries for the account. Use when you need to retrieve audit logs for compliance and security monitoring purposes. This action requires the 'userauditlog:read' scope and organization-level access. Required parameter: date (format: YYYY-MM-DD) Optional: limit for pagination, cursor for paginating through results.\",\n input: RoamListUserAuditLogInput,\n output: RoamListUserAuditLogOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-user-audit-log.d.ts
|
|
4
|
+
declare const RoamListUserAuditLogInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamListUserAuditLogOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamListUserAuditLog: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamListUserAuditLog };
|
|
9
|
+
//# sourceMappingURL=list-user-audit-log.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-user-audit-log.d.cts","names":[],"sources":["../../src/actions/list-user-audit-log.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAIsB;AAAA,cAanD,0BAAA,EAA4B,CAAA,CAAE,UAGsB;AAAA,cAEpD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-user-audit-log.d.ts
|
|
4
|
+
declare const RoamListUserAuditLogInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamListUserAuditLogOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamListUserAuditLog: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamListUserAuditLog };
|
|
9
|
+
//# sourceMappingURL=list-user-audit-log.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-user-audit-log.d.mts","names":[],"sources":["../../src/actions/list-user-audit-log.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAIsB;AAAA,cAanD,0BAAA,EAA4B,CAAA,CAAE,UAGsB;AAAA,cAEpD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-user-audit-log.ts
|
|
4
|
+
const RoamListUserAuditLogInput = z.object({
|
|
5
|
+
date: z.string().describe("Date to retrieve audit logs for. Format: YYYY-MM-DD."),
|
|
6
|
+
limit: z.number().int().describe("Number of audit log entries to return. Must be between 1 and 100.").optional(),
|
|
7
|
+
cursor: z.string().describe("Pagination cursor from a previous response to fetch the next page of results.").optional()
|
|
8
|
+
}).describe("Request model for listing user audit log entries.");
|
|
9
|
+
const RoamListUserAuditLog_AuditLogEntrySchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the audit log entry.").nullable().optional(),
|
|
11
|
+
action: z.string().describe("Action performed by the user.").nullable().optional(),
|
|
12
|
+
details: z.record(z.string(), z.unknown()).describe("Additional details about the action.").nullable().optional(),
|
|
13
|
+
user_id: z.string().describe("User ID associated with this action.").nullable().optional(),
|
|
14
|
+
timestamp: z.string().describe("Timestamp of when the action occurred (ISO-8601).").nullable().optional(),
|
|
15
|
+
ip_address: z.string().describe("IP address from which the action was performed.").nullable().optional(),
|
|
16
|
+
user_agent: z.string().describe("User agent string of the client.").nullable().optional(),
|
|
17
|
+
user_email: z.string().describe("Email of the user associated with this action.").nullable().optional(),
|
|
18
|
+
resource_id: z.string().describe("ID of the resource affected.").nullable().optional(),
|
|
19
|
+
resource_type: z.string().describe("Type of resource affected.").nullable().optional()
|
|
20
|
+
}).describe("A single user audit log entry.");
|
|
21
|
+
const roamListUserAuditLog = action("ROAM_LIST_USER_AUDIT_LOG", {
|
|
22
|
+
slug: "roam-list-user-audit-log",
|
|
23
|
+
name: "List User Audit Log",
|
|
24
|
+
description: "Tool to get a list of user audit log entries for the account. Use when you need to retrieve audit logs for compliance and security monitoring purposes. This action requires the 'userauditlog:read' scope and organization-level access. Required parameter: date (format: YYYY-MM-DD) Optional: limit for pagination, cursor for paginating through results.",
|
|
25
|
+
input: RoamListUserAuditLogInput,
|
|
26
|
+
output: z.object({
|
|
27
|
+
entries: z.array(RoamListUserAuditLog_AuditLogEntrySchema).describe("List of audit log entries.").nullable().optional(),
|
|
28
|
+
nextCursor: z.string().describe("Cursor to use for fetching the next page of results.").nullable().optional()
|
|
29
|
+
}).describe("Response model for listing user audit log entries.")
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { roamListUserAuditLog };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=list-user-audit-log.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-user-audit-log.mjs","names":[],"sources":["../../src/actions/list-user-audit-log.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListUserAuditLogInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date to retrieve audit logs for. Format: YYYY-MM-DD.\"),\n limit: z.number().int().describe(\"Number of audit log entries to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"Pagination cursor from a previous response to fetch the next page of results.\").optional(),\n}).describe(\"Request model for listing user audit log entries.\");\nconst RoamListUserAuditLog_AuditLogEntrySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the audit log entry.\").nullable().optional(),\n action: z.string().describe(\"Action performed by the user.\").nullable().optional(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details about the action.\").nullable().optional(),\n user_id: z.string().describe(\"User ID associated with this action.\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp of when the action occurred (ISO-8601).\").nullable().optional(),\n ip_address: z.string().describe(\"IP address from which the action was performed.\").nullable().optional(),\n user_agent: z.string().describe(\"User agent string of the client.\").nullable().optional(),\n user_email: z.string().describe(\"Email of the user associated with this action.\").nullable().optional(),\n resource_id: z.string().describe(\"ID of the resource affected.\").nullable().optional(),\n resource_type: z.string().describe(\"Type of resource affected.\").nullable().optional(),\n}).describe(\"A single user audit log entry.\");\nexport const RoamListUserAuditLogOutput: z.ZodTypeAny = z.object({\n entries: z.array(RoamListUserAuditLog_AuditLogEntrySchema).describe(\"List of audit log entries.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results.\").nullable().optional(),\n}).describe(\"Response model for listing user audit log entries.\");\n\nexport const roamListUserAuditLog = action(\"ROAM_LIST_USER_AUDIT_LOG\", {\n slug: \"roam-list-user-audit-log\",\n name: \"List User Audit Log\",\n description: \"Tool to get a list of user audit log entries for the account. Use when you need to retrieve audit logs for compliance and security monitoring purposes. This action requires the 'userauditlog:read' scope and organization-level access. Required parameter: date (format: YYYY-MM-DD) Optional: limit for pagination, cursor for paginating through results.\",\n input: RoamListUserAuditLogInput,\n output: RoamListUserAuditLogOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAM5C,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-users.ts
|
|
4
|
+
const RoamListUsersInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Number of users to return. Must be between 1 and 100.").optional(),
|
|
6
|
+
cursor: zod.z.string().describe("Pagination cursor from a previous response to fetch the next page of results.").optional(),
|
|
7
|
+
expand: zod.z.string().describe("Comma-separated list of additional fields to include. Supported: 'status' (requires user:read.status scope).").optional()
|
|
8
|
+
}).describe("Request parameters for listing users.\n\nThis endpoint retrieves all users in the Roam workspace.\nOptional parameters allow pagination and expanded field selection.");
|
|
9
|
+
const RoamListUsers_UserSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the user (UUID).").nullable().optional(),
|
|
11
|
+
name: zod.z.string().describe("Name of the user.").nullable().optional(),
|
|
12
|
+
email: zod.z.string().describe("Email address of the user.").nullable().optional(),
|
|
13
|
+
status: zod.z.string().describe("Presence status of the user.").nullable().optional(),
|
|
14
|
+
isAdmin: zod.z.boolean().describe("Whether the user has admin privileges.").nullable().optional(),
|
|
15
|
+
imageUrl: zod.z.string().describe("URL of the user's profile image.").nullable().optional()
|
|
16
|
+
}).describe("Schema for a Roam user object.");
|
|
17
|
+
const RoamListUsersOutput = zod.z.object({
|
|
18
|
+
users: zod.z.array(RoamListUsers_UserSchema).describe("List of users in the workspace.").nullable().optional(),
|
|
19
|
+
nextCursor: zod.z.string().describe("Cursor to use for fetching the next page of results.").nullable().optional()
|
|
20
|
+
}).describe("Response schema for listing users.");
|
|
21
|
+
const roamListUsers = require_action.action("ROAM_LIST_USERS", {
|
|
22
|
+
slug: "roam-list-users",
|
|
23
|
+
name: "List Users",
|
|
24
|
+
description: "Tool to list all users in the Roam workspace. Use when you need to retrieve a list of users with optional pagination and expanded fields like status. Required scope: user:read (add user:read.email for emails, user:read.status for presence status).",
|
|
25
|
+
input: RoamListUsersInput,
|
|
26
|
+
output: RoamListUsersOutput
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.roamListUsers = roamListUsers;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=list-users.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListUsersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of users to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"Pagination cursor from a previous response to fetch the next page of results.\").optional(),\n expand: z.string().describe(\"Comma-separated list of additional fields to include. Supported: 'status' (requires user:read.status scope).\").optional(),\n}).describe(\"Request parameters for listing users.\\n\\nThis endpoint retrieves all users in the Roam workspace.\\nOptional parameters allow pagination and expanded field selection.\");\nconst RoamListUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user (UUID).\").nullable().optional(),\n name: z.string().describe(\"Name of the user.\").nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n status: z.string().describe(\"Presence status of the user.\").nullable().optional(),\n isAdmin: z.boolean().describe(\"Whether the user has admin privileges.\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the user's profile image.\").nullable().optional(),\n}).describe(\"Schema for a Roam user object.\");\nexport const RoamListUsersOutput: z.ZodTypeAny = z.object({\n users: z.array(RoamListUsers_UserSchema).describe(\"List of users in the workspace.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results.\").nullable().optional(),\n}).describe(\"Response schema for listing users.\");\n\nexport const roamListUsers = action(\"ROAM_LIST_USERS\", {\n slug: \"roam-list-users\",\n name: \"List Users\",\n description: \"Tool to list all users in the Roam workspace. Use when you need to retrieve a list of users with optional pagination and expanded fields like status. Required scope: user:read (add user:read.email for emails, user:read.status for presence status).\",\n input: RoamListUsersInput,\n output: RoamListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,uKAAuK;AACnL,MAAM,2BAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,MAAM,wBAAwB,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-users.d.ts
|
|
4
|
+
declare const RoamListUsersInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamListUsersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamListUsers };
|
|
9
|
+
//# sourceMappingURL=list-users.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAIiJ;AAAA,cASvK,mBAAA,EAAqB,CAAA,CAAE,UAGa;AAAA,cAEpC,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-users.d.ts
|
|
4
|
+
declare const RoamListUsersInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamListUsersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamListUsers };
|
|
9
|
+
//# sourceMappingURL=list-users.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAIiJ;AAAA,cASvK,mBAAA,EAAqB,CAAA,CAAE,UAGa;AAAA,cAEpC,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-users.ts
|
|
4
|
+
const RoamListUsersInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Number of users to return. Must be between 1 and 100.").optional(),
|
|
6
|
+
cursor: z.string().describe("Pagination cursor from a previous response to fetch the next page of results.").optional(),
|
|
7
|
+
expand: z.string().describe("Comma-separated list of additional fields to include. Supported: 'status' (requires user:read.status scope).").optional()
|
|
8
|
+
}).describe("Request parameters for listing users.\n\nThis endpoint retrieves all users in the Roam workspace.\nOptional parameters allow pagination and expanded field selection.");
|
|
9
|
+
const RoamListUsers_UserSchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the user (UUID).").nullable().optional(),
|
|
11
|
+
name: z.string().describe("Name of the user.").nullable().optional(),
|
|
12
|
+
email: z.string().describe("Email address of the user.").nullable().optional(),
|
|
13
|
+
status: z.string().describe("Presence status of the user.").nullable().optional(),
|
|
14
|
+
isAdmin: z.boolean().describe("Whether the user has admin privileges.").nullable().optional(),
|
|
15
|
+
imageUrl: z.string().describe("URL of the user's profile image.").nullable().optional()
|
|
16
|
+
}).describe("Schema for a Roam user object.");
|
|
17
|
+
const roamListUsers = action("ROAM_LIST_USERS", {
|
|
18
|
+
slug: "roam-list-users",
|
|
19
|
+
name: "List Users",
|
|
20
|
+
description: "Tool to list all users in the Roam workspace. Use when you need to retrieve a list of users with optional pagination and expanded fields like status. Required scope: user:read (add user:read.email for emails, user:read.status for presence status).",
|
|
21
|
+
input: RoamListUsersInput,
|
|
22
|
+
output: z.object({
|
|
23
|
+
users: z.array(RoamListUsers_UserSchema).describe("List of users in the workspace.").nullable().optional(),
|
|
24
|
+
nextCursor: z.string().describe("Cursor to use for fetching the next page of results.").nullable().optional()
|
|
25
|
+
}).describe("Response schema for listing users.")
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { roamListUsers };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=list-users.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamListUsersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of users to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"Pagination cursor from a previous response to fetch the next page of results.\").optional(),\n expand: z.string().describe(\"Comma-separated list of additional fields to include. Supported: 'status' (requires user:read.status scope).\").optional(),\n}).describe(\"Request parameters for listing users.\\n\\nThis endpoint retrieves all users in the Roam workspace.\\nOptional parameters allow pagination and expanded field selection.\");\nconst RoamListUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user (UUID).\").nullable().optional(),\n name: z.string().describe(\"Name of the user.\").nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n status: z.string().describe(\"Presence status of the user.\").nullable().optional(),\n isAdmin: z.boolean().describe(\"Whether the user has admin privileges.\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the user's profile image.\").nullable().optional(),\n}).describe(\"Schema for a Roam user object.\");\nexport const RoamListUsersOutput: z.ZodTypeAny = z.object({\n users: z.array(RoamListUsers_UserSchema).describe(\"List of users in the workspace.\").nullable().optional(),\n nextCursor: z.string().describe(\"Cursor to use for fetching the next page of results.\").nullable().optional(),\n}).describe(\"Response schema for listing users.\");\n\nexport const roamListUsers = action(\"ROAM_LIST_USERS\", {\n slug: \"roam-list-users\",\n name: \"List Users\",\n description: \"Tool to list all users in the Roam workspace. Use when you need to retrieve a list of users with optional pagination and expanded fields like status. Required scope: user:read (add user:read.email for emails, user:read.status for presence status).\",\n input: RoamListUsersInput,\n output: RoamListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,uKAAuK;AACnL,MAAM,2BAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAM5C,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,OAAO,EAAE,MAAM,wBAAwB,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/lookup-user.ts
|
|
4
|
+
const RoamLookupUserInput = zod.z.object({ email: zod.z.string().describe("The email address of the user to look up.") }).describe("Request parameters for looking up a user by email.");
|
|
5
|
+
const RoamLookupUserOutput = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier of the user (UUID)."),
|
|
7
|
+
name: zod.z.string().describe("User's display name."),
|
|
8
|
+
email: zod.z.string().describe("User's email address. Requires user:read.email scope.").nullable().optional(),
|
|
9
|
+
is_admin: zod.z.boolean().describe("Whether the user has admin privileges.").nullable().optional(),
|
|
10
|
+
location: zod.z.string().describe("User's location.").nullable().optional(),
|
|
11
|
+
image_url: zod.z.string().describe("URL to user's profile image.").nullable().optional(),
|
|
12
|
+
job_title: zod.z.string().describe("User's job title.").nullable().optional()
|
|
13
|
+
}).describe("Response schema for user lookup.");
|
|
14
|
+
const roamLookupUser = require_action.action("ROAM_LOOKUP_USER", {
|
|
15
|
+
slug: "roam-lookup-user",
|
|
16
|
+
name: "Lookup user by email",
|
|
17
|
+
description: "Look up a user in your Roam workspace by their email address. Use when you need to find a user's details including their ID, name, and profile information. Required scopes: user:read and user:read.email.",
|
|
18
|
+
input: RoamLookupUserInput,
|
|
19
|
+
output: RoamLookupUserOutput
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.roamLookupUser = roamLookupUser;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=lookup-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-user.cjs","names":["z","action"],"sources":["../../src/actions/lookup-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamLookupUserInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"The email address of the user to look up.\"),\n}).describe(\"Request parameters for looking up a user by email.\");\nexport const RoamLookupUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user (UUID).\"),\n name: z.string().describe(\"User's display name.\"),\n email: z.string().describe(\"User's email address. Requires user:read.email scope.\").nullable().optional(),\n is_admin: z.boolean().describe(\"Whether the user has admin privileges.\").nullable().optional(),\n location: z.string().describe(\"User's location.\").nullable().optional(),\n image_url: z.string().describe(\"URL to user's profile image.\").nullable().optional(),\n job_title: z.string().describe(\"User's job title.\").nullable().optional(),\n}).describe(\"Response schema for user lookup.\");\n\nexport const roamLookupUser = action(\"ROAM_LOOKUP_USER\", {\n slug: \"roam-lookup-user\",\n name: \"Lookup user by email\",\n description: \"Look up a user in your Roam workspace by their email address. Use when you need to find a user's details including their ID, name, and profile information. Required scopes: user:read and user:read.email.\",\n input: RoamLookupUserInput,\n output: RoamLookupUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EACxE,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAE9C,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/lookup-user.d.ts
|
|
4
|
+
declare const RoamLookupUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamLookupUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamLookupUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamLookupUser };
|
|
9
|
+
//# sourceMappingURL=lookup-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-user.d.cts","names":[],"sources":["../../src/actions/lookup-user.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAE6B;AAAA,cACpD,oBAAA,EAAsB,CAAA,CAAE,UAQU;AAAA,cAElC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|