dfx 0.97.4 → 0.97.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/types.d.ts CHANGED
@@ -19,7 +19,9 @@ export declare enum ActionType {
19
19
  /** logs user content to a specified channel */
20
20
  SEND_ALERT_MESSAGE = 2,
21
21
  /** timeout user for a specified duration * */
22
- TIMEOUT = 3
22
+ TIMEOUT = 3,
23
+ /** prevents a member from using text, voice, or other interactions */
24
+ BLOCK_MEMBER_INTERACTION = 4
23
25
  }
24
26
  export interface Activity {
25
27
  /** Activity's name */
@@ -1906,7 +1908,9 @@ export declare enum EntitlementType {
1906
1908
  export type EntitlementUpdateEvent = Entitlement;
1907
1909
  export declare enum EventType {
1908
1910
  /** when a member sends or edits a message in the guild */
1909
- MESSAGE_SEND = 1
1911
+ MESSAGE_SEND = 1,
1912
+ /** when a member edits their profile */
1913
+ MEMBER_UPDATE = 2
1910
1914
  }
1911
1915
  export interface ExecuteWebhookParams {
1912
1916
  /** the message contents (up to 2000 characters) */
@@ -2488,6 +2492,8 @@ export interface GuildMemberUpdateEvent {
2488
2492
  readonly communication_disabled_until?: string | null;
2489
2493
  /** Guild member flags represented as a bit set, defaults to 0 */
2490
2494
  readonly flags?: number;
2495
+ /** Data for the member's guild avatar decoration */
2496
+ readonly avatar_decoration_data?: AvatarDecorationDatum | null;
2491
2497
  }
2492
2498
  export declare enum GuildNsfwLevel {
2493
2499
  DEFAULT = 0,
@@ -3437,7 +3443,12 @@ export declare enum MessageType {
3437
3443
  STAGE_END = 28,
3438
3444
  STAGE_SPEAKER = 29,
3439
3445
  STAGE_TOPIC = 31,
3440
- GUILD_APPLICATION_PREMIUM_SUBSCRIPTION = 32
3446
+ GUILD_APPLICATION_PREMIUM_SUBSCRIPTION = 32,
3447
+ GUILD_INCIDENT_ALERT_MODE_ENABLED = 36,
3448
+ GUILD_INCIDENT_ALERT_MODE_DISABLED = 37,
3449
+ GUILD_INCIDENT_REPORT_RAID = 38,
3450
+ GUILD_INCIDENT_REPORT_FALSE_ALARM = 39,
3451
+ PURCHASE_NOTIFICATION = 44
3441
3452
  }
3442
3453
  export type MessageUpdateEvent = MessageCreateEvent;
3443
3454
  export declare enum MfaLevel {
@@ -3926,6 +3937,8 @@ export declare const PermissionFlag: {
3926
3937
  readonly SEND_VOICE_MESSAGES: bigint;
3927
3938
  /** Allows sending polls */
3928
3939
  readonly SEND_POLLS: bigint;
3940
+ /** Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server. */
3941
+ readonly USE_EXTERNAL_APPS: bigint;
3929
3942
  };
3930
3943
  export interface Poll {
3931
3944
  /** The question of the poll. Only text is supported. */
@@ -4533,7 +4546,7 @@ export interface TeamMember {
4533
4546
  readonly role: TeamMemberRoleType;
4534
4547
  }
4535
4548
  export declare enum TeamMemberRoleType {
4536
- /** Owners are the most permissiable role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
4549
+ /** Owners are the most permissible role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
4537
4550
  OWNER = "",
4538
4551
  /** Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. */
4539
4552
  ADMIN = "admin",
@@ -4625,13 +4638,13 @@ export interface ThreadMetadatum {
4625
4638
  }
4626
4639
  export type ThreadUpdateEvent = Channel;
4627
4640
  export interface TriggerMetadatum {
4628
- /** KEYWORD */
4641
+ /** KEYWORD, MEMBER_PROFILE */
4629
4642
  readonly keyword_filter: Array<string>;
4630
- /** KEYWORD */
4643
+ /** KEYWORD, MEMBER_PROFILE */
4631
4644
  readonly regex_patterns: Array<string>;
4632
4645
  /** KEYWORD_PRESET */
4633
4646
  readonly presets: Array<KeywordPresetType>;
4634
- /** KEYWORD, KEYWORD_PRESET */
4647
+ /** KEYWORD, KEYWORD_PRESET, MEMBER_PROFILE */
4635
4648
  readonly allow_list: Array<string>;
4636
4649
  /** MENTION_SPAM */
4637
4650
  readonly mention_total_limit: number;
@@ -4646,7 +4659,9 @@ export declare enum TriggerType {
4646
4659
  /** check if content contains words from internal pre-defined wordsets */
4647
4660
  KEYWORD_PRESET = 4,
4648
4661
  /** check if content contains more unique mentions than allowed */
4649
- MENTION_SPAM = 5
4662
+ MENTION_SPAM = 5,
4663
+ /** check if member profile contains words from a user defined list of keywords */
4664
+ MEMBER_PROFILE = 6
4650
4665
  }
4651
4666
  export interface TypingStartEvent {
4652
4667
  /** ID of the channel */