mixi2-js 1.1.2 → 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.
@@ -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
  });
@@ -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 };
@@ -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 };
@@ -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.1.2",
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",