dfx 0.98.0 → 0.98.1

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
@@ -233,9 +233,9 @@ export interface ApplicationCommand {
233
233
  readonly default_permission?: boolean | null;
234
234
  /** Indicates whether the command is age-restricted, defaults to false */
235
235
  readonly nsfw?: boolean;
236
- /** In preview. Installation context(s) where the command is available, only for globally-scoped commands. Defaults to GUILD_INSTALL (0) */
236
+ /** Installation contexts where the command is available, only for globally-scoped commands. Defaults to your app's configured contexts */
237
237
  readonly integration_types?: Array<ApplicationIntegrationType>;
238
- /** In preview. Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands. */
238
+ /** Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands. */
239
239
  readonly contexts?: Array<InteractionContextType> | null;
240
240
  /** Autoincrementing version identifier updated during substantial record changes */
241
241
  readonly version: Snowflake;
@@ -414,6 +414,8 @@ export interface Attachment {
414
414
  readonly id: Snowflake;
415
415
  /** name of file attached */
416
416
  readonly filename: string;
417
+ /** the title of the file */
418
+ readonly title?: string;
417
419
  /** description for the file (max 1024 characters) */
418
420
  readonly description?: string;
419
421
  /** the attachment's media type */
@@ -757,9 +759,9 @@ export interface BulkOverwriteGuildApplicationCommandParams {
757
759
  readonly dm_permission?: boolean | null;
758
760
  /** Replaced by default_member_permissions and will be deprecated in the future. Indicates whether the command is enabled by default when the app is added to a guild. Defaults to true */
759
761
  readonly default_permission?: boolean;
760
- /** In preview. Installation context(s) where the command is available, defaults to GUILD_INSTALL ([0]) */
762
+ /** Installation context(s) where the command is available, defaults to GUILD_INSTALL ([0]) */
761
763
  readonly integration_types: Array<ApplicationIntegrationType>;
762
- /** In preview. Interaction context(s) where the command can be used, defaults to all contexts [0,1,2] */
764
+ /** Interaction context(s) where the command can be used, defaults to all contexts [0,1,2] */
763
765
  readonly contexts: Array<InteractionContextType>;
764
766
  /** Type of command, defaults 1 if not set */
765
767
  readonly type?: ApplicationCommandType;
@@ -799,7 +801,7 @@ export interface Channel {
799
801
  readonly type: ChannelType;
800
802
  /** the id of the guild (may be missing for some channel objects received over gateway guild dispatches) */
801
803
  readonly guild_id?: Snowflake;
802
- /** sorting position of the channel */
804
+ /** sorting position of the channel (channels with the same position are sorted by id) */
803
805
  readonly position?: number;
804
806
  /** explicit permission overwrites for members and roles */
805
807
  readonly permission_overwrites?: Array<Overwrite>;
@@ -1079,7 +1081,7 @@ export interface CreateGuildChannelParams {
1079
1081
  readonly user_limit: number;
1080
1082
  /** amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages or manage_channel, are unaffected */
1081
1083
  readonly rate_limit_per_user: number;
1082
- /** sorting position of the channel */
1084
+ /** sorting position of the channel (channels with the same position are sorted by id) */
1083
1085
  readonly position: number;
1084
1086
  /** the channel's permission overwrites */
1085
1087
  readonly permission_overwrites: Array<Overwrite>;
@@ -1312,9 +1314,9 @@ export interface EditGlobalApplicationCommandParams {
1312
1314
  readonly dm_permission?: boolean | null;
1313
1315
  /** Replaced by default_member_permissions and will be deprecated in the future. Indicates whether the command is enabled by default when the app is added to a guild. Defaults to true */
1314
1316
  readonly default_permission?: boolean;
1315
- /** In preview. Installation context(s) where the command is available */
1317
+ /** Installation context(s) where the command is available */
1316
1318
  readonly integration_types?: Array<ApplicationIntegrationType>;
1317
- /** In preview. Interaction context(s) where the command can be used */
1319
+ /** Interaction context(s) where the command can be used */
1318
1320
  readonly contexts?: Array<InteractionContextType>;
1319
1321
  /** Indicates whether the command is age-restricted */
1320
1322
  readonly nsfw?: boolean;
@@ -1519,7 +1521,6 @@ export interface Endpoints<O> {
1519
1521
  createChannelInvite: (channelId: string, params?: Partial<CreateChannelInviteParams>, options?: O) => RestResponse<Invite>;
1520
1522
  /** Create a new DM channel with a user. Returns a DM channel object (if one already exists, it will be returned instead). */
1521
1523
  createDm: (params?: Partial<CreateDmParams>, options?: O) => RestResponse<Channel>;
1522
- /** Create a followup message for an Interaction. Functions the same as Execute Webhook, but wait is always true. The thread_id, avatar_url, and username parameters are not supported when using this endpoint for interaction followups. */
1523
1524
  createFollowupMessage: (applicationId: string, interactionToken: string, params?: Partial<ExecuteWebhookParams>, options?: O) => RestResponse<any>;
1524
1525
  createGlobalApplicationCommand: (applicationId: string, params?: Partial<CreateGlobalApplicationCommandParams>, options?: O) => RestResponse<ApplicationCommand>;
1525
1526
  /** Create a new group DM channel with multiple users. Returns a DM channel object. This endpoint was intended to be used with the now-deprecated GameBridge SDK. Fires a Channel Create Gateway event. */
@@ -3493,7 +3494,7 @@ export interface ModifyChannelGuildChannelParams {
3493
3494
  readonly name: string;
3494
3495
  /** the type of channel; only conversion between text and announcement is supported and only in guilds with the "NEWS" feature */
3495
3496
  readonly type: ChannelType;
3496
- /** the position of the channel in the left-hand listing */
3497
+ /** the position of the channel in the left-hand listing (channels with the same position are sorted by id) */
3497
3498
  readonly position?: number | null;
3498
3499
  /** 0-1024 character channel topic (0-4096 characters for GUILD_FORUM and GUILD_MEDIA channels) */
3499
3500
  readonly topic?: string | null;
@@ -3574,7 +3575,7 @@ export interface ModifyCurrentUserVoiceStateParams {
3574
3575
  export interface ModifyGuildChannelPositionParams {
3575
3576
  /** channel id */
3576
3577
  readonly id: Snowflake;
3577
- /** sorting position of the channel */
3578
+ /** sorting position of the channel (channels with the same position are sorted by id) */
3578
3579
  readonly position?: number | null;
3579
3580
  /** syncs the permission overwrites with the new parent, if moving to a new category */
3580
3581
  readonly lock_permissions?: boolean | null;
@@ -3680,7 +3681,7 @@ export interface ModifyGuildRoleParams {
3680
3681
  export interface ModifyGuildRolePositionParams {
3681
3682
  /** role */
3682
3683
  readonly id: Snowflake;
3683
- /** sorting position of the role */
3684
+ /** sorting position of the role (roles with the same position are sorted by id) */
3684
3685
  readonly position?: number | null;
3685
3686
  }
3686
3687
  export interface ModifyGuildScheduledEventParams {
@@ -3976,10 +3977,10 @@ export interface PollCreateRequest {
3976
3977
  readonly question: PollMedia;
3977
3978
  /** Each of the answers available in the poll, up to 10 */
3978
3979
  readonly answers: Array<PollAnswer>;
3979
- /** Number of hours the poll should be open for, up to 7 days */
3980
- readonly duration: number;
3981
- /** Whether a user can select multiple answers */
3982
- readonly allow_multiselect: boolean;
3980
+ /** Number of hours the poll should be open for, up to 32 days. Defaults to 24 */
3981
+ readonly duration?: number;
3982
+ /** Whether a user can select multiple answers. Defaults to false */
3983
+ readonly allow_multiselect?: boolean;
3983
3984
  /** The layout type of the poll. Defaults to... DEFAULT! */
3984
3985
  readonly layout_type?: LayoutType;
3985
3986
  }
@@ -4234,7 +4235,7 @@ export interface Role {
4234
4235
  readonly icon?: string | null;
4235
4236
  /** role unicode emoji */
4236
4237
  readonly unicode_emoji?: string | null;
4237
- /** position of this role */
4238
+ /** position of this role (roles with the same position are sorted by id) */
4238
4239
  readonly position: number;
4239
4240
  /** permission bit set */
4240
4241
  readonly permissions: string;