@chainfuse/types 4.1.6 → 4.2.0

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.
@@ -857,7 +857,6 @@ export declare const workersAiCatalog: {
857
857
  readonly created_at: "2024-05-22 19:27:09.781";
858
858
  readonly tags: readonly [];
859
859
  readonly properties: {
860
- readonly async_queue: true;
861
860
  readonly context_window: 60000;
862
861
  readonly price: readonly [{
863
862
  readonly unit: "per M input tokens";
@@ -1092,7 +1091,7 @@ export declare const workersAiCatalog: {
1092
1091
  readonly properties: {
1093
1092
  readonly price: readonly [{
1094
1093
  readonly unit: "per audio minute (websocket)";
1095
- readonly price: 0;
1094
+ readonly price: 0.0077;
1096
1095
  readonly currency: "USD";
1097
1096
  }];
1098
1097
  readonly partner: true;
@@ -980,7 +980,6 @@ export const workersAiCatalog = {
980
980
  created_at: '2024-05-22 19:27:09.781',
981
981
  tags: [],
982
982
  properties: {
983
- async_queue: true,
984
983
  context_window: 60000,
985
984
  price: [
986
985
  {
@@ -1259,7 +1258,7 @@ export const workersAiCatalog = {
1259
1258
  price: [
1260
1259
  {
1261
1260
  unit: 'per audio minute (websocket)',
1262
- price: 0,
1261
+ price: 0.0077,
1263
1262
  currency: 'USD',
1264
1263
  },
1265
1264
  ],
@@ -0,0 +1,5 @@
1
+ export * from './like.js';
2
+ export * from './post.js';
3
+ export * from './reviewable.js';
4
+ export * from './solved.js';
5
+ export * from './topic.js';
@@ -0,0 +1,5 @@
1
+ export * from './like.js';
2
+ export * from './post.js';
3
+ export * from './reviewable.js';
4
+ export * from './solved.js';
5
+ export * from './topic.js';
@@ -0,0 +1,3 @@
1
+ export declare enum LikeEvents {
2
+ post_liked = "post_liked"
3
+ }
@@ -0,0 +1,4 @@
1
+ export var LikeEvents;
2
+ (function (LikeEvents) {
3
+ LikeEvents["post_liked"] = "post_liked";
4
+ })(LikeEvents || (LikeEvents = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum ReviewableEvents {
2
+ created = "reviewable_created",
3
+ score_updated = "reviewable_score_updated",
4
+ transitioned_to = "reviewable_transitioned_to"
5
+ }
@@ -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 = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum SolvedEvents {
2
+ accepted = "accepted_solution",
3
+ unaccepted = "unaccepted_solution"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var SolvedEvents;
2
+ (function (SolvedEvents) {
3
+ SolvedEvents["accepted"] = "accepted_solution";
4
+ SolvedEvents["unaccepted"] = "unaccepted_solution";
5
+ })(SolvedEvents || (SolvedEvents = {}));
@@ -1,10 +1,13 @@
1
- import type { TopicPost } from '../post/index.js';
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
- recovered = "topic_recovered"
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "4.1.6",
3
+ "version": "4.2.0",
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/post": {
83
- "import": "./dist/discourse/post/index.js",
84
- "types": "./dist/discourse/post/index.d.ts"
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.20251127.0",
101
+ "@cloudflare/workers-types": "^4.20251209.0",
106
102
  "@types/validator": "^13.15.10"
107
103
  },
108
- "gitHead": "a7ba85aa01dd1c54356ef54b1af743cd9f6a767e"
104
+ "gitHead": "27c0e109e68dfa8eabbb2110c827f09e6145b5a7"
109
105
  }
@@ -1,7 +1,7 @@
1
1
  export declare enum PostEvents {
2
2
  created = "post_created",
3
- edited = "post_edited",
4
3
  destroyed = "post_destroyed",
4
+ edited = "post_edited",
5
5
  recovered = "post_recovered"
6
6
  }
7
7
  export interface TopicPost extends Record<string, any> {
@@ -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 = {}));