@corsair-dev/cli 0.1.8 → 0.1.10

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 (45) hide show
  1. package/dist/auth.d.ts +3 -1
  2. package/dist/auth.d.ts.map +1 -1
  3. package/dist/google/calendar.d.ts +2 -0
  4. package/dist/google/calendar.d.ts.map +1 -0
  5. package/dist/google/drive.d.ts +2 -0
  6. package/dist/google/drive.d.ts.map +1 -0
  7. package/dist/google/gmail.d.ts +2 -0
  8. package/dist/google/gmail.d.ts.map +1 -0
  9. package/dist/google/index.d.ts +5 -0
  10. package/dist/google/index.d.ts.map +1 -0
  11. package/dist/google/shared.d.ts +3 -0
  12. package/dist/google/shared.d.ts.map +1 -0
  13. package/dist/google/sheets.d.ts +2 -0
  14. package/dist/google/sheets.d.ts.map +1 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +1718 -1220
  17. package/dist/microsoft/credentials.d.ts +15 -0
  18. package/dist/microsoft/credentials.d.ts.map +1 -0
  19. package/dist/microsoft/graph.d.ts +6 -0
  20. package/dist/microsoft/graph.d.ts.map +1 -0
  21. package/dist/microsoft/onedrive.d.ts +4 -0
  22. package/dist/microsoft/onedrive.d.ts.map +1 -0
  23. package/dist/microsoft/outlook.d.ts +4 -0
  24. package/dist/microsoft/outlook.d.ts.map +1 -0
  25. package/dist/microsoft/sharepoint.d.ts +4 -0
  26. package/dist/microsoft/sharepoint.d.ts.map +1 -0
  27. package/dist/microsoft/teams.d.ts +4 -0
  28. package/dist/microsoft/teams.d.ts.map +1 -0
  29. package/dist/subscribe-google.d.ts +2 -0
  30. package/dist/subscribe-google.d.ts.map +1 -0
  31. package/dist/subscribe-microsoft.d.ts +5 -0
  32. package/dist/subscribe-microsoft.d.ts.map +1 -0
  33. package/dist/utils/corsair.d.ts +3 -0
  34. package/dist/utils/corsair.d.ts.map +1 -0
  35. package/dist/utils/load-config.d.ts +6 -0
  36. package/dist/utils/load-config.d.ts.map +1 -0
  37. package/dist/utils/prompts.d.ts +4 -0
  38. package/dist/utils/prompts.d.ts.map +1 -0
  39. package/package.json +2 -2
  40. package/dist/sharepoint-subscribe.d.ts +0 -4
  41. package/dist/sharepoint-subscribe.d.ts.map +0 -1
  42. package/dist/subscribe-outlook.d.ts +0 -4
  43. package/dist/subscribe-outlook.d.ts.map +0 -1
  44. package/dist/watch-renew.d.ts +0 -7
  45. package/dist/watch-renew.d.ts.map +0 -1
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare function runAuth({ cwd, pluginId: pluginIdArg, tenantId: tenantIdArg, code: codeArg, credentials: showCredentials, }: {
1
+ export declare function runAuth({ cwd, pluginId: pluginIdArg, tenantId: tenantIdArg, code: codeArg, credentials: showCredentials, agent: agentMode, }: {
2
2
  cwd: string;
3
3
  pluginId?: string;
4
4
  tenantId?: string;
@@ -6,5 +6,7 @@ export declare function runAuth({ cwd, pluginId: pluginIdArg, tenantId: tenantId
6
6
  code?: string;
7
7
  /** Output current credential status instead of starting OAuth flow. */
8
8
  credentials?: boolean;
9
+ /** When true, output instructions for an AI agent to guide the user through auth. */
10
+ agent?: boolean;
9
11
  }): Promise<void>;
10
12
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../auth.ts"],"names":[],"mappings":"AAggBA,wBAAsB,OAAO,CAAC,EAC7B,GAAG,EACH,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,eAAuB,GACpC,EAAE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmDhB"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../auth.ts"],"names":[],"mappings":"AAwmBA,wBAAsB,OAAO,CAAC,EAC7B,GAAG,EACH,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,eAAuB,EACpC,KAAK,EAAE,SAAiB,GACxB,EAAE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qFAAqF;IACrF,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6EhB"}
@@ -0,0 +1,2 @@
1
+ export declare function setupCalendarWatch(accessToken: string, webhookUrl: string, calendarId: string): Promise<void>;
2
+ //# sourceMappingURL=calendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../google/calendar.ts"],"names":[],"mappings":"AAKA,wBAAsB,kBAAkB,CACvC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CA0Cf"}
@@ -0,0 +1,2 @@
1
+ export declare function setupDriveWatch(accessToken: string, webhookUrl: string): Promise<void>;
2
+ //# sourceMappingURL=drive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../google/drive.ts"],"names":[],"mappings":"AAKA,wBAAsB,eAAe,CACpC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CA+Df"}
@@ -0,0 +1,2 @@
1
+ export declare function setupGmailWatch(accessToken: string, topicName: string): Promise<void>;
2
+ //# sourceMappingURL=gmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gmail.d.ts","sourceRoot":"","sources":["../../google/gmail.ts"],"names":[],"mappings":"AAIA,wBAAsB,eAAe,CACpC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAmCf"}
@@ -0,0 +1,5 @@
1
+ export declare function runGoogleSubscribe({ cwd, pluginId: preselectedPluginId, }: {
2
+ cwd: string;
3
+ pluginId?: string;
4
+ }): Promise<void>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../google/index.ts"],"names":[],"mappings":"AAsCA,wBAAsB,kBAAkB,CAAC,EACxC,GAAG,EACH,QAAQ,EAAE,mBAAmB,GAC7B,EAAE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4LhB"}
@@ -0,0 +1,3 @@
1
+ export declare function refreshGoogleAccessToken(clientId: string, clientSecret: string, refreshToken: string): Promise<string>;
2
+ export declare function copyToClipboard(text: string): boolean;
3
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../google/shared.ts"],"names":[],"mappings":"AAEA,wBAAsB,wBAAwB,CAC7C,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAmBjB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA0BrD"}
@@ -0,0 +1,2 @@
1
+ export declare function setupSheetsWatch(webhookUrl: string): Promise<void>;
2
+ //# sourceMappingURL=sheets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheets.d.ts","sourceRoot":"","sources":["../../google/sheets.ts"],"names":[],"mappings":"AAuEA,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8CxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAsLA;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQhE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,kBAAkB,CAAC,EACxC,GAAG,EACH,UAAU,EACV,kBAA0B,GAC1B,EAAE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,eA8KA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAsLA;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQhE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,kBAAkB,CAAC,EACxC,GAAG,EACH,UAAU,EACV,kBAA0B,GAC1B,EAAE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,eAqLA"}