@vibesdotdev/integrations-microsoft 0.0.0-stage → 1.0.0-rc.1

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 (143) hide show
  1. package/LICENSE +126 -0
  2. package/README.md +120 -2
  3. package/dist/api-client-plugin.d.ts +3 -0
  4. package/dist/api-client-plugin.d.ts.map +1 -0
  5. package/dist/api-client-plugin.js +11 -0
  6. package/dist/api-client-plugin.js.map +1 -0
  7. package/dist/client/helper.d.ts +17 -0
  8. package/dist/client/helper.d.ts.map +1 -0
  9. package/dist/client/helper.js +18 -0
  10. package/dist/client/helper.js.map +1 -0
  11. package/dist/client/index.d.ts +3 -0
  12. package/dist/client/index.d.ts.map +1 -0
  13. package/dist/client/index.js +3 -0
  14. package/dist/client/index.js.map +1 -0
  15. package/dist/client/runtime-client.d.ts +87 -0
  16. package/dist/client/runtime-client.d.ts.map +1 -0
  17. package/dist/client/runtime-client.js +47 -0
  18. package/dist/client/runtime-client.js.map +1 -0
  19. package/dist/cloud.plugin.d.ts +3 -0
  20. package/dist/cloud.plugin.d.ts.map +1 -0
  21. package/dist/cloud.plugin.js +19 -0
  22. package/dist/cloud.plugin.js.map +1 -0
  23. package/dist/email/index.d.ts +13 -0
  24. package/dist/email/index.d.ts.map +1 -0
  25. package/dist/email/index.js +13 -0
  26. package/dist/email/index.js.map +1 -0
  27. package/dist/email/microsoft/index.d.ts +4 -0
  28. package/dist/email/microsoft/index.d.ts.map +1 -0
  29. package/dist/email/microsoft/index.js +4 -0
  30. package/dist/email/microsoft/index.js.map +1 -0
  31. package/dist/email/microsoft/microsoft.descriptor.d.ts +85 -0
  32. package/dist/email/microsoft/microsoft.descriptor.d.ts.map +1 -0
  33. package/dist/email/microsoft/microsoft.descriptor.js +79 -0
  34. package/dist/email/microsoft/microsoft.descriptor.js.map +1 -0
  35. package/dist/email/microsoft/microsoft.impl.d.ts +100 -0
  36. package/dist/email/microsoft/microsoft.impl.d.ts.map +1 -0
  37. package/dist/email/microsoft/microsoft.impl.js +323 -0
  38. package/dist/email/microsoft/microsoft.impl.js.map +1 -0
  39. package/dist/email/microsoft/outlook.mime.d.ts +18 -0
  40. package/dist/email/microsoft/outlook.mime.d.ts.map +1 -0
  41. package/dist/email/microsoft/outlook.mime.js +61 -0
  42. package/dist/email/microsoft/outlook.mime.js.map +1 -0
  43. package/dist/email/microsoft-email.plugin.d.ts +10 -0
  44. package/dist/email/microsoft-email.plugin.d.ts.map +1 -0
  45. package/dist/email/microsoft-email.plugin.js +29 -0
  46. package/dist/email/microsoft-email.plugin.js.map +1 -0
  47. package/dist/index.d.ts +9 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +8 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/integrations-microsoft.plugin.d.ts +4 -0
  52. package/dist/integrations-microsoft.plugin.d.ts.map +1 -0
  53. package/dist/integrations-microsoft.plugin.js +15 -0
  54. package/dist/integrations-microsoft.plugin.js.map +1 -0
  55. package/dist/microsoft/graph-drive-fallback.d.ts +11 -0
  56. package/dist/microsoft/graph-drive-fallback.d.ts.map +1 -0
  57. package/dist/microsoft/graph-drive-fallback.js +90 -0
  58. package/dist/microsoft/graph-drive-fallback.js.map +1 -0
  59. package/dist/microsoft/graph-schemas.d.ts +2 -0
  60. package/dist/microsoft/graph-schemas.d.ts.map +1 -0
  61. package/dist/microsoft/graph-schemas.js +2 -0
  62. package/dist/microsoft/graph-schemas.js.map +1 -0
  63. package/dist/microsoft/graph-sharepoint-client.d.ts +219 -0
  64. package/dist/microsoft/graph-sharepoint-client.d.ts.map +1 -0
  65. package/dist/microsoft/graph-sharepoint-client.js +644 -0
  66. package/dist/microsoft/graph-sharepoint-client.js.map +1 -0
  67. package/dist/microsoft/index.d.ts +8 -0
  68. package/dist/microsoft/index.d.ts.map +1 -0
  69. package/dist/microsoft/index.js +8 -0
  70. package/dist/microsoft/index.js.map +1 -0
  71. package/dist/microsoft/microsoft-delegated-implementation.d.ts +20 -0
  72. package/dist/microsoft/microsoft-delegated-implementation.d.ts.map +1 -0
  73. package/dist/microsoft/microsoft-delegated-implementation.js +69 -0
  74. package/dist/microsoft/microsoft-delegated-implementation.js.map +1 -0
  75. package/dist/microsoft/microsoft-implementation.d.ts +22 -0
  76. package/dist/microsoft/microsoft-implementation.d.ts.map +1 -0
  77. package/dist/microsoft/microsoft-implementation.js +78 -0
  78. package/dist/microsoft/microsoft-implementation.js.map +1 -0
  79. package/dist/microsoft/secrets-fetch.d.ts +20 -0
  80. package/dist/microsoft/secrets-fetch.d.ts.map +1 -0
  81. package/dist/microsoft/secrets-fetch.js +47 -0
  82. package/dist/microsoft/secrets-fetch.js.map +1 -0
  83. package/dist/microsoft/sharepoint-operations.d.ts +23 -0
  84. package/dist/microsoft/sharepoint-operations.d.ts.map +1 -0
  85. package/dist/microsoft/sharepoint-operations.js +123 -0
  86. package/dist/microsoft/sharepoint-operations.js.map +1 -0
  87. package/dist/microsoft/system.integration.microsoft.delegated.descriptor.d.ts +85 -0
  88. package/dist/microsoft/system.integration.microsoft.delegated.descriptor.d.ts.map +1 -0
  89. package/dist/microsoft/system.integration.microsoft.delegated.descriptor.js +109 -0
  90. package/dist/microsoft/system.integration.microsoft.delegated.descriptor.js.map +1 -0
  91. package/dist/microsoft/system.integration.microsoft.descriptor.d.ts +69 -0
  92. package/dist/microsoft/system.integration.microsoft.descriptor.d.ts.map +1 -0
  93. package/dist/microsoft/system.integration.microsoft.descriptor.js +114 -0
  94. package/dist/microsoft/system.integration.microsoft.descriptor.js.map +1 -0
  95. package/dist/microsoft.consumer.plugin.d.ts +4 -0
  96. package/dist/microsoft.consumer.plugin.d.ts.map +1 -0
  97. package/dist/microsoft.consumer.plugin.js +13 -0
  98. package/dist/microsoft.consumer.plugin.js.map +1 -0
  99. package/dist/schemas/boundary.d.ts +69 -0
  100. package/dist/schemas/boundary.d.ts.map +1 -0
  101. package/dist/schemas/boundary.js +94 -0
  102. package/dist/schemas/boundary.js.map +1 -0
  103. package/dist/schemas/graph.d.ts +139 -0
  104. package/dist/schemas/graph.d.ts.map +1 -0
  105. package/dist/schemas/graph.js +161 -0
  106. package/dist/schemas/graph.js.map +1 -0
  107. package/dist/schemas/oauth.d.ts +131 -0
  108. package/dist/schemas/oauth.d.ts.map +1 -0
  109. package/dist/schemas/oauth.js +27 -0
  110. package/dist/schemas/oauth.js.map +1 -0
  111. package/dist/schemas/operations.d.ts +239 -0
  112. package/dist/schemas/operations.d.ts.map +1 -0
  113. package/dist/schemas/operations.js +29 -0
  114. package/dist/schemas/operations.js.map +1 -0
  115. package/dist/schemas/outlook.d.ts +241 -0
  116. package/dist/schemas/outlook.d.ts.map +1 -0
  117. package/dist/schemas/outlook.js +29 -0
  118. package/dist/schemas/outlook.js.map +1 -0
  119. package/dist/schemas/sharepoint.d.ts +67 -0
  120. package/dist/schemas/sharepoint.d.ts.map +1 -0
  121. package/dist/schemas/sharepoint.js +71 -0
  122. package/dist/schemas/sharepoint.js.map +1 -0
  123. package/dist/server/oauth.d.ts +9 -0
  124. package/dist/server/oauth.d.ts.map +1 -0
  125. package/dist/server/oauth.js +67 -0
  126. package/dist/server/oauth.js.map +1 -0
  127. package/dist/sharepoint/index.d.ts +11 -0
  128. package/dist/sharepoint/index.d.ts.map +1 -0
  129. package/dist/sharepoint/index.js +11 -0
  130. package/dist/sharepoint/index.js.map +1 -0
  131. package/dist/sharepoint/sharepoint.adapter.descriptor.d.ts +10 -0
  132. package/dist/sharepoint/sharepoint.adapter.descriptor.d.ts.map +1 -0
  133. package/dist/sharepoint/sharepoint.adapter.descriptor.js +32 -0
  134. package/dist/sharepoint/sharepoint.adapter.descriptor.js.map +1 -0
  135. package/dist/sharepoint/sharepoint.adapter.impl.d.ts +195 -0
  136. package/dist/sharepoint/sharepoint.adapter.impl.d.ts.map +1 -0
  137. package/dist/sharepoint/sharepoint.adapter.impl.js +645 -0
  138. package/dist/sharepoint/sharepoint.adapter.impl.js.map +1 -0
  139. package/dist/sharepoint/sharepoint.schemas.d.ts +2 -0
  140. package/dist/sharepoint/sharepoint.schemas.d.ts.map +1 -0
  141. package/dist/sharepoint/sharepoint.schemas.js +2 -0
  142. package/dist/sharepoint/sharepoint.schemas.js.map +1 -0
  143. package/package.json +146 -4
package/LICENSE ADDED
@@ -0,0 +1,126 @@
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: VIBES DEV LLC
6
+ Licensed Work: @vibesdotdev/integrations-microsoft
7
+ The Licensed Work is (c) 2026 VIBES DEV LLC.
8
+ Additional Use Grant: In this grant, "Vibes Platform" means the hosted services VIBES DEV LLC
9
+ operates at vibes.dev and its subdomains.
10
+
11
+ You may make production use of the Licensed Work, including commercial
12
+ use, subject to the limits below. Permitted production use includes:
13
+ building, operating and selling your own applications, agents and services
14
+ on or with the Vibes Platform; self-hosting the Licensed Work for use inside
15
+ your own organization; and providing consulting, integration or development
16
+ services to clients who build on the Vibes Platform.
17
+
18
+ The production use permitted above does not include use that:
19
+
20
+ (a) offers third parties a hosted, managed or embedded service that
21
+ substitutes for the Vibes Platform or a material part of it (including
22
+ agent hosting; fleet, sandbox or container provisioning; package
23
+ registry; source hosting and continuous integration; and managed AI,
24
+ storage, secrets or messaging), where the Licensed Work provides a
25
+ material part of that service's value and that service earns more than
26
+ US$1,000,000 in gross revenue in any twelve-month period;
27
+ (b) sells, rents, sublicenses or white-labels the Licensed Work, or access
28
+ to Vibes Platform functionality, as a product in its own right;
29
+ (c) removes, disables or works around entitlement checks, usage metering,
30
+ quotas or plan limits, or reaches Vibes Platform features the user's
31
+ account is not entitled to;
32
+ (d) scrapes, bulk-exports or harvests data or content from the Vibes
33
+ Platform or its users other than through documented interfaces and
34
+ within their terms, or uses outputs or data obtained from the Vibes
35
+ Platform to train or improve a product that competes with it;
36
+ (e) violates applicable law, infringes anyone's rights, commits fraud or
37
+ deception, conducts unlawful surveillance or harassment, distributes
38
+ malware, or accesses systems without authorization; or
39
+ (f) violates applicable antitrust or competition law.
40
+
41
+ A written permission from the Licensor extends this grant.
42
+ Change Date: Four years from the date the Licensed Work is published.
43
+ Change License: MIT
44
+
45
+ For information about alternative licensing arrangements for the Licensed Work,
46
+ contact VIBES DEV LLC through https://vibes.dev.
47
+
48
+ Notice
49
+
50
+ The Business Source License (this document, or the "License") is not an Open
51
+ Source license. However, the Licensed Work will eventually be made available
52
+ under an Open Source License, as stated in this License.
53
+
54
+ -----------------------------------------------------------------------------
55
+
56
+ Business Source License 1.1
57
+
58
+ License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
59
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
60
+
61
+ Terms
62
+
63
+ The Licensor hereby grants you the right to copy, modify, create derivative
64
+ works, redistribute, and make non-production use of the Licensed Work. The
65
+ Licensor may make an Additional Use Grant, above, permitting limited
66
+ production use.
67
+
68
+ Effective on the Change Date, or the fourth anniversary of the first publicly
69
+ available distribution of a specific version of the Licensed Work under this
70
+ License, whichever comes first, the Licensor hereby grants you rights under
71
+ the terms of the Change License, and the rights granted in the paragraph
72
+ above terminate.
73
+
74
+ If your use of the Licensed Work does not comply with the requirements
75
+ currently in effect as described in this License, you must purchase a
76
+ commercial license from the Licensor, its affiliated entities, or authorized
77
+ resellers, or you must refrain from using the Licensed Work.
78
+
79
+ All copies of the original and modified Licensed Work, and derivative works
80
+ of the Licensed Work, are subject to this License. This License applies
81
+ separately for each version of the Licensed Work and the Change Date may vary
82
+ for each version of the Licensed Work released by Licensor.
83
+
84
+ You must conspicuously display this License on each original or modified copy
85
+ of the Licensed Work. If you receive the Licensed Work in original or
86
+ modified form from a third party, the terms and conditions set forth in this
87
+ License apply to your use of that work.
88
+
89
+ Any use of the Licensed Work in violation of this License will automatically
90
+ terminate your rights under this License for the current and all other
91
+ versions of the Licensed Work.
92
+
93
+ This License does not grant you any right in any trademark or logo of
94
+ Licensor or its affiliates (provided that you may use a trademark or logo of
95
+ Licensor as expressly required by this License).
96
+
97
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
98
+ AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
99
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
100
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
101
+ TITLE.
102
+
103
+ MariaDB hereby grants you permission to use this License’s text to license
104
+ your works, and to refer to it using the trademark “Business Source License”,
105
+ as long as you comply with the Covenants of Licensor below.
106
+
107
+ Covenants of Licensor
108
+
109
+ In consideration of the right to use this License’s text and the “Business
110
+ Source License” name and trademark, Licensor covenants to MariaDB, and to all
111
+ other recipients of the licensed work to be provided by Licensor:
112
+
113
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
114
+ or a license that is compatible with GPL Version 2.0 or a later version,
115
+ where “compatible” means that software provided under the Change License can
116
+ be included in a program with software provided under GPL Version 2.0 or a
117
+ later version. Licensor may specify additional Change Licenses without
118
+ limitation.
119
+
120
+ 2. To either: (a) specify an additional grant of rights to use that does not
121
+ impose any additional restriction on the right granted in this License, as
122
+ the Additional Use Grant; or (b) insert the text “None”.
123
+
124
+ 3. To specify a Change Date.
125
+
126
+ 4. Not to modify this License in any other way.
package/README.md CHANGED
@@ -1,3 +1,121 @@
1
- # Temporary Holding Version
1
+ # @vibesdotdev/integrations-microsoft
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Microsoft Graph, SharePoint, OneDrive and Outlook through the Vibes runtime.
4
+
5
+ Compose `@vibesdotdev/integrations-microsoft/api-client-plugin` in consumers,
6
+ then use the runtime-owned client:
7
+
8
+ ```ts
9
+ import { getVibesMicrosoftClient } from '@vibesdotdev/integrations-microsoft/client';
10
+
11
+ const microsoft = await getVibesMicrosoftClient(runtime);
12
+ const sites = await microsoft.sites.list();
13
+ const children = await microsoft.drives.children(sites[0].id);
14
+ ```
15
+
16
+ The client defaults to delegated access and dispatches through Platform's internal
17
+ API. Request identity is read on each call. App-only mode uses tenant-wide
18
+ Microsoft credentials and still requires Platform actor authorization.
19
+
20
+ Hosts compose `./cloud.plugin` for fetch-only Graph providers and the
21
+ SharePoint adapter, `./consumer.plugin` for app-only execution, and
22
+ `./email/plugin` for Outlook. The broad `./plugin` combines the Graph slices for
23
+ Node hosts; browser and Worker bundles use narrow slices. SharePoint's descriptor
24
+ currently admits consumer hardware.
25
+
26
+ Delegated hosts inject the identity owner's authInternalClient.
27
+ The provider passes an OAuth-account reference to Secrets, which applies the
28
+ current token to each Graph request. Sign-in, refresh and disconnect stay with
29
+ the identity owner. App-only hosts inject the integration store and declare
30
+ clientId, clientSecret and tenantId references. Secrets performs the client
31
+ credentials exchange and sends the Graph request; tokens do not enter provider
32
+ code. The tenant host reference is restricted to the configured home org or an
33
+ invocation without an org.
34
+
35
+ SharePoint supports browsing, recursive search, document and object storage.
36
+ Document listings validate against the supplied schema; they are not persisted
37
+ configuration. Object URLs prefer Graph's temporary signed download URL and fall back to proxy serving when Graph supplies no URL. Repository, record, key-value,
38
+ transactions, bulk document save/delete and SQL are unsupported.
39
+
40
+ Outlook selected-account operations use an authorized saved connection and pass
41
+ its credential reference to Secrets. Sender mismatches refuse; sending requires
42
+ a real Graph message receipt. Portable OAuth exchange and credential replacement helpers live at
43
+ `./server/oauth`; omitted refresh tokens preserve existing credentials.
44
+
45
+ See [SPEC.md](SPEC.md) for exports, operations, typed refusal codes and hosting
46
+ contracts. Run `bun run check`, `bun run test`, and `bun run build` from this
47
+ package. The owning workspace rules and oxlint ratchet complete verification.
48
+
49
+ ## Credential-owner composition
50
+
51
+ The delegated provider uses `oauthDefaultAccountCredentialReference` from Auth;
52
+ explicit saved Outlook connections use the Core store's authorized
53
+ `loadConnectionReferences` port. Integration connection ids are never treated as
54
+ Auth provider account ids. Auth's API client plugin must be composed by the host,
55
+ along with Secrets and the current verified request principal. Anonymous and
56
+ unsupported delegated principals cannot borrow a human account. Auth owns refresh;
57
+ the connector supplies no feature-readable refresh-token reference.
58
+
59
+ App-only operations forward declared client/secret/tenant references through the
60
+ existing Secrets authenticated-request binding. Secrets sends the form-auth
61
+ `client_credentials` grant and applies the Bearer token. The Microsoft module is
62
+ a pure transport adapter; it holds no token cache and resolves no credentials.
63
+ Direct callers of the legacy low-level Graph client retain their explicit token
64
+ acquirer. Hosted calls leave Authorization to Secrets and preserve explicit
65
+ redirect refusal, string request bodies and replayable Blob uploads.
66
+
67
+ The composed proof uses real Auth, Secrets, Core persistence and provider owners
68
+ with far managed-vault JSON and vendor/Auth HTTP fixtures. It does not establish
69
+ production encryption, deployed authentication or remote provider acceptance.
70
+
71
+ ## Credential API migration
72
+
73
+ Provider `acquireToken()` and `getMsalConfiguration()` are replaced by declared
74
+ `invokeOperation(operationId, args)` calls. Custom Graph requests use
75
+ `getCredentialUseConfiguration()` and Core's
76
+ `sendIntegrationAuthenticatedRequest`; app-only callers supply its existing
77
+ `oauth-client-credentials` binding with the returned client/secret/tenant
78
+ candidates, Microsoft token endpoint and declared scopes. Nonempty admitted
79
+ config.tenantId takes precedence as an encoded public endpoint segment; only a
80
+ blank config tenant falls back to the tenant credential reference. No provider
81
+ token-value replacement is exposed.
82
+
83
+ Delegated `getCredentials()` now returns an empty object and
84
+ `getCredential(key)` returns undefined. `getResolvedConfiguration()` contains
85
+ empty `credentials` and reference-only `credentialReferences`. Migrate value
86
+ reads to owner-bound use, inside the authenticated invocation:
87
+
88
+ ```ts
89
+ import { sendIntegrationAuthenticatedRequest } from '@vibesdotdev/integrations/server/secrets';
90
+ import type { IntegrationProviderDescriptor, IntegrationProviderImplementation } from '@vibesdotdev/integrations/schemas/integration-descriptor';
91
+
92
+ const provider = await runtime.query<IntegrationProviderDescriptor, IntegrationProviderImplementation>('integration/provider')
93
+ .withId('integration.microsoft.delegated').resolve();
94
+ if (!provider.getCredentialUseConfiguration) throw new Error('Reference delivery unavailable');
95
+ const configuration = await provider.getCredentialUseConfiguration();
96
+ const candidates = configuration.credentialReferences.accessToken ?? [];
97
+ const response = await sendIntegrationAuthenticatedRequest(runtime, {
98
+ url: 'https://graph.microsoft.com/v1.0/me/drive',
99
+ options: {
100
+ method: 'GET',
101
+ credentialBindings: [{ kind: 'header', header: 'authorization', prefix: 'Bearer ', candidates }]
102
+ }
103
+ });
104
+ // Consume or cancel response.body before leaving the operation.
105
+ const drive = await response.json();
106
+ ```
107
+
108
+ Low-level `GraphSharePointClient({ integration: customTokenAcquirer, fetchFn })`
109
+ remains supported for explicit direct callers. Hosted Graph clients use the
110
+ reference-owned transport. Binary reads first request Graph item metadata and
111
+ then fetch its preauthenticated download URL without Authorization, through the
112
+ same request owner for cancellation and body lifetime. Secrets' cross-origin
113
+ credential redirect refusal remains unchanged. Missing file metadata can yield
114
+ absence; failed reads or body cleanup remain failures.
115
+
116
+ When Graph omits the metadata download annotation, object-store proxy reads
117
+ request `/content` with explicit manual redirect handling. The Graph response
118
+ is closed before the preauthenticated Location is requested separately without
119
+ credentials. A direct 200 body remains supported. This preserves `url()` proxy
120
+ results through `get()`; failed Graph body cleanup never becomes absence or a
121
+ second request. Automatic credential redirects remain restricted by Secrets.
@@ -0,0 +1,3 @@
1
+ export declare const microsoftClientPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
2
+ export default microsoftClientPlugin;
3
+ //# sourceMappingURL=api-client-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-client-plugin.d.ts","sourceRoot":"","sources":["../src/api-client-plugin.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB,6CAOhC,CAAC;AACH,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { createRuntimePlugin, loader } from '@vibesdotdev/kernel/factory';
2
+ export const microsoftClientPlugin = createRuntimePlugin({
3
+ id: 'integrations-microsoft/client', name: 'Microsoft runtime client',
4
+ descriptors: [{ id: 'microsoft', kind: 'runtime/client', description: 'Microsoft 365 operation dispatch client' }],
5
+ loaders: [loader('microsoft', { kind: 'runtime/client' }, async () => {
6
+ const { MicrosoftClient } = await import("./client/runtime-client.js");
7
+ return { impl: MicrosoftClient };
8
+ })]
9
+ });
10
+ export default microsoftClientPlugin;
11
+ //# sourceMappingURL=api-client-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-client-plugin.js","sourceRoot":"","sources":["../src/api-client-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAC,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACzE,MAAM,CAAC,MAAM,qBAAqB,GAAC,mBAAmB,CAAC;IACtD,EAAE,EAAE,+BAA+B,EAAC,IAAI,EAAE,0BAA0B;IACpE,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,WAAW,EAAC,IAAI,EAAE,gBAAgB,EAAC,WAAW,EAAE,yCAAyC,EAAE,CAAC;IAChH,OAAO,EAAE,CAAC,MAAM,CAAC,WAAW,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAC,KAAK,IAAI,EAAE;YAClE,MAAM,EAAE,eAAe,EAAE,GAAC,MAAM,MAAM,CAAC,4BAA4B,CAAC,CAAC;YACrE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;QAClC,CAAC,CAAC,CAAC;CACH,CAAC,CAAC;AACH,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { VibesRuntime } from '@vibesdotdev/kernel';
2
+ import type { MicrosoftClient } from './runtime-client.ts';
3
+ /**
4
+ * Resolve the canonical `MicrosoftClient`.
5
+ *
6
+ * Equivalent to `runtime.query('runtime/client').withId('microsoft').resolve()`.
7
+ * Requires the integrations-microsoft plugin to be composed into the runtime.
8
+ *
9
+ * ```ts
10
+ * import { getVibesMicrosoftClient } from '@vibesdotdev/integrations-microsoft/client';
11
+ * const ms = await getVibesMicrosoftClient(runtime);
12
+ * const sites = await ms.sites.list();
13
+ * const items = await ms.drives.children(sites[0].id, 'Drawings');
14
+ * ```
15
+ */
16
+ export declare function getVibesMicrosoftClient(runtime: VibesRuntime): Promise<MicrosoftClient>;
17
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/client/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAE7F"}
@@ -0,0 +1,18 @@
1
+ import { getVibesClient } from '@vibesdotdev/kernel/client';
2
+ /**
3
+ * Resolve the canonical `MicrosoftClient`.
4
+ *
5
+ * Equivalent to `runtime.query('runtime/client').withId('microsoft').resolve()`.
6
+ * Requires the integrations-microsoft plugin to be composed into the runtime.
7
+ *
8
+ * ```ts
9
+ * import { getVibesMicrosoftClient } from '@vibesdotdev/integrations-microsoft/client';
10
+ * const ms = await getVibesMicrosoftClient(runtime);
11
+ * const sites = await ms.sites.list();
12
+ * const items = await ms.drives.children(sites[0].id, 'Drawings');
13
+ * ```
14
+ */
15
+ export async function getVibesMicrosoftClient(runtime) {
16
+ return getVibesClient('microsoft', runtime);
17
+ }
18
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/client/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,OAAqB;IAClE,OAAO,cAAc,CAAkB,WAAW,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { MicrosoftClient } from './runtime-client.ts';
2
+ export { getVibesMicrosoftClient } from './helper.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { MicrosoftClient } from "./runtime-client.js";
2
+ export { getVibesMicrosoftClient } from "./helper.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,87 @@
1
+ import type { KindContext, VibesRuntime } from '@vibesdotdev/kernel';
2
+ import { BaseRuntimeClient, type RuntimeClientDescriptor } from '@vibesdotdev/kernel/client';
3
+ import { type PlatformInternalIntegrationInvokeInput } from '@vibesdotdev/platform/internal-api';
4
+ import * as z from 'zod/v4';
5
+ import { type MicrosoftClientMode } from '../schemas/operations.ts';
6
+ export type { MicrosoftClientMode } from '../schemas/operations.ts';
7
+ /** Runtime-owned Microsoft client. App-only changes Graph credentials; Platform still authorizes the actor. */
8
+ export declare class MicrosoftClient extends BaseRuntimeClient {
9
+ private mode;
10
+ readonly sites: {
11
+ list: () => Promise<{
12
+ id: string;
13
+ name: string;
14
+ webUrl: string;
15
+ }[]>;
16
+ };
17
+ readonly drives: {
18
+ children: (siteId: string, folderPath?: string) => Promise<{
19
+ id: string;
20
+ name: string;
21
+ size: number;
22
+ lastModified: string;
23
+ mimeType: string;
24
+ isFolder: boolean;
25
+ webUrl?: string | undefined;
26
+ }[]>;
27
+ childrenById: (siteId: string, itemId: string) => Promise<{
28
+ id: string;
29
+ name: string;
30
+ size: number;
31
+ lastModified: string;
32
+ mimeType: string;
33
+ isFolder: boolean;
34
+ webUrl?: string | undefined;
35
+ }[]>;
36
+ getDownloadUrl: (siteId: string, itemId: string) => Promise<{
37
+ url: string;
38
+ expiresAt: string | null;
39
+ }>;
40
+ };
41
+ constructor(descriptor?: RuntimeClientDescriptor, context?: KindContext, runtime?: VibesRuntime);
42
+ getMode(): MicrosoftClientMode;
43
+ setMode(mode: MicrosoftClientMode): void;
44
+ get integrationId(): string;
45
+ /** Dispatch all supported operations, validating the operation-specific result. */
46
+ invoke(operationId: string, args?: PlatformInternalIntegrationInvokeInput['args'], authority?: Omit<PlatformInternalIntegrationInvokeInput, 'integrationId' | 'operationId' | 'args'>): Promise<{
47
+ id: string;
48
+ name: string;
49
+ size: number;
50
+ lastModified: string;
51
+ mimeType: string;
52
+ isFolder: boolean;
53
+ webUrl?: string | undefined;
54
+ } | {
55
+ url: string;
56
+ expiresAt: string | null;
57
+ } | {
58
+ ok: true;
59
+ itemId: string;
60
+ } | {
61
+ id: string;
62
+ name: string;
63
+ webUrl: string;
64
+ }[] | {
65
+ id: string;
66
+ name: string;
67
+ size: number;
68
+ lastModified: string;
69
+ mimeType: string;
70
+ isFolder: boolean;
71
+ webUrl?: string | undefined;
72
+ }[] | {
73
+ id: string;
74
+ name: string;
75
+ size: number;
76
+ lastModified: string;
77
+ mimeType: string;
78
+ isFolder: boolean;
79
+ parentPath: string;
80
+ parentId: string;
81
+ siteId: string;
82
+ webUrl?: string | undefined;
83
+ }[]>;
84
+ /** Extension operations require their owning result schema rather than a caller's arbitrary T assertion. */
85
+ invokeValidated<T>(operationId: string, args: PlatformInternalIntegrationInvokeInput['args'], schema: z.ZodType<T>, authority?: Omit<PlatformInternalIntegrationInvokeInput, 'integrationId' | 'operationId' | 'args'>): Promise<T>;
86
+ }
87
+ //# sourceMappingURL=runtime-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-client.d.ts","sourceRoot":"","sources":["../../src/client/runtime-client.ts"],"names":[],"mappings":"AAAA,OAAO,K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AI,CAAC,sCAAsC,EAAC,eAAe,GAAC,aAAa,GAAC,MAAM,CAAC,GAC3F,OAAO,CAAC,CAAC,CAAC;CAcb"}
@@ -0,0 +1,47 @@
1
+ import { CapabilityError } from '@vibesdotdev/kernel';
2
+ import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
3
+ import { getVibesPlatformInternalClient } from '@vibesdotdev/platform/internal-api';
4
+ import * as z from 'zod/v4';
5
+ import { admitMicrosoft, IdentitySchema, OptionalIdentitySchema, optionalMicrosoftContext } from "../schemas/boundary.js";
6
+ import { MicrosoftClientModeSchema, MicrosoftOperationSchemas, MicrosoftSharePointOperationIdSchema, MicrosoftOperationInputSchema } from "../schemas/operations.js";
7
+ /** Runtime-owned Microsoft client. App-only changes Graph credentials; Platform still authorizes the actor. */
8
+ export class MicrosoftClient extends BaseRuntimeClient {
9
+ mode = 'delegated';
10
+ sites = { list: () => this.invoke('listSites').then(data => admitMicrosoft(MicrosoftOperationSchemas.listSites.output, data)) };
11
+ drives = {
12
+ children: (siteId, folderPath) => this.invoke('browseDrive', { siteId, folderPath }).then(data => admitMicrosoft(MicrosoftOperationSchemas.browseDrive.output, data)),
13
+ childrenById: (siteId, itemId) => this.invoke('browseDriveItem', { siteId, itemId }).then(data => admitMicrosoft(MicrosoftOperationSchemas.browseDriveItem.output, data)),
14
+ getDownloadUrl: (siteId, itemId) => this.invoke('getDownloadUrl', { siteId, itemId }).then(data => admitMicrosoft(MicrosoftOperationSchemas.getDownloadUrl.output, data))
15
+ };
16
+ constructor(descriptor = { id: 'microsoft', kind: 'runtime/client' }, context, runtime) {
17
+ super(descriptor, context, runtime);
18
+ }
19
+ getMode() { return this.mode; }
20
+ setMode(mode) { this.mode = admitMicrosoft(MicrosoftClientModeSchema, mode); }
21
+ get integrationId() { return this.mode === 'delegated' ? 'integration.microsoft.delegated' : 'integration.microsoft'; }
22
+ /** Dispatch all supported operations, validating the operation-specific result. */
23
+ async invoke(operationId, args, authority) {
24
+ const id = admitMicrosoft(MicrosoftSharePointOperationIdSchema, operationId);
25
+ const contract = MicrosoftOperationSchemas[id];
26
+ const input = admitMicrosoft(contract.input, args);
27
+ const result = await this.invokeValidated(operationId, input, contract.output, authority);
28
+ return result;
29
+ }
30
+ /** Extension operations require their owning result schema rather than a caller's arbitrary T assertion. */
31
+ async invokeValidated(operationId, args, schema, authority) {
32
+ // Delegated identity always comes from the current request, including on a cached client.
33
+ const userId = admitMicrosoft(IdentitySchema, this.mode === 'delegated' || !authority
34
+ ? await this.runtime.context('userId') : authority.userId);
35
+ const organizationId = authority?.organizationId ?? admitMicrosoft(OptionalIdentitySchema, await optionalMicrosoftContext(this.runtime, 'orgId'));
36
+ const client = await getVibesPlatformInternalClient(this.runtime);
37
+ const result = await client.integrations.invoke({
38
+ ...authority, userId, organizationId, integrationId: this.integrationId, operationId, args
39
+ }, schema);
40
+ if (!result.ok)
41
+ throw new CapabilityError('Microsoft operation was refused.', 'UNAVAILABLE', {
42
+ reason: 'microsoft-operation-refused', details: { errorCount: result.errors.length }
43
+ });
44
+ return admitMicrosoft(schema, result.data);
45
+ }
46
+ }
47
+ //# sourceMappingURL=runtime-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-client.js","sourceRoot":"","sources":["../../src/client/runtime-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAA+B,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,8BAA8B,EAA8C,MAAM,oCAAoC,CAAC;AAChI,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAC,cAAc,EAAC,sBAAsB,EAAC,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvH,OAAO,EAAE,yBAAyB,EAAC,yBAAyB,EAAC,oCAAoC,EAA+B,6BAA6B,EAA2B,MAAM,0BAA0B,CAAC;AAGzN,+GAA+G;AAC/G,MAAM,OAA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M,8BAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChE,MAAM,MAAM,GAAC,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC;YAC7C,GAAG,SAAS,EAAC,MAAM,EAAC,cAAc,EAAC,aAAa,EAAE,IAAI,CAAC,aAAa,EAAC,WAAW,EAAC,IAAI;SACrF,EAAC,MAAM,CAAC,CAAC;QACV,IAAG,CAAC,MAAM,CAAC,EAAE;YAAE,MAAM,IAAI,eAAe,CAAC,kCAAkC,EAAC,aAAa,EAAC;gBACzF,MAAM,EAAE,6BAA6B,EAAC,OAAO,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;aACnF,CAAC,CAAC;QACH,OAAO,cAAc,CAAC,MAAM,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CACD"}
@@ -0,0 +1,3 @@
1
+ export declare const microsoftCloudPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
2
+ export default microsoftCloudPlugin;
3
+ //# sourceMappingURL=cloud.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud.plugin.d.ts","sourceRoot":"","sources":["../src/cloud.plugin.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,6CAa/B,CAAC;AACH,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { createRuntimePlugin, loader } from '@vibesdotdev/kernel/factory';
2
+ import microsoftDelegatedDescriptor from "./microsoft/system.integration.microsoft.delegated.descriptor.js";
3
+ import sharepointAdapterDescriptor from "./sharepoint/sharepoint.adapter.descriptor.js";
4
+ export const microsoftCloudPlugin = createRuntimePlugin({
5
+ id: 'integrations-microsoft/cloud', name: 'Microsoft Graph providers',
6
+ descriptors: [microsoftDelegatedDescriptor, sharepointAdapterDescriptor],
7
+ loaders: [
8
+ loader(microsoftDelegatedDescriptor.id, { kind: 'integration/provider' }, async () => {
9
+ const { MicrosoftDelegatedIntegration } = await import("./microsoft/microsoft-delegated-implementation.js");
10
+ return { default: MicrosoftDelegatedIntegration };
11
+ }),
12
+ loader(sharepointAdapterDescriptor.id, { kind: 'storage/adapter' }, async () => {
13
+ const { createSharePointAdapterImplementation } = await import("./sharepoint/sharepoint.adapter.impl.js");
14
+ return createSharePointAdapterImplementation();
15
+ })
16
+ ]
17
+ });
18
+ export default microsoftCloudPlugin;
19
+ //# sourceMappingURL=cloud.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud.plugin.js","sourceRoot":"","sources":["../src/cloud.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAC,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,4BAA4B,MAAM,kEAAkE,CAAC;AAC5G,OAAO,2BAA2B,MAAM,+CAA+C,CAAC;AACxF,MAAM,CAAC,MAAM,oBAAoB,GAAC,mBAAmB,CAAC;IACrD,EAAE,EAAE,8BAA8B,EAAC,IAAI,EAAE,2BAA2B;IACpE,WAAW,EAAE,CAAC,4BAA4B,EAAC,2BAA2B,CAAC;IACvE,OAAO,EAAE;QACR,MAAM,CAAC,4BAA4B,CAAC,EAAE,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,EAAC,KAAK,IAAI,EAAE;YAClF,MAAM,EAAE,6BAA6B,EAAE,GAAC,MAAM,MAAM,CAAC,mDAAmD,CAAC,CAAC;YAC1G,OAAO,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;QACnD,CAAC,CAAC;QACF,MAAM,CAAC,2BAA2B,CAAC,EAAE,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAC,KAAK,IAAI,EAAE;YAC5E,MAAM,EAAE,qCAAqC,EAAE,GAAC,MAAM,MAAM,CAAC,yCAAyC,CAAC,CAAC;YACxG,OAAO,qCAAqC,EAAE,CAAC;QAChD,CAAC,CAAC;KACF;CACD,CAAC,CAAC;AACH,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @vibesdotdev/integrations-microsoft/email
3
+ *
4
+ * Outlook feature pack. Registers an `integration/provider`
5
+ * (`integration.email.microsoft`, `category: 'email'`) that talks to Microsoft
6
+ * Graph mail with the existing Microsoft OAuth access token. Picked up by
7
+ * `packages/email`'s `EmailClient` at dispatch time. Not a host and not a
8
+ * separate SKU.
9
+ */
10
+ export { default as microsoftEmailPlugin } from './microsoft-email.plugin.ts';
11
+ export { default } from './microsoft-email.plugin.ts';
12
+ export { outlookMailDescriptor, OutlookMailIntegration } from './microsoft/index.ts';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/email/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @vibesdotdev/integrations-microsoft/email
3
+ *
4
+ * Outlook feature pack. Registers an `integration/provider`
5
+ * (`integration.email.microsoft`, `category: 'email'`) that talks to Microsoft
6
+ * Graph mail with the existing Microsoft OAuth access token. Picked up by
7
+ * `packages/email`'s `EmailClient` at dispatch time. Not a host and not a
8
+ * separate SKU.
9
+ */
10
+ export { default as microsoftEmailPlugin } from "./microsoft-email.plugin.js";
11
+ export { default } from "./microsoft-email.plugin.js";
12
+ export { outlookMailDescriptor, OutlookMailIntegration } from "./microsoft/index.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/email/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as outlookMailDescriptor } from './microsoft.descriptor.ts';
2
+ export { OutlookMailIntegration } from './microsoft.impl.ts';
3
+ export { default as outlookMailImpl } from './microsoft.impl.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/email/microsoft/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as outlookMailDescriptor } from "./microsoft.descriptor.js";
2
+ export { OutlookMailIntegration } from "./microsoft.impl.js";
3
+ export { default as outlookMailImpl } from "./microsoft.impl.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/email/microsoft/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC"}