@vibesdotdev/integrations-microsoft 1.0.0-rc.0 → 1.0.0-rc.4
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/README.md +3 -3
- package/dist/email/microsoft/microsoft.descriptor.d.ts +1 -1
- package/dist/email/microsoft/microsoft.impl.d.ts +1 -1
- package/dist/integrations-microsoft.plugin.d.ts +1 -1
- package/dist/integrations-microsoft.plugin.d.ts.map +1 -1
- package/dist/integrations-microsoft.plugin.js +3 -3
- package/dist/integrations-microsoft.plugin.js.map +1 -1
- package/dist/microsoft/system.integration.microsoft.delegated.descriptor.d.ts +1 -1
- package/dist/microsoft/system.integration.microsoft.descriptor.d.ts +1 -1
- package/dist/microsoft.app-only.plugin.d.ts +8 -0
- package/dist/microsoft.app-only.plugin.d.ts.map +1 -0
- package/dist/microsoft.app-only.plugin.js +17 -0
- package/dist/microsoft.app-only.plugin.js.map +1 -0
- package/package.json +54 -27
package/README.md
CHANGED
|
@@ -18,9 +18,9 @@ API. Request identity is read on each call. App-only mode uses tenant-wide
|
|
|
18
18
|
Microsoft credentials and still requires Platform actor authorization.
|
|
19
19
|
|
|
20
20
|
Hosts compose `./cloud.plugin` for fetch-only Graph providers and the
|
|
21
|
-
SharePoint adapter, `./
|
|
22
|
-
`./email/plugin` for Outlook. The broad `./plugin` combines the Graph
|
|
23
|
-
|
|
21
|
+
SharePoint adapter, `./app-only.plugin` for app-only execution, and
|
|
22
|
+
`./email/plugin` for Outlook. The broad `./plugin` combines the client, Graph and app-only
|
|
23
|
+
slices, all universal; browser bundles use the client slice. SharePoint's descriptor
|
|
24
24
|
currently admits consumer hardware.
|
|
25
25
|
|
|
26
26
|
Delegated hosts inject the identity owner's authInternalClient.
|
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
baseUrl?: string | undefined;
|
|
38
38
|
config?: Record<string, import("@vibesdotdev/kernel/bootstrap").JsonValue> | undefined;
|
|
39
39
|
protectedConfigKeys?: string[] | undefined;
|
|
40
|
-
configurationSource?: "
|
|
40
|
+
configurationSource?: "host" | "account" | undefined;
|
|
41
41
|
configSettingKey?: string | undefined;
|
|
42
42
|
credentials?: {
|
|
43
43
|
key: string;
|
|
@@ -54,7 +54,7 @@ export declare class OutlookMailIntegration {
|
|
|
54
54
|
enforcedBy?: string | undefined;
|
|
55
55
|
} | undefined;
|
|
56
56
|
baseUrl?: string | undefined;
|
|
57
|
-
configurationSource?: "
|
|
57
|
+
configurationSource?: "host" | "account" | undefined;
|
|
58
58
|
configSettingKey?: string | undefined;
|
|
59
59
|
oauth?: {
|
|
60
60
|
authorizationEndpoint: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** The client, fetch-only Graph and app-only slices together; every slice is universal. Browser bundles compose the client slice. */
|
|
2
2
|
export declare const integrationsMicrosoftPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
3
3
|
export default integrationsMicrosoftPlugin;
|
|
4
4
|
//# sourceMappingURL=integrations-microsoft.plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations-microsoft.plugin.d.ts","sourceRoot":"","sources":["../src/integrations-microsoft.plugin.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"integrations-microsoft.plugin.d.ts","sourceRoot":"","sources":["../src/integrations-microsoft.plugin.ts"],"names":[],"mappings":"AAIA,qIAAqI;AACrI,eAAO,MAAM,2BAA2B,6CAOtC,CAAC;AACH,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRuntimePlugin } from '@vibesdotdev/kernel/factory';
|
|
2
2
|
import client from "./api-client-plugin.js";
|
|
3
3
|
import cloud from "./cloud.plugin.js";
|
|
4
|
-
import
|
|
5
|
-
/**
|
|
4
|
+
import appOnly from "./microsoft.app-only.plugin.js";
|
|
5
|
+
/** The client, fetch-only Graph and app-only slices together; every slice is universal. Browser bundles compose the client slice. */
|
|
6
6
|
export const integrationsMicrosoftPlugin = createRuntimePlugin({
|
|
7
7
|
id: 'integrations-microsoft', name: 'Microsoft 365',
|
|
8
8
|
async onRegister(runtime) {
|
|
9
9
|
await client.onRegister?.(runtime);
|
|
10
10
|
await cloud.onRegister?.(runtime);
|
|
11
|
-
await
|
|
11
|
+
await appOnly.onRegister?.(runtime);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
export default integrationsMicrosoftPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations-microsoft.plugin.js","sourceRoot":"","sources":["../src/integrations-microsoft.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"integrations-microsoft.plugin.js","sourceRoot":"","sources":["../src/integrations-microsoft.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,OAAO,MAAM,gCAAgC,CAAC;AACrD,qIAAqI;AACrI,MAAM,CAAC,MAAM,2BAA2B,GAAC,mBAAmB,CAAC;IAC5D,EAAE,EAAE,wBAAwB,EAAC,IAAI,EAAE,eAAe;IAClD,KAAK,CAAC,UAAU,CAAC,OAAO;QACvB,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC;QAClC,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CACD,CAAC,CAAC;AACH,eAAe,2BAA2B,CAAC"}
|
|
@@ -40,7 +40,7 @@ declare const _default: {
|
|
|
40
40
|
baseUrl?: string | undefined;
|
|
41
41
|
config?: Record<string, import("@vibesdotdev/kernel/bootstrap").JsonValue> | undefined;
|
|
42
42
|
protectedConfigKeys?: string[] | undefined;
|
|
43
|
-
configurationSource?: "
|
|
43
|
+
configurationSource?: "host" | "account" | undefined;
|
|
44
44
|
configSettingKey?: string | undefined;
|
|
45
45
|
credentials?: {
|
|
46
46
|
key: string;
|
|
@@ -24,7 +24,7 @@ declare const _default: {
|
|
|
24
24
|
baseUrl?: string | undefined;
|
|
25
25
|
config?: Record<string, import("@vibesdotdev/kernel/bootstrap").JsonValue> | undefined;
|
|
26
26
|
protectedConfigKeys?: string[] | undefined;
|
|
27
|
-
configurationSource?: "
|
|
27
|
+
configurationSource?: "host" | "account" | undefined;
|
|
28
28
|
configSettingKey?: string | undefined;
|
|
29
29
|
credentials?: {
|
|
30
30
|
key: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App-only provider slice; compose where org-scoped Microsoft operations are
|
|
3
|
+
* enabled. Universal: the provider is fetch-only (Secrets performs the client
|
|
4
|
+
* credentials exchange and sends the Graph request), so it runs on workerd too.
|
|
5
|
+
*/
|
|
6
|
+
export declare const microsoftAppOnlyPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
7
|
+
export default microsoftAppOnlyPlugin;
|
|
8
|
+
//# sourceMappingURL=microsoft.app-only.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoft.app-only.plugin.d.ts","sourceRoot":"","sources":["../src/microsoft.app-only.plugin.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,6CAOjC,CAAC;AACH,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRuntimePlugin, loader } from '@vibesdotdev/kernel/factory';
|
|
2
|
+
import microsoftDescriptor from "./microsoft/system.integration.microsoft.descriptor.js";
|
|
3
|
+
/**
|
|
4
|
+
* App-only provider slice; compose where org-scoped Microsoft operations are
|
|
5
|
+
* enabled. Universal: the provider is fetch-only (Secrets performs the client
|
|
6
|
+
* credentials exchange and sends the Graph request), so it runs on workerd too.
|
|
7
|
+
*/
|
|
8
|
+
export const microsoftAppOnlyPlugin = createRuntimePlugin({
|
|
9
|
+
id: 'integrations-microsoft/app-only', name: 'Microsoft app-only provider',
|
|
10
|
+
descriptors: [microsoftDescriptor],
|
|
11
|
+
loaders: [loader(microsoftDescriptor.id, { kind: 'integration/provider' }, async () => {
|
|
12
|
+
const { MicrosoftIntegration } = await import("./microsoft/microsoft-implementation.js");
|
|
13
|
+
return { default: MicrosoftIntegration };
|
|
14
|
+
})]
|
|
15
|
+
});
|
|
16
|
+
export default microsoftAppOnlyPlugin;
|
|
17
|
+
//# sourceMappingURL=microsoft.app-only.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoft.app-only.plugin.js","sourceRoot":"","sources":["../src/microsoft.app-only.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAC,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,mBAAmB,MAAM,wDAAwD,CAAC;AACzF;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAC,mBAAmB,CAAC;IACvD,EAAE,EAAE,iCAAiC,EAAC,IAAI,EAAE,6BAA6B;IACzE,WAAW,EAAE,CAAC,mBAAmB,CAAC;IAClC,OAAO,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,EAAC,KAAK,IAAI,EAAE;YACnF,MAAM,EAAE,oBAAoB,EAAE,GAAC,MAAM,MAAM,CAAC,yCAAyC,CAAC,CAAC;YACvF,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC;QAC1C,CAAC,CAAC,CAAC;CACH,CAAC,CAAC;AACH,eAAe,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibesdotdev/integrations-microsoft",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.4",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@vibesdotdev/email": "^1.0.0-rc.
|
|
6
|
-
"@vibesdotdev/auth": "^1.0.0-rc.
|
|
7
|
-
"@vibesdotdev/logging": "^1.0.0-rc.
|
|
8
|
-
"@vibesdotdev/kernel": "^1.0.0-rc.
|
|
9
|
-
"@vibesdotdev/integrations": "^1.0.0-rc.
|
|
5
|
+
"@vibesdotdev/email": "^1.0.0-rc.0",
|
|
6
|
+
"@vibesdotdev/auth": "^1.0.0-rc.0",
|
|
7
|
+
"@vibesdotdev/logging": "^1.0.0-rc.0",
|
|
8
|
+
"@vibesdotdev/kernel": "^1.0.0-rc.0",
|
|
9
|
+
"@vibesdotdev/integrations": "^1.0.0-rc.6",
|
|
10
10
|
"@vibesdotdev/platform": "^1.0.0-rc.0",
|
|
11
|
-
"@vibesdotdev/storage": "^1.0.0-rc.
|
|
11
|
+
"@vibesdotdev/storage": "^1.0.0-rc.0",
|
|
12
12
|
"@azure/msal-node": "^5.6.0",
|
|
13
13
|
"zod": "^4.6.7"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@vibesdotdev/storage": "^1.0.0-rc.
|
|
16
|
+
"@vibesdotdev/storage": "^1.0.0-rc.0"
|
|
17
|
+
},
|
|
18
|
+
"gitHead": "319e9e534fac11da0c374ab44efeed6c9722d3ec",
|
|
19
|
+
"_vibes_source": {
|
|
20
|
+
"repo": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
|
|
21
|
+
"sha": "319e9e534fac11da0c374ab44efeed6c9722d3ec",
|
|
22
|
+
"workspaceDigest": "sha256:8b8ee45b589ff2e68fdf4d53033be780df28f330888f64f7c9b5da123b86ca06"
|
|
17
23
|
},
|
|
18
24
|
"main": "./dist/index.js",
|
|
19
25
|
"exports": {
|
|
@@ -101,13 +107,45 @@
|
|
|
101
107
|
"import": "./dist/cloud.plugin.js",
|
|
102
108
|
"default": "./dist/cloud.plugin.js"
|
|
103
109
|
},
|
|
104
|
-
"./
|
|
105
|
-
"bun": "./dist/microsoft.
|
|
106
|
-
"types": "./dist/microsoft.
|
|
107
|
-
"import": "./dist/microsoft.
|
|
108
|
-
"default": "./dist/microsoft.
|
|
110
|
+
"./app-only.plugin": {
|
|
111
|
+
"bun": "./dist/microsoft.app-only.plugin.js",
|
|
112
|
+
"types": "./dist/microsoft.app-only.plugin.d.ts",
|
|
113
|
+
"import": "./dist/microsoft.app-only.plugin.js",
|
|
114
|
+
"default": "./dist/microsoft.app-only.plugin.js"
|
|
109
115
|
}
|
|
110
116
|
},
|
|
117
|
+
"files": [
|
|
118
|
+
"dist",
|
|
119
|
+
"README.md",
|
|
120
|
+
"LICENSE",
|
|
121
|
+
"!**/.turbo/**",
|
|
122
|
+
"!**/.svelte-kit/**",
|
|
123
|
+
"!**/.vibes/**",
|
|
124
|
+
"!**/__tests__/**",
|
|
125
|
+
"!**/__stubs__/**",
|
|
126
|
+
"!**/*.test.js",
|
|
127
|
+
"!**/*.test.mjs",
|
|
128
|
+
"!**/*.test.cjs",
|
|
129
|
+
"!**/*.test.jsx",
|
|
130
|
+
"!**/*.test.ts",
|
|
131
|
+
"!**/*.test.mts",
|
|
132
|
+
"!**/*.test.cts",
|
|
133
|
+
"!**/*.test.tsx",
|
|
134
|
+
"!**/*.spec.js",
|
|
135
|
+
"!**/*.spec.mjs",
|
|
136
|
+
"!**/*.spec.cjs",
|
|
137
|
+
"!**/*.spec.jsx",
|
|
138
|
+
"!**/*.spec.ts",
|
|
139
|
+
"!**/*.spec.mts",
|
|
140
|
+
"!**/*.spec.cts",
|
|
141
|
+
"!**/*.spec.tsx",
|
|
142
|
+
"!**/SPEC.md",
|
|
143
|
+
"!**/tsconfig.json",
|
|
144
|
+
"!**/tsconfig.*.json",
|
|
145
|
+
"!**/*.tsbuildinfo",
|
|
146
|
+
"!**/.build-ok.json",
|
|
147
|
+
"!**/*.tgz"
|
|
148
|
+
],
|
|
111
149
|
"scripts": {
|
|
112
150
|
"lint": "node ../../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs .",
|
|
113
151
|
"test": "${BUN:-bun} test",
|
|
@@ -125,24 +163,13 @@
|
|
|
125
163
|
},
|
|
126
164
|
"vibes": {
|
|
127
165
|
"visibility": "public",
|
|
128
|
-
"handedRuntimeLogging": true,
|
|
129
166
|
"registry": {
|
|
130
167
|
"repositoryId": "70be51c9-5ab7-4d7e-9f47-801cb17720d8",
|
|
131
168
|
"directory": "integrations/microsoft"
|
|
132
|
-
}
|
|
169
|
+
},
|
|
170
|
+
"handedRuntimeLogging": true
|
|
133
171
|
},
|
|
134
172
|
"type": "module",
|
|
135
173
|
"types": "./dist/index.d.ts",
|
|
136
|
-
"license": "BUSL-1.1"
|
|
137
|
-
"files": [
|
|
138
|
-
"dist",
|
|
139
|
-
"README.md",
|
|
140
|
-
"LICENSE"
|
|
141
|
-
],
|
|
142
|
-
"gitHead": "494ddfcab4c073eef61acb182042223d7e4da2e5",
|
|
143
|
-
"_vibes_source": {
|
|
144
|
-
"repo": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
|
|
145
|
-
"sha": "494ddfcab4c073eef61acb182042223d7e4da2e5",
|
|
146
|
-
"workspaceDigest": "sha256:30bc377abd135491a276c5eaeb28772db7398992a75cf10a9f63b574dfa31620"
|
|
147
|
-
}
|
|
174
|
+
"license": "BUSL-1.1"
|
|
148
175
|
}
|