@turnkey/sdk-types 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/README.md ADDED
File without changes
@@ -0,0 +1,22 @@
1
+ export declare enum SessionType {
2
+ READ_ONLY = "SESSION_TYPE_READ_ONLY",
3
+ READ_WRITE = "SESSION_TYPE_READ_WRITE"
4
+ }
5
+ export type Session = {
6
+ sessionType: SessionType;
7
+ userId: string;
8
+ organizationId: string;
9
+ expiry: number;
10
+ token: string;
11
+ };
12
+ export type SessionResponse = {
13
+ session: Session;
14
+ user: {
15
+ id: string;
16
+ name: string;
17
+ email: string;
18
+ organizationId: string;
19
+ organizationName: string;
20
+ };
21
+ };
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,SAAS,2BAA2B;IACpC,UAAU,4BAA4B;CACvC;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,EAAE,MAAM,CAAC;QACvB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ exports.SessionType = void 0;
4
+ (function (SessionType) {
5
+ SessionType["READ_ONLY"] = "SESSION_TYPE_READ_ONLY";
6
+ SessionType["READ_WRITE"] = "SESSION_TYPE_READ_WRITE";
7
+ })(exports.SessionType || (exports.SessionType = {}));
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":["SessionType"],"mappings":";;AAAYA,6BAGX;AAHD,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,WAAA,CAAA,GAAA,wBAAoC,CAAA;AACpC,IAAA,WAAA,CAAA,YAAA,CAAA,GAAA,yBAAsC,CAAA;AACxC,CAAC,EAHWA,mBAAW,KAAXA,mBAAW,GAGtB,EAAA,CAAA,CAAA;;"}
package/dist/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ var SessionType;
2
+ (function (SessionType) {
3
+ SessionType["READ_ONLY"] = "SESSION_TYPE_READ_ONLY";
4
+ SessionType["READ_WRITE"] = "SESSION_TYPE_READ_WRITE";
5
+ })(SessionType || (SessionType = {}));
6
+
7
+ export { SessionType };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,YAGX;AAHD,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,WAAA,CAAA,GAAA,wBAAoC,CAAA;AACpC,IAAA,WAAA,CAAA,YAAA,CAAA,GAAA,yBAAsC,CAAA;AACxC,CAAC,EAHW,WAAW,KAAX,WAAW,GAGtB,EAAA,CAAA,CAAA;;;;"}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@turnkey/sdk-types",
3
+ "version": "0.0.1",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "files": [
7
+ "dist/**/*",
8
+ "CHANGELOG.md"
9
+ ],
10
+ "scripts": {
11
+ "build": "rollup -c",
12
+ "prepublishOnly": "pnpm run clean && pnpm run build",
13
+ "clean": "rimraf ./dist ./.cache",
14
+ "typecheck": "tsc -p tsconfig.typecheck.json"
15
+ },
16
+ "module": "./dist/index.mjs",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs",
21
+ "require": "./dist/index.js",
22
+ "default": "./dist/index.mjs"
23
+ }
24
+ },
25
+ "license": "Apache-2.0",
26
+ "description": "Turnkey SDK Types",
27
+ "keywords": [
28
+ "Turnkey"
29
+ ],
30
+ "author": {
31
+ "name": "Turnkey",
32
+ "url": "https://turnkey.com"
33
+ },
34
+ "homepage": "https://github.com/tkhq/sdk/packages/sdk-types#readme",
35
+ "bugs": {
36
+ "url": "https://github.com/tkhq/sdk/issues"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/tkhq/sdk.git",
41
+ "directory": "packages/sdk-types"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "devDependencies": {
47
+ "typescript": "5.4.3"
48
+ },
49
+ "engines": {
50
+ "node": ">=18.0.0"
51
+ }
52
+ }