swcombine-sdk 2.2.2 → 2.2.4
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/dist/cjs/auth/scopes.js +328 -79
- package/dist/cjs/auth/scopes.js.map +1 -1
- package/dist/cjs/resources/FactionResource.js +3 -5
- package/dist/cjs/resources/FactionResource.js.map +1 -1
- package/dist/esm/auth/scopes.js +328 -79
- package/dist/esm/auth/scopes.js.map +1 -1
- package/dist/esm/resources/FactionResource.js +3 -5
- package/dist/esm/resources/FactionResource.js.map +1 -1
- package/dist/types/auth/scopes.d.ts +654 -81
- package/dist/types/auth/scopes.d.ts.map +1 -1
- package/dist/types/resources/FactionResource.d.ts +4 -12
- package/dist/types/resources/FactionResource.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +8 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/auth/scopes.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* OAuth Scopes for SW Combine API
|
|
3
3
|
*
|
|
4
4
|
* This module defines all available OAuth scopes and provides utilities
|
|
5
|
-
* for requesting common scope combinations.
|
|
5
|
+
* for requesting common scope combinations. Scope values mirror the
|
|
6
|
+
* permission names returned by the API permissions catalog.
|
|
6
7
|
*
|
|
7
8
|
* @see https://www.swcombine.com/ws/developers/permissions/
|
|
8
9
|
*/
|
|
@@ -12,9 +13,9 @@
|
|
|
12
13
|
export const CharacterScopes = {
|
|
13
14
|
/** Solely provides the character name and ID for use by clients who want to verify a character's identity */
|
|
14
15
|
AUTH: 'character_auth',
|
|
15
|
-
/** Read basic character information
|
|
16
|
+
/** Read basic character information.<br/>If your profile is private, this will return unique ID, handle, and image.<br/>If your profile is not private, this will also return your race, gender, last login, description, and biography. */
|
|
16
17
|
READ: 'character_read',
|
|
17
|
-
/** Read character HP and XP */
|
|
18
|
+
/** Read information about the character's HP and XP */
|
|
18
19
|
STATS: 'character_stats',
|
|
19
20
|
/** Read character privileges */
|
|
20
21
|
PRIVILEGES: 'character_privileges',
|
|
@@ -24,176 +25,424 @@ export const CharacterScopes = {
|
|
|
24
25
|
CREDITS: 'character_credits',
|
|
25
26
|
/** Transfer character credits */
|
|
26
27
|
CREDITS_WRITE: 'character_credits_write',
|
|
27
|
-
/** Read character force-related information
|
|
28
|
+
/** Read character force-related information.<br/>If you are Force-aware, this will return Master or Student where applicable, as well as FP, FXP, regen rate, and Force Meter. */
|
|
28
29
|
FORCE: 'character_force',
|
|
29
|
-
/** Read location
|
|
30
|
+
/** Read your location in-game */
|
|
30
31
|
LOCATION: 'character_location',
|
|
31
|
-
/** Read
|
|
32
|
+
/** Read the characters' events */
|
|
32
33
|
EVENTS: 'character_events',
|
|
33
|
-
/** Access all character information
|
|
34
|
+
/** Access all character information */
|
|
34
35
|
ALL: 'character_all',
|
|
35
36
|
};
|
|
36
37
|
/**
|
|
37
38
|
* Message-related scopes
|
|
38
39
|
*/
|
|
39
40
|
export const MessageScopes = {
|
|
40
|
-
/** Read messages */
|
|
41
|
+
/** Read messages sent to or by the character */
|
|
41
42
|
READ: 'messages_read',
|
|
42
|
-
/** Send messages */
|
|
43
|
+
/** Send messages to or from the character */
|
|
43
44
|
SEND: 'messages_send',
|
|
44
|
-
/** Delete messages */
|
|
45
|
+
/** Delete messages to or from the character */
|
|
45
46
|
DELETE: 'messages_delete',
|
|
46
|
-
/**
|
|
47
|
+
/** Read, send and delete messages to or from the character */
|
|
47
48
|
ALL: 'messages_all',
|
|
48
49
|
};
|
|
49
|
-
/**
|
|
50
|
-
* Generate personal inventory scopes for a specific entity type
|
|
51
|
-
*/
|
|
52
|
-
function generatePersonalInventoryScopes(entityType, hasRename = true) {
|
|
53
|
-
const scopes = {};
|
|
54
|
-
scopes.READ = `personal_inv_${entityType}_read`;
|
|
55
|
-
if (hasRename) {
|
|
56
|
-
scopes.RENAME = `personal_inv_${entityType}_rename`;
|
|
57
|
-
}
|
|
58
|
-
scopes.ASSIGN = `personal_inv_${entityType}_assign`;
|
|
59
|
-
if (hasRename) {
|
|
60
|
-
scopes.MAKEOVER = `personal_inv_${entityType}_makeover`;
|
|
61
|
-
}
|
|
62
|
-
scopes.TAGS_READ = `personal_inv_${entityType}_tags_read`;
|
|
63
|
-
scopes.TAGS_WRITE = `personal_inv_${entityType}_tags_write`;
|
|
64
|
-
scopes.ALL = `personal_inv_${entityType}_all`;
|
|
65
|
-
return scopes;
|
|
66
|
-
}
|
|
67
50
|
/**
|
|
68
51
|
* Personal inventory scopes
|
|
69
52
|
*/
|
|
70
53
|
export const PersonalInventoryScopes = {
|
|
71
|
-
/**
|
|
54
|
+
/** Read basic information about your inventories */
|
|
72
55
|
OVERVIEW: 'personal_inv_overview',
|
|
73
56
|
/** Personal ship scopes */
|
|
74
|
-
SHIPS:
|
|
57
|
+
SHIPS: {
|
|
58
|
+
/** Read basic information about your ships */
|
|
59
|
+
READ: 'personal_inv_ships_read',
|
|
60
|
+
/** Rename your ships */
|
|
61
|
+
RENAME: 'personal_inv_ships_rename',
|
|
62
|
+
/** Assign your ships */
|
|
63
|
+
ASSIGN: 'personal_inv_ships_assign',
|
|
64
|
+
/** Make over your ships */
|
|
65
|
+
MAKEOVER: 'personal_inv_ships_makeover',
|
|
66
|
+
/** Read the tags assigned to your ships */
|
|
67
|
+
TAGS_READ: 'personal_inv_ships_tags_read',
|
|
68
|
+
/** Modify the tags assigned to your ships */
|
|
69
|
+
TAGS_WRITE: 'personal_inv_ships_tags_write',
|
|
70
|
+
/** Access and change anything in your ship inventory */
|
|
71
|
+
ALL: 'personal_inv_ships_all',
|
|
72
|
+
},
|
|
75
73
|
/** Personal vehicle scopes */
|
|
76
|
-
VEHICLES:
|
|
74
|
+
VEHICLES: {
|
|
75
|
+
/** Read basic information about your vehicles */
|
|
76
|
+
READ: 'personal_inv_vehicles_read',
|
|
77
|
+
/** Rename your vehicles */
|
|
78
|
+
RENAME: 'personal_inv_vehicles_rename',
|
|
79
|
+
/** Assign your vehicles */
|
|
80
|
+
ASSIGN: 'personal_inv_vehicles_assign',
|
|
81
|
+
/** Make over your vehicles */
|
|
82
|
+
MAKEOVER: 'personal_inv_vehicles_makeover',
|
|
83
|
+
/** Read the tags assigned to your vehicles */
|
|
84
|
+
TAGS_READ: 'personal_inv_vehicles_tags_read',
|
|
85
|
+
/** Modify the tags assigned to your vehicles */
|
|
86
|
+
TAGS_WRITE: 'personal_inv_vehicles_tags_write',
|
|
87
|
+
/** Access and change anything in your vehicle inventory */
|
|
88
|
+
ALL: 'personal_inv_vehicles_all',
|
|
89
|
+
},
|
|
77
90
|
/** Personal station scopes */
|
|
78
|
-
STATIONS:
|
|
91
|
+
STATIONS: {
|
|
92
|
+
/** Read basic information about your space stations */
|
|
93
|
+
READ: 'personal_inv_stations_read',
|
|
94
|
+
/** Rename your space stations */
|
|
95
|
+
RENAME: 'personal_inv_stations_rename',
|
|
96
|
+
/** Assign your space stations */
|
|
97
|
+
ASSIGN: 'personal_inv_stations_assign',
|
|
98
|
+
/** Make over your space stations */
|
|
99
|
+
MAKEOVER: 'personal_inv_stations_makeover',
|
|
100
|
+
/** Read the tags assigned to your space stations */
|
|
101
|
+
TAGS_READ: 'personal_inv_stations_tags_read',
|
|
102
|
+
/** Modify the tags assigned to your space stations */
|
|
103
|
+
TAGS_WRITE: 'personal_inv_stations_tags_write',
|
|
104
|
+
/** Access and change anything in your space station inventory */
|
|
105
|
+
ALL: 'personal_inv_stations_all',
|
|
106
|
+
},
|
|
79
107
|
/** Personal city scopes */
|
|
80
|
-
CITIES:
|
|
108
|
+
CITIES: {
|
|
109
|
+
/** Read basic information about your cities */
|
|
110
|
+
READ: 'personal_inv_cities_read',
|
|
111
|
+
/** Rename your cities */
|
|
112
|
+
RENAME: 'personal_inv_cities_rename',
|
|
113
|
+
/** Assign your cities */
|
|
114
|
+
ASSIGN: 'personal_inv_cities_assign',
|
|
115
|
+
/** Make over your cities */
|
|
116
|
+
MAKEOVER: 'personal_inv_cities_makeover',
|
|
117
|
+
/** Read the tags assigned to your cities */
|
|
118
|
+
TAGS_READ: 'personal_inv_cities_tags_read',
|
|
119
|
+
/** Modify the tags assigned to your cities */
|
|
120
|
+
TAGS_WRITE: 'personal_inv_cities_tags_write',
|
|
121
|
+
/** Access and change anything in your city inventory */
|
|
122
|
+
ALL: 'personal_inv_cities_all',
|
|
123
|
+
},
|
|
81
124
|
/** Personal facility scopes */
|
|
82
|
-
FACILITIES:
|
|
125
|
+
FACILITIES: {
|
|
126
|
+
/** Read basic information about your facilities */
|
|
127
|
+
READ: 'personal_inv_facilities_read',
|
|
128
|
+
/** Rename your facilities */
|
|
129
|
+
RENAME: 'personal_inv_facilities_rename',
|
|
130
|
+
/** Assign your facilities */
|
|
131
|
+
ASSIGN: 'personal_inv_facilities_assign',
|
|
132
|
+
/** Make over your facilities */
|
|
133
|
+
MAKEOVER: 'personal_inv_facilities_makeover',
|
|
134
|
+
/** Read the tags assigned to your facilities */
|
|
135
|
+
TAGS_READ: 'personal_inv_facilities_tags_read',
|
|
136
|
+
/** Modify the tags assigned to your facilities */
|
|
137
|
+
TAGS_WRITE: 'personal_inv_facilities_tags_write',
|
|
138
|
+
/** Access and change anything in your facility inventory */
|
|
139
|
+
ALL: 'personal_inv_facilities_all',
|
|
140
|
+
},
|
|
83
141
|
/** Personal planet scopes (no RENAME/MAKEOVER) */
|
|
84
|
-
PLANETS:
|
|
142
|
+
PLANETS: {
|
|
143
|
+
/** Read basic information about your planets */
|
|
144
|
+
READ: 'personal_inv_planets_read',
|
|
145
|
+
/** Assign your planets */
|
|
146
|
+
ASSIGN: 'personal_inv_planets_assign',
|
|
147
|
+
/** Read the tags assigned to your planets */
|
|
148
|
+
TAGS_READ: 'personal_inv_planets_tags_read',
|
|
149
|
+
/** Modify the tags assigned to your planets */
|
|
150
|
+
TAGS_WRITE: 'personal_inv_planets_tags_write',
|
|
151
|
+
/** Access and change anything in your planet inventory */
|
|
152
|
+
ALL: 'personal_inv_planets_all',
|
|
153
|
+
},
|
|
85
154
|
/** Personal item scopes */
|
|
86
|
-
ITEMS:
|
|
155
|
+
ITEMS: {
|
|
156
|
+
/** Read basic information about your items */
|
|
157
|
+
READ: 'personal_inv_items_read',
|
|
158
|
+
/** Rename your items */
|
|
159
|
+
RENAME: 'personal_inv_items_rename',
|
|
160
|
+
/** Assign your items */
|
|
161
|
+
ASSIGN: 'personal_inv_items_assign',
|
|
162
|
+
/** Make over your items */
|
|
163
|
+
MAKEOVER: 'personal_inv_items_makeover',
|
|
164
|
+
/** Read the tags assigned to your items */
|
|
165
|
+
TAGS_READ: 'personal_inv_items_tags_read',
|
|
166
|
+
/** Modify the tags assigned to your items */
|
|
167
|
+
TAGS_WRITE: 'personal_inv_items_tags_write',
|
|
168
|
+
/** Access and change anything in your item inventory */
|
|
169
|
+
ALL: 'personal_inv_items_all',
|
|
170
|
+
},
|
|
87
171
|
/** Personal NPC scopes (has MAKEOVER but no RENAME) */
|
|
88
172
|
NPCS: {
|
|
173
|
+
/** Read basic information about your NPCs */
|
|
89
174
|
READ: 'personal_inv_npcs_read',
|
|
175
|
+
/** Assign your NPCs */
|
|
90
176
|
ASSIGN: 'personal_inv_npcs_assign',
|
|
177
|
+
/** Make over your NPCs */
|
|
91
178
|
MAKEOVER: 'personal_inv_npcs_makeover',
|
|
92
|
-
|
|
179
|
+
/** Read the tags assigned to your NPCs */
|
|
93
180
|
TAGS_READ: 'personal_inv_npcs_tags_read',
|
|
181
|
+
/** Modify the tags assigned to your NPCs */
|
|
94
182
|
TAGS_WRITE: 'personal_inv_npcs_tags_write',
|
|
183
|
+
/** Access and change anything in your NPC inventory */
|
|
95
184
|
ALL: 'personal_inv_npcs_all',
|
|
96
185
|
},
|
|
97
186
|
/** Personal droid scopes */
|
|
98
|
-
DROIDS:
|
|
187
|
+
DROIDS: {
|
|
188
|
+
/** Read basic information about your droids */
|
|
189
|
+
READ: 'personal_inv_droids_read',
|
|
190
|
+
/** Rename your droids */
|
|
191
|
+
RENAME: 'personal_inv_droids_rename',
|
|
192
|
+
/** Assign your droids */
|
|
193
|
+
ASSIGN: 'personal_inv_droids_assign',
|
|
194
|
+
/** Make over your droids */
|
|
195
|
+
MAKEOVER: 'personal_inv_droids_makeover',
|
|
196
|
+
/** Read the tags assigned to your droids */
|
|
197
|
+
TAGS_READ: 'personal_inv_droids_tags_read',
|
|
198
|
+
/** Modify the tags assigned to your droids */
|
|
199
|
+
TAGS_WRITE: 'personal_inv_droids_tags_write',
|
|
200
|
+
/** Access and change anything in your droid inventory */
|
|
201
|
+
ALL: 'personal_inv_droids_all',
|
|
202
|
+
},
|
|
99
203
|
/** Personal material scopes (no ASSIGN) */
|
|
100
204
|
MATERIALS: {
|
|
205
|
+
/** Read basic information about your materials */
|
|
101
206
|
READ: 'personal_inv_materials_read',
|
|
207
|
+
/** Rename your materials */
|
|
102
208
|
RENAME: 'personal_inv_materials_rename',
|
|
209
|
+
/** Make over your materials */
|
|
103
210
|
MAKEOVER: 'personal_inv_materials_makeover',
|
|
211
|
+
/** Read the tags assigned to your materials */
|
|
104
212
|
TAGS_READ: 'personal_inv_materials_tags_read',
|
|
213
|
+
/** Modify the tags assigned to your materials */
|
|
105
214
|
TAGS_WRITE: 'personal_inv_materials_tags_write',
|
|
215
|
+
/** Access and change anything in your material inventory */
|
|
106
216
|
ALL: 'personal_inv_materials_all',
|
|
107
217
|
},
|
|
108
218
|
/** Personal creature scopes */
|
|
109
|
-
CREATURES:
|
|
219
|
+
CREATURES: {
|
|
220
|
+
/** Read basic information about your creatures */
|
|
221
|
+
READ: 'personal_inv_creatures_read',
|
|
222
|
+
/** Rename your creatures */
|
|
223
|
+
RENAME: 'personal_inv_creatures_rename',
|
|
224
|
+
/** Assign your creatures */
|
|
225
|
+
ASSIGN: 'personal_inv_creatures_assign',
|
|
226
|
+
/** Make over your creatures */
|
|
227
|
+
MAKEOVER: 'personal_inv_creatures_makeover',
|
|
228
|
+
/** Read the tags assigned to your creatures */
|
|
229
|
+
TAGS_READ: 'personal_inv_creatures_tags_read',
|
|
230
|
+
/** Modify the tags assigned to your creatures */
|
|
231
|
+
TAGS_WRITE: 'personal_inv_creatures_tags_write',
|
|
232
|
+
/** Access and change anything in your creature inventory */
|
|
233
|
+
ALL: 'personal_inv_creatures_all',
|
|
234
|
+
},
|
|
110
235
|
};
|
|
111
236
|
/**
|
|
112
237
|
* Faction management scopes
|
|
113
238
|
*/
|
|
114
239
|
export const FactionScopes = {
|
|
115
|
-
/** Read
|
|
240
|
+
/** Read basic information about your faction */
|
|
116
241
|
READ: 'faction_read',
|
|
117
|
-
/**
|
|
242
|
+
/** See your faction's members list */
|
|
118
243
|
MEMBERS: 'faction_members',
|
|
119
|
-
/**
|
|
244
|
+
/** See the stocks your faction owns */
|
|
120
245
|
STOCKS: 'faction_stocks',
|
|
121
|
-
/**
|
|
246
|
+
/** See how many credits your faction owns */
|
|
122
247
|
CREDITS_READ: 'faction_credits_read',
|
|
123
|
-
/**
|
|
248
|
+
/** Transfer credits on behalf of your faction */
|
|
124
249
|
CREDITS_WRITE: 'faction_credits_write',
|
|
125
|
-
/**
|
|
250
|
+
/** See your faction's budgets */
|
|
126
251
|
BUDGETS_READ: 'faction_budgets_read',
|
|
127
|
-
/**
|
|
252
|
+
/** Change your faction's budgets */
|
|
128
253
|
BUDGETS_WRITE: 'faction_budgets_write',
|
|
129
|
-
/**
|
|
254
|
+
/** See your faction's datacard assignments */
|
|
130
255
|
DATACARDS_READ: 'faction_datacards_read',
|
|
131
|
-
/**
|
|
256
|
+
/** Assign or revoke your faction's datacard assignments */
|
|
132
257
|
DATACARDS_WRITE: 'faction_datacards_write',
|
|
133
|
-
/**
|
|
258
|
+
/** Access and change anything in your faction */
|
|
134
259
|
ALL: 'faction_all',
|
|
135
260
|
};
|
|
136
|
-
/**
|
|
137
|
-
* Generate faction inventory scopes for a specific entity type
|
|
138
|
-
*/
|
|
139
|
-
function generateFactionInventoryScopes(entityType, hasRename = true) {
|
|
140
|
-
const scopes = {};
|
|
141
|
-
scopes.READ = `faction_inv_${entityType}_read`;
|
|
142
|
-
if (hasRename) {
|
|
143
|
-
scopes.RENAME = `faction_inv_${entityType}_rename`;
|
|
144
|
-
}
|
|
145
|
-
scopes.ASSIGN = `faction_inv_${entityType}_assign`;
|
|
146
|
-
if (hasRename) {
|
|
147
|
-
scopes.MAKEOVER = `faction_inv_${entityType}_makeover`;
|
|
148
|
-
}
|
|
149
|
-
scopes.TAGS_READ = `faction_inv_${entityType}_tags_read`;
|
|
150
|
-
scopes.TAGS_WRITE = `faction_inv_${entityType}_tags_write`;
|
|
151
|
-
scopes.ALL = `faction_inv_${entityType}_all`;
|
|
152
|
-
return scopes;
|
|
153
|
-
}
|
|
154
261
|
/**
|
|
155
262
|
* Faction inventory scopes
|
|
156
263
|
*/
|
|
157
264
|
export const FactionInventoryScopes = {
|
|
158
|
-
/**
|
|
265
|
+
/** Read basic information about your faction's inventories */
|
|
159
266
|
OVERVIEW: 'faction_inv_overview',
|
|
160
267
|
/** Faction ship scopes */
|
|
161
|
-
SHIPS:
|
|
268
|
+
SHIPS: {
|
|
269
|
+
/** Read basic information about your faction's ships */
|
|
270
|
+
READ: 'faction_inv_ships_read',
|
|
271
|
+
/** Rename your faction's ships */
|
|
272
|
+
RENAME: 'faction_inv_ships_rename',
|
|
273
|
+
/** Assign your faction's ships */
|
|
274
|
+
ASSIGN: 'faction_inv_ships_assign',
|
|
275
|
+
/** Make over your faction's ships */
|
|
276
|
+
MAKEOVER: 'faction_inv_ships_makeover',
|
|
277
|
+
/** Read the tags assigned to your faction's ships */
|
|
278
|
+
TAGS_READ: 'faction_inv_ships_tags_read',
|
|
279
|
+
/** Modify the tags assigned to your faction's ships */
|
|
280
|
+
TAGS_WRITE: 'faction_inv_ships_tags_write',
|
|
281
|
+
/** Access and change anything in your faction's ship inventory */
|
|
282
|
+
ALL: 'faction_inv_ships_all',
|
|
283
|
+
},
|
|
162
284
|
/** Faction vehicle scopes */
|
|
163
|
-
VEHICLES:
|
|
285
|
+
VEHICLES: {
|
|
286
|
+
/** Read basic information about your faction's vehicles */
|
|
287
|
+
READ: 'faction_inv_vehicles_read',
|
|
288
|
+
/** Rename your faction's vehicles */
|
|
289
|
+
RENAME: 'faction_inv_vehicles_rename',
|
|
290
|
+
/** Assign your faction's vehicles */
|
|
291
|
+
ASSIGN: 'faction_inv_vehicles_assign',
|
|
292
|
+
/** Make over your faction's vehicles */
|
|
293
|
+
MAKEOVER: 'faction_inv_vehicles_makeover',
|
|
294
|
+
/** Read the tags assigned to your faction's vehicles */
|
|
295
|
+
TAGS_READ: 'faction_inv_vehicles_tags_read',
|
|
296
|
+
/** Modify the tags assigned to your faction's vehicles */
|
|
297
|
+
TAGS_WRITE: 'faction_inv_vehicles_tags_write',
|
|
298
|
+
/** Access and change anything in your faction's vehicle inventory */
|
|
299
|
+
ALL: 'faction_inv_vehicles_all',
|
|
300
|
+
},
|
|
164
301
|
/** Faction station scopes */
|
|
165
|
-
STATIONS:
|
|
302
|
+
STATIONS: {
|
|
303
|
+
/** Read basic information about your faction's space stations */
|
|
304
|
+
READ: 'faction_inv_stations_read',
|
|
305
|
+
/** Rename your faction's space stations */
|
|
306
|
+
RENAME: 'faction_inv_stations_rename',
|
|
307
|
+
/** Assign your faction's space stations */
|
|
308
|
+
ASSIGN: 'faction_inv_stations_assign',
|
|
309
|
+
/** Make over your faction's space stations */
|
|
310
|
+
MAKEOVER: 'faction_inv_stations_makeover',
|
|
311
|
+
/** Read the tags assigned to your faction's space stations */
|
|
312
|
+
TAGS_READ: 'faction_inv_stations_tags_read',
|
|
313
|
+
/** Modify the tags assigned to your faction's space stations */
|
|
314
|
+
TAGS_WRITE: 'faction_inv_stations_tags_write',
|
|
315
|
+
/** Access and change anything in your faction's space station inventory */
|
|
316
|
+
ALL: 'faction_inv_stations_all',
|
|
317
|
+
},
|
|
166
318
|
/** Faction city scopes */
|
|
167
|
-
CITIES:
|
|
319
|
+
CITIES: {
|
|
320
|
+
/** Read basic information about your faction's cities */
|
|
321
|
+
READ: 'faction_inv_cities_read',
|
|
322
|
+
/** Rename your faction's cities */
|
|
323
|
+
RENAME: 'faction_inv_cities_rename',
|
|
324
|
+
/** Assign your faction's cities */
|
|
325
|
+
ASSIGN: 'faction_inv_cities_assign',
|
|
326
|
+
/** Make over your faction's cities */
|
|
327
|
+
MAKEOVER: 'faction_inv_cities_makeover',
|
|
328
|
+
/** Read the tags assigned to your faction's cities */
|
|
329
|
+
TAGS_READ: 'faction_inv_cities_tags_read',
|
|
330
|
+
/** Modify the tags assigned to your faction's cities */
|
|
331
|
+
TAGS_WRITE: 'faction_inv_cities_tags_write',
|
|
332
|
+
/** Access and change anything in your faction's city inventory */
|
|
333
|
+
ALL: 'faction_inv_cities_all',
|
|
334
|
+
},
|
|
168
335
|
/** Faction facility scopes */
|
|
169
|
-
FACILITIES:
|
|
336
|
+
FACILITIES: {
|
|
337
|
+
/** Read basic information about your faction's facilities */
|
|
338
|
+
READ: 'faction_inv_facilities_read',
|
|
339
|
+
/** Rename your faction's facilities */
|
|
340
|
+
RENAME: 'faction_inv_facilities_rename',
|
|
341
|
+
/** Assign your faction's facilities */
|
|
342
|
+
ASSIGN: 'faction_inv_facilities_assign',
|
|
343
|
+
/** Make over your faction's facilities */
|
|
344
|
+
MAKEOVER: 'faction_inv_facilities_makeover',
|
|
345
|
+
/** Read the tags assigned to your faction's facilities */
|
|
346
|
+
TAGS_READ: 'faction_inv_facilities_tags_read',
|
|
347
|
+
/** Modify the tags assigned to your faction's facilities */
|
|
348
|
+
TAGS_WRITE: 'faction_inv_facilities_tags_write',
|
|
349
|
+
/** Access and change anything in your faction's facility inventory */
|
|
350
|
+
ALL: 'faction_inv_facilities_all',
|
|
351
|
+
},
|
|
170
352
|
/** Faction planet scopes (no RENAME/MAKEOVER) */
|
|
171
|
-
PLANETS:
|
|
353
|
+
PLANETS: {
|
|
354
|
+
/** Read basic information about your faction's planets */
|
|
355
|
+
READ: 'faction_inv_planets_read',
|
|
356
|
+
/** Assign your faction's planets */
|
|
357
|
+
ASSIGN: 'faction_inv_planets_assign',
|
|
358
|
+
/** Read the tags assigned to your faction's planets */
|
|
359
|
+
TAGS_READ: 'faction_inv_planets_tags_read',
|
|
360
|
+
/** Modify the tags assigned to your faction's planets */
|
|
361
|
+
TAGS_WRITE: 'faction_inv_planets_tags_write',
|
|
362
|
+
/** Access and change anything in your faction's planet inventory */
|
|
363
|
+
ALL: 'faction_inv_planets_all',
|
|
364
|
+
},
|
|
172
365
|
/** Faction item scopes */
|
|
173
|
-
ITEMS:
|
|
366
|
+
ITEMS: {
|
|
367
|
+
/** Read basic information about your faction's items */
|
|
368
|
+
READ: 'faction_inv_items_read',
|
|
369
|
+
/** Rename your faction's items */
|
|
370
|
+
RENAME: 'faction_inv_items_rename',
|
|
371
|
+
/** Assign your faction's items */
|
|
372
|
+
ASSIGN: 'faction_inv_items_assign',
|
|
373
|
+
/** Make over your faction's items */
|
|
374
|
+
MAKEOVER: 'faction_inv_items_makeover',
|
|
375
|
+
/** Read the tags assigned to your faction's items */
|
|
376
|
+
TAGS_READ: 'faction_inv_items_tags_read',
|
|
377
|
+
/** Modify the tags assigned to your faction's items */
|
|
378
|
+
TAGS_WRITE: 'faction_inv_items_tags_write',
|
|
379
|
+
/** Access and change anything in your faction's item inventory */
|
|
380
|
+
ALL: 'faction_inv_items_all',
|
|
381
|
+
},
|
|
174
382
|
/** Faction NPC scopes (has MAKEOVER but no RENAME) */
|
|
175
383
|
NPCS: {
|
|
384
|
+
/** Read basic information about your faction's NPCs */
|
|
176
385
|
READ: 'faction_inv_npcs_read',
|
|
386
|
+
/** Assign your faction's NPCs */
|
|
177
387
|
ASSIGN: 'faction_inv_npcs_assign',
|
|
388
|
+
/** Make over your faction's NPCs */
|
|
178
389
|
MAKEOVER: 'faction_inv_npcs_makeover',
|
|
179
|
-
|
|
390
|
+
/** Read the tags assigned to your faction's NPCs */
|
|
180
391
|
TAGS_READ: 'faction_inv_npcs_tags_read',
|
|
392
|
+
/** Modify the tags assigned to your faction's NPCs */
|
|
181
393
|
TAGS_WRITE: 'faction_inv_npcs_tags_write',
|
|
394
|
+
/** Access and change anything in your faction's NPC inventory */
|
|
182
395
|
ALL: 'faction_inv_npcs_all',
|
|
183
396
|
},
|
|
184
397
|
/** Faction droid scopes */
|
|
185
|
-
DROIDS:
|
|
398
|
+
DROIDS: {
|
|
399
|
+
/** Read basic information about your faction's droids */
|
|
400
|
+
READ: 'faction_inv_droids_read',
|
|
401
|
+
/** Rename your faction's droids */
|
|
402
|
+
RENAME: 'faction_inv_droids_rename',
|
|
403
|
+
/** Assign your faction's droids */
|
|
404
|
+
ASSIGN: 'faction_inv_droids_assign',
|
|
405
|
+
/** Make over your faction's droids */
|
|
406
|
+
MAKEOVER: 'faction_inv_droids_makeover',
|
|
407
|
+
/** Read the tags assigned to your faction's droids */
|
|
408
|
+
TAGS_READ: 'faction_inv_droids_tags_read',
|
|
409
|
+
/** Modify the tags assigned to your faction's droids */
|
|
410
|
+
TAGS_WRITE: 'faction_inv_droids_tags_write',
|
|
411
|
+
/** Access and change anything in your faction's droid inventory */
|
|
412
|
+
ALL: 'faction_inv_droids_all',
|
|
413
|
+
},
|
|
186
414
|
/** Faction material scopes (no ASSIGN) */
|
|
187
415
|
MATERIALS: {
|
|
416
|
+
/** Read basic information about your faction's materials */
|
|
188
417
|
READ: 'faction_inv_materials_read',
|
|
418
|
+
/** Rename your faction's materials */
|
|
189
419
|
RENAME: 'faction_inv_materials_rename',
|
|
420
|
+
/** Make over your faction's materials */
|
|
190
421
|
MAKEOVER: 'faction_inv_materials_makeover',
|
|
422
|
+
/** Read the tags assigned to your faction's materials */
|
|
191
423
|
TAGS_READ: 'faction_inv_materials_tags_read',
|
|
424
|
+
/** Modify the tags assigned to your faction's materials */
|
|
192
425
|
TAGS_WRITE: 'faction_inv_materials_tags_write',
|
|
426
|
+
/** Access and change anything in your faction's material inventory */
|
|
193
427
|
ALL: 'faction_inv_materials_all',
|
|
194
428
|
},
|
|
195
429
|
/** Faction creature scopes */
|
|
196
|
-
CREATURES:
|
|
430
|
+
CREATURES: {
|
|
431
|
+
/** Read basic information about your faction's creatures */
|
|
432
|
+
READ: 'faction_inv_creatures_read',
|
|
433
|
+
/** Rename your faction's creatures */
|
|
434
|
+
RENAME: 'faction_inv_creatures_rename',
|
|
435
|
+
/** Assign your faction's creatures */
|
|
436
|
+
ASSIGN: 'faction_inv_creatures_assign',
|
|
437
|
+
/** Make over your faction's creatures */
|
|
438
|
+
MAKEOVER: 'faction_inv_creatures_makeover',
|
|
439
|
+
/** Read the tags assigned to your faction's creatures */
|
|
440
|
+
TAGS_READ: 'faction_inv_creatures_tags_read',
|
|
441
|
+
/** Modify the tags assigned to your faction's creatures */
|
|
442
|
+
TAGS_WRITE: 'faction_inv_creatures_tags_write',
|
|
443
|
+
/** Access and change anything in your faction's creature inventory */
|
|
444
|
+
ALL: 'faction_inv_creatures_all',
|
|
445
|
+
},
|
|
197
446
|
};
|
|
198
447
|
/**
|
|
199
448
|
* All available scopes organized by category
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../src/auth/scopes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../src/auth/scopes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,6GAA6G;IAC7G,IAAI,EAAE,gBAAgB;IACtB,4OAA4O;IAC5O,IAAI,EAAE,gBAAgB;IACtB,uDAAuD;IACvD,KAAK,EAAE,iBAAiB;IACxB,gCAAgC;IAChC,UAAU,EAAE,sBAAsB;IAClC,4BAA4B;IAC5B,MAAM,EAAE,kBAAkB;IAC1B,wCAAwC;IACxC,OAAO,EAAE,mBAAmB;IAC5B,iCAAiC;IACjC,aAAa,EAAE,yBAAyB;IACxC,kLAAkL;IAClL,KAAK,EAAE,iBAAiB;IACxB,iCAAiC;IACjC,QAAQ,EAAE,oBAAoB;IAC9B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AAuB,CAAC,QAAQ;QAChC,aAAa,CAAC,IAAI;QAClB,aAAa,CAAC,OAAO;QACrB,sBAAsB,CAAC,QAAQ;KAChC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -107,17 +107,15 @@ export class FactionCreditsResource extends BaseResource {
|
|
|
107
107
|
* Transfer faction credits
|
|
108
108
|
* @param options.factionId - Faction UID
|
|
109
109
|
* @param options.amount - Amount to transfer
|
|
110
|
-
* @param options.recipient - Recipient character or faction UID (
|
|
110
|
+
* @param options.recipient - Recipient character or faction name/UID (REQUIRED)
|
|
111
111
|
* @param options.budget - Budget UID to transfer from (optional)
|
|
112
112
|
* @param options.reason - Reason for transfer (optional, API will auto-append client name)
|
|
113
113
|
*/
|
|
114
|
-
async
|
|
114
|
+
async transfer(options) {
|
|
115
115
|
const data = {
|
|
116
116
|
amount: options.amount,
|
|
117
|
+
recipient: options.recipient,
|
|
117
118
|
};
|
|
118
|
-
if (options.recipient) {
|
|
119
|
-
data.recipient = options.recipient;
|
|
120
|
-
}
|
|
121
119
|
if (options.budget) {
|
|
122
120
|
data.budget = options.budget;
|
|
123
121
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FactionResource.js","sourceRoot":"","sources":["../../../src/resources/FactionResource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"FactionResource.js","sourceRoot":"","sources":["../../../src/resources/FactionResource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuCjD;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,YAAY;IACtD;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,C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