@burdenoff/cli-sdk 2026.1110.1 → 2026.1123.1

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 (238) hide show
  1. package/dist/{chunk-WTNQ5PEC.js → chunk-3ZVMC2AF.js} +1 -1
  2. package/dist/{chunk-6HSWVWQW.js → chunk-ASSY2L5R.js} +1 -1
  3. package/dist/chunk-ZT6KOG7N.js +34 -0
  4. package/dist/core/index.cjs +8 -8
  5. package/dist/core/index.d.cts +2 -2
  6. package/dist/core/index.d.ts +2 -2
  7. package/dist/core/index.js +1 -1
  8. package/dist/index.cjs +8 -8
  9. package/dist/index.d.cts +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/{module-CLaW1ycq.d.ts → module-BNVKV_pI.d.cts} +11 -1
  13. package/dist/{module-CLaW1ycq.d.cts → module-BNVKV_pI.d.ts} +11 -1
  14. package/dist/modules/adaptercloud/index.cjs +4 -4
  15. package/dist/modules/adaptercloud/index.d.cts +1 -1
  16. package/dist/modules/adaptercloud/index.d.ts +1 -1
  17. package/dist/modules/adaptercloud/index.js +1 -1
  18. package/dist/modules/artistrybase/index.cjs +3 -3
  19. package/dist/modules/artistrybase/index.d.cts +1 -1
  20. package/dist/modules/artistrybase/index.d.ts +1 -1
  21. package/dist/modules/artistrybase/index.js +1 -1
  22. package/dist/modules/assethandler/index.cjs +7 -7
  23. package/dist/modules/assethandler/index.d.cts +1 -1
  24. package/dist/modules/assethandler/index.d.ts +1 -1
  25. package/dist/modules/assethandler/index.js +1 -1
  26. package/dist/modules/atheletebridge/index.cjs +4 -4
  27. package/dist/modules/atheletebridge/index.d.cts +1 -1
  28. package/dist/modules/atheletebridge/index.d.ts +1 -1
  29. package/dist/modules/atheletebridge/index.js +1 -1
  30. package/dist/modules/auth/index.d.cts +1 -1
  31. package/dist/modules/auth/index.d.ts +1 -1
  32. package/dist/modules/auth/index.js +1 -1
  33. package/dist/modules/billing/index.cjs +8 -8
  34. package/dist/modules/billing/index.d.cts +1 -1
  35. package/dist/modules/billing/index.d.ts +1 -1
  36. package/dist/modules/billing/index.js +1 -1
  37. package/dist/modules/brainyrich/index.cjs +8 -8
  38. package/dist/modules/brainyrich/index.d.cts +1 -1
  39. package/dist/modules/brainyrich/index.d.ts +1 -1
  40. package/dist/modules/brainyrich/index.js +1 -1
  41. package/dist/modules/buildmyiq/index.d.cts +1 -1
  42. package/dist/modules/buildmyiq/index.d.ts +1 -1
  43. package/dist/modules/buildmyiq/index.js +1 -1
  44. package/dist/modules/channels/index.cjs +8 -8
  45. package/dist/modules/channels/index.d.cts +1 -1
  46. package/dist/modules/channels/index.d.ts +1 -1
  47. package/dist/modules/channels/index.js +1 -1
  48. package/dist/modules/collabkin/index.cjs +3 -3
  49. package/dist/modules/collabkin/index.d.cts +1 -1
  50. package/dist/modules/collabkin/index.d.ts +1 -1
  51. package/dist/modules/collabkin/index.js +1 -1
  52. package/dist/modules/comradecircle/index.cjs +10 -10
  53. package/dist/modules/comradecircle/index.d.cts +1 -1
  54. package/dist/modules/comradecircle/index.d.ts +1 -1
  55. package/dist/modules/comradecircle/index.js +1 -1
  56. package/dist/modules/conversations/index.cjs +4 -4
  57. package/dist/modules/conversations/index.d.cts +1 -1
  58. package/dist/modules/conversations/index.d.ts +1 -1
  59. package/dist/modules/conversations/index.js +1 -1
  60. package/dist/modules/coolandlovely/index.cjs +3 -3
  61. package/dist/modules/coolandlovely/index.d.cts +1 -1
  62. package/dist/modules/coolandlovely/index.d.ts +1 -1
  63. package/dist/modules/coolandlovely/index.js +1 -1
  64. package/dist/modules/cosmicintersection/index.cjs +4 -4
  65. package/dist/modules/cosmicintersection/index.d.cts +1 -1
  66. package/dist/modules/cosmicintersection/index.d.ts +1 -1
  67. package/dist/modules/cosmicintersection/index.js +1 -1
  68. package/dist/modules/crewfoundry/index.cjs +7 -7
  69. package/dist/modules/crewfoundry/index.d.cts +1 -1
  70. package/dist/modules/crewfoundry/index.d.ts +1 -1
  71. package/dist/modules/crewfoundry/index.js +1 -1
  72. package/dist/modules/devportal/index.cjs +6 -6
  73. package/dist/modules/devportal/index.d.cts +1 -1
  74. package/dist/modules/devportal/index.d.ts +1 -1
  75. package/dist/modules/devportal/index.js +1 -1
  76. package/dist/modules/ecoimpacthub/index.cjs +3 -3
  77. package/dist/modules/ecoimpacthub/index.d.cts +1 -1
  78. package/dist/modules/ecoimpacthub/index.d.ts +1 -1
  79. package/dist/modules/ecoimpacthub/index.js +1 -1
  80. package/dist/modules/eventfullymanaged/index.cjs +13 -13
  81. package/dist/modules/eventfullymanaged/index.d.cts +1 -1
  82. package/dist/modules/eventfullymanaged/index.d.ts +1 -1
  83. package/dist/modules/eventfullymanaged/index.js +1 -1
  84. package/dist/modules/export/index.cjs +5 -5
  85. package/dist/modules/export/index.d.cts +1 -1
  86. package/dist/modules/export/index.d.ts +1 -1
  87. package/dist/modules/export/index.js +1 -1
  88. package/dist/modules/files/index.cjs +7 -7
  89. package/dist/modules/files/index.d.cts +1 -1
  90. package/dist/modules/files/index.d.ts +1 -1
  91. package/dist/modules/files/index.js +1 -1
  92. package/dist/modules/fluidgrids/index.cjs +5 -5
  93. package/dist/modules/fluidgrids/index.d.cts +1 -1
  94. package/dist/modules/fluidgrids/index.d.ts +1 -1
  95. package/dist/modules/fluidgrids/index.js +1 -1
  96. package/dist/modules/ggnomad/index.cjs +6 -6
  97. package/dist/modules/ggnomad/index.d.cts +1 -1
  98. package/dist/modules/ggnomad/index.d.ts +1 -1
  99. package/dist/modules/ggnomad/index.js +1 -1
  100. package/dist/modules/govcitizenhub/index.cjs +6 -6
  101. package/dist/modules/govcitizenhub/index.d.cts +1 -1
  102. package/dist/modules/govcitizenhub/index.d.ts +1 -1
  103. package/dist/modules/govcitizenhub/index.js +1 -1
  104. package/dist/modules/groups/index.cjs +2 -2
  105. package/dist/modules/groups/index.d.cts +1 -1
  106. package/dist/modules/groups/index.d.ts +1 -1
  107. package/dist/modules/groups/index.js +1 -1
  108. package/dist/modules/headshotmarketing/index.d.cts +1 -1
  109. package/dist/modules/headshotmarketing/index.d.ts +1 -1
  110. package/dist/modules/headshotmarketing/index.js +1 -1
  111. package/dist/modules/health/index.d.cts +1 -1
  112. package/dist/modules/health/index.d.ts +1 -1
  113. package/dist/modules/hookmovies/index.cjs +4 -4
  114. package/dist/modules/hookmovies/index.d.cts +1 -1
  115. package/dist/modules/hookmovies/index.d.ts +1 -1
  116. package/dist/modules/hookmovies/index.js +1 -1
  117. package/dist/modules/housingvista/index.cjs +13 -13
  118. package/dist/modules/housingvista/index.d.cts +1 -1
  119. package/dist/modules/housingvista/index.d.ts +1 -1
  120. package/dist/modules/housingvista/index.js +1 -1
  121. package/dist/modules/integrations/index.cjs +7 -7
  122. package/dist/modules/integrations/index.d.cts +1 -1
  123. package/dist/modules/integrations/index.d.ts +1 -1
  124. package/dist/modules/integrations/index.js +1 -1
  125. package/dist/modules/intelwatchtower/index.cjs +6 -6
  126. package/dist/modules/intelwatchtower/index.d.cts +1 -1
  127. package/dist/modules/intelwatchtower/index.d.ts +1 -1
  128. package/dist/modules/intelwatchtower/index.js +1 -1
  129. package/dist/modules/kadaikodi/index.cjs +5 -5
  130. package/dist/modules/kadaikodi/index.d.cts +1 -1
  131. package/dist/modules/kadaikodi/index.d.ts +1 -1
  132. package/dist/modules/kadaikodi/index.js +1 -1
  133. package/dist/modules/labsofscience/index.cjs +6 -6
  134. package/dist/modules/labsofscience/index.d.cts +1 -1
  135. package/dist/modules/labsofscience/index.d.ts +1 -1
  136. package/dist/modules/labsofscience/index.js +1 -1
  137. package/dist/modules/manufacturedops/index.cjs +8 -8
  138. package/dist/modules/manufacturedops/index.d.cts +1 -1
  139. package/dist/modules/manufacturedops/index.d.ts +1 -1
  140. package/dist/modules/manufacturedops/index.js +1 -1
  141. package/dist/modules/movethewheels/index.cjs +18 -18
  142. package/dist/modules/movethewheels/index.d.cts +1 -1
  143. package/dist/modules/movethewheels/index.d.ts +1 -1
  144. package/dist/modules/movethewheels/index.js +1 -1
  145. package/dist/modules/mybodyshield/index.cjs +5 -5
  146. package/dist/modules/mybodyshield/index.d.cts +1 -1
  147. package/dist/modules/mybodyshield/index.d.ts +1 -1
  148. package/dist/modules/mybodyshield/index.js +1 -1
  149. package/dist/modules/notifications/index.cjs +4 -4
  150. package/dist/modules/notifications/index.d.cts +1 -1
  151. package/dist/modules/notifications/index.d.ts +1 -1
  152. package/dist/modules/notifications/index.js +1 -1
  153. package/dist/modules/organizations/index.cjs +2 -2
  154. package/dist/modules/organizations/index.d.cts +1 -1
  155. package/dist/modules/organizations/index.d.ts +1 -1
  156. package/dist/modules/organizations/index.js +1 -1
  157. package/dist/modules/planmagnet/index.cjs +17 -17
  158. package/dist/modules/planmagnet/index.d.cts +1 -1
  159. package/dist/modules/planmagnet/index.d.ts +1 -1
  160. package/dist/modules/planmagnet/index.js +1 -1
  161. package/dist/modules/products/index.cjs +8 -8
  162. package/dist/modules/products/index.d.cts +1 -1
  163. package/dist/modules/products/index.d.ts +1 -1
  164. package/dist/modules/products/index.js +1 -1
  165. package/dist/modules/proserviceworld/index.cjs +4 -4
  166. package/dist/modules/proserviceworld/index.d.cts +1 -1
  167. package/dist/modules/proserviceworld/index.d.ts +1 -1
  168. package/dist/modules/proserviceworld/index.js +1 -1
  169. package/dist/modules/rbac/index.cjs +5 -5
  170. package/dist/modules/rbac/index.d.cts +1 -1
  171. package/dist/modules/rbac/index.d.ts +1 -1
  172. package/dist/modules/rbac/index.js +1 -1
  173. package/dist/modules/sandbox/index.cjs +1 -1
  174. package/dist/modules/sandbox/index.d.cts +1 -1
  175. package/dist/modules/sandbox/index.d.ts +1 -1
  176. package/dist/modules/sandbox/index.js +1 -1
  177. package/dist/modules/scheduler/index.cjs +6 -6
  178. package/dist/modules/scheduler/index.d.cts +1 -1
  179. package/dist/modules/scheduler/index.d.ts +1 -1
  180. package/dist/modules/scheduler/index.js +1 -1
  181. package/dist/modules/security/index.cjs +7 -7
  182. package/dist/modules/security/index.d.cts +1 -1
  183. package/dist/modules/security/index.d.ts +1 -1
  184. package/dist/modules/security/index.js +1 -1
  185. package/dist/modules/semanticfed/index.cjs +7 -7
  186. package/dist/modules/semanticfed/index.d.cts +1 -1
  187. package/dist/modules/semanticfed/index.d.ts +1 -1
  188. package/dist/modules/semanticfed/index.js +1 -1
  189. package/dist/modules/semanticfed-sql/index.cjs +4 -4
  190. package/dist/modules/semanticfed-sql/index.d.cts +1 -1
  191. package/dist/modules/semanticfed-sql/index.d.ts +1 -1
  192. package/dist/modules/semanticfed-sql/index.js +1 -1
  193. package/dist/modules/store/index.cjs +7 -7
  194. package/dist/modules/store/index.d.cts +1 -1
  195. package/dist/modules/store/index.d.ts +1 -1
  196. package/dist/modules/store/index.js +1 -1
  197. package/dist/modules/subscriberbot/index.cjs +4 -4
  198. package/dist/modules/subscriberbot/index.d.cts +1 -1
  199. package/dist/modules/subscriberbot/index.d.ts +1 -1
  200. package/dist/modules/subscriberbot/index.js +1 -1
  201. package/dist/modules/support/index.cjs +2 -2
  202. package/dist/modules/support/index.d.cts +1 -1
  203. package/dist/modules/support/index.d.ts +1 -1
  204. package/dist/modules/support/index.js +1 -1
  205. package/dist/modules/tags/index.cjs +2 -2
  206. package/dist/modules/tags/index.d.cts +1 -1
  207. package/dist/modules/tags/index.d.ts +1 -1
  208. package/dist/modules/tags/index.js +1 -1
  209. package/dist/modules/technospam/index.cjs +10 -10
  210. package/dist/modules/technospam/index.d.cts +1 -1
  211. package/dist/modules/technospam/index.d.ts +1 -1
  212. package/dist/modules/technospam/index.js +1 -1
  213. package/dist/modules/theculturepost/index.cjs +8 -8
  214. package/dist/modules/theculturepost/index.d.cts +1 -1
  215. package/dist/modules/theculturepost/index.d.ts +1 -1
  216. package/dist/modules/theculturepost/index.js +1 -1
  217. package/dist/modules/theglobalfuel/index.cjs +4 -4
  218. package/dist/modules/theglobalfuel/index.d.cts +1 -1
  219. package/dist/modules/theglobalfuel/index.d.ts +1 -1
  220. package/dist/modules/theglobalfuel/index.js +1 -1
  221. package/dist/modules/timecampus/index.cjs +72 -61
  222. package/dist/modules/timecampus/index.d.cts +7 -3
  223. package/dist/modules/timecampus/index.d.ts +7 -3
  224. package/dist/modules/timecampus/index.js +72 -61
  225. package/dist/modules/tours/index.cjs +2 -2
  226. package/dist/modules/tours/index.d.cts +1 -1
  227. package/dist/modules/tours/index.d.ts +1 -1
  228. package/dist/modules/tours/index.js +1 -1
  229. package/dist/modules/vibecontrols/index.cjs +32 -32
  230. package/dist/modules/vibecontrols/index.d.cts +1 -1
  231. package/dist/modules/vibecontrols/index.d.ts +1 -1
  232. package/dist/modules/vibecontrols/index.js +1 -1
  233. package/dist/modules/workspaces/index.cjs +7 -7
  234. package/dist/modules/workspaces/index.d.cts +1 -1
  235. package/dist/modules/workspaces/index.d.ts +1 -1
  236. package/dist/modules/workspaces/index.js +1 -1
  237. package/package.json +2 -2
  238. package/dist/chunk-MT2F54AC.js +0 -34
@@ -8,11 +8,11 @@
8
8
  items { ${I} }
9
9
  }
10
10
  }
11
- `,N=`
11
+ `,P=`
12
12
  query EventfullymanagedEvent($id: ID!) {
13
13
  eventfullyManagedEvent(id: $id) { ${I} }
14
14
  }
15
- `,P=`
15
+ `,N=`
16
16
  mutation EventfullymanagedCreateEvent($input: EventfullyManagedEventInput!) {
17
17
  eventfullyManagedCreateEvent(input: $input) { ${I} }
18
18
  }
@@ -46,14 +46,14 @@
46
46
  mutation EventfullymanagedUpdateVenue($id: ID!, $input: EventfullyManagedVenueInput!) {
47
47
  eventfullyManagedUpdateVenue(id: $id, input: $input) { ${k} }
48
48
  }
49
- `,G=`
49
+ `,W=`
50
50
  mutation EventfullymanagedDeleteVenue($id: ID!) {
51
51
  eventfullyManagedDeleteVenue(id: $id)
52
52
  }
53
53
  `,w=`
54
54
  id eventId name level logoUrl website contactName contactEmail contactPhone
55
55
  metrics metadata createdAt updatedAt workspaceId
56
- `,W=`
56
+ `,G=`
57
57
  query EventfullymanagedSponsors($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
58
58
  eventfullyManagedSponsors(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
59
59
  total
@@ -112,45 +112,45 @@
112
112
  mutation EventfullymanagedUpdateEventSession($id: ID!, $input: EventfullyManagedEventSessionInput!) {
113
113
  eventfullyManagedUpdateEventSession(id: $id, input: $input) { ${S} }
114
114
  }
115
- `,b=`
115
+ `,T=`
116
116
  id eventId name description price currency capacity soldCount isActive
117
117
  salesStartAt salesEndAt metadata createdAt updatedAt workspaceId
118
118
  `,et=`
119
119
  query EventfullymanagedTicketTypes($eventId: ID, $limit: Int, $offset: Int, $search: String, $workspaceId: ID) {
120
120
  eventfullyManagedTicketTypes(eventId: $eventId, limit: $limit, offset: $offset, search: $search, workspaceId: $workspaceId) {
121
121
  total
122
- items { ${b} }
122
+ items { ${T} }
123
123
  }
124
124
  }
125
125
  `,nt=`
126
126
  mutation EventfullymanagedCreateTicketType($input: EventfullyManagedTicketTypeInput!) {
127
- eventfullyManagedCreateTicketType(input: $input) { ${b} }
127
+ eventfullyManagedCreateTicketType(input: $input) { ${T} }
128
128
  }
129
129
  `,ot=`
130
130
  mutation EventfullymanagedUpdateTicketType($id: ID!, $input: EventfullyManagedTicketTypeInput!) {
131
- eventfullyManagedUpdateTicketType(id: $id, input: $input) { ${b} }
131
+ eventfullyManagedUpdateTicketType(id: $id, input: $input) { ${T} }
132
132
  }
133
133
  `,rt=`
134
134
  mutation EventfullymanagedDeleteTicketType($id: ID!) {
135
135
  eventfullyManagedDeleteTicketType(id: $id)
136
136
  }
137
- `,T=`
137
+ `,b=`
138
138
  id eventId attendeeId ticketTypeId quantity status totalAmount currency
139
139
  registeredAt checkedInAt metadata createdAt updatedAt workspaceId
140
140
  `,it=`
141
141
  query EventfullymanagedRegistrations($eventId: ID, $limit: Int, $offset: Int, $workspaceId: ID) {
142
142
  eventfullyManagedRegistrations(eventId: $eventId, limit: $limit, offset: $offset, workspaceId: $workspaceId) {
143
143
  total
144
- items { ${T} }
144
+ items { ${b} }
145
145
  }
146
146
  }
147
147
  `,at=`
148
148
  mutation EventfullymanagedCreateRegistration($input: EventfullyManagedRegistrationInput!) {
149
- eventfullyManagedCreateRegistration(input: $input) { ${T} }
149
+ eventfullyManagedCreateRegistration(input: $input) { ${b} }
150
150
  }
151
151
  `,st=`
152
152
  mutation EventfullymanagedUpdateRegistration($id: ID!, $input: EventfullyManagedRegistrationInput!) {
153
- eventfullyManagedUpdateRegistration(id: $id, input: $input) { ${T} }
153
+ eventfullyManagedUpdateRegistration(id: $id, input: $input) { ${b} }
154
154
  }
155
155
  `,A=`
156
156
  id fullName title organization bio email phone avatarUrl socialLinks
@@ -244,4 +244,4 @@
244
244
  latestEvents { id name status type startAt endAt }
245
245
  }
246
246
  }
247
- `;function l(t,n){try{return JSON.parse(n)}catch{throw new m(`--${t} must be valid JSON`)}}function d(t){let n=Number.parseInt(t,10);if(Number.isNaN(n))throw new m(`Expected an integer but got "${t}"`);return n}function St(t){return t.split(",").map(n=>n.trim()).filter(n=>n.length>0)}function bt(t){let n={name:t.name,type:t.type,timezone:t.timezone,startAt:t.startAt,endAt:t.endAt};return t.status&&(n.status=t.status),t.visibility&&(n.visibility=t.visibility),t.capacity!==void 0&&(n.capacity=t.capacity),t.description&&(n.description=t.description),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Tt(t){let n=t.command("events").description("Eventfullymanaged events");n.command("list").description("List events").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(L,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedEvents.items,{headers:["ID","Name","Type","Status","Start","End"],rows:r.eventfullyManagedEvents.items.map(o=>[p(o.id,12),o.name,o.type,o.status,E(o.startAt),E(o.endAt)])});}catch(r){a(r);}}),n.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(N,{id:e});if(!o.eventfullyManagedEvent)throw new m(`Event ${e} not found`);s(r,o.eventfullyManagedEvent);}catch(o){a(o);}}),n.command("create").description("Create an event").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type (e.g. conference, webinar)").requiredOption("--timezone <tz>","IANA timezone (e.g. Asia/Kolkata)").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility (e.g. public, private)").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(P,{input:bt(e)});c(`Event created: ${r.eventfullyManagedCreateEvent.name}`),s(e,r.eventfullyManagedCreateEvent);}catch(r){a(r);}}),n.command("update").description("Update an event (the subgraph input requires the core fields)").argument("<id>","Event ID").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type").requiredOption("--timezone <tz>","IANA timezone").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(q,{id:e,input:bt(r)});c("Event updated"),s(r,o.eventfullyManagedUpdateEvent);}catch(o){a(o);}}),n.command("remove").description("Delete an event").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(_,{id:e});c(o.eventfullyManagedDeleteEvent?"Event deleted":"Event not deleted"),s(r,{deleted:o.eventfullyManagedDeleteEvent});}catch(o){a(o);}});}function At(t){let n={name:t.name};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.capacity!==void 0&&(n.capacity=t.capacity),t.addressLine1&&(n.addressLine1=t.addressLine1),t.city&&(n.city=t.city),t.state&&(n.state=t.state),t.country&&(n.country=t.country),t.postalCode&&(n.postalCode=t.postalCode),t.amenities&&(n.amenities=St(t.amenities)),t.openingHours&&(n.openingHours=l("opening-hours",t.openingHours)),t.pricing&&(n.pricing=l("pricing",t.pricing)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Ot(t){let n=t.command("venues").description("Eventfullymanaged venues");n.command("list").description("List venues").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(U,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedVenues.items,{headers:["ID","Name","Status","City","Country","Capacity"],rows:r.eventfullyManagedVenues.items.map(o=>[p(o.id,12),o.name,o.status,o.city??"-",o.country??"-",o.capacity!=null?String(o.capacity):"-"])});}catch(r){a(r);}}),n.command("get").description("Get a venue by id").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(V,{id:e});if(!o.eventfullyManagedVenue)throw new m(`Venue ${e} not found`);s(r,o.eventfullyManagedVenue);}catch(o){a(o);}}),n.command("create").description("Create a venue").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(F,{input:At({...e,addressLine1:e.address})});c(`Venue created: ${r.eventfullyManagedCreateVenue.name}`),s(e,r.eventfullyManagedCreateVenue);}catch(r){a(r);}}),n.command("update").description("Update a venue").argument("<id>","Venue ID").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(j,{id:e,input:At({...r,addressLine1:r.address})});c("Venue updated"),s(r,o.eventfullyManagedUpdateVenue);}catch(o){a(o);}}),n.command("remove").description("Delete a venue").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(G,{id:e});c(o.eventfullyManagedDeleteVenue?"Venue deleted":"Venue not deleted"),s(r,{deleted:o.eventfullyManagedDeleteVenue});}catch(o){a(o);}});}function xt(t){let n={eventId:t.event,name:t.name,level:t.level};return t.logoUrl&&(n.logoUrl=t.logoUrl),t.website&&(n.website=t.website),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.contactPhone&&(n.contactPhone=t.contactPhone),t.metrics&&(n.metrics=l("metrics",t.metrics)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Dt(t){let n=t.command("sponsors").description("Eventfullymanaged sponsors");n.command("list").description("List sponsors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(W,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedSponsors.items,{headers:["ID","Name","Level","Event","Website"],rows:r.eventfullyManagedSponsors.items.map(o=>[p(o.id,12),o.name,o.level,p(o.eventId,12),o.website??"-"])});}catch(r){a(r);}}),n.command("get").description("Get a sponsor by id").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(J,{id:e});if(!o.eventfullyManagedSponsor)throw new m(`Sponsor ${e} not found`);s(r,o.eventfullyManagedSponsor);}catch(o){a(o);}}),n.command("create").description("Create a sponsor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level (e.g. gold, silver)").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(z,{input:xt(e)});c(`Sponsor created: ${r.eventfullyManagedCreateSponsor.name}`),s(e,r.eventfullyManagedCreateSponsor);}catch(r){a(r);}}),n.command("update").description("Update a sponsor").argument("<id>","Sponsor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(H,{id:e,input:xt(r)});c("Sponsor updated"),s(r,o.eventfullyManagedUpdateSponsor);}catch(o){a(o);}}),n.command("remove").description("Delete a sponsor").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(B,{id:e});c(o.eventfullyManagedDeleteSponsor?"Sponsor deleted":"Sponsor not deleted"),s(r,{deleted:o.eventfullyManagedDeleteSponsor});}catch(o){a(o);}});}function $t(t){let n={eventId:t.event,fullName:t.fullName,email:t.email};return t.phone&&(n.phone=t.phone),t.company&&(n.company=t.company),t.role&&(n.role=t.role),t.profile&&(n.profile=l("profile",t.profile)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Rt(t){let n=t.command("attendees").description("Eventfullymanaged attendees");n.command("list").description("List attendees").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(K,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedAttendees.items,{headers:["ID","Name","Email","Company","Role"],rows:r.eventfullyManagedAttendees.items.map(o=>[p(o.id,12),o.fullName,o.email,o.company??"-",o.role??"-"])});}catch(r){a(r);}}),n.command("create").description("Create an attendee").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(Y,{input:$t(e)});c(`Attendee created: ${r.eventfullyManagedCreateAttendee.fullName}`),s(e,r.eventfullyManagedCreateAttendee);}catch(r){a(r);}}),n.command("update").description("Update an attendee").argument("<id>","Attendee ID").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(Q,{id:e,input:$t(r)});c("Attendee updated"),s(r,o.eventfullyManagedUpdateAttendee);}catch(o){a(o);}});}function Mt(t){let n={eventId:t.event,title:t.title,sessionType:t.sessionType,startsAt:t.startsAt,endsAt:t.endsAt};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.track&&(n.track=t.track),t.capacity!==void 0&&(n.capacity=t.capacity),t.venue&&(n.venueId=t.venue),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Lt(t){let n=t.command("sessions").description("Eventfullymanaged event sessions");n.command("list").description("List event sessions").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(X,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedEventSessions.items,{headers:["ID","Title","Type","Status","Track","Starts"],rows:r.eventfullyManagedEventSessions.items.map(o=>[p(o.id,12),o.title,o.sessionType,o.status,o.track??"-",E(o.startsAt)])});}catch(r){a(r);}}),n.command("create").description("Create an event session").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type (e.g. talk, workshop)").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(Z,{input:Mt(e)});c(`Session created: ${r.eventfullyManagedCreateEventSession.title}`),s(e,r.eventfullyManagedCreateEventSession);}catch(r){a(r);}}),n.command("update").description("Update an event session").argument("<id>","Session ID").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(tt,{id:e,input:Mt(r)});c("Session updated"),s(r,o.eventfullyManagedUpdateEventSession);}catch(o){a(o);}});}function Nt(t){let n={eventId:t.event,name:t.name,price:t.price};return t.currency&&(n.currency=t.currency),t.description&&(n.description=t.description),t.capacity!==void 0&&(n.capacity=t.capacity),t.active!==void 0&&(n.isActive=t.active),t.salesStartAt&&(n.salesStartAt=t.salesStartAt),t.salesEndAt&&(n.salesEndAt=t.salesEndAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Pt(t){let n=t.command("tickets").description("Eventfullymanaged ticket types");n.command("list").description("List ticket types").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(et,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedTicketTypes.items,{headers:["ID","Name","Price","Currency","Active","Sold"],rows:r.eventfullyManagedTicketTypes.items.map(o=>[p(o.id,12),o.name,o.price,o.currency,o.isActive?"yes":"no",String(o.soldCount)])});}catch(r){a(r);}}),n.command("create").description("Create a ticket type").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(nt,{input:Nt(e)});c(`Ticket type created: ${r.eventfullyManagedCreateTicketType.name}`),s(e,r.eventfullyManagedCreateTicketType);}catch(r){a(r);}}),n.command("update").description("Update a ticket type").argument("<id>","Ticket type ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(ot,{id:e,input:Nt(r)});c("Ticket type updated"),s(r,o.eventfullyManagedUpdateTicketType);}catch(o){a(o);}}),n.command("remove").description("Delete a ticket type").argument("<id>","Ticket type ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(rt,{id:e});c(o.eventfullyManagedDeleteTicketType?"Ticket type deleted":"Ticket type not deleted"),s(r,{deleted:o.eventfullyManagedDeleteTicketType});}catch(o){a(o);}});}function qt(t){let n={eventId:t.event};return t.attendee&&(n.attendeeId=t.attendee),t.ticketType&&(n.ticketTypeId=t.ticketType),t.quantity!==void 0&&(n.quantity=t.quantity),t.status&&(n.status=t.status),t.totalAmount&&(n.totalAmount=t.totalAmount),t.currency&&(n.currency=t.currency),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function _t(t){let n=t.command("registrations").description("Eventfullymanaged registrations");n.command("list").description("List registrations").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(it,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedRegistrations.items,{headers:["ID","Event","Attendee","Status","Qty","Total"],rows:r.eventfullyManagedRegistrations.items.map(o=>[p(o.id,12),p(o.eventId,12),o.attendeeId?p(o.attendeeId,12):"-",o.status,String(o.quantity),o.totalAmount??"-"])});}catch(r){a(r);}}),n.command("create").description("Create a registration").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(at,{input:qt(e)});c(`Registration created: ${r.eventfullyManagedCreateRegistration.id}`),s(e,r.eventfullyManagedCreateRegistration);}catch(r){a(r);}}),n.command("update").description("Update a registration").argument("<id>","Registration ID").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(st,{id:e,input:qt(r)});c("Registration updated"),s(r,o.eventfullyManagedUpdateRegistration);}catch(o){a(o);}});}function Ut(t){let n={fullName:t.fullName};return t.title&&(n.title=t.title),t.organization&&(n.organization=t.organization),t.bio&&(n.bio=t.bio),t.email&&(n.email=t.email),t.phone&&(n.phone=t.phone),t.avatarUrl&&(n.avatarUrl=t.avatarUrl),t.socialLinks&&(n.socialLinks=l("social-links",t.socialLinks)),n}function Vt(t){let n=t.command("speakers").description("Eventfullymanaged speakers");n.command("list").description("List speakers").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(dt,{workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedSpeakers.items,{headers:["ID","Name","Title","Organization","Email"],rows:r.eventfullyManagedSpeakers.items.map(o=>[p(o.id,12),o.fullName,o.title??"-",o.organization??"-",o.email??"-"])});}catch(r){a(r);}}),n.command("create").description("Create a speaker").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(ct,{input:Ut(e)});c(`Speaker created: ${r.eventfullyManagedCreateSpeaker.fullName}`),s(e,r.eventfullyManagedCreateSpeaker);}catch(r){a(r);}}),n.command("update").description("Update a speaker").argument("<id>","Speaker ID").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(ut,{id:e,input:Ut(r)});c("Speaker updated"),s(r,o.eventfullyManagedUpdateSpeaker);}catch(o){a(o);}});}function Ft(t){let n={eventId:t.event,name:t.name};return t.boothCode&&(n.boothCode=t.boothCode),t.category&&(n.category=t.category),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.status&&(n.status=t.status),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function jt(t){let n=t.command("exhibitors").description("Eventfullymanaged exhibitors");n.command("list").description("List exhibitors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(pt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedExhibitors.items,{headers:["ID","Name","Status","Booth","Category"],rows:r.eventfullyManagedExhibitors.items.map(o=>[p(o.id,12),o.name,o.status,o.boothCode??"-",o.category??"-"])});}catch(r){a(r);}}),n.command("create").description("Create an exhibitor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(lt,{input:Ft(e)});c(`Exhibitor created: ${r.eventfullyManagedCreateExhibitor.name}`),s(e,r.eventfullyManagedCreateExhibitor);}catch(r){a(r);}}),n.command("update").description("Update an exhibitor").argument("<id>","Exhibitor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(mt,{id:e,input:Ft(r)});c("Exhibitor updated"),s(r,o.eventfullyManagedUpdateExhibitor);}catch(o){a(o);}}),n.command("remove").description("Delete an exhibitor").argument("<id>","Exhibitor ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(gt,{id:e});c(o.eventfullyManagedDeleteExhibitor?"Exhibitor deleted":"Exhibitor not deleted"),s(r,{deleted:o.eventfullyManagedDeleteExhibitor});}catch(o){a(o);}});}function Gt(t){let n={eventId:t.event,attendeeName:t.attendeeName,attendeeEmail:t.attendeeEmail};return t.exhibitor&&(n.exhibitorId=t.exhibitor),t.sponsor&&(n.sponsorId=t.sponsor),t.status&&(n.status=t.status),t.score!==void 0&&(n.score=t.score),t.notes&&(n.notes=t.notes),t.capturedAt&&(n.capturedAt=t.capturedAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Wt(t){let n=t.command("leads").description("Eventfullymanaged exhibitor leads");n.command("list").description("List leads").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(ft,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedLeads.items,{headers:["ID","Name","Email","Status","Score"],rows:r.eventfullyManagedLeads.items.map(o=>[p(o.id,12),o.attendeeName,o.attendeeEmail,o.status,o.score!=null?String(o.score):"-"])});}catch(r){a(r);}}),n.command("create").description("Create a lead").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(yt,{input:Gt(e)});c(`Lead created: ${r.eventfullyManagedCreateLead.attendeeName}`),s(e,r.eventfullyManagedCreateLead);}catch(r){a(r);}}),n.command("update").description("Update a lead").argument("<id>","Lead ID").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(vt,{id:e,input:Gt(r)});c("Lead updated"),s(r,o.eventfullyManagedUpdateLead);}catch(o){a(o);}}),n.command("remove").description("Delete a lead").argument("<id>","Lead ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(Et,{id:e});c(o.eventfullyManagedDeleteLead?"Lead deleted":"Lead not deleted"),s(r,{deleted:o.eventfullyManagedDeleteLead});}catch(o){a(o);}});}function Jt(t){let n={eventId:t.event,code:t.code,discountType:t.discountType,discountValue:t.discountValue};return t.description&&(n.description=t.description),t.maxUses!==void 0&&(n.maxUses=t.maxUses),t.active!==void 0&&(n.isActive=t.active),t.startsAt&&(n.startsAt=t.startsAt),t.endsAt&&(n.endsAt=t.endsAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function zt(t){let n=t.command("promo-codes").description("Eventfullymanaged promo codes");n.command("list").description("List promo codes").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(It,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedPromoCodes.items,{headers:["ID","Code","Type","Value","Active","Used"],rows:r.eventfullyManagedPromoCodes.items.map(o=>[p(o.id,12),o.code,o.discountType,o.discountValue,o.isActive?"yes":"no",String(o.usedCount)])});}catch(r){a(r);}}),n.command("create").description("Create a promo code").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type (e.g. percentage, fixed)").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(kt,{input:Jt(e)});c(`Promo code created: ${r.eventfullyManagedCreatePromoCode.code}`),s(e,r.eventfullyManagedCreatePromoCode);}catch(r){a(r);}}),n.command("update").description("Update a promo code").argument("<id>","Promo code ID").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(wt,{id:e,input:Jt(r)});c("Promo code updated"),s(r,o.eventfullyManagedUpdatePromoCode);}catch(o){a(o);}}),n.command("remove").description("Delete a promo code").argument("<id>","Promo code ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(ht,{id:e});c(o.eventfullyManagedDeletePromoCode?"Promo code deleted":"Promo code not deleted"),s(r,{deleted:o.eventfullyManagedDeletePromoCode});}catch(o){a(o);}});}function Ht(t){t.command("analytics").description("Eventfullymanaged analytics & dashboard").command("dashboard").description("Dashboard summary (event/attendee/registration/sponsor/venue counts + latest events)").option("--workspace <id>","Filter by workspace ID").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(Ct,{workspaceId:e.workspace});s(e,r.eventfullyManagedDashboardSummary);}catch(r){a(r);}});}var ae={id:"eventfullymanaged",version:"1.0.0",displayName:"Eventfullymanaged",dependsOn:["auth","workspaces"],register(t,n){M(n);let e=t.command("eventfullymanaged").description("Eventfullymanaged event-management platform");Tt(e),Ot(e),Dt(e),Rt(e),Lt(e),Pt(e),_t(e),Vt(e),jt(e),Wt(e),zt(e),Ht(e);}},fo=ae;module.exports=fo;
247
+ `;function l(t,n){try{return JSON.parse(n)}catch{throw new m(`--${t} must be valid JSON`)}}function d(t){let n=Number.parseInt(t,10);if(Number.isNaN(n))throw new m(`Expected an integer but got "${t}"`);return n}function St(t){return t.split(",").map(n=>n.trim()).filter(n=>n.length>0)}function Tt(t){let n={name:t.name,type:t.type,timezone:t.timezone,startAt:t.startAt,endAt:t.endAt};return t.status&&(n.status=t.status),t.visibility&&(n.visibility=t.visibility),t.capacity!==void 0&&(n.capacity=t.capacity),t.description&&(n.description=t.description),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function bt(t){let n=t.command("events").description("Eventfullymanaged events");n.command("list").description("List events").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(L,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedEvents.items,{headers:["ID","Name","Type","Status","Start","End"],rows:r.eventfullyManagedEvents.items.map(o=>[p(o.id,12),o.name,o.type,o.status,E(o.startAt),E(o.endAt)])});}catch(r){a(r);}}),n.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(P,{id:e});if(!o.eventfullyManagedEvent)throw new m(`Event ${e} not found`);s(r,o.eventfullyManagedEvent);}catch(o){a(o);}}),n.command("create").description("Create an event").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type (e.g. conference, webinar)").requiredOption("--timezone <tz>","IANA timezone (e.g. Asia/Kolkata)").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility (e.g. public, private)").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(N,{input:Tt(e)});c(`Event created: ${r.eventfullyManagedCreateEvent.name}`),s(e,r.eventfullyManagedCreateEvent);}catch(r){a(r);}}),n.command("update").description("Update an event (the subgraph input requires the core fields)").argument("<id>","Event ID").requiredOption("--name <name>","Event name").requiredOption("--type <t>","Event type").requiredOption("--timezone <tz>","IANA timezone").requiredOption("--start-at <iso>","Start (ISO datetime)").requiredOption("--end-at <iso>","End (ISO datetime)").option("--status <s>","Event status").option("--visibility <v>","Visibility").option("--capacity <n>","Capacity",d).option("--description <s>","Description").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(q,{id:e,input:Tt(r)});c("Event updated"),s(r,o.eventfullyManagedUpdateEvent);}catch(o){a(o);}}),n.command("remove").description("Delete an event").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(_,{id:e});c(o.eventfullyManagedDeleteEvent?"Event deleted":"Event not deleted"),s(r,{deleted:o.eventfullyManagedDeleteEvent});}catch(o){a(o);}});}function At(t){let n={name:t.name};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.capacity!==void 0&&(n.capacity=t.capacity),t.addressLine1&&(n.addressLine1=t.addressLine1),t.city&&(n.city=t.city),t.state&&(n.state=t.state),t.country&&(n.country=t.country),t.postalCode&&(n.postalCode=t.postalCode),t.amenities&&(n.amenities=St(t.amenities)),t.openingHours&&(n.openingHours=l("opening-hours",t.openingHours)),t.pricing&&(n.pricing=l("pricing",t.pricing)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Ot(t){let n=t.command("venues").description("Eventfullymanaged venues");n.command("list").description("List venues").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(U,{search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedVenues.items,{headers:["ID","Name","Status","City","Country","Capacity"],rows:r.eventfullyManagedVenues.items.map(o=>[p(o.id,12),o.name,o.status,o.city??"-",o.country??"-",o.capacity!=null?String(o.capacity):"-"])});}catch(r){a(r);}}),n.command("get").description("Get a venue by id").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(V,{id:e});if(!o.eventfullyManagedVenue)throw new m(`Venue ${e} not found`);s(r,o.eventfullyManagedVenue);}catch(o){a(o);}}),n.command("create").description("Create a venue").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(F,{input:At({...e,addressLine1:e.address})});c(`Venue created: ${r.eventfullyManagedCreateVenue.name}`),s(e,r.eventfullyManagedCreateVenue);}catch(r){a(r);}}),n.command("update").description("Update a venue").argument("<id>","Venue ID").requiredOption("--name <name>","Venue name").option("--description <s>","Description").option("--status <s>","Venue status").option("--capacity <n>","Capacity",d).option("--address <s>","Address line 1").option("--city <s>","City").option("--state <s>","State").option("--country <s>","Country").option("--postal-code <s>","Postal code").option("--amenities <csv>","Comma-separated amenities").option("--opening-hours <json>","Opening hours JSON").option("--pricing <json>","Pricing JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(j,{id:e,input:At({...r,addressLine1:r.address})});c("Venue updated"),s(r,o.eventfullyManagedUpdateVenue);}catch(o){a(o);}}),n.command("remove").description("Delete a venue").argument("<id>","Venue ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(W,{id:e});c(o.eventfullyManagedDeleteVenue?"Venue deleted":"Venue not deleted"),s(r,{deleted:o.eventfullyManagedDeleteVenue});}catch(o){a(o);}});}function xt(t){let n={eventId:t.event,name:t.name,level:t.level};return t.logoUrl&&(n.logoUrl=t.logoUrl),t.website&&(n.website=t.website),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.contactPhone&&(n.contactPhone=t.contactPhone),t.metrics&&(n.metrics=l("metrics",t.metrics)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Dt(t){let n=t.command("sponsors").description("Eventfullymanaged sponsors");n.command("list").description("List sponsors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(G,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedSponsors.items,{headers:["ID","Name","Level","Event","Website"],rows:r.eventfullyManagedSponsors.items.map(o=>[p(o.id,12),o.name,o.level,p(o.eventId,12),o.website??"-"])});}catch(r){a(r);}}),n.command("get").description("Get a sponsor by id").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(J,{id:e});if(!o.eventfullyManagedSponsor)throw new m(`Sponsor ${e} not found`);s(r,o.eventfullyManagedSponsor);}catch(o){a(o);}}),n.command("create").description("Create a sponsor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level (e.g. gold, silver)").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(z,{input:xt(e)});c(`Sponsor created: ${r.eventfullyManagedCreateSponsor.name}`),s(e,r.eventfullyManagedCreateSponsor);}catch(r){a(r);}}),n.command("update").description("Update a sponsor").argument("<id>","Sponsor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Sponsor name").requiredOption("--level <l>","Sponsorship level").option("--logo-url <url>","Logo URL").option("--website <url>","Website").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--contact-phone <s>","Contact phone").option("--metrics <json>","Metrics JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(H,{id:e,input:xt(r)});c("Sponsor updated"),s(r,o.eventfullyManagedUpdateSponsor);}catch(o){a(o);}}),n.command("remove").description("Delete a sponsor").argument("<id>","Sponsor ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(B,{id:e});c(o.eventfullyManagedDeleteSponsor?"Sponsor deleted":"Sponsor not deleted"),s(r,{deleted:o.eventfullyManagedDeleteSponsor});}catch(o){a(o);}});}function $t(t){let n={eventId:t.event,fullName:t.fullName,email:t.email};return t.phone&&(n.phone=t.phone),t.company&&(n.company=t.company),t.role&&(n.role=t.role),t.profile&&(n.profile=l("profile",t.profile)),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Rt(t){let n=t.command("attendees").description("Eventfullymanaged attendees");n.command("list").description("List attendees").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(K,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedAttendees.items,{headers:["ID","Name","Email","Company","Role"],rows:r.eventfullyManagedAttendees.items.map(o=>[p(o.id,12),o.fullName,o.email,o.company??"-",o.role??"-"])});}catch(r){a(r);}}),n.command("create").description("Create an attendee").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(Y,{input:$t(e)});c(`Attendee created: ${r.eventfullyManagedCreateAttendee.fullName}`),s(e,r.eventfullyManagedCreateAttendee);}catch(r){a(r);}}),n.command("update").description("Update an attendee").argument("<id>","Attendee ID").requiredOption("--event <id>","Event ID").requiredOption("--full-name <name>","Full name").requiredOption("--email <email>","Email").option("--phone <s>","Phone").option("--company <s>","Company").option("--role <s>","Role").option("--profile <json>","Profile JSON").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(Q,{id:e,input:$t(r)});c("Attendee updated"),s(r,o.eventfullyManagedUpdateAttendee);}catch(o){a(o);}});}function Mt(t){let n={eventId:t.event,title:t.title,sessionType:t.sessionType,startsAt:t.startsAt,endsAt:t.endsAt};return t.description&&(n.description=t.description),t.status&&(n.status=t.status),t.track&&(n.track=t.track),t.capacity!==void 0&&(n.capacity=t.capacity),t.venue&&(n.venueId=t.venue),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Lt(t){let n=t.command("sessions").description("Eventfullymanaged event sessions");n.command("list").description("List event sessions").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(X,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedEventSessions.items,{headers:["ID","Title","Type","Status","Track","Starts"],rows:r.eventfullyManagedEventSessions.items.map(o=>[p(o.id,12),o.title,o.sessionType,o.status,o.track??"-",E(o.startsAt)])});}catch(r){a(r);}}),n.command("create").description("Create an event session").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type (e.g. talk, workshop)").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(Z,{input:Mt(e)});c(`Session created: ${r.eventfullyManagedCreateEventSession.title}`),s(e,r.eventfullyManagedCreateEventSession);}catch(r){a(r);}}),n.command("update").description("Update an event session").argument("<id>","Session ID").requiredOption("--event <id>","Event ID").requiredOption("--title <title>","Session title").requiredOption("--session-type <t>","Session type").requiredOption("--starts-at <iso>","Start (ISO datetime)").requiredOption("--ends-at <iso>","End (ISO datetime)").option("--description <s>","Description").option("--status <s>","Status").option("--track <s>","Track").option("--capacity <n>","Capacity",d).option("--venue <id>","Venue ID").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(tt,{id:e,input:Mt(r)});c("Session updated"),s(r,o.eventfullyManagedUpdateEventSession);}catch(o){a(o);}});}function Pt(t){let n={eventId:t.event,name:t.name,price:t.price};return t.currency&&(n.currency=t.currency),t.description&&(n.description=t.description),t.capacity!==void 0&&(n.capacity=t.capacity),t.active!==void 0&&(n.isActive=t.active),t.salesStartAt&&(n.salesStartAt=t.salesStartAt),t.salesEndAt&&(n.salesEndAt=t.salesEndAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Nt(t){let n=t.command("tickets").description("Eventfullymanaged ticket types");n.command("list").description("List ticket types").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(et,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedTicketTypes.items,{headers:["ID","Name","Price","Currency","Active","Sold"],rows:r.eventfullyManagedTicketTypes.items.map(o=>[p(o.id,12),o.name,o.price,o.currency,o.isActive?"yes":"no",String(o.soldCount)])});}catch(r){a(r);}}),n.command("create").description("Create a ticket type").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(nt,{input:Pt(e)});c(`Ticket type created: ${r.eventfullyManagedCreateTicketType.name}`),s(e,r.eventfullyManagedCreateTicketType);}catch(r){a(r);}}),n.command("update").description("Update a ticket type").argument("<id>","Ticket type ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Ticket type name").requiredOption("--price <amount>","Price (decimal string)").option("--currency <c>","Currency code").option("--description <s>","Description").option("--capacity <n>","Capacity",d).option("--active <bool>","true|false",e=>e==="true").option("--sales-start-at <iso>","Sales start (ISO datetime)").option("--sales-end-at <iso>","Sales end (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(ot,{id:e,input:Pt(r)});c("Ticket type updated"),s(r,o.eventfullyManagedUpdateTicketType);}catch(o){a(o);}}),n.command("remove").description("Delete a ticket type").argument("<id>","Ticket type ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(rt,{id:e});c(o.eventfullyManagedDeleteTicketType?"Ticket type deleted":"Ticket type not deleted"),s(r,{deleted:o.eventfullyManagedDeleteTicketType});}catch(o){a(o);}});}function qt(t){let n={eventId:t.event};return t.attendee&&(n.attendeeId=t.attendee),t.ticketType&&(n.ticketTypeId=t.ticketType),t.quantity!==void 0&&(n.quantity=t.quantity),t.status&&(n.status=t.status),t.totalAmount&&(n.totalAmount=t.totalAmount),t.currency&&(n.currency=t.currency),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function _t(t){let n=t.command("registrations").description("Eventfullymanaged registrations");n.command("list").description("List registrations").option("--event <id>","Filter by event ID").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(it,{eventId:e.event,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedRegistrations.items,{headers:["ID","Event","Attendee","Status","Qty","Total"],rows:r.eventfullyManagedRegistrations.items.map(o=>[p(o.id,12),p(o.eventId,12),o.attendeeId?p(o.attendeeId,12):"-",o.status,String(o.quantity),o.totalAmount??"-"])});}catch(r){a(r);}}),n.command("create").description("Create a registration").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(at,{input:qt(e)});c(`Registration created: ${r.eventfullyManagedCreateRegistration.id}`),s(e,r.eventfullyManagedCreateRegistration);}catch(r){a(r);}}),n.command("update").description("Update a registration").argument("<id>","Registration ID").requiredOption("--event <id>","Event ID").option("--attendee <id>","Attendee ID").option("--ticket-type <id>","Ticket type ID").option("--quantity <n>","Quantity",d).option("--status <s>","Status").option("--total-amount <amount>","Total amount (decimal string)").option("--currency <c>","Currency code").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(st,{id:e,input:qt(r)});c("Registration updated"),s(r,o.eventfullyManagedUpdateRegistration);}catch(o){a(o);}});}function Ut(t){let n={fullName:t.fullName};return t.title&&(n.title=t.title),t.organization&&(n.organization=t.organization),t.bio&&(n.bio=t.bio),t.email&&(n.email=t.email),t.phone&&(n.phone=t.phone),t.avatarUrl&&(n.avatarUrl=t.avatarUrl),t.socialLinks&&(n.socialLinks=l("social-links",t.socialLinks)),n}function Vt(t){let n=t.command("speakers").description("Eventfullymanaged speakers");n.command("list").description("List speakers").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,100).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(dt,{workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedSpeakers.items,{headers:["ID","Name","Title","Organization","Email"],rows:r.eventfullyManagedSpeakers.items.map(o=>[p(o.id,12),o.fullName,o.title??"-",o.organization??"-",o.email??"-"])});}catch(r){a(r);}}),n.command("create").description("Create a speaker").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(ct,{input:Ut(e)});c(`Speaker created: ${r.eventfullyManagedCreateSpeaker.fullName}`),s(e,r.eventfullyManagedCreateSpeaker);}catch(r){a(r);}}),n.command("update").description("Update a speaker").argument("<id>","Speaker ID").requiredOption("--full-name <name>","Full name").option("--title <s>","Title").option("--organization <s>","Organization").option("--bio <s>","Bio").option("--email <s>","Email").option("--phone <s>","Phone").option("--avatar-url <url>","Avatar URL").option("--social-links <json>","Social links JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(ut,{id:e,input:Ut(r)});c("Speaker updated"),s(r,o.eventfullyManagedUpdateSpeaker);}catch(o){a(o);}});}function Ft(t){let n={eventId:t.event,name:t.name};return t.boothCode&&(n.boothCode=t.boothCode),t.category&&(n.category=t.category),t.contactName&&(n.contactName=t.contactName),t.contactEmail&&(n.contactEmail=t.contactEmail),t.status&&(n.status=t.status),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function jt(t){let n=t.command("exhibitors").description("Eventfullymanaged exhibitors");n.command("list").description("List exhibitors").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(pt,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedExhibitors.items,{headers:["ID","Name","Status","Booth","Category"],rows:r.eventfullyManagedExhibitors.items.map(o=>[p(o.id,12),o.name,o.status,o.boothCode??"-",o.category??"-"])});}catch(r){a(r);}}),n.command("create").description("Create an exhibitor").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(lt,{input:Ft(e)});c(`Exhibitor created: ${r.eventfullyManagedCreateExhibitor.name}`),s(e,r.eventfullyManagedCreateExhibitor);}catch(r){a(r);}}),n.command("update").description("Update an exhibitor").argument("<id>","Exhibitor ID").requiredOption("--event <id>","Event ID").requiredOption("--name <name>","Exhibitor name").option("--booth-code <s>","Booth code").option("--category <s>","Category").option("--contact-name <s>","Contact name").option("--contact-email <s>","Contact email").option("--status <s>","Status").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(mt,{id:e,input:Ft(r)});c("Exhibitor updated"),s(r,o.eventfullyManagedUpdateExhibitor);}catch(o){a(o);}}),n.command("remove").description("Delete an exhibitor").argument("<id>","Exhibitor ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(gt,{id:e});c(o.eventfullyManagedDeleteExhibitor?"Exhibitor deleted":"Exhibitor not deleted"),s(r,{deleted:o.eventfullyManagedDeleteExhibitor});}catch(o){a(o);}});}function Wt(t){let n={eventId:t.event,attendeeName:t.attendeeName,attendeeEmail:t.attendeeEmail};return t.exhibitor&&(n.exhibitorId=t.exhibitor),t.sponsor&&(n.sponsorId=t.sponsor),t.status&&(n.status=t.status),t.score!==void 0&&(n.score=t.score),t.notes&&(n.notes=t.notes),t.capturedAt&&(n.capturedAt=t.capturedAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function Gt(t){let n=t.command("leads").description("Eventfullymanaged exhibitor leads");n.command("list").description("List leads").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(ft,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedLeads.items,{headers:["ID","Name","Email","Status","Score"],rows:r.eventfullyManagedLeads.items.map(o=>[p(o.id,12),o.attendeeName,o.attendeeEmail,o.status,o.score!=null?String(o.score):"-"])});}catch(r){a(r);}}),n.command("create").description("Create a lead").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(yt,{input:Wt(e)});c(`Lead created: ${r.eventfullyManagedCreateLead.attendeeName}`),s(e,r.eventfullyManagedCreateLead);}catch(r){a(r);}}),n.command("update").description("Update a lead").argument("<id>","Lead ID").requiredOption("--event <id>","Event ID").requiredOption("--attendee-name <name>","Attendee name").requiredOption("--attendee-email <email>","Attendee email").option("--exhibitor <id>","Exhibitor ID").option("--sponsor <id>","Sponsor ID").option("--status <s>","Status").option("--score <n>","Score",d).option("--notes <s>","Notes").option("--captured-at <iso>","Captured at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(vt,{id:e,input:Wt(r)});c("Lead updated"),s(r,o.eventfullyManagedUpdateLead);}catch(o){a(o);}}),n.command("remove").description("Delete a lead").argument("<id>","Lead ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(Et,{id:e});c(o.eventfullyManagedDeleteLead?"Lead deleted":"Lead not deleted"),s(r,{deleted:o.eventfullyManagedDeleteLead});}catch(o){a(o);}});}function Jt(t){let n={eventId:t.event,code:t.code,discountType:t.discountType,discountValue:t.discountValue};return t.description&&(n.description=t.description),t.maxUses!==void 0&&(n.maxUses=t.maxUses),t.active!==void 0&&(n.isActive=t.active),t.startsAt&&(n.startsAt=t.startsAt),t.endsAt&&(n.endsAt=t.endsAt),t.metadata&&(n.metadata=l("metadata",t.metadata)),n}function zt(t){let n=t.command("promo-codes").description("Eventfullymanaged promo codes");n.command("list").description("List promo codes").option("--event <id>","Filter by event ID").option("--search <q>","Free-text search").option("--workspace <id>","Filter by workspace ID").option("--limit <n>","Page size",d,50).option("--offset <n>","Offset",d,0).option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(It,{eventId:e.event,search:e.search,workspaceId:e.workspace,limit:e.limit,offset:e.offset});s(e,r.eventfullyManagedPromoCodes.items,{headers:["ID","Code","Type","Value","Active","Used"],rows:r.eventfullyManagedPromoCodes.items.map(o=>[p(o.id,12),o.code,o.discountType,o.discountValue,o.isActive?"yes":"no",String(o.usedCount)])});}catch(r){a(r);}}),n.command("create").description("Create a promo code").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type (e.g. percentage, fixed)").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(kt,{input:Jt(e)});c(`Promo code created: ${r.eventfullyManagedCreatePromoCode.code}`),s(e,r.eventfullyManagedCreatePromoCode);}catch(r){a(r);}}),n.command("update").description("Update a promo code").argument("<id>","Promo code ID").requiredOption("--event <id>","Event ID").requiredOption("--code <code>","Promo code").requiredOption("--discount-type <t>","Discount type").requiredOption("--discount-value <v>","Discount value (string)").option("--description <s>","Description").option("--max-uses <n>","Max uses",d).option("--active <bool>","true|false",e=>e==="true").option("--starts-at <iso>","Starts at (ISO datetime)").option("--ends-at <iso>","Ends at (ISO datetime)").option("--metadata <json>","Metadata JSON").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(wt,{id:e,input:Jt(r)});c("Promo code updated"),s(r,o.eventfullyManagedUpdatePromoCode);}catch(o){a(o);}}),n.command("remove").description("Delete a promo code").argument("<id>","Promo code ID").option("-f, --format <format>","Output format").action(async(e,r)=>{try{let o=await i(ht,{id:e});c(o.eventfullyManagedDeletePromoCode?"Promo code deleted":"Promo code not deleted"),s(r,{deleted:o.eventfullyManagedDeletePromoCode});}catch(o){a(o);}});}function Ht(t){t.command("analytics").description("Eventfullymanaged analytics & dashboard").command("dashboard").description("Dashboard summary (event/attendee/registration/sponsor/venue counts + latest events)").option("--workspace <id>","Filter by workspace ID").option("-f, --format <format>","Output format").action(async e=>{try{let r=await i(Ct,{workspaceId:e.workspace});s(e,r.eventfullyManagedDashboardSummary);}catch(r){a(r);}});}var ae={id:"eventfullymanaged",version:"1.0.0",displayName:"Eventfullymanaged",dependsOn:["auth","workspaces"],register(t,n){M(n);let e=t.command("eventfullymanaged").description("Eventfullymanaged event-management platform");bt(e),Ot(e),Dt(e),Rt(e),Lt(e),Nt(e),_t(e),Vt(e),jt(e),Gt(e),zt(e),Ht(e);}},fo=ae;module.exports=fo;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-CLaW1ycq.cjs';
1
+ import { C as CliModule } from '../../module-BNVKV_pI.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-CLaW1ycq.js';
1
+ import { C as CliModule } from '../../module-BNVKV_pI.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,i,r,q as q$1,h as h$1,k as k$1}from'../../chunk-WTNQ5PEC.js';import {q as q$2}from'../../chunk-MT2F54AC.js';var v=`
1
+ import {a,b as b$1,i,r,q as q$1,h as h$1,k as k$1}from'../../chunk-3ZVMC2AF.js';import {q as q$2}from'../../chunk-ZT6KOG7N.js';var v=`
2
2
  id name description type status visibility timezone startAt endAt capacity
3
3
  metadata createdAt updatedAt workspaceId
4
4
  `,$=`
@@ -1,4 +1,4 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var promises=require('fs/promises');var s=class extends Error{exitCode;hint;constructor(r,a){super(r),this.name="CliUserError",this.exitCode=a?.exitCode??1,this.hint=a?.hint;}},E=class extends s{constructor(r,a){super(r,{exitCode:2,hint:a?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},x=class extends Error{cause;constructor(r,a){super(r),this.name="CliInternalError",this.cause=a;}};var w=null;function k(o){w=o;}function g(){if(!w)throw new x("vibecontrols module helpers used before setHelpersContext was called");return w}function tt(){let o=g();if(!o.auth.isAuthenticated())throw new E("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function c(o,r){return tt(),g().gql.workspace.request(o,r)}function u(o){let r=o instanceof Error?o.message:String(o);throw new s(r)}function f(o,r,a){g().output.formatAndOutput(o,r,a);}function m(o){g().output.printSuccess(o);}function I(o){g().output.printInfo(o);}function A(o){return g().output.formatStatus(o)}function v(o){return g().output.formatDate(o)}function O(o,r){return g().output.truncate(o,r)}function $(){return g()}var R=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var promises=require('fs/promises');var s=class extends Error{exitCode;hint;constructor(r,a){super(r),this.name="CliUserError",this.exitCode=a?.exitCode??1,this.hint=a?.hint;}},E=class extends s{constructor(r,a){super(r,{exitCode:2,hint:a?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},x=class extends Error{cause;constructor(r,a){super(r),this.name="CliInternalError",this.cause=a;}};var y=null;function k(o){y=o;}function g(){if(!y)throw new x("vibecontrols module helpers used before setHelpersContext was called");return y}function ee(){let o=g();if(!o.auth.isAuthenticated())throw new E("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function c(o,r){return ee(),g().gql.workspace.request(o,r)}function p(o){let r=o instanceof Error?o.message:String(o);throw new s(r)}function f(o,r,a){g().output.formatAndOutput(o,r,a);}function m(o){g().output.printSuccess(o);}function I(o){g().output.printInfo(o);}function A(o){return g().output.formatStatus(o)}function O(o){return g().output.formatDate(o)}function v(o,r){return g().output.truncate(o,r)}function $(){return g()}var R=`
2
2
  query ListExportJobs($context: ContextInput!, $filter: ExportJobFilterInput, $pagination: ExportPaginationInput) {
3
3
  listExportJobs(context: $context, filter: $filter, pagination: $pagination) {
4
4
  edges { node {
@@ -34,17 +34,17 @@
34
34
  id name entityTypes format
35
35
  }
36
36
  }
37
- `,_=`
37
+ `,q=`
38
38
  mutation CancelExportJob($context: ContextInput, $id: ID!) {
39
39
  cancelExportJob(context: $context, id: $id) {
40
40
  id status progress
41
41
  }
42
42
  }
43
- `,L=`
43
+ `,_=`
44
44
  mutation DeleteExportJob($context: ContextInput, $id: ID!) {
45
45
  deleteExportJob(context: $context, id: $id)
46
46
  }
47
- `,q=`
47
+ `,L=`
48
48
  mutation RetryExportJob($context: ContextInput, $id: ID!) {
49
49
  retryExportJob(context: $context, id: $id) {
50
50
  id status progress
@@ -92,4 +92,4 @@
92
92
  downloadUrl downloadExpiresAt
93
93
  }
94
94
  }
95
- `;function d(){let o=$().auth.read();if(!o?.workspaceId)throw new s("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:o.workspaceId}}function F(o){let r=o.command("export").description("Workspace data export jobs"),a=r.command("jobs").description("Export job lifecycle");a.command("list").description("List export jobs").option("--status <s>").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.status&&(e.status=t.status.toUpperCase());let i=(await c(R,{context:d(),filter:Object.keys(e).length?e:void 0,pagination:{first:t.limit}})).listExportJobs.edges.map(l=>l.node);f(t,i,{headers:["ID","Name","Status","Progress","Started"],rows:i.map(l=>[O(l.id,12),l.name??"-",A(l.status),`${l.processedEntities??0}/${l.totalEntities??"-"}`,v(l.startedAt)])});}catch(e){u(e);}}),a.command("get").description("Get an export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(b,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);f(e,n.getExportJob);}catch(n){u(n);}}),a.command("create").description("Create an export job").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV|ZIP","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("--from <iso>","Date range start").option("--to <iso>","Date range end").option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1,dateRangeStart:t.from,dateRangeEnd:t.to},n=await c(S,{context:d(),input:e});m(`Export job created: ${n.createExportJob.id}`),f({format:t.formatOutput},n.createExportJob);}catch(e){u(e);}}),a.command("cancel").description("Cancel a running export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(_,{context:d(),id:t});m(`Export job cancelled: ${n.cancelExportJob.id}`),f(e,n.cancelExportJob);}catch(n){u(n);}}),a.command("delete").description("Delete an export job").argument("<id>").action(async t=>{try{if(!(await c(L,{context:d(),id:t})).deleteExportJob)throw new s(`Failed to delete export job ${t}`);m(`Export job deleted: ${t}`);}catch(e){u(e);}}),a.command("retry").description("Retry a failed export job").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(q,{context:d(),id:t});m(`Export job retry queued: ${n.retryExportJob.id}`),f(e,n.retryExportJob);}catch(n){u(n);}}),r.command("entities").description("List entity types available for export").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let n=(await c(G,{context:d(),pagination:{first:t.limit}})).getAvailableExportEntities.edges.map(i=>i.node);f(t,n,{headers:["Type","Display","Enabled","DateRange","Media","Size"],rows:n.map(i=>[i.entityType,i.displayName,i.enabled?"yes":"no",i.supportsDateRange?"yes":"no",i.supportsMediaExport?"yes":"no",i.estimatedSize??"-"])});}catch(e){u(e);}}),r.command("part").description("Get an export part by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(j,{context:d(),id:t});if(!n.getExportPart)throw new s(`Export part ${t} not found`);f(e,n.getExportPart);}catch(n){u(n);}}),r.command("download").description("Download a completed export job to a local path").argument("<jobId>").requiredOption("--to <path>","Local file path to write").action(async(t,e)=>{try{let n=await c(b,{context:d(),id:t});if(!n.getExportJob)throw new s(`Export job ${t} not found`);let i=n.getExportJob.downloadUrl;if(!i)throw new s(`Job ${t} has no downloadUrl yet (status=${n.getExportJob.status??"UNKNOWN"}).`);I(`Downloading from ${i}`);let l=await fetch(i);if(!l.ok)throw new s(`Download failed: ${l.status} ${l.statusText}`);let h=Buffer.from(await l.arrayBuffer());await promises.writeFile(e.to,h),m(`Saved ${h.length} bytes to ${e.to}`);}catch(n){u(n);}});let y=r.command("templates").description("Export templates");y.command("list").description("List export templates").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e=await c(P,{context:d(),pagination:{first:t.limit}});f(t,e.listExportTemplates.edges.map(n=>n.node));}catch(e){u(e);}}),y.command("get").description("Get an export template").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await c(D,{context:d(),id:t});if(!n.getExportTemplate)throw new s(`Template ${t} not found`);f(e,n.getExportTemplate);}catch(n){u(n);}}),y.command("create").description("Create an export template").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--description <s>").option("--format <fmt>","JSON|CSV","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("-f, --format-output <format>").action(async t=>{try{let e={name:t.name,entityTypes:t.types.split(","),format:(t.format??"JSON").toUpperCase(),includeMedia:!!t.includeMedia,includeMetadata:t.includeMetadata!==!1};t.description&&(e.description=t.description);let n=await c(N,{context:d(),input:e});m(`Template created: ${n.createExportTemplate.id}`),f({format:t.formatOutput},n.createExportTemplate);}catch(e){u(e);}}),y.command("update").description("Update an export template").argument("<id>").option("--name <s>").option("--description <s>").option("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV").option("--include-media <bool>","true|false").option("--include-metadata <bool>","true|false").option("--default <bool>","Set isDefault: true|false").option("-f, --format-output <format>").action(async(t,e)=>{try{let n={};e.name&&(n.name=e.name),e.description&&(n.description=e.description),e.types&&(n.entityTypes=e.types.split(",")),e.format&&(n.format=e.format.toUpperCase()),e.includeMedia!==void 0&&(n.includeMedia=e.includeMedia==="true"),e.includeMetadata!==void 0&&(n.includeMetadata=e.includeMetadata==="true"),e.default!==void 0&&(n.isDefault=e.default==="true");let i=await c(M,{context:d(),id:t,input:n});m(`Template updated: ${i.updateExportTemplate.id}`),f({format:e.formatOutput},i.updateExportTemplate);}catch(n){u(n);}}),y.command("delete").description("Delete an export template").argument("<id>").action(async t=>{try{if(!(await c(J,{context:d(),id:t})).deleteExportTemplate)throw new s(`Failed to delete template ${t}`);m(`Template deleted: ${t}`);}catch(e){u(e);}});}var ot={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth","workspaces"],register(o,r){k(r),F(o);}},xe=ot;module.exports=xe;
95
+ `;function d(){let o=$().auth.read();if(!o?.workspaceId)throw new s("No workspace set. Run: vibecontrols workspace set <id>");return {workspaceId:o.workspaceId}}function W(o){let r=o.command("export").description("Workspace data export jobs"),a=r.command("jobs").description("Export job lifecycle");a.command("list").description("List export jobs").option("--status <s>").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let t={};e.status&&(t.status=e.status.toUpperCase());let i=(await c(R,{context:d(),filter:Object.keys(t).length?t:void 0,pagination:{first:e.limit}})).listExportJobs.edges.map(l=>l.node);f(e,i,{headers:["ID","Name","Status","Progress","Started"],rows:i.map(l=>[v(l.id,12),l.name??"-",A(l.status),`${l.processedEntities??0}/${l.totalEntities??"-"}`,O(l.startedAt)])});}catch(t){p(t);}}),a.command("get").description("Get an export job").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await c(b,{context:d(),id:e});if(!n.getExportJob)throw new s(`Export job ${e} not found`);f(t,n.getExportJob);}catch(n){p(n);}}),a.command("create").description("Create an export job").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV|ZIP","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("--from <iso>","Date range start").option("--to <iso>","Date range end").option("-f, --format-output <format>").action(async e=>{try{let t={name:e.name,entityTypes:e.types.split(","),format:(e.format??"JSON").toUpperCase(),includeMedia:!!e.includeMedia,includeMetadata:e.includeMetadata!==!1,dateRangeStart:e.from,dateRangeEnd:e.to},n=await c(S,{context:d(),input:t});m(`Export job created: ${n.createExportJob.id}`),f({format:e.formatOutput},n.createExportJob);}catch(t){p(t);}}),a.command("cancel").description("Cancel a running export job").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await c(q,{context:d(),id:e});m(`Export job cancelled: ${n.cancelExportJob.id}`),f(t,n.cancelExportJob);}catch(n){p(n);}}),a.command("delete").description("Delete an export job").argument("<id>").action(async e=>{try{if(!(await c(_,{context:d(),id:e})).deleteExportJob)throw new s(`Failed to delete export job ${e}`);m(`Export job deleted: ${e}`);}catch(t){p(t);}}),a.command("retry").description("Retry a failed export job").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await c(L,{context:d(),id:e});m(`Export job retry queued: ${n.retryExportJob.id}`),f(t,n.retryExportJob);}catch(n){p(n);}}),r.command("entities").description("List entity types available for export").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let n=(await c(G,{context:d(),pagination:{first:e.limit}})).getAvailableExportEntities.edges.map(i=>i.node);f(e,n,{headers:["Type","Display","Enabled","DateRange","Media","Size"],rows:n.map(i=>[i.entityType,i.displayName,i.enabled?"yes":"no",i.supportsDateRange?"yes":"no",i.supportsMediaExport?"yes":"no",i.estimatedSize??"-"])});}catch(t){p(t);}}),r.command("part").description("Get an export part by id").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await c(j,{context:d(),id:e});if(!n.getExportPart)throw new s(`Export part ${e} not found`);f(t,n.getExportPart);}catch(n){p(n);}}),r.command("download").description("Download a completed export job to a local path").argument("<jobId>").requiredOption("--to <path>","Local file path to write").action(async(e,t)=>{try{let n=await c(b,{context:d(),id:e});if(!n.getExportJob)throw new s(`Export job ${e} not found`);let i=n.getExportJob.downloadUrl;if(!i)throw new s(`Job ${e} has no downloadUrl yet (status=${n.getExportJob.status??"UNKNOWN"}).`);I(`Downloading from ${i}`);let l=await fetch(i);if(!l.ok)throw new s(`Download failed: ${l.status} ${l.statusText}`);let h=Buffer.from(await l.arrayBuffer());await promises.writeFile(t.to,h),m(`Saved ${h.length} bytes to ${t.to}`);}catch(n){p(n);}});let w=r.command("templates").description("Export templates");w.command("list").description("List export templates").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let t=await c(P,{context:d(),pagination:{first:e.limit}});f(e,t.listExportTemplates.edges.map(n=>n.node));}catch(t){p(t);}}),w.command("get").description("Get an export template").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await c(D,{context:d(),id:e});if(!n.getExportTemplate)throw new s(`Template ${e} not found`);f(t,n.getExportTemplate);}catch(n){p(n);}}),w.command("create").description("Create an export template").requiredOption("--name <s>").requiredOption("--types <t>","Comma-separated entity types").option("--description <s>").option("--format <fmt>","JSON|CSV","JSON").option("--include-media","Include media files",false).option("--include-metadata","Include metadata",true).option("-f, --format-output <format>").action(async e=>{try{let t={name:e.name,entityTypes:e.types.split(","),format:(e.format??"JSON").toUpperCase(),includeMedia:!!e.includeMedia,includeMetadata:e.includeMetadata!==!1};e.description&&(t.description=e.description);let n=await c(N,{context:d(),input:t});m(`Template created: ${n.createExportTemplate.id}`),f({format:e.formatOutput},n.createExportTemplate);}catch(t){p(t);}}),w.command("update").description("Update an export template").argument("<id>").option("--name <s>").option("--description <s>").option("--types <t>","Comma-separated entity types").option("--format <fmt>","JSON|CSV").option("--include-media <bool>","true|false").option("--include-metadata <bool>","true|false").option("--default <bool>","Set isDefault: true|false").option("-f, --format-output <format>").action(async(e,t)=>{try{let n={};t.name&&(n.name=t.name),t.description&&(n.description=t.description),t.types&&(n.entityTypes=t.types.split(",")),t.format&&(n.format=t.format.toUpperCase()),t.includeMedia!==void 0&&(n.includeMedia=t.includeMedia==="true"),t.includeMetadata!==void 0&&(n.includeMetadata=t.includeMetadata==="true"),t.default!==void 0&&(n.isDefault=t.default==="true");let i=await c(M,{context:d(),id:e,input:n});m(`Template updated: ${i.updateExportTemplate.id}`),f({format:t.formatOutput},i.updateExportTemplate);}catch(n){p(n);}}),w.command("delete").description("Delete an export template").argument("<id>").action(async e=>{try{if(!(await c(J,{context:d(),id:e})).deleteExportTemplate)throw new s(`Failed to delete template ${e}`);m(`Template deleted: ${e}`);}catch(t){p(t);}});}var oe={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth","workspaces"],register(o,r){k(r),W(o);}},xt=oe;module.exports=xt;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-CLaW1ycq.cjs';
1
+ import { C as CliModule } from '../../module-BNVKV_pI.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-CLaW1ycq.js';
1
+ import { C as CliModule } from '../../module-BNVKV_pI.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b,i as i$1,r,p,q,h as h$1,k,m,u}from'../../chunk-WTNQ5PEC.js';import {q as q$1}from'../../chunk-MT2F54AC.js';import {writeFile}from'fs/promises';var J=`
1
+ import {a,b,i as i$1,r,p,q,h as h$1,k,m,u}from'../../chunk-3ZVMC2AF.js';import {q as q$1}from'../../chunk-ZT6KOG7N.js';import {writeFile}from'fs/promises';var J=`
2
2
  query ListExportJobs($context: ContextInput!, $filter: ExportJobFilterInput, $pagination: ExportPaginationInput) {
3
3
  listExportJobs(context: $context, filter: $filter, pagination: $pagination) {
4
4
  edges { node {
@@ -24,27 +24,27 @@
24
24
  multipartUploadId
25
25
  }
26
26
  }
27
- `,S=`
27
+ `,R=`
28
28
  mutation CompleteUpload($input: CompleteUploadInput!) {
29
29
  completeUpload(input: $input) {
30
30
  file { id name size s3Bucket s3Key downloadUrl }
31
31
  fileId
32
32
  }
33
33
  }
34
- `,R=`
34
+ `,S=`
35
35
  mutation CreateShare($input: FileCreateShareInput!) {
36
36
  createShare(input: $input) {
37
37
  id token shareType accessLevel expiresAt requiresPassword
38
38
  downloadCount maxDownloads createdAt
39
39
  }
40
40
  }
41
- `,$=`
41
+ `,D=`
42
42
  mutation RevokeShare($id: ID!) {
43
43
  revokeShare(id: $id) {
44
44
  id revokedAt revokedBy
45
45
  }
46
46
  }
47
- `,D=`
47
+ `,$=`
48
48
  query GetFile($id: ID!) {
49
49
  getFile(id: $id) {
50
50
  id name description workspaceId folderId
@@ -55,10 +55,10 @@
55
55
  tags
56
56
  }
57
57
  }
58
- `,L=`
58
+ `,q=`
59
59
  query GetFileDownloadUrl($id: ID!, $expiresIn: Int) {
60
60
  getFileDownloadUrl(id: $id, expiresIn: $expiresIn)
61
61
  }
62
- `;function F(n){let r=n.command("files").description("Workspace file management");r.command("browse").description("Browse a folder (defaults to root)").argument("[folderId]").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async(t,e)=>{try{let o={limit:e.limit,offset:0};if(t){let i=await l(A,{folderId:t,pagination:o});if(e.format){d(e,{folder:i.getFolder,files:i.getFilesInFolder.files});return}i.getFolder&&x(`Folder: ${i.getFolder.name}`);for(let c of i.getFilesInFolder.files){let k=c.size?`${c.size}b`:"-";console.log(` \u{1F4C4} ${C(c.id,12)} ${c.name} ${k} ${c.mimeType??"-"}`);}console.log(`
62
+ `;function L(n){let r=n.command("files").description("Workspace file management");r.command("browse").description("Browse a folder (defaults to root)").argument("[folderId]").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async(t,e)=>{try{let o={limit:e.limit,offset:0};if(t){let i=await l(A,{folderId:t,pagination:o});if(e.format){d(e,{folder:i.getFolder,files:i.getFilesInFolder.files});return}i.getFolder&&x(`Folder: ${i.getFolder.name}`);for(let c of i.getFilesInFolder.files){let k=c.size?`${c.size}b`:"-";console.log(` \u{1F4C4} ${C(c.id,12)} ${c.name} ${k} ${c.mimeType??"-"}`);}console.log(`
63
63
  ${i.getFilesInFolder.total} files`);return}let f=await l(v,{pagination:o});if(e.format){d(e,{files:f.getFilesInFolder.files});return}for(let i of f.getFilesInFolder.files){let c=i.size?`${i.size}b`:"-";console.log(` \u{1F4C4} ${C(i.id,12)} ${i.name} ${c} ${i.mimeType??"-"}`);}console.log(`
64
- ${f.getFilesInFolder.total} files`);}catch(o){p(o);}}),r.command("upload").description("Upload a local file (initiates a multipart session)").argument("<path>","Local file path").option("--folder <folderId>","Target folder id").option("--visibility <v>","PRIVATE|WORKSPACE|PUBLIC","WORKSPACE").option("-f, --format <format>").action(async(t,e)=>{try{let o=fs.statSync(t),f=path.basename(t),i=path.extname(t).slice(1)||void 0,c=fs.readFileSync(t),k=crypto.createHash("sha256").update(c).digest("hex"),q={fileName:f,fileSize:o.size,mimeType:"application/octet-stream",extension:i,folderId:e.folder,sha256Hash:k,visibility:(e.visibility??"WORKSPACE").toUpperCase()},b=await l(O,{input:q});x("Upload session created. PUT the local bytes to the returned URL(s)."),d(e,b.initiateUpload),x(`After uploading, complete with: vibecontrols files upload-complete --session ${b.initiateUpload.session.id}`);}catch(o){p(o);}}),r.command("upload-complete").description("Complete an in-flight upload session").requiredOption("--session <id>","Session id from `files upload`").option("--folder <folderId>").option("--description <s>").option("-f, --format <format>").action(async t=>{try{let e=await l(S,{input:{sessionId:t.session,folderId:t.folder,description:t.description}});h(`Upload complete: ${e.completeUpload.fileId}`),d(t,e.completeUpload.file);}catch(e){p(e);}}),r.command("get").description("Get a file by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let o=await l(D,{id:t});if(!o.getFile)throw new u(`File ${t} not found`);d(e,o.getFile);}catch(o){p(o);}}),r.command("download").description("Get a pre-signed download URL for a file").argument("<id>").option("--expires <seconds>","URL expiry in seconds",t=>parseInt(t,10)).option("-f, --format <format>").action(async(t,e)=>{try{let o=await l(L,{id:t,expiresIn:e.expires});if(e.format){d(e,{url:o.getFileDownloadUrl});return}h("Download URL:"),console.log(o.getFileDownloadUrl);}catch(o){p(o);}});let a=r.command("share").description("Manage file shares");a.command("create").description("Create a share link for a file").argument("<fileId>").option("--access <a>","VIEW|DOWNLOAD","DOWNLOAD").option("--expires <iso>","Expiry timestamp").option("--password <p>").option("--max-downloads <n>","",t=>parseInt(t,10)).option("-f, --format <format>").action(async(t,e)=>{try{let o={fileId:t,shareType:"PUBLIC_LINK",accessLevel:(e.access??"DOWNLOAD").toUpperCase(),expiresAt:e.expires,password:e.password,maxDownloads:e.maxDownloads},f=await l(R,{input:o});h("Share created"),d(e,f.createShare);}catch(o){p(o);}}),a.command("revoke").description("Revoke a share by id").argument("<shareId>").action(async t=>{try{await l($,{id:t}),h("Share revoked");}catch(e){p(e);}});}var ee={id:"files",version:"1.0.0",displayName:"Files",dependsOn:["auth","workspaces"],register(n,r){T(r),F(n);}},mt=ee;module.exports=mt;
64
+ ${f.getFilesInFolder.total} files`);}catch(o){p(o);}}),r.command("upload").description("Upload a local file (initiates a multipart session)").argument("<path>","Local file path").option("--folder <folderId>","Target folder id").option("--visibility <v>","PRIVATE|WORKSPACE|PUBLIC","WORKSPACE").option("-f, --format <format>").action(async(t,e)=>{try{let o=fs.statSync(t),f=path.basename(t),i=path.extname(t).slice(1)||void 0,c=fs.readFileSync(t),k=crypto.createHash("sha256").update(c).digest("hex"),F={fileName:f,fileSize:o.size,mimeType:"application/octet-stream",extension:i,folderId:e.folder,sha256Hash:k,visibility:(e.visibility??"WORKSPACE").toUpperCase()},b=await l(O,{input:F});x("Upload session created. PUT the local bytes to the returned URL(s)."),d(e,b.initiateUpload),x(`After uploading, complete with: vibecontrols files upload-complete --session ${b.initiateUpload.session.id}`);}catch(o){p(o);}}),r.command("upload-complete").description("Complete an in-flight upload session").requiredOption("--session <id>","Session id from `files upload`").option("--folder <folderId>").option("--description <s>").option("-f, --format <format>").action(async t=>{try{let e=await l(R,{input:{sessionId:t.session,folderId:t.folder,description:t.description}});h(`Upload complete: ${e.completeUpload.fileId}`),d(t,e.completeUpload.file);}catch(e){p(e);}}),r.command("get").description("Get a file by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let o=await l($,{id:t});if(!o.getFile)throw new u(`File ${t} not found`);d(e,o.getFile);}catch(o){p(o);}}),r.command("download").description("Get a pre-signed download URL for a file").argument("<id>").option("--expires <seconds>","URL expiry in seconds",t=>parseInt(t,10)).option("-f, --format <format>").action(async(t,e)=>{try{let o=await l(q,{id:t,expiresIn:e.expires});if(e.format){d(e,{url:o.getFileDownloadUrl});return}h("Download URL:"),console.log(o.getFileDownloadUrl);}catch(o){p(o);}});let a=r.command("share").description("Manage file shares");a.command("create").description("Create a share link for a file").argument("<fileId>").option("--access <a>","VIEW|DOWNLOAD","DOWNLOAD").option("--expires <iso>","Expiry timestamp").option("--password <p>").option("--max-downloads <n>","",t=>parseInt(t,10)).option("-f, --format <format>").action(async(t,e)=>{try{let o={fileId:t,shareType:"PUBLIC_LINK",accessLevel:(e.access??"DOWNLOAD").toUpperCase(),expiresAt:e.expires,password:e.password,maxDownloads:e.maxDownloads},f=await l(S,{input:o});h("Share created"),d(e,f.createShare);}catch(o){p(o);}}),a.command("revoke").description("Revoke a share by id").argument("<shareId>").action(async t=>{try{await l(D,{id:t}),h("Share revoked");}catch(e){p(e);}});}var ee={id:"files",version:"1.0.0",displayName:"Files",dependsOn:["auth","workspaces"],register(n,r){T(r),L(n);}},mt=ee;module.exports=mt;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-CLaW1ycq.cjs';
1
+ import { C as CliModule } from '../../module-BNVKV_pI.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-CLaW1ycq.js';
1
+ import { C as CliModule } from '../../module-BNVKV_pI.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b,i,m,r,h as h$1,k}from'../../chunk-WTNQ5PEC.js';import {q}from'../../chunk-MT2F54AC.js';import {statSync,readFileSync}from'fs';import {basename,extname}from'path';import {createHash}from'crypto';var h=`
1
+ import {a,b,i,m,r,h as h$1,k}from'../../chunk-3ZVMC2AF.js';import {q}from'../../chunk-ZT6KOG7N.js';import {statSync,readFileSync}from'fs';import {basename,extname}from'path';import {createHash}from'crypto';var h=`
2
2
  query BrowseFolderRoot($pagination: PaginationInput) {
3
3
  getFilesInFolder(pagination: $pagination) {
4
4
  files { id name size mimeType extension createdAt }