@corsair-dev/cli 0.1.8 → 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.
- package/dist/auth.d.ts.map +1 -1
- package/dist/google/calendar.d.ts +2 -0
- package/dist/google/calendar.d.ts.map +1 -0
- package/dist/google/drive.d.ts +2 -0
- package/dist/google/drive.d.ts.map +1 -0
- package/dist/google/gmail.d.ts +2 -0
- package/dist/google/gmail.d.ts.map +1 -0
- package/dist/google/index.d.ts +5 -0
- package/dist/google/index.d.ts.map +1 -0
- package/dist/google/shared.d.ts +3 -0
- package/dist/google/shared.d.ts.map +1 -0
- package/dist/google/sheets.d.ts +2 -0
- package/dist/google/sheets.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1644 -1238
- package/dist/microsoft/credentials.d.ts +15 -0
- package/dist/microsoft/credentials.d.ts.map +1 -0
- package/dist/microsoft/graph.d.ts +6 -0
- package/dist/microsoft/graph.d.ts.map +1 -0
- package/dist/microsoft/onedrive.d.ts +4 -0
- package/dist/microsoft/onedrive.d.ts.map +1 -0
- package/dist/{subscribe-outlook.d.ts → microsoft/outlook.d.ts} +1 -1
- package/dist/microsoft/outlook.d.ts.map +1 -0
- package/dist/{sharepoint-subscribe.d.ts → microsoft/sharepoint.d.ts} +1 -1
- package/dist/microsoft/sharepoint.d.ts.map +1 -0
- package/dist/microsoft/teams.d.ts +4 -0
- package/dist/microsoft/teams.d.ts.map +1 -0
- package/dist/subscribe-google.d.ts +2 -0
- package/dist/subscribe-google.d.ts.map +1 -0
- package/dist/subscribe-microsoft.d.ts +5 -0
- package/dist/subscribe-microsoft.d.ts.map +1 -0
- package/dist/utils/corsair.d.ts +3 -0
- package/dist/utils/corsair.d.ts.map +1 -0
- package/dist/utils/load-config.d.ts +6 -0
- package/dist/utils/load-config.d.ts.map +1 -0
- package/dist/utils/prompts.d.ts +4 -0
- package/dist/utils/prompts.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/sharepoint-subscribe.d.ts.map +0 -1
- package/dist/subscribe-outlook.d.ts.map +0 -1
- package/dist/watch-renew.d.ts +0 -7
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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.
|
|
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.
|
|
26
|
+
"corsair": "0.1.54"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/jest": "^29.5.14",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sharepoint-subscribe.d.ts","sourceRoot":"","sources":["../sharepoint-subscribe.ts"],"names":[],"mappings":"AAyJA,wBAAsB,sBAAsB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA6OpF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-outlook.d.ts","sourceRoot":"","sources":["../subscribe-outlook.ts"],"names":[],"mappings":"AA6GA,wBAAsB,mBAAmB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAqJjF"}
|
package/dist/watch-renew.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watch-renew.d.ts","sourceRoot":"","sources":["../watch-renew.ts"],"names":[],"mappings":"AAmFA,wBAAsB,iBAAiB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAmK/E;AAqVD,wBAAsB,aAAa,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA4M3E"}
|