@schemastore/bukkit-plugin 1.0.4 → 1.0.6

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Florian Keller. All rights reserved.
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  This package contains type definitions for bukkit-plugin.
6
6
 
7
7
  ## Details
8
- Files were exported from https://github.com/ffflorian/schemastore-updater/tree/master/schemas/bukkit-plugin.
8
+ Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/bukkit-plugin.
9
9
 
10
10
  ## Additional Details
11
- * Last updated: Fri, Jan 03, 2020, 10:45:39 GMT
11
+ * Last updated: Fri, Feb 24, 2023, 11:23:30 GMT
12
12
  * Dependencies: none
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* tslint:disable */
1
+ /* eslint-disable */
2
2
  /**
3
3
  * This file was automatically generated by json-schema-to-typescript.
4
4
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
@@ -10,6 +10,49 @@
10
10
  */
11
11
  export type Website = string;
12
12
  export type PluginName = string;
13
+ /**
14
+ * Optional permission attributes.
15
+ */
16
+ export type Permission1 = {
17
+ /**
18
+ * A short description of what this permission allows.
19
+ */
20
+ description?: string;
21
+ /**
22
+ * The default state for the permission.
23
+ */
24
+ default?: true | false | "op" | "not op";
25
+ /**
26
+ * Allows other permissions to be set as a relation to the parent permission.
27
+ */
28
+ children?:
29
+ | string[]
30
+ | {
31
+ [k: string]: Permission1;
32
+ };
33
+ [k: string]: unknown;
34
+ } & (
35
+ | boolean
36
+ | {
37
+ /**
38
+ * A short description of what this permission allows.
39
+ */
40
+ description?: string;
41
+ /**
42
+ * The default state for the permission.
43
+ */
44
+ default?: true | false | "op" | "not op";
45
+ /**
46
+ * Allows other permissions to be set as a relation to the parent permission.
47
+ */
48
+ children?:
49
+ | string[]
50
+ | {
51
+ [k: string]: Permission1;
52
+ };
53
+ [k: string]: unknown;
54
+ }
55
+ );
13
56
 
14
57
  export interface JSONSchemaForBukkitPluginYAML {
15
58
  /**
@@ -23,7 +66,7 @@ export interface JSONSchemaForBukkitPluginYAML {
23
66
  /**
24
67
  * A plugin revision identifier.
25
68
  */
26
- version: string;
69
+ version: string | number;
27
70
  /**
28
71
  * Human readable plugin summary.
29
72
  */
@@ -71,24 +114,7 @@ export interface JSONSchemaForBukkitPluginYAML {
71
114
  * The permissions the plugin will register
72
115
  */
73
116
  permissions?: {
74
- /**
75
- * Optional permission attributes.
76
- */
77
- [k: string]: {
78
- /**
79
- * A short description of what this permission allows.
80
- */
81
- description?: string;
82
- /**
83
- * The default state for the permission.
84
- */
85
- default?: true | false | "op" | "not op";
86
- /**
87
- * Allows other permissions to be set as a relation to the parent permission.
88
- */
89
- children?: string[];
90
- [k: string]: any;
91
- };
117
+ [k: string]: Permission;
92
118
  };
93
119
  /**
94
120
  * Gives the default default state of permissions registered for the plugin.
@@ -101,8 +127,12 @@ export interface JSONSchemaForBukkitPluginYAML {
101
127
  /**
102
128
  * Gives the API version which this plugin is designed to support.
103
129
  */
104
- "api-version"?: string;
105
- [k: string]: any;
130
+ "api-version"?: string | number;
131
+ /**
132
+ * A list of libraries the server should download and supply to the plugin when loading it.
133
+ */
134
+ libraries?: string[];
135
+ [k: string]: unknown;
106
136
  }
107
137
  /**
108
138
  * Optional command attributes.
@@ -115,7 +145,7 @@ export interface Command {
115
145
  /**
116
146
  * Alternate command names a user may use instead.
117
147
  */
118
- aliases?: string | any[];
148
+ aliases?: string | unknown[];
119
149
  /**
120
150
  * The permission required to use the command.
121
151
  */
@@ -128,5 +158,27 @@ export interface Command {
128
158
  * A short description of how to use this command.
129
159
  */
130
160
  usage?: string;
131
- [k: string]: any;
161
+ [k: string]: unknown;
162
+ }
163
+ /**
164
+ * Optional permission attributes.
165
+ */
166
+ export interface Permission {
167
+ /**
168
+ * A short description of what this permission allows.
169
+ */
170
+ description?: string;
171
+ /**
172
+ * The default state for the permission.
173
+ */
174
+ default?: true | false | "op" | "not op";
175
+ /**
176
+ * Allows other permissions to be set as a relation to the parent permission.
177
+ */
178
+ children?:
179
+ | string[]
180
+ | {
181
+ [k: string]: Permission1;
182
+ };
183
+ [k: string]: unknown;
132
184
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
- "author": "Florian Keller <github@floriankeller.de>",
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {},
4
4
  "description": "TypeScript definitions for bukkit-plugin.",
5
5
  "license": "MIT",
6
6
  "main": "index.d.ts",
7
7
  "name": "@schemastore/bukkit-plugin",
8
- "repository": "https://github.com/ffflorian/schemastore-updater/tree/master/schemas/bukkit-plugin",
8
+ "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/bukkit-plugin",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "e95567cbfdc5d935615a4dae1b2c79011d9aebd1891968961252c0619f7de35a",
10
+ "typesPublisherContentHash": "0aa1a2f444d3df9ef3db5d3d1c40f2d27f7223553e9e713f52a0c1b13b52fa10",
11
11
  "types": "index.d.ts",
12
- "version": "1.0.4",
12
+ "version": "1.0.6",
13
13
  "typeScriptVersion": "2.2"
14
14
  }