@productcraft/platform-auth 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.
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1849 -0
- package/dist/index.d.ts +1849 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { makeClient, PC_BASE_URL } from '@productcraft/core';
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
var PlatformAuth = class {
|
|
5
|
+
/** The underlying typed client. v0 surface — every endpoint reachable. */
|
|
6
|
+
client;
|
|
7
|
+
constructor(config = {}) {
|
|
8
|
+
this.client = makeClient(PC_BASE_URL.platformAuth, config);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { PlatformAuth };
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AASO,IAAM,eAAN,MAAmB;AAAA;AAAA,EAER,MAAA;AAAA,EAEhB,WAAA,CAAY,MAAA,GAAyB,EAAC,EAAG;AACvC,IAAA,IAAA,CAAK,MAAA,GAAS,UAAA,CAAkB,WAAA,CAAY,YAAA,EAAc,MAAM,CAAA;AAAA,EAClE;AACF","file":"index.js","sourcesContent":["import type { paths } from \"./_generated.js\";\nimport { makeClient, PC_BASE_URL, type PCClientConfig } from \"@productcraft/core\";\n\n/**\n * PlatformAuth — typed `openapi-fetch` client for every endpoint in\n * `Specs/platform-auth.json`. Reach for `client.GET(\"/v1/...\")` or\n * `client.POST(...)`; request / response types come from the\n * generated `paths` interface.\n */\nexport class PlatformAuth {\n /** The underlying typed client. v0 surface — every endpoint reachable. */\n public readonly client: ReturnType<typeof makeClient<paths>>;\n\n constructor(config: PCClientConfig = {}) {\n this.client = makeClient<paths>(PC_BASE_URL.platformAuth, config);\n }\n}\n\nexport type { paths } from \"./_generated.js\";\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@productcraft/platform-auth",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Platform-side authentication \u2014 workspace login, API keys, members for the ProductCraft platform itself. Generated from the production OpenAPI spec.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/**",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=18"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsup"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"productcraft",
|
|
29
|
+
"sdk",
|
|
30
|
+
"platform-auth"
|
|
31
|
+
],
|
|
32
|
+
"author": "ProductCraft",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/clauderanelagh/productcraft-node.git",
|
|
37
|
+
"directory": "packages/platform-auth"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/clauderanelagh/productcraft-node/tree/main/packages/platform-auth",
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@productcraft/core": "workspace:^",
|
|
45
|
+
"openapi-fetch": "^0.13.0"
|
|
46
|
+
}
|
|
47
|
+
}
|