@mymehq/sdk 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -1
- package/dist/index.js +20 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MergeStrategy, ConflictSnapshot, MergePolicy, ItemState, Tier, Item, CreateItemInput, PaginatedResult, ItemWithMetadata, Version, Edge, Metadata, SearchResult, CreateEdgeInput, EdgeTypeSchema, TypeSchema, CreateKeyInput, ApiKey, UpdateKeyInput, CreateWebhookInput, Webhook, UpdateWebhookInput, WebhookDelivery, ConnectionUninstallResult, TenantConfig } from '@mymehq/shared';
|
|
1
|
+
import { MergeStrategy, ConflictSnapshot, MergePolicy, ItemState, Tier, Item, CreateItemInput, PaginatedResult, ItemWithMetadata, Version, Edge, Metadata, SearchResult, CreateEdgeInput, EdgeTypeSchema, TypeSchema, CreateKeyInput, ApiKey, UpdateKeyInput, CreateWebhookInput, Webhook, UpdateWebhookInput, WebhookDelivery, ConnectionInstallResult, ConnectionUninstallResult, TenantConfig } from '@mymehq/shared';
|
|
2
2
|
export { ApiKey, ConflictSnapshot, CreateItemInput, CreateKeyInput, Item, ItemState, MergePolicy, MergeStrategy, Metadata, PaginatedResult, SearchResult, TypeSchema, UpdateKeyInput, Version } from '@mymehq/shared';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -562,6 +562,23 @@ declare class MymeClient {
|
|
|
562
562
|
* ... })`. The CLI's `my connections` tree wraps both.
|
|
563
563
|
*/
|
|
564
564
|
readonly connections: {
|
|
565
|
+
/**
|
|
566
|
+
* JSON install of an Integration manifest — server-side sibling of
|
|
567
|
+
* the browser consent flow at `POST /integrations/:id/install`.
|
|
568
|
+
* Skips the HTML consent screen so operators and tooling can install
|
|
569
|
+
* connections non-interactively. Admin-only; tenant admins install
|
|
570
|
+
* into their own tenant scope.
|
|
571
|
+
*
|
|
572
|
+
* `integration_id` references a `system.integration` item (registered
|
|
573
|
+
* via `POST /integrations`). `label` is optional — the server
|
|
574
|
+
* defaults to `${manifest_name} ${manifest_version}` when omitted.
|
|
575
|
+
* Returns the new connection id, the seed runtime credential id,
|
|
576
|
+
* and the `system.activity` row id from the install pipeline.
|
|
577
|
+
*/
|
|
578
|
+
install: (input: {
|
|
579
|
+
integration_id: string;
|
|
580
|
+
label?: string;
|
|
581
|
+
}) => Promise<ConnectionInstallResult>;
|
|
565
582
|
/**
|
|
566
583
|
* Orchestrated uninstall of an `external-service-connector`
|
|
567
584
|
* connection. Revokes runtime credentials, deletes upstream OAuth
|
package/dist/index.js
CHANGED
|
@@ -895,6 +895,26 @@ var MymeClient = class {
|
|
|
895
895
|
* ... })`. The CLI's `my connections` tree wraps both.
|
|
896
896
|
*/
|
|
897
897
|
connections = {
|
|
898
|
+
/**
|
|
899
|
+
* JSON install of an Integration manifest — server-side sibling of
|
|
900
|
+
* the browser consent flow at `POST /integrations/:id/install`.
|
|
901
|
+
* Skips the HTML consent screen so operators and tooling can install
|
|
902
|
+
* connections non-interactively. Admin-only; tenant admins install
|
|
903
|
+
* into their own tenant scope.
|
|
904
|
+
*
|
|
905
|
+
* `integration_id` references a `system.integration` item (registered
|
|
906
|
+
* via `POST /integrations`). `label` is optional — the server
|
|
907
|
+
* defaults to `${manifest_name} ${manifest_version}` when omitted.
|
|
908
|
+
* Returns the new connection id, the seed runtime credential id,
|
|
909
|
+
* and the `system.activity` row id from the install pipeline.
|
|
910
|
+
*/
|
|
911
|
+
install: async (input) => {
|
|
912
|
+
return this.transport.request(
|
|
913
|
+
"POST",
|
|
914
|
+
"/connections/install",
|
|
915
|
+
{ body: input }
|
|
916
|
+
);
|
|
917
|
+
},
|
|
898
918
|
/**
|
|
899
919
|
* Orchestrated uninstall of an `external-service-connector`
|
|
900
920
|
* connection. Revokes runtime credentials, deletes upstream OAuth
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mymehq/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@mymehq/shared": "4.
|
|
23
|
+
"@mymehq/shared": "4.5.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^22.0.0",
|