@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,36 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/replace-group.ts
|
|
4
|
+
const RoamReplaceGroupInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the group (Roam AddressID) to replace."),
|
|
6
|
+
members: zod.z.array(zod.z.object({})).describe("Optional list of members to replace the current group members. Each member should be a dict with a 'value' field containing a Roam Person ID. If not provided, existing members will be removed.").optional(),
|
|
7
|
+
schemas: zod.z.array(zod.z.string()).default(["urn:ietf:params:scim:schemas:core:2.0:Group"]).describe("SCIM schema array. Defaults to ['urn:ietf:params:scim:schemas:core:2.0:Group']").optional(),
|
|
8
|
+
displayName: zod.z.string().describe("The display name of the group. Maximum 64 characters.")
|
|
9
|
+
}).describe("Request schema for fully replacing a group via SCIM 2.0.\nThis performs a full replacement of all group attributes.");
|
|
10
|
+
const RoamReplaceGroup_GroupMetaSchema = zod.z.object({
|
|
11
|
+
location: zod.z.string().describe("The URI of the group resource.").nullable().optional(),
|
|
12
|
+
resourceType: zod.z.string().describe("The type of resource (always 'Group').").nullable().optional()
|
|
13
|
+
}).describe("Metadata for a SCIM group.");
|
|
14
|
+
const RoamReplaceGroup_GroupMemberSchema = zod.z.object({
|
|
15
|
+
ref: zod.z.string().describe("Reference to the user resource.").nullable().optional(),
|
|
16
|
+
value: zod.z.string().describe("The Roam Person ID of the member.").nullable().optional(),
|
|
17
|
+
display: zod.z.string().describe("Display name of the member.").nullable().optional()
|
|
18
|
+
}).describe("Group member object in the response.");
|
|
19
|
+
const RoamReplaceGroupOutput = zod.z.object({
|
|
20
|
+
id: zod.z.string().describe("The unique identifier of the group (Roam AddressID)"),
|
|
21
|
+
meta: RoamReplaceGroup_GroupMetaSchema.nullable().optional(),
|
|
22
|
+
members: zod.z.array(RoamReplaceGroup_GroupMemberSchema).describe("List of members in the group after replacement").nullable().optional(),
|
|
23
|
+
schemas: zod.z.array(zod.z.string()).describe("SCIM schemas for the group resource").nullable().optional(),
|
|
24
|
+
displayName: zod.z.string().describe("The display name of the group")
|
|
25
|
+
}).describe("Response schema for a replaced SCIM group.\nReturns the updated group resource after full replacement.");
|
|
26
|
+
const roamReplaceGroup = require_action.action("ROAM_REPLACE_GROUP", {
|
|
27
|
+
slug: "roam-replace-group",
|
|
28
|
+
name: "Replace Roam SCIM Group",
|
|
29
|
+
description: "Fully replaces a group's attributes using SCIM 2.0 protocol. Use when you need to completely replace all attributes of an existing group, including its display name and member list. This is a full update (PUT), not a partial update (PATCH). Note: Unlike PATCH which only modifies specified attributes, PUT requires sending all desired attributes. Any attributes not included will be reset to default values (e.g., members list will be replaced entirely).",
|
|
30
|
+
input: RoamReplaceGroupInput,
|
|
31
|
+
output: RoamReplaceGroupOutput
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.roamReplaceGroup = roamReplaceGroup;
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=replace-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-group.cjs","names":["z","action"],"sources":["../../src/actions/replace-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamReplaceGroupInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID) to replace.\"),\n members: z.array(z.object({})).describe(\"Optional list of members to replace the current group members. Each member should be a dict with a 'value' field containing a Roam Person ID. If not provided, existing members will be removed.\").optional(),\n schemas: z.array(z.string()).default([\"urn:ietf:params:scim:schemas:core:2.0:Group\"]).describe(\"SCIM schema array. Defaults to ['urn:ietf:params:scim:schemas:core:2.0:Group']\").optional(),\n displayName: z.string().describe(\"The display name of the group. Maximum 64 characters.\"),\n}).describe(\"Request schema for fully replacing a group via SCIM 2.0.\\nThis performs a full replacement of all group attributes.\");\nconst RoamReplaceGroup_GroupMetaSchema: z.ZodTypeAny = z.object({\n location: z.string().describe(\"The URI of the group resource.\").nullable().optional(),\n resourceType: z.string().describe(\"The type of resource (always 'Group').\").nullable().optional(),\n}).describe(\"Metadata for a SCIM group.\");\nconst RoamReplaceGroup_GroupMemberSchema: 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 in the response.\");\nexport const RoamReplaceGroupOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID)\"),\n meta: RoamReplaceGroup_GroupMetaSchema.nullable().optional(),\n members: z.array(RoamReplaceGroup_GroupMemberSchema).describe(\"List of members in the group after replacement\").nullable().optional(),\n schemas: z.array(z.string()).describe(\"SCIM schemas for the group resource\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the group\"),\n}).describe(\"Response schema for a replaced SCIM group.\\nReturns the updated group resource after full replacement.\");\n\nexport const roamReplaceGroup = action(\"ROAM_REPLACE_GROUP\", {\n slug: \"roam-replace-group\",\n name: \"Replace Roam SCIM Group\",\n description: \"Fully replaces a group's attributes using SCIM 2.0 protocol. Use when you need to completely replace all attributes of an existing group, including its display name and member list. This is a full update (PUT), not a partial update (PATCH). Note: Unlike PATCH which only modifies specified attributes, PUT requires sending all desired attributes. Any attributes not included will be reset to default values (e.g., members list will be replaced entirely).\",\n input: RoamReplaceGroupInput,\n output: RoamReplaceGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACzF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACrP,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,6CAA6C,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC1F,CAAC,CAAC,CAAC,SAAS,qHAAqH;AACjI,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,MAAM,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC3D,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAClE,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAEpH,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,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/replace-group.d.ts
|
|
4
|
+
declare const RoamReplaceGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamReplaceGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamReplaceGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamReplaceGroup };
|
|
9
|
+
//# sourceMappingURL=replace-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-group.d.cts","names":[],"sources":["../../src/actions/replace-group.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAK4F;AAAA,cAUrH,sBAAA,EAAwB,CAAA,CAAE,UAM8E;AAAA,cAExG,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/replace-group.d.ts
|
|
4
|
+
declare const RoamReplaceGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamReplaceGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamReplaceGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamReplaceGroup };
|
|
9
|
+
//# sourceMappingURL=replace-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-group.d.mts","names":[],"sources":["../../src/actions/replace-group.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAK4F;AAAA,cAUrH,sBAAA,EAAwB,CAAA,CAAE,UAM8E;AAAA,cAExG,gBAAA,gCAAgB,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/replace-group.ts
|
|
4
|
+
const RoamReplaceGroupInput = z.object({
|
|
5
|
+
id: z.string().describe("The unique identifier of the group (Roam AddressID) to replace."),
|
|
6
|
+
members: z.array(z.object({})).describe("Optional list of members to replace the current group members. Each member should be a dict with a 'value' field containing a Roam Person ID. If not provided, existing members will be removed.").optional(),
|
|
7
|
+
schemas: z.array(z.string()).default(["urn:ietf:params:scim:schemas:core:2.0:Group"]).describe("SCIM schema array. Defaults to ['urn:ietf:params:scim:schemas:core:2.0:Group']").optional(),
|
|
8
|
+
displayName: z.string().describe("The display name of the group. Maximum 64 characters.")
|
|
9
|
+
}).describe("Request schema for fully replacing a group via SCIM 2.0.\nThis performs a full replacement of all group attributes.");
|
|
10
|
+
const RoamReplaceGroup_GroupMetaSchema = z.object({
|
|
11
|
+
location: z.string().describe("The URI of the group resource.").nullable().optional(),
|
|
12
|
+
resourceType: z.string().describe("The type of resource (always 'Group').").nullable().optional()
|
|
13
|
+
}).describe("Metadata for a SCIM group.");
|
|
14
|
+
const RoamReplaceGroup_GroupMemberSchema = z.object({
|
|
15
|
+
ref: z.string().describe("Reference to the user resource.").nullable().optional(),
|
|
16
|
+
value: z.string().describe("The Roam Person ID of the member.").nullable().optional(),
|
|
17
|
+
display: z.string().describe("Display name of the member.").nullable().optional()
|
|
18
|
+
}).describe("Group member object in the response.");
|
|
19
|
+
const roamReplaceGroup = action("ROAM_REPLACE_GROUP", {
|
|
20
|
+
slug: "roam-replace-group",
|
|
21
|
+
name: "Replace Roam SCIM Group",
|
|
22
|
+
description: "Fully replaces a group's attributes using SCIM 2.0 protocol. Use when you need to completely replace all attributes of an existing group, including its display name and member list. This is a full update (PUT), not a partial update (PATCH). Note: Unlike PATCH which only modifies specified attributes, PUT requires sending all desired attributes. Any attributes not included will be reset to default values (e.g., members list will be replaced entirely).",
|
|
23
|
+
input: RoamReplaceGroupInput,
|
|
24
|
+
output: z.object({
|
|
25
|
+
id: z.string().describe("The unique identifier of the group (Roam AddressID)"),
|
|
26
|
+
meta: RoamReplaceGroup_GroupMetaSchema.nullable().optional(),
|
|
27
|
+
members: z.array(RoamReplaceGroup_GroupMemberSchema).describe("List of members in the group after replacement").nullable().optional(),
|
|
28
|
+
schemas: z.array(z.string()).describe("SCIM schemas for the group resource").nullable().optional(),
|
|
29
|
+
displayName: z.string().describe("The display name of the group")
|
|
30
|
+
}).describe("Response schema for a replaced SCIM group.\nReturns the updated group resource after full replacement.")
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { roamReplaceGroup };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=replace-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-group.mjs","names":[],"sources":["../../src/actions/replace-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamReplaceGroupInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID) to replace.\"),\n members: z.array(z.object({})).describe(\"Optional list of members to replace the current group members. Each member should be a dict with a 'value' field containing a Roam Person ID. If not provided, existing members will be removed.\").optional(),\n schemas: z.array(z.string()).default([\"urn:ietf:params:scim:schemas:core:2.0:Group\"]).describe(\"SCIM schema array. Defaults to ['urn:ietf:params:scim:schemas:core:2.0:Group']\").optional(),\n displayName: z.string().describe(\"The display name of the group. Maximum 64 characters.\"),\n}).describe(\"Request schema for fully replacing a group via SCIM 2.0.\\nThis performs a full replacement of all group attributes.\");\nconst RoamReplaceGroup_GroupMetaSchema: z.ZodTypeAny = z.object({\n location: z.string().describe(\"The URI of the group resource.\").nullable().optional(),\n resourceType: z.string().describe(\"The type of resource (always 'Group').\").nullable().optional(),\n}).describe(\"Metadata for a SCIM group.\");\nconst RoamReplaceGroup_GroupMemberSchema: 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 in the response.\");\nexport const RoamReplaceGroupOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID)\"),\n meta: RoamReplaceGroup_GroupMetaSchema.nullable().optional(),\n members: z.array(RoamReplaceGroup_GroupMemberSchema).describe(\"List of members in the group after replacement\").nullable().optional(),\n schemas: z.array(z.string()).describe(\"SCIM schemas for the group resource\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the group\"),\n}).describe(\"Response schema for a replaced SCIM group.\\nReturns the updated group resource after full replacement.\");\n\nexport const roamReplaceGroup = action(\"ROAM_REPLACE_GROUP\", {\n slug: \"roam-replace-group\",\n name: \"Replace Roam SCIM Group\",\n description: \"Fully replaces a group's attributes using SCIM 2.0 protocol. Use when you need to completely replace all attributes of an existing group, including its display name and member list. This is a full update (PUT), not a partial update (PATCH). Note: Unlike PATCH which only modifies specified attributes, PUT requires sending all desired attributes. Any attributes not included will be reset to default values (e.g., members list will be replaced entirely).\",\n input: RoamReplaceGroupInput,\n output: RoamReplaceGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACzF,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACrP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,6CAA6C,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1L,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC1F,CAAC,CAAC,CAAC,SAAS,qHAAqH;AACjI,MAAM,mCAAiD,EAAE,OAAO;CAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,qCAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AASlD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC7E,MAAM,iCAAiC,SAAS,CAAC,CAAC,SAAS;EAC3D,SAAS,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAClE,CAAC,CAAC,CAAC,SAAS,wGAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/replace-user.ts
|
|
4
|
+
const RoamReplaceUserInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the user to replace. This is the SCIM user ID."),
|
|
6
|
+
name: zod.z.object({
|
|
7
|
+
givenName: zod.z.string().describe("First name of the user"),
|
|
8
|
+
familyName: zod.z.string().describe("Last name of the user")
|
|
9
|
+
}).describe("Name object containing the user's given name and family name."),
|
|
10
|
+
role: zod.z.enum(["User", "Admin"]).default("User").describe("User role in Roam organization.").optional(),
|
|
11
|
+
active: zod.z.boolean().default(true).describe("Whether the user account is active. Set to false to archive/deprovision the user. Defaults to true.").optional(),
|
|
12
|
+
emails: zod.z.array(zod.z.object({
|
|
13
|
+
type: zod.z.string().default("work").describe("Type of email address").optional(),
|
|
14
|
+
value: zod.z.string().describe("Email address of the user"),
|
|
15
|
+
primary: zod.z.boolean().describe("Whether this is the primary email address")
|
|
16
|
+
}).describe("Email object for SCIM user.")).describe("List of email addresses for the user. The primary email must match userName."),
|
|
17
|
+
schemas: zod.z.array(zod.z.string()).default(["urn:ietf:params:scim:schemas:core:2.0:User"]).describe("SCIM schemas to include in the request. Defaults to standard User schema.").optional(),
|
|
18
|
+
userName: zod.z.string().describe("Username for the user. Must be the user's email address and must exactly match the primary email value."),
|
|
19
|
+
externalId: zod.z.string().describe("External identifier for correlation with IdP records.").optional(),
|
|
20
|
+
displayName: zod.z.string().describe("Full name of the user. Note: Roam auto-generates this from givenName + familyName, so this value may be ignored.").optional()
|
|
21
|
+
}).describe("Request model for fully replacing (updating) a user via SCIM 2.0.\nThis performs a full replace operation - all attributes must be provided.");
|
|
22
|
+
const RoamReplaceUser_UserNameSchemaSchema = zod.z.object({
|
|
23
|
+
givenName: zod.z.string().describe("First name of the user.").nullable().optional(),
|
|
24
|
+
familyName: zod.z.string().describe("Last name of the user.").nullable().optional()
|
|
25
|
+
}).describe("Name response object from SCIM user.");
|
|
26
|
+
const RoamReplaceUser_EmailResponseSchema = zod.z.object({
|
|
27
|
+
type: zod.z.string().describe("Type of email address.").nullable().optional(),
|
|
28
|
+
value: zod.z.string().describe("Email address.").nullable().optional(),
|
|
29
|
+
primary: zod.z.boolean().describe("Whether this is the primary email.").nullable().optional()
|
|
30
|
+
}).describe("Email response object from SCIM user.");
|
|
31
|
+
const RoamReplaceUser_RoamExtensionResponseSchema = zod.z.object({ role: zod.z.string().describe("Role of the user in the organization.").nullable().optional() }).describe("Roam-specific SCIM extension response.");
|
|
32
|
+
const RoamReplaceUserOutput = zod.z.object({
|
|
33
|
+
id: zod.z.string().describe("Roam's unique Person ID for the replaced user."),
|
|
34
|
+
name: RoamReplaceUser_UserNameSchemaSchema.nullable().optional(),
|
|
35
|
+
active: zod.z.boolean().describe("Whether the user account is active.").nullable().optional(),
|
|
36
|
+
emails: zod.z.array(RoamReplaceUser_EmailResponseSchema).describe("List of email addresses for the replaced user.").nullable().optional(),
|
|
37
|
+
userName: zod.z.string().describe("Username (email) of the replaced user.").nullable().optional(),
|
|
38
|
+
externalId: zod.z.string().describe("External identifier if provided during replacement.").nullable().optional(),
|
|
39
|
+
displayName: zod.z.string().describe("Display name of the replaced user (auto-generated from givenName + familyName).").nullable().optional(),
|
|
40
|
+
roam_extension: RoamReplaceUser_RoamExtensionResponseSchema.nullable().optional()
|
|
41
|
+
}).describe("Response model after replacing a user via SCIM 2.0.");
|
|
42
|
+
const roamReplaceUser = require_action.action("ROAM_REPLACE_USER", {
|
|
43
|
+
slug: "roam-replace-user",
|
|
44
|
+
name: "Replace Roam User",
|
|
45
|
+
description: "Fully replaces (updates) a user's attributes in Roam via SCIM 2.0 protocol. Use when you need to update all user attributes at once. This is a full replacement operation - all required fields must be provided. Note: This is a PUT operation that completely replaces the user. For partial updates, use the patch user operation. Password attributes are not supported and will be ignored.",
|
|
46
|
+
input: RoamReplaceUserInput,
|
|
47
|
+
output: RoamReplaceUserOutput
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
exports.roamReplaceUser = roamReplaceUser;
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=replace-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-user.cjs","names":["z","action"],"sources":["../../src/actions/replace-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamReplaceUserInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user to replace. This is the SCIM user ID.\"),\n name: z.object({\n givenName: z.string().describe(\"First name of the user\"),\n familyName: z.string().describe(\"Last name of the user\"),\n}).describe(\"Name object containing the user's given name and family name.\"),\n role: z.enum([\"User\", \"Admin\"]).default(\"User\").describe(\"User role in Roam organization.\").optional(),\n active: z.boolean().default(true).describe(\"Whether the user account is active. Set to false to archive/deprovision the user. Defaults to true.\").optional(),\n emails: z.array(z.object({\n type: z.string().default(\"work\").describe(\"Type of email address\").optional(),\n value: z.string().describe(\"Email address of the user\"),\n primary: z.boolean().describe(\"Whether this is the primary email address\"),\n}).describe(\"Email object for SCIM user.\")).describe(\"List of email addresses for the user. The primary email must match userName.\"),\n schemas: z.array(z.string()).default([\"urn:ietf:params:scim:schemas:core:2.0:User\"]).describe(\"SCIM schemas to include in the request. Defaults to standard User schema.\").optional(),\n userName: z.string().describe(\"Username for the user. Must be the user's email address and must exactly match the primary email value.\"),\n externalId: z.string().describe(\"External identifier for correlation with IdP records.\").optional(),\n displayName: z.string().describe(\"Full name of the user. Note: Roam auto-generates this from givenName + familyName, so this value may be ignored.\").optional(),\n}).describe(\"Request model for fully replacing (updating) a user via SCIM 2.0.\\nThis performs a full replace operation - all attributes must be provided.\");\nconst RoamReplaceUser_UserNameSchemaSchema: z.ZodTypeAny = z.object({\n givenName: z.string().describe(\"First name of the user.\").nullable().optional(),\n familyName: z.string().describe(\"Last name of the user.\").nullable().optional(),\n}).describe(\"Name response object from SCIM user.\");\nconst RoamReplaceUser_EmailResponseSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of email address.\").nullable().optional(),\n value: z.string().describe(\"Email address.\").nullable().optional(),\n primary: z.boolean().describe(\"Whether this is the primary email.\").nullable().optional(),\n}).describe(\"Email response object from SCIM user.\");\nconst RoamReplaceUser_RoamExtensionResponseSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role of the user in the organization.\").nullable().optional(),\n}).describe(\"Roam-specific SCIM extension response.\");\nexport const RoamReplaceUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Roam's unique Person ID for the replaced user.\"),\n name: RoamReplaceUser_UserNameSchemaSchema.nullable().optional(),\n active: z.boolean().describe(\"Whether the user account is active.\").nullable().optional(),\n emails: z.array(RoamReplaceUser_EmailResponseSchema).describe(\"List of email addresses for the replaced user.\").nullable().optional(),\n userName: z.string().describe(\"Username (email) of the replaced user.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier if provided during replacement.\").nullable().optional(),\n displayName: z.string().describe(\"Display name of the replaced user (auto-generated from givenName + familyName).\").nullable().optional(),\n roam_extension: RoamReplaceUser_RoamExtensionResponseSchema.nullable().optional(),\n}).describe(\"Response model after replacing a user via SCIM 2.0.\");\n\nexport const roamReplaceUser = action(\"ROAM_REPLACE_USER\", {\n slug: \"roam-replace-user\",\n name: \"Replace Roam User\",\n description: \"Fully replaces (updates) a user's attributes in Roam via SCIM 2.0 protocol. Use when you need to update all user attributes at once. This is a full replacement operation - all required fields must be provided. Note: This is a PUT operation that completely replaces the user. For partial updates, use the patch user operation. Password attributes are not supported and will be ignored.\",\n input: RoamReplaceUserInput,\n output: RoamReplaceUserOutput,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/replace-user.d.ts
|
|
4
|
+
declare const RoamReplaceUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamReplaceUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamReplaceUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamReplaceUser };
|
|
9
|
+
//# sourceMappingURL=replace-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-user.d.cts","names":[],"sources":["../../src/actions/replace-user.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAiBsH;AAAA,cAa9I,qBAAA,EAAuB,CAAA,CAAE,UAS4B;AAAA,cAErD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/replace-user.d.ts
|
|
4
|
+
declare const RoamReplaceUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamReplaceUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamReplaceUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamReplaceUser };
|
|
9
|
+
//# sourceMappingURL=replace-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-user.d.mts","names":[],"sources":["../../src/actions/replace-user.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAiBsH;AAAA,cAa9I,qBAAA,EAAuB,CAAA,CAAE,UAS4B;AAAA,cAErD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/replace-user.ts
|
|
4
|
+
const RoamReplaceUserInput = z.object({
|
|
5
|
+
id: z.string().describe("The unique identifier of the user to replace. This is the SCIM user ID."),
|
|
6
|
+
name: z.object({
|
|
7
|
+
givenName: z.string().describe("First name of the user"),
|
|
8
|
+
familyName: z.string().describe("Last name of the user")
|
|
9
|
+
}).describe("Name object containing the user's given name and family name."),
|
|
10
|
+
role: z.enum(["User", "Admin"]).default("User").describe("User role in Roam organization.").optional(),
|
|
11
|
+
active: z.boolean().default(true).describe("Whether the user account is active. Set to false to archive/deprovision the user. Defaults to true.").optional(),
|
|
12
|
+
emails: z.array(z.object({
|
|
13
|
+
type: z.string().default("work").describe("Type of email address").optional(),
|
|
14
|
+
value: z.string().describe("Email address of the user"),
|
|
15
|
+
primary: z.boolean().describe("Whether this is the primary email address")
|
|
16
|
+
}).describe("Email object for SCIM user.")).describe("List of email addresses for the user. The primary email must match userName."),
|
|
17
|
+
schemas: z.array(z.string()).default(["urn:ietf:params:scim:schemas:core:2.0:User"]).describe("SCIM schemas to include in the request. Defaults to standard User schema.").optional(),
|
|
18
|
+
userName: z.string().describe("Username for the user. Must be the user's email address and must exactly match the primary email value."),
|
|
19
|
+
externalId: z.string().describe("External identifier for correlation with IdP records.").optional(),
|
|
20
|
+
displayName: z.string().describe("Full name of the user. Note: Roam auto-generates this from givenName + familyName, so this value may be ignored.").optional()
|
|
21
|
+
}).describe("Request model for fully replacing (updating) a user via SCIM 2.0.\nThis performs a full replace operation - all attributes must be provided.");
|
|
22
|
+
const RoamReplaceUser_UserNameSchemaSchema = z.object({
|
|
23
|
+
givenName: z.string().describe("First name of the user.").nullable().optional(),
|
|
24
|
+
familyName: z.string().describe("Last name of the user.").nullable().optional()
|
|
25
|
+
}).describe("Name response object from SCIM user.");
|
|
26
|
+
const RoamReplaceUser_EmailResponseSchema = z.object({
|
|
27
|
+
type: z.string().describe("Type of email address.").nullable().optional(),
|
|
28
|
+
value: z.string().describe("Email address.").nullable().optional(),
|
|
29
|
+
primary: z.boolean().describe("Whether this is the primary email.").nullable().optional()
|
|
30
|
+
}).describe("Email response object from SCIM user.");
|
|
31
|
+
const RoamReplaceUser_RoamExtensionResponseSchema = z.object({ role: z.string().describe("Role of the user in the organization.").nullable().optional() }).describe("Roam-specific SCIM extension response.");
|
|
32
|
+
const roamReplaceUser = action("ROAM_REPLACE_USER", {
|
|
33
|
+
slug: "roam-replace-user",
|
|
34
|
+
name: "Replace Roam User",
|
|
35
|
+
description: "Fully replaces (updates) a user's attributes in Roam via SCIM 2.0 protocol. Use when you need to update all user attributes at once. This is a full replacement operation - all required fields must be provided. Note: This is a PUT operation that completely replaces the user. For partial updates, use the patch user operation. Password attributes are not supported and will be ignored.",
|
|
36
|
+
input: RoamReplaceUserInput,
|
|
37
|
+
output: z.object({
|
|
38
|
+
id: z.string().describe("Roam's unique Person ID for the replaced user."),
|
|
39
|
+
name: RoamReplaceUser_UserNameSchemaSchema.nullable().optional(),
|
|
40
|
+
active: z.boolean().describe("Whether the user account is active.").nullable().optional(),
|
|
41
|
+
emails: z.array(RoamReplaceUser_EmailResponseSchema).describe("List of email addresses for the replaced user.").nullable().optional(),
|
|
42
|
+
userName: z.string().describe("Username (email) of the replaced user.").nullable().optional(),
|
|
43
|
+
externalId: z.string().describe("External identifier if provided during replacement.").nullable().optional(),
|
|
44
|
+
displayName: z.string().describe("Display name of the replaced user (auto-generated from givenName + familyName).").nullable().optional(),
|
|
45
|
+
roam_extension: RoamReplaceUser_RoamExtensionResponseSchema.nullable().optional()
|
|
46
|
+
}).describe("Response model after replacing a user via SCIM 2.0.")
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
export { roamReplaceUser };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=replace-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-user.mjs","names":[],"sources":["../../src/actions/replace-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamReplaceUserInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user to replace. This is the SCIM user ID.\"),\n name: z.object({\n givenName: z.string().describe(\"First name of the user\"),\n familyName: z.string().describe(\"Last name of the user\"),\n}).describe(\"Name object containing the user's given name and family name.\"),\n role: z.enum([\"User\", \"Admin\"]).default(\"User\").describe(\"User role in Roam organization.\").optional(),\n active: z.boolean().default(true).describe(\"Whether the user account is active. Set to false to archive/deprovision the user. Defaults to true.\").optional(),\n emails: z.array(z.object({\n type: z.string().default(\"work\").describe(\"Type of email address\").optional(),\n value: z.string().describe(\"Email address of the user\"),\n primary: z.boolean().describe(\"Whether this is the primary email address\"),\n}).describe(\"Email object for SCIM user.\")).describe(\"List of email addresses for the user. The primary email must match userName.\"),\n schemas: z.array(z.string()).default([\"urn:ietf:params:scim:schemas:core:2.0:User\"]).describe(\"SCIM schemas to include in the request. Defaults to standard User schema.\").optional(),\n userName: z.string().describe(\"Username for the user. Must be the user's email address and must exactly match the primary email value.\"),\n externalId: z.string().describe(\"External identifier for correlation with IdP records.\").optional(),\n displayName: z.string().describe(\"Full name of the user. Note: Roam auto-generates this from givenName + familyName, so this value may be ignored.\").optional(),\n}).describe(\"Request model for fully replacing (updating) a user via SCIM 2.0.\\nThis performs a full replace operation - all attributes must be provided.\");\nconst RoamReplaceUser_UserNameSchemaSchema: z.ZodTypeAny = z.object({\n givenName: z.string().describe(\"First name of the user.\").nullable().optional(),\n familyName: z.string().describe(\"Last name of the user.\").nullable().optional(),\n}).describe(\"Name response object from SCIM user.\");\nconst RoamReplaceUser_EmailResponseSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of email address.\").nullable().optional(),\n value: z.string().describe(\"Email address.\").nullable().optional(),\n primary: z.boolean().describe(\"Whether this is the primary email.\").nullable().optional(),\n}).describe(\"Email response object from SCIM user.\");\nconst RoamReplaceUser_RoamExtensionResponseSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role of the user in the organization.\").nullable().optional(),\n}).describe(\"Roam-specific SCIM extension response.\");\nexport const RoamReplaceUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Roam's unique Person ID for the replaced user.\"),\n name: RoamReplaceUser_UserNameSchemaSchema.nullable().optional(),\n active: z.boolean().describe(\"Whether the user account is active.\").nullable().optional(),\n emails: z.array(RoamReplaceUser_EmailResponseSchema).describe(\"List of email addresses for the replaced user.\").nullable().optional(),\n userName: z.string().describe(\"Username (email) of the replaced user.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier if provided during replacement.\").nullable().optional(),\n displayName: z.string().describe(\"Display name of the replaced user (auto-generated from givenName + familyName).\").nullable().optional(),\n roam_extension: RoamReplaceUser_RoamExtensionResponseSchema.nullable().optional(),\n}).describe(\"Response model after replacing a user via SCIM 2.0.\");\n\nexport const roamReplaceUser = action(\"ROAM_REPLACE_USER\", {\n slug: \"roam-replace-user\",\n name: \"Replace Roam User\",\n description: \"Fully replaces (updates) a user's attributes in Roam via SCIM 2.0 protocol. Use when you need to update all user attributes at once. This is a full replacement operation - all required fields must be provided. Note: This is a PUT operation that completely replaces the user. For partial updates, use the patch user operation. Password attributes are not supported and will be ignored.\",\n input: RoamReplaceUserInput,\n output: RoamReplaceUserOutput,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/send-message.ts
|
|
4
|
+
const RoamSendMessageInput = zod.z.object({
|
|
5
|
+
text: zod.z.string().describe("The message text to send"),
|
|
6
|
+
sender: zod.z.object({
|
|
7
|
+
id: zod.z.string().describe("Sender ID"),
|
|
8
|
+
name: zod.z.string().describe("Sender name"),
|
|
9
|
+
image_url: zod.z.string().describe("Sender image URL").optional()
|
|
10
|
+
}).describe("Sender info with id, name, and imageUrl fields").optional(),
|
|
11
|
+
markdown: zod.z.boolean().default(true).describe("Text is markdown by default. Set to false to disable markdown interpretation").optional(),
|
|
12
|
+
recipients: zod.z.array(zod.z.string()).describe("Array of recipient UUIDs (currently supports single group). You can obtain the group ID on the Group Settings page.")
|
|
13
|
+
});
|
|
14
|
+
const RoamSendMessageOutput = zod.z.object({
|
|
15
|
+
status: zod.z.string().describe("Status of the message sending operation").nullable().optional(),
|
|
16
|
+
chat_id: zod.z.string().describe("ID of the chat the message was sent to").nullable().optional()
|
|
17
|
+
});
|
|
18
|
+
const roamSendMessage = require_action.action("ROAM_SEND_MESSAGE", {
|
|
19
|
+
slug: "roam-send-message",
|
|
20
|
+
name: "Send message to group",
|
|
21
|
+
description: "Sends the given message to the specified recipients. At this time, we only support sending to a single group recipient. You can obtain the group ID on the Group Settings page.",
|
|
22
|
+
input: RoamSendMessageInput,
|
|
23
|
+
output: RoamSendMessageOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.roamSendMessage = roamSendMessage;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=send-message.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.cjs","names":["z","action"],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamSendMessageInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The message text to send\"),\n sender: z.object({\n id: z.string().describe(\"Sender ID\"),\n name: z.string().describe(\"Sender name\"),\n image_url: z.string().describe(\"Sender image URL\").optional(),\n}).describe(\"Sender info with id, name, and imageUrl fields\").optional(),\n markdown: z.boolean().default(true).describe(\"Text is markdown by default. Set to false to disable markdown interpretation\").optional(),\n recipients: z.array(z.string()).describe(\"Array of recipient UUIDs (currently supports single group). You can obtain the group ID on the Group Settings page.\"),\n});\nexport const RoamSendMessageOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the message sending operation\").nullable().optional(),\n chat_id: z.string().describe(\"ID of the chat the message was sent to\").nullable().optional(),\n});\n\nexport const roamSendMessage = action(\"ROAM_SEND_MESSAGE\", {\n slug: \"roam-send-message\",\n name: \"Send message to group\",\n description: \"Sends the given message to the specified recipients. At this time, we only support sending to a single group recipient. You can obtain the group ID on the Group Settings page.\",\n input: RoamSendMessageInput,\n output: RoamSendMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,QAAQA,IAAAA,EAAE,OAAO;EACjB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;EACnC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EACvC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC9D,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qHAAqH;AAChK,CAAC;AACD,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC;AAED,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/send-message.d.ts
|
|
4
|
+
declare const RoamSendMessageInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamSendMessageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamSendMessage };
|
|
9
|
+
//# sourceMappingURL=send-message.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.d.cts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UASnC;AAAA,cACW,qBAAA,EAAuB,CAAA,CAAE,UAGpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/send-message.d.ts
|
|
4
|
+
declare const RoamSendMessageInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamSendMessageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamSendMessage };
|
|
9
|
+
//# sourceMappingURL=send-message.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.d.mts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UASnC;AAAA,cACW,qBAAA,EAAuB,CAAA,CAAE,UAGpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const roamSendMessage = action("ROAM_SEND_MESSAGE", {
|
|
4
|
+
slug: "roam-send-message",
|
|
5
|
+
name: "Send message to group",
|
|
6
|
+
description: "Sends the given message to the specified recipients. At this time, we only support sending to a single group recipient. You can obtain the group ID on the Group Settings page.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
text: z.string().describe("The message text to send"),
|
|
9
|
+
sender: z.object({
|
|
10
|
+
id: z.string().describe("Sender ID"),
|
|
11
|
+
name: z.string().describe("Sender name"),
|
|
12
|
+
image_url: z.string().describe("Sender image URL").optional()
|
|
13
|
+
}).describe("Sender info with id, name, and imageUrl fields").optional(),
|
|
14
|
+
markdown: z.boolean().default(true).describe("Text is markdown by default. Set to false to disable markdown interpretation").optional(),
|
|
15
|
+
recipients: z.array(z.string()).describe("Array of recipient UUIDs (currently supports single group). You can obtain the group ID on the Group Settings page.")
|
|
16
|
+
}),
|
|
17
|
+
output: z.object({
|
|
18
|
+
status: z.string().describe("Status of the message sending operation").nullable().optional(),
|
|
19
|
+
chat_id: z.string().describe("ID of the chat the message was sent to").nullable().optional()
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { roamSendMessage };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=send-message.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.mjs","names":[],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamSendMessageInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The message text to send\"),\n sender: z.object({\n id: z.string().describe(\"Sender ID\"),\n name: z.string().describe(\"Sender name\"),\n image_url: z.string().describe(\"Sender image URL\").optional(),\n}).describe(\"Sender info with id, name, and imageUrl fields\").optional(),\n markdown: z.boolean().default(true).describe(\"Text is markdown by default. Set to false to disable markdown interpretation\").optional(),\n recipients: z.array(z.string()).describe(\"Array of recipient UUIDs (currently supports single group). You can obtain the group ID on the Group Settings page.\"),\n});\nexport const RoamSendMessageOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the message sending operation\").nullable().optional(),\n chat_id: z.string().describe(\"ID of the chat the message was sent to\").nullable().optional(),\n});\n\nexport const roamSendMessage = action(\"ROAM_SEND_MESSAGE\", {\n slug: \"roam-send-message\",\n name: \"Send message to group\",\n description: \"Sends the given message to the specified recipients. At this time, we only support sending to a single group recipient. You can obtain the group ID on the Group Settings page.\",\n input: RoamSendMessageInput,\n output: RoamSendMessageOutput,\n});\n"],"mappings":";;AAmBA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,QAAQ,EAAE,OAAO;GACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;GACnC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;GACvC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAC9D,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qHAAqH;CAChK,CAUS;CACP,QAViD,EAAE,OAAO;EAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/send-typing.ts
|
|
4
|
+
const RoamSendTypingInput = zod.z.object({ user_ids: zod.z.array(zod.z.string()).describe("List of user IDs to notify that you are typing. These are the recipients of the typing indicator.") }).describe("Request parameters for sending a typing indicator to chat participants.");
|
|
5
|
+
const RoamSendTypingOutput = zod.z.object({
|
|
6
|
+
success: zod.z.boolean().describe("Whether the typing indicator was sent successfully."),
|
|
7
|
+
status_code: zod.z.number().int().describe("HTTP status code returned by the API.")
|
|
8
|
+
}).describe("Response schema for the typing indicator endpoint.");
|
|
9
|
+
const roamSendTyping = require_action.action("ROAM_SEND_TYPING", {
|
|
10
|
+
slug: "roam-send-typing",
|
|
11
|
+
name: "Send Typing Indicator",
|
|
12
|
+
description: "Tool to notify other chat participants that you are typing. Use when you want to show a typing indicator to one or more users in a chat conversation. This is typically used before sending a message to let recipients know you're composing a response.",
|
|
13
|
+
input: RoamSendTypingInput,
|
|
14
|
+
output: RoamSendTypingOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.roamSendTyping = roamSendTyping;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=send-typing.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-typing.cjs","names":["z","action"],"sources":["../../src/actions/send-typing.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamSendTypingInput: z.ZodTypeAny = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to notify that you are typing. These are the recipients of the typing indicator.\"),\n}).describe(\"Request parameters for sending a typing indicator to chat participants.\");\nexport const RoamSendTypingOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Whether the typing indicator was sent successfully.\"),\n status_code: z.number().int().describe(\"HTTP status code returned by the API.\"),\n}).describe(\"Response schema for the typing indicator endpoint.\");\n\nexport const roamSendTyping = action(\"ROAM_SEND_TYPING\", {\n slug: \"roam-send-typing\",\n name: \"Send Typing Indicator\",\n description: \"Tool to notify other chat participants that you are typing. Use when you want to show a typing indicator to one or more users in a chat conversation. This is typically used before sending a message to let recipients know you're composing a response.\",\n input: RoamSendTypingInput,\n output: RoamSendTypingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mGAAmG,EAC5I,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;AAChF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,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/send-typing.d.ts
|
|
4
|
+
declare const RoamSendTypingInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamSendTypingOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamSendTyping: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamSendTyping };
|
|
9
|
+
//# sourceMappingURL=send-typing.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-typing.d.cts","names":[],"sources":["../../src/actions/send-typing.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAEkD;AAAA,cACzE,oBAAA,EAAsB,CAAA,CAAE,UAG4B;AAAA,cAEpD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/send-typing.d.ts
|
|
4
|
+
declare const RoamSendTypingInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamSendTypingOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamSendTyping: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamSendTyping };
|
|
9
|
+
//# sourceMappingURL=send-typing.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-typing.d.mts","names":[],"sources":["../../src/actions/send-typing.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAEkD;AAAA,cACzE,oBAAA,EAAsB,CAAA,CAAE,UAG4B;AAAA,cAEpD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const roamSendTyping = action("ROAM_SEND_TYPING", {
|
|
4
|
+
slug: "roam-send-typing",
|
|
5
|
+
name: "Send Typing Indicator",
|
|
6
|
+
description: "Tool to notify other chat participants that you are typing. Use when you want to show a typing indicator to one or more users in a chat conversation. This is typically used before sending a message to let recipients know you're composing a response.",
|
|
7
|
+
input: z.object({ user_ids: z.array(z.string()).describe("List of user IDs to notify that you are typing. These are the recipients of the typing indicator.") }).describe("Request parameters for sending a typing indicator to chat participants."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
success: z.boolean().describe("Whether the typing indicator was sent successfully."),
|
|
10
|
+
status_code: z.number().int().describe("HTTP status code returned by the API.")
|
|
11
|
+
}).describe("Response schema for the typing indicator endpoint.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { roamSendTyping };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=send-typing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-typing.mjs","names":[],"sources":["../../src/actions/send-typing.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamSendTypingInput: z.ZodTypeAny = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to notify that you are typing. These are the recipients of the typing indicator.\"),\n}).describe(\"Request parameters for sending a typing indicator to chat participants.\");\nexport const RoamSendTypingOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Whether the typing indicator was sent successfully.\"),\n status_code: z.number().int().describe(\"HTTP status code returned by the API.\"),\n}).describe(\"Response schema for the typing indicator endpoint.\");\n\nexport const roamSendTyping = action(\"ROAM_SEND_TYPING\", {\n slug: \"roam-send-typing\",\n name: \"Send Typing Indicator\",\n description: \"Tool to notify other chat participants that you are typing. Use when you want to show a typing indicator to one or more users in a chat conversation. This is typically used before sending a message to let recipients know you're composing a response.\",\n input: RoamSendTypingInput,\n output: RoamSendTypingOutput,\n});\n"],"mappings":";;AAYA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mGAAmG,EAC5I,CAAC,CAAC,CAAC,SAAS,yEAUH;CACP,QAVgD,EAAE,OAAO;EACzD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CAChF,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-meeting-link.ts
|
|
4
|
+
const RoamUpdateMeetingLinkInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the meeting link to update (UUID)"),
|
|
6
|
+
end: zod.z.string().describe("Meeting end time in RFC3339 format (e.g., 2024-01-15T11:00:00Z)").optional(),
|
|
7
|
+
host: zod.z.string().describe("The email address of the meeting host. Cannot be updated; must match existing value if provided.").optional(),
|
|
8
|
+
name: zod.z.string().describe("The new name for the meeting"),
|
|
9
|
+
start: zod.z.string().describe("Meeting start time in RFC3339 format (e.g., 2024-01-15T10:00:00Z)").optional()
|
|
10
|
+
});
|
|
11
|
+
const RoamUpdateMeetingLinkOutput = zod.z.object({}).describe("Response model for updating a meeting link. Returns empty on success (204 No Content).");
|
|
12
|
+
const roamUpdateMeetingLink = require_action.action("ROAM_UPDATE_MEETING_LINK", {
|
|
13
|
+
slug: "roam-update-meeting-link",
|
|
14
|
+
name: "Update a meeting link",
|
|
15
|
+
description: "Update settings for an existing meeting link in Roam. Use this action when you need to modify the name, start time, or end time of an existing meeting link. The meeting link ID is required to identify which meeting to update. Note: The host field cannot be updated; if provided, it must match the existing value. Returns 204 No Content on success.",
|
|
16
|
+
input: RoamUpdateMeetingLinkInput,
|
|
17
|
+
output: RoamUpdateMeetingLinkOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.roamUpdateMeetingLink = roamUpdateMeetingLink;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=update-meeting-link.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-meeting-link.cjs","names":["z","action"],"sources":["../../src/actions/update-meeting-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamUpdateMeetingLinkInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the meeting link to update (UUID)\"),\n end: z.string().describe(\"Meeting end time in RFC3339 format (e.g., 2024-01-15T11:00:00Z)\").optional(),\n host: z.string().describe(\"The email address of the meeting host. Cannot be updated; must match existing value if provided.\").optional(),\n name: z.string().describe(\"The new name for the meeting\"),\n start: z.string().describe(\"Meeting start time in RFC3339 format (e.g., 2024-01-15T10:00:00Z)\").optional(),\n});\nexport const RoamUpdateMeetingLinkOutput: z.ZodTypeAny = z.object({}).describe(\"Response model for updating a meeting link. Returns empty on success (204 No Content).\");\n\nexport const roamUpdateMeetingLink = action(\"ROAM_UPDATE_MEETING_LINK\", {\n slug: \"roam-update-meeting-link\",\n name: \"Update a meeting link\",\n description: \"Update settings for an existing meeting link in Roam. Use this action when you need to modify the name, start time, or end time of an existing meeting link. The meeting link ID is required to identify which meeting to update. Note: The host field cannot be updated; if provided, it must match the existing value. Returns 204 No Content on success.\",\n input: RoamUpdateMeetingLinkInput,\n output: RoamUpdateMeetingLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC3G,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF;AAEvK,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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/update-meeting-link.d.ts
|
|
4
|
+
declare const RoamUpdateMeetingLinkInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamUpdateMeetingLinkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamUpdateMeetingLink: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamUpdateMeetingLink };
|
|
9
|
+
//# sourceMappingURL=update-meeting-link.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-meeting-link.d.cts","names":[],"sources":["../../src/actions/update-meeting-link.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAA4H;AAAA,cAE3J,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-meeting-link.d.ts
|
|
4
|
+
declare const RoamUpdateMeetingLinkInput: z.ZodTypeAny;
|
|
5
|
+
declare const RoamUpdateMeetingLinkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const roamUpdateMeetingLink: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { roamUpdateMeetingLink };
|
|
9
|
+
//# sourceMappingURL=update-meeting-link.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-meeting-link.d.mts","names":[],"sources":["../../src/actions/update-meeting-link.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAA4H;AAAA,cAE3J,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const roamUpdateMeetingLink = action("ROAM_UPDATE_MEETING_LINK", {
|
|
4
|
+
slug: "roam-update-meeting-link",
|
|
5
|
+
name: "Update a meeting link",
|
|
6
|
+
description: "Update settings for an existing meeting link in Roam. Use this action when you need to modify the name, start time, or end time of an existing meeting link. The meeting link ID is required to identify which meeting to update. Note: The host field cannot be updated; if provided, it must match the existing value. Returns 204 No Content on success.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.string().describe("The unique identifier of the meeting link to update (UUID)"),
|
|
9
|
+
end: z.string().describe("Meeting end time in RFC3339 format (e.g., 2024-01-15T11:00:00Z)").optional(),
|
|
10
|
+
host: z.string().describe("The email address of the meeting host. Cannot be updated; must match existing value if provided.").optional(),
|
|
11
|
+
name: z.string().describe("The new name for the meeting"),
|
|
12
|
+
start: z.string().describe("Meeting start time in RFC3339 format (e.g., 2024-01-15T10:00:00Z)").optional()
|
|
13
|
+
}),
|
|
14
|
+
output: z.object({}).describe("Response model for updating a meeting link. Returns empty on success (204 No Content).")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { roamUpdateMeetingLink };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=update-meeting-link.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-meeting-link.mjs","names":[],"sources":["../../src/actions/update-meeting-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RoamUpdateMeetingLinkInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the meeting link to update (UUID)\"),\n end: z.string().describe(\"Meeting end time in RFC3339 format (e.g., 2024-01-15T11:00:00Z)\").optional(),\n host: z.string().describe(\"The email address of the meeting host. Cannot be updated; must match existing value if provided.\").optional(),\n name: z.string().describe(\"The new name for the meeting\"),\n start: z.string().describe(\"Meeting start time in RFC3339 format (e.g., 2024-01-15T10:00:00Z)\").optional(),\n});\nexport const RoamUpdateMeetingLinkOutput: z.ZodTypeAny = z.object({}).describe(\"Response model for updating a meeting link. Returns empty on success (204 No Content).\");\n\nexport const roamUpdateMeetingLink = action(\"ROAM_UPDATE_MEETING_LINK\", {\n slug: \"roam-update-meeting-link\",\n name: \"Update a meeting link\",\n description: \"Update settings for an existing meeting link in Roam. Use this action when you need to modify the name, start time, or end time of an existing meeting link. The meeting link ID is required to identify which meeting to update. Note: The host field cannot be updated; if provided, it must match the existing value. Returns 204 No Content on success.\",\n input: RoamUpdateMeetingLinkInput,\n output: RoamUpdateMeetingLinkOutput,\n});\n"],"mappings":";;AAaA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACrG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC3G,CAOS;CACP,QAPuD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAOrE;AACV,CAAC"}
|