@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,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.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-user.d.mts","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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const roamLookupUser = action("ROAM_LOOKUP_USER", {
|
|
4
|
+
slug: "roam-lookup-user",
|
|
5
|
+
name: "Lookup user by email",
|
|
6
|
+
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.",
|
|
7
|
+
input: z.object({ email: z.string().describe("The email address of the user to look up.") }).describe("Request parameters for looking up a user by email."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.string().describe("Unique identifier of the user (UUID)."),
|
|
10
|
+
name: z.string().describe("User's display name."),
|
|
11
|
+
email: z.string().describe("User's email address. Requires user:read.email scope.").nullable().optional(),
|
|
12
|
+
is_admin: z.boolean().describe("Whether the user has admin privileges.").nullable().optional(),
|
|
13
|
+
location: z.string().describe("User's location.").nullable().optional(),
|
|
14
|
+
image_url: z.string().describe("URL to user's profile image.").nullable().optional(),
|
|
15
|
+
job_title: z.string().describe("User's job title.").nullable().optional()
|
|
16
|
+
}).describe("Response schema for user lookup.")
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { roamLookupUser };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=lookup-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-user.mjs","names":[],"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":";;AAiBA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB+C,EAAE,OAAO,EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EACxE,CAAC,CAAC,CAAC,SAAS,oDAeH;CACP,QAfgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,kCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/patch-group.ts
|
|
4
|
+
const RoamPatchGroupInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the group (Roam AddressID)."),
|
|
6
|
+
operations: zod.z.array(zod.z.object({
|
|
7
|
+
op: zod.z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace"
|
|
11
|
+
]).describe("The operation to perform: 'add', 'remove', or 'replace'."),
|
|
12
|
+
path: zod.z.string().describe("The attribute to modify (e.g., 'members' or 'displayName'). Required for add and remove operations.").optional(),
|
|
13
|
+
value: zod.z.union([
|
|
14
|
+
zod.z.array(zod.z.object({
|
|
15
|
+
ref: zod.z.string().nullable().optional(),
|
|
16
|
+
value: zod.z.string().describe("The Roam Person ID to add or remove from the group.")
|
|
17
|
+
}).describe("Member value object for adding/removing group members.")),
|
|
18
|
+
zod.z.string(),
|
|
19
|
+
zod.z.record(zod.z.string(), zod.z.unknown())
|
|
20
|
+
]).optional()
|
|
21
|
+
}).describe("A single SCIM PATCH operation.")).describe("Array of SCIM PATCH operations to perform on the group. Use 'add' or 'remove' for members, 'replace' for displayName.")
|
|
22
|
+
}).describe("Request schema for `PatchGroup`");
|
|
23
|
+
const RoamPatchGroup_MemberSchema = zod.z.object({
|
|
24
|
+
ref: zod.z.string().describe("Reference to the user resource.").nullable().optional(),
|
|
25
|
+
value: zod.z.string().describe("The Roam Person ID of the member.").nullable().optional(),
|
|
26
|
+
display: zod.z.string().describe("Display name of the member.").nullable().optional()
|
|
27
|
+
}).describe("Group member object.");
|
|
28
|
+
const RoamPatchGroupOutput = zod.z.object({
|
|
29
|
+
id: zod.z.string().describe("Unique identifier of the group."),
|
|
30
|
+
members: zod.z.array(RoamPatchGroup_MemberSchema).describe("List of members in the group.").nullable().optional(),
|
|
31
|
+
schemas: zod.z.array(zod.z.string()).describe("SCIM schemas used in the response.").nullable().optional(),
|
|
32
|
+
displayName: zod.z.string().describe("Display name of the group.").nullable().optional()
|
|
33
|
+
}).describe("Response schema for `PatchGroup`");
|
|
34
|
+
const roamPatchGroup = require_action.action("ROAM_PATCH_GROUP", {
|
|
35
|
+
slug: "roam-patch-group",
|
|
36
|
+
name: "Patch a group",
|
|
37
|
+
description: "Partially updates a group using SCIM 2.0 protocol. Use this action to add or remove members from a group, or replace the group's display name. The PATCH operation supports 'add', 'remove', and 'replace' operations on group attributes. Example usage: - Add members: op='add', path='members', value=[{'value': '686562', 'ref': 'Users/686562'}] - Remove members: op='remove', path='members', value=[{'value': '686562'}] - Replace displayName: op='replace', path='displayName', value='New Group Name'",
|
|
38
|
+
input: RoamPatchGroupInput,
|
|
39
|
+
output: RoamPatchGroupOutput
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.roamPatchGroup = roamPatchGroup;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=patch-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-group.cjs","names":["z","action"],"sources":["../../src/actions/patch-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamPatchGroupInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID).\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\"]).describe(\"The operation to perform: 'add', 'remove', or 'replace'.\"),\n path: z.string().describe(\"The attribute to modify (e.g., 'members' or 'displayName'). Required for add and remove operations.\").optional(),\n value: z.union([z.array(z.object({\n ref: z.string().nullable().optional(),\n value: z.string().describe(\"The Roam Person ID to add or remove from the group.\"),\n}).describe(\"Member value object for adding/removing group members.\")), z.string(), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single SCIM PATCH operation.\")).describe(\"Array of SCIM PATCH operations to perform on the group. Use 'add' or 'remove' for members, 'replace' for displayName.\"),\n}).describe(\"Request schema for `PatchGroup`\");\nconst RoamPatchGroup_MemberSchema: z.ZodTypeAny = z.object({\n ref: z.string().describe(\"Reference to the user resource.\").nullable().optional(),\n value: z.string().describe(\"The Roam Person ID of the member.\").nullable().optional(),\n display: z.string().describe(\"Display name of the member.\").nullable().optional(),\n}).describe(\"Group member object.\");\nexport const RoamPatchGroupOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the group.\"),\n members: z.array(RoamPatchGroup_MemberSchema).describe(\"List of members in the group.\").nullable().optional(),\n schemas: z.array(z.string()).describe(\"SCIM schemas used in the response.\").nullable().optional(),\n displayName: z.string().describe(\"Display name of the group.\").nullable().optional(),\n}).describe(\"Response schema for `PatchGroup`\");\n\nexport const roamPatchGroup = action(\"ROAM_PATCH_GROUP\", {\n slug: \"roam-patch-group\",\n name: \"Patch a group\",\n description: \"Partially updates a group using SCIM 2.0 protocol. Use this action to add or remove members from a group, or replace the group's display name. The PATCH operation supports 'add', 'remove', and 'replace' operations on group attributes. Example usage: - Add members: op='add', path='members', value=[{'value': '686562', 'ref': 'Users/686562'}] - Remove members: op='remove', path='members', value=[{'value': '686562'}] - Replace displayName: op='replace', path='displayName', value='New Group Name'\",\n input: RoamPatchGroupInput,\n output: RoamPatchGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC9E,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,0DAA0D;EAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC1I,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;IACjC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AkC;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/patch-group.d.ts
|
|
4
|
+
declare const RoamPatchGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamPatchGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamPatchGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamPatchGroup };
|
|
9
|
+
//# sourceMappingURL=patch-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-group.d.cts","names":[],"sources":["../../src/actions/patch-group.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAUU;AAAA,cAMjC,oBAAA,EAAsB,CAAA,CAAE,UAKU;AAAA,cAElC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-group.d.ts
|
|
4
|
+
declare const RoamPatchGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamPatchGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamPatchGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamPatchGroup };
|
|
9
|
+
//# sourceMappingURL=patch-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-group.d.mts","names":[],"sources":["../../src/actions/patch-group.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAUU;AAAA,cAMjC,oBAAA,EAAsB,CAAA,CAAE,UAKU;AAAA,cAElC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/patch-group.ts
|
|
4
|
+
const RoamPatchGroupInput = z.object({
|
|
5
|
+
id: z.string().describe("The unique identifier of the group (Roam AddressID)."),
|
|
6
|
+
operations: z.array(z.object({
|
|
7
|
+
op: z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace"
|
|
11
|
+
]).describe("The operation to perform: 'add', 'remove', or 'replace'."),
|
|
12
|
+
path: z.string().describe("The attribute to modify (e.g., 'members' or 'displayName'). Required for add and remove operations.").optional(),
|
|
13
|
+
value: z.union([
|
|
14
|
+
z.array(z.object({
|
|
15
|
+
ref: z.string().nullable().optional(),
|
|
16
|
+
value: z.string().describe("The Roam Person ID to add or remove from the group.")
|
|
17
|
+
}).describe("Member value object for adding/removing group members.")),
|
|
18
|
+
z.string(),
|
|
19
|
+
z.record(z.string(), z.unknown())
|
|
20
|
+
]).optional()
|
|
21
|
+
}).describe("A single SCIM PATCH operation.")).describe("Array of SCIM PATCH operations to perform on the group. Use 'add' or 'remove' for members, 'replace' for displayName.")
|
|
22
|
+
}).describe("Request schema for `PatchGroup`");
|
|
23
|
+
const RoamPatchGroup_MemberSchema = z.object({
|
|
24
|
+
ref: z.string().describe("Reference to the user resource.").nullable().optional(),
|
|
25
|
+
value: z.string().describe("The Roam Person ID of the member.").nullable().optional(),
|
|
26
|
+
display: z.string().describe("Display name of the member.").nullable().optional()
|
|
27
|
+
}).describe("Group member object.");
|
|
28
|
+
const roamPatchGroup = action("ROAM_PATCH_GROUP", {
|
|
29
|
+
slug: "roam-patch-group",
|
|
30
|
+
name: "Patch a group",
|
|
31
|
+
description: "Partially updates a group using SCIM 2.0 protocol. Use this action to add or remove members from a group, or replace the group's display name. The PATCH operation supports 'add', 'remove', and 'replace' operations on group attributes. Example usage: - Add members: op='add', path='members', value=[{'value': '686562', 'ref': 'Users/686562'}] - Remove members: op='remove', path='members', value=[{'value': '686562'}] - Replace displayName: op='replace', path='displayName', value='New Group Name'",
|
|
32
|
+
input: RoamPatchGroupInput,
|
|
33
|
+
output: z.object({
|
|
34
|
+
id: z.string().describe("Unique identifier of the group."),
|
|
35
|
+
members: z.array(RoamPatchGroup_MemberSchema).describe("List of members in the group.").nullable().optional(),
|
|
36
|
+
schemas: z.array(z.string()).describe("SCIM schemas used in the response.").nullable().optional(),
|
|
37
|
+
displayName: z.string().describe("Display name of the group.").nullable().optional()
|
|
38
|
+
}).describe("Response schema for `PatchGroup`")
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { roamPatchGroup };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=patch-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-group.mjs","names":[],"sources":["../../src/actions/patch-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamPatchGroupInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID).\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\"]).describe(\"The operation to perform: 'add', 'remove', or 'replace'.\"),\n path: z.string().describe(\"The attribute to modify (e.g., 'members' or 'displayName'). Required for add and remove operations.\").optional(),\n value: z.union([z.array(z.object({\n ref: z.string().nullable().optional(),\n value: z.string().describe(\"The Roam Person ID to add or remove from the group.\"),\n}).describe(\"Member value object for adding/removing group members.\")), z.string(), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"A single SCIM PATCH operation.\")).describe(\"Array of SCIM PATCH operations to perform on the group. Use 'add' or 'remove' for members, 'replace' for displayName.\"),\n}).describe(\"Request schema for `PatchGroup`\");\nconst RoamPatchGroup_MemberSchema: z.ZodTypeAny = z.object({\n ref: z.string().describe(\"Reference to the user resource.\").nullable().optional(),\n value: z.string().describe(\"The Roam Person ID of the member.\").nullable().optional(),\n display: z.string().describe(\"Display name of the member.\").nullable().optional(),\n}).describe(\"Group member object.\");\nexport const RoamPatchGroupOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the group.\"),\n members: z.array(RoamPatchGroup_MemberSchema).describe(\"List of members in the group.\").nullable().optional(),\n schemas: z.array(z.string()).describe(\"SCIM schemas used in the response.\").nullable().optional(),\n displayName: z.string().describe(\"Display name of the group.\").nullable().optional(),\n}).describe(\"Response schema for `PatchGroup`\");\n\nexport const roamPatchGroup = action(\"ROAM_PATCH_GROUP\", {\n slug: \"roam-patch-group\",\n name: \"Patch a group\",\n description: \"Partially updates a group using SCIM 2.0 protocol. Use this action to add or remove members from a group, or replace the group's display name. The PATCH operation supports 'add', 'remove', and 'replace' operations on group attributes. Example usage: - Add members: op='add', path='members', value=[{'value': '686562', 'ref': 'Users/686562'}] - Remove members: op='remove', path='members', value=[{'value': '686562'}] - Replace displayName: op='replace', path='displayName', value='New Group Name'\",\n input: RoamPatchGroupInput,\n output: RoamPatchGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC9E,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,IAAI,EAAE,KAAK;GAAC;GAAO;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,0DAA0D;EAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC1I,OAAO,EAAE,MAAM;GAAC,EAAE,MAAM,EAAE,OAAO;IACj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_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/patch-user.ts
|
|
4
|
+
const RoamPatchUserInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the user (Roam Person ID) to update."),
|
|
6
|
+
operations: zod.z.array(zod.z.object({
|
|
7
|
+
op: zod.z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace"
|
|
11
|
+
]).describe("The operation to perform: 'add', 'remove', or 'replace'. Note: Roam only supports 'replace' operation for the 'active' attribute."),
|
|
12
|
+
path: zod.z.string().describe("The attribute path to modify (e.g., 'active'). Required for most operations.").optional(),
|
|
13
|
+
value: zod.z.union([
|
|
14
|
+
zod.z.object({ value: zod.z.union([
|
|
15
|
+
zod.z.string(),
|
|
16
|
+
zod.z.boolean(),
|
|
17
|
+
zod.z.number().int()
|
|
18
|
+
]) }).describe("Value object for SCIM PATCH operation."),
|
|
19
|
+
zod.z.string(),
|
|
20
|
+
zod.z.boolean(),
|
|
21
|
+
zod.z.number().int(),
|
|
22
|
+
zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()))
|
|
23
|
+
]).optional()
|
|
24
|
+
}).describe("A single SCIM PATCH operation for user updates.")).describe("Array of SCIM PATCH operations to perform on the user. Note: Roam only supports 'replace' operation on the 'active' attribute (to archive or reactivate a user).")
|
|
25
|
+
}).describe("Request schema for partially updating a user via SCIM 2.0 PATCH operation.");
|
|
26
|
+
const RoamPatchUser_UserMetaSchema = zod.z.object({
|
|
27
|
+
created: zod.z.string().describe("The date and time the user was created (ISO 8601 format).").nullable().optional(),
|
|
28
|
+
location: zod.z.string().describe("The URI of the user resource.").nullable().optional(),
|
|
29
|
+
lastModified: zod.z.string().describe("The date and time the user was last modified (ISO 8601 format).").nullable().optional(),
|
|
30
|
+
resourceType: zod.z.string().describe("The type of resource (User).").nullable().optional()
|
|
31
|
+
}).describe("Metadata about the SCIM user resource.");
|
|
32
|
+
const RoamPatchUser_UserNameSchema = zod.z.object({
|
|
33
|
+
givenName: zod.z.string().describe("The first name of the user.").nullable().optional(),
|
|
34
|
+
familyName: zod.z.string().describe("The last name of the user.").nullable().optional()
|
|
35
|
+
}).describe("Name component of a SCIM user.");
|
|
36
|
+
const RoamPatchUser_EmailValueSchema = zod.z.object({
|
|
37
|
+
type: zod.z.string().describe("Type of email address (e.g., 'work').").nullable().optional(),
|
|
38
|
+
value: zod.z.string().describe("Email address value.").nullable().optional(),
|
|
39
|
+
primary: zod.z.boolean().describe("Whether this is the primary email address.").nullable().optional()
|
|
40
|
+
}).describe("Email address in the SCIM user resource.");
|
|
41
|
+
const RoamPatchUser_RoamUserExtensionSchema = zod.z.object({ role: zod.z.string().describe("The user's role in Roam (e.g., 'User' or 'Admin').").nullable().optional() }).describe("Roam-specific SCIM extension for user resources.");
|
|
42
|
+
const RoamPatchUserOutput = zod.z.object({
|
|
43
|
+
id: zod.z.string().describe("The unique identifier for the user in Roam (SCIM ID / Person ID).").nullable().optional(),
|
|
44
|
+
meta: RoamPatchUser_UserMetaSchema.nullable().optional(),
|
|
45
|
+
name: RoamPatchUser_UserNameSchema.nullable().optional(),
|
|
46
|
+
active: zod.z.boolean().describe("Whether the user account is active. True = active, False = archived.").nullable().optional(),
|
|
47
|
+
emails: zod.z.array(RoamPatchUser_EmailValueSchema).describe("List of email addresses for the user.").nullable().optional(),
|
|
48
|
+
schemas: zod.z.array(zod.z.string()).describe("List of SCIM schema URIs that describe the user resource.").nullable().optional(),
|
|
49
|
+
userName: zod.z.string().describe("The username, typically the primary email address of the user.").nullable().optional(),
|
|
50
|
+
externalId: zod.z.string().describe("External identifier from the identity provider (if synced via SCIM).").nullable().optional(),
|
|
51
|
+
displayName: zod.z.string().describe("The display name of the user (typically firstName lastName).").nullable().optional(),
|
|
52
|
+
"urn:ro.am:params:scim:schemas:extension:roam:2.0:User": RoamPatchUser_RoamUserExtensionSchema.nullable().optional()
|
|
53
|
+
}).describe("Response schema after partially updating a user via SCIM 2.0.");
|
|
54
|
+
const roamPatchUser = require_action.action("ROAM_PATCH_USER", {
|
|
55
|
+
slug: "roam-patch-user",
|
|
56
|
+
name: "Patch user (SCIM)",
|
|
57
|
+
description: "Partially updates a user using SCIM 2.0 protocol. Use when you need to modify specific attributes of an existing user without replacing the entire resource. Currently, Roam only supports the 'replace' operation on the 'active' attribute, which allows archiving or reactivating a user. Other operations like 'add' or account 'remove' are not supported, and 'replace' on attributes other than 'active' will fail. Example usage: - Deactivate/archive user: op='replace', path='active', value=false - Reactivate user: op='replace', path='active', value=true Endpoint: PATCH /scim/v2/Users/{id}",
|
|
58
|
+
input: RoamPatchUserInput,
|
|
59
|
+
output: RoamPatchUserOutput
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
exports.roamPatchUser = roamPatchUser;
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=patch-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-user.cjs","names":["z","action"],"sources":["../../src/actions/patch-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamPatchUserInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user (Roam Person ID) to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\"]).describe(\"The operation to perform: 'add', 'remove', or 'replace'. Note: Roam only supports 'replace' operation for the 'active' attribute.\"),\n path: z.string().describe(\"The attribute path to modify (e.g., 'active'). Required for most operations.\").optional(),\n value: z.union([z.object({\n value: z.union([z.string(), z.boolean(), z.number().int()]),\n}).describe(\"Value object for SCIM PATCH operation.\"), z.string(), z.boolean(), z.number().int(), z.array(z.record(z.string(), z.unknown()))]).optional(),\n}).describe(\"A single SCIM PATCH operation for user updates.\")).describe(\"Array of SCIM PATCH operations to perform on the user. Note: Roam only supports 'replace' operation on the 'active' attribute (to archive or reactivate a user).\"),\n}).describe(\"Request schema for partially updating a user via SCIM 2.0 PATCH operation.\");\nconst RoamPatchUser_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 RoamPatchUser_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 RoamPatchUser_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 RoamPatchUser_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.\");\nexport const RoamPatchUserOutput: 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: RoamPatchUser_UserMetaSchema.nullable().optional(),\n name: RoamPatchUser_UserNameSchema.nullable().optional(),\n active: z.boolean().describe(\"Whether the user account is active. True = active, False = archived.\").nullable().optional(),\n emails: z.array(RoamPatchUser_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\": RoamPatchUser_RoamUserExtensionSchema.nullable().optional(),\n}).describe(\"Response schema after partially updating a user via SCIM 2.0.\");\n\nexport const roamPatchUser = action(\"ROAM_PATCH_USER\", {\n slug: \"roam-patch-user\",\n name: \"Patch user (SCIM)\",\n description: \"Partially updates a user using SCIM 2.0 protocol. Use when you need to modify specific attributes of an existing user without replacing the entire resource. Currently, Roam only supports the 'replace' operation on the 'active' attribute, which allows archiving or reactivating a user. Other operations like 'add' or account 'remove' are not supported, and 'replace' on attributes other than 'active' will fail. Example usage: - Deactivate/archive user: op='replace', path='active', value=false - Reactivate user: op='replace', path='active', value=true Endpoint: PATCH /scim/v2/Users/{id}\",\n input: RoamPatchUserInput,\n output: RoamPatchUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACvF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,IAAIA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,mIAAmI;EACrL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACnH,OAAOA,IAAAA,EAAE,MAAM;GAACA,IAAAA,EAAE,OAAO,EACzB,OAAOA,IAAAA,EAAE,MAAM;IAACA,IAAAA,EAAE,OAAO;IAAGA,IAAAA,EAAE,QAAQ;IAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAC,CAAC,EAC5D,CAAC,CAAC,CAAC,SAAS,wCAAwC;GAAGA,IAAAA,EAAE,OAAO;GAAGA,IAAAA,EAAE,QAAQ;GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EA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,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-user.d.ts
|
|
4
|
+
declare const RoamPatchUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamPatchUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamPatchUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamPatchUser };
|
|
9
|
+
//# sourceMappingURL=patch-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-user.d.cts","names":[],"sources":["../../src/actions/patch-user.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UASsD;AAAA,cAmB5E,mBAAA,EAAqB,CAAA,CAAE,UAWwC;AAAA,cAE/D,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/patch-user.d.ts
|
|
4
|
+
declare const RoamPatchUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamPatchUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamPatchUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamPatchUser };
|
|
9
|
+
//# sourceMappingURL=patch-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-user.d.mts","names":[],"sources":["../../src/actions/patch-user.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UASsD;AAAA,cAmB5E,mBAAA,EAAqB,CAAA,CAAE,UAWwC;AAAA,cAE/D,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/patch-user.ts
|
|
4
|
+
const RoamPatchUserInput = z.object({
|
|
5
|
+
id: z.string().describe("The unique identifier of the user (Roam Person ID) to update."),
|
|
6
|
+
operations: z.array(z.object({
|
|
7
|
+
op: z.enum([
|
|
8
|
+
"add",
|
|
9
|
+
"remove",
|
|
10
|
+
"replace"
|
|
11
|
+
]).describe("The operation to perform: 'add', 'remove', or 'replace'. Note: Roam only supports 'replace' operation for the 'active' attribute."),
|
|
12
|
+
path: z.string().describe("The attribute path to modify (e.g., 'active'). Required for most operations.").optional(),
|
|
13
|
+
value: z.union([
|
|
14
|
+
z.object({ value: z.union([
|
|
15
|
+
z.string(),
|
|
16
|
+
z.boolean(),
|
|
17
|
+
z.number().int()
|
|
18
|
+
]) }).describe("Value object for SCIM PATCH operation."),
|
|
19
|
+
z.string(),
|
|
20
|
+
z.boolean(),
|
|
21
|
+
z.number().int(),
|
|
22
|
+
z.array(z.record(z.string(), z.unknown()))
|
|
23
|
+
]).optional()
|
|
24
|
+
}).describe("A single SCIM PATCH operation for user updates.")).describe("Array of SCIM PATCH operations to perform on the user. Note: Roam only supports 'replace' operation on the 'active' attribute (to archive or reactivate a user).")
|
|
25
|
+
}).describe("Request schema for partially updating a user via SCIM 2.0 PATCH operation.");
|
|
26
|
+
const RoamPatchUser_UserMetaSchema = z.object({
|
|
27
|
+
created: z.string().describe("The date and time the user was created (ISO 8601 format).").nullable().optional(),
|
|
28
|
+
location: z.string().describe("The URI of the user resource.").nullable().optional(),
|
|
29
|
+
lastModified: z.string().describe("The date and time the user was last modified (ISO 8601 format).").nullable().optional(),
|
|
30
|
+
resourceType: z.string().describe("The type of resource (User).").nullable().optional()
|
|
31
|
+
}).describe("Metadata about the SCIM user resource.");
|
|
32
|
+
const RoamPatchUser_UserNameSchema = z.object({
|
|
33
|
+
givenName: z.string().describe("The first name of the user.").nullable().optional(),
|
|
34
|
+
familyName: z.string().describe("The last name of the user.").nullable().optional()
|
|
35
|
+
}).describe("Name component of a SCIM user.");
|
|
36
|
+
const RoamPatchUser_EmailValueSchema = z.object({
|
|
37
|
+
type: z.string().describe("Type of email address (e.g., 'work').").nullable().optional(),
|
|
38
|
+
value: z.string().describe("Email address value.").nullable().optional(),
|
|
39
|
+
primary: z.boolean().describe("Whether this is the primary email address.").nullable().optional()
|
|
40
|
+
}).describe("Email address in the SCIM user resource.");
|
|
41
|
+
const RoamPatchUser_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.");
|
|
42
|
+
const roamPatchUser = action("ROAM_PATCH_USER", {
|
|
43
|
+
slug: "roam-patch-user",
|
|
44
|
+
name: "Patch user (SCIM)",
|
|
45
|
+
description: "Partially updates a user using SCIM 2.0 protocol. Use when you need to modify specific attributes of an existing user without replacing the entire resource. Currently, Roam only supports the 'replace' operation on the 'active' attribute, which allows archiving or reactivating a user. Other operations like 'add' or account 'remove' are not supported, and 'replace' on attributes other than 'active' will fail. Example usage: - Deactivate/archive user: op='replace', path='active', value=false - Reactivate user: op='replace', path='active', value=true Endpoint: PATCH /scim/v2/Users/{id}",
|
|
46
|
+
input: RoamPatchUserInput,
|
|
47
|
+
output: z.object({
|
|
48
|
+
id: z.string().describe("The unique identifier for the user in Roam (SCIM ID / Person ID).").nullable().optional(),
|
|
49
|
+
meta: RoamPatchUser_UserMetaSchema.nullable().optional(),
|
|
50
|
+
name: RoamPatchUser_UserNameSchema.nullable().optional(),
|
|
51
|
+
active: z.boolean().describe("Whether the user account is active. True = active, False = archived.").nullable().optional(),
|
|
52
|
+
emails: z.array(RoamPatchUser_EmailValueSchema).describe("List of email addresses for the user.").nullable().optional(),
|
|
53
|
+
schemas: z.array(z.string()).describe("List of SCIM schema URIs that describe the user resource.").nullable().optional(),
|
|
54
|
+
userName: z.string().describe("The username, typically the primary email address of the user.").nullable().optional(),
|
|
55
|
+
externalId: z.string().describe("External identifier from the identity provider (if synced via SCIM).").nullable().optional(),
|
|
56
|
+
displayName: z.string().describe("The display name of the user (typically firstName lastName).").nullable().optional(),
|
|
57
|
+
"urn:ro.am:params:scim:schemas:extension:roam:2.0:User": RoamPatchUser_RoamUserExtensionSchema.nullable().optional()
|
|
58
|
+
}).describe("Response schema after partially updating a user via SCIM 2.0.")
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { roamPatchUser };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=patch-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-user.mjs","names":[],"sources":["../../src/actions/patch-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamPatchUserInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user (Roam Person ID) to update.\"),\n operations: z.array(z.object({\n op: z.enum([\"add\", \"remove\", \"replace\"]).describe(\"The operation to perform: 'add', 'remove', or 'replace'. Note: Roam only supports 'replace' operation for the 'active' attribute.\"),\n path: z.string().describe(\"The attribute path to modify (e.g., 'active'). Required for most operations.\").optional(),\n value: z.union([z.object({\n value: z.union([z.string(), z.boolean(), z.number().int()]),\n}).describe(\"Value object for SCIM PATCH operation.\"), z.string(), z.boolean(), z.number().int(), z.array(z.record(z.string(), z.unknown()))]).optional(),\n}).describe(\"A single SCIM PATCH operation for user updates.\")).describe(\"Array of SCIM PATCH operations to perform on the user. Note: Roam only supports 'replace' operation on the 'active' attribute (to archive or reactivate a user).\"),\n}).describe(\"Request schema for partially updating a user via SCIM 2.0 PATCH operation.\");\nconst RoamPatchUser_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 RoamPatchUser_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 RoamPatchUser_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 RoamPatchUser_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.\");\nexport const RoamPatchUserOutput: 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: RoamPatchUser_UserMetaSchema.nullable().optional(),\n name: RoamPatchUser_UserNameSchema.nullable().optional(),\n active: z.boolean().describe(\"Whether the user account is active. True = active, False = archived.\").nullable().optional(),\n emails: z.array(RoamPatchUser_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\": RoamPatchUser_RoamUserExtensionSchema.nullable().optional(),\n}).describe(\"Response schema after partially updating a user via SCIM 2.0.\");\n\nexport const roamPatchUser = action(\"ROAM_PATCH_USER\", {\n slug: \"roam-patch-user\",\n name: \"Patch user (SCIM)\",\n description: \"Partially updates a user using SCIM 2.0 protocol. Use when you need to modify specific attributes of an existing user without replacing the entire resource. Currently, Roam only supports the 'replace' operation on the 'active' attribute, which allows archiving or reactivating a user. Other operations like 'add' or account 'remove' are not supported, and 'replace' on attributes other than 'active' will fail. Example usage: - Deactivate/archive user: op='replace', path='active', value=false - Reactivate user: op='replace', path='active', value=true Endpoint: PATCH /scim/v2/Users/{id}\",\n input: RoamPatchUserInput,\n output: RoamPatchUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACvF,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,IAAI,EAAE,KAAK;GAAC;GAAO;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,mIAAmI;EACrL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACnH,OAAO,EAAE,MAAM;GAAC,EAAE,OAAO,EACzB,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,QAAQ;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAC,CAAC,EAC5D,CAAC,CAAC,CAAC,SAAS,wCAAwC;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC3O,CAAC,CAAC,C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AM;CACN,aAAa;CACb,OAAO;CACP,QAlB+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,MAAM,6BAA6B,SAAS,CAAC,CAAC,SAAS;EACvD,MAAM,6BAA6B,SAAS,CAAC,CAAC,SAAS;EACvD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,yDAAyD,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/post-chat.ts
|
|
4
|
+
const RoamPostChatInput = zod.z.object({
|
|
5
|
+
chat: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]),
|
|
6
|
+
sync: zod.z.boolean().describe("If true, post is performed synchronously and timestamp returned.").optional(),
|
|
7
|
+
text: zod.z.string().describe("Markdown-formatted text content. Cannot be combined with blocks. Either text or blocks is required.").optional(),
|
|
8
|
+
color: zod.z.string().describe("Colored vertical strip. Values: good, warning, danger, or hex (e.g., #5B3FD9). Only used with blocks.").optional(),
|
|
9
|
+
items: zod.z.array(zod.z.string()).describe("Array of Item IDs (UUIDs) to attach. Cannot be combined with blocks.").optional(),
|
|
10
|
+
blocks: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of Block Kit block objects (header, section, context, divider, actions). Cannot be combined with text. Max 10 blocks, 8,000 bytes.").optional(),
|
|
11
|
+
markdown: zod.z.boolean().default(true).describe("Defaults to true. Set false to disable markdown interpretation.").optional(),
|
|
12
|
+
thread_key: zod.z.string().describe("External identifier for threading messages. Max 64 characters. Mutually exclusive with thread_timestamp.").optional(),
|
|
13
|
+
thread_timestamp: zod.z.number().int().describe("Reply to a specific thread. Mutually exclusive with thread_key.").optional()
|
|
14
|
+
});
|
|
15
|
+
const RoamPostChatOutput = zod.z.object({
|
|
16
|
+
chat: zod.z.string().describe("ID of the containing Chat").nullable().optional(),
|
|
17
|
+
timestamp: zod.z.number().int().describe("Identifying timestamp, present if sync is set").nullable().optional(),
|
|
18
|
+
thread_timestamp: zod.z.number().int().describe("Thread timestamp (if applicable)").nullable().optional()
|
|
19
|
+
});
|
|
20
|
+
const roamPostChat = require_action.action("ROAM_POST_CHAT", {
|
|
21
|
+
slug: "roam-post-chat",
|
|
22
|
+
name: "Post message to chat",
|
|
23
|
+
description: "Post a message to a chat. Messages can be plain markdown text or rich Block Kit layouts with headers, sections, buttons, and more. Messages may be posted to a chat, a group, or addresses such as users or bots. Use syntax <@USER_ID> for mentions.",
|
|
24
|
+
input: RoamPostChatInput,
|
|
25
|
+
output: RoamPostChatOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.roamPostChat = roamPostChat;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=post-chat.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-chat.cjs","names":["z","action"],"sources":["../../src/actions/post-chat.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamPostChatInput: z.ZodTypeAny = z.object({\n chat: z.union([z.string(), z.array(z.string())]),\n sync: z.boolean().describe(\"If true, post is performed synchronously and timestamp returned.\").optional(),\n text: z.string().describe(\"Markdown-formatted text content. Cannot be combined with blocks. Either text or blocks is required.\").optional(),\n color: z.string().describe(\"Colored vertical strip. Values: good, warning, danger, or hex (e.g., #5B3FD9). Only used with blocks.\").optional(),\n items: z.array(z.string()).describe(\"Array of Item IDs (UUIDs) to attach. Cannot be combined with blocks.\").optional(),\n blocks: z.array(z.record(z.string(), z.unknown())).describe(\"Array of Block Kit block objects (header, section, context, divider, actions). Cannot be combined with text. Max 10 blocks, 8,000 bytes.\").optional(),\n markdown: z.boolean().default(true).describe(\"Defaults to true. Set false to disable markdown interpretation.\").optional(),\n thread_key: z.string().describe(\"External identifier for threading messages. Max 64 characters. Mutually exclusive with thread_timestamp.\").optional(),\n thread_timestamp: z.number().int().describe(\"Reply to a specific thread. Mutually exclusive with thread_key.\").optional(),\n});\nexport const RoamPostChatOutput: z.ZodTypeAny = z.object({\n chat: z.string().describe(\"ID of the containing Chat\").nullable().optional(),\n timestamp: z.number().int().describe(\"Identifying timestamp, present if sync is set\").nullable().optional(),\n thread_timestamp: z.number().int().describe(\"Thread timestamp (if applicable)\").nullable().optional(),\n});\n\nexport const roamPostChat = action(\"ROAM_POST_CHAT\", {\n slug: \"roam-post-chat\",\n name: \"Post message to chat\",\n description: \"Post a message to a chat. Messages can be plain markdown text or rich Block Kit layouts with headers, sections, buttons, and more. Messages may be posted to a chat, a group, or addresses such as users or bots. Use syntax <@USER_ID> for mentions.\",\n input: RoamPostChatInput,\n output: RoamPostChatOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,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AAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/post-chat.d.ts
|
|
4
|
+
declare const RoamPostChatInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamPostChatOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamPostChat: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamPostChat };
|
|
9
|
+
//# sourceMappingURL=post-chat.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-chat.d.cts","names":[],"sources":["../../src/actions/post-chat.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UAUhC;AAAA,cACW,kBAAA,EAAoB,CAAA,CAAE,UAIjC;AAAA,cAEW,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/post-chat.d.ts
|
|
4
|
+
declare const RoamPostChatInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamPostChatOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamPostChat: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamPostChat };
|
|
9
|
+
//# sourceMappingURL=post-chat.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-chat.d.mts","names":[],"sources":["../../src/actions/post-chat.ts"],"mappings":";;;cAIa,iBAAA,EAAmB,CAAA,CAAE,UAUhC;AAAA,cACW,kBAAA,EAAoB,CAAA,CAAE,UAIjC;AAAA,cAEW,YAAA,gCAAY,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const roamPostChat = action("ROAM_POST_CHAT", {
|
|
4
|
+
slug: "roam-post-chat",
|
|
5
|
+
name: "Post message to chat",
|
|
6
|
+
description: "Post a message to a chat. Messages can be plain markdown text or rich Block Kit layouts with headers, sections, buttons, and more. Messages may be posted to a chat, a group, or addresses such as users or bots. Use syntax <@USER_ID> for mentions.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
chat: z.union([z.string(), z.array(z.string())]),
|
|
9
|
+
sync: z.boolean().describe("If true, post is performed synchronously and timestamp returned.").optional(),
|
|
10
|
+
text: z.string().describe("Markdown-formatted text content. Cannot be combined with blocks. Either text or blocks is required.").optional(),
|
|
11
|
+
color: z.string().describe("Colored vertical strip. Values: good, warning, danger, or hex (e.g., #5B3FD9). Only used with blocks.").optional(),
|
|
12
|
+
items: z.array(z.string()).describe("Array of Item IDs (UUIDs) to attach. Cannot be combined with blocks.").optional(),
|
|
13
|
+
blocks: z.array(z.record(z.string(), z.unknown())).describe("Array of Block Kit block objects (header, section, context, divider, actions). Cannot be combined with text. Max 10 blocks, 8,000 bytes.").optional(),
|
|
14
|
+
markdown: z.boolean().default(true).describe("Defaults to true. Set false to disable markdown interpretation.").optional(),
|
|
15
|
+
thread_key: z.string().describe("External identifier for threading messages. Max 64 characters. Mutually exclusive with thread_timestamp.").optional(),
|
|
16
|
+
thread_timestamp: z.number().int().describe("Reply to a specific thread. Mutually exclusive with thread_key.").optional()
|
|
17
|
+
}),
|
|
18
|
+
output: z.object({
|
|
19
|
+
chat: z.string().describe("ID of the containing Chat").nullable().optional(),
|
|
20
|
+
timestamp: z.number().int().describe("Identifying timestamp, present if sync is set").nullable().optional(),
|
|
21
|
+
thread_timestamp: z.number().int().describe("Thread timestamp (if applicable)").nullable().optional()
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { roamPostChat };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=post-chat.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-chat.mjs","names":[],"sources":["../../src/actions/post-chat.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamPostChatInput: z.ZodTypeAny = z.object({\n chat: z.union([z.string(), z.array(z.string())]),\n sync: z.boolean().describe(\"If true, post is performed synchronously and timestamp returned.\").optional(),\n text: z.string().describe(\"Markdown-formatted text content. Cannot be combined with blocks. Either text or blocks is required.\").optional(),\n color: z.string().describe(\"Colored vertical strip. Values: good, warning, danger, or hex (e.g., #5B3FD9). Only used with blocks.\").optional(),\n items: z.array(z.string()).describe(\"Array of Item IDs (UUIDs) to attach. Cannot be combined with blocks.\").optional(),\n blocks: z.array(z.record(z.string(), z.unknown())).describe(\"Array of Block Kit block objects (header, section, context, divider, actions). Cannot be combined with text. Max 10 blocks, 8,000 bytes.\").optional(),\n markdown: z.boolean().default(true).describe(\"Defaults to true. Set false to disable markdown interpretation.\").optional(),\n thread_key: z.string().describe(\"External identifier for threading messages. Max 64 characters. Mutually exclusive with thread_timestamp.\").optional(),\n thread_timestamp: z.number().int().describe(\"Reply to a specific thread. Mutually exclusive with thread_key.\").optional(),\n});\nexport const RoamPostChatOutput: z.ZodTypeAny = z.object({\n chat: z.string().describe(\"ID of the containing Chat\").nullable().optional(),\n timestamp: z.number().int().describe(\"Identifying timestamp, present if sync is set\").nullable().optional(),\n thread_timestamp: z.number().int().describe(\"Thread timestamp (if applicable)\").nullable().optional(),\n});\n\nexport const roamPostChat = action(\"ROAM_POST_CHAT\", {\n slug: \"roam-post-chat\",\n name: \"Post message to chat\",\n description: \"Post a message to a chat. Messages can be plain markdown text or rich Block Kit layouts with headers, sections, buttons, and more. Messages may be posted to a chat, a group, or addresses such as users or bots. Use syntax <@USER_ID> for mentions.\",\n input: RoamPostChatInput,\n output: RoamPostChatOutput,\n});\n"],"mappings":";;AAqBA,MAAa,eAAe,OAAO,kBAAkB;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB6C,EAAE,OAAO;EACtD,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;EAC/C,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACxG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC1I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAC7I,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACrH,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;EACjN,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;EACrJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1H,CAWS;CACP,QAX8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/remove-group-members.ts
|
|
4
|
+
const RoamRemoveGroupMembersInput = zod.z.object({
|
|
5
|
+
group: zod.z.string().describe("The group address (TaggedUUID format, e.g., G-13137f22-926c-4323-baf7-9c953bdccf99)"),
|
|
6
|
+
members: zod.z.array(zod.z.string()).describe("List of member IDs to remove (TaggedUUID format, e.g., U-a86af3af-7d0b-4d4c-8392-85ffdf30881e)")
|
|
7
|
+
}).describe("Request parameters for removing members from a group.");
|
|
8
|
+
const RoamRemoveGroupMembersOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates whether the members were successfully removed from the group.").nullable().optional() }).describe("Response model for removing members from a group.\nReturns empty 204 No Content on success.");
|
|
9
|
+
const roamRemoveGroupMembers = require_action.action("ROAM_REMOVE_GROUP_MEMBERS", {
|
|
10
|
+
slug: "roam-remove-group-members",
|
|
11
|
+
name: "Remove group members",
|
|
12
|
+
description: "Tool to remove one or more members from a group in your Roam workspace. Use when you need to remove users from a specific group. Note: The group must be public in the user's Roam, or the app must be a member of the group to remove members. Admin role members cannot be removed yet.",
|
|
13
|
+
input: RoamRemoveGroupMembersInput,
|
|
14
|
+
output: RoamRemoveGroupMembersOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.roamRemoveGroupMembers = roamRemoveGroupMembers;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=remove-group-members.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-group-members.cjs","names":["z","action"],"sources":["../../src/actions/remove-group-members.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamRemoveGroupMembersInput: z.ZodTypeAny = z.object({\n group: z.string().describe(\"The group address (TaggedUUID format, e.g., G-13137f22-926c-4323-baf7-9c953bdccf99)\"),\n members: z.array(z.string()).describe(\"List of member IDs to remove (TaggedUUID format, e.g., U-a86af3af-7d0b-4d4c-8392-85ffdf30881e)\"),\n}).describe(\"Request parameters for removing members from a group.\");\nexport const RoamRemoveGroupMembersOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the members were successfully removed from the group.\").nullable().optional(),\n}).describe(\"Response model for removing members from a group.\\nReturns empty 204 No Content on success.\");\n\nexport const roamRemoveGroupMembers = action(\"ROAM_REMOVE_GROUP_MEMBERS\", {\n slug: \"roam-remove-group-members\",\n name: \"Remove group members\",\n description: \"Tool to remove one or more members from a group in your Roam workspace. Use when you need to remove users from a specific group. Note: The group must be public in the user's Roam, or the app must be a member of the group to remove members. Admin role members cannot be removed yet.\",\n input: RoamRemoveGroupMembersInput,\n output: RoamRemoveGroupMembersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAChH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGAAgG;AACxI,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAEzG,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,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/remove-group-members.d.ts
|
|
4
|
+
declare const RoamRemoveGroupMembersInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamRemoveGroupMembersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamRemoveGroupMembers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamRemoveGroupMembers };
|
|
9
|
+
//# sourceMappingURL=remove-group-members.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-group-members.d.cts","names":[],"sources":["../../src/actions/remove-group-members.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGwB;AAAA,cACvD,4BAAA,EAA8B,CAAA,CAAE,UAE6D;AAAA,cAE7F,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/remove-group-members.d.ts
|
|
4
|
+
declare const RoamRemoveGroupMembersInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamRemoveGroupMembersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamRemoveGroupMembers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamRemoveGroupMembers };
|
|
9
|
+
//# sourceMappingURL=remove-group-members.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-group-members.d.mts","names":[],"sources":["../../src/actions/remove-group-members.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGwB;AAAA,cACvD,4BAAA,EAA8B,CAAA,CAAE,UAE6D;AAAA,cAE7F,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const roamRemoveGroupMembers = action("ROAM_REMOVE_GROUP_MEMBERS", {
|
|
4
|
+
slug: "roam-remove-group-members",
|
|
5
|
+
name: "Remove group members",
|
|
6
|
+
description: "Tool to remove one or more members from a group in your Roam workspace. Use when you need to remove users from a specific group. Note: The group must be public in the user's Roam, or the app must be a member of the group to remove members. Admin role members cannot be removed yet.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
group: z.string().describe("The group address (TaggedUUID format, e.g., G-13137f22-926c-4323-baf7-9c953bdccf99)"),
|
|
9
|
+
members: z.array(z.string()).describe("List of member IDs to remove (TaggedUUID format, e.g., U-a86af3af-7d0b-4d4c-8392-85ffdf30881e)")
|
|
10
|
+
}).describe("Request parameters for removing members from a group."),
|
|
11
|
+
output: z.object({ success: z.boolean().default(true).describe("Indicates whether the members were successfully removed from the group.").nullable().optional() }).describe("Response model for removing members from a group.\nReturns empty 204 No Content on success.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { roamRemoveGroupMembers };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=remove-group-members.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-group-members.mjs","names":[],"sources":["../../src/actions/remove-group-members.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamRemoveGroupMembersInput: z.ZodTypeAny = z.object({\n group: z.string().describe(\"The group address (TaggedUUID format, e.g., G-13137f22-926c-4323-baf7-9c953bdccf99)\"),\n members: z.array(z.string()).describe(\"List of member IDs to remove (TaggedUUID format, e.g., U-a86af3af-7d0b-4d4c-8392-85ffdf30881e)\"),\n}).describe(\"Request parameters for removing members from a group.\");\nexport const RoamRemoveGroupMembersOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the members were successfully removed from the group.\").nullable().optional(),\n}).describe(\"Response model for removing members from a group.\\nReturns empty 204 No Content on success.\");\n\nexport const roamRemoveGroupMembers = action(\"ROAM_REMOVE_GROUP_MEMBERS\", {\n slug: \"roam-remove-group-members\",\n name: \"Remove group members\",\n description: \"Tool to remove one or more members from a group in your Roam workspace. Use when you need to remove users from a specific group. Note: The group must be public in the user's Roam, or the app must be a member of the group to remove members. Admin role members cannot be removed yet.\",\n input: RoamRemoveGroupMembersInput,\n output: RoamRemoveGroupMembersOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAChH,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGAAgG;CACxI,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,SAAS,6FAOF;AACV,CAAC"}
|