mixi2-js 1.1.1 → 1.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.
- package/README.md +9 -9
- package/dist/helpers/index.cjs +13 -2
- package/dist/helpers/index.d.cts +14 -1
- package/dist/helpers/index.d.ts +14 -1
- package/dist/helpers/index.js +9 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<a href="https://
|
|
3
|
+
<a href="https://mixi2.js.org/">
|
|
4
4
|
<img src="./img/icon.svg" width="200px" height="200px">
|
|
5
5
|
</a>
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
<div align="center">
|
|
23
23
|
|
|
24
|
-
**[📖 ドキュメント](https://
|
|
24
|
+
**[📖 ドキュメント](https://mixi2.js.org/)** | **[npm](https://www.npmjs.com/package/mixi2-js)** | **[JSR](https://jsr.io/@otoneko1102/mixi2-js)**
|
|
25
25
|
|
|
26
26
|
</div>
|
|
27
27
|
|
|
@@ -72,13 +72,13 @@ ESM・CommonJS の両方に対応しています。TypeScript の型定義 (`.d.
|
|
|
72
72
|
|
|
73
73
|
## ドキュメント
|
|
74
74
|
|
|
75
|
-
使い方・API リファレンス・拡張機能の詳細は **[ドキュメントサイト](https://
|
|
75
|
+
使い方・API リファレンス・拡張機能の詳細は **[ドキュメントサイト](https://mixi2.js.org/)** を参照してください。
|
|
76
76
|
|
|
77
77
|
---
|
|
78
78
|
|
|
79
79
|
## 関連リンク
|
|
80
80
|
|
|
81
|
-
- **[mixi2-js ドキュメント](https://
|
|
81
|
+
- **[mixi2-js ドキュメント](https://mixi2.js.org/)**
|
|
82
82
|
- [mixi2 Developer Platform 公式ドキュメント](https://developer.mixi.social/docs)
|
|
83
83
|
- [mixi2-api](https://github.com/mixigroup/mixi2-api) — API 定義(Protocol Buffers)
|
|
84
84
|
- [mixi2-application-sdk-go](https://github.com/mixigroup/mixi2-application-sdk-go) — 公式 Go SDK
|
|
@@ -86,18 +86,18 @@ ESM・CommonJS の両方に対応しています。TypeScript の型定義 (`.d.
|
|
|
86
86
|
|
|
87
87
|
---
|
|
88
88
|
|
|
89
|
-
##
|
|
89
|
+
## 貢献
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
貢献を歓迎しています!詳細は [CONTRIBUTING.md](CONTRIBUTING.md) を参照してください。
|
|
92
92
|
|
|
93
93
|
このプロジェクトは [Contributor Covenant 行動規範](CODE_OF_CONDUCT.md) に準拠しています。
|
|
94
94
|
|
|
95
|
+
### 貢献者
|
|
96
|
+
|
|
95
97
|
<a href="https://github.com/otoneko1102/mixi2-js/graphs/contributors">
|
|
96
|
-
<img src="https://contrib.rocks/image?repo=otoneko1102/mixi2-js" />
|
|
98
|
+
<img src="https://contrib.rocks/image?repo=otoneko1102/mixi2-js" alt="Made with contrib.rocks" />
|
|
97
99
|
</a>
|
|
98
100
|
|
|
99
|
-
Made with [contrib.rocks](https://contrib.rocks).
|
|
100
|
-
|
|
101
101
|
---
|
|
102
102
|
|
|
103
103
|
## ライセンス
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -23,10 +23,18 @@ __export(helpers_exports, {
|
|
|
23
23
|
EventRouter: () => EventRouter,
|
|
24
24
|
MediaUploader: () => MediaUploader,
|
|
25
25
|
PostBuilder: () => PostBuilder,
|
|
26
|
-
ReasonFilter: () => ReasonFilter
|
|
26
|
+
ReasonFilter: () => ReasonFilter,
|
|
27
|
+
apiAddress: () => apiAddress,
|
|
28
|
+
streamAddress: () => streamAddress,
|
|
29
|
+
tokenUrl: () => tokenUrl
|
|
27
30
|
});
|
|
28
31
|
module.exports = __toCommonJS(helpers_exports);
|
|
29
32
|
|
|
33
|
+
// src/helpers/address.ts
|
|
34
|
+
var tokenUrl = "https://application-auth.mixi.social/oauth2/token";
|
|
35
|
+
var apiAddress = "application-api.mixi.social";
|
|
36
|
+
var streamAddress = "application-stream.mixi.social";
|
|
37
|
+
|
|
30
38
|
// src/helpers/event-router.ts
|
|
31
39
|
var EventRouter = class {
|
|
32
40
|
listeners = /* @__PURE__ */ new Map();
|
|
@@ -202,5 +210,8 @@ var ReasonFilter = class {
|
|
|
202
210
|
EventRouter,
|
|
203
211
|
MediaUploader,
|
|
204
212
|
PostBuilder,
|
|
205
|
-
ReasonFilter
|
|
213
|
+
ReasonFilter,
|
|
214
|
+
apiAddress,
|
|
215
|
+
streamAddress,
|
|
216
|
+
tokenUrl
|
|
206
217
|
});
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { E as EventHandler, h as EventType, f as Event, c as Client, I as InitiatePostMediaUploadRequest, v as PostMask, D as PostPublishingType, e as CreatePostRequest, g as EventReason } from '../client-BmF_2lFq.cjs';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* アクセストークン取得用のエンドポイント URL です。
|
|
5
|
+
*/
|
|
6
|
+
declare const tokenUrl: string;
|
|
7
|
+
/**
|
|
8
|
+
* API サーバーアドレスです。
|
|
9
|
+
*/
|
|
10
|
+
declare const apiAddress: string;
|
|
11
|
+
/**
|
|
12
|
+
* gRPC ストリーミング接続用のサーバーアドレスです。
|
|
13
|
+
*/
|
|
14
|
+
declare const streamAddress: string;
|
|
15
|
+
|
|
3
16
|
type EventListener = (event: Event) => void | Promise<void>;
|
|
4
17
|
/**
|
|
5
18
|
* イベントタイプ別にハンドラを登録できる EventHandler 実装。
|
|
@@ -106,4 +119,4 @@ declare class ReasonFilter implements EventHandler {
|
|
|
106
119
|
private getReasons;
|
|
107
120
|
}
|
|
108
121
|
|
|
109
|
-
export { EventRouter, MediaUploader, type MediaUploaderOptions, PostBuilder, ReasonFilter, type UploadedMedia };
|
|
122
|
+
export { EventRouter, MediaUploader, type MediaUploaderOptions, PostBuilder, ReasonFilter, type UploadedMedia, apiAddress, streamAddress, tokenUrl };
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { E as EventHandler, h as EventType, f as Event, c as Client, I as InitiatePostMediaUploadRequest, v as PostMask, D as PostPublishingType, e as CreatePostRequest, g as EventReason } from '../client-BmF_2lFq.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* アクセストークン取得用のエンドポイント URL です。
|
|
5
|
+
*/
|
|
6
|
+
declare const tokenUrl: string;
|
|
7
|
+
/**
|
|
8
|
+
* API サーバーアドレスです。
|
|
9
|
+
*/
|
|
10
|
+
declare const apiAddress: string;
|
|
11
|
+
/**
|
|
12
|
+
* gRPC ストリーミング接続用のサーバーアドレスです。
|
|
13
|
+
*/
|
|
14
|
+
declare const streamAddress: string;
|
|
15
|
+
|
|
3
16
|
type EventListener = (event: Event) => void | Promise<void>;
|
|
4
17
|
/**
|
|
5
18
|
* イベントタイプ別にハンドラを登録できる EventHandler 実装。
|
|
@@ -106,4 +119,4 @@ declare class ReasonFilter implements EventHandler {
|
|
|
106
119
|
private getReasons;
|
|
107
120
|
}
|
|
108
121
|
|
|
109
|
-
export { EventRouter, MediaUploader, type MediaUploaderOptions, PostBuilder, ReasonFilter, type UploadedMedia };
|
|
122
|
+
export { EventRouter, MediaUploader, type MediaUploaderOptions, PostBuilder, ReasonFilter, type UploadedMedia, apiAddress, streamAddress, tokenUrl };
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import "../chunk-4NKIICB5.js";
|
|
2
2
|
|
|
3
|
+
// src/helpers/address.ts
|
|
4
|
+
var tokenUrl = "https://application-auth.mixi.social/oauth2/token";
|
|
5
|
+
var apiAddress = "application-api.mixi.social";
|
|
6
|
+
var streamAddress = "application-stream.mixi.social";
|
|
7
|
+
|
|
3
8
|
// src/helpers/event-router.ts
|
|
4
9
|
var EventRouter = class {
|
|
5
10
|
listeners = /* @__PURE__ */ new Map();
|
|
@@ -174,5 +179,8 @@ export {
|
|
|
174
179
|
EventRouter,
|
|
175
180
|
MediaUploader,
|
|
176
181
|
PostBuilder,
|
|
177
|
-
ReasonFilter
|
|
182
|
+
ReasonFilter,
|
|
183
|
+
apiAddress,
|
|
184
|
+
streamAddress,
|
|
185
|
+
tokenUrl
|
|
178
186
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mixi2-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "TypeScript/JavaScript SDK for mixi2 Application API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"bugs": {
|
|
68
68
|
"url": "https://github.com/otoneko1102/mixi2-js/issues"
|
|
69
69
|
},
|
|
70
|
-
"homepage": "https://
|
|
70
|
+
"homepage": "https://mixi2.js.org/",
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@grpc/grpc-js": "^1.14.3",
|
|
73
73
|
"@grpc/proto-loader": "^0.8.0"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@eslint/js": "^10.0.1",
|
|
77
77
|
"@types/jest": "^30.0.0",
|
|
78
|
-
"@types/node": "^25.
|
|
78
|
+
"@types/node": "^25.5.0",
|
|
79
79
|
"eslint": "^10.0.3",
|
|
80
80
|
"eslint-config-prettier": "^10.1.8",
|
|
81
81
|
"jest": "^30.3.0",
|