@chainfuse/types 4.1.7 → 4.2.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/ai-tools/workers-ai/catalog.d.ts +1 -1
- package/dist/ai-tools/workers-ai/catalog.js +1 -1
- package/dist/discourse/index.d.ts +5 -0
- package/dist/discourse/index.js +5 -0
- package/dist/discourse/like.d.ts +3 -0
- package/dist/discourse/like.js +4 -0
- package/dist/discourse/reviewable.d.ts +5 -0
- package/dist/discourse/reviewable.js +6 -0
- package/dist/discourse/solved.d.ts +4 -0
- package/dist/discourse/solved.js +5 -0
- package/dist/discourse/{topic/index.d.ts → topic.d.ts} +7 -4
- package/dist/discourse/{topic/index.js → topic.js} +5 -2
- package/dist/index.d.ts +1 -0
- package/package.json +6 -10
- package/dist/discourse/{post/index.d.ts → post.d.ts} +1 -1
- package/dist/discourse/{post/index.js → post.js} +1 -1
|
@@ -1091,7 +1091,7 @@ export declare const workersAiCatalog: {
|
|
|
1091
1091
|
readonly properties: {
|
|
1092
1092
|
readonly price: readonly [{
|
|
1093
1093
|
readonly unit: "per audio minute (websocket)";
|
|
1094
|
-
readonly price: 0;
|
|
1094
|
+
readonly price: 0.0077;
|
|
1095
1095
|
readonly currency: "USD";
|
|
1096
1096
|
}];
|
|
1097
1097
|
readonly partner: true;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var ReviewableEvents;
|
|
2
|
+
(function (ReviewableEvents) {
|
|
3
|
+
ReviewableEvents["created"] = "reviewable_created";
|
|
4
|
+
ReviewableEvents["score_updated"] = "reviewable_score_updated";
|
|
5
|
+
ReviewableEvents["transitioned_to"] = "reviewable_transitioned_to";
|
|
6
|
+
})(ReviewableEvents || (ReviewableEvents = {}));
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type { TopicPost } from '
|
|
1
|
+
import type { TopicPost } from './post';
|
|
2
2
|
export declare enum TopicEvents {
|
|
3
|
+
autoclosed_status_updated = "topic_autoclosed_status_updated",
|
|
4
|
+
closed_status_updated = "topic_closed_status_updated",
|
|
3
5
|
created = "topic_created",
|
|
4
|
-
revised = "topic_revised",
|
|
5
|
-
edited = "topic_edited",
|
|
6
6
|
destroyed = "topic_destroyed",
|
|
7
|
-
|
|
7
|
+
edited = "topic_edited",
|
|
8
|
+
recovered = "topic_recovered",
|
|
9
|
+
revised = "topic_revised",
|
|
10
|
+
visible_status_updated = "topic_visible_status_updated"
|
|
8
11
|
}
|
|
9
12
|
export interface TopicCollections extends Record<string, any> {
|
|
10
13
|
topic_list: TopicList;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export var TopicEvents;
|
|
2
2
|
(function (TopicEvents) {
|
|
3
|
+
TopicEvents["autoclosed_status_updated"] = "topic_autoclosed_status_updated";
|
|
4
|
+
TopicEvents["closed_status_updated"] = "topic_closed_status_updated";
|
|
3
5
|
TopicEvents["created"] = "topic_created";
|
|
4
|
-
TopicEvents["revised"] = "topic_revised";
|
|
5
|
-
TopicEvents["edited"] = "topic_edited";
|
|
6
6
|
TopicEvents["destroyed"] = "topic_destroyed";
|
|
7
|
+
TopicEvents["edited"] = "topic_edited";
|
|
7
8
|
TopicEvents["recovered"] = "topic_recovered";
|
|
9
|
+
TopicEvents["revised"] = "topic_revised";
|
|
10
|
+
TopicEvents["visible_status_updated"] = "topic_visible_status_updated";
|
|
8
11
|
})(TopicEvents || (TopicEvents = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export interface ExternallyResolvablePromise<T> {
|
|
|
48
48
|
resolve: (value: T) => void;
|
|
49
49
|
reject: (reason?: any) => void;
|
|
50
50
|
}
|
|
51
|
+
export type ReplaceHyphensWithUnderscores<S extends string> = S extends `${infer H}-${infer T}` ? `${H}_${ReplaceHyphensWithUnderscores<T>}` : S;
|
|
51
52
|
/**
|
|
52
53
|
* Mark every property of an object as undefined.
|
|
53
54
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -79,13 +79,9 @@
|
|
|
79
79
|
"import": "./dist/d1/users/index.js",
|
|
80
80
|
"types": "./dist/d1/users/index.d.ts"
|
|
81
81
|
},
|
|
82
|
-
"./discourse
|
|
83
|
-
"import": "./dist/discourse/
|
|
84
|
-
"types": "./dist/discourse/
|
|
85
|
-
},
|
|
86
|
-
"./discourse/topic": {
|
|
87
|
-
"import": "./dist/discourse/topic/index.js",
|
|
88
|
-
"types": "./dist/discourse/topic/index.d.ts"
|
|
82
|
+
"./discourse": {
|
|
83
|
+
"import": "./dist/discourse/index.js",
|
|
84
|
+
"types": "./dist/discourse/index.d.ts"
|
|
89
85
|
},
|
|
90
86
|
"./zod-mini": {
|
|
91
87
|
"import": "./dist/zod-mini/index.js",
|
|
@@ -102,8 +98,8 @@
|
|
|
102
98
|
"zod": "^4.1.13"
|
|
103
99
|
},
|
|
104
100
|
"devDependencies": {
|
|
105
|
-
"@cloudflare/workers-types": "^4.
|
|
101
|
+
"@cloudflare/workers-types": "^4.20251209.0",
|
|
106
102
|
"@types/validator": "^13.15.10"
|
|
107
103
|
},
|
|
108
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "7473e63a02b4d8150b0f4b118e75b87583c36323"
|
|
109
105
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export var PostEvents;
|
|
2
2
|
(function (PostEvents) {
|
|
3
3
|
PostEvents["created"] = "post_created";
|
|
4
|
-
PostEvents["edited"] = "post_edited";
|
|
5
4
|
PostEvents["destroyed"] = "post_destroyed";
|
|
5
|
+
PostEvents["edited"] = "post_edited";
|
|
6
6
|
PostEvents["recovered"] = "post_recovered";
|
|
7
7
|
})(PostEvents || (PostEvents = {}));
|