@vibesdotdev/integrations-miro 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.
- package/LICENSE +126 -0
- package/README.md +52 -2
- package/dist/client/helper.d.ts +5 -0
- package/dist/client/helper.d.ts.map +1 -0
- package/dist/client/helper.js +6 -0
- package/dist/client/helper.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/runtime-client.d.ts +36 -0
- package/dist/client/runtime-client.d.ts.map +1 -0
- package/dist/client/runtime-client.js +108 -0
- package/dist/client/runtime-client.js.map +1 -0
- package/dist/docs/integrations-miro.docs.descriptor.d.ts +19 -0
- package/dist/docs/integrations-miro.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/integrations-miro.docs.descriptor.js +47 -0
- package/dist/docs/integrations-miro.docs.descriptor.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations-miro.plugin.d.ts +4 -0
- package/dist/integrations-miro.plugin.d.ts.map +1 -0
- package/dist/integrations-miro.plugin.js +22 -0
- package/dist/integrations-miro.plugin.js.map +1 -0
- package/dist/miro/errors.d.ts +10 -0
- package/dist/miro/errors.d.ts.map +1 -0
- package/dist/miro/errors.js +23 -0
- package/dist/miro/errors.js.map +1 -0
- package/dist/miro/index.d.ts +7 -0
- package/dist/miro/index.d.ts.map +1 -0
- package/dist/miro/index.js +5 -0
- package/dist/miro/index.js.map +1 -0
- package/dist/miro/miro-client.d.ts +22 -0
- package/dist/miro/miro-client.d.ts.map +1 -0
- package/dist/miro/miro-client.js +225 -0
- package/dist/miro/miro-client.js.map +1 -0
- package/dist/miro/miro-implementation.d.ts +17 -0
- package/dist/miro/miro-implementation.d.ts.map +1 -0
- package/dist/miro/miro-implementation.js +108 -0
- package/dist/miro/miro-implementation.js.map +1 -0
- package/dist/miro/miro-schemas.d.ts +2 -0
- package/dist/miro/miro-schemas.d.ts.map +1 -0
- package/dist/miro/miro-schemas.js +2 -0
- package/dist/miro/miro-schemas.js.map +1 -0
- package/dist/miro/system.integration.miro.descriptor.d.ts +69 -0
- package/dist/miro/system.integration.miro.descriptor.d.ts.map +1 -0
- package/dist/miro/system.integration.miro.descriptor.js +109 -0
- package/dist/miro/system.integration.miro.descriptor.js.map +1 -0
- package/dist/miro.catalog.plugin.d.ts +78 -0
- package/dist/miro.catalog.plugin.d.ts.map +1 -0
- package/dist/miro.catalog.plugin.js +21 -0
- package/dist/miro.catalog.plugin.js.map +1 -0
- package/dist/miro.client.plugin.d.ts +9 -0
- package/dist/miro.client.plugin.d.ts.map +1 -0
- package/dist/miro.client.plugin.js +38 -0
- package/dist/miro.client.plugin.js.map +1 -0
- package/dist/schemas/http.d.ts +42 -0
- package/dist/schemas/http.d.ts.map +1 -0
- package/dist/schemas/http.js +33 -0
- package/dist/schemas/http.js.map +1 -0
- package/dist/schemas/miro.d.ts +445 -0
- package/dist/schemas/miro.d.ts.map +1 -0
- package/dist/schemas/miro.js +171 -0
- package/dist/schemas/miro.js.map +1 -0
- package/dist/schemas/oauth.d.ts +136 -0
- package/dist/schemas/oauth.d.ts.map +1 -0
- package/dist/schemas/oauth.js +42 -0
- package/dist/schemas/oauth.js.map +1 -0
- package/dist/schemas/operations.d.ts +540 -0
- package/dist/schemas/operations.d.ts.map +1 -0
- package/dist/schemas/operations.js +58 -0
- package/dist/schemas/operations.js.map +1 -0
- package/dist/schemas/sync.d.ts +340 -0
- package/dist/schemas/sync.d.ts.map +1 -0
- package/dist/schemas/sync.js +40 -0
- package/dist/schemas/sync.js.map +1 -0
- package/dist/schemas/tools.d.ts +533 -0
- package/dist/schemas/tools.d.ts.map +1 -0
- package/dist/schemas/tools.js +58 -0
- package/dist/schemas/tools.js.map +1 -0
- package/dist/server/oauth.d.ts +17 -0
- package/dist/server/oauth.d.ts.map +1 -0
- package/dist/server/oauth.js +74 -0
- package/dist/server/oauth.js.map +1 -0
- package/dist/sync/miro.sync-endpoint.descriptor.d.ts +14 -0
- package/dist/sync/miro.sync-endpoint.descriptor.d.ts.map +1 -0
- package/dist/sync/miro.sync-endpoint.descriptor.js +10 -0
- package/dist/sync/miro.sync-endpoint.descriptor.js.map +1 -0
- package/dist/sync/miro.sync-endpoint.impl.d.ts +31 -0
- package/dist/sync/miro.sync-endpoint.impl.d.ts.map +1 -0
- package/dist/sync/miro.sync-endpoint.impl.js +353 -0
- package/dist/sync/miro.sync-endpoint.impl.js.map +1 -0
- package/dist/sync/miro.title.sync-mapping.descriptor.d.ts +15 -0
- package/dist/sync/miro.title.sync-mapping.descriptor.d.ts.map +1 -0
- package/dist/sync/miro.title.sync-mapping.descriptor.js +15 -0
- package/dist/sync/miro.title.sync-mapping.descriptor.js.map +1 -0
- package/dist/sync/miro.title.sync-mapping.impl.d.ts +17 -0
- package/dist/sync/miro.title.sync-mapping.impl.d.ts.map +1 -0
- package/dist/sync/miro.title.sync-mapping.impl.js +20 -0
- package/dist/sync/miro.title.sync-mapping.impl.js.map +1 -0
- package/dist/tools/descriptors.d.ts +1049 -0
- package/dist/tools/descriptors.d.ts.map +1 -0
- package/dist/tools/descriptors.js +152 -0
- package/dist/tools/descriptors.js.map +1 -0
- package/dist/tools/impl.d.ts +13 -0
- package/dist/tools/impl.d.ts.map +1 -0
- package/dist/tools/impl.js +60 -0
- package/dist/tools/impl.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/schemas.d.ts +2 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +2 -0
- package/dist/tools/schemas.js.map +1 -0
- package/package.json +104 -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-miro
|
|
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,53 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@vibesdotdev/integrations-miro`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
First-class Miro v2 transport for Vibes.
|
|
4
|
+
|
|
5
|
+
Consumers resolve the canonical `miro` runtime client and use `boards`, `items`,
|
|
6
|
+
or `pull()`. Platform-web installs the `integrations` kind owner, then `sync`,
|
|
7
|
+
then the host plugin; it resolves the secret credential and executes provider
|
|
8
|
+
operations. With the standard core runtime already composed, direct host
|
|
9
|
+
registration is explicit:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import integrationsPlugin from '@vibesdotdev/integrations/plugin';
|
|
13
|
+
import syncPlugin from '@vibesdotdev/sync/plugin';
|
|
14
|
+
import miroHostPlugin from '@vibesdotdev/integrations-miro/plugin';
|
|
15
|
+
|
|
16
|
+
await runtime.registerPlugin(integrationsPlugin);
|
|
17
|
+
await runtime.registerPlugin(syncPlugin);
|
|
18
|
+
await runtime.registerPlugin(miroHostPlugin);
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The host plugin also registers `sync.endpoint.miro.items`: one bounded provider page with
|
|
22
|
+
reversible identity markers, scan-stable provider identity, and fail-visible
|
|
23
|
+
destructive writes. This package owns the versioned `miro.title@1` mapping;
|
|
24
|
+
product features may register additional mapping profiles and remain responsible
|
|
25
|
+
for bindings, authority, conflict policy, and deletion policy.
|
|
26
|
+
|
|
27
|
+
The client plugin also projects seven agent tools through `tools/tool`:
|
|
28
|
+
|
|
29
|
+
- `miro.boards.list`, `miro.boards.get`, and `miro.items.list` read boards and bounded pages.
|
|
30
|
+
- `miro.boards.create/update` and `miro.items.create/update` perform explicit, approval-gated writes.
|
|
31
|
+
|
|
32
|
+
Every implementation resolves `getVibesMiroClient(runtime)` and uses the trusted caller identity in
|
|
33
|
+
`ToolCallContext.metadata`; credentials and delete-by-absence are not tool inputs.
|
|
34
|
+
|
|
35
|
+
See [SPEC.md](./SPEC.md) for the contract and safety boundaries.
|
|
36
|
+
|
|
37
|
+
Host composition supplies the canonical `integration/store` context and
|
|
38
|
+
`system/settings-reader`, with request `userId` and `orgId`. An absent required
|
|
39
|
+
store refuses provider resolution with `INTERNAL / dependency-absent`.
|
|
40
|
+
The host owns OAuth callbacks and secret persistence through `./server/oauth`;
|
|
41
|
+
the provider refuses direct OAuth with `miro-oauth-host-required`.
|
|
42
|
+
Token replacement uses the secret owner's in-place update and preserves an
|
|
43
|
+
omitted refresh token. The pair is not a cross-record transaction.
|
|
44
|
+
|
|
45
|
+
The root exports contracts, transport and semantic client; concrete provider
|
|
46
|
+
access is on `./miro`. Reads return `null` on record absence; malformed
|
|
47
|
+
successful dispatch results refuse with `miro-result-invalid`. HTTP errors
|
|
48
|
+
retain safe status and rate-limit facts without provider bodies.
|
|
49
|
+
|
|
50
|
+
Verify from this directory with `bun run check`, `bun run test`, and
|
|
51
|
+
`bun run build`. Run `workspace-rules` with this package path and the configured
|
|
52
|
+
Oxlint ratchet (`node ../../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs`).
|
|
53
|
+
Typechecking includes tests; `tsconfig.build.json` emits production sources only.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel';
|
|
2
|
+
import type { MiroClient } from './runtime-client.ts';
|
|
3
|
+
/** Resolve the canonical `miro` runtime client from the ambient runtime. */
|
|
4
|
+
export declare function getVibesMiroClient(runtime: VibesRuntime): Promise<MiroClient>;
|
|
5
|
+
//# 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,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,4EAA4E;AAC5E,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAEnF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { getVibesClient } from '@vibesdotdev/kernel/client';
|
|
2
|
+
/** Resolve the canonical `miro` runtime client from the ambient runtime. */
|
|
3
|
+
export async function getVibesMiroClient(runtime) {
|
|
4
|
+
return getVibesClient('miro', runtime);
|
|
5
|
+
}
|
|
6
|
+
//# 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,4EAA4E;AAC5E,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,OAAqB;IAC7D,OAAO,cAAc,CAAa,MAAM,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA2B,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { miroOperationInputs, miroOperationResults, type MiroInvokeIdentity, type MiroOperationId } from '../schemas/operations.ts';
|
|
3
|
+
export type { MiroInvokeIdentity } from '../schemas/operations.ts';
|
|
4
|
+
import type { KindContext } from '@vibesdotdev/kernel';
|
|
5
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
6
|
+
import { BaseRuntimeClient, type RuntimeClientDescriptor } from '@vibesdotdev/kernel/client';
|
|
7
|
+
import type { CreateMiroBoardInput, CreateMiroItemInput, DeleteMiroItemResult, MiroBoard, MiroBoardListOptions, MiroBoardListResult, MiroBoardUpdateResult, MiroItem, MiroItemIdInput, MiroItemListOptions, MiroItemListResult, MiroPullOptions, MiroPullResult, UpdateMiroBoardInput, UpdateMiroItemInput } from '../miro/miro-schemas.ts';
|
|
8
|
+
/** Canonical cross-process Miro runtime client. */
|
|
9
|
+
export declare class MiroClient extends BaseRuntimeClient {
|
|
10
|
+
readonly boards: BoardsNamespace;
|
|
11
|
+
readonly items: ItemsNamespace;
|
|
12
|
+
constructor(descriptor?: RuntimeClientDescriptor, context?: KindContext, runtime?: VibesRuntime);
|
|
13
|
+
get integrationId(): string;
|
|
14
|
+
/** Pull one bounded cursor page for a domain-owned sync endpoint. */
|
|
15
|
+
pull(options: MiroPullOptions, identity?: MiroInvokeIdentity): Promise<MiroPullResult>;
|
|
16
|
+
invoke<K extends MiroOperationId>(operationId: K, args?: z.input<(typeof miroOperationInputs)[K]>, identity?: MiroInvokeIdentity): Promise<z.output<(typeof miroOperationResults)[K]>>;
|
|
17
|
+
}
|
|
18
|
+
type Invoke = MiroClient['invoke'];
|
|
19
|
+
declare class BoardsNamespace {
|
|
20
|
+
private readonly invoke;
|
|
21
|
+
constructor(invoke: Invoke);
|
|
22
|
+
list(options?: MiroBoardListOptions, identity?: MiroInvokeIdentity): Promise<MiroBoardListResult>;
|
|
23
|
+
get(boardId: string, identity?: MiroInvokeIdentity): Promise<MiroBoard | null>;
|
|
24
|
+
create(input: CreateMiroBoardInput, identity?: MiroInvokeIdentity): Promise<MiroBoard>;
|
|
25
|
+
update(input: UpdateMiroBoardInput, identity?: MiroInvokeIdentity): Promise<MiroBoardUpdateResult>;
|
|
26
|
+
}
|
|
27
|
+
declare class ItemsNamespace {
|
|
28
|
+
private readonly invoke;
|
|
29
|
+
constructor(invoke: Invoke);
|
|
30
|
+
list(options: MiroItemListOptions, identity?: MiroInvokeIdentity): Promise<MiroItemListResult>;
|
|
31
|
+
get(input: MiroItemIdInput, identity?: MiroInvokeIdentity): Promise<MiroItem | null>;
|
|
32
|
+
create(input: CreateMiroItemInput, identity?: MiroInvokeIdentity): Promise<MiroItem>;
|
|
33
|
+
update(input: UpdateMiroItemInput, identity?: MiroInvokeIdentity): Promise<MiroItem>;
|
|
34
|
+
delete(input: MiroItemIdInput, identity?: MiroInvokeIdentity): Promise<DeleteMiroItemResult>;
|
|
35
|
+
}
|
|
36
|
+
//# 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,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAsF,mBAAmB,EAAE,oBAAoB,EAAqB,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAqD,MAAM,0BAA0B,CAAC;AAC9R,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE7F,OAAO,KAAK,EACX,oBAAoB,EACpB,mBAAmB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C;IAI9E,MAAM,CAAC,KAAK,EAAE,oBAAoB,EAAE,QAAQ,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC;IAItF,MAAM,CACX,KAAK,EAAE,oBAAoB,EAC3B,QAAQ,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,qBAAqB,CAAC;CAGjC;AAED,cAAM,cAAc;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAErC,IAAI,CACT,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,kBAAkB,CAAC;IAIxB,GAAG,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAIpF,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,QAAQ,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpF,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,QAAQ,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpF,MAAM,CACX,KAAK,EAAE,eAAe,EACtB,QAAQ,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,oBAAoB,CAAC;CAGhC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { MiroInvokeIdentitySchema, MiroUserIdSchema, MiroOrgIdSchema, MiroOperationIdSchema, miroOperationInputs, miroOperationResults, parseMiroBoundary } from "../schemas/operations.js";
|
|
3
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
4
|
+
import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
5
|
+
import { getVibesPlatformInternalClient } from '@vibesdotdev/platform/internal-api';
|
|
6
|
+
const MIRO_INTEGRATION_ID = 'integration.miro';
|
|
7
|
+
/** Canonical cross-process Miro runtime client. */
|
|
8
|
+
export class MiroClient extends BaseRuntimeClient {
|
|
9
|
+
boards;
|
|
10
|
+
items;
|
|
11
|
+
constructor(descriptor = { id: 'miro', kind: 'runtime/client' }, context, runtime) {
|
|
12
|
+
super(descriptor, context, runtime);
|
|
13
|
+
this.boards = new BoardsNamespace((operationId, args, identity) => this.invoke(operationId, args, identity));
|
|
14
|
+
this.items = new ItemsNamespace((operationId, args, identity) => this.invoke(operationId, args, identity));
|
|
15
|
+
}
|
|
16
|
+
get integrationId() {
|
|
17
|
+
return MIRO_INTEGRATION_ID;
|
|
18
|
+
}
|
|
19
|
+
/** Pull one bounded cursor page for a domain-owned sync endpoint. */
|
|
20
|
+
async pull(options, identity) {
|
|
21
|
+
return this.invoke('pull-board-items', options, identity);
|
|
22
|
+
}
|
|
23
|
+
async invoke(operationId, args, identity) {
|
|
24
|
+
const operation = parseMiroBoundary(MiroOperationIdSchema, operationId);
|
|
25
|
+
const input = miroOperationInputs[operation].safeParse(args ?? {});
|
|
26
|
+
if (!input.success)
|
|
27
|
+
throw new CapabilityError('Miro operation input is invalid.', 'INVALID_INPUT', { reason: 'miro-input-invalid' });
|
|
28
|
+
const explicit = parseMiroBoundary(MiroInvokeIdentitySchema.optional(), identity);
|
|
29
|
+
let ambientUserId;
|
|
30
|
+
if (!explicit?.userId) {
|
|
31
|
+
try {
|
|
32
|
+
ambientUserId = await this.runtime.context('userId');
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
if (!(error instanceof Error && CapabilityError.isAbsenceOf(error, 'context', 'userId')))
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const userId = MiroUserIdSchema.safeParse(explicit?.userId ?? ambientUserId);
|
|
40
|
+
if (!userId.success) {
|
|
41
|
+
throw new CapabilityError('Miro operation requires an authenticated userId.', 'PERMISSION_DENIED', { reason: 'miro-identity-required' });
|
|
42
|
+
}
|
|
43
|
+
let orgId = explicit?.orgId;
|
|
44
|
+
if (!orgId) {
|
|
45
|
+
try {
|
|
46
|
+
orgId = parseMiroBoundary(MiroOrgIdSchema, await this.runtime.context('orgId'));
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
if (!(error instanceof Error && CapabilityError.isAbsenceOf(error, 'context', 'orgId')))
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const result = await (await getVibesPlatformInternalClient(this.runtime)).integrations.invoke({
|
|
54
|
+
userId: userId.data,
|
|
55
|
+
organizationId: orgId,
|
|
56
|
+
integrationId: MIRO_INTEGRATION_ID,
|
|
57
|
+
operationId: operation,
|
|
58
|
+
args: input.data
|
|
59
|
+
});
|
|
60
|
+
if (!result.ok) {
|
|
61
|
+
throw new CapabilityError('Miro operation failed.', 'UNAVAILABLE', { reason: 'miro-operation-failed' });
|
|
62
|
+
}
|
|
63
|
+
const output = miroOperationResults[operation].safeParse(result.data);
|
|
64
|
+
if (!output.success)
|
|
65
|
+
throw new CapabilityError('Miro operation result is invalid.', 'INTERNAL', { reason: 'miro-result-invalid' });
|
|
66
|
+
return output.data;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
class BoardsNamespace {
|
|
70
|
+
invoke;
|
|
71
|
+
constructor(invoke) {
|
|
72
|
+
this.invoke = invoke;
|
|
73
|
+
}
|
|
74
|
+
async list(options = {}, identity) {
|
|
75
|
+
return this.invoke('listBoards', options, identity);
|
|
76
|
+
}
|
|
77
|
+
async get(boardId, identity) {
|
|
78
|
+
return this.invoke('getBoard', { boardId }, identity);
|
|
79
|
+
}
|
|
80
|
+
async create(input, identity) {
|
|
81
|
+
return this.invoke('createBoard', input, identity);
|
|
82
|
+
}
|
|
83
|
+
async update(input, identity) {
|
|
84
|
+
return this.invoke('updateBoard', input, identity);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
class ItemsNamespace {
|
|
88
|
+
invoke;
|
|
89
|
+
constructor(invoke) {
|
|
90
|
+
this.invoke = invoke;
|
|
91
|
+
}
|
|
92
|
+
async list(options, identity) {
|
|
93
|
+
return this.invoke('listItems', options, identity);
|
|
94
|
+
}
|
|
95
|
+
async get(input, identity) {
|
|
96
|
+
return this.invoke('getItem', input, identity);
|
|
97
|
+
}
|
|
98
|
+
async create(input, identity) {
|
|
99
|
+
return this.invoke('createItem', input, identity);
|
|
100
|
+
}
|
|
101
|
+
async update(input, identity) {
|
|
102
|
+
return this.invoke('updateItem', input, identity);
|
|
103
|
+
}
|
|
104
|
+
async delete(input, identity) {
|
|
105
|
+
return this.invoke('deleteItem', input, identity);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=runtime-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-client.js","sourceRoot":"","sources":["../../src/client/runtime-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAoG,MAAM,0BAA0B,CAAC;AAG9R,OAAO,EAAE,eAAe,EAAqB,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAgC,MAAM,4BAA4B,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAmBpF,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAE/C,mDAAmD;AACnD,MAAM,OAAO,UAAW,SAAQ,iBAAiB;IACvC,MAAM,CAAkB;IACxB,KAAK,CAAiB;IAE/B,YACC,aAAsC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAC5E,OAAqB,EACrB,OAAsB;QAEtB,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,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AK,CAAC,GAAG,CAAC,KAAsB,EAAE,QAA6B;QAC9D,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAA0B,EAAE,QAA6B;QACrE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAA0B,EAAE,QAA6B;QACrE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,MAAM,CACX,KAAsB,EACtB,QAA6B;QAE7B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;CACD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const descriptor: {
|
|
2
|
+
readonly kind: "docs/topic";
|
|
3
|
+
readonly id: "integrations.miro";
|
|
4
|
+
readonly title: "Miro Integration";
|
|
5
|
+
readonly summary: "Bounded Miro board transport for domain-owned projections.";
|
|
6
|
+
readonly body: {
|
|
7
|
+
readonly type: "markdown";
|
|
8
|
+
readonly sourceType: "raw";
|
|
9
|
+
readonly source: "---\ntitle: Miro Integration\nsummary: Bounded Miro board transport for domain-owned projections.\nparent: integrations\norder: 4\n---\n\n# Miro integration\n\nThe Miro package owns authenticated Miro v2 transport and a canonical runtime client. It does not decide whether a board item becomes a work item, project artifact, or knowledge record.\n\n## Runtime surface\n\n- `miro.boards.list()` returns one bounded offset page of boards; `miro.boards.get()` fetches one board.\n- `miro.items.list()` returns one bounded cursor page; `get/create/update/delete` expose typed item operations.\n- `miro.pull()` returns exactly one item page and reports the next cursor without persisting it.\n- `sync.endpoint.miro.items` projects one bounded item page, reads/writes reversible encoded `[vibes-sync:...]` identity markers, and returns provider record ids after apply.\n- Board create/update tools create, rename, describe, or move a board to an explicit team or Space. Accepted moves remain pending until read back.\n- Agent tools `miro.boards.list` and `miro.items.list` read one bounded page. `miro.items.create` and `miro.items.update` are approval-gated explicit writes through the same runtime client. There is no delete tool.\n\nMiro supports different pagination contracts here: board listing is offset-based, while board-item listing is cursor-based. The runtime models both contracts directly.\n\n## Composition\n\nFor direct hosting, register `integrations`, then `sync`, then the Miro host plugin. Platform-web hosts `integration.miro`, owns the credential, and performs REST calls. Consumer apps register `sync` before the client-only plugin and dispatch through the platform internal integration API. This package owns `miro.title@1`; product features may register additional versioned mappings and own direction, authority, conflict policy, deletion policy, and trigger.\n\nThe host supplies the integration owner's required integration/store and system/settings-reader contexts. Missing required contexts refuse with dependency-absent. OAuth callbacks and in-place credential updates belong to the host via ./server/oauth; omitted refresh tokens preserve existing credentials. Concrete provider access is ./miro.\n\n## Safety\n\nRate-limit failures retain Miro's limit, remaining-credit, reset, and retry metadata. Pulling does not imply synchronization, absence is never deletion evidence, provider ids are scoped by board, and writes are limited to item types with verified Miro v2 create/update endpoints. Agent writes reject credential fields and oversized payloads. Tool identity comes only from surface-asserted metadata; authenticated agent and direct-CLI surfaces project it from the runtime. Archive/delete without an observed item fails visibly. Webhooks are intentionally absent until Miro exposes a current supported contract.\n";
|
|
10
|
+
};
|
|
11
|
+
readonly parent: "integrations";
|
|
12
|
+
readonly order: 4;
|
|
13
|
+
readonly tags: readonly ["integrations", "miro", "boards", "sync"];
|
|
14
|
+
readonly surfaces: readonly ["web", "in-app"];
|
|
15
|
+
readonly hardware: readonly ["consumer", "cloud"];
|
|
16
|
+
readonly enabled: true;
|
|
17
|
+
};
|
|
18
|
+
export default descriptor;
|
|
19
|
+
//# sourceMappingURL=integrations-miro.docs.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-miro.docs.descriptor.d.ts","sourceRoot":"","sources":["../../src/docs/integrations-miro.docs.descriptor.ts"],"names":[],"mappings":"AAiCA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;CAYN,CAAC;AAEX,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const integrationsMiroMarkdown = `---
|
|
2
|
+
title: Miro Integration
|
|
3
|
+
summary: Bounded Miro board transport for domain-owned projections.
|
|
4
|
+
parent: integrations
|
|
5
|
+
order: 4
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Miro integration
|
|
9
|
+
|
|
10
|
+
The Miro package owns authenticated Miro v2 transport and a canonical runtime client. It does not decide whether a board item becomes a work item, project artifact, or knowledge record.
|
|
11
|
+
|
|
12
|
+
## Runtime surface
|
|
13
|
+
|
|
14
|
+
- \`miro.boards.list()\` returns one bounded offset page of boards; \`miro.boards.get()\` fetches one board.
|
|
15
|
+
- \`miro.items.list()\` returns one bounded cursor page; \`get/create/update/delete\` expose typed item operations.
|
|
16
|
+
- \`miro.pull()\` returns exactly one item page and reports the next cursor without persisting it.
|
|
17
|
+
- \`sync.endpoint.miro.items\` projects one bounded item page, reads/writes reversible encoded \`[vibes-sync:...]\` identity markers, and returns provider record ids after apply.
|
|
18
|
+
- Board create/update tools create, rename, describe, or move a board to an explicit team or Space. Accepted moves remain pending until read back.
|
|
19
|
+
- Agent tools \`miro.boards.list\` and \`miro.items.list\` read one bounded page. \`miro.items.create\` and \`miro.items.update\` are approval-gated explicit writes through the same runtime client. There is no delete tool.
|
|
20
|
+
|
|
21
|
+
Miro supports different pagination contracts here: board listing is offset-based, while board-item listing is cursor-based. The runtime models both contracts directly.
|
|
22
|
+
|
|
23
|
+
## Composition
|
|
24
|
+
|
|
25
|
+
For direct hosting, register \`integrations\`, then \`sync\`, then the Miro host plugin. Platform-web hosts \`integration.miro\`, owns the credential, and performs REST calls. Consumer apps register \`sync\` before the client-only plugin and dispatch through the platform internal integration API. This package owns \`miro.title@1\`; product features may register additional versioned mappings and own direction, authority, conflict policy, deletion policy, and trigger.
|
|
26
|
+
|
|
27
|
+
The host supplies the integration owner's required integration/store and system/settings-reader contexts. Missing required contexts refuse with dependency-absent. OAuth callbacks and in-place credential updates belong to the host via ./server/oauth; omitted refresh tokens preserve existing credentials. Concrete provider access is ./miro.
|
|
28
|
+
|
|
29
|
+
## Safety
|
|
30
|
+
|
|
31
|
+
Rate-limit failures retain Miro's limit, remaining-credit, reset, and retry metadata. Pulling does not imply synchronization, absence is never deletion evidence, provider ids are scoped by board, and writes are limited to item types with verified Miro v2 create/update endpoints. Agent writes reject credential fields and oversized payloads. Tool identity comes only from surface-asserted metadata; authenticated agent and direct-CLI surfaces project it from the runtime. Archive/delete without an observed item fails visibly. Webhooks are intentionally absent until Miro exposes a current supported contract.
|
|
32
|
+
`;
|
|
33
|
+
const descriptor = {
|
|
34
|
+
kind: 'docs/topic',
|
|
35
|
+
id: 'integrations.miro',
|
|
36
|
+
title: 'Miro Integration',
|
|
37
|
+
summary: 'Bounded Miro board transport for domain-owned projections.',
|
|
38
|
+
body: { type: 'markdown', sourceType: 'raw', source: integrationsMiroMarkdown },
|
|
39
|
+
parent: 'integrations',
|
|
40
|
+
order: 4,
|
|
41
|
+
tags: ['integrations', 'miro', 'boards', 'sync'],
|
|
42
|
+
surfaces: ['web', 'in-app'],
|
|
43
|
+
hardware: ['consumer', 'cloud'],
|
|
44
|
+
enabled: true
|
|
45
|
+
};
|
|
46
|
+
export default descriptor;
|
|
47
|
+
//# sourceMappingURL=integrations-miro.docs.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-miro.docs.descriptor.js","sourceRoot":"","sources":["../../src/docs/integrations-miro.docs.descriptor.ts"],"names":[],"mappings":"AAAA,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BhC,CAAC;AAEF,MAAM,UAAU,GAAG;IAClB,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,mBAAmB;IACvB,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE,4DAA4D;IACrE,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,wBAAwB,EAAE;IAC/E,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC;IAChD,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;IAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACJ,CAAC;AAEX,eAAe,UAAU,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default, integrationsMiroPlugin } from './integrations-miro.plugin.ts';
|
|
2
|
+
export { default as integrationsMiroClientPlugin, integrationsMiroClientPlugin as miroClientPlugin, miroRuntimeClientDescriptor } from './miro.client.plugin.ts';
|
|
3
|
+
export { MiroClient, getVibesMiroClient, type MiroInvokeIdentity } from './client/index.ts';
|
|
4
|
+
export * from './tools/index.ts';
|
|
5
|
+
export { MiroAPIClient } from './miro/miro-client.ts';
|
|
6
|
+
export { MiroAPIError } from './miro/errors.ts';
|
|
7
|
+
export type { MiroClientConfig, MiroFetch } from './schemas/http.ts';
|
|
8
|
+
export { default as miroDescriptor } from './miro/system.integration.miro.descriptor.ts';
|
|
9
|
+
export { default as miroTitleSyncMappingDescriptor, MIRO_TITLE_SYNC_MAPPING } from './sync/miro.title.sync-mapping.descriptor.ts';
|
|
10
|
+
export { MiroActorSchema, MiroPositionSchema, MiroGeometrySchema, MiroParentSchema, MiroBoardSchema, MiroItemTypeSchema, MiroWritableItemTypeSchema, MiroItemSchema, MiroBoardListOptionsSchema, MiroBoardListResultSchema, MiroBoardIdInputSchema, CreateMiroBoardInputSchema, UpdateMiroBoardInputSchema, MiroItemListOptionsSchema, MiroItemListResultSchema, MiroItemIdInputSchema, CreateMiroItemInputSchema, UpdateMiroItemInputSchema, DeleteMiroItemResultSchema, MiroPullOptionsSchema, MiroPullResultSchema, MiroRateLimitMetadataSchema } from './miro/miro-schemas.ts';
|
|
11
|
+
export type { MiroActor, MiroBoard, MiroItem, MiroItemType, MiroWritableItemType, MiroBoardListOptions, MiroBoardListResult, MiroBoardIdInput, CreateMiroBoardInput, UpdateMiroBoardInput, MiroItemListOptions, MiroItemListResult, MiroItemIdInput, CreateMiroItemInput, UpdateMiroItemInput, DeleteMiroItemResult, MiroPullOptions, MiroPullResult, MiroRateLimitMetadata } from './miro/miro-schemas.ts';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EACN,OAAO,IAAI,4BAA4B,EACvC,4BAA4B,IAAI,gBAAgB,EAChD,2BAA2B,EAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5F,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EACN,OAAO,IAAI,8BAA8B,EACzC,uBAAuB,EACvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,cAAc,EACd,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default, integrationsMiroPlugin } from "./integrations-miro.plugin.js";
|
|
2
|
+
export { default as integrationsMiroClientPlugin, integrationsMiroClientPlugin as miroClientPlugin, miroRuntimeClientDescriptor } from "./miro.client.plugin.js";
|
|
3
|
+
export { MiroClient, getVibesMiroClient } from "./client/index.js";
|
|
4
|
+
export * from "./tools/index.js";
|
|
5
|
+
export { MiroAPIClient } from "./miro/miro-client.js";
|
|
6
|
+
export { MiroAPIError } from "./miro/errors.js";
|
|
7
|
+
export { default as miroDescriptor } from "./miro/system.integration.miro.descriptor.js";
|
|
8
|
+
export { default as miroTitleSyncMappingDescriptor, MIRO_TITLE_SYNC_MAPPING } from "./sync/miro.title.sync-mapping.descriptor.js";
|
|
9
|
+
export { MiroActorSchema, MiroPositionSchema, MiroGeometrySchema, MiroParentSchema, MiroBoardSchema, MiroItemTypeSchema, MiroWritableItemTypeSchema, MiroItemSchema, MiroBoardListOptionsSchema, MiroBoardListResultSchema, MiroBoardIdInputSchema, CreateMiroBoardInputSchema, UpdateMiroBoardInputSchema, MiroItemListOptionsSchema, MiroItemListResultSchema, MiroItemIdInputSchema, CreateMiroItemInputSchema, UpdateMiroItemInputSchema, DeleteMiroItemResultSchema, MiroPullOptionsSchema, MiroPullResultSchema, MiroRateLimitMetadataSchema } from "./miro/miro-schemas.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EACN,OAAO,IAAI,4BAA4B,EACvC,4BAA4B,IAAI,gBAAgB,EAChD,2BAA2B,EAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAA2B,MAAM,mBAAmB,CAAC;AAC5F,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EACN,OAAO,IAAI,8BAA8B,EACzC,uBAAuB,EACvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,cAAc,EACd,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-miro.plugin.d.ts","sourceRoot":"","sources":["../src/integrations-miro.plugin.ts"],"names":[],"mappings":"AAIA,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,6CAejC,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRuntimePlugin, loader } from '@vibesdotdev/kernel/factory';
|
|
2
|
+
import integrationsMiroClientPlugin from "./miro.client.plugin.js";
|
|
3
|
+
import miroDescriptor from "./miro/system.integration.miro.descriptor.js";
|
|
4
|
+
/** Host slice: provider transport + docs, composed with the client-only slice. */
|
|
5
|
+
export const integrationsMiroPlugin = createRuntimePlugin({
|
|
6
|
+
id: 'integrations-miro',
|
|
7
|
+
name: 'Integrations Miro Plugin',
|
|
8
|
+
description: 'Miro integration provider, canonical runtime client, and documentation',
|
|
9
|
+
dependencies: ['integrations', 'sync'],
|
|
10
|
+
descriptors: [miroDescriptor],
|
|
11
|
+
loaders: [
|
|
12
|
+
loader(miroDescriptor.id, { kind: 'integration/provider' }, async () => {
|
|
13
|
+
const { MiroIntegration } = await import("./miro/miro-implementation.js");
|
|
14
|
+
return { default: MiroIntegration };
|
|
15
|
+
})
|
|
16
|
+
],
|
|
17
|
+
onRegister: async (runtime) => {
|
|
18
|
+
await runtime.registerPlugin(integrationsMiroClientPlugin);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export default integrationsMiroPlugin;
|
|
22
|
+
//# sourceMappingURL=integrations-miro.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-miro.plugin.js","sourceRoot":"","sources":["../src/integrations-miro.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,4BAA4B,MAAM,yBAAyB,CAAC;AACnE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAE1E,kFAAkF;AAClF,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;IACzD,EAAE,EAAE,mBAAmB;IACvB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,wEAAwE;IACrF,YAAY,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC;IACtC,WAAW,EAAE,CAAC,cAAc,CAAC;IAC7B,OAAO,EAAE;QACR,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,EAAE,KAAK,IAAI,EAAE;YACtE,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC,CAAC;YAC1E,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;QACrC,CAAC,CAAC;KACF;IACD,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,OAAO,CAAC,cAAc,CAAC,4BAA4B,CAAC,CAAC;IAC5D,CAAC;CACD,CAAC,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
2
|
+
import { type MiroFailureOptions } from '../schemas/http.ts';
|
|
3
|
+
import type { MiroRateLimitMetadata } from '../schemas/miro.ts';
|
|
4
|
+
/** Compatibility entrypoint; all refusals use the kernel taxonomy and safe facts. */
|
|
5
|
+
export declare class MiroAPIError extends CapabilityError {
|
|
6
|
+
readonly status?: number;
|
|
7
|
+
readonly rateLimit?: MiroRateLimitMetadata;
|
|
8
|
+
constructor(_message: string, options?: MiroFailureOptions);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/miro/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAA4B,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,qFAAqF;AACrF,qBAAa,YAAa,SAAQ,eAAe;IAChD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,qBAAqB,CAAC;gBAE/B,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,kBAAuB;CAe9D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
2
|
+
import { MiroFailureOptionsSchema } from "../schemas/http.js";
|
|
3
|
+
/** Compatibility entrypoint; all refusals use the kernel taxonomy and safe facts. */
|
|
4
|
+
export class MiroAPIError extends CapabilityError {
|
|
5
|
+
status;
|
|
6
|
+
rateLimit;
|
|
7
|
+
constructor(_message, options = {}) {
|
|
8
|
+
const facts = MiroFailureOptionsSchema.parse(options);
|
|
9
|
+
const status = facts.status;
|
|
10
|
+
const code = status === 429 ? 'RATE_LIMITED'
|
|
11
|
+
: status === 404 ? 'NOT_FOUND'
|
|
12
|
+
: status === 401 || status === 403 || facts.reason === 'miro-token-required' ? 'PERMISSION_DENIED'
|
|
13
|
+
: facts.reason === 'miro-response-invalid' ? 'INTERNAL' : 'UNAVAILABLE';
|
|
14
|
+
super('Miro request failed.', code, {
|
|
15
|
+
reason: status === 429 ? 'miro-rate-limited' : status === 404 ? 'record-absent' : facts.reason,
|
|
16
|
+
retryable: status === 429 || status !== undefined && status >= 500,
|
|
17
|
+
details: { status, rateLimit: facts.rateLimit, failure: facts.failure }
|
|
18
|
+
});
|
|
19
|
+
this.status = status;
|
|
20
|
+
this.rateLimit = facts.rateLimit;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/miro/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAA2B,MAA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
|
2
|
+
export type { MiroClientConfig, MiroFetch } from './miro-client.ts';
|
|
3
|
+
export { MiroIntegration } from './miro-implementation.ts';
|
|
4
|
+
export { default as miroDescriptor } from './system.integration.miro.descriptor.ts';
|
|
5
|
+
export { MiroActorSchema, MiroPositionSchema, MiroGeometrySchema, MiroParentSchema, MiroBoardSchema, MiroItemTypeSchema, MiroWritableItemTypeSchema, MiroItemSchema, MiroBoardListOptionsSchema, MiroBoardListResultSchema, MiroBoardIdInputSchema, CreateMiroBoardInputSchema, UpdateMiroBoardInputSchema, MiroItemListOptionsSchema, MiroItemListResultSchema, MiroItemIdInputSchema, CreateMiroItemInputSchema, UpdateMiroItemInputSchema, DeleteMiroItemResultSchema, MiroPullOptionsSchema, MiroPullResultSchema, MiroRateLimitMetadataSchema } from './miro-schemas.ts';
|
|
6
|
+
export type { MiroActor, MiroBoard, MiroItem, MiroItemType, MiroWritableItemType, MiroBoardListOptions, MiroBoardListResult, MiroBoardIdInput, CreateMiroBoardInput, UpdateMiroBoardInput, MiroItemListOptions, MiroItemListResult, MiroItemIdInput, CreateMiroItemInput, UpdateMiroItemInput, DeleteMiroItemResult, MiroPullOptions, MiroPullResult, MiroRateLimitMetadata } from './miro-schemas.ts';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/miro/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,cAAc,EACd,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { MiroAPIClient, MiroAPIError } from "./miro-client.js";
|
|
2
|
+
export { MiroIntegration } from "./miro-implementation.js";
|
|
3
|
+
export { default as miroDescriptor } from "./system.integration.miro.descriptor.js";
|
|
4
|
+
export { MiroActorSchema, MiroPositionSchema, MiroGeometrySchema, MiroParentSchema, MiroBoardSchema, MiroItemTypeSchema, MiroWritableItemTypeSchema, MiroItemSchema, MiroBoardListOptionsSchema, MiroBoardListResultSchema, MiroBoardIdInputSchema, CreateMiroBoardInputSchema, UpdateMiroBoardInputSchema, MiroItemListOptionsSchema, MiroItemListResultSchema, MiroItemIdInputSchema, CreateMiroItemInputSchema, UpdateMiroItemInputSchema, DeleteMiroItemResultSchema, MiroPullOptionsSchema, MiroPullResultSchema, MiroRateLimitMetadataSchema } from "./miro-schemas.js";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/miro/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,cAAc,EACd,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,mBAAmB,CAAC"}
|