apps 0.0.1-beta.12 → 0.0.1-beta.14
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/framework-reference.json +1 -1
- package/js/{chunk-TYVDBQSI.js → chunk-4ASNKGCV.js} +2 -2
- package/js/{chunk-YQNLXHHM.js → chunk-4DWF4ZWI.js} +4 -4
- package/js/{chunk-KRSCJDTW.js → chunk-6HSH75OI.js} +20 -0
- package/js/{chunk-S6YVNPFS.js → chunk-G4FT53I7.js} +2 -2
- package/js/chunk-OD3KFKZD.js +1617 -0
- package/js/{chunk-WVVV4TX2.js → chunk-QS6CAHKC.js} +2 -2
- package/js/{chunk-Z2QY3YTF.js → chunk-S73JGVR5.js} +2 -2
- package/js/{chunk-Y32GRPVD.js → chunk-TG6DOCRO.js} +3 -3
- package/js/{chunk-GPFVWWDZ.js → chunk-YPKG2QO5.js} +1 -1
- package/js/contracts.js +5 -1
- package/js/effect.js +5 -5
- package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
- package/js/graphql.js +6 -6
- package/js/host.js +5 -5
- package/js/index.js +3 -3
- package/js/mcp/effect.js +7 -7
- package/js/mcp/stdio.js +7 -7
- package/js/mcp.js +8 -8
- package/js/openapi.js +3282 -1088
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/host.d.ts +1 -1
- package/types/apps/src/contracts/openapi.d.ts +1 -1
- package/types/apps/src/contracts/protocols/1.d.ts +220 -66
- package/types/apps/src/contracts/protocols/2.d.ts +60 -18
- package/types/apps/src/contracts/protocols/3.d.ts +60 -18
- package/types/apps/src/contracts/protocols/4.d.ts +100 -30
- package/types/apps/src/contracts/protocols/5.d.ts +120 -36
- package/types/apps/src/contracts/provider.d.ts +30 -5
- package/types/apps/src/implementation/openapi-compile.d.ts +5 -2
- package/types/apps/src/implementation/openapi-document.d.ts +15 -2
- package/types/apps/src/implementation/openapi-request.d.ts +8 -1
- package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
- package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
fromPromise,
|
|
7
7
|
nativeOperation,
|
|
8
8
|
nativeRouter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YPKG2QO5.js";
|
|
10
10
|
import {
|
|
11
11
|
ScheduleTiming
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6HSH75OI.js";
|
|
13
13
|
import {
|
|
14
14
|
DatabaseSchema
|
|
15
15
|
} from "./chunk-N7YDVXYJ.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
failureDetail,
|
|
9
9
|
readCatalog,
|
|
10
10
|
routerSkills
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S73JGVR5.js";
|
|
12
12
|
import {
|
|
13
13
|
folderSkillsEffect
|
|
14
14
|
} from "./chunk-IPI4MFSN.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isApp,
|
|
19
19
|
toEffectApp,
|
|
20
20
|
unavailableStorage
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4ASNKGCV.js";
|
|
22
22
|
import {
|
|
23
23
|
parseDatabaseSchema
|
|
24
24
|
} from "./chunk-ZQINWV4W.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
locate,
|
|
29
29
|
nativeOperation,
|
|
30
30
|
toPromise
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YPKG2QO5.js";
|
|
32
32
|
import {
|
|
33
33
|
accountProviderError,
|
|
34
34
|
httpProviderError,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
defaultWebhookTransportLimits,
|
|
82
82
|
maxInputProblems,
|
|
83
83
|
workflowDurationMillis
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-6HSH75OI.js";
|
|
85
85
|
import {
|
|
86
86
|
CacheError
|
|
87
87
|
} from "./chunk-R3EV5FTO.js";
|
|
@@ -1851,7 +1851,23 @@ var declaredAuthorizationQuery = Schema_exports.makeFilter(
|
|
|
1851
1851
|
return void 0;
|
|
1852
1852
|
}
|
|
1853
1853
|
);
|
|
1854
|
+
var OAuthTokenRequestFormat = Schema_exports.Literals(["form", "json"]);
|
|
1855
|
+
var OAuthTokenResponse = Schema_exports.Struct({
|
|
1856
|
+
path: Schema_exports.String.check(Schema_exports.isPattern(/^[^.]+(\.[^.]+)*$/))
|
|
1857
|
+
});
|
|
1858
|
+
var tokenRequestOptions = {
|
|
1859
|
+
/** Joins requested scopes; Linear wants `","`. Defaults to RFC 6749's space. */
|
|
1860
|
+
scopeSeparator: Schema_exports.optionalKey(Schema_exports.String.check(Schema_exports.isMinLength(1))),
|
|
1861
|
+
/** Encoding of token requests. Defaults to `"form"`; Atlassian, ClickUp and Notion need `"json"`. */
|
|
1862
|
+
tokenRequestFormat: Schema_exports.optionalKey(OAuthTokenRequestFormat)
|
|
1863
|
+
};
|
|
1854
1864
|
var oauthOptions = {
|
|
1865
|
+
...tokenRequestOptions,
|
|
1866
|
+
/**
|
|
1867
|
+
* Read the grant from this nested member of the token response when the top-level response has
|
|
1868
|
+
* no access token or no scope. Slack's user tokens use `{ path: "authed_user" }`.
|
|
1869
|
+
*/
|
|
1870
|
+
tokenResponse: Schema_exports.optionalKey(OAuthTokenResponse),
|
|
1855
1871
|
grant: Schema_exports.optionalKey(Schema_exports.Literal("authorization_code")),
|
|
1856
1872
|
/**
|
|
1857
1873
|
* Service-defined authorization request parameters, such as Google's
|
|
@@ -1891,6 +1907,7 @@ var OAuth2Config = Schema_exports.Union([
|
|
|
1891
1907
|
tokenUrl: Schema_exports.optionalKey(Schema_exports.Never),
|
|
1892
1908
|
revocationUrl: Schema_exports.optionalKey(Schema_exports.Never),
|
|
1893
1909
|
scopes: Schema_exports.optionalKey(Schema_exports.Array(Schema_exports.String)),
|
|
1910
|
+
...tokenRequestOptions,
|
|
1894
1911
|
tokenEndpointAuthMethod: OAuthSecretClientAuth,
|
|
1895
1912
|
resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl))
|
|
1896
1913
|
}),
|
|
@@ -1899,6 +1916,7 @@ var OAuth2Config = Schema_exports.Union([
|
|
|
1899
1916
|
tokenUrl: HttpUrl,
|
|
1900
1917
|
revocationUrl: Schema_exports.optionalKey(HttpUrl),
|
|
1901
1918
|
scopes: Schema_exports.Array(Schema_exports.String),
|
|
1919
|
+
...tokenRequestOptions,
|
|
1902
1920
|
tokenEndpointAuthMethod: OAuthSecretClientAuth,
|
|
1903
1921
|
resource: Schema_exports.optionalKey(Schema_exports.NullOr(HttpUrl)),
|
|
1904
1922
|
authorizationUrl: Schema_exports.optionalKey(Schema_exports.Never),
|
|
@@ -2542,6 +2560,8 @@ export {
|
|
|
2542
2560
|
SecretsMethod,
|
|
2543
2561
|
OAuthClientAuth,
|
|
2544
2562
|
OAuthSecretClientAuth,
|
|
2563
|
+
OAuthTokenRequestFormat,
|
|
2564
|
+
OAuthTokenResponse,
|
|
2545
2565
|
OAuth2Config,
|
|
2546
2566
|
OAuth2AccessToken,
|
|
2547
2567
|
OAuth2Method,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
adaptMcpTools,
|
|
3
3
|
mcpClient,
|
|
4
4
|
mcpJsonSchemaValidator
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TG6DOCRO.js";
|
|
6
6
|
import {
|
|
7
7
|
accountProviderError,
|
|
8
8
|
httpProviderError
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
McpError,
|
|
12
12
|
McpToolsOptions,
|
|
13
13
|
defaultMcpClientLimits
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6HSH75OI.js";
|
|
15
15
|
import {
|
|
16
16
|
ProviderError
|
|
17
17
|
} from "./chunk-R3EV5FTO.js";
|