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