@mittwald/ext-bridge 0.2.0-alpha.1051 → 0.2.0-alpha.1053
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/js/config/parse.mjs +1 -2
- package/dist/js/config/parse.mjs.map +1 -1
- package/dist/js/config/schemas.mjs +50 -12
- package/dist/js/config/schemas.mjs.map +1 -1
- package/dist/js/sessionToken/schemas.mjs +12 -12
- package/dist/js/sessionToken/schemas.mjs.map +1 -1
- package/dist/types/config/parse.d.ts +28 -5
- package/dist/types/config/parse.d.ts.map +1 -1
- package/dist/types/config/schemas.d.ts +33 -5
- package/dist/types/config/schemas.d.ts.map +1 -1
- package/dist/types/config/types.d.ts +26 -1
- package/dist/types/config/types.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/js/config/parse.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExtBridgeError } from "../error.mjs";
|
|
2
2
|
import { config } from "./schemas.mjs";
|
|
3
|
-
import z from "zod";
|
|
4
3
|
//#region src/config/parse.ts
|
|
5
4
|
var parseConfig = (something) => {
|
|
6
|
-
const parsed = config.
|
|
5
|
+
const parsed = config.safeParse(something);
|
|
7
6
|
if (parsed.error) throw new ExtBridgeError("Invalid config: " + parsed.error.message);
|
|
8
7
|
return parsed.data;
|
|
9
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.mjs","names":[],"sources":["../../../src/config/parse.ts"],"sourcesContent":["import { config } from \"@/config/schemas\";\nimport { ExtBridgeError } from \"@/error\";\
|
|
1
|
+
{"version":3,"file":"parse.mjs","names":[],"sources":["../../../src/config/parse.ts"],"sourcesContent":["import { config } from \"@/config/schemas\";\nimport { ExtBridgeError } from \"@/error\";\n\nexport const parseConfig = (something: unknown) => {\n const parsed = config.safeParse(something);\n if (parsed.error) {\n throw new ExtBridgeError(\"Invalid config: \" + parsed.error.message);\n }\n return parsed.data;\n};\n"],"mappings":";;;AAGA,IAAa,eAAe,cAAuB;CACjD,MAAM,SAAS,OAAO,UAAU,SAAS;CACzC,IAAI,OAAO,OACT,MAAM,IAAI,eAAe,qBAAqB,OAAO,MAAM,OAAO;CAEpE,OAAO,OAAO;AAChB"}
|
|
@@ -1,26 +1,64 @@
|
|
|
1
|
-
import { z
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
//#region src/config/schemas.ts
|
|
3
3
|
/**
|
|
4
|
+
* Schema of an optional config value: `string | undefined` to a consumer.
|
|
5
|
+
*
|
|
6
|
+
* A host that sends `null` degrades to "value absent" instead of failing the
|
|
7
|
+
* config parse — a failed parse throws and the extension never starts.
|
|
8
|
+
*/
|
|
9
|
+
var optionalString = z.string().nullable().optional().transform((value) => value ?? void 0);
|
|
10
|
+
/**
|
|
4
11
|
* Breaking Change warning: Do not remove/rename/modify existing properties in
|
|
5
12
|
* the config schema, as they might be used by existing extensions.
|
|
6
13
|
*/
|
|
7
|
-
var baseConfig = z
|
|
8
|
-
sessionId: z
|
|
9
|
-
userId: z
|
|
10
|
-
extensionId: z
|
|
11
|
-
extensionInstanceId: z
|
|
12
|
-
variantKey:
|
|
14
|
+
var baseConfig = z.object({
|
|
15
|
+
sessionId: z.string(),
|
|
16
|
+
userId: z.string(),
|
|
17
|
+
extensionId: z.string(),
|
|
18
|
+
extensionInstanceId: z.string(),
|
|
19
|
+
variantKey: optionalString
|
|
13
20
|
});
|
|
14
21
|
/**
|
|
22
|
+
* The context parameters the mStudio host can supply, in addition to
|
|
23
|
+
* `sessionId`.
|
|
24
|
+
*
|
|
15
25
|
* Breaking Change warning: Do not remove/rename/modify existing properties in
|
|
16
26
|
* the config schema, as they might be used by existing extensions.
|
|
17
27
|
*/
|
|
18
|
-
var contextParameters = z
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
var contextParameters = z.object({
|
|
29
|
+
aiApiKeyId: optionalString,
|
|
30
|
+
appInstallationId: optionalString,
|
|
31
|
+
backupId: optionalString,
|
|
32
|
+
certificateId: optionalString,
|
|
33
|
+
containerId: optionalString,
|
|
34
|
+
contractId: optionalString,
|
|
35
|
+
conversationId: optionalString,
|
|
36
|
+
cronjobId: optionalString,
|
|
37
|
+
customerId: optionalString,
|
|
38
|
+
databaseId: optionalString,
|
|
39
|
+
deliveryBoxId: optionalString,
|
|
40
|
+
domainId: optionalString,
|
|
41
|
+
emailAddressId: optionalString,
|
|
42
|
+
ingressId: optionalString,
|
|
43
|
+
leadId: optionalString,
|
|
44
|
+
licenseId: optionalString,
|
|
45
|
+
mailAddressId: optionalString,
|
|
46
|
+
projectId: optionalString,
|
|
47
|
+
registryId: optionalString,
|
|
48
|
+
scheduleId: optionalString,
|
|
49
|
+
serverId: optionalString,
|
|
50
|
+
sftpUserId: optionalString,
|
|
51
|
+
sshUserId: optionalString,
|
|
52
|
+
stackId: optionalString,
|
|
53
|
+
templateId: optionalString,
|
|
54
|
+
zoneId: optionalString
|
|
22
55
|
});
|
|
23
|
-
|
|
56
|
+
/**
|
|
57
|
+
* The catchall keeps a context parameter mStudio starts sending before this
|
|
58
|
+
* schema declares it. It is part of the exported schema on purpose: the type
|
|
59
|
+
* and the runtime parse must agree about unknown keys.
|
|
60
|
+
*/
|
|
61
|
+
var config = baseConfig.extend(contextParameters.shape).catchall(optionalString);
|
|
24
62
|
//#endregion
|
|
25
63
|
export { config };
|
|
26
64
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.mjs","names":[],"sources":["../../../src/config/schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Breaking Change warning: Do not remove/rename/modify existing properties in\n * the config schema, as they might be used by existing extensions.\n */\nconst baseConfig = z.object({\n sessionId: z.string(),\n userId: z.string(),\n extensionId: z.string(),\n extensionInstanceId: z.string(),\n variantKey:
|
|
1
|
+
{"version":3,"file":"schemas.mjs","names":[],"sources":["../../../src/config/schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Schema of an optional config value: `string | undefined` to a consumer.\n *\n * A host that sends `null` degrades to \"value absent\" instead of failing the\n * config parse — a failed parse throws and the extension never starts.\n */\nconst optionalString = z\n .string()\n .nullable()\n .optional()\n .transform((value) => value ?? undefined);\n\n/**\n * Breaking Change warning: Do not remove/rename/modify existing properties in\n * the config schema, as they might be used by existing extensions.\n */\nconst baseConfig = z.object({\n sessionId: z.string(),\n userId: z.string(),\n extensionId: z.string(),\n extensionInstanceId: z.string(),\n variantKey: optionalString,\n});\n\n/**\n * The context parameters the mStudio host can supply, in addition to\n * `sessionId`.\n *\n * Breaking Change warning: Do not remove/rename/modify existing properties in\n * the config schema, as they might be used by existing extensions.\n */\nconst contextParameters = z.object({\n aiApiKeyId: optionalString,\n appInstallationId: optionalString,\n backupId: optionalString,\n certificateId: optionalString,\n containerId: optionalString,\n contractId: optionalString,\n conversationId: optionalString,\n cronjobId: optionalString,\n customerId: optionalString,\n databaseId: optionalString,\n deliveryBoxId: optionalString,\n domainId: optionalString,\n // `emailAddressId` and `ingressId` are deprecated. Their `@deprecated` tags\n // live on `DeprecatedContextParameters` in ./types.ts — JSDoc on a zod shape\n // does not survive the declaration emit.\n emailAddressId: optionalString,\n ingressId: optionalString,\n leadId: optionalString,\n licenseId: optionalString,\n mailAddressId: optionalString,\n projectId: optionalString,\n registryId: optionalString,\n scheduleId: optionalString,\n serverId: optionalString,\n sftpUserId: optionalString,\n sshUserId: optionalString,\n stackId: optionalString,\n templateId: optionalString,\n zoneId: optionalString,\n});\n\n/**\n * The catchall keeps a context parameter mStudio starts sending before this\n * schema declares it. It is part of the exported schema on purpose: the type\n * and the runtime parse must agree about unknown keys.\n */\nexport const config = baseConfig\n .extend(contextParameters.shape)\n .catchall(optionalString);\n"],"mappings":";;;;;;;;AAQA,IAAM,iBAAiB,EACpB,OAAO,CAAC,CACR,SAAS,CAAC,CACV,SAAS,CAAC,CACV,WAAW,UAAU,SAAS,KAAA,CAAS;;;;;AAM1C,IAAM,aAAa,EAAE,OAAO;CAC1B,WAAW,EAAE,OAAO;CACpB,QAAQ,EAAE,OAAO;CACjB,aAAa,EAAE,OAAO;CACtB,qBAAqB,EAAE,OAAO;CAC9B,YAAY;AACd,CAAC;;;;;;;;AASD,IAAM,oBAAoB,EAAE,OAAO;CACjC,YAAY;CACZ,mBAAmB;CACnB,UAAU;CACV,eAAe;CACf,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,WAAW;CACX,YAAY;CACZ,YAAY;CACZ,eAAe;CACf,UAAU;CAIV,gBAAgB;CAChB,WAAW;CACX,QAAQ;CACR,WAAW;CACX,eAAe;CACf,WAAW;CACX,YAAY;CACZ,YAAY;CACZ,UAAU;CACV,YAAY;CACZ,WAAW;CACX,SAAS;CACT,YAAY;CACZ,QAAQ;AACV,CAAC;;;;;;AAOD,IAAa,SAAS,WACnB,OAAO,kBAAkB,KAAK,CAAC,CAC/B,SAAS,cAAc"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { z
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
//#region src/sessionToken/schemas.ts
|
|
3
|
-
var extensionScopes = z
|
|
4
|
-
var extensionContext = z
|
|
5
|
-
var sessionTokenPayload = z
|
|
6
|
-
sessionId: z
|
|
7
|
-
userId: z
|
|
8
|
-
extensionId: z
|
|
9
|
-
extensionInstanceId: z
|
|
10
|
-
contextId: z
|
|
3
|
+
var extensionScopes = z.string().array();
|
|
4
|
+
var extensionContext = z.enum(["project", "customer"]);
|
|
5
|
+
var sessionTokenPayload = z.object({
|
|
6
|
+
sessionId: z.string(),
|
|
7
|
+
userId: z.string(),
|
|
8
|
+
extensionId: z.string(),
|
|
9
|
+
extensionInstanceId: z.string(),
|
|
10
|
+
contextId: z.string(),
|
|
11
11
|
context: extensionContext,
|
|
12
12
|
scopes: extensionScopes,
|
|
13
|
-
authenticatableWithoutSecret: z
|
|
14
|
-
publicKeySerial: z
|
|
15
|
-
variantKey: z
|
|
13
|
+
authenticatableWithoutSecret: z.boolean(),
|
|
14
|
+
publicKeySerial: z.string(),
|
|
15
|
+
variantKey: z.string().optional().nullable()
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { extensionContext, extensionScopes, sessionTokenPayload };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.mjs","names":[],"sources":["../../../src/sessionToken/schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const extensionScopes = z.string().array();\nexport const extensionContext = z.enum([\"project\", \"customer\"]);\n\nexport const sessionTokenPayload = z.object({\n sessionId: z.string(),\n userId: z.string(),\n extensionId: z.string(),\n extensionInstanceId: z.string(),\n contextId: z.string(),\n context: extensionContext,\n scopes: extensionScopes,\n authenticatableWithoutSecret: z.boolean(),\n publicKeySerial: z.string(),\n variantKey: z.string().optional().nullable(),\n});\n"],"mappings":";;AAEA,IAAa,kBAAkB,
|
|
1
|
+
{"version":3,"file":"schemas.mjs","names":[],"sources":["../../../src/sessionToken/schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const extensionScopes = z.string().array();\nexport const extensionContext = z.enum([\"project\", \"customer\"]);\n\nexport const sessionTokenPayload = z.object({\n sessionId: z.string(),\n userId: z.string(),\n extensionId: z.string(),\n extensionInstanceId: z.string(),\n contextId: z.string(),\n context: extensionContext,\n scopes: extensionScopes,\n authenticatableWithoutSecret: z.boolean(),\n publicKeySerial: z.string(),\n variantKey: z.string().optional().nullable(),\n});\n"],"mappings":";;AAEA,IAAa,kBAAkB,EAAE,OAAO,CAAC,CAAC,MAAM;AAChD,IAAa,mBAAmB,EAAE,KAAK,CAAC,WAAW,UAAU,CAAC;AAE9D,IAAa,sBAAsB,EAAE,OAAO;CAC1C,WAAW,EAAE,OAAO;CACpB,QAAQ,EAAE,OAAO;CACjB,aAAa,EAAE,OAAO;CACtB,qBAAqB,EAAE,OAAO;CAC9B,WAAW,EAAE,OAAO;CACpB,SAAS;CACT,QAAQ;CACR,8BAA8B,EAAE,QAAQ;CACxC,iBAAiB,EAAE,OAAO;CAC1B,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7C,CAAC"}
|
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
export declare const parseConfig: (something: unknown) => {
|
|
2
|
-
[x: string]: string |
|
|
2
|
+
[x: string]: string | undefined;
|
|
3
3
|
sessionId: string;
|
|
4
4
|
userId: string;
|
|
5
5
|
extensionId: string;
|
|
6
6
|
extensionInstanceId: string;
|
|
7
|
-
variantKey
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
variantKey: string | undefined;
|
|
8
|
+
aiApiKeyId: string | undefined;
|
|
9
|
+
appInstallationId: string | undefined;
|
|
10
|
+
backupId: string | undefined;
|
|
11
|
+
certificateId: string | undefined;
|
|
12
|
+
containerId: string | undefined;
|
|
13
|
+
contractId: string | undefined;
|
|
14
|
+
conversationId: string | undefined;
|
|
15
|
+
cronjobId: string | undefined;
|
|
16
|
+
customerId: string | undefined;
|
|
17
|
+
databaseId: string | undefined;
|
|
18
|
+
deliveryBoxId: string | undefined;
|
|
19
|
+
domainId: string | undefined;
|
|
20
|
+
emailAddressId: string | undefined;
|
|
21
|
+
ingressId: string | undefined;
|
|
22
|
+
leadId: string | undefined;
|
|
23
|
+
licenseId: string | undefined;
|
|
24
|
+
mailAddressId: string | undefined;
|
|
25
|
+
projectId: string | undefined;
|
|
26
|
+
registryId: string | undefined;
|
|
27
|
+
scheduleId: string | undefined;
|
|
28
|
+
serverId: string | undefined;
|
|
29
|
+
sftpUserId: string | undefined;
|
|
30
|
+
sshUserId: string | undefined;
|
|
31
|
+
stackId: string | undefined;
|
|
32
|
+
templateId: string | undefined;
|
|
33
|
+
zoneId: string | undefined;
|
|
11
34
|
};
|
|
12
35
|
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/config/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/config/parse.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM7C,CAAC"}
|
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The catchall keeps a context parameter mStudio starts sending before this
|
|
4
|
+
* schema declares it. It is part of the exported schema on purpose: the type
|
|
5
|
+
* and the runtime parse must agree about unknown keys.
|
|
6
|
+
*/
|
|
2
7
|
export declare const config: z.ZodObject<{
|
|
3
8
|
sessionId: z.ZodString;
|
|
4
9
|
userId: z.ZodString;
|
|
5
10
|
extensionId: z.ZodString;
|
|
6
11
|
extensionInstanceId: z.ZodString;
|
|
7
|
-
variantKey: z.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
variantKey: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
13
|
+
aiApiKeyId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
14
|
+
appInstallationId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
15
|
+
backupId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
16
|
+
certificateId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
17
|
+
containerId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
18
|
+
contractId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
19
|
+
conversationId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
20
|
+
cronjobId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
21
|
+
customerId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
22
|
+
databaseId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
23
|
+
deliveryBoxId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
24
|
+
domainId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
25
|
+
emailAddressId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
26
|
+
ingressId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
27
|
+
leadId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
28
|
+
licenseId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
29
|
+
mailAddressId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
30
|
+
projectId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
31
|
+
registryId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
32
|
+
scheduleId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
33
|
+
serverId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
34
|
+
sftpUserId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
35
|
+
sshUserId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
36
|
+
stackId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
37
|
+
templateId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
38
|
+
zoneId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
39
|
+
}, z.core.$catchall<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>>;
|
|
12
40
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/config/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/config/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiExB;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAEQ,CAAC"}
|
|
@@ -13,6 +13,31 @@ export interface HostConfig {
|
|
|
13
13
|
language: string;
|
|
14
14
|
theme: "dark" | "light";
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Context parameters the host still supplies, but that should not be used any
|
|
18
|
+
* more.
|
|
19
|
+
*
|
|
20
|
+
* The `@deprecated` tags live here and not on the schema shape in
|
|
21
|
+
* `./schemas.ts`: JSDoc on a zod shape does not survive the declaration emit,
|
|
22
|
+
* so a consumer of the published package would never see them.
|
|
23
|
+
*/
|
|
24
|
+
interface DeprecatedContextParameters {
|
|
25
|
+
/** @deprecated Use `mailAddressId` instead. */
|
|
26
|
+
emailAddressId?: string;
|
|
27
|
+
/** @deprecated Use `domainId` instead. */
|
|
28
|
+
ingressId?: string;
|
|
29
|
+
}
|
|
30
|
+
export type ExtBridgeConfig = z.infer<typeof config> & DeprecatedContextParameters & HostConfig;
|
|
17
31
|
export type ExtBridgeConfigInput = z.input<typeof config> & HostConfig;
|
|
32
|
+
/**
|
|
33
|
+
* The config without the values the host contributes itself — what the host
|
|
34
|
+
* receives from the extension environment over the wire.
|
|
35
|
+
*
|
|
36
|
+
* Deliberately not `Omit<ExtBridgeConfigInput, keyof HostConfig>`: the config
|
|
37
|
+
* type carries an index signature for undeclared context parameters, and `Omit`
|
|
38
|
+
* collapses such a type into that index signature alone, dropping every
|
|
39
|
+
* declared property.
|
|
40
|
+
*/
|
|
41
|
+
export type ExtBridgeConfigInputWithoutHostConfig = z.input<typeof config>;
|
|
42
|
+
export {};
|
|
18
43
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,UAAU,2BAA2B;IACnC,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,GAClD,2BAA2B,GAC3B,UAAU,CAAC;AAEb,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,GAAG,UAAU,CAAC;AAEvE;;;;;;;;GAQG;AACH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtBridgeConfig, ExtBridgeConfigInput } from './config/types';
|
|
2
2
|
import { readinessApi } from './readiness';
|
|
3
|
-
export type { ExtBridgeConfig, ExtBridgeConfigInput, HostConfig, } from './config/types';
|
|
3
|
+
export type { ExtBridgeConfig, ExtBridgeConfigInput, ExtBridgeConfigInputWithoutHostConfig, HostConfig, } from './config/types';
|
|
4
4
|
type ReadinessApi = typeof readinessApi;
|
|
5
5
|
export interface ExtBridgeConnectionApi {
|
|
6
6
|
getSessionToken: () => Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,GACX,MAAM,gBAAgB,CAAC;AAExB,KAAK,YAAY,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,SAAS,EAAE,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAChD;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,UAAU,EAAE,sBAAsB,CAAC;IACnC,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,WAAW,EAAE,SAAS,CAAC;CAC5B"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,qCAAqC,EACrC,UAAU,GACX,MAAM,gBAAgB,CAAC;AAExB,KAAK,YAAY,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,SAAS,EAAE,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAChD;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,UAAU,EAAE,sBAAsB,CAAC;IACnC,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,WAAW,EAAE,SAAS,CAAC;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/ext-bridge",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.1053",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bridge for mStudio embedded frontend extensions",
|
|
6
6
|
"homepage": "https://flow.mittwald.de",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"zod": "^4.4.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@mittwald/typescript-config": "0.2.0-alpha.
|
|
48
|
+
"@mittwald/typescript-config": "0.2.0-alpha.1053",
|
|
49
49
|
"@types/node": "^25.9.3",
|
|
50
50
|
"@types/react": "^19.2",
|
|
51
51
|
"@types/react-dom": "^19.2",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"optional": true
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "363d9846eb1b1320466ba0ca812e102347aacaa5"
|
|
80
80
|
}
|