msgraph-cli 0.0.1 → 0.0.2

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 (75) hide show
  1. package/dist/commands/calendar/events.d.ts.map +1 -1
  2. package/dist/commands/calendar/events.js +2 -1
  3. package/dist/commands/calendar/events.js.map +1 -1
  4. package/dist/commands/calendar/index.d.ts.map +1 -1
  5. package/dist/commands/calendar/index.js +4 -0
  6. package/dist/commands/calendar/index.js.map +1 -1
  7. package/dist/commands/calendar/respond.d.ts +3 -0
  8. package/dist/commands/calendar/respond.d.ts.map +1 -0
  9. package/dist/commands/calendar/respond.js +25 -0
  10. package/dist/commands/calendar/respond.js.map +1 -0
  11. package/dist/commands/calendar/update.d.ts +3 -0
  12. package/dist/commands/calendar/update.d.ts.map +1 -0
  13. package/dist/commands/calendar/update.js +30 -0
  14. package/dist/commands/calendar/update.js.map +1 -0
  15. package/dist/commands/chat/add-member.d.ts +3 -0
  16. package/dist/commands/chat/add-member.d.ts.map +1 -0
  17. package/dist/commands/chat/add-member.js +18 -0
  18. package/dist/commands/chat/add-member.js.map +1 -0
  19. package/dist/commands/chat/index.d.ts.map +1 -1
  20. package/dist/commands/chat/index.js +6 -0
  21. package/dist/commands/chat/index.js.map +1 -1
  22. package/dist/commands/chat/remove-member.d.ts +3 -0
  23. package/dist/commands/chat/remove-member.d.ts.map +1 -0
  24. package/dist/commands/chat/remove-member.js +13 -0
  25. package/dist/commands/chat/remove-member.js.map +1 -0
  26. package/dist/commands/chat/update.d.ts +3 -0
  27. package/dist/commands/chat/update.d.ts.map +1 -0
  28. package/dist/commands/chat/update.js +13 -0
  29. package/dist/commands/chat/update.js.map +1 -0
  30. package/dist/commands/mail/forward.d.ts +3 -0
  31. package/dist/commands/mail/forward.d.ts.map +1 -0
  32. package/dist/commands/mail/forward.js +15 -0
  33. package/dist/commands/mail/forward.js.map +1 -0
  34. package/dist/commands/mail/get.d.ts +3 -0
  35. package/dist/commands/mail/get.d.ts.map +1 -0
  36. package/dist/commands/mail/get.js +29 -0
  37. package/dist/commands/mail/get.js.map +1 -0
  38. package/dist/commands/mail/index.d.ts.map +1 -1
  39. package/dist/commands/mail/index.js +8 -0
  40. package/dist/commands/mail/index.js.map +1 -1
  41. package/dist/commands/mail/list.d.ts.map +1 -1
  42. package/dist/commands/mail/list.js +16 -1
  43. package/dist/commands/mail/list.js.map +1 -1
  44. package/dist/commands/mail/mark-read.d.ts +3 -0
  45. package/dist/commands/mail/mark-read.d.ts.map +1 -0
  46. package/dist/commands/mail/mark-read.js +15 -0
  47. package/dist/commands/mail/mark-read.js.map +1 -0
  48. package/dist/commands/mail/reply.d.ts +3 -0
  49. package/dist/commands/mail/reply.d.ts.map +1 -0
  50. package/dist/commands/mail/reply.js +15 -0
  51. package/dist/commands/mail/reply.js.map +1 -0
  52. package/dist/commands/mail/search.d.ts.map +1 -1
  53. package/dist/commands/mail/search.js +16 -1
  54. package/dist/commands/mail/search.js.map +1 -1
  55. package/dist/commands/message/get.d.ts.map +1 -1
  56. package/dist/commands/message/get.js +8 -1
  57. package/dist/commands/message/get.js.map +1 -1
  58. package/dist/commands/message/index.d.ts.map +1 -1
  59. package/dist/commands/message/index.js +2 -0
  60. package/dist/commands/message/index.js.map +1 -1
  61. package/dist/commands/message/list.d.ts.map +1 -1
  62. package/dist/commands/message/list.js +12 -1
  63. package/dist/commands/message/list.js.map +1 -1
  64. package/dist/commands/message/search.d.ts.map +1 -1
  65. package/dist/commands/message/search.js +18 -1
  66. package/dist/commands/message/search.js.map +1 -1
  67. package/dist/commands/message/undelete.d.ts +3 -0
  68. package/dist/commands/message/undelete.d.ts.map +1 -0
  69. package/dist/commands/message/undelete.js +13 -0
  70. package/dist/commands/message/undelete.js.map +1 -0
  71. package/dist/utils/optimize.d.ts +3 -0
  72. package/dist/utils/optimize.d.ts.map +1 -0
  73. package/dist/utils/optimize.js +42 -0
  74. package/dist/utils/optimize.js.map +1 -0
  75. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAkB5C"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAkB5C"}
@@ -1,4 +1,5 @@
1
1
  import { getClient } from '../../utils/client.js';
2
+ import { optimizeEvent } from '../../utils/optimize.js';
2
3
  import { output } from '../../utils/output.js';
3
4
  export function events(parent) {
4
5
  parent
@@ -16,7 +17,7 @@ export function events(parent) {
16
17
  subject: opts.subject,
17
18
  limit: parseInt(opts.limit, 10),
18
19
  });
19
- output(result);
20
+ output(result.map(optimizeEvent));
20
21
  });
21
22
  }
22
23
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/commands/calendar/events.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,mBAAmB,EAAE,wCAAwC,CAAC;SACrE,MAAM,CAAC,iBAAiB,EAAE,sCAAsC,CAAC;SACjE,MAAM,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;SACpD,MAAM,CAAC,aAAa,EAAE,oBAAoB,EAAE,IAAI,CAAC;SACjD,MAAM,CAAC,KAAK,EAAE,IAAqE,EAAE,EAAE;Q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,EAAE,EAAE,CAAC;SAChC,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAM/D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAQ/D"}
@@ -2,11 +2,15 @@ import { cancel } from './cancel.js';
2
2
  import { create } from './create.js';
3
3
  import { events } from './events.js';
4
4
  import { findTimes } from './find-times.js';
5
+ import { respond } from './respond.js';
6
+ import { update } from './update.js';
5
7
  export function registerCalendarCommands(program) {
6
8
  const calendar = program.command('calendar').description('Calendar operations');
7
9
  events(calendar);
8
10
  create(calendar);
11
+ update(calendar);
9
12
  cancel(calendar);
13
+ respond(calendar);
10
14
  findTimes(calendar);
11
15
  }
12
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/calendar/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,UAAU,wBAAwB,CAAC,OAAgB;IACvD,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAChF,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,SAAS,CAAC,QAAQ,CAAC,CAAC;AACtB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/calendar/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,UAAU,wBAAwB,CAAC,OAAgB;IACvD,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAChF,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClB,SAAS,CAAC,QAAQ,CAAC,CAAC;AACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function respond(parent: Command): void;
3
+ //# sourceMappingURL=respond.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"respond.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/respond.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAuB7C"}
@@ -0,0 +1,25 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function respond(parent) {
4
+ parent
5
+ .command('respond <eventId> <response>')
6
+ .description('Respond to a calendar event: accept, decline, or tentative')
7
+ .option('--comment <text>', 'Comment to include with the response')
8
+ .option('--no-send', 'Do not send a response to the organizer')
9
+ .action(async (eventId, response, opts) => {
10
+ const validResponses = ['accept', 'decline', 'tentative'];
11
+ const mapped = response === 'tentative' ? 'tentativelyAccept' : response;
12
+ if (!validResponses.includes(response)) {
13
+ throw new Error(`Invalid response: "${response}". Must be one of: accept, decline, tentative`);
14
+ }
15
+ const client = await getClient();
16
+ await client.calendar.respondToEvent({
17
+ eventId,
18
+ response: mapped,
19
+ comment: opts.comment,
20
+ sendResponse: opts.send,
21
+ });
22
+ output({ status: 'ok', eventId, response });
23
+ });
24
+ }
25
+ //# sourceMappingURL=respond.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"respond.js","sourceRoot":"","sources":["../../../src/commands/calendar/respond.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,OAAO,CAAC,MAAe;IACrC,MAAM;SACH,OAAO,CAAC,8BAA8B,CAAC;SACvC,WAAW,CAAC,4DAA4D,CAAC;SACzE,MAAM,CAAC,kBAAkB,EAAE,sCAAsC,CAAC;SAClE,MAAM,CAAC,WAAW,EAAE,yCAAyC,CAAC;SAC9D,MAAM,CAAC,KAAK,EAAE,OAAe,EAAE,QAAgB,EAAE,IAAyC,EAAE,EAAE;QAC7F,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAU,CAAC;QACnE,MAAM,MAAM,GAAG,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC;QAEzE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,QAA2C,CAAC,EAAE,CAAC;YAC1E,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,+CAA+C,CAAC,CAAC;QACjG,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC;YACnC,OAAO;YACP,QAAQ,EAAE,MAAoD;YAC9D,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,YAAY,EAAE,IAAI,CAAC,IAAI;SACxB,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function update(parent: Command): void;
3
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/calendar/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAsC5C"}
@@ -0,0 +1,30 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { optimizeEvent } from '../../utils/optimize.js';
3
+ import { output } from '../../utils/output.js';
4
+ export function update(parent) {
5
+ parent
6
+ .command('update <eventId>')
7
+ .description('Update a calendar event (subject, time, attendees, location, body)')
8
+ .option('--subject <text>', 'New subject')
9
+ .option('--start <datetime>', 'New start time (ISO datetime UTC)')
10
+ .option('--end <datetime>', 'New end time (ISO datetime UTC)')
11
+ .option('--body <text>', 'New body/agenda text')
12
+ .option('--attendees <emails...>', 'Set attendees (replaces existing)')
13
+ .option('--location <text>', 'New location')
14
+ .option('--online', 'Make it an online meeting')
15
+ .action(async (eventId, opts) => {
16
+ const client = await getClient();
17
+ const updated = await client.calendar.updateEvent({
18
+ eventId,
19
+ subject: opts.subject,
20
+ startDateTime: opts.start,
21
+ endDateTime: opts.end,
22
+ body: opts.body,
23
+ attendees: opts.attendees,
24
+ location: opts.location,
25
+ isOnlineMeeting: opts.online,
26
+ });
27
+ output(optimizeEvent(updated));
28
+ });
29
+ }
30
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/calendar/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,kBAAkB,CAAC;SAC3B,WAAW,CAAC,oEAAoE,CAAC;SACjF,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAAC;SACzC,MAAM,CAAC,oBAAoB,EAAE,mCAAmC,CAAC;SACjE,MAAM,CAAC,kBAAkB,EAAE,iCAAiC,CAAC;SAC7D,MAAM,CAAC,eAAe,EAAE,sBAAsB,CAAC;SAC/C,MAAM,CAAC,yBAAyB,EAAE,mCAAmC,CAAC;SACtE,MAAM,CAAC,mBAAmB,EAAE,cAAc,CAAC;SAC3C,MAAM,CAAC,UAAU,EAAE,2BAA2B,CAAC;SAC/C,MAAM,CACL,KAAK,EACH,OAAe,EACf,IAQC,EACD,EAAE;QACF,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC;YAChD,OAAO;YACP,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,IAAI,CAAC,KAAK;YACzB,WAAW,EAAE,IAAI,CAAC,GAAG;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,eAAe,EAAE,IAAI,CAAC,MAAM;SAC7B,CAAC,CAAC;QACH,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;IACjC,CAAC,CACF,CAAC;AACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function addMember(parent: Command): void;
3
+ //# sourceMappingURL=add-member.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-member.d.ts","sourceRoot":"","sources":["../../../src/commands/chat/add-member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAc/C"}
@@ -0,0 +1,18 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function addMember(parent) {
4
+ parent
5
+ .command('add-member <chatId> <userId>')
6
+ .description('Add a member to a chat (user ID or email)')
7
+ .option('--role <role>', 'Member role: owner, guest', 'owner')
8
+ .action(async (chatId, userId, opts) => {
9
+ const client = await getClient();
10
+ await client.chats.addMember({
11
+ chatId,
12
+ userId,
13
+ role: opts.role,
14
+ });
15
+ output({ status: 'ok', chatId, userId, role: opts.role });
16
+ });
17
+ }
18
+ //# sourceMappingURL=add-member.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-member.js","sourceRoot":"","sources":["../../../src/commands/chat/add-member.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,8BAA8B,CAAC;SACvC,WAAW,CAAC,2CAA2C,CAAC;SACxD,MAAM,CAAC,eAAe,EAAE,2BAA2B,EAAE,OAAO,CAAC;SAC7D,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,MAAc,EAAE,IAAsB,EAAE,EAAE;QACvE,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC;YAC3B,MAAM;YACN,MAAM;YACN,IAAI,EAAE,IAAI,CAAC,IAAyB;SACrC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK3D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAQ3D"}
@@ -1,10 +1,16 @@
1
+ import { addMember } from './add-member.js';
1
2
  import { create } from './create.js';
2
3
  import { get } from './get.js';
4
+ import { removeMember } from './remove-member.js';
3
5
  import { search } from './search.js';
6
+ import { update } from './update.js';
4
7
  export function registerChatCommands(program) {
5
8
  const chat = program.command('chat').description('Chat operations');
6
9
  get(chat);
7
10
  search(chat);
8
11
  create(chat);
12
+ update(chat);
13
+ addMember(chat);
14
+ removeMember(chat);
9
15
  }
10
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/chat/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACpE,GAAG,CAAC,IAAI,CAAC,CAAC;IACV,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/chat/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACpE,GAAG,CAAC,IAAI,CAAC,CAAC;IACV,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,SAAS,CAAC,IAAI,CAAC,CAAC;IAChB,YAAY,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function removeMember(parent: Command): void;
3
+ //# sourceMappingURL=remove-member.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-member.d.ts","sourceRoot":"","sources":["../../../src/commands/chat/remove-member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CASlD"}
@@ -0,0 +1,13 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function removeMember(parent) {
4
+ parent
5
+ .command('remove-member <chatId> <membershipId>')
6
+ .description('Remove a member from a chat (use membership ID from chat get)')
7
+ .action(async (chatId, membershipId) => {
8
+ const client = await getClient();
9
+ await client.chats.removeMember({ chatId, membershipId });
10
+ output({ status: 'ok', chatId, membershipId, action: 'removed' });
11
+ });
12
+ }
13
+ //# sourceMappingURL=remove-member.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-member.js","sourceRoot":"","sources":["../../../src/commands/chat/remove-member.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,YAAY,CAAC,MAAe;IAC1C,MAAM;SACH,OAAO,CAAC,uCAAuC,CAAC;SAChD,WAAW,CAAC,+DAA+D,CAAC;SAC5E,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,YAAoB,EAAE,EAAE;QACrD,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;QAC1D,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function update(parent: Command): void;
3
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/chat/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAS5C"}
@@ -0,0 +1,13 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function update(parent) {
4
+ parent
5
+ .command('update <chatId> <topic>')
6
+ .description('Update chat topic (group chats only)')
7
+ .action(async (chatId, topic) => {
8
+ const client = await getClient();
9
+ await client.chats.updateTopic({ chatId, topic });
10
+ output({ status: 'ok', chatId, topic });
11
+ });
12
+ }
13
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/chat/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,yBAAyB,CAAC;SAClC,WAAW,CAAC,sCAAsC,CAAC;SACnD,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,KAAa,EAAE,EAAE;QAC9C,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAClD,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function forward(parent: Command): void;
3
+ //# sourceMappingURL=forward.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forward.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/forward.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAW7C"}
@@ -0,0 +1,15 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function forward(parent) {
4
+ parent
5
+ .command('forward <messageId>')
6
+ .description('Forward an email to recipients')
7
+ .requiredOption('--to <emails...>', 'Recipients to forward to')
8
+ .option('--comment <text>', 'Introductory comment')
9
+ .action(async (messageId, opts) => {
10
+ const client = await getClient();
11
+ await client.mail.forward({ messageId, to: opts.to, comment: opts.comment });
12
+ output({ status: 'ok', messageId, action: 'forwarded', to: opts.to });
13
+ });
14
+ }
15
+ //# sourceMappingURL=forward.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forward.js","sourceRoot":"","sources":["../../../src/commands/mail/forward.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,OAAO,CAAC,MAAe;IACrC,MAAM;SACH,OAAO,CAAC,qBAAqB,CAAC;SAC9B,WAAW,CAAC,gCAAgC,CAAC;SAC7C,cAAc,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;SAC9D,MAAM,CAAC,kBAAkB,EAAE,sBAAsB,CAAC;SAClD,MAAM,CAAC,KAAK,EAAE,SAAiB,EAAE,IAAwC,EAAE,EAAE;QAC5E,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAC7E,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function get(parent: Command): void;
3
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAyBzC"}
@@ -0,0 +1,29 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function get(parent) {
4
+ parent
5
+ .command('get <messageId>')
6
+ .description('Get a single email by ID')
7
+ .option('--body-format <format>', 'Body format: text, html', 'html')
8
+ .action(async (messageId, opts) => {
9
+ const client = await getClient();
10
+ const msg = await client.mail.get({
11
+ messageId,
12
+ includeBody: true,
13
+ bodyFormat: opts.bodyFormat,
14
+ });
15
+ output({
16
+ id: msg.id,
17
+ subject: msg.subject,
18
+ from: { name: msg.from?.emailAddress?.name, address: msg.from?.emailAddress?.address },
19
+ toRecipients: msg.toRecipients?.map((r) => r.emailAddress?.address),
20
+ ccRecipients: msg.ccRecipients?.length ? msg.ccRecipients.map((r) => r.emailAddress?.address) : undefined,
21
+ receivedDateTime: msg.receivedDateTime,
22
+ body: msg.body,
23
+ isRead: msg.isRead,
24
+ hasAttachments: msg.hasAttachments,
25
+ importance: msg.importance,
26
+ });
27
+ });
28
+ }
29
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/mail/get.ts"],"names":[],"mappings":"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;YAClC,UAAU,EAAE,GAAG,CAAC,UAAU;SAC3B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAM3D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAU3D"}
@@ -1,12 +1,20 @@
1
1
  import { del } from './delete.js';
2
+ import { forward } from './forward.js';
3
+ import { get } from './get.js';
2
4
  import { list } from './list.js';
5
+ import { markRead } from './mark-read.js';
6
+ import { reply } from './reply.js';
3
7
  import { search } from './search.js';
4
8
  import { send } from './send.js';
5
9
  export function registerMailCommands(program) {
6
10
  const mail = program.command('mail').description('Mail operations');
7
11
  list(mail);
12
+ get(mail);
8
13
  search(mail);
9
14
  send(mail);
15
+ reply(mail);
16
+ forward(mail);
17
+ markRead(mail);
10
18
  del(mail);
11
19
  }
12
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/mail/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACpE,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,GAAG,CAAC,IAAI,CAAC,CAAC;AACZ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/mail/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACpE,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,GAAG,CAAC,IAAI,CAAC,CAAC;IACV,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,KAAK,CAAC,IAAI,CAAC,CAAC;IACZ,OAAO,CAAC,IAAI,CAAC,CAAC;IACd,QAAQ,CAAC,IAAI,CAAC,CAAC;IACf,GAAG,CAAC,IAAI,CAAC,CAAC;AACZ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAwC1C"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAuD1C"}
@@ -26,7 +26,22 @@ export function list(parent) {
26
26
  includeBody: opts.includeBody,
27
27
  bodyFormat: opts.bodyFormat,
28
28
  });
29
- output(result);
29
+ const messages = (result?.value || []).map((m) => {
30
+ const msg = {
31
+ id: m.id,
32
+ subject: m.subject,
33
+ from: { name: m.from?.emailAddress?.name, address: m.from?.emailAddress?.address },
34
+ receivedDateTime: m.receivedDateTime,
35
+ bodyPreview: m.bodyPreview,
36
+ isRead: m.isRead,
37
+ hasAttachments: m.hasAttachments,
38
+ };
39
+ if (opts.includeBody && m.body) {
40
+ msg.body = m.body;
41
+ }
42
+ return msg;
43
+ });
44
+ output(messages);
30
45
  });
31
46
  }
32
47
  //# sourceMappingURL=list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/mail/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,IAAI,CAAC,MAAe;IAClC,MAAM;SACH,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,kCAAkC,CAAC;SAC/C,MAAM,CAAC,iBAAiB,EAAE,yEAAyE,CAAC;SACpG,MAAM,CAAC,aAAa,EAAE,2BAA2B,EAAE,IAAI,CAAC;SACxD,MAAM,CAAC,oBAAoB,EAAE,kCAAkC,CAAC;SAChE,MAAM,CAAC,oBAAoB,EAAE,mCAAmC,CAAC;SACjE,MAAM,CAAC,UAAU,EAAE,2BAA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AC,CAAC,gBAAgB;gBACpC,WAAW,EAAE,CAAC,CAAC,WAAW;gBAC1B,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,cAAc,EAAE,CAAC,CAAC,cAAc;aACjC,CAAC;YACF,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;gBAC/B,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC;YACpB,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CACF,CAAC;AACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function markRead(parent: Command): void;
3
+ //# sourceMappingURL=mark-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mark-read.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/mark-read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAW9C"}
@@ -0,0 +1,15 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function markRead(parent) {
4
+ parent
5
+ .command('mark-read <messageId>')
6
+ .description('Mark an email as read or unread')
7
+ .option('--unread', 'Mark as unread instead of read')
8
+ .action(async (messageId, opts) => {
9
+ const client = await getClient();
10
+ const isRead = !opts.unread;
11
+ await client.mail.markRead({ messageId, isRead });
12
+ output({ status: 'ok', messageId, isRead });
13
+ });
14
+ }
15
+ //# sourceMappingURL=mark-read.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mark-read.js","sourceRoot":"","sources":["../../../src/commands/mail/mark-read.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,uBAAuB,CAAC;SAChC,WAAW,CAAC,iCAAiC,CAAC;SAC9C,MAAM,CAAC,UAAU,EAAE,gCAAgC,CAAC;SACpD,MAAM,CAAC,KAAK,EAAE,SAAiB,EAAE,IAA0B,EAAE,EAAE;QAC9D,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;QAC5B,MAAM,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QAClD,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function reply(parent: Command): void;
3
+ //# sourceMappingURL=reply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reply.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/reply.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAW3C"}
@@ -0,0 +1,15 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function reply(parent) {
4
+ parent
5
+ .command('reply <messageId> <comment>')
6
+ .description('Reply to an email')
7
+ .option('--cc <emails...>', 'Additional CC recipients')
8
+ .option('--bcc <emails...>', 'Additional BCC recipients')
9
+ .action(async (messageId, comment, opts) => {
10
+ const client = await getClient();
11
+ await client.mail.reply({ messageId, comment, cc: opts.cc, bcc: opts.bcc });
12
+ output({ status: 'ok', messageId, action: 'replied' });
13
+ });
14
+ }
15
+ //# sourceMappingURL=reply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reply.js","sourceRoot":"","sources":["../../../src/commands/mail/reply.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,KAAK,CAAC,MAAe;IACnC,MAAM;SACH,OAAO,CAAC,6BAA6B,CAAC;SACtC,WAAW,CAAC,mBAAmB,CAAC;SAChC,MAAM,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;SACtD,MAAM,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;SACxD,MAAM,CAAC,KAAK,EAAE,SAAiB,EAAE,OAAe,EAAE,IAAuC,EAAE,EAAE;QAC5F,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QAC5E,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAqB5C"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/commands/mail/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAoC5C"}
@@ -17,7 +17,22 @@ export function search(parent) {
17
17
  includeBody: opts.includeBody,
18
18
  bodyFormat: opts.bodyFormat,
19
19
  });
20
- output(result);
20
+ const messages = (result?.value || []).map((m) => {
21
+ const msg = {
22
+ id: m.id,
23
+ subject: m.subject,
24
+ from: { name: m.from?.emailAddress?.name, address: m.from?.emailAddress?.address },
25
+ receivedDateTime: m.receivedDateTime,
26
+ bodyPreview: m.bodyPreview,
27
+ isRead: m.isRead,
28
+ hasAttachments: m.hasAttachments,
29
+ };
30
+ if (opts.includeBody && m.body) {
31
+ msg.body = m.body;
32
+ }
33
+ return msg;
34
+ });
35
+ output(messages);
21
36
  });
22
37
  }
23
38
  //# sourceMappingURL=search.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/commands/mail/search.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,0BAA0B,CAAC;SACvC,MAAM,CAAC,iBAAiB,EAAE,iDAAiD,CAAC;SAC5E,MAAM,CAAC,aAAa,EAAE,qBAAqB,EAAE,IAAI,CAAC;SAClD,MAAM,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;SACnD,MAAM,CAAC,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,CAAC;SACnE,MAAM,CACL,KAAK,EAAE,KAAa,EAAE,IAAmF,EAAE,EAAE;QAC3G,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;YACtC,KAAK;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YAC/B,WAAW,EAAE,IAAI,CAA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IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE;gBAClF,gBAAgB,EAAE,CAAC,CAAC,gBAAgB;gBACpC,WAAW,EAAE,CAAC,CAAC,WAAW;gBAC1B,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,cAAc,EAAE,CAAC,CAAC,cAAc;aACjC,CAAC;YACF,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;gBAC/B,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC;YACpB,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CACF,CAAC;AACN,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/message/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CASzC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/message/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAgBzC"}
@@ -7,7 +7,14 @@ export function get(parent) {
7
7
  .action(async (chatId, messageId) => {
8
8
  const client = await getClient();
9
9
  const msg = await client.messages.get({ chatId, messageId });
10
- output(msg);
10
+ output({
11
+ id: msg.id,
12
+ content: msg.body?.content,
13
+ from: msg.from?.user?.displayName,
14
+ createdDateTime: msg.createdDateTime,
15
+ reactions: msg.reactions || [],
16
+ attachments: msg.attachments?.length ? msg.attachments : undefined,
17
+ });
11
18
  });
12
19
  }
13
20
  //# sourceMappingURL=get.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/message/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,GAAG,CAAC,MAAe;IACjC,MAAM;SACH,OAAO,CAAC,0BAA0B,CAAC;SACnC,WAAW,CAAC,wBAAwB,CAAC;SACrC,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,SAAiB,EAAE,EAAE;QAClD,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QAC7D,MAAM,CAAC,GAAG,CAAC,CAAC;IACd,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/message/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,GAAG,CAAC,MAAe;IACjC,MAAM;SACH,OAAO,CAAC,0BAA0B,CAAC;SACnC,WAAW,CAAC,wBAAwB,CAAC;SACrC,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,SAAiB,EAAE,EAAE;QAClD,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QAC7D,MAAM,CAAC;YACL,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO;YAC1B,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW;YACjC,eAAe,EAAE,GAAG,CAAC,eAAe;YACpC,SAAS,EAAE,GAAG,CAAC,SAAS,IAAI,EAAE;YAC9B,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;SACnE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAU9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAW9D"}
@@ -4,6 +4,7 @@ import { list } from './list.js';
4
4
  import { react } from './react.js';
5
5
  import { search } from './search.js';
6
6
  import { send } from './send.js';
7
+ import { undelete } from './undelete.js';
7
8
  import { unreact } from './unreact.js';
8
9
  import { update } from './update.js';
9
10
  export function registerMessageCommands(program) {
@@ -13,6 +14,7 @@ export function registerMessageCommands(program) {
13
14
  send(message);
14
15
  update(message);
15
16
  del(message);
17
+ undelete(message);
16
18
  search(message);
17
19
  react(message);
18
20
  unreact(message);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/message/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC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AAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAC7E,IAAI,CAAC,OAAO,CAAC,CAAC;IACd,GAAG,CAAC,OAAO,CAAC,CAAC;IACb,IAAI,CAAC,OAAO,CAAC,CAAC;IACd,MAAM,CAAC,OAAO,CAAC,CAAC;IAChB,GAAG,CAAC,OAAO,CAAC,CAAC;IACb,QAAQ,CAAC,OAAO,CAAC,CAAC;IAClB,MAAM,CAAC,OAAO,CAAC,CAAC;IAChB,KAAK,CAAC,OAAO,CAAC,CAAC;IACf,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/message/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAmB1C"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/message/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA8B1C"}
@@ -17,7 +17,18 @@ export function list(parent) {
17
17
  to: opts.to,
18
18
  fromUser: opts.fromUser,
19
19
  });
20
- output(result);
20
+ const messages = result.map((m) => ({
21
+ id: m.id,
22
+ content: m.body?.content,
23
+ from: m.from?.user?.displayName,
24
+ createdDateTime: m.createdDateTime,
25
+ reactions: m.reactions || [],
26
+ attachments: m.attachments?.length ? m.attachments : undefined,
27
+ }));
28
+ output({
29
+ totalReturned: messages.length,
30
+ messages,
31
+ });
21
32
  });
22
33
  }
23
34
  //# sourceMappingURL=list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/message/list.ts"],"names":[],"mapp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,MAAM,EAAE,OAAO,GAAG,IAAI,CA0B5C"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/commands/message/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA2C5C"}
@@ -19,7 +19,24 @@ export function search(parent) {
19
19
  from: opts.from,
20
20
  fromUser: opts.fromUser,
21
21
  });
22
- output(result);
22
+ const hits = result?.value?.[0]?.hitsContainers?.[0];
23
+ const results = (hits?.hits || []).map((hit) => ({
24
+ id: hit.resource.id,
25
+ rank: hit.rank,
26
+ content: hit.summary,
27
+ from: hit.resource.from?.emailAddress?.address,
28
+ createdDateTime: hit.resource.createdDateTime,
29
+ chatId: hit.resource.chatId,
30
+ teamId: hit.resource.channelIdentity?.teamId,
31
+ channelId: hit.resource.channelIdentity?.channelId,
32
+ }));
33
+ output({
34
+ query,
35
+ scope: opts.scope,
36
+ totalResults: hits?.total ?? 0,
37
+ moreResultsAvailable: hits?.moreResultsAvailable ?? false,
38
+ results,
39
+ });
23
40
  });
24
41
  }
25
42
  //# sourceMappingURL=search.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/commands/message/search.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,KAAK,CAAC;SACtE,MAAM,CAAC,aAAa,EAAE,qBAAqB,EAAE,IAAI,CAAC;SAClD,MAAM,CAAC,qBAAqB,EAAE,+BAA+B,CAAC;SAC9D,MAAM,CAAC,m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command } from 'commander';
2
+ export declare function undelete(parent: Command): void;
3
+ //# sourceMappingURL=undelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"undelete.d.ts","sourceRoot":"","sources":["../../../src/commands/message/undelete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAS9C"}
@@ -0,0 +1,13 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output } from '../../utils/output.js';
3
+ export function undelete(parent) {
4
+ parent
5
+ .command('undelete <chatId> <messageId>')
6
+ .description('Restore a soft-deleted message')
7
+ .action(async (chatId, messageId) => {
8
+ const client = await getClient();
9
+ await client.messages.undoSoftDelete({ chatId, messageId });
10
+ output({ status: 'ok', chatId, messageId, action: 'restored' });
11
+ });
12
+ }
13
+ //# sourceMappingURL=undelete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"undelete.js","sourceRoot":"","sources":["../../../src/commands/message/undelete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,+BAA+B,CAAC;SACxC,WAAW,CAAC,gCAAgC,CAAC;SAC7C,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,SAAiB,EAAE,EAAE;QAClD,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QAC5D,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Event } from 'microsoft-graph-client';
2
+ export declare function optimizeEvent(event: Event): Record<string, unknown>;
3
+ //# sourceMappingURL=optimize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optimize.d.ts","sourceRoot":"","sources":["../../src/utils/optimize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAWpD,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkCnE"}
@@ -0,0 +1,42 @@
1
+ function extractChatIdFromJoinUrl(joinUrl) {
2
+ try {
3
+ const match = /19:[^@]+@thread\.v2/.exec(joinUrl);
4
+ return match?.[0];
5
+ }
6
+ catch {
7
+ return undefined;
8
+ }
9
+ }
10
+ export function optimizeEvent(event) {
11
+ let chatId;
12
+ if (event.isOnlineMeeting && event.onlineMeeting?.joinUrl) {
13
+ chatId = extractChatIdFromJoinUrl(event.onlineMeeting.joinUrl);
14
+ }
15
+ let location;
16
+ if (event.location?.displayName) {
17
+ location = { name: event.location.displayName, type: event.location.locationType ?? undefined };
18
+ }
19
+ let attendees;
20
+ if (event.attendees?.length) {
21
+ attendees = event.attendees.map((a) => ({
22
+ name: a.emailAddress?.name ?? undefined,
23
+ email: a.emailAddress?.address ?? undefined,
24
+ status: a.status?.response ?? undefined,
25
+ }));
26
+ }
27
+ return {
28
+ id: event.id ?? undefined,
29
+ subject: event.subject,
30
+ start: event.start
31
+ ? { dateTime: event.start.dateTime ?? undefined, timeZone: event.start.timeZone ?? undefined }
32
+ : undefined,
33
+ end: event.end
34
+ ? { dateTime: event.end.dateTime ?? undefined, timeZone: event.end.timeZone ?? undefined }
35
+ : undefined,
36
+ location,
37
+ attendees,
38
+ isOnlineMeeting: event.isOnlineMeeting ?? undefined,
39
+ chatId,
40
+ };
41
+ }
42
+ //# sourceMappingURL=optimize.js.map
@@ -0,0 +1 @@
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,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK,EAAE,KAAK,CAAC,KAAK;YAChB,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,EAAE;YAC9F,CAAC,CAAC,SAAS;QACb,GAAG,EAAE,KAAK,CAAC,GAAG;YACZ,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,IAAI,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,IAAI,SAAS,EAAE;YAC1F,CAAC,CAAC,SAAS;QACb,QAAQ;QACR,SAAS;QACT,eAAe,EAAE,KAAK,CAAC,eAAe,IAAI,SAAS;QACnD,MAAM;KACP,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "msgraph-cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "publish": true,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "commander": "^13.1.0",
15
15
  "open": "^10.1.2",
16
- "microsoft-graph-client": "1.0.21"
16
+ "microsoft-graph-client": "1.0.22"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "24.10.4",
@@ -22,8 +22,8 @@
22
22
  "tsx": "^4.19.2",
23
23
  "typescript": "^5.7.2",
24
24
  "vitest": "^4.0.16",
25
- "config-typescript": "0.0.0",
26
- "config-eslint": "0.0.0"
25
+ "config-eslint": "0.0.0",
26
+ "config-typescript": "0.0.0"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">=22.0.0"