@open-connector/sdk 1.0.2 → 1.1.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-BXEKBblV.d.ts → index-BHcDR6hz.d.cts} +15 -3
- package/dist/{index-BXEKBblV.d.ts.map → index-BHcDR6hz.d.cts.map} +1 -1
- package/dist/{index-96n68fp1.d.cts → index-BuOGCASE.d.ts} +15 -3
- package/dist/{index-96n68fp1.d.cts.map → index-BuOGCASE.d.ts.map} +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EvlogError } from "evlog";
|
|
2
1
|
import "zod";
|
|
3
2
|
import { ContractRouterClient } from "@orpc/contract";
|
|
4
|
-
|
|
3
|
+
import { EvlogError } from "evlog";
|
|
4
|
+
//#region ../authorization/src/lib/catalog.d.ts
|
|
5
5
|
declare const PERMISSION_CATALOG: {
|
|
6
6
|
readonly organization: {
|
|
7
7
|
readonly description: "Organization identity, settings, and lifecycle.";
|
|
@@ -273,6 +273,8 @@ declare const PERMISSION_CATALOG: {
|
|
|
273
273
|
type PermissionResource = keyof typeof PERMISSION_CATALOG;
|
|
274
274
|
type PermissionAction<R extends PermissionResource> = keyof (typeof PERMISSION_CATALOG)[R]["actions"] & string;
|
|
275
275
|
type CallerPermission = { [R in PermissionResource]: `${R}:${PermissionAction<R>}`; }[PermissionResource];
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region ../authorization/src/lib/requirements.d.ts
|
|
276
278
|
type TenantRequirement = "none" | "organization" | "project";
|
|
277
279
|
type PublicOperationRequirement = {
|
|
278
280
|
readonly kind: "public";
|
|
@@ -588,6 +590,11 @@ declare const nativeContract: {
|
|
|
588
590
|
displayName: import("zod").ZodString;
|
|
589
591
|
kind: import("zod").ZodString;
|
|
590
592
|
status: import("zod").ZodLiteral<"available">;
|
|
593
|
+
connectionMode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
594
|
+
oauth_redirect: "oauth_redirect";
|
|
595
|
+
client_credentials: "client_credentials";
|
|
596
|
+
credential_submit: "credential_submit";
|
|
597
|
+
}>>;
|
|
591
598
|
}, import("zod/v4/core").$strip>>;
|
|
592
599
|
noAuth: import("zod").ZodBoolean;
|
|
593
600
|
scopes: import("zod").ZodArray<import("zod").ZodString>;
|
|
@@ -627,6 +634,11 @@ declare const nativeContract: {
|
|
|
627
634
|
displayName: import("zod").ZodString;
|
|
628
635
|
kind: import("zod").ZodString;
|
|
629
636
|
status: import("zod").ZodLiteral<"available">;
|
|
637
|
+
connectionMode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
638
|
+
oauth_redirect: "oauth_redirect";
|
|
639
|
+
client_credentials: "client_credentials";
|
|
640
|
+
credential_submit: "credential_submit";
|
|
641
|
+
}>>;
|
|
630
642
|
}, import("zod/v4/core").$strip>>;
|
|
631
643
|
noAuth: import("zod").ZodBoolean;
|
|
632
644
|
scopes: import("zod").ZodArray<import("zod").ZodString>;
|
|
@@ -1492,4 +1504,4 @@ interface ConnectResult {
|
|
|
1492
1504
|
declare function connectOAuth(client: ConnectClient, opts: ConnectOAuthOptions): Promise<ConnectResult>;
|
|
1493
1505
|
//#endregion
|
|
1494
1506
|
export { connectError as a, ClientOptions as c, resolveRpcUrl as d, WaitOptions as i, OpenConnectorClient as l, ConnectOAuthOptions as n, connectOAuth as o, ConnectResult as r, waitForConnection as s, ConnectErrorReason as t, createClient as u };
|
|
1495
|
-
//# sourceMappingURL=index-
|
|
1507
|
+
//# sourceMappingURL=index-BHcDR6hz.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BHcDR6hz.d.cts","names":[],"sources":["../../authorization/src/lib/catalog.ts","../../authorization/src/lib/requirements.ts","../../api-contracts/src/lib/native/index.ts","../src/client.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ACpB,QAAQ,eACR,MAAM,sBACL,QAAQ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { EvlogError } from "evlog";
|
|
1
2
|
import "zod";
|
|
2
3
|
import { ContractRouterClient } from "@orpc/contract";
|
|
3
|
-
|
|
4
|
-
//#region ../authorization/src/index.d.ts
|
|
4
|
+
//#region ../authorization/src/lib/catalog.d.ts
|
|
5
5
|
declare const PERMISSION_CATALOG: {
|
|
6
6
|
readonly organization: {
|
|
7
7
|
readonly description: "Organization identity, settings, and lifecycle.";
|
|
@@ -273,6 +273,8 @@ declare const PERMISSION_CATALOG: {
|
|
|
273
273
|
type PermissionResource = keyof typeof PERMISSION_CATALOG;
|
|
274
274
|
type PermissionAction<R extends PermissionResource> = keyof (typeof PERMISSION_CATALOG)[R]["actions"] & string;
|
|
275
275
|
type CallerPermission = { [R in PermissionResource]: `${R}:${PermissionAction<R>}`; }[PermissionResource];
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region ../authorization/src/lib/requirements.d.ts
|
|
276
278
|
type TenantRequirement = "none" | "organization" | "project";
|
|
277
279
|
type PublicOperationRequirement = {
|
|
278
280
|
readonly kind: "public";
|
|
@@ -588,6 +590,11 @@ declare const nativeContract: {
|
|
|
588
590
|
displayName: import("zod").ZodString;
|
|
589
591
|
kind: import("zod").ZodString;
|
|
590
592
|
status: import("zod").ZodLiteral<"available">;
|
|
593
|
+
connectionMode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
594
|
+
oauth_redirect: "oauth_redirect";
|
|
595
|
+
client_credentials: "client_credentials";
|
|
596
|
+
credential_submit: "credential_submit";
|
|
597
|
+
}>>;
|
|
591
598
|
}, import("zod/v4/core").$strip>>;
|
|
592
599
|
noAuth: import("zod").ZodBoolean;
|
|
593
600
|
scopes: import("zod").ZodArray<import("zod").ZodString>;
|
|
@@ -627,6 +634,11 @@ declare const nativeContract: {
|
|
|
627
634
|
displayName: import("zod").ZodString;
|
|
628
635
|
kind: import("zod").ZodString;
|
|
629
636
|
status: import("zod").ZodLiteral<"available">;
|
|
637
|
+
connectionMode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
638
|
+
oauth_redirect: "oauth_redirect";
|
|
639
|
+
client_credentials: "client_credentials";
|
|
640
|
+
credential_submit: "credential_submit";
|
|
641
|
+
}>>;
|
|
630
642
|
}, import("zod/v4/core").$strip>>;
|
|
631
643
|
noAuth: import("zod").ZodBoolean;
|
|
632
644
|
scopes: import("zod").ZodArray<import("zod").ZodString>;
|
|
@@ -1492,4 +1504,4 @@ interface ConnectResult {
|
|
|
1492
1504
|
declare function connectOAuth(client: ConnectClient, opts: ConnectOAuthOptions): Promise<ConnectResult>;
|
|
1493
1505
|
//#endregion
|
|
1494
1506
|
export { connectError as a, ClientOptions as c, resolveRpcUrl as d, WaitOptions as i, OpenConnectorClient as l, ConnectOAuthOptions as n, connectOAuth as o, ConnectResult as r, waitForConnection as s, ConnectErrorReason as t, createClient as u };
|
|
1495
|
-
//# sourceMappingURL=index-
|
|
1507
|
+
//# sourceMappingURL=index-BuOGCASE.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BuOGCASE.d.ts","names":[],"sources":["../../authorization/src/lib/catalog.ts","../../authorization/src/lib/requirements.ts","../../api-contracts/src/lib/native/index.ts","../src/client.ts","../src/connect.ts"],"mappings":";;;;cAEa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8JD,kCAAkC;KAClC,iBAAiB,UAAU,o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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsCD,wBAAwB;;;;;;;;KCrExB,sBAAsB,qBAAqB;UAE7C;;EAER;;EAEA,eAAe;;KAGL,gBAAgB;;EAIpB;EACA;EACA;EACA;;EAGA;;EAEA,sCAAsC;;EAEtC;;EAEA;;;;iBAMQ,cAAc;;iBAKd,aAAa,MAAM,gBAAgB;;;KCvCvC;;iBAGI,aAAa,QAAQ,oBAAoB,kBAAkB;UAgB1D;;EAEf;;EAEA;;EAEA;EACA,SAAS,eAAe;;KAKrB,gBAAgB,KAAK;;;;;;iBASJ,kBACpB,QAAQ,eACR,sBACA,OAAM,cACL;EAAU;EAAsB;;UAuBlB,4BAA4B;EAC3C;EACA;EACA;;EAEA;EACA;;EAEA,cAAc;;EAEd;;UAGe;EACf;EACA;EACA;;;;;;;;iBASoB,aACpB,QAAQ,eACR,MAAM,sBACL,QAAQ"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as ClientOptions, i as WaitOptions, l as OpenConnectorClient, n as ConnectOAuthOptions, o as connectOAuth, r as ConnectResult, s as waitForConnection, u as createClient } from "./index-
|
|
1
|
+
import { c as ClientOptions, i as WaitOptions, l as OpenConnectorClient, n as ConnectOAuthOptions, o as connectOAuth, r as ConnectResult, s as waitForConnection, u as createClient } from "./index-BHcDR6hz.cjs";
|
|
2
2
|
export { type ClientOptions, type ConnectOAuthOptions, type ConnectResult, type OpenConnectorClient, type WaitOptions, connectOAuth, createClient, waitForConnection };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as ClientOptions, i as WaitOptions, l as OpenConnectorClient, n as ConnectOAuthOptions, o as connectOAuth, r as ConnectResult, s as waitForConnection, u as createClient } from "./index-
|
|
1
|
+
import { c as ClientOptions, i as WaitOptions, l as OpenConnectorClient, n as ConnectOAuthOptions, o as connectOAuth, r as ConnectResult, s as waitForConnection, u as createClient } from "./index-BuOGCASE.js";
|
|
2
2
|
export { type ClientOptions, type ConnectOAuthOptions, type ConnectResult, type OpenConnectorClient, type WaitOptions, connectOAuth, createClient, waitForConnection };
|
package/dist/testing.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as connectError, c as ClientOptions, d as resolveRpcUrl, i as WaitOptions, l as OpenConnectorClient, n as ConnectOAuthOptions, o as connectOAuth, r as ConnectResult, s as waitForConnection, t as ConnectErrorReason, u as createClient } from "./index-
|
|
1
|
+
import { a as connectError, c as ClientOptions, d as resolveRpcUrl, i as WaitOptions, l as OpenConnectorClient, n as ConnectOAuthOptions, o as connectOAuth, r as ConnectResult, s as waitForConnection, t as ConnectErrorReason, u as createClient } from "./index-BHcDR6hz.cjs";
|
|
2
2
|
export { type ClientOptions, type ConnectErrorReason, type ConnectOAuthOptions, type ConnectResult, type OpenConnectorClient, type WaitOptions, connectError, connectOAuth, createClient, resolveRpcUrl, waitForConnection };
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as connectError, c as ClientOptions, d as resolveRpcUrl, i as WaitOptions, l as OpenConnectorClient, n as ConnectOAuthOptions, o as connectOAuth, r as ConnectResult, s as waitForConnection, t as ConnectErrorReason, u as createClient } from "./index-
|
|
1
|
+
import { a as connectError, c as ClientOptions, d as resolveRpcUrl, i as WaitOptions, l as OpenConnectorClient, n as ConnectOAuthOptions, o as connectOAuth, r as ConnectResult, s as waitForConnection, t as ConnectErrorReason, u as createClient } from "./index-BuOGCASE.js";
|
|
2
2
|
export { type ClientOptions, type ConnectErrorReason, type ConnectOAuthOptions, type ConnectResult, type OpenConnectorClient, type WaitOptions, connectError, connectOAuth, createClient, resolveRpcUrl, waitForConnection };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-connector/sdk",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Typed TypeScript SDK for the native Open Connector API",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
63
63
|
"vite-plus": "0.3.0",
|
|
64
64
|
"vitest": "4.1.11",
|
|
65
|
-
"@open-connector/
|
|
66
|
-
"@open-connector/
|
|
65
|
+
"@open-connector/config": "0.0.0",
|
|
66
|
+
"@open-connector/api-contracts": "0.0.0"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=20"
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"build:cjs": "vp pack src/index.ts src/testing.ts --dts.eager --dts.generator tsc --dts.resolver tsc --format cjs --sourcemap --platform neutral --no-clean",
|
|
75
75
|
"test": "vp test run",
|
|
76
76
|
"test:coverage": "vp test run --coverage",
|
|
77
|
-
"check-types": "tsc --noEmit"
|
|
77
|
+
"check-types": "tsc --noEmit --composite false --incremental false"
|
|
78
78
|
}
|
|
79
79
|
}
|