@corsair-dev/cli 0.1.7 → 0.1.9

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 (40) hide show
  1. package/dist/auth.d.ts.map +1 -1
  2. package/dist/google/calendar.d.ts +2 -0
  3. package/dist/google/calendar.d.ts.map +1 -0
  4. package/dist/google/drive.d.ts +2 -0
  5. package/dist/google/drive.d.ts.map +1 -0
  6. package/dist/google/gmail.d.ts +2 -0
  7. package/dist/google/gmail.d.ts.map +1 -0
  8. package/dist/google/index.d.ts +5 -0
  9. package/dist/google/index.d.ts.map +1 -0
  10. package/dist/google/shared.d.ts +3 -0
  11. package/dist/google/shared.d.ts.map +1 -0
  12. package/dist/google/sheets.d.ts +2 -0
  13. package/dist/google/sheets.d.ts.map +1 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1724 -67
  16. package/dist/microsoft/credentials.d.ts +15 -0
  17. package/dist/microsoft/credentials.d.ts.map +1 -0
  18. package/dist/microsoft/graph.d.ts +6 -0
  19. package/dist/microsoft/graph.d.ts.map +1 -0
  20. package/dist/microsoft/onedrive.d.ts +4 -0
  21. package/dist/microsoft/onedrive.d.ts.map +1 -0
  22. package/dist/microsoft/outlook.d.ts +4 -0
  23. package/dist/microsoft/outlook.d.ts.map +1 -0
  24. package/dist/microsoft/sharepoint.d.ts +4 -0
  25. package/dist/microsoft/sharepoint.d.ts.map +1 -0
  26. package/dist/microsoft/teams.d.ts +4 -0
  27. package/dist/microsoft/teams.d.ts.map +1 -0
  28. package/dist/subscribe-google.d.ts +2 -0
  29. package/dist/subscribe-google.d.ts.map +1 -0
  30. package/dist/subscribe-microsoft.d.ts +5 -0
  31. package/dist/subscribe-microsoft.d.ts.map +1 -0
  32. package/dist/utils/corsair.d.ts +3 -0
  33. package/dist/utils/corsair.d.ts.map +1 -0
  34. package/dist/utils/load-config.d.ts +6 -0
  35. package/dist/utils/load-config.d.ts.map +1 -0
  36. package/dist/utils/prompts.d.ts +4 -0
  37. package/dist/utils/prompts.d.ts.map +1 -0
  38. package/package.json +2 -2
  39. package/dist/watch-renew.d.ts +0 -4
  40. package/dist/watch-renew.d.ts.map +0 -1
@@ -0,0 +1,15 @@
1
+ import type { CorsairInternalConfig } from 'corsair/core';
2
+ export type MicrosoftAccountKm = {
3
+ set_access_token(value: string | null): Promise<void>;
4
+ set_expires_at(value: string | null): Promise<void>;
5
+ set_refresh_token(value: string | null): Promise<void>;
6
+ set_webhook_signature(value: string | null): Promise<void>;
7
+ };
8
+ export declare function resolveAccessToken(integrationName: string, tenantId: string, internal: CorsairInternalConfig): Promise<{
9
+ accessToken: string;
10
+ accountKm: MicrosoftAccountKm;
11
+ }>;
12
+ export declare function saveWebhookSignature(accountKm: {
13
+ set_webhook_signature(sig: string): Promise<void>;
14
+ }, clientState: string): Promise<void>;
15
+ //# sourceMappingURL=credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../microsoft/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAQ1D,MAAM,MAAM,kBAAkB,GAAG;IAChC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3D,CAAC;AA8BF,wBAAsB,kBAAkB,CACvC,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,qBAAqB,GAC7B,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,kBAAkB,CAAA;CAAE,CAAC,CAsFjE;AAED,wBAAsB,oBAAoB,CACzC,SAAS,EAAE;IAAE,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,EAChE,WAAW,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAKf"}
@@ -0,0 +1,6 @@
1
+ export declare const GRAPH_API_BASE = "https://graph.microsoft.com/v1.0";
2
+ export declare function createGraphSubscription(accessToken: string, notificationUrl: string, resource: string, changeType: string, clientState: string, expiryMinutes: number): Promise<{
3
+ id: string;
4
+ expirationDateTime: string;
5
+ }>;
6
+ //# sourceMappingURL=graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../microsoft/graph.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,qCAAqC,CAAC;AAEjE,wBAAsB,uBAAuB,CAC5C,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACnB,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,CAAC,CA0BrD"}
@@ -0,0 +1,4 @@
1
+ export declare function runOnedriveSubscribe({ cwd }: {
2
+ cwd: string;
3
+ }): Promise<void>;
4
+ //# sourceMappingURL=onedrive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onedrive.d.ts","sourceRoot":"","sources":["../../microsoft/onedrive.ts"],"names":[],"mappings":"AA+CA,wBAAsB,oBAAoB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAkHlF"}
@@ -0,0 +1,4 @@
1
+ export declare function runOutlookSubscribe({ cwd }: {
2
+ cwd: string;
3
+ }): Promise<void>;
4
+ //# sourceMappingURL=outlook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outlook.d.ts","sourceRoot":"","sources":["../../microsoft/outlook.ts"],"names":[],"mappings":"AAiDA,wBAAsB,mBAAmB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAkFjF"}
@@ -0,0 +1,4 @@
1
+ export declare function runSharepointSubscribe({ cwd }: {
2
+ cwd: string;
3
+ }): Promise<void>;
4
+ //# sourceMappingURL=sharepoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sharepoint.d.ts","sourceRoot":"","sources":["../../microsoft/sharepoint.ts"],"names":[],"mappings":"AAmEA,wBAAsB,sBAAsB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAiHpF"}
@@ -0,0 +1,4 @@
1
+ export declare function runTeamsSubscribe({ cwd }: {
2
+ cwd: string;
3
+ }): Promise<void>;
4
+ //# sourceMappingURL=teams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../microsoft/teams.ts"],"names":[],"mappings":"AA+MA,wBAAsB,iBAAiB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAgH/E"}
@@ -0,0 +1,2 @@
1
+ export { runGoogleSubscribe } from './google/index';
2
+ //# sourceMappingURL=subscribe-google.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscribe-google.d.ts","sourceRoot":"","sources":["../subscribe-google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { runOutlookSubscribe } from './microsoft/outlook';
2
+ export { runSharepointSubscribe } from './microsoft/sharepoint';
3
+ export { runTeamsSubscribe } from './microsoft/teams';
4
+ export { runOnedriveSubscribe } from './microsoft/onedrive';
5
+ //# sourceMappingURL=subscribe-microsoft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscribe-microsoft.d.ts","sourceRoot":"","sources":["../subscribe-microsoft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { CorsairInternalConfig } from 'corsair/core';
2
+ export declare function extractInternalConfig(cwd: string): Promise<CorsairInternalConfig>;
3
+ //# sourceMappingURL=corsair.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"corsair.d.ts","sourceRoot":"","sources":["../../utils/corsair.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAI1D,wBAAsB,qBAAqB,CAC1C,GAAG,EAAE,MAAM,GACT,OAAO,CAAC,qBAAqB,CAAC,CAWhC"}
@@ -0,0 +1,6 @@
1
+ import type { CorsairInternalConfig } from 'corsair/core';
2
+ export declare function loadInternalConfig(cwd: string, title: string, pluginId: string, pluginLabel: string): Promise<{
3
+ internal: CorsairInternalConfig;
4
+ plugin: unknown;
5
+ }>;
6
+ //# sourceMappingURL=load-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-config.d.ts","sourceRoot":"","sources":["../../utils/load-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAG1D,wBAAsB,kBAAkB,CACvC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GACjB,OAAO,CAAC;IAAE,QAAQ,EAAE,qBAAqB,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC,CAkC/D"}
@@ -0,0 +1,4 @@
1
+ export declare function promptTenantId(): Promise<string>;
2
+ export declare function promptWebhookUrl(): Promise<string>;
3
+ export declare function promptClientState(): Promise<string>;
4
+ //# sourceMappingURL=prompts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../utils/prompts.ts"],"names":[],"mappings":"AAGA,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAWtD;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAexD;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAYzD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corsair-dev/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "@clack/prompts": "^1.0.0",
24
24
  "c12": "^3.3.3",
25
25
  "zod": "^3.25.76",
26
- "corsair": "0.1.50"
26
+ "corsair": "0.1.54"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/jest": "^29.5.14",
@@ -1,4 +0,0 @@
1
- export declare function runWatchRenew({ cwd }: {
2
- cwd: string;
3
- }): Promise<void>;
4
- //# sourceMappingURL=watch-renew.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watch-renew.d.ts","sourceRoot":"","sources":["../watch-renew.ts"],"names":[],"mappings":"AA0WA,wBAAsB,aAAa,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA4M3E"}