@rbxts/types 1.0.767 → 1.0.769

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.
@@ -30,6 +30,7 @@ interface Services {
30
30
  CollaboratorsService: CollaboratorsService;
31
31
  CollectionService: CollectionService;
32
32
  CommandService: CommandService;
33
+ CommerceService: CommerceService;
33
34
  ConfigureServerService: ConfigureServerService;
34
35
  ConnectivityService: ConnectivityService;
35
36
  ContentProvider: ContentProvider;
@@ -125,6 +126,7 @@ interface Services {
125
126
  ScriptCommitService: ScriptCommitService;
126
127
  ScriptContext: ScriptContext;
127
128
  ScriptEditorService: ScriptEditorService;
129
+ ScriptProfilerService: ScriptProfilerService;
128
130
  ScriptRegistrationService: ScriptRegistrationService;
129
131
  SelectionHighlightManager: SelectionHighlightManager;
130
132
  ServerScriptService: ServerScriptService;
@@ -462,6 +464,10 @@ interface Instances extends Services, CreatableInstances {
462
464
  AssetPatchSettings: AssetPatchSettings;
463
465
  AssetSoundEffect: AssetSoundEffect;
464
466
  AudioPages: AudioPages;
467
+ Avatar2DGenerationJob: Avatar2DGenerationJob;
468
+ Avatar3DGenerationJob: Avatar3DGenerationJob;
469
+ AvatarGenerationJob: AvatarGenerationJob;
470
+ AvatarGenerationSession: AvatarGenerationSession;
465
471
  BackpackItem: BackpackItem;
466
472
  BaseImportData: BaseImportData;
467
473
  BasePart: BasePart;
@@ -1364,7 +1370,7 @@ interface ActivityHistoryService extends Instance {
1364
1370
  * @deprecated
1365
1371
  */
1366
1372
  readonly _nominal_ActivityHistoryService: unique symbol;
1367
- readonly onEventNotificationReceived: RBXScriptSignal<() => void>;
1373
+ readonly EventNotificationReceived: RBXScriptSignal<() => void>;
1368
1374
  }
1369
1375
 
1370
1376
  interface AdPortal extends Instance {
@@ -2893,6 +2899,14 @@ interface AudioEmitter extends Instance {
2893
2899
  readonly _nominal_AudioEmitter: unique symbol;
2894
2900
  AudioInteractionGroup: string;
2895
2901
  GetConnectedWires(this: AudioEmitter, pin: string): unknown;
2902
+ /**
2903
+ * Tags: CustomLuaState
2904
+ */
2905
+ GetDistanceAttenuation(this: AudioEmitter): object;
2906
+ /**
2907
+ * Tags: CustomLuaState
2908
+ */
2909
+ SetDistanceAttenuation(this: AudioEmitter, curve: object): void;
2896
2910
  }
2897
2911
 
2898
2912
  interface AudioEqualizer extends Instance {
@@ -3065,6 +3079,14 @@ interface AvatarCreationService extends Instance {
3065
3079
  * @deprecated
3066
3080
  */
3067
3081
  readonly _nominal_AvatarCreationService: unique symbol;
3082
+ /**
3083
+ * Tags: Yields
3084
+ */
3085
+ LoadAvatarModelAsync(this: AvatarCreationService, id: string): Instance | undefined;
3086
+ /**
3087
+ * Tags: Yields
3088
+ */
3089
+ LoadAvatarPreviewImageAsync(this: AvatarCreationService, avatarPreview: string): EditableImage;
3068
3090
  /**
3069
3091
  * Tags: Yields
3070
3092
  */
@@ -3500,6 +3522,63 @@ interface AvatarEditorService extends Instance {
3500
3522
  readonly PromptUpdateOutfitCompleted: RBXScriptSignal<(result: Enum.AvatarPromptResult) => void>;
3501
3523
  }
3502
3524
 
3525
+ interface AvatarGenerationJob extends Instance {
3526
+ /**
3527
+ * **DO NOT USE!**
3528
+ *
3529
+ * This field exists to force TypeScript to recognize this as a nominal type
3530
+ * @hidden
3531
+ * @deprecated
3532
+ */
3533
+ readonly _nominal_AvatarGenerationJob: unique symbol;
3534
+ Error: Enum.AvatarGenerationError;
3535
+ ErrorMessage: string;
3536
+ Progress: number;
3537
+ Status: Enum.AvatarGenerationJobStatus;
3538
+ Cancel(this: AvatarGenerationJob): void;
3539
+ /**
3540
+ * Tags: Yields
3541
+ */
3542
+ Wait(this: AvatarGenerationJob): void;
3543
+ }
3544
+
3545
+ interface Avatar2DGenerationJob extends AvatarGenerationJob {
3546
+ /**
3547
+ * **DO NOT USE!**
3548
+ *
3549
+ * This field exists to force TypeScript to recognize this as a nominal type
3550
+ * @hidden
3551
+ * @deprecated
3552
+ */
3553
+ readonly _nominal_Avatar2DGenerationJob: unique symbol;
3554
+ Result: string;
3555
+ }
3556
+
3557
+ interface Avatar3DGenerationJob extends AvatarGenerationJob {
3558
+ /**
3559
+ * **DO NOT USE!**
3560
+ *
3561
+ * This field exists to force TypeScript to recognize this as a nominal type
3562
+ * @hidden
3563
+ * @deprecated
3564
+ */
3565
+ readonly _nominal_Avatar3DGenerationJob: unique symbol;
3566
+ Result: Model | undefined;
3567
+ }
3568
+
3569
+ interface AvatarGenerationSession extends Instance {
3570
+ /**
3571
+ * **DO NOT USE!**
3572
+ *
3573
+ * This field exists to force TypeScript to recognize this as a nominal type
3574
+ * @hidden
3575
+ * @deprecated
3576
+ */
3577
+ readonly _nominal_AvatarGenerationSession: unique symbol;
3578
+ GenerateAvatarModel(this: AvatarGenerationSession, previewJob: Avatar2DGenerationJob, options: object): Avatar3DGenerationJob;
3579
+ GenerateAvatarPreview(this: AvatarGenerationSession, textPrompt: string, options: object): Avatar2DGenerationJob;
3580
+ }
3581
+
3503
3582
  interface AvatarImportService extends Instance {
3504
3583
  /**
3505
3584
  * **DO NOT USE!**
@@ -7539,6 +7618,22 @@ interface CommandService extends Instance {
7539
7618
  readonly _nominal_CommandService: unique symbol;
7540
7619
  }
7541
7620
 
7621
+ interface CommerceService extends Instance {
7622
+ /**
7623
+ * **DO NOT USE!**
7624
+ *
7625
+ * This field exists to force TypeScript to recognize this as a nominal type
7626
+ * @hidden
7627
+ * @deprecated
7628
+ */
7629
+ readonly _nominal_CommerceService: unique symbol;
7630
+ PromptRealWorldCommerceBrowser(this: CommerceService, player: Player, url: string): void;
7631
+ /**
7632
+ * Tags: Yields
7633
+ */
7634
+ UserEligibleForRealWorldCommerceAsync(this: CommerceService): boolean;
7635
+ }
7636
+
7542
7637
  /** The Configuration object is a container object that is designed to hold value objects to make values used in [Tool](https://developer.roblox.com/en-us/api-reference/class/Tool)s or any model using [Script](https://developer.roblox.com/en-us/api-reference/class/Script)s more accessible.
7543
7638
  *
7544
7639
  * How does the Configuration object work?
@@ -15383,11 +15478,11 @@ interface Path2D extends GuiBase {
15383
15478
  * @deprecated
15384
15479
  */
15385
15480
  readonly _nominal_Path2D: unique symbol;
15386
- Color: Color3;
15387
- Position: UDim2;
15481
+ Color3: Color3;
15388
15482
  Thickness: number;
15389
15483
  Visible: boolean;
15390
15484
  ZIndex: number;
15485
+ GetBoundingRect(this: Path2D): Rect;
15391
15486
  GetControlPoint(this: Path2D, index: number): Path2DControlPoint;
15392
15487
  GetControlPoints(this: Path2D): unknown;
15393
15488
  GetPositionOnCurve(this: Path2D, t: number): UDim2;
@@ -26645,6 +26740,10 @@ interface Workspace extends WorldRoot {
26645
26740
  * Determines the acceleration due to gravity applied to falling [BaseParts](https://developer.roblox.com/en-us/api-reference/class/BasePart). This value is measured in studs per second squared and by default is set to 196.2 studs/second2. By changing this value, developers can simulate the effects of lower or higher gravity in game.
26646
26741
  */
26647
26742
  Gravity: number;
26743
+ /**
26744
+ * Tags: NotReplicated
26745
+ */
26746
+ InsertPoint: Vector3;
26648
26747
  /**
26649
26748
  * Tags: Hidden, NotReplicated
26650
26749
  * @deprecated
@@ -30617,6 +30716,17 @@ interface ScriptEditorService extends Instance {
30617
30716
  readonly _nominal_ScriptEditorService: unique symbol;
30618
30717
  }
30619
30718
 
30719
+ interface ScriptProfilerService extends Instance {
30720
+ /**
30721
+ * **DO NOT USE!**
30722
+ *
30723
+ * This field exists to force TypeScript to recognize this as a nominal type
30724
+ * @hidden
30725
+ * @deprecated
30726
+ */
30727
+ readonly _nominal_ScriptProfilerService: unique symbol;
30728
+ }
30729
+
30620
30730
  interface ScriptRegistrationService extends Instance {
30621
30731
  /**
30622
30732
  * **DO NOT USE!**
@@ -32718,10 +32828,6 @@ interface StarterPlayer extends Instance {
32718
32828
  * Since this property is only relevant for characters being spawned in the future, changing it will not change any existing player characters. Changes to this property will only take effect when a player respawns.
32719
32829
  */
32720
32830
  CharacterWalkSpeed: number;
32721
- /**
32722
- * Tags: NotBrowsable
32723
- */
32724
- DeathStyle: Enum.DeathStyle;
32725
32831
  /**
32726
32832
  * The DevCameraOcclusionMode [StarterPlayer](https://developer.roblox.com/en-us/api-reference/class/StarterPlayer) property sets how the default camera handles objects between the camera and the player.
32727
32833
  *
@@ -3158,6 +3158,28 @@ interface ScriptEditorService extends Instance {
3158
3158
  readonly TextDocumentDidOpen: RBXScriptSignal<(newDocument: ScriptDocument) => void>;
3159
3159
  }
3160
3160
 
3161
+ interface ScriptProfilerService extends Instance {
3162
+ /**
3163
+ * **DO NOT USE!**
3164
+ *
3165
+ * This field exists to force TypeScript to recognize this as a nominal type
3166
+ * @hidden
3167
+ * @deprecated
3168
+ */
3169
+ readonly _nominal_ScriptProfilerService: unique symbol;
3170
+ ClientRequestData(this: ScriptProfilerService, player: Player): void;
3171
+ ClientStart(this: ScriptProfilerService, player: Player, frequency: number | undefined): void;
3172
+ ClientStop(this: ScriptProfilerService, player: Player): void;
3173
+ /**
3174
+ * Tags: CustomLuaState
3175
+ */
3176
+ DeserializeJSON(this: ScriptProfilerService, jsonString: string | undefined): object;
3177
+ ServerRequestData(this: ScriptProfilerService): void;
3178
+ ServerStart(this: ScriptProfilerService, frequency: number | undefined): void;
3179
+ ServerStop(this: ScriptProfilerService): void;
3180
+ readonly OnNewData: RBXScriptSignal<(player: Player, jsonString: string) => void>;
3181
+ }
3182
+
3161
3183
  /** The Selection service controls the [Instance](https://developer.roblox.com/en-us/api-reference/class/Instance)s that are selected in Roblox Studio.
3162
3184
  *
3163
3185
  * This service is particularly useful when developing [Plugin](https://developer.roblox.com/en-us/api-reference/class/Plugin)s, as it allows the developer to access and manipulate the current selection.
@@ -2379,6 +2379,88 @@ declare namespace Enum {
2379
2379
  }
2380
2380
  export type AvatarContextMenuOption = AvatarContextMenuOption.Friend | AvatarContextMenuOption.Chat | AvatarContextMenuOption.Emote | AvatarContextMenuOption.InspectMenu;
2381
2381
 
2382
+ export namespace AvatarGenerationError {
2383
+ export interface None extends globalThis.EnumItem {
2384
+ Name: "None";
2385
+ Value: 0;
2386
+ EnumType: typeof globalThis.Enum.AvatarGenerationError;
2387
+ }
2388
+
2389
+ export const None: None;
2390
+
2391
+ export interface Timeout extends globalThis.EnumItem {
2392
+ Name: "Timeout";
2393
+ Value: 1;
2394
+ EnumType: typeof globalThis.Enum.AvatarGenerationError;
2395
+ }
2396
+
2397
+ export const Timeout: Timeout;
2398
+
2399
+ export interface DownloadFailed extends globalThis.EnumItem {
2400
+ Name: "DownloadFailed";
2401
+ Value: 2;
2402
+ EnumType: typeof globalThis.Enum.AvatarGenerationError;
2403
+ }
2404
+
2405
+ export const DownloadFailed: DownloadFailed;
2406
+
2407
+ export interface Canceled extends globalThis.EnumItem {
2408
+ Name: "Canceled";
2409
+ Value: 3;
2410
+ EnumType: typeof globalThis.Enum.AvatarGenerationError;
2411
+ }
2412
+
2413
+ export const Canceled: Canceled;
2414
+
2415
+ export interface Unknown extends globalThis.EnumItem {
2416
+ Name: "Unknown";
2417
+ Value: 4;
2418
+ EnumType: typeof globalThis.Enum.AvatarGenerationError;
2419
+ }
2420
+
2421
+ export const Unknown: Unknown;
2422
+
2423
+ export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.AvatarGenerationError>;
2424
+ }
2425
+ export type AvatarGenerationError = AvatarGenerationError.None | AvatarGenerationError.Timeout | AvatarGenerationError.DownloadFailed | AvatarGenerationError.Canceled | AvatarGenerationError.Unknown;
2426
+
2427
+ export namespace AvatarGenerationJobStatus {
2428
+ export interface NotStarted extends globalThis.EnumItem {
2429
+ Name: "NotStarted";
2430
+ Value: 0;
2431
+ EnumType: typeof globalThis.Enum.AvatarGenerationJobStatus;
2432
+ }
2433
+
2434
+ export const NotStarted: NotStarted;
2435
+
2436
+ export interface InProgress extends globalThis.EnumItem {
2437
+ Name: "InProgress";
2438
+ Value: 1;
2439
+ EnumType: typeof globalThis.Enum.AvatarGenerationJobStatus;
2440
+ }
2441
+
2442
+ export const InProgress: InProgress;
2443
+
2444
+ export interface Completed extends globalThis.EnumItem {
2445
+ Name: "Completed";
2446
+ Value: 2;
2447
+ EnumType: typeof globalThis.Enum.AvatarGenerationJobStatus;
2448
+ }
2449
+
2450
+ export const Completed: Completed;
2451
+
2452
+ export interface Failed extends globalThis.EnumItem {
2453
+ Name: "Failed";
2454
+ Value: 3;
2455
+ EnumType: typeof globalThis.Enum.AvatarGenerationJobStatus;
2456
+ }
2457
+
2458
+ export const Failed: Failed;
2459
+
2460
+ export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.AvatarGenerationJobStatus>;
2461
+ }
2462
+ export type AvatarGenerationJobStatus = AvatarGenerationJobStatus.NotStarted | AvatarGenerationJobStatus.InProgress | AvatarGenerationJobStatus.Completed | AvatarGenerationJobStatus.Failed;
2463
+
2382
2464
  export namespace AvatarItemType {
2383
2465
  export interface Asset extends globalThis.EnumItem {
2384
2466
  Name: "Asset";
@@ -5371,43 +5453,6 @@ declare namespace Enum {
5371
5453
  }
5372
5454
  export type DataStoreRequestType = DataStoreRequestType.GetAsync | DataStoreRequestType.SetIncrementAsync | DataStoreRequestType.UpdateAsync | DataStoreRequestType.GetSortedAsync | DataStoreRequestType.SetIncrementSortedAsync | DataStoreRequestType.OnUpdate | DataStoreRequestType.ListAsync | DataStoreRequestType.GetVersionAsync | DataStoreRequestType.RemoveVersionAsync;
5373
5455
 
5374
- export namespace DeathStyle {
5375
- export interface Default extends globalThis.EnumItem {
5376
- Name: "Default";
5377
- Value: 0;
5378
- EnumType: typeof globalThis.Enum.DeathStyle;
5379
- }
5380
-
5381
- export const Default: Default;
5382
-
5383
- export interface ClassicBreakApart extends globalThis.EnumItem {
5384
- Name: "ClassicBreakApart";
5385
- Value: 1;
5386
- EnumType: typeof globalThis.Enum.DeathStyle;
5387
- }
5388
-
5389
- export const ClassicBreakApart: ClassicBreakApart;
5390
-
5391
- export interface NonGraphic extends globalThis.EnumItem {
5392
- Name: "NonGraphic";
5393
- Value: 2;
5394
- EnumType: typeof globalThis.Enum.DeathStyle;
5395
- }
5396
-
5397
- export const NonGraphic: NonGraphic;
5398
-
5399
- export interface Scriptable extends globalThis.EnumItem {
5400
- Name: "Scriptable";
5401
- Value: 3;
5402
- EnumType: typeof globalThis.Enum.DeathStyle;
5403
- }
5404
-
5405
- export const Scriptable: Scriptable;
5406
-
5407
- export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.DeathStyle>;
5408
- }
5409
- export type DeathStyle = DeathStyle.Default | DeathStyle.ClassicBreakApart | DeathStyle.NonGraphic | DeathStyle.Scriptable;
5410
-
5411
5456
  export namespace DebuggerEndReason {
5412
5457
  export interface ClientRequest extends globalThis.EnumItem {
5413
5458
  Name: "ClientRequest";
@@ -7888,6 +7933,43 @@ declare namespace Enum {
7888
7933
  }
7889
7934
  export type GameAvatarType = GameAvatarType.R6 | GameAvatarType.R15 | GameAvatarType.PlayerChoice;
7890
7935
 
7936
+ export namespace GamepadType {
7937
+ export interface Unknown extends globalThis.EnumItem {
7938
+ Name: "Unknown";
7939
+ Value: 0;
7940
+ EnumType: typeof globalThis.Enum.GamepadType;
7941
+ }
7942
+
7943
+ export const Unknown: Unknown;
7944
+
7945
+ export interface PS4 extends globalThis.EnumItem {
7946
+ Name: "PS4";
7947
+ Value: 1;
7948
+ EnumType: typeof globalThis.Enum.GamepadType;
7949
+ }
7950
+
7951
+ export const PS4: PS4;
7952
+
7953
+ export interface PS5 extends globalThis.EnumItem {
7954
+ Name: "PS5";
7955
+ Value: 2;
7956
+ EnumType: typeof globalThis.Enum.GamepadType;
7957
+ }
7958
+
7959
+ export const PS5: PS5;
7960
+
7961
+ export interface XboxOne extends globalThis.EnumItem {
7962
+ Name: "XboxOne";
7963
+ Value: 3;
7964
+ EnumType: typeof globalThis.Enum.GamepadType;
7965
+ }
7966
+
7967
+ export const XboxOne: XboxOne;
7968
+
7969
+ export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.GamepadType>;
7970
+ }
7971
+ export type GamepadType = GamepadType.Unknown | GamepadType.PS4 | GamepadType.PS5 | GamepadType.XboxOne;
7972
+
7891
7973
  export namespace GearGenreSetting {
7892
7974
  export interface AllGenres extends globalThis.EnumItem {
7893
7975
  Name: "AllGenres";
@@ -8226,9 +8308,17 @@ declare namespace Enum {
8226
8308
 
8227
8309
  export const CustomBillboards: CustomBillboards;
8228
8310
 
8311
+ export interface CoreBillboards extends globalThis.EnumItem {
8312
+ Name: "CoreBillboards";
8313
+ Value: 4;
8314
+ EnumType: typeof globalThis.Enum.GuiType;
8315
+ }
8316
+
8317
+ export const CoreBillboards: CoreBillboards;
8318
+
8229
8319
  export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.GuiType>;
8230
8320
  }
8231
- export type GuiType = GuiType.Core | GuiType.Custom | GuiType.PlayerNameplates | GuiType.CustomBillboards;
8321
+ export type GuiType = GuiType.Core | GuiType.Custom | GuiType.PlayerNameplates | GuiType.CustomBillboards | GuiType.CoreBillboards;
8232
8322
 
8233
8323
  export namespace HandlesStyle {
8234
8324
  export interface Resize extends globalThis.EnumItem {
@@ -19352,9 +19442,17 @@ declare namespace Enum {
19352
19442
 
19353
19443
  export const AtEnd: AtEnd;
19354
19444
 
19445
+ export interface SplitWord extends globalThis.EnumItem {
19446
+ Name: "SplitWord";
19447
+ Value: 2;
19448
+ EnumType: typeof globalThis.Enum.TextTruncate;
19449
+ }
19450
+
19451
+ export const SplitWord: SplitWord;
19452
+
19355
19453
  export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.TextTruncate>;
19356
19454
  }
19357
- export type TextTruncate = TextTruncate.None | TextTruncate.AtEnd;
19455
+ export type TextTruncate = TextTruncate.None | TextTruncate.AtEnd | TextTruncate.SplitWord;
19358
19456
 
19359
19457
  export namespace TextXAlignment {
19360
19458
  export interface Left extends globalThis.EnumItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.767",
3
+ "version": "1.0.769",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },