@mittwald/ext-bridge 0.2.0-alpha.1052 → 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.
@@ -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.catchall(z.string().optional().nullable()).safeParse(something);
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\";\nimport z from \"zod\";\n\nexport const parseConfig = (something: unknown) => {\n const parsed = config\n .catchall(z.string().optional().nullable())\n .safeParse(something);\n if (parsed.error) {\n throw new ExtBridgeError(\"Invalid config: \" + parsed.error.message);\n }\n return parsed.data;\n};\n"],"mappings":";;;;AAIA,IAAa,eAAe,cAAuB;CACjD,MAAM,SAAS,OACZ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAC1C,UAAU,SAAS;CACtB,IAAI,OAAO,OACT,MAAM,IAAI,eAAe,qBAAqB,OAAO,MAAM,OAAO;CAEpE,OAAO,OAAO;AAChB"}
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 as z$1 } from "zod";
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$1.object({
8
- sessionId: z$1.string(),
9
- userId: z$1.string(),
10
- extensionId: z$1.string(),
11
- extensionInstanceId: z$1.string(),
12
- variantKey: z$1.string().optional().nullable()
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$1.object({
19
- appInstallationId: z$1.string().optional(),
20
- projectId: z$1.string().optional(),
21
- customerId: z$1.string().optional()
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
- var config = baseConfig.extend(contextParameters.shape);
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: z.string().optional().nullable(),\n});\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 contextParameters = z.object({\n appInstallationId: z.string().optional(),\n projectId: z.string().optional(),\n customerId: z.string().optional(),\n});\n\nexport const config = baseConfig.extend(contextParameters.shape);\n"],"mappings":";;;;;;AAMA,IAAM,aAAa,IAAE,OAAO;CAC1B,WAAW,IAAE,OAAO;CACpB,QAAQ,IAAE,OAAO;CACjB,aAAa,IAAE,OAAO;CACtB,qBAAqB,IAAE,OAAO;CAC9B,YAAY,IAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7C,CAAC;;;;;AAMD,IAAM,oBAAoB,IAAE,OAAO;CACjC,mBAAmB,IAAE,OAAO,CAAC,CAAC,SAAS;CACvC,WAAW,IAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,YAAY,IAAE,OAAO,CAAC,CAAC,SAAS;AAClC,CAAC;AAED,IAAa,SAAS,WAAW,OAAO,kBAAkB,KAAK"}
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 as z$1 } from "zod";
1
+ import { z } from "zod";
2
2
  //#region src/sessionToken/schemas.ts
3
- var extensionScopes = z$1.string().array();
4
- var extensionContext = z$1.enum(["project", "customer"]);
5
- var sessionTokenPayload = z$1.object({
6
- sessionId: z$1.string(),
7
- userId: z$1.string(),
8
- extensionId: z$1.string(),
9
- extensionInstanceId: z$1.string(),
10
- contextId: z$1.string(),
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$1.boolean(),
14
- publicKeySerial: z$1.string(),
15
- variantKey: z$1.string().optional().nullable()
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,IAAE,OAAO,CAAC,CAAC,MAAM;AAChD,IAAa,mBAAmB,IAAE,KAAK,CAAC,WAAW,UAAU,CAAC;AAE9D,IAAa,sBAAsB,IAAE,OAAO;CAC1C,WAAW,IAAE,OAAO;CACpB,QAAQ,IAAE,OAAO;CACjB,aAAa,IAAE,OAAO;CACtB,qBAAqB,IAAE,OAAO;CAC9B,WAAW,IAAE,OAAO;CACpB,SAAS;CACT,QAAQ;CACR,8BAA8B,IAAE,QAAQ;CACxC,iBAAiB,IAAE,OAAO;CAC1B,YAAY,IAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7C,CAAC"}
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 | null | undefined;
2
+ [x: string]: string | undefined;
3
3
  sessionId: string;
4
4
  userId: string;
5
5
  extensionId: string;
6
6
  extensionInstanceId: string;
7
- variantKey?: string | null | undefined;
8
- appInstallationId?: string | undefined;
9
- projectId?: string | undefined;
10
- customerId?: string | undefined;
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":"AAIA,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO;;;;;;;;;;CAQ7C,CAAC"}
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.ZodNullable<z.ZodOptional<z.ZodString>>;
8
- appInstallationId: z.ZodOptional<z.ZodString>;
9
- projectId: z.ZodOptional<z.ZodString>;
10
- customerId: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>;
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;AAwBxB,eAAO,MAAM,MAAM;;;;;;;;;iBAA6C,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
- export type ExtBridgeConfig = z.infer<typeof config> & HostConfig;
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,GAAG,UAAU,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,GAAG,UAAU,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"}
@@ -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.1052",
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.1052",
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": "48d65ca58f263e57580f4a2ce70d96734267485b"
79
+ "gitHead": "363d9846eb1b1320466ba0ca812e102347aacaa5"
80
80
  }