@cstar.help/js 0.1.0 → 0.1.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/LICENSE +21 -0
- package/README.md +39 -39
- package/dist/chat/index.cjs +366 -27
- package/dist/chat/index.d.cts +42 -5
- package/dist/chat/index.d.ts +42 -5
- package/dist/chat/index.js +354 -27
- package/package.json +92 -83
package/package.json
CHANGED
|
@@ -1,85 +1,94 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
2
|
+
"name": "@cstar.help/js",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Official TypeScript SDK for the cStar customer support platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./chat": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/chat/index.d.ts",
|
|
23
|
+
"default": "./dist/chat/index.js"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/chat/index.d.cts",
|
|
27
|
+
"default": "./dist/chat/index.cjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"./library": {
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/library/index.d.ts",
|
|
33
|
+
"default": "./dist/library/index.js"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./dist/library/index.d.cts",
|
|
37
|
+
"default": "./dist/library/index.cjs"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"./webhook": {
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/webhook/index.d.ts",
|
|
43
|
+
"default": "./dist/webhook/index.js"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/webhook/index.d.cts",
|
|
47
|
+
"default": "./dist/webhook/index.cjs"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"dist"
|
|
53
|
+
],
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsup",
|
|
56
|
+
"dev": "tsup --watch",
|
|
57
|
+
"test": "vitest run",
|
|
58
|
+
"test:watch": "vitest",
|
|
59
|
+
"typecheck": "tsc --noEmit"
|
|
60
|
+
},
|
|
61
|
+
"keywords": [
|
|
62
|
+
"cstar",
|
|
63
|
+
"customer-support",
|
|
64
|
+
"sdk",
|
|
65
|
+
"api",
|
|
66
|
+
"typescript"
|
|
67
|
+
],
|
|
68
|
+
"homepage": "https://cstar.help/developers/sdk/js",
|
|
69
|
+
"repository": {
|
|
70
|
+
"type": "git",
|
|
71
|
+
"url": "https://github.com/cstar-help/cstar",
|
|
72
|
+
"directory": "packages/js"
|
|
73
|
+
},
|
|
74
|
+
"bugs": {
|
|
75
|
+
"url": "https://github.com/cstar-help/cstar/issues"
|
|
76
|
+
},
|
|
77
|
+
"license": "MIT",
|
|
78
|
+
"engines": {
|
|
79
|
+
"node": ">=18.0.0"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"@supabase/supabase-js": ">=2.0.0"
|
|
83
|
+
},
|
|
84
|
+
"peerDependenciesMeta": {
|
|
85
|
+
"@supabase/supabase-js": {
|
|
86
|
+
"optional": true
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"tsup": "^8.0.0",
|
|
91
|
+
"typescript": "^5.7.0",
|
|
92
|
+
"vitest": "^3.0.0"
|
|
93
|
+
}
|
|
85
94
|
}
|