@keystrokehq/scheduleonce 0.1.2 → 0.1.4

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 (169) hide show
  1. package/dist/actions/book-time-slot.cjs +6 -6
  2. package/dist/actions/book-time-slot.cjs.map +1 -1
  3. package/dist/actions/book-time-slot.d.cts +7 -6
  4. package/dist/actions/book-time-slot.d.mts +7 -6
  5. package/dist/actions/book-time-slot.mjs +6 -6
  6. package/dist/actions/book-time-slot.mjs.map +1 -1
  7. package/dist/actions/cancel-booking.cjs +6 -6
  8. package/dist/actions/cancel-booking.cjs.map +1 -1
  9. package/dist/actions/cancel-booking.d.cts +6 -6
  10. package/dist/actions/cancel-booking.d.mts +6 -6
  11. package/dist/actions/cancel-booking.mjs +6 -6
  12. package/dist/actions/cancel-booking.mjs.map +1 -1
  13. package/dist/actions/create-contact.cjs +2 -2
  14. package/dist/actions/create-contact.cjs.map +1 -1
  15. package/dist/actions/create-contact.d.cts +2 -2
  16. package/dist/actions/create-contact.d.mts +2 -2
  17. package/dist/actions/create-contact.mjs +2 -2
  18. package/dist/actions/create-contact.mjs.map +1 -1
  19. package/dist/actions/create-one-time-link-for-booking-calendar.cjs +2 -2
  20. package/dist/actions/create-one-time-link-for-booking-calendar.cjs.map +1 -1
  21. package/dist/actions/create-one-time-link-for-booking-calendar.d.cts +2 -2
  22. package/dist/actions/create-one-time-link-for-booking-calendar.d.mts +2 -2
  23. package/dist/actions/create-one-time-link-for-booking-calendar.mjs +2 -2
  24. package/dist/actions/create-one-time-link-for-booking-calendar.mjs.map +1 -1
  25. package/dist/actions/create-user.cjs +1 -1
  26. package/dist/actions/create-user.cjs.map +1 -1
  27. package/dist/actions/create-user.d.cts +1 -1
  28. package/dist/actions/create-user.d.mts +1 -1
  29. package/dist/actions/create-user.mjs +1 -1
  30. package/dist/actions/create-user.mjs.map +1 -1
  31. package/dist/actions/delete-contact.cjs +1 -1
  32. package/dist/actions/delete-contact.cjs.map +1 -1
  33. package/dist/actions/delete-contact.d.cts +1 -1
  34. package/dist/actions/delete-contact.d.mts +1 -1
  35. package/dist/actions/delete-contact.mjs +1 -1
  36. package/dist/actions/delete-contact.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-available-time-slots.cjs +3 -3
  44. package/dist/actions/get-available-time-slots.cjs.map +1 -1
  45. package/dist/actions/get-available-time-slots.d.cts +3 -3
  46. package/dist/actions/get-available-time-slots.d.mts +3 -3
  47. package/dist/actions/get-available-time-slots.mjs +3 -3
  48. package/dist/actions/get-available-time-slots.mjs.map +1 -1
  49. package/dist/actions/get-single-booking-calendar.cjs +1 -1
  50. package/dist/actions/get-single-booking-calendar.cjs.map +1 -1
  51. package/dist/actions/get-single-booking-calendar.d.cts +1 -1
  52. package/dist/actions/get-single-booking-calendar.d.mts +1 -1
  53. package/dist/actions/get-single-booking-calendar.mjs +1 -1
  54. package/dist/actions/get-single-booking-calendar.mjs.map +1 -1
  55. package/dist/actions/get-single-booking.cjs +5 -5
  56. package/dist/actions/get-single-booking.cjs.map +1 -1
  57. package/dist/actions/get-single-booking.d.cts +5 -5
  58. package/dist/actions/get-single-booking.d.mts +5 -5
  59. package/dist/actions/get-single-booking.mjs +5 -5
  60. package/dist/actions/get-single-booking.mjs.map +1 -1
  61. package/dist/actions/get-single-contact.cjs +2 -2
  62. package/dist/actions/get-single-contact.cjs.map +1 -1
  63. package/dist/actions/get-single-contact.d.cts +2 -2
  64. package/dist/actions/get-single-contact.d.mts +2 -2
  65. package/dist/actions/get-single-contact.mjs +2 -2
  66. package/dist/actions/get-single-contact.mjs.map +1 -1
  67. package/dist/actions/get-single-master-page.cjs +1 -1
  68. package/dist/actions/get-single-master-page.cjs.map +1 -1
  69. package/dist/actions/get-single-master-page.d.cts +1 -1
  70. package/dist/actions/get-single-master-page.d.mts +1 -1
  71. package/dist/actions/get-single-master-page.mjs +1 -1
  72. package/dist/actions/get-single-master-page.mjs.map +1 -1
  73. package/dist/actions/get-single-user.cjs +1 -1
  74. package/dist/actions/get-single-user.cjs.map +1 -1
  75. package/dist/actions/get-single-user.d.cts +1 -1
  76. package/dist/actions/get-single-user.d.mts +1 -1
  77. package/dist/actions/get-single-user.mjs +1 -1
  78. package/dist/actions/get-single-user.mjs.map +1 -1
  79. package/dist/actions/get-user-scheduling-availability.cjs +5 -5
  80. package/dist/actions/get-user-scheduling-availability.cjs.map +1 -1
  81. package/dist/actions/get-user-scheduling-availability.d.cts +7 -7
  82. package/dist/actions/get-user-scheduling-availability.d.mts +7 -7
  83. package/dist/actions/get-user-scheduling-availability.mjs +5 -5
  84. package/dist/actions/get-user-scheduling-availability.mjs.map +1 -1
  85. package/dist/actions/list-all-booking-calendars.cjs +2 -2
  86. package/dist/actions/list-all-booking-calendars.cjs.map +1 -1
  87. package/dist/actions/list-all-booking-calendars.d.cts +2 -2
  88. package/dist/actions/list-all-booking-calendars.d.mts +2 -2
  89. package/dist/actions/list-all-booking-calendars.mjs +2 -2
  90. package/dist/actions/list-all-booking-calendars.mjs.map +1 -1
  91. package/dist/actions/list-all-booking-pages.cjs +2 -2
  92. package/dist/actions/list-all-booking-pages.cjs.map +1 -1
  93. package/dist/actions/list-all-booking-pages.d.cts +2 -2
  94. package/dist/actions/list-all-booking-pages.d.mts +2 -2
  95. package/dist/actions/list-all-booking-pages.mjs +2 -2
  96. package/dist/actions/list-all-booking-pages.mjs.map +1 -1
  97. package/dist/actions/list-all-bookings.cjs +10 -10
  98. package/dist/actions/list-all-bookings.cjs.map +1 -1
  99. package/dist/actions/list-all-bookings.d.cts +10 -10
  100. package/dist/actions/list-all-bookings.d.mts +10 -10
  101. package/dist/actions/list-all-bookings.mjs +10 -10
  102. package/dist/actions/list-all-bookings.mjs.map +1 -1
  103. package/dist/actions/list-all-contacts.cjs +3 -3
  104. package/dist/actions/list-all-contacts.cjs.map +1 -1
  105. package/dist/actions/list-all-contacts.d.cts +3 -3
  106. package/dist/actions/list-all-contacts.d.mts +3 -3
  107. package/dist/actions/list-all-contacts.mjs +3 -3
  108. package/dist/actions/list-all-contacts.mjs.map +1 -1
  109. package/dist/actions/list-all-event-types.cjs +2 -2
  110. package/dist/actions/list-all-event-types.cjs.map +1 -1
  111. package/dist/actions/list-all-event-types.d.cts +2 -2
  112. package/dist/actions/list-all-event-types.d.mts +2 -2
  113. package/dist/actions/list-all-event-types.mjs +2 -2
  114. package/dist/actions/list-all-event-types.mjs.map +1 -1
  115. package/dist/actions/list-all-master-pages.cjs +2 -2
  116. package/dist/actions/list-all-master-pages.cjs.map +1 -1
  117. package/dist/actions/list-all-master-pages.d.cts +2 -2
  118. package/dist/actions/list-all-master-pages.d.mts +2 -2
  119. package/dist/actions/list-all-master-pages.mjs +2 -2
  120. package/dist/actions/list-all-master-pages.mjs.map +1 -1
  121. package/dist/actions/list-all-teams.cjs +2 -2
  122. package/dist/actions/list-all-teams.cjs.map +1 -1
  123. package/dist/actions/list-all-teams.d.cts +2 -2
  124. package/dist/actions/list-all-teams.d.mts +2 -2
  125. package/dist/actions/list-all-teams.mjs +2 -2
  126. package/dist/actions/list-all-teams.mjs.map +1 -1
  127. package/dist/actions/list-all-users.cjs +2 -2
  128. package/dist/actions/list-all-users.cjs.map +1 -1
  129. package/dist/actions/list-all-users.d.cts +2 -2
  130. package/dist/actions/list-all-users.d.mts +2 -2
  131. package/dist/actions/list-all-users.mjs +2 -2
  132. package/dist/actions/list-all-users.mjs.map +1 -1
  133. package/dist/actions/mark-booking-as-no-show.cjs +6 -6
  134. package/dist/actions/mark-booking-as-no-show.cjs.map +1 -1
  135. package/dist/actions/mark-booking-as-no-show.d.cts +6 -6
  136. package/dist/actions/mark-booking-as-no-show.d.mts +6 -6
  137. package/dist/actions/mark-booking-as-no-show.mjs +6 -6
  138. package/dist/actions/mark-booking-as-no-show.mjs.map +1 -1
  139. package/dist/actions/test-api-key.cjs +1 -1
  140. package/dist/actions/test-api-key.cjs.map +1 -1
  141. package/dist/actions/test-api-key.d.cts +1 -1
  142. package/dist/actions/test-api-key.d.mts +1 -1
  143. package/dist/actions/test-api-key.mjs +1 -1
  144. package/dist/actions/test-api-key.mjs.map +1 -1
  145. package/dist/actions/update-contact.cjs +1 -1
  146. package/dist/actions/update-contact.cjs.map +1 -1
  147. package/dist/actions/update-contact.d.cts +1 -1
  148. package/dist/actions/update-contact.d.mts +1 -1
  149. package/dist/actions/update-contact.mjs +1 -1
  150. package/dist/actions/update-contact.mjs.map +1 -1
  151. package/dist/actions/update-user-scheduling-availability.cjs +11 -11
  152. package/dist/actions/update-user-scheduling-availability.cjs.map +1 -1
  153. package/dist/actions/update-user-scheduling-availability.d.cts +19 -13
  154. package/dist/actions/update-user-scheduling-availability.d.mts +19 -13
  155. package/dist/actions/update-user-scheduling-availability.mjs +11 -11
  156. package/dist/actions/update-user-scheduling-availability.mjs.map +1 -1
  157. package/dist/actions/update-user.cjs +1 -1
  158. package/dist/actions/update-user.cjs.map +1 -1
  159. package/dist/actions/update-user.d.cts +1 -1
  160. package/dist/actions/update-user.d.mts +1 -1
  161. package/dist/actions/update-user.mjs +1 -1
  162. package/dist/actions/update-user.mjs.map +1 -1
  163. package/dist/catalog.cjs +1 -1
  164. package/dist/catalog.cjs.map +1 -1
  165. package/dist/catalog.d.cts +1 -1
  166. package/dist/catalog.d.mts +1 -1
  167. package/dist/catalog.mjs +1 -1
  168. package/dist/catalog.mjs.map +1 -1
  169. package/package.json +1 -1
@@ -18,10 +18,10 @@ const ScheduleonceUpdateUserSchedulingAvailabilityInput = zod.z.object({
18
18
  locations: zod.z.array(zod.z.object({
19
19
  id: zod.z.string().describe("Location identifier").optional(),
20
20
  name: zod.z.string().describe("Location name").optional()
21
- }).describe("Model for a location associated with working hours.")).describe("List of locations where the user is available during these hours. Empty list means all locations.").optional(),
21
+ }).passthrough().describe("Model for a location associated with working hours.")).describe("List of locations where the user is available during these hours. Empty list means all locations.").optional(),
22
22
  start_time: zod.z.string().describe("Start time in HH:MM format (24-hour, e.g., '09:00')")
23
- }).describe("Model for working hours within a day.")).describe("List of working hour blocks for this day. Empty list means the user is not available on this day.").optional()
24
- }).describe("Model for a single day's schedule in the weekly availability.")).describe("Weekly schedule containing availability for each day of the week. Must include entries for all 7 days."),
23
+ }).passthrough().describe("Model for working hours within a day.")).describe("List of working hour blocks for this day. Empty list means the user is not available on this day.").optional()
24
+ }).passthrough().describe("Model for a single day's schedule in the weekly availability.")).describe("Weekly schedule containing availability for each day of the week. Must include entries for all 7 days."),
25
25
  timezone: zod.z.string().describe("Timezone for the scheduling availability (e.g., 'America/New_York', 'Asia/Kolkata'). Must be a valid IANA timezone identifier."),
26
26
  overrides: zod.z.array(zod.z.object({
27
27
  date: zod.z.string().describe("Date in YYYY-MM-DD format for the override"),
@@ -30,28 +30,28 @@ const ScheduleonceUpdateUserSchedulingAvailabilityInput = zod.z.object({
30
30
  locations: zod.z.array(zod.z.object({
31
31
  id: zod.z.string().describe("Location identifier").optional(),
32
32
  name: zod.z.string().describe("Location name").optional()
33
- }).describe("Model for a location associated with working hours.")).describe("List of locations where the user is available during these hours. Empty list means all locations.").optional(),
33
+ }).passthrough().describe("Model for a location associated with working hours.")).describe("List of locations where the user is available during these hours. Empty list means all locations.").optional(),
34
34
  start_time: zod.z.string().describe("Start time in HH:MM format (24-hour, e.g., '09:00')")
35
- }).describe("Model for working hours within a day.")).describe("List of working hour blocks for this specific date. Empty list means the user is not available on this date.").optional()
36
- }).describe("Model for scheduling overrides on specific dates.")).describe("List of specific date overrides that modify the weekly schedule. Use this for holidays, vacation days, or special availability.").optional()
35
+ }).passthrough().describe("Model for working hours within a day.")).describe("List of working hour blocks for this specific date. Empty list means the user is not available on this date.").optional()
36
+ }).passthrough().describe("Model for scheduling overrides on specific dates.")).describe("List of specific date overrides that modify the weekly schedule. Use this for holidays, vacation days, or special availability.").optional()
37
37
  }).describe("Request model for updating user scheduling availability.");
38
38
  const ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema = zod.z.object({
39
39
  id: zod.z.string().describe("Location identifier").nullable().optional(),
40
40
  name: zod.z.string().describe("Location name").nullable().optional()
41
- }).describe("Model for a location associated with working hours.");
41
+ }).passthrough().describe("Model for a location associated with working hours.");
42
42
  const ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema = zod.z.object({
43
43
  end_time: zod.z.string().describe("End time in HH:MM format (24-hour, e.g., '17:00')").nullable().optional(),
44
44
  locations: zod.z.array(ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema).describe("List of locations where the user is available during these hours").nullable().optional(),
45
45
  start_time: zod.z.string().describe("Start time in HH:MM format (24-hour, e.g., '09:00')").nullable().optional()
46
- }).describe("Model for working hours in the response (with optional fields).");
46
+ }).passthrough().describe("Model for working hours in the response (with optional fields).");
47
47
  const ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema = zod.z.object({
48
48
  day: zod.z.string().describe("Day of the week (e.g., 'Sunday', 'Monday', etc.)").nullable().optional(),
49
49
  working_hours: zod.z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe("List of working hour blocks for this day").nullable().optional()
50
- }).describe("Model for a single day's schedule in the response.");
50
+ }).passthrough().describe("Model for a single day's schedule in the response.");
51
51
  const ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema = zod.z.object({
52
52
  date: zod.z.string().describe("Date in YYYY-MM-DD format for the override").nullable().optional(),
53
53
  working_hours: zod.z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe("List of working hour blocks for this specific date").nullable().optional()
54
- }).describe("Model for scheduling overrides in the response.");
54
+ }).passthrough().describe("Model for scheduling overrides in the response.");
55
55
  const ScheduleonceUpdateUserSchedulingAvailabilityOutput = zod.z.object({
56
56
  id: zod.z.string().describe("Unique identifier for the user (may not be returned)").nullable().optional(),
57
57
  object: zod.z.string().describe("The object type, typically 'schedule'").nullable().optional(),
@@ -59,7 +59,7 @@ const ScheduleonceUpdateUserSchedulingAvailabilityOutput = zod.z.object({
59
59
  timezone: zod.z.string().describe("User's timezone setting").nullable().optional(),
60
60
  overrides: zod.z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema).describe("Updated scheduling overrides").nullable().optional(),
61
61
  last_updated_time: zod.z.string().describe("ISO 8601 timestamp when availability was last updated").nullable().optional()
62
- }).describe("Response model for updating user scheduling availability.");
62
+ }).passthrough().describe("Response model for updating user scheduling availability.");
63
63
  const scheduleonceUpdateUserSchedulingAvailability = require_action.action("SCHEDULEONCE_UPDATE_USER_SCHEDULING_AVAILABILITY", {
64
64
  slug: "scheduleonce-update-user-scheduling-availability",
65
65
  name: "Update User Scheduling Availability",
@@ -1 +1 @@
1
- {"version":3,"file":"update-user-scheduling-availability.cjs","names":["z","action"],"sources":["../../src/actions/update-user-scheduling-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceUpdateUserSchedulingAvailabilityInput = z.object({\n id: z.string().describe(\"The unique identifier of the user (e.g., 'USR-GB59HWQCXF')\"),\n weekly: z.array(z.object({\n day: z.enum([\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"]).describe(\"Day of the week\"),\n working_hours: z.array(z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\"),\n locations: z.array(z.object({\n id: z.string().describe(\"Location identifier\").optional(),\n name: z.string().describe(\"Location name\").optional(),\n}).describe(\"Model for a location associated with working hours.\")).describe(\"List of locations where the user is available during these hours. Empty list means all locations.\").optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\"),\n}).describe(\"Model for working hours within a day.\")).describe(\"List of working hour blocks for this day. Empty list means the user is not available on this day.\").optional(),\n}).describe(\"Model for a single day's schedule in the weekly availability.\")).describe(\"Weekly schedule containing availability for each day of the week. Must include entries for all 7 days.\"),\n timezone: z.string().describe(\"Timezone for the scheduling availability (e.g., 'America/New_York', 'Asia/Kolkata'). Must be a valid IANA timezone identifier.\"),\n overrides: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format for the override\"),\n working_hours: z.array(z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\"),\n locations: z.array(z.object({\n id: z.string().describe(\"Location identifier\").optional(),\n name: z.string().describe(\"Location name\").optional(),\n}).describe(\"Model for a location associated with working hours.\")).describe(\"List of locations where the user is available during these hours. Empty list means all locations.\").optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\"),\n}).describe(\"Model for working hours within a day.\")).describe(\"List of working hour blocks for this specific date. Empty list means the user is not available on this date.\").optional(),\n}).describe(\"Model for scheduling overrides on specific dates.\")).describe(\"List of specific date overrides that modify the weekly schedule. Use this for holidays, vacation days, or special availability.\").optional(),\n}).describe(\"Request model for updating user scheduling availability.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema = z.object({\n id: z.string().describe(\"Location identifier\").nullable().optional(),\n name: z.string().describe(\"Location name\").nullable().optional(),\n}).describe(\"Model for a location associated with working hours.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema = z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\").nullable().optional(),\n locations: z.array(ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema).describe(\"List of locations where the user is available during these hours\").nullable().optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\").nullable().optional(),\n}).describe(\"Model for working hours in the response (with optional fields).\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema = z.object({\n day: z.string().describe(\"Day of the week (e.g., 'Sunday', 'Monday', etc.)\").nullable().optional(),\n working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe(\"List of working hour blocks for this day\").nullable().optional(),\n}).describe(\"Model for a single day's schedule in the response.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema = z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format for the override\").nullable().optional(),\n working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe(\"List of working hour blocks for this specific date\").nullable().optional(),\n}).describe(\"Model for scheduling overrides in the response.\");\nexport const ScheduleonceUpdateUserSchedulingAvailabilityOutput = z.object({\n id: z.string().describe(\"Unique identifier for the user (may not be returned)\").nullable().optional(),\n object: z.string().describe(\"The object type, typically 'schedule'\").nullable().optional(),\n weekly: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema).describe(\"Updated weekly schedule\").nullable().optional(),\n timezone: z.string().describe(\"User's timezone setting\").nullable().optional(),\n overrides: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema).describe(\"Updated scheduling overrides\").nullable().optional(),\n last_updated_time: z.string().describe(\"ISO 8601 timestamp when availability was last updated\").nullable().optional(),\n}).describe(\"Response model for updating user scheduling availability.\");\n\nexport const scheduleonceUpdateUserSchedulingAvailability = action(\"SCHEDULEONCE_UPDATE_USER_SCHEDULING_AVAILABILITY\", {\n slug: \"scheduleonce-update-user-scheduling-availability\",\n name: \"Update User Scheduling Availability\",\n description: \"Tool to update user scheduling availability in OnceHub. Use when you need to modify a user's weekly schedule, set working hours for specific days, or add date-specific overrides for holidays or special events.\",\n input: ScheduleonceUpdateUserSchedulingAvailabilityInput,\n output: ScheduleonceUpdateUserSchedulingAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oDAAoDA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,C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names":["z","action"],"sources":["../../src/actions/update-user-scheduling-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceUpdateUserSchedulingAvailabilityInput = z.object({\n id: z.string().describe(\"The unique identifier of the user (e.g., 'USR-GB59HWQCXF')\"),\n weekly: z.array(z.object({\n day: z.enum([\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"]).describe(\"Day of the week\"),\n working_hours: z.array(z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\"),\n locations: z.array(z.object({\n id: z.string().describe(\"Location identifier\").optional(),\n name: z.string().describe(\"Location name\").optional(),\n}).passthrough().describe(\"Model for a location associated with working hours.\")).describe(\"List of locations where the user is available during these hours. Empty list means all locations.\").optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\"),\n}).passthrough().describe(\"Model for working hours within a day.\")).describe(\"List of working hour blocks for this day. Empty list means the user is not available on this day.\").optional(),\n}).passthrough().describe(\"Model for a single day's schedule in the weekly availability.\")).describe(\"Weekly schedule containing availability for each day of the week. Must include entries for all 7 days.\"),\n timezone: z.string().describe(\"Timezone for the scheduling availability (e.g., 'America/New_York', 'Asia/Kolkata'). Must be a valid IANA timezone identifier.\"),\n overrides: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format for the override\"),\n working_hours: z.array(z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\"),\n locations: z.array(z.object({\n id: z.string().describe(\"Location identifier\").optional(),\n name: z.string().describe(\"Location name\").optional(),\n}).passthrough().describe(\"Model for a location associated with working hours.\")).describe(\"List of locations where the user is available during these hours. Empty list means all locations.\").optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\"),\n}).passthrough().describe(\"Model for working hours within a day.\")).describe(\"List of working hour blocks for this specific date. Empty list means the user is not available on this date.\").optional(),\n}).passthrough().describe(\"Model for scheduling overrides on specific dates.\")).describe(\"List of specific date overrides that modify the weekly schedule. Use this for holidays, vacation days, or special availability.\").optional(),\n}).describe(\"Request model for updating user scheduling availability.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema = z.object({\n id: z.string().describe(\"Location identifier\").nullable().optional(),\n name: z.string().describe(\"Location name\").nullable().optional(),\n}).passthrough().describe(\"Model for a location associated with working hours.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema = z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\").nullable().optional(),\n locations: z.array(ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema).describe(\"List of locations where the user is available during these hours\").nullable().optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\").nullable().optional(),\n}).passthrough().describe(\"Model for working hours in the response (with optional fields).\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema = z.object({\n day: z.string().describe(\"Day of the week (e.g., 'Sunday', 'Monday', etc.)\").nullable().optional(),\n working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe(\"List of working hour blocks for this day\").nullable().optional(),\n}).passthrough().describe(\"Model for a single day's schedule in the response.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema = z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format for the override\").nullable().optional(),\n working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe(\"List of working hour blocks for this specific date\").nullable().optional(),\n}).passthrough().describe(\"Model for scheduling overrides in the response.\");\nexport const ScheduleonceUpdateUserSchedulingAvailabilityOutput = z.object({\n id: z.string().describe(\"Unique identifier for the user (may not be returned)\").nullable().optional(),\n object: z.string().describe(\"The object type, typically 'schedule'\").nullable().optional(),\n weekly: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema).describe(\"Updated weekly schedule\").nullable().optional(),\n timezone: z.string().describe(\"User's timezone setting\").nullable().optional(),\n overrides: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema).describe(\"Updated scheduling overrides\").nullable().optional(),\n last_updated_time: z.string().describe(\"ISO 8601 timestamp when availability was last updated\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating user scheduling availability.\");\n\nexport const scheduleonceUpdateUserSchedulingAvailability = action(\"SCHEDULEONCE_UPDATE_USER_SCHEDULING_AVAILABILITY\", {\n slug: \"scheduleonce-update-user-scheduling-availability\",\n name: \"Update User Scheduling Availability\",\n description: \"Tool to update user scheduling availability in OnceHub. Use when you need to modify a user's weekly schedule, set working hours for specific days, or add date-specific overrides for holidays or special events.\",\n input: ScheduleonceUpdateUserSchedulingAvailabilityInput,\n output: ScheduleonceUpdateUserSchedulingAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oDAAoDA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACpF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,KAAKA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAU;GAAW;GAAa;GAAY;GAAU;EAAU,CAAC,CAAC,CAAC,SAAS,iBAAiB;EACtH,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAChC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;GACjF,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;IAC5B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;IACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;GACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAA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,CAAC,SAAS,iDAAiD;AAC3E,MAAa,qDAAqDA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,MAAM,yEAAyE,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,MAAM,6EAA6E,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,+CAA+CC,eAAAA,OAAO,oDAAoD;CACrH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -18,10 +18,10 @@ declare const ScheduleonceUpdateUserSchedulingAvailabilityInput: z.ZodObject<{
18
18
  locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
19
  id: z.ZodOptional<z.ZodString>;
20
20
  name: z.ZodOptional<z.ZodString>;
21
- }, z.core.$strip>>>;
21
+ }, z.core.$loose>>>;
22
22
  start_time: z.ZodString;
23
- }, z.core.$strip>>>;
24
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>>;
24
+ }, z.core.$loose>>;
25
25
  timezone: z.ZodString;
26
26
  overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
27
  date: z.ZodString;
@@ -30,10 +30,10 @@ declare const ScheduleonceUpdateUserSchedulingAvailabilityInput: z.ZodObject<{
30
30
  locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
31
  id: z.ZodOptional<z.ZodString>;
32
32
  name: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strip>>>;
33
+ }, z.core.$loose>>>;
34
34
  start_time: z.ZodString;
35
- }, z.core.$strip>>>;
36
- }, z.core.$strip>>>;
35
+ }, z.core.$loose>>>;
36
+ }, z.core.$loose>>>;
37
37
  }, z.core.$strip>;
38
38
  declare const ScheduleonceUpdateUserSchedulingAvailabilityOutput: z.ZodObject<{
39
39
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -45,10 +45,10 @@ declare const ScheduleonceUpdateUserSchedulingAvailabilityOutput: z.ZodObject<{
45
45
  locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
46
46
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
- }, z.core.$strip>>>>;
48
+ }, z.core.$loose>>>>;
49
49
  start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- }, z.core.$strip>>>>;
51
- }, z.core.$strip>>>>;
50
+ }, z.core.$loose>>>>;
51
+ }, z.core.$loose>>>>;
52
52
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  overrides: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
54
54
  date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -57,20 +57,23 @@ declare const ScheduleonceUpdateUserSchedulingAvailabilityOutput: z.ZodObject<{
57
57
  locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
58
58
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
- }, z.core.$strip>>>>;
60
+ }, z.core.$loose>>>>;
61
61
  start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
- }, z.core.$strip>>>>;
63
- }, z.core.$strip>>>>;
62
+ }, z.core.$loose>>>>;
63
+ }, z.core.$loose>>>>;
64
64
  last_updated_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
- }, z.core.$strip>;
65
+ }, z.core.$loose>;
66
66
  declare const scheduleonceUpdateUserSchedulingAvailability: import("@keystrokehq/action").WorkflowActionDefinition<{
67
67
  id: string;
68
68
  weekly: {
69
+ [x: string]: unknown;
69
70
  day: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
70
71
  working_hours?: {
72
+ [x: string]: unknown;
71
73
  end_time: string;
72
74
  start_time: string;
73
75
  locations?: {
76
+ [x: string]: unknown;
74
77
  id?: string | undefined;
75
78
  name?: string | undefined;
76
79
  }[] | undefined;
@@ -78,11 +81,14 @@ declare const scheduleonceUpdateUserSchedulingAvailability: import("@keystrokehq
78
81
  }[];
79
82
  timezone: string;
80
83
  overrides?: {
84
+ [x: string]: unknown;
81
85
  date: string;
82
86
  working_hours?: {
87
+ [x: string]: unknown;
83
88
  end_time: string;
84
89
  start_time: string;
85
90
  locations?: {
91
+ [x: string]: unknown;
86
92
  id?: string | undefined;
87
93
  name?: string | undefined;
88
94
  }[] | undefined;
@@ -18,10 +18,10 @@ declare const ScheduleonceUpdateUserSchedulingAvailabilityInput: z.ZodObject<{
18
18
  locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
19
  id: z.ZodOptional<z.ZodString>;
20
20
  name: z.ZodOptional<z.ZodString>;
21
- }, z.core.$strip>>>;
21
+ }, z.core.$loose>>>;
22
22
  start_time: z.ZodString;
23
- }, z.core.$strip>>>;
24
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>>;
24
+ }, z.core.$loose>>;
25
25
  timezone: z.ZodString;
26
26
  overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
27
  date: z.ZodString;
@@ -30,10 +30,10 @@ declare const ScheduleonceUpdateUserSchedulingAvailabilityInput: z.ZodObject<{
30
30
  locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
31
  id: z.ZodOptional<z.ZodString>;
32
32
  name: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strip>>>;
33
+ }, z.core.$loose>>>;
34
34
  start_time: z.ZodString;
35
- }, z.core.$strip>>>;
36
- }, z.core.$strip>>>;
35
+ }, z.core.$loose>>>;
36
+ }, z.core.$loose>>>;
37
37
  }, z.core.$strip>;
38
38
  declare const ScheduleonceUpdateUserSchedulingAvailabilityOutput: z.ZodObject<{
39
39
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -45,10 +45,10 @@ declare const ScheduleonceUpdateUserSchedulingAvailabilityOutput: z.ZodObject<{
45
45
  locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
46
46
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
- }, z.core.$strip>>>>;
48
+ }, z.core.$loose>>>>;
49
49
  start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- }, z.core.$strip>>>>;
51
- }, z.core.$strip>>>>;
50
+ }, z.core.$loose>>>>;
51
+ }, z.core.$loose>>>>;
52
52
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  overrides: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
54
54
  date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -57,20 +57,23 @@ declare const ScheduleonceUpdateUserSchedulingAvailabilityOutput: z.ZodObject<{
57
57
  locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
58
58
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
- }, z.core.$strip>>>>;
60
+ }, z.core.$loose>>>>;
61
61
  start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
- }, z.core.$strip>>>>;
63
- }, z.core.$strip>>>>;
62
+ }, z.core.$loose>>>>;
63
+ }, z.core.$loose>>>>;
64
64
  last_updated_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
- }, z.core.$strip>;
65
+ }, z.core.$loose>;
66
66
  declare const scheduleonceUpdateUserSchedulingAvailability: import("@keystrokehq/action").WorkflowActionDefinition<{
67
67
  id: string;
68
68
  weekly: {
69
+ [x: string]: unknown;
69
70
  day: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
70
71
  working_hours?: {
72
+ [x: string]: unknown;
71
73
  end_time: string;
72
74
  start_time: string;
73
75
  locations?: {
76
+ [x: string]: unknown;
74
77
  id?: string | undefined;
75
78
  name?: string | undefined;
76
79
  }[] | undefined;
@@ -78,11 +81,14 @@ declare const scheduleonceUpdateUserSchedulingAvailability: import("@keystrokehq
78
81
  }[];
79
82
  timezone: string;
80
83
  overrides?: {
84
+ [x: string]: unknown;
81
85
  date: string;
82
86
  working_hours?: {
87
+ [x: string]: unknown;
83
88
  end_time: string;
84
89
  start_time: string;
85
90
  locations?: {
91
+ [x: string]: unknown;
86
92
  id?: string | undefined;
87
93
  name?: string | undefined;
88
94
  }[] | undefined;
@@ -18,10 +18,10 @@ const ScheduleonceUpdateUserSchedulingAvailabilityInput = z.object({
18
18
  locations: z.array(z.object({
19
19
  id: z.string().describe("Location identifier").optional(),
20
20
  name: z.string().describe("Location name").optional()
21
- }).describe("Model for a location associated with working hours.")).describe("List of locations where the user is available during these hours. Empty list means all locations.").optional(),
21
+ }).passthrough().describe("Model for a location associated with working hours.")).describe("List of locations where the user is available during these hours. Empty list means all locations.").optional(),
22
22
  start_time: z.string().describe("Start time in HH:MM format (24-hour, e.g., '09:00')")
23
- }).describe("Model for working hours within a day.")).describe("List of working hour blocks for this day. Empty list means the user is not available on this day.").optional()
24
- }).describe("Model for a single day's schedule in the weekly availability.")).describe("Weekly schedule containing availability for each day of the week. Must include entries for all 7 days."),
23
+ }).passthrough().describe("Model for working hours within a day.")).describe("List of working hour blocks for this day. Empty list means the user is not available on this day.").optional()
24
+ }).passthrough().describe("Model for a single day's schedule in the weekly availability.")).describe("Weekly schedule containing availability for each day of the week. Must include entries for all 7 days."),
25
25
  timezone: z.string().describe("Timezone for the scheduling availability (e.g., 'America/New_York', 'Asia/Kolkata'). Must be a valid IANA timezone identifier."),
26
26
  overrides: z.array(z.object({
27
27
  date: z.string().describe("Date in YYYY-MM-DD format for the override"),
@@ -30,28 +30,28 @@ const ScheduleonceUpdateUserSchedulingAvailabilityInput = z.object({
30
30
  locations: z.array(z.object({
31
31
  id: z.string().describe("Location identifier").optional(),
32
32
  name: z.string().describe("Location name").optional()
33
- }).describe("Model for a location associated with working hours.")).describe("List of locations where the user is available during these hours. Empty list means all locations.").optional(),
33
+ }).passthrough().describe("Model for a location associated with working hours.")).describe("List of locations where the user is available during these hours. Empty list means all locations.").optional(),
34
34
  start_time: z.string().describe("Start time in HH:MM format (24-hour, e.g., '09:00')")
35
- }).describe("Model for working hours within a day.")).describe("List of working hour blocks for this specific date. Empty list means the user is not available on this date.").optional()
36
- }).describe("Model for scheduling overrides on specific dates.")).describe("List of specific date overrides that modify the weekly schedule. Use this for holidays, vacation days, or special availability.").optional()
35
+ }).passthrough().describe("Model for working hours within a day.")).describe("List of working hour blocks for this specific date. Empty list means the user is not available on this date.").optional()
36
+ }).passthrough().describe("Model for scheduling overrides on specific dates.")).describe("List of specific date overrides that modify the weekly schedule. Use this for holidays, vacation days, or special availability.").optional()
37
37
  }).describe("Request model for updating user scheduling availability.");
38
38
  const ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema = z.object({
39
39
  id: z.string().describe("Location identifier").nullable().optional(),
40
40
  name: z.string().describe("Location name").nullable().optional()
41
- }).describe("Model for a location associated with working hours.");
41
+ }).passthrough().describe("Model for a location associated with working hours.");
42
42
  const ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema = z.object({
43
43
  end_time: z.string().describe("End time in HH:MM format (24-hour, e.g., '17:00')").nullable().optional(),
44
44
  locations: z.array(ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema).describe("List of locations where the user is available during these hours").nullable().optional(),
45
45
  start_time: z.string().describe("Start time in HH:MM format (24-hour, e.g., '09:00')").nullable().optional()
46
- }).describe("Model for working hours in the response (with optional fields).");
46
+ }).passthrough().describe("Model for working hours in the response (with optional fields).");
47
47
  const ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema = z.object({
48
48
  day: z.string().describe("Day of the week (e.g., 'Sunday', 'Monday', etc.)").nullable().optional(),
49
49
  working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe("List of working hour blocks for this day").nullable().optional()
50
- }).describe("Model for a single day's schedule in the response.");
50
+ }).passthrough().describe("Model for a single day's schedule in the response.");
51
51
  const ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema = z.object({
52
52
  date: z.string().describe("Date in YYYY-MM-DD format for the override").nullable().optional(),
53
53
  working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe("List of working hour blocks for this specific date").nullable().optional()
54
- }).describe("Model for scheduling overrides in the response.");
54
+ }).passthrough().describe("Model for scheduling overrides in the response.");
55
55
  const scheduleonceUpdateUserSchedulingAvailability = action("SCHEDULEONCE_UPDATE_USER_SCHEDULING_AVAILABILITY", {
56
56
  slug: "scheduleonce-update-user-scheduling-availability",
57
57
  name: "Update User Scheduling Availability",
@@ -64,7 +64,7 @@ const scheduleonceUpdateUserSchedulingAvailability = action("SCHEDULEONCE_UPDATE
64
64
  timezone: z.string().describe("User's timezone setting").nullable().optional(),
65
65
  overrides: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema).describe("Updated scheduling overrides").nullable().optional(),
66
66
  last_updated_time: z.string().describe("ISO 8601 timestamp when availability was last updated").nullable().optional()
67
- }).describe("Response model for updating user scheduling availability.")
67
+ }).passthrough().describe("Response model for updating user scheduling availability.")
68
68
  });
69
69
  //#endregion
70
70
  export { scheduleonceUpdateUserSchedulingAvailability };
@@ -1 +1 @@
1
- {"version":3,"file":"update-user-scheduling-availability.mjs","names":[],"sources":["../../src/actions/update-user-scheduling-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceUpdateUserSchedulingAvailabilityInput = z.object({\n id: z.string().describe(\"The unique identifier of the user (e.g., 'USR-GB59HWQCXF')\"),\n weekly: z.array(z.object({\n day: z.enum([\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"]).describe(\"Day of the week\"),\n working_hours: z.array(z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\"),\n locations: z.array(z.object({\n id: z.string().describe(\"Location identifier\").optional(),\n name: z.string().describe(\"Location name\").optional(),\n}).describe(\"Model for a location associated with working hours.\")).describe(\"List of locations where the user is available during these hours. Empty list means all locations.\").optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\"),\n}).describe(\"Model for working hours within a day.\")).describe(\"List of working hour blocks for this day. Empty list means the user is not available on this day.\").optional(),\n}).describe(\"Model for a single day's schedule in the weekly availability.\")).describe(\"Weekly schedule containing availability for each day of the week. Must include entries for all 7 days.\"),\n timezone: z.string().describe(\"Timezone for the scheduling availability (e.g., 'America/New_York', 'Asia/Kolkata'). Must be a valid IANA timezone identifier.\"),\n overrides: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format for the override\"),\n working_hours: z.array(z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\"),\n locations: z.array(z.object({\n id: z.string().describe(\"Location identifier\").optional(),\n name: z.string().describe(\"Location name\").optional(),\n}).describe(\"Model for a location associated with working hours.\")).describe(\"List of locations where the user is available during these hours. Empty list means all locations.\").optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\"),\n}).describe(\"Model for working hours within a day.\")).describe(\"List of working hour blocks for this specific date. Empty list means the user is not available on this date.\").optional(),\n}).describe(\"Model for scheduling overrides on specific dates.\")).describe(\"List of specific date overrides that modify the weekly schedule. Use this for holidays, vacation days, or special availability.\").optional(),\n}).describe(\"Request model for updating user scheduling availability.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema = z.object({\n id: z.string().describe(\"Location identifier\").nullable().optional(),\n name: z.string().describe(\"Location name\").nullable().optional(),\n}).describe(\"Model for a location associated with working hours.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema = z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\").nullable().optional(),\n locations: z.array(ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema).describe(\"List of locations where the user is available during these hours\").nullable().optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\").nullable().optional(),\n}).describe(\"Model for working hours in the response (with optional fields).\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema = z.object({\n day: z.string().describe(\"Day of the week (e.g., 'Sunday', 'Monday', etc.)\").nullable().optional(),\n working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe(\"List of working hour blocks for this day\").nullable().optional(),\n}).describe(\"Model for a single day's schedule in the response.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema = z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format for the override\").nullable().optional(),\n working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe(\"List of working hour blocks for this specific date\").nullable().optional(),\n}).describe(\"Model for scheduling overrides in the response.\");\nexport const ScheduleonceUpdateUserSchedulingAvailabilityOutput = z.object({\n id: z.string().describe(\"Unique identifier for the user (may not be returned)\").nullable().optional(),\n object: z.string().describe(\"The object type, typically 'schedule'\").nullable().optional(),\n weekly: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema).describe(\"Updated weekly schedule\").nullable().optional(),\n timezone: z.string().describe(\"User's timezone setting\").nullable().optional(),\n overrides: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema).describe(\"Updated scheduling overrides\").nullable().optional(),\n last_updated_time: z.string().describe(\"ISO 8601 timestamp when availability was last updated\").nullable().optional(),\n}).describe(\"Response model for updating user scheduling availability.\");\n\nexport const scheduleonceUpdateUserSchedulingAvailability = action(\"SCHEDULEONCE_UPDATE_USER_SCHEDULING_AVAILABILITY\", {\n slug: \"scheduleonce-update-user-scheduling-availability\",\n name: \"Update User Scheduling Availability\",\n description: \"Tool to update user scheduling availability in OnceHub. Use when you need to modify a user's weekly schedule, set working hours for specific days, or add date-specific overrides for holidays or special events.\",\n input: ScheduleonceUpdateUserSchedulingAvailabilityInput,\n output: ScheduleonceUpdateUserSchedulingAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oDAAoD,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACpF,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,KAAK,EAAE,KAAK;GAAC;GAAU;GAAU;GAAW;GAAa;GAAY;GAAU;EAAU,CAAC,CAAC,CAAC,SAAS,iBAAiB;EACtH,eAAe,EAAE,MAAM,EAAE,OAAO;GAChC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;GACjF,WAAW,EAAE,MAAM,EAAE,OAAO;IAC5B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;IACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;GACtD,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;GACzL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AAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,MAAM,6EAA6E,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-user-scheduling-availability.mjs","names":[],"sources":["../../src/actions/update-user-scheduling-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceUpdateUserSchedulingAvailabilityInput = z.object({\n id: z.string().describe(\"The unique identifier of the user (e.g., 'USR-GB59HWQCXF')\"),\n weekly: z.array(z.object({\n day: z.enum([\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"]).describe(\"Day of the week\"),\n working_hours: z.array(z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\"),\n locations: z.array(z.object({\n id: z.string().describe(\"Location identifier\").optional(),\n name: z.string().describe(\"Location name\").optional(),\n}).passthrough().describe(\"Model for a location associated with working hours.\")).describe(\"List of locations where the user is available during these hours. Empty list means all locations.\").optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\"),\n}).passthrough().describe(\"Model for working hours within a day.\")).describe(\"List of working hour blocks for this day. Empty list means the user is not available on this day.\").optional(),\n}).passthrough().describe(\"Model for a single day's schedule in the weekly availability.\")).describe(\"Weekly schedule containing availability for each day of the week. Must include entries for all 7 days.\"),\n timezone: z.string().describe(\"Timezone for the scheduling availability (e.g., 'America/New_York', 'Asia/Kolkata'). Must be a valid IANA timezone identifier.\"),\n overrides: z.array(z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format for the override\"),\n working_hours: z.array(z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\"),\n locations: z.array(z.object({\n id: z.string().describe(\"Location identifier\").optional(),\n name: z.string().describe(\"Location name\").optional(),\n}).passthrough().describe(\"Model for a location associated with working hours.\")).describe(\"List of locations where the user is available during these hours. Empty list means all locations.\").optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\"),\n}).passthrough().describe(\"Model for working hours within a day.\")).describe(\"List of working hour blocks for this specific date. Empty list means the user is not available on this date.\").optional(),\n}).passthrough().describe(\"Model for scheduling overrides on specific dates.\")).describe(\"List of specific date overrides that modify the weekly schedule. Use this for holidays, vacation days, or special availability.\").optional(),\n}).describe(\"Request model for updating user scheduling availability.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema = z.object({\n id: z.string().describe(\"Location identifier\").nullable().optional(),\n name: z.string().describe(\"Location name\").nullable().optional(),\n}).passthrough().describe(\"Model for a location associated with working hours.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema = z.object({\n end_time: z.string().describe(\"End time in HH:MM format (24-hour, e.g., '17:00')\").nullable().optional(),\n locations: z.array(ScheduleonceUpdateUserSchedulingAvailability_WorkingHoursLocationSchema).describe(\"List of locations where the user is available during these hours\").nullable().optional(),\n start_time: z.string().describe(\"Start time in HH:MM format (24-hour, e.g., '09:00')\").nullable().optional(),\n}).passthrough().describe(\"Model for working hours in the response (with optional fields).\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema = z.object({\n day: z.string().describe(\"Day of the week (e.g., 'Sunday', 'Monday', etc.)\").nullable().optional(),\n working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe(\"List of working hour blocks for this day\").nullable().optional(),\n}).passthrough().describe(\"Model for a single day's schedule in the response.\");\nconst ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema = z.object({\n date: z.string().describe(\"Date in YYYY-MM-DD format for the override\").nullable().optional(),\n working_hours: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWorkingHoursSchema).describe(\"List of working hour blocks for this specific date\").nullable().optional(),\n}).passthrough().describe(\"Model for scheduling overrides in the response.\");\nexport const ScheduleonceUpdateUserSchedulingAvailabilityOutput = z.object({\n id: z.string().describe(\"Unique identifier for the user (may not be returned)\").nullable().optional(),\n object: z.string().describe(\"The object type, typically 'schedule'\").nullable().optional(),\n weekly: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseWeeklyScheduleSchema).describe(\"Updated weekly schedule\").nullable().optional(),\n timezone: z.string().describe(\"User's timezone setting\").nullable().optional(),\n overrides: z.array(ScheduleonceUpdateUserSchedulingAvailability_ResponseSchedulingOverrideSchema).describe(\"Updated scheduling overrides\").nullable().optional(),\n last_updated_time: z.string().describe(\"ISO 8601 timestamp when availability was last updated\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating user scheduling availability.\");\n\nexport const scheduleonceUpdateUserSchedulingAvailability = action(\"SCHEDULEONCE_UPDATE_USER_SCHEDULING_AVAILABILITY\", {\n slug: \"scheduleonce-update-user-scheduling-availability\",\n name: \"Update User Scheduling Availability\",\n description: \"Tool to update user scheduling availability in OnceHub. Use when you need to modify a user's weekly schedule, set working hours for specific days, or add date-specific overrides for holidays or special events.\",\n input: ScheduleonceUpdateUserSchedulingAvailabilityInput,\n output: ScheduleonceUpdateUserSchedulingAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oDAAoD,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACpF,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,KAAK,EAAE,KAAK;GAAC;GAAU;GAAU;GAAW;GAAa;GAAY;GAAU;EAAU,CAAC,CAAC,CAAC,SAAS,iBAAiB;EACtH,eAAe,EAAE,MAAM,EAAE,OAAO;GAChC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;GACjF,WAAW,EA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CAAC,CAAC,SAAS,iDAAiD;AAU3E,MAAa,+CAA+C,OAAO,oDAAoD;CACrH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdgE,EAAE,OAAO;EACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,QAAQ,EAAE,MAAM,yEAAyE,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,MAAM,6EAA6E,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
@@ -19,7 +19,7 @@ const ScheduleonceUpdateUserOutput = zod.z.object({
19
19
  last_name: zod.z.string().describe("User's last name").nullable().optional(),
20
20
  role_name: zod.z.string().describe("User's role in the account (e.g., 'Member', 'Admin')").nullable().optional(),
21
21
  first_name: zod.z.string().describe("User's first name").nullable().optional()
22
- }).describe("Response model for the updated user.");
22
+ }).passthrough().describe("Response model for the updated user.");
23
23
  const scheduleonceUpdateUser = require_action.action("SCHEDULEONCE_UPDATE_USER", {
24
24
  slug: "scheduleonce-update-user",
25
25
  name: "Update User",
@@ -1 +1 @@
1
- {"version":3,"file":"update-user.cjs","names":["z","action"],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceUpdateUserInput = z.object({\n id: z.string().describe(\"The unique identifier of the user to update (e.g., 'USR-DQ27BRAJ4L').\"),\n email: z.string().describe(\"Updated email address of the user.\").optional(),\n timezone: z.string().describe(\"Updated timezone for the user (e.g., 'America/Chicago', 'Europe/London').\").optional(),\n last_name: z.string().describe(\"Updated last name of the user.\").optional(),\n role_name: z.string().describe(\"Updated role name for the user (e.g., 'Member', 'Admin').\").optional(),\n first_name: z.string().describe(\"Updated first name of the user.\").optional(),\n}).describe(\"Request model for updating an existing user.\");\nexport const ScheduleonceUpdateUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n teams: z.array(z.string()).describe(\"Array of team IDs the user belongs to\").nullable().optional(),\n object: z.string().describe(\"Object type, always 'user'\").nullable().optional(),\n status: z.string().describe(\"User status indicating if the user has signed in or is still in invited status\").nullable().optional(),\n timezone: z.string().describe(\"User's timezone (e.g., 'America/Chicago')\").nullable().optional(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n role_name: z.string().describe(\"User's role in the account (e.g., 'Member', 'Admin')\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n}).describe(\"Response model for the updated user.\");\n\nexport const scheduleonceUpdateUser = action(\"SCHEDULEONCE_UPDATE_USER\", {\n slug: \"scheduleonce-update-user\",\n name: \"Update User\",\n description: \"Tool to update an existing user in OnceHub. Use when you need to modify user information such as name, email, role, or timezone.\",\n input: ScheduleonceUpdateUserInput,\n output: ScheduleonceUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACp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AsC;AAElD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-user.cjs","names":["z","action"],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceUpdateUserInput = z.object({\n id: z.string().describe(\"The unique identifier of the user to update (e.g., 'USR-DQ27BRAJ4L').\"),\n email: z.string().describe(\"Updated email address of the user.\").optional(),\n timezone: z.string().describe(\"Updated timezone for the user (e.g., 'America/Chicago', 'Europe/London').\").optional(),\n last_name: z.string().describe(\"Updated last name of the user.\").optional(),\n role_name: z.string().describe(\"Updated role name for the user (e.g., 'Member', 'Admin').\").optional(),\n first_name: z.string().describe(\"Updated first name of the user.\").optional(),\n}).describe(\"Request model for updating an existing user.\");\nexport const ScheduleonceUpdateUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n teams: z.array(z.string()).describe(\"Array of team IDs the user belongs to\").nullable().optional(),\n object: z.string().describe(\"Object type, always 'user'\").nullable().optional(),\n status: z.string().describe(\"User status indicating if the user has signed in or is still in invited status\").nullable().optional(),\n timezone: z.string().describe(\"User's timezone (e.g., 'America/Chicago')\").nullable().optional(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n role_name: z.string().describe(\"User's role in the account (e.g., 'Member', 'Admin')\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n}).passthrough().describe(\"Response model for the updated user.\");\n\nexport const scheduleonceUpdateUser = action(\"SCHEDULEONCE_UPDATE_USER\", {\n slug: \"scheduleonce-update-user\",\n name: \"Update User\",\n description: \"Tool to update an existing user in OnceHub. Use when you need to modify user information such as name, email, role, or timezone.\",\n input: ScheduleonceUpdateUserInput,\n output: ScheduleonceUpdateUserOutput,\n});\n"],"mappings":";;;AAI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CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -19,7 +19,7 @@ declare const ScheduleonceUpdateUserOutput: z.ZodObject<{
19
19
  last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  role_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
23
  declare const scheduleonceUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  id: string;
25
25
  email?: string | undefined;
@@ -19,7 +19,7 @@ declare const ScheduleonceUpdateUserOutput: z.ZodObject<{
19
19
  last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  role_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
23
  declare const scheduleonceUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  id: string;
25
25
  email?: string | undefined;
@@ -22,7 +22,7 @@ const scheduleonceUpdateUser = action("SCHEDULEONCE_UPDATE_USER", {
22
22
  last_name: z.string().describe("User's last name").nullable().optional(),
23
23
  role_name: z.string().describe("User's role in the account (e.g., 'Member', 'Admin')").nullable().optional(),
24
24
  first_name: z.string().describe("User's first name").nullable().optional()
25
- }).describe("Response model for the updated user.")
25
+ }).passthrough().describe("Response model for the updated user.")
26
26
  });
27
27
  //#endregion
28
28
  export { scheduleonceUpdateUser };
@@ -1 +1 @@
1
- {"version":3,"file":"update-user.mjs","names":[],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceUpdateUserInput = z.object({\n id: z.string().describe(\"The unique identifier of the user to update (e.g., 'USR-DQ27BRAJ4L').\"),\n email: z.string().describe(\"Updated email address of the user.\").optional(),\n timezone: z.string().describe(\"Updated timezone for the user (e.g., 'America/Chicago', 'Europe/London').\").optional(),\n last_name: z.string().describe(\"Updated last name of the user.\").optional(),\n role_name: z.string().describe(\"Updated role name for the user (e.g., 'Member', 'Admin').\").optional(),\n first_name: z.string().describe(\"Updated first name of the user.\").optional(),\n}).describe(\"Request model for updating an existing user.\");\nexport const ScheduleonceUpdateUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n teams: z.array(z.string()).describe(\"Array of team IDs the user belongs to\").nullable().optional(),\n object: z.string().describe(\"Object type, always 'user'\").nullable().optional(),\n status: z.string().describe(\"User status indicating if the user has signed in or is still in invited status\").nullable().optional(),\n timezone: z.string().describe(\"User's timezone (e.g., 'America/Chicago')\").nullable().optional(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n role_name: z.string().describe(\"User's role in the account (e.g., 'Member', 'Admin')\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n}).describe(\"Response model for the updated user.\");\n\nexport const scheduleonceUpdateUser = action(\"SCHEDULEONCE_UPDATE_USER\", {\n slug: \"scheduleonce-update-user\",\n name: \"Update User\",\n description: \"Tool to update an existing user in OnceHub. Use when you need to modify user information such as name, email, role, or timezone.\",\n input: ScheduleonceUpdateUserInput,\n output: ScheduleonceUpdateUserOutput,\n});\n"],"mappings":";;AAwBA,MAAa,yBAAyB,OAAO,4BAA4B;CACv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;EAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-user.mjs","names":[],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScheduleonceUpdateUserInput = z.object({\n id: z.string().describe(\"The unique identifier of the user to update (e.g., 'USR-DQ27BRAJ4L').\"),\n email: z.string().describe(\"Updated email address of the user.\").optional(),\n timezone: z.string().describe(\"Updated timezone for the user (e.g., 'America/Chicago', 'Europe/London').\").optional(),\n last_name: z.string().describe(\"Updated last name of the user.\").optional(),\n role_name: z.string().describe(\"Updated role name for the user (e.g., 'Member', 'Admin').\").optional(),\n first_name: z.string().describe(\"Updated first name of the user.\").optional(),\n}).describe(\"Request model for updating an existing user.\");\nexport const ScheduleonceUpdateUserOutput = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable().optional(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n teams: z.array(z.string()).describe(\"Array of team IDs the user belongs to\").nullable().optional(),\n object: z.string().describe(\"Object type, always 'user'\").nullable().optional(),\n status: z.string().describe(\"User status indicating if the user has signed in or is still in invited status\").nullable().optional(),\n timezone: z.string().describe(\"User's timezone (e.g., 'America/Chicago')\").nullable().optional(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n role_name: z.string().describe(\"User's role in the account (e.g., 'Member', 'Admin')\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable().optional(),\n}).passthrough().describe(\"Response model for the updated user.\");\n\nexport const scheduleonceUpdateUser = action(\"SCHEDULEONCE_UPDATE_USER\", {\n slug: \"scheduleonce-update-user\",\n name: \"Update User\",\n description: \"Tool to update an existing user in OnceHub. Use when you need to modify user information such as name, email, role, or timezone.\",\n input: ScheduleonceUpdateUserInput,\n output: ScheduleonceUpdateUserOutput,\n});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AC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -8,7 +8,7 @@ const scheduleonceCatalog = {
8
8
  "logo": "https://logos.composio.dev/api/scheduleonce",
9
9
  "authKind": "keystroke",
10
10
  "oauthScopes": [],
11
- "credentialFields": { "api_key": {
11
+ "credentialFields": { "generic_api_key": {
12
12
  "label": "API Key",
13
13
  "secret": true,
14
14
  "description": "Your OnceHub API key from ScheduleOnce > Setup > Integrations > API Integration"
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const scheduleonceCatalog = {\n \"slug\": \"scheduleonce\",\n \"name\": \"Scheduleonce\",\n \"description\": \"Scheduling platform for capturing, qualifying, and engaging with inbound leads\",\n \"category\": \"Scheduling & Booking\",\n \"logo\": \"https://logos.composio.dev/api/scheduleonce\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your OnceHub API key from ScheduleOnce > Setup > Integrations > API Integration\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,sBAAsB;CACjC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const scheduleonceCatalog = {\n \"slug\": \"scheduleonce\",\n \"name\": \"Scheduleonce\",\n \"description\": \"Scheduling platform for capturing, qualifying, and engaging with inbound leads\",\n \"category\": \"Scheduling & Booking\",\n \"logo\": \"https://logos.composio.dev/api/scheduleonce\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your OnceHub API key from ScheduleOnce > Setup > Integrations > API Integration\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,sBAAsB;CACjC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -9,7 +9,7 @@ declare const scheduleonceCatalog: {
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
11
  readonly credentialFields: {
12
- readonly api_key: {
12
+ readonly generic_api_key: {
13
13
  readonly label: "API Key";
14
14
  readonly secret: true;
15
15
  readonly description: "Your OnceHub API key from ScheduleOnce > Setup > Integrations > API Integration";
@@ -9,7 +9,7 @@ declare const scheduleonceCatalog: {
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
11
  readonly credentialFields: {
12
- readonly api_key: {
12
+ readonly generic_api_key: {
13
13
  readonly label: "API Key";
14
14
  readonly secret: true;
15
15
  readonly description: "Your OnceHub API key from ScheduleOnce > Setup > Integrations > API Integration";
package/dist/catalog.mjs CHANGED
@@ -8,7 +8,7 @@ const scheduleonceCatalog = {
8
8
  "logo": "https://logos.composio.dev/api/scheduleonce",
9
9
  "authKind": "keystroke",
10
10
  "oauthScopes": [],
11
- "credentialFields": { "api_key": {
11
+ "credentialFields": { "generic_api_key": {
12
12
  "label": "API Key",
13
13
  "secret": true,
14
14
  "description": "Your OnceHub API key from ScheduleOnce > Setup > Integrations > API Integration"
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const scheduleonceCatalog = {\n \"slug\": \"scheduleonce\",\n \"name\": \"Scheduleonce\",\n \"description\": \"Scheduling platform for capturing, qualifying, and engaging with inbound leads\",\n \"category\": \"Scheduling & Booking\",\n \"logo\": \"https://logos.composio.dev/api/scheduleonce\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your OnceHub API key from ScheduleOnce > Setup > Integrations > API Integration\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,sBAAsB;CACjC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const scheduleonceCatalog = {\n \"slug\": \"scheduleonce\",\n \"name\": \"Scheduleonce\",\n \"description\": \"Scheduling platform for capturing, qualifying, and engaging with inbound leads\",\n \"category\": \"Scheduling & Booking\",\n \"logo\": \"https://logos.composio.dev/api/scheduleonce\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your OnceHub API key from ScheduleOnce > Setup > Integrations > API Integration\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,sBAAsB;CACjC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/scheduleonce",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"