@seayoo-web/gamer-api 4.2.2 → 4.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/gamer-api",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "agent for gamer api",
5
5
  "license": "MIT",
6
6
  "author": "web@seayoo.com",
@@ -27,17 +27,17 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.13.1",
30
- "@seayoo-web/scripts": "4.3.6",
31
30
  "@seayoo-web/utils": "4.4.1",
32
- "@seayoo-web/combo-webview": "2.9.7",
33
31
  "@seayoo-web/request": "4.1.0",
34
- "@seayoo-web/tsconfig": "1.0.6",
35
- "@seayoo-web/validator": "2.3.0"
32
+ "@seayoo-web/combo-webview": "2.9.7",
33
+ "@seayoo-web/validator": "2.3.0",
34
+ "@seayoo-web/scripts": "4.3.6",
35
+ "@seayoo-web/tsconfig": "1.0.6"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@seayoo-web/combo-webview": "^2.9.7",
39
- "@seayoo-web/validator": "^2.3.0",
40
- "@seayoo-web/utils": "^4.4.1"
39
+ "@seayoo-web/utils": "^4.4.1",
40
+ "@seayoo-web/validator": "^2.3.0"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=22"
@@ -6,18 +6,22 @@ export declare class GGDPublicApi {
6
6
  req: ReturnType<NetRequestFactory>;
7
7
  constructor(endpoint: string, NetRequest: NetRequestFactory);
8
8
  /**
9
- * 获取鹅鸭杀房间内详情,参数 `invitationCode` 默认从 url query 的 `invitation_code` 参数读取
9
+ * 获取鹅鸭杀房间内详情
10
+ *
11
+ * - 参数 `invitationCode` 默认从 url query 的 `invitation_code` 参数读取
12
+ * - 参数 `serverId` 默认从 url query 的 `server_id` 参数读取
13
+ * - 参数 `expiresAt` 默认从 url query 的 `expires_at` 参数读取
10
14
  *
11
15
  * 接口文档 https://www.kdocs.cn/l/cf2mO2uRLqh9?linkname=vpkahwYfte
12
16
  *
13
17
  * 响应依据 GM 协议 https://www.kdocs.cn/l/cnZbBuB5x12C?linkname=pRQPKz6vUa
14
18
  */
15
- describeRoomByCode(invitationCode?: string): Promise<{
19
+ describeRoomByCode(invitationCode?: string, serverId?: number | string, expiresAt?: number | string): Promise<{
16
20
  room_id: string;
17
21
  inviter_role_id: number;
18
22
  room_status: import("./ggd.enums").GGDRoomStatus;
19
23
  room_mode: string;
20
- room_tags: string[];
24
+ room_tags: string[] | undefined;
21
25
  max_members: number;
22
26
  members: {
23
27
  role_id: /*elided*/ any;