@keystrokehq/roam 0.1.2 → 0.1.3

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.
Files changed (241) hide show
  1. package/dist/actions/add-group-members.cjs +1 -1
  2. package/dist/actions/add-group-members.cjs.map +1 -1
  3. package/dist/actions/add-group-members.d.cts +1 -1
  4. package/dist/actions/add-group-members.d.mts +1 -1
  5. package/dist/actions/add-group-members.mjs +1 -1
  6. package/dist/actions/add-group-members.mjs.map +1 -1
  7. package/dist/actions/add-reaction.cjs +1 -1
  8. package/dist/actions/add-reaction.cjs.map +1 -1
  9. package/dist/actions/add-reaction.d.cts +1 -1
  10. package/dist/actions/add-reaction.d.mts +1 -1
  11. package/dist/actions/add-reaction.mjs +1 -1
  12. package/dist/actions/add-reaction.mjs.map +1 -1
  13. package/dist/actions/create-group.cjs +1 -1
  14. package/dist/actions/create-group.cjs.map +1 -1
  15. package/dist/actions/create-group.d.cts +1 -1
  16. package/dist/actions/create-group.d.mts +1 -1
  17. package/dist/actions/create-group.mjs +1 -1
  18. package/dist/actions/create-group.mjs.map +1 -1
  19. package/dist/actions/create-roam-scim-group.cjs +2 -2
  20. package/dist/actions/create-roam-scim-group.cjs.map +1 -1
  21. package/dist/actions/create-roam-scim-group.d.cts +3 -3
  22. package/dist/actions/create-roam-scim-group.d.mts +3 -3
  23. package/dist/actions/create-roam-scim-group.mjs +2 -2
  24. package/dist/actions/create-roam-scim-group.mjs.map +1 -1
  25. package/dist/actions/create-user.cjs +5 -5
  26. package/dist/actions/create-user.cjs.map +1 -1
  27. package/dist/actions/create-user.d.cts +6 -5
  28. package/dist/actions/create-user.d.mts +6 -5
  29. package/dist/actions/create-user.mjs +5 -5
  30. package/dist/actions/create-user.mjs.map +1 -1
  31. package/dist/actions/delete-group.cjs +1 -1
  32. package/dist/actions/delete-group.cjs.map +1 -1
  33. package/dist/actions/delete-group.d.cts +1 -1
  34. package/dist/actions/delete-group.d.mts +1 -1
  35. package/dist/actions/delete-group.mjs +1 -1
  36. package/dist/actions/delete-group.mjs.map +1 -1
  37. package/dist/actions/delete-user.cjs +1 -1
  38. package/dist/actions/delete-user.cjs.map +1 -1
  39. package/dist/actions/delete-user.d.cts +1 -1
  40. package/dist/actions/delete-user.d.mts +1 -1
  41. package/dist/actions/delete-user.mjs +1 -1
  42. package/dist/actions/delete-user.mjs.map +1 -1
  43. package/dist/actions/get-address-info.cjs +1 -1
  44. package/dist/actions/get-address-info.cjs.map +1 -1
  45. package/dist/actions/get-address-info.d.cts +1 -1
  46. package/dist/actions/get-address-info.d.mts +1 -1
  47. package/dist/actions/get-address-info.mjs +1 -1
  48. package/dist/actions/get-address-info.mjs.map +1 -1
  49. package/dist/actions/get-chat-history.cjs +2 -2
  50. package/dist/actions/get-chat-history.cjs.map +1 -1
  51. package/dist/actions/get-chat-history.d.cts +2 -2
  52. package/dist/actions/get-chat-history.d.mts +2 -2
  53. package/dist/actions/get-chat-history.mjs +2 -2
  54. package/dist/actions/get-chat-history.mjs.map +1 -1
  55. package/dist/actions/get-meeting-link.cjs +1 -1
  56. package/dist/actions/get-meeting-link.cjs.map +1 -1
  57. package/dist/actions/get-meeting-link.d.cts +1 -1
  58. package/dist/actions/get-meeting-link.d.mts +1 -1
  59. package/dist/actions/get-meeting-link.mjs +1 -1
  60. package/dist/actions/get-meeting-link.mjs.map +1 -1
  61. package/dist/actions/get-resource-types.cjs +2 -2
  62. package/dist/actions/get-resource-types.cjs.map +1 -1
  63. package/dist/actions/get-resource-types.d.cts +2 -2
  64. package/dist/actions/get-resource-types.d.mts +2 -2
  65. package/dist/actions/get-resource-types.mjs +2 -2
  66. package/dist/actions/get-resource-types.mjs.map +1 -1
  67. package/dist/actions/get-roam-scim-config.cjs +9 -9
  68. package/dist/actions/get-roam-scim-config.cjs.map +1 -1
  69. package/dist/actions/get-roam-scim-config.d.cts +9 -9
  70. package/dist/actions/get-roam-scim-config.d.mts +9 -9
  71. package/dist/actions/get-roam-scim-config.mjs +9 -9
  72. package/dist/actions/get-roam-scim-config.mjs.map +1 -1
  73. package/dist/actions/get-scim-schema.cjs +1 -1
  74. package/dist/actions/get-scim-schema.cjs.map +1 -1
  75. package/dist/actions/get-scim-schema.d.cts +1 -1
  76. package/dist/actions/get-scim-schema.d.mts +1 -1
  77. package/dist/actions/get-scim-schema.mjs +1 -1
  78. package/dist/actions/get-scim-schema.mjs.map +1 -1
  79. package/dist/actions/get-scim-user.cjs +5 -5
  80. package/dist/actions/get-scim-user.cjs.map +1 -1
  81. package/dist/actions/get-scim-user.d.cts +5 -5
  82. package/dist/actions/get-scim-user.d.mts +5 -5
  83. package/dist/actions/get-scim-user.mjs +5 -5
  84. package/dist/actions/get-scim-user.mjs.map +1 -1
  85. package/dist/actions/get-test.cjs +1 -1
  86. package/dist/actions/get-test.cjs.map +1 -1
  87. package/dist/actions/get-test.d.cts +1 -1
  88. package/dist/actions/get-test.d.mts +1 -1
  89. package/dist/actions/get-test.mjs +1 -1
  90. package/dist/actions/get-test.mjs.map +1 -1
  91. package/dist/actions/get-token-info.cjs +2 -2
  92. package/dist/actions/get-token-info.cjs.map +1 -1
  93. package/dist/actions/get-token-info.d.cts +2 -2
  94. package/dist/actions/get-token-info.d.mts +2 -2
  95. package/dist/actions/get-token-info.mjs +2 -2
  96. package/dist/actions/get-token-info.mjs.map +1 -1
  97. package/dist/actions/get-user-info.cjs +1 -1
  98. package/dist/actions/get-user-info.cjs.map +1 -1
  99. package/dist/actions/get-user-info.d.cts +1 -1
  100. package/dist/actions/get-user-info.d.mts +1 -1
  101. package/dist/actions/get-user-info.mjs +1 -1
  102. package/dist/actions/get-user-info.mjs.map +1 -1
  103. package/dist/actions/list-chats.cjs +2 -2
  104. package/dist/actions/list-chats.cjs.map +1 -1
  105. package/dist/actions/list-chats.d.cts +2 -2
  106. package/dist/actions/list-chats.d.mts +2 -2
  107. package/dist/actions/list-chats.mjs +2 -2
  108. package/dist/actions/list-chats.mjs.map +1 -1
  109. package/dist/actions/list-group-members.cjs +2 -2
  110. package/dist/actions/list-group-members.cjs.map +1 -1
  111. package/dist/actions/list-group-members.d.cts +2 -2
  112. package/dist/actions/list-group-members.d.mts +2 -2
  113. package/dist/actions/list-group-members.mjs +2 -2
  114. package/dist/actions/list-group-members.mjs.map +1 -1
  115. package/dist/actions/list-groups.cjs +4 -4
  116. package/dist/actions/list-groups.cjs.map +1 -1
  117. package/dist/actions/list-groups.d.cts +4 -4
  118. package/dist/actions/list-groups.d.mts +4 -4
  119. package/dist/actions/list-groups.mjs +4 -4
  120. package/dist/actions/list-groups.mjs.map +1 -1
  121. package/dist/actions/list-lobbies.cjs +2 -2
  122. package/dist/actions/list-lobbies.cjs.map +1 -1
  123. package/dist/actions/list-lobbies.d.cts +2 -2
  124. package/dist/actions/list-lobbies.d.mts +2 -2
  125. package/dist/actions/list-lobbies.mjs +2 -2
  126. package/dist/actions/list-lobbies.mjs.map +1 -1
  127. package/dist/actions/list-meetings.cjs +3 -3
  128. package/dist/actions/list-meetings.cjs.map +1 -1
  129. package/dist/actions/list-meetings.d.cts +3 -3
  130. package/dist/actions/list-meetings.d.mts +3 -3
  131. package/dist/actions/list-meetings.mjs +3 -3
  132. package/dist/actions/list-meetings.mjs.map +1 -1
  133. package/dist/actions/list-recordings.cjs +2 -2
  134. package/dist/actions/list-recordings.cjs.map +1 -1
  135. package/dist/actions/list-recordings.d.cts +2 -2
  136. package/dist/actions/list-recordings.d.mts +2 -2
  137. package/dist/actions/list-recordings.mjs +2 -2
  138. package/dist/actions/list-recordings.mjs.map +1 -1
  139. package/dist/actions/list-roam-scim-users.cjs +6 -6
  140. package/dist/actions/list-roam-scim-users.cjs.map +1 -1
  141. package/dist/actions/list-roam-scim-users.d.cts +6 -6
  142. package/dist/actions/list-roam-scim-users.d.mts +6 -6
  143. package/dist/actions/list-roam-scim-users.mjs +6 -6
  144. package/dist/actions/list-roam-scim-users.mjs.map +1 -1
  145. package/dist/actions/list-schemas.cjs +2 -2
  146. package/dist/actions/list-schemas.cjs.map +1 -1
  147. package/dist/actions/list-schemas.d.cts +2 -2
  148. package/dist/actions/list-schemas.d.mts +2 -2
  149. package/dist/actions/list-schemas.mjs +2 -2
  150. package/dist/actions/list-schemas.mjs.map +1 -1
  151. package/dist/actions/list-transcripts.cjs +3 -3
  152. package/dist/actions/list-transcripts.cjs.map +1 -1
  153. package/dist/actions/list-transcripts.d.cts +3 -3
  154. package/dist/actions/list-transcripts.d.mts +3 -3
  155. package/dist/actions/list-transcripts.mjs +3 -3
  156. package/dist/actions/list-transcripts.mjs.map +1 -1
  157. package/dist/actions/list-user-audit-log.cjs +2 -2
  158. package/dist/actions/list-user-audit-log.cjs.map +1 -1
  159. package/dist/actions/list-user-audit-log.d.cts +2 -2
  160. package/dist/actions/list-user-audit-log.d.mts +2 -2
  161. package/dist/actions/list-user-audit-log.mjs +2 -2
  162. package/dist/actions/list-user-audit-log.mjs.map +1 -1
  163. package/dist/actions/list-users.cjs +2 -2
  164. package/dist/actions/list-users.cjs.map +1 -1
  165. package/dist/actions/list-users.d.cts +2 -2
  166. package/dist/actions/list-users.d.mts +2 -2
  167. package/dist/actions/list-users.mjs +2 -2
  168. package/dist/actions/list-users.mjs.map +1 -1
  169. package/dist/actions/lookup-user.cjs +1 -1
  170. package/dist/actions/lookup-user.cjs.map +1 -1
  171. package/dist/actions/lookup-user.d.cts +1 -1
  172. package/dist/actions/lookup-user.d.mts +1 -1
  173. package/dist/actions/lookup-user.mjs +1 -1
  174. package/dist/actions/lookup-user.mjs.map +1 -1
  175. package/dist/actions/patch-group.cjs +4 -4
  176. package/dist/actions/patch-group.cjs.map +1 -1
  177. package/dist/actions/patch-group.d.cts +6 -4
  178. package/dist/actions/patch-group.d.cts.map +1 -1
  179. package/dist/actions/patch-group.d.mts +6 -4
  180. package/dist/actions/patch-group.d.mts.map +1 -1
  181. package/dist/actions/patch-group.mjs +4 -4
  182. package/dist/actions/patch-group.mjs.map +1 -1
  183. package/dist/actions/patch-user.cjs +7 -7
  184. package/dist/actions/patch-user.cjs.map +1 -1
  185. package/dist/actions/patch-user.d.cts +9 -7
  186. package/dist/actions/patch-user.d.cts.map +1 -1
  187. package/dist/actions/patch-user.d.mts +9 -7
  188. package/dist/actions/patch-user.d.mts.map +1 -1
  189. package/dist/actions/patch-user.mjs +7 -7
  190. package/dist/actions/patch-user.mjs.map +1 -1
  191. package/dist/actions/post-chat.cjs +1 -1
  192. package/dist/actions/post-chat.cjs.map +1 -1
  193. package/dist/actions/post-chat.d.cts +1 -1
  194. package/dist/actions/post-chat.d.mts +1 -1
  195. package/dist/actions/post-chat.mjs +1 -1
  196. package/dist/actions/post-chat.mjs.map +1 -1
  197. package/dist/actions/remove-group-members.cjs +1 -1
  198. package/dist/actions/remove-group-members.cjs.map +1 -1
  199. package/dist/actions/remove-group-members.d.cts +1 -1
  200. package/dist/actions/remove-group-members.d.mts +1 -1
  201. package/dist/actions/remove-group-members.mjs +1 -1
  202. package/dist/actions/remove-group-members.mjs.map +1 -1
  203. package/dist/actions/replace-group.cjs +4 -4
  204. package/dist/actions/replace-group.cjs.map +1 -1
  205. package/dist/actions/replace-group.d.cts +5 -5
  206. package/dist/actions/replace-group.d.mts +5 -5
  207. package/dist/actions/replace-group.mjs +4 -4
  208. package/dist/actions/replace-group.mjs.map +1 -1
  209. package/dist/actions/replace-user.cjs +5 -5
  210. package/dist/actions/replace-user.cjs.map +1 -1
  211. package/dist/actions/replace-user.d.cts +6 -5
  212. package/dist/actions/replace-user.d.mts +6 -5
  213. package/dist/actions/replace-user.mjs +5 -5
  214. package/dist/actions/replace-user.mjs.map +1 -1
  215. package/dist/actions/send-message.cjs +1 -1
  216. package/dist/actions/send-message.cjs.map +1 -1
  217. package/dist/actions/send-message.d.cts +1 -1
  218. package/dist/actions/send-message.d.mts +1 -1
  219. package/dist/actions/send-message.mjs +1 -1
  220. package/dist/actions/send-message.mjs.map +1 -1
  221. package/dist/actions/send-typing.cjs +1 -1
  222. package/dist/actions/send-typing.cjs.map +1 -1
  223. package/dist/actions/send-typing.d.cts +1 -1
  224. package/dist/actions/send-typing.d.mts +1 -1
  225. package/dist/actions/send-typing.mjs +1 -1
  226. package/dist/actions/send-typing.mjs.map +1 -1
  227. package/dist/actions/update-meeting-link.cjs +1 -1
  228. package/dist/actions/update-meeting-link.cjs.map +1 -1
  229. package/dist/actions/update-meeting-link.d.cts +1 -1
  230. package/dist/actions/update-meeting-link.d.cts.map +1 -1
  231. package/dist/actions/update-meeting-link.d.mts +1 -1
  232. package/dist/actions/update-meeting-link.d.mts.map +1 -1
  233. package/dist/actions/update-meeting-link.mjs +1 -1
  234. package/dist/actions/update-meeting-link.mjs.map +1 -1
  235. package/dist/actions/upload-item.cjs +1 -1
  236. package/dist/actions/upload-item.cjs.map +1 -1
  237. package/dist/actions/upload-item.d.cts +1 -1
  238. package/dist/actions/upload-item.d.mts +1 -1
  239. package/dist/actions/upload-item.mjs +1 -1
  240. package/dist/actions/upload-item.mjs.map +1 -1
  241. package/package.json +1 -1
@@ -1 +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.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.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.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.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.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.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,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,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,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CA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"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.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}).passthrough().describe(\"Value object for SCIM PATCH operation.\"), z.string(), z.boolean(), z.number().int(), z.array(z.record(z.string(), z.unknown()))]).optional(),\n}).passthrough().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.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}).passthrough().describe(\"Metadata about the SCIM user resource.\");\nconst RoamPatchUser_UserNameSchema = 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}).passthrough().describe(\"Name component of a SCIM user.\");\nconst RoamPatchUser_EmailValueSchema = 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}).passthrough().describe(\"Email address in the SCIM user resource.\");\nconst RoamPatchUser_RoamUserExtensionSchema = z.object({\n role: z.string().describe(\"The user's role in Roam (e.g., 'User' or 'Admin').\").nullable().optional(),\n}).passthrough().describe(\"Roam-specific SCIM extension for user resources.\");\nexport const RoamPatchUserOutput = 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}).passthrough().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,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACvF,YAAYA,IAAA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AC,SAAS,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,yDAAyD,sCAAsC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -12,8 +12,8 @@ declare const RoamPatchUserInput: z.ZodObject<{
12
12
  path: z.ZodOptional<z.ZodString>;
13
13
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
14
14
  value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>;
15
- }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
16
- }, z.core.$strip>>;
15
+ }, z.core.$loose>, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
16
+ }, z.core.$loose>>;
17
17
  }, z.core.$strip>;
18
18
  declare const RoamPatchUserOutput: z.ZodObject<{
19
19
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -22,31 +22,33 @@ declare const RoamPatchUserOutput: z.ZodObject<{
22
22
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  resourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>>>;
25
+ }, z.core.$loose>>>;
26
26
  name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  givenName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  familyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31
31
  emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
32
32
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  primary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
35
- }, z.core.$strip>>>>;
35
+ }, z.core.$loose>>>>;
36
36
  schemas: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
37
37
  userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  "urn:ro.am:params:scim:schemas:extension:roam:2.0:User": z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
41
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- }, z.core.$strip>>>;
43
- }, z.core.$strip>;
42
+ }, z.core.$loose>>>;
43
+ }, z.core.$loose>;
44
44
  declare const roamPatchUser: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  id: string;
46
46
  operations: {
47
+ [x: string]: unknown;
47
48
  op: "replace" | "add" | "remove";
48
49
  path?: string | undefined;
49
50
  value?: string | number | boolean | Record<string, unknown>[] | {
51
+ [x: string]: unknown;
50
52
  value: string | number | boolean;
51
53
  } | undefined;
52
54
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"patch-user.d.cts","names":[],"sources":["../../src/actions/patch-user.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAanB,aAAA,gCAAa,wBAAA;;;;;wCAMxB,MAAA"}
1
+ {"version":3,"file":"patch-user.d.cts","names":[],"sources":["../../src/actions/patch-user.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAanB,aAAA,gCAAa,wBAAA;;;;;;wCAMxB,MAAA;MAAA"}
@@ -12,8 +12,8 @@ declare const RoamPatchUserInput: z.ZodObject<{
12
12
  path: z.ZodOptional<z.ZodString>;
13
13
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
14
14
  value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>;
15
- }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
16
- }, z.core.$strip>>;
15
+ }, z.core.$loose>, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
16
+ }, z.core.$loose>>;
17
17
  }, z.core.$strip>;
18
18
  declare const RoamPatchUserOutput: z.ZodObject<{
19
19
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -22,31 +22,33 @@ declare const RoamPatchUserOutput: z.ZodObject<{
22
22
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  resourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>>>;
25
+ }, z.core.$loose>>>;
26
26
  name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  givenName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  familyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31
31
  emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
32
32
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  primary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
35
- }, z.core.$strip>>>>;
35
+ }, z.core.$loose>>>>;
36
36
  schemas: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
37
37
  userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  "urn:ro.am:params:scim:schemas:extension:roam:2.0:User": z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
41
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- }, z.core.$strip>>>;
43
- }, z.core.$strip>;
42
+ }, z.core.$loose>>>;
43
+ }, z.core.$loose>;
44
44
  declare const roamPatchUser: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  id: string;
46
46
  operations: {
47
+ [x: string]: unknown;
47
48
  op: "replace" | "add" | "remove";
48
49
  path?: string | undefined;
49
50
  value?: string | number | boolean | Record<string, unknown>[] | {
51
+ [x: string]: unknown;
50
52
  value: string | number | boolean;
51
53
  } | undefined;
52
54
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"patch-user.d.mts","names":[],"sources":["../../src/actions/patch-user.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAanB,aAAA,gCAAa,wBAAA;;;;;wCAMxB,MAAA"}
1
+ {"version":3,"file":"patch-user.d.mts","names":[],"sources":["../../src/actions/patch-user.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAanB,aAAA,gCAAa,wBAAA;;;;;;wCAMxB,MAAA;MAAA"}
@@ -15,30 +15,30 @@ const RoamPatchUserInput = z.object({
15
15
  z.string(),
16
16
  z.boolean(),
17
17
  z.number().int()
18
- ]) }).describe("Value object for SCIM PATCH operation."),
18
+ ]) }).passthrough().describe("Value object for SCIM PATCH operation."),
19
19
  z.string(),
20
20
  z.boolean(),
21
21
  z.number().int(),
22
22
  z.array(z.record(z.string(), z.unknown()))
23
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).")
24
+ }).passthrough().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
25
  }).describe("Request schema for partially updating a user via SCIM 2.0 PATCH operation.");
26
26
  const RoamPatchUser_UserMetaSchema = z.object({
27
27
  created: z.string().describe("The date and time the user was created (ISO 8601 format).").nullable().optional(),
28
28
  location: z.string().describe("The URI of the user resource.").nullable().optional(),
29
29
  lastModified: z.string().describe("The date and time the user was last modified (ISO 8601 format).").nullable().optional(),
30
30
  resourceType: z.string().describe("The type of resource (User).").nullable().optional()
31
- }).describe("Metadata about the SCIM user resource.");
31
+ }).passthrough().describe("Metadata about the SCIM user resource.");
32
32
  const RoamPatchUser_UserNameSchema = z.object({
33
33
  givenName: z.string().describe("The first name of the user.").nullable().optional(),
34
34
  familyName: z.string().describe("The last name of the user.").nullable().optional()
35
- }).describe("Name component of a SCIM user.");
35
+ }).passthrough().describe("Name component of a SCIM user.");
36
36
  const RoamPatchUser_EmailValueSchema = z.object({
37
37
  type: z.string().describe("Type of email address (e.g., 'work').").nullable().optional(),
38
38
  value: z.string().describe("Email address value.").nullable().optional(),
39
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.");
40
+ }).passthrough().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() }).passthrough().describe("Roam-specific SCIM extension for user resources.");
42
42
  const roamPatchUser = action("ROAM_PATCH_USER", {
43
43
  slug: "roam-patch-user",
44
44
  name: "Patch user (SCIM)",
@@ -55,7 +55,7 @@ const roamPatchUser = action("ROAM_PATCH_USER", {
55
55
  externalId: z.string().describe("External identifier from the identity provider (if synced via SCIM).").nullable().optional(),
56
56
  displayName: z.string().describe("The display name of the user (typically firstName lastName).").nullable().optional(),
57
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.")
58
+ }).passthrough().describe("Response schema after partially updating a user via SCIM 2.0.")
59
59
  });
60
60
  //#endregion
61
61
  export { roamPatchUser };
@@ -1 +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.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.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.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.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.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.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,qBAAqB,EAAE,OAAO;CACzC,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,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;EACrH,yDAAyD,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
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.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}).passthrough().describe(\"Value object for SCIM PATCH operation.\"), z.string(), z.boolean(), z.number().int(), z.array(z.record(z.string(), z.unknown()))]).optional(),\n}).passthrough().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.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}).passthrough().describe(\"Metadata about the SCIM user resource.\");\nconst RoamPatchUser_UserNameSchema = 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}).passthrough().describe(\"Name component of a SCIM user.\");\nconst RoamPatchUser_EmailValueSchema = 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}).passthrough().describe(\"Email address in the SCIM user resource.\");\nconst RoamPatchUser_RoamUserExtensionSchema = z.object({\n role: z.string().describe(\"The user's role in Roam (e.g., 'User' or 'Admin').\").nullable().optional(),\n}).passthrough().describe(\"Roam-specific SCIM extension for user resources.\");\nexport const RoamPatchUserOutput = 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}).passthrough().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,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AAS;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,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
@@ -16,7 +16,7 @@ const RoamPostChatOutput = zod.z.object({
16
16
  chat: zod.z.string().describe("ID of the containing Chat").nullable().optional(),
17
17
  timestamp: zod.z.number().int().describe("Identifying timestamp, present if sync is set").nullable().optional(),
18
18
  thread_timestamp: zod.z.number().int().describe("Thread timestamp (if applicable)").nullable().optional()
19
- });
19
+ }).passthrough();
20
20
  const roamPostChat = require_action.action("ROAM_POST_CHAT", {
21
21
  slug: "roam-post-chat",
22
22
  name: "Post message to chat",
@@ -1 +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.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.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,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/C,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7I,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CACjN,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACrJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC1H,CAAC;AACD,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC;AAED,MAAa,eAAeC,eAAAA,OAAO,kBAAkB;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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.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.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}).passthrough();\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,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/C,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7I,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CACjN,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACrJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC1H,CAAC;AACD,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,eAAeC,eAAAA,OAAO,kBAAkB;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -16,7 +16,7 @@ declare const RoamPostChatOutput: z.ZodObject<{
16
16
  chat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
18
  thread_timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const roamPostChat: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  chat: string | string[];
22
22
  sync?: boolean | undefined;
@@ -16,7 +16,7 @@ declare const RoamPostChatOutput: z.ZodObject<{
16
16
  chat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
18
  thread_timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const roamPostChat: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  chat: string | string[];
22
22
  sync?: boolean | undefined;
@@ -19,7 +19,7 @@ const roamPostChat = action("ROAM_POST_CHAT", {
19
19
  chat: z.string().describe("ID of the containing Chat").nullable().optional(),
20
20
  timestamp: z.number().int().describe("Identifying timestamp, present if sync is set").nullable().optional(),
21
21
  thread_timestamp: z.number().int().describe("Thread timestamp (if applicable)").nullable().optional()
22
- })
22
+ }).passthrough()
23
23
  });
24
24
  //#endregion
25
25
  export { roamPostChat };
@@ -1 +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.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.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,OArB+B,EAAE,OAAO;EACxC,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,QAXgC,EAAE,OAAO;EACzC,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"}
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.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.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}).passthrough();\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,OArB+B,EAAE,OAAO;EACxC,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,QAXgC,EAAE,OAAO;EACzC,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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -5,7 +5,7 @@ const RoamRemoveGroupMembersInput = zod.z.object({
5
5
  group: zod.z.string().describe("The group address (TaggedUUID format, e.g., G-13137f22-926c-4323-baf7-9c953bdccf99)"),
6
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
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.");
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() }).passthrough().describe("Response model for removing members from a group.\nReturns empty 204 No Content on success.");
9
9
  const roamRemoveGroupMembers = require_action.action("ROAM_REMOVE_GROUP_MEMBERS", {
10
10
  slug: "roam-remove-group-members",
11
11
  name: "Remove group members",
@@ -1 +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.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.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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,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"}
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.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.object({\n success: z.boolean().default(true).describe(\"Indicates whether the members were successfully removed from the group.\").nullable().optional(),\n}).passthrough().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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6FAA6F;AAEvH,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,7 +7,7 @@ declare const RoamRemoveGroupMembersInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const RoamRemoveGroupMembersOutput: z.ZodObject<{
9
9
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const roamRemoveGroupMembers: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  group: string;
13
13
  members: string[];
@@ -7,7 +7,7 @@ declare const RoamRemoveGroupMembersInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const RoamRemoveGroupMembersOutput: z.ZodObject<{
9
9
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const roamRemoveGroupMembers: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  group: string;
13
13
  members: string[];
@@ -8,7 +8,7 @@ const roamRemoveGroupMembers = action("ROAM_REMOVE_GROUP_MEMBERS", {
8
8
  group: z.string().describe("The group address (TaggedUUID format, e.g., G-13137f22-926c-4323-baf7-9c953bdccf99)"),
9
9
  members: z.array(z.string()).describe("List of member IDs to remove (TaggedUUID format, e.g., U-a86af3af-7d0b-4d4c-8392-85ffdf30881e)")
10
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.")
11
+ output: z.object({ success: z.boolean().default(true).describe("Indicates whether the members were successfully removed from the group.").nullable().optional() }).passthrough().describe("Response model for removing members from a group.\nReturns empty 204 No Content on success.")
12
12
  });
13
13
  //#endregion
14
14
  export { roamRemoveGroupMembers };
@@ -1 +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.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.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,OAZyC,EAAE,OAAO;EAClD,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,QAT0C,EAAE,OAAO,EACnD,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"}
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.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.object({\n success: z.boolean().default(true).describe(\"Indicates whether the members were successfully removed from the group.\").nullable().optional(),\n}).passthrough().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,OAZyC,EAAE,OAAO;EAClD,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,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6FAOhB;AACV,CAAC"}
@@ -3,26 +3,26 @@ let zod = require("zod");
3
3
  //#region src/actions/replace-group.ts
4
4
  const RoamReplaceGroupInput = zod.z.object({
5
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(),
6
+ members: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).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
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
8
  displayName: zod.z.string().describe("The display name of the group. Maximum 64 characters.")
9
9
  }).describe("Request schema for fully replacing a group via SCIM 2.0.\nThis performs a full replacement of all group attributes.");
10
10
  const RoamReplaceGroup_GroupMetaSchema = zod.z.object({
11
11
  location: zod.z.string().describe("The URI of the group resource.").nullable().optional(),
12
12
  resourceType: zod.z.string().describe("The type of resource (always 'Group').").nullable().optional()
13
- }).describe("Metadata for a SCIM group.");
13
+ }).passthrough().describe("Metadata for a SCIM group.");
14
14
  const RoamReplaceGroup_GroupMemberSchema = zod.z.object({
15
15
  ref: zod.z.string().describe("Reference to the user resource.").nullable().optional(),
16
16
  value: zod.z.string().describe("The Roam Person ID of the member.").nullable().optional(),
17
17
  display: zod.z.string().describe("Display name of the member.").nullable().optional()
18
- }).describe("Group member object in the response.");
18
+ }).passthrough().describe("Group member object in the response.");
19
19
  const RoamReplaceGroupOutput = zod.z.object({
20
20
  id: zod.z.string().describe("The unique identifier of the group (Roam AddressID)").nullable(),
21
21
  meta: RoamReplaceGroup_GroupMetaSchema.nullable().optional(),
22
22
  members: zod.z.array(RoamReplaceGroup_GroupMemberSchema).describe("List of members in the group after replacement").nullable().optional(),
23
23
  schemas: zod.z.array(zod.z.string()).describe("SCIM schemas for the group resource").nullable().optional(),
24
24
  displayName: zod.z.string().describe("The display name of the group").nullable()
25
- }).describe("Response schema for a replaced SCIM group.\nReturns the updated group resource after full replacement.");
25
+ }).passthrough().describe("Response schema for a replaced SCIM group.\nReturns the updated group resource after full replacement.");
26
26
  const roamReplaceGroup = require_action.action("ROAM_REPLACE_GROUP", {
27
27
  slug: "roam-replace-group",
28
28
  name: "Replace Roam SCIM Group",
@@ -1 +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.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.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.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.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID)\").nullable(),\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\").nullable(),\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,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,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,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,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,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,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,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,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,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAEpH,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID) to replace.\"),\n members: z.array(z.record(z.string(), z.unknown())).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.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}).passthrough().describe(\"Metadata for a SCIM group.\");\nconst RoamReplaceGroup_GroupMemberSchema = 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}).passthrough().describe(\"Group member object in the response.\");\nexport const RoamReplaceGroupOutput = z.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID)\").nullable(),\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\").nullable(),\n}).passthrough().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,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACzF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,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D,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,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAAwG;AAElI,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  //#region src/actions/replace-group.d.ts
4
4
  declare const RoamReplaceGroupInput: z.ZodObject<{
5
5
  id: z.ZodString;
6
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
6
+ members: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
7
7
  schemas: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
8
8
  displayName: z.ZodString;
9
9
  }, z.core.$strip>;
@@ -12,19 +12,19 @@ declare const RoamReplaceGroupOutput: z.ZodObject<{
12
12
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13
13
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  resourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- }, z.core.$strip>>>;
15
+ }, z.core.$loose>>>;
16
16
  members: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
17
  ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- }, z.core.$strip>>>>;
20
+ }, z.core.$loose>>>>;
21
21
  schemas: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
22
22
  displayName: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const roamReplaceGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  id: string;
26
26
  displayName: string;
27
- members?: Record<string, never>[] | undefined;
27
+ members?: Record<string, unknown>[] | undefined;
28
28
  schemas?: string[] | undefined;
29
29
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
30
  //#endregion
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  //#region src/actions/replace-group.d.ts
4
4
  declare const RoamReplaceGroupInput: z.ZodObject<{
5
5
  id: z.ZodString;
6
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
6
+ members: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
7
7
  schemas: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
8
8
  displayName: z.ZodString;
9
9
  }, z.core.$strip>;
@@ -12,19 +12,19 @@ declare const RoamReplaceGroupOutput: z.ZodObject<{
12
12
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13
13
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  resourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- }, z.core.$strip>>>;
15
+ }, z.core.$loose>>>;
16
16
  members: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
17
  ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  display: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- }, z.core.$strip>>>>;
20
+ }, z.core.$loose>>>>;
21
21
  schemas: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
22
22
  displayName: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const roamReplaceGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  id: string;
26
26
  displayName: string;
27
- members?: Record<string, never>[] | undefined;
27
+ members?: Record<string, unknown>[] | undefined;
28
28
  schemas?: string[] | undefined;
29
29
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
30
  //#endregion
@@ -3,19 +3,19 @@ import { z } from "zod";
3
3
  //#region src/actions/replace-group.ts
4
4
  const RoamReplaceGroupInput = z.object({
5
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(),
6
+ members: z.array(z.record(z.string(), z.unknown())).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
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
8
  displayName: z.string().describe("The display name of the group. Maximum 64 characters.")
9
9
  }).describe("Request schema for fully replacing a group via SCIM 2.0.\nThis performs a full replacement of all group attributes.");
10
10
  const RoamReplaceGroup_GroupMetaSchema = z.object({
11
11
  location: z.string().describe("The URI of the group resource.").nullable().optional(),
12
12
  resourceType: z.string().describe("The type of resource (always 'Group').").nullable().optional()
13
- }).describe("Metadata for a SCIM group.");
13
+ }).passthrough().describe("Metadata for a SCIM group.");
14
14
  const RoamReplaceGroup_GroupMemberSchema = z.object({
15
15
  ref: z.string().describe("Reference to the user resource.").nullable().optional(),
16
16
  value: z.string().describe("The Roam Person ID of the member.").nullable().optional(),
17
17
  display: z.string().describe("Display name of the member.").nullable().optional()
18
- }).describe("Group member object in the response.");
18
+ }).passthrough().describe("Group member object in the response.");
19
19
  const roamReplaceGroup = action("ROAM_REPLACE_GROUP", {
20
20
  slug: "roam-replace-group",
21
21
  name: "Replace Roam SCIM Group",
@@ -27,7 +27,7 @@ const roamReplaceGroup = action("ROAM_REPLACE_GROUP", {
27
27
  members: z.array(RoamReplaceGroup_GroupMemberSchema).describe("List of members in the group after replacement").nullable().optional(),
28
28
  schemas: z.array(z.string()).describe("SCIM schemas for the group resource").nullable().optional(),
29
29
  displayName: z.string().describe("The display name of the group").nullable()
30
- }).describe("Response schema for a replaced SCIM group.\nReturns the updated group resource after full replacement.")
30
+ }).passthrough().describe("Response schema for a replaced SCIM group.\nReturns the updated group resource after full replacement.")
31
31
  });
32
32
  //#endregion
33
33
  export { roamReplaceGroup };
@@ -1 +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.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.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.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.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID)\").nullable(),\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\").nullable(),\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,wBAAwB,EAAE,OAAO;CAC5C,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,mCAAmC,EAAE,OAAO;CAChD,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,qCAAqC,EAAE,OAAO;CAClD,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,QAboC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACxF,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,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,SAAS,wGAOF;AACV,CAAC"}
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.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID) to replace.\"),\n members: z.array(z.record(z.string(), z.unknown())).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.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}).passthrough().describe(\"Metadata for a SCIM group.\");\nconst RoamReplaceGroup_GroupMemberSchema = 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}).passthrough().describe(\"Group member object in the response.\");\nexport const RoamReplaceGroupOutput = z.object({\n id: z.string().describe(\"The unique identifier of the group (Roam AddressID)\").nullable(),\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\").nullable(),\n}).passthrough().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":";;;AA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