@go-mondo/identity-sdk 0.0.1

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.
@@ -0,0 +1 @@
1
+ pnpm pre-commit
@@ -0,0 +1 @@
1
+ {}
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Mondo Identity - Node SDK
2
+
3
+ ## Getting Started
package/biome.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3
+ "organizeImports": {
4
+ "enabled": true
5
+ },
6
+ "linter": {
7
+ "enabled": true,
8
+ "rules": {
9
+ "recommended": true
10
+ }
11
+ },
12
+ "formatter": {
13
+ "enabled": true,
14
+ "indentStyle": "space",
15
+ "indentWidth": 2,
16
+ "lineEnding": "lf",
17
+ "lineWidth": 80
18
+ },
19
+ "javascript": {
20
+ "formatter": {
21
+ "semicolons": "always",
22
+ "bracketSpacing": true,
23
+ "quoteStyle": "single",
24
+ "trailingCommas": "es5"
25
+ }
26
+ },
27
+ "files": {
28
+ "ignore": ["node_modules", "coverage", "lib", ".vscode/*"]
29
+ }
30
+ }
package/package.json ADDED
@@ -0,0 +1,155 @@
1
+ {
2
+ "name": "@go-mondo/identity-sdk",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "description": "A node SDK for Mondo Identity",
6
+ "license": "MIT",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "main": "./lib/cjs/common/index.js",
11
+ "types": "./lib/cjs/common/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "require": {
15
+ "types": "./lib/cjs/common/index.d.ts",
16
+ "default": "./lib/cjs/common/index.js"
17
+ },
18
+ "import": {
19
+ "types": "./lib/esm/common/index.d.ts",
20
+ "default": "./lib/esm/common/index.js"
21
+ }
22
+ },
23
+ "./action": {
24
+ "require": {
25
+ "types": "./lib/cjs/action/index.d.ts",
26
+ "default": "./lib/cjs/action/index.js"
27
+ },
28
+ "import": {
29
+ "types": "./lib/esm/action/index.d.ts",
30
+ "default": "./lib/esm/action/index.js"
31
+ }
32
+ },
33
+ "./activity": {
34
+ "require": {
35
+ "types": "./lib/cjs/activity/index.d.ts",
36
+ "default": "./lib/cjs/activity/index.js"
37
+ },
38
+ "import": {
39
+ "types": "./lib/esm/activity/index.d.ts",
40
+ "default": "./lib/esm/activity/index.js"
41
+ }
42
+ },
43
+ "./app": {
44
+ "require": {
45
+ "types": "./lib/cjs/app/index.d.ts",
46
+ "default": "./lib/cjs/app/index.js"
47
+ },
48
+ "import": {
49
+ "types": "./lib/esm/app/index.d.ts",
50
+ "default": "./lib/esm/app/index.js"
51
+ }
52
+ },
53
+ "./association": {
54
+ "require": {
55
+ "types": "./lib/cjs/association/index.d.ts",
56
+ "default": "./lib/cjs/association/index.js"
57
+ },
58
+ "import": {
59
+ "types": "./lib/esm/association/index.d.ts",
60
+ "default": "./lib/esm/association/index.js"
61
+ }
62
+ },
63
+ "./authentication": {
64
+ "require": {
65
+ "types": "./lib/cjs/authentication/index.d.ts",
66
+ "default": "./lib/cjs/authentication/index.js"
67
+ },
68
+ "import": {
69
+ "types": "./lib/esm/authentication/index.d.ts",
70
+ "default": "./lib/esm/authentication/index.js"
71
+ }
72
+ },
73
+ "./authorization": {
74
+ "require": {
75
+ "types": "./lib/cjs/authorization/index.d.ts",
76
+ "default": "./lib/cjs/authorization/index.js"
77
+ },
78
+ "import": {
79
+ "types": "./lib/esm/authorization/index.d.ts",
80
+ "default": "./lib/esm/authorization/index.js"
81
+ }
82
+ },
83
+ "./customer": {
84
+ "require": {
85
+ "types": "./lib/cjs/customer/index.d.ts",
86
+ "default": "./lib/cjs/customer/index.js"
87
+ },
88
+ "import": {
89
+ "types": "./lib/esm/customer/index.d.ts",
90
+ "default": "./lib/esm/customer/index.js"
91
+ }
92
+ },
93
+ "./identity": {
94
+ "require": {
95
+ "types": "./lib/cjs/identity/index.d.ts",
96
+ "default": "./lib/cjs/identity/index.js"
97
+ },
98
+ "import": {
99
+ "types": "./lib/esm/identity/index.d.ts",
100
+ "default": "./lib/esm/identity/index.js"
101
+ }
102
+ },
103
+ "./oauth": {
104
+ "require": {
105
+ "types": "./lib/cjs/oauth/index.d.ts",
106
+ "default": "./lib/cjs/oauth/index.js"
107
+ },
108
+ "import": {
109
+ "types": "./lib/esm/oauth/index.d.ts",
110
+ "default": "./lib/esm/oauth/index.js"
111
+ }
112
+ },
113
+ "./workspace": {
114
+ "require": {
115
+ "types": "./lib/cjs/workspace/index.d.ts",
116
+ "default": "./lib/cjs/workspace/index.js"
117
+ },
118
+ "import": {
119
+ "types": "./lib/esm/workspace/index.d.ts",
120
+ "default": "./lib/esm/workspace/index.js"
121
+ }
122
+ }
123
+ },
124
+ "scripts": {
125
+ "type-check": "tsc --noEmit -p ./tsconfig.json",
126
+ "build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
127
+ "build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
128
+ "build": "npm run build:esm & npm run build:cjs",
129
+ "test:ci": "npx vitest run --silent",
130
+ "test:dev": "npx vitest --silent",
131
+ "test": "npx vitest run --silent",
132
+ "check-types": "tsc --noEmit -p ./tsconfig.json",
133
+ "lint": "npx biome lint",
134
+ "lint:fix": "npx biome lint --fix",
135
+ "format": "npx biome format ./src",
136
+ "format:fix": "npx biome format ./src --fix",
137
+ "pre-commit": "pnpm run check-types && pnpm run lint && pnpm run format",
138
+ "prepare": "husky"
139
+ },
140
+ "dependencies": {
141
+ "arktype": "^2.1.12",
142
+ "ksuid": "^3.0.0"
143
+ },
144
+ "devDependencies": {
145
+ "@biomejs/biome": "^1.9.4",
146
+ "@types/node": "^20.17.27",
147
+ "@vitest/coverage-v8": "^3.0.9",
148
+ "husky": "^9.1.7",
149
+ "typescript": "^5.8.2",
150
+ "vitest": "^3.0.9"
151
+ },
152
+ "engines": {
153
+ "node": ">=20"
154
+ }
155
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "release-type": "node",
3
+ "prerelease-type": "beta",
4
+ "prerelease": true
5
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "outDir": "./lib/esm",
7
+ "rootDir": "./src",
8
+ "tsBuildInfoFile": ".tsbuildinfo/esm.json"
9
+ }
10
+ }