@dendotdev/grunt 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -29,12 +29,12 @@ import {
29
29
  // Create a client with your Spartan token
30
30
  const client = new HaloInfiniteClient({
31
31
  spartanToken: 'your-spartan-token',
32
- xuid: '2533274855333605', // Your Xbox User ID
32
+ xuid: 'xuid', // Your Xbox User ID
33
33
  });
34
34
 
35
35
  // Get match history
36
36
  const history = await client.stats.getMatchHistory(
37
- '2533274855333605',
37
+ 'xuid',
38
38
  0, // start index
39
39
  25, // count (max 25)
40
40
  MatchType.All
@@ -167,7 +167,7 @@ Client for Halo Waypoint APIs:
167
167
 
168
168
  ```typescript
169
169
  const record = await client.stats.getPlayerServiceRecordByXuid(
170
- '2533274855333605',
170
+ 'xuid',
171
171
  LifecycleMode.Matchmade
172
172
  );
173
173
 
@@ -193,7 +193,7 @@ if (isSuccess(match)) {
193
193
  ```typescript
194
194
  const csr = await client.skill.getPlaylistCsr(
195
195
  'playlist-guid',
196
- ['2533274855333605']
196
+ ['xuid']
197
197
  );
198
198
 
199
199
  if (isSuccess(csr)) {
@@ -205,7 +205,7 @@ if (isSuccess(csr)) {
205
205
  ### Get Player Inventory
206
206
 
207
207
  ```typescript
208
- const inventory = await client.economy.getInventoryItems('2533274855333605');
208
+ const inventory = await client.economy.getInventoryItems('xuid');
209
209
 
210
210
  if (isSuccess(inventory)) {
211
211
  console.log(`Items owned: ${inventory.result.items?.length}`);
@@ -284,7 +284,7 @@ const client = new HaloInfiniteClient({
284
284
  spartanToken: 'your-spartan-token',
285
285
 
286
286
  // Optional
287
- xuid: '2533274855333605', // Your Xbox User ID
287
+ xuid: 'xuid', // Your Xbox User ID
288
288
  clearanceToken: 'flight-id', // For flighted/preview content
289
289
  includeRawResponses: true, // Include full request/response in results
290
290
  userAgent: 'MyApp/1.0', // Custom User-Agent header
package/dist/index.d.mts CHANGED
@@ -290,7 +290,7 @@ declare function getContentTypeHeader(contentType: ApiContentType): string;
290
290
  * ```typescript
291
291
  * const client = new HaloInfiniteClient({
292
292
  * spartanToken: 'your-spartan-token',
293
- * xuid: '2533274855333605',
293
+ * xuid: 'xuid',
294
294
  * clearanceToken: 'flight-clearance-id',
295
295
  * includeRawResponses: true, // Enable for debugging
296
296
  * });
@@ -306,7 +306,7 @@ interface HaloInfiniteClientOptions {
306
306
  * Xbox User ID (XUID) in numeric format.
307
307
  * Used for player-specific API calls.
308
308
  *
309
- * @example '2533274855333605'
309
+ * @example 'xuid'
310
310
  */
311
311
  xuid?: string;
312
312
  /**
@@ -1967,13 +1967,13 @@ interface CareerRankProgress {
1967
1967
  * @example
1968
1968
  * ```typescript
1969
1969
  * // Get player inventory
1970
- * const inventory = await client.economy.getInventoryItems('2533274855333605');
1970
+ * const inventory = await client.economy.getInventoryItems('xuid');
1971
1971
  *
1972
1972
  * // Get armor customization
1973
- * const armor = await client.economy.armorCoresCustomization('2533274855333605');
1973
+ * const armor = await client.economy.armorCoresCustomization('xuid');
1974
1974
  *
1975
1975
  * // Get currency balances
1976
- * const currencies = await client.economy.getVirtualCurrencyBalances('2533274855333605');
1976
+ * const currencies = await client.economy.getVirtualCurrencyBalances('xuid');
1977
1977
  * ```
1978
1978
  */
1979
1979
  declare class EconomyModule extends ModuleBase {
@@ -3297,13 +3297,13 @@ interface PlayerServiceRecord {
3297
3297
  * @example
3298
3298
  * ```typescript
3299
3299
  * // Get match history
3300
- * const history = await client.stats.getMatchHistory('2533274855333605', 0, 25, MatchType.All);
3300
+ * const history = await client.stats.getMatchHistory('xuid', 0, 25, MatchType.All);
3301
3301
  *
3302
3302
  * // Get specific match details
3303
3303
  * const match = await client.stats.getMatchStats('match-guid-here');
3304
3304
  *
3305
3305
  * // Get player service record
3306
- * const record = await client.stats.getPlayerServiceRecordByXuid('2533274855333605', LifecycleMode.Matchmade);
3306
+ * const record = await client.stats.getPlayerServiceRecordByXuid('xuid', LifecycleMode.Matchmade);
3307
3307
  * ```
3308
3308
  */
3309
3309
  declare class StatsModule extends ModuleBase {
@@ -4150,21 +4150,21 @@ declare class UgcDiscoveryModule extends ModuleBase {
4150
4150
  * // Create client with authentication
4151
4151
  * const client = new HaloInfiniteClient({
4152
4152
  * spartanToken: 'your-spartan-token',
4153
- * xuid: '2533274855333605',
4153
+ * xuid: 'xuid',
4154
4154
  * clearanceToken: 'flight-clearance-id',
4155
4155
  * });
4156
4156
  *
4157
4157
  * // Get match history
4158
- * const history = await client.stats.getMatchHistory('2533274855333605', 0, 25, MatchType.All);
4158
+ * const history = await client.stats.getMatchHistory('xuid', 0, 25, MatchType.All);
4159
4159
  * if (isSuccess(history)) {
4160
4160
  * console.log(`Found ${history.result.resultCount} matches`);
4161
4161
  * }
4162
4162
  *
4163
4163
  * // Get player inventory
4164
- * const inventory = await client.economy.getInventoryItems('2533274855333605');
4164
+ * const inventory = await client.economy.getInventoryItems('xuid');
4165
4165
  *
4166
4166
  * // Get CSR for a playlist
4167
- * const csr = await client.skill.getPlaylistCsr('playlist-id', ['2533274855333605']);
4167
+ * const csr = await client.skill.getPlaylistCsr('playlist-id', ['xuid']);
4168
4168
  *
4169
4169
  * // Search for UGC maps
4170
4170
  * const maps = await client.ugcDiscovery.search({
@@ -4195,7 +4195,7 @@ declare class HaloInfiniteClient extends ClientBase {
4195
4195
  * ```typescript
4196
4196
  * const client = new HaloInfiniteClient({
4197
4197
  * spartanToken: 'your-spartan-token',
4198
- * xuid: '2533274855333605',
4198
+ * xuid: 'xuid',
4199
4199
  * includeRawResponses: true, // Enable for debugging
4200
4200
  * });
4201
4201
  * ```
@@ -4599,7 +4599,7 @@ interface ArticleCategory {
4599
4599
  * const profile = await client.profile.getMyProfile();
4600
4600
  *
4601
4601
  * // Get another user's profile
4602
- * const otherProfile = await client.profile.getUserProfile('2533274855333605', true);
4602
+ * const otherProfile = await client.profile.getUserProfile('xuid', true);
4603
4603
  * ```
4604
4604
  */
4605
4605
  declare class ProfileModule extends WaypointModuleBase {
@@ -4777,7 +4777,7 @@ declare class CommsModule extends WaypointModuleBase {
4777
4777
  * // Create client with authentication
4778
4778
  * const client = new WaypointClient({
4779
4779
  * spartanToken: 'your-spartan-token',
4780
- * xuid: '2533274855333605',
4780
+ * xuid: 'xuid',
4781
4781
  * });
4782
4782
  *
4783
4783
  * // Get my profile
package/dist/index.d.ts CHANGED
@@ -290,7 +290,7 @@ declare function getContentTypeHeader(contentType: ApiContentType): string;
290
290
  * ```typescript
291
291
  * const client = new HaloInfiniteClient({
292
292
  * spartanToken: 'your-spartan-token',
293
- * xuid: '2533274855333605',
293
+ * xuid: 'xuid',
294
294
  * clearanceToken: 'flight-clearance-id',
295
295
  * includeRawResponses: true, // Enable for debugging
296
296
  * });
@@ -306,7 +306,7 @@ interface HaloInfiniteClientOptions {
306
306
  * Xbox User ID (XUID) in numeric format.
307
307
  * Used for player-specific API calls.
308
308
  *
309
- * @example '2533274855333605'
309
+ * @example 'xuid'
310
310
  */
311
311
  xuid?: string;
312
312
  /**
@@ -1967,13 +1967,13 @@ interface CareerRankProgress {
1967
1967
  * @example
1968
1968
  * ```typescript
1969
1969
  * // Get player inventory
1970
- * const inventory = await client.economy.getInventoryItems('2533274855333605');
1970
+ * const inventory = await client.economy.getInventoryItems('xuid');
1971
1971
  *
1972
1972
  * // Get armor customization
1973
- * const armor = await client.economy.armorCoresCustomization('2533274855333605');
1973
+ * const armor = await client.economy.armorCoresCustomization('xuid');
1974
1974
  *
1975
1975
  * // Get currency balances
1976
- * const currencies = await client.economy.getVirtualCurrencyBalances('2533274855333605');
1976
+ * const currencies = await client.economy.getVirtualCurrencyBalances('xuid');
1977
1977
  * ```
1978
1978
  */
1979
1979
  declare class EconomyModule extends ModuleBase {
@@ -3297,13 +3297,13 @@ interface PlayerServiceRecord {
3297
3297
  * @example
3298
3298
  * ```typescript
3299
3299
  * // Get match history
3300
- * const history = await client.stats.getMatchHistory('2533274855333605', 0, 25, MatchType.All);
3300
+ * const history = await client.stats.getMatchHistory('xuid', 0, 25, MatchType.All);
3301
3301
  *
3302
3302
  * // Get specific match details
3303
3303
  * const match = await client.stats.getMatchStats('match-guid-here');
3304
3304
  *
3305
3305
  * // Get player service record
3306
- * const record = await client.stats.getPlayerServiceRecordByXuid('2533274855333605', LifecycleMode.Matchmade);
3306
+ * const record = await client.stats.getPlayerServiceRecordByXuid('xuid', LifecycleMode.Matchmade);
3307
3307
  * ```
3308
3308
  */
3309
3309
  declare class StatsModule extends ModuleBase {
@@ -4150,21 +4150,21 @@ declare class UgcDiscoveryModule extends ModuleBase {
4150
4150
  * // Create client with authentication
4151
4151
  * const client = new HaloInfiniteClient({
4152
4152
  * spartanToken: 'your-spartan-token',
4153
- * xuid: '2533274855333605',
4153
+ * xuid: 'xuid',
4154
4154
  * clearanceToken: 'flight-clearance-id',
4155
4155
  * });
4156
4156
  *
4157
4157
  * // Get match history
4158
- * const history = await client.stats.getMatchHistory('2533274855333605', 0, 25, MatchType.All);
4158
+ * const history = await client.stats.getMatchHistory('xuid', 0, 25, MatchType.All);
4159
4159
  * if (isSuccess(history)) {
4160
4160
  * console.log(`Found ${history.result.resultCount} matches`);
4161
4161
  * }
4162
4162
  *
4163
4163
  * // Get player inventory
4164
- * const inventory = await client.economy.getInventoryItems('2533274855333605');
4164
+ * const inventory = await client.economy.getInventoryItems('xuid');
4165
4165
  *
4166
4166
  * // Get CSR for a playlist
4167
- * const csr = await client.skill.getPlaylistCsr('playlist-id', ['2533274855333605']);
4167
+ * const csr = await client.skill.getPlaylistCsr('playlist-id', ['xuid']);
4168
4168
  *
4169
4169
  * // Search for UGC maps
4170
4170
  * const maps = await client.ugcDiscovery.search({
@@ -4195,7 +4195,7 @@ declare class HaloInfiniteClient extends ClientBase {
4195
4195
  * ```typescript
4196
4196
  * const client = new HaloInfiniteClient({
4197
4197
  * spartanToken: 'your-spartan-token',
4198
- * xuid: '2533274855333605',
4198
+ * xuid: 'xuid',
4199
4199
  * includeRawResponses: true, // Enable for debugging
4200
4200
  * });
4201
4201
  * ```
@@ -4599,7 +4599,7 @@ interface ArticleCategory {
4599
4599
  * const profile = await client.profile.getMyProfile();
4600
4600
  *
4601
4601
  * // Get another user's profile
4602
- * const otherProfile = await client.profile.getUserProfile('2533274855333605', true);
4602
+ * const otherProfile = await client.profile.getUserProfile('xuid', true);
4603
4603
  * ```
4604
4604
  */
4605
4605
  declare class ProfileModule extends WaypointModuleBase {
@@ -4777,7 +4777,7 @@ declare class CommsModule extends WaypointModuleBase {
4777
4777
  * // Create client with authentication
4778
4778
  * const client = new WaypointClient({
4779
4779
  * spartanToken: 'your-spartan-token',
4780
- * xuid: '2533274855333605',
4780
+ * xuid: 'xuid',
4781
4781
  * });
4782
4782
  *
4783
4783
  * // Get my profile
package/dist/index.js CHANGED
@@ -2106,7 +2106,7 @@ var UgcDiscoveryModule = class extends ModuleBase {
2106
2106
  */
2107
2107
  getFilmByMatchId(matchId) {
2108
2108
  this.assertNotEmpty(matchId, "matchId");
2109
- return this.get(`/hi/films/matches/${matchId}`);
2109
+ return this.get(`/hi/films/matches/${matchId}/spectate`);
2110
2110
  }
2111
2111
  };
2112
2112
 
@@ -2134,7 +2134,7 @@ var HaloInfiniteClient = class extends ClientBase {
2134
2134
  * ```typescript
2135
2135
  * const client = new HaloInfiniteClient({
2136
2136
  * spartanToken: 'your-spartan-token',
2137
- * xuid: '2533274855333605',
2137
+ * xuid: 'xuid',
2138
2138
  * includeRawResponses: true, // Enable for debugging
2139
2139
  * });
2140
2140
  * ```