@mittwald/ext-bridge 0.2.0-alpha.575 → 0.2.0-alpha.577
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/types/config/getConfig.d.ts +10 -10
- package/dist/types/config/getConfig.d.ts.map +1 -1
- package/dist/types/config/parse.d.ts +10 -10
- package/dist/types/config/parse.d.ts.map +1 -1
- package/dist/types/config/schemas.d.ts +1 -20
- package/dist/types/config/schemas.d.ts.map +1 -1
- package/dist/types/react/hooks/useConfig.d.ts +10 -10
- package/dist/types/react/hooks/useConfig.d.ts.map +1 -1
- package/dist/types/sessionToken/schemas.d.ts +11 -27
- package/dist/types/sessionToken/schemas.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const getConfig: () => Promise<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
appInstallationId
|
|
8
|
-
projectId
|
|
9
|
-
customerId
|
|
10
|
-
}
|
|
1
|
+
export declare const getConfig: () => Promise<{
|
|
2
|
+
[x: string]: string;
|
|
3
|
+
sessionId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
extensionId: string;
|
|
6
|
+
extensionInstanceId: string;
|
|
7
|
+
appInstallationId?: string | undefined;
|
|
8
|
+
projectId?: string | undefined;
|
|
9
|
+
customerId?: string | undefined;
|
|
10
|
+
}>;
|
|
11
11
|
//# sourceMappingURL=getConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../src/config/getConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../src/config/getConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;EAGrB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const parseConfig: (something: unknown) =>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
appInstallationId
|
|
8
|
-
projectId
|
|
9
|
-
customerId
|
|
10
|
-
}
|
|
1
|
+
export declare const parseConfig: (something: unknown) => {
|
|
2
|
+
[x: string]: string;
|
|
3
|
+
sessionId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
extensionId: string;
|
|
6
|
+
extensionInstanceId: string;
|
|
7
|
+
appInstallationId?: string | undefined;
|
|
8
|
+
projectId?: string | undefined;
|
|
9
|
+
customerId?: string | undefined;
|
|
10
|
+
};
|
|
11
11
|
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/config/parse.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/config/parse.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,WAAW,OAAO;;;;;;;;;CAM7C,CAAC"}
|
|
@@ -4,27 +4,8 @@ export declare const config: z.ZodObject<{
|
|
|
4
4
|
userId: z.ZodString;
|
|
5
5
|
extensionId: z.ZodString;
|
|
6
6
|
extensionInstanceId: z.ZodString;
|
|
7
|
-
} & {
|
|
8
7
|
appInstallationId: z.ZodOptional<z.ZodString>;
|
|
9
8
|
projectId: z.ZodOptional<z.ZodString>;
|
|
10
9
|
customerId: z.ZodOptional<z.ZodString>;
|
|
11
|
-
},
|
|
12
|
-
sessionId: z.ZodString;
|
|
13
|
-
userId: z.ZodString;
|
|
14
|
-
extensionId: z.ZodString;
|
|
15
|
-
extensionInstanceId: z.ZodString;
|
|
16
|
-
} & {
|
|
17
|
-
appInstallationId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
19
|
-
customerId: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.ZodString, "strip">, z.objectInputType<{
|
|
21
|
-
sessionId: z.ZodString;
|
|
22
|
-
userId: z.ZodString;
|
|
23
|
-
extensionId: z.ZodString;
|
|
24
|
-
extensionInstanceId: z.ZodString;
|
|
25
|
-
} & {
|
|
26
|
-
appInstallationId: z.ZodOptional<z.ZodString>;
|
|
27
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
28
|
-
customerId: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, z.ZodString, "strip">>;
|
|
10
|
+
}, z.core.$catchall<z.ZodString>>;
|
|
30
11
|
//# 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;AAiBxB,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/config/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,MAAM;;;;;;;;iCAAsC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const useConfig: () =>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
appInstallationId
|
|
8
|
-
projectId
|
|
9
|
-
customerId
|
|
10
|
-
}
|
|
1
|
+
export declare const useConfig: () => {
|
|
2
|
+
[x: string]: string;
|
|
3
|
+
sessionId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
extensionId: string;
|
|
6
|
+
extensionInstanceId: string;
|
|
7
|
+
appInstallationId?: string | undefined;
|
|
8
|
+
projectId?: string | undefined;
|
|
9
|
+
customerId?: string | undefined;
|
|
10
|
+
};
|
|
11
11
|
//# sourceMappingURL=useConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/useConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/react/hooks/useConfig.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;CAErB,CAAC"}
|
|
@@ -1,38 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const extensionScopes: z.ZodArray<z.ZodString
|
|
3
|
-
export declare const extensionContext: z.ZodEnum<
|
|
2
|
+
export declare const extensionScopes: z.ZodArray<z.ZodString>;
|
|
3
|
+
export declare const extensionContext: z.ZodEnum<{
|
|
4
|
+
project: "project";
|
|
5
|
+
customer: "customer";
|
|
6
|
+
}>;
|
|
4
7
|
export declare const sessionTokenPayload: z.ZodObject<{
|
|
5
8
|
sessionId: z.ZodString;
|
|
6
9
|
userId: z.ZodString;
|
|
7
10
|
extensionId: z.ZodString;
|
|
8
11
|
extensionInstanceId: z.ZodString;
|
|
9
12
|
contextId: z.ZodString;
|
|
10
|
-
context: z.ZodEnum<
|
|
11
|
-
|
|
13
|
+
context: z.ZodEnum<{
|
|
14
|
+
project: "project";
|
|
15
|
+
customer: "customer";
|
|
16
|
+
}>;
|
|
17
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
12
18
|
authenticatableWithoutSecret: z.ZodBoolean;
|
|
13
19
|
publicKeySerial: z.ZodString;
|
|
14
20
|
variantKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
|
-
},
|
|
16
|
-
sessionId: string;
|
|
17
|
-
userId: string;
|
|
18
|
-
extensionId: string;
|
|
19
|
-
extensionInstanceId: string;
|
|
20
|
-
contextId: string;
|
|
21
|
-
context: "project" | "customer";
|
|
22
|
-
scopes: string[];
|
|
23
|
-
authenticatableWithoutSecret: boolean;
|
|
24
|
-
publicKeySerial: string;
|
|
25
|
-
variantKey?: string | null | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
sessionId: string;
|
|
28
|
-
userId: string;
|
|
29
|
-
extensionId: string;
|
|
30
|
-
extensionInstanceId: string;
|
|
31
|
-
contextId: string;
|
|
32
|
-
context: "project" | "customer";
|
|
33
|
-
scopes: string[];
|
|
34
|
-
authenticatableWithoutSecret: boolean;
|
|
35
|
-
publicKeySerial: string;
|
|
36
|
-
variantKey?: string | null | undefined;
|
|
37
|
-
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
38
22
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/sessionToken/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/sessionToken/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,yBAAqB,CAAC;AAClD,eAAO,MAAM,gBAAgB;;;EAAkC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;iBAW9B,CAAC"}
|
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.577",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bridge for mStudio embedded frontend extensions",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -39,25 +39,25 @@
|
|
|
39
39
|
"axios": "^1.13.2",
|
|
40
40
|
"jose": "^6.1.2",
|
|
41
41
|
"std-env": "^3.10.0",
|
|
42
|
-
"zod": "^
|
|
42
|
+
"zod": "^4.1.12"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@mittwald/typescript-config": "workspace:*",
|
|
46
46
|
"@types/node": "^24.10.1",
|
|
47
47
|
"@types/react": "^19.2.6",
|
|
48
48
|
"@types/react-dom": "^19.2.3",
|
|
49
|
-
"nx": "^
|
|
49
|
+
"nx": "^22.1.0",
|
|
50
50
|
"prettier": "^3.6.2",
|
|
51
51
|
"react": "^19.2.0",
|
|
52
52
|
"react-dom": "^19.2.0",
|
|
53
53
|
"rimraf": "^6.1.2",
|
|
54
54
|
"rollup-preserve-directives": "^1.1.3",
|
|
55
55
|
"typescript": "^5.9.3",
|
|
56
|
-
"vite": "^7.2.
|
|
56
|
+
"vite": "^7.2.4",
|
|
57
57
|
"vite-plugin-checker": "^0.11.0",
|
|
58
58
|
"vite-plugin-dts": "^4.5.4",
|
|
59
59
|
"vite-plugin-externalize-deps": "^0.10.0",
|
|
60
|
-
"vitest": "^
|
|
60
|
+
"vitest": "^4.0.12"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "^19",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"optional": true
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "82dcb49f3312aa3996a70aa2e95ff2591876c569"
|
|
75
75
|
}
|