dfx 0.100.1 → 0.101.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
@@ -205,8 +205,6 @@ export interface Application {
205
205
  readonly privacy_policy_url?: string;
206
206
  /** Partial user object for the owner of the app */
207
207
  readonly owner?: User;
208
- /** deprecated and will be removed in v11. An empty string. */
209
- readonly summary: string;
210
208
  /** Hex encoded key for verification in interactions and the GameSDK's GetTicket */
211
209
  readonly verify_key: string;
212
210
  /** If the app belongs to a team, this will be a list of the members of that team */
@@ -230,9 +228,9 @@ export interface Application {
230
228
  /** Array of redirect URIs for the app */
231
229
  readonly redirect_uris?: Array<string>;
232
230
  /** Interactions endpoint URL for the app */
233
- readonly interactions_endpoint_url?: string;
231
+ readonly interactions_endpoint_url?: string | null;
234
232
  /** Role connection verification URL for the app */
235
- readonly role_connections_verification_url?: string;
233
+ readonly role_connections_verification_url?: string | null;
236
234
  /** List of tags describing the content and functionality of the app. Max of 5 tags. */
237
235
  readonly tags?: Array<string>;
238
236
  /** Settings for the app's default in-app authorization link, if enabled */
@@ -1420,6 +1418,8 @@ export interface EditWebhookMessageParams {
1420
1418
  readonly payload_json: string;
1421
1419
  /** attached files to keep and possible descriptions for new files */
1422
1420
  readonly attachments: Array<Attachment>;
1421
+ /** A poll! */
1422
+ readonly poll: PollCreateRequest;
1423
1423
  }
1424
1424
  export interface Embed {
1425
1425
  /** title of embed */
@@ -1596,7 +1596,7 @@ export interface Endpoints<O> {
1596
1596
  createGuildSticker: (guildId: string, params?: Partial<CreateGuildStickerParams>, options?: O) => RestResponse<Sticker>;
1597
1597
  /** Creates a template for the guild. Requires the MANAGE_GUILD permission. Returns the created guild template object on success. */
1598
1598
  createGuildTemplate: (guildId: string, params?: Partial<CreateGuildTemplateParams>, options?: O) => RestResponse<GuildTemplate>;
1599
- /** Create a response to an Interaction. Body is an interaction response. Returns 204 unless with_response is set to true which returns 200 with the body as interaction response. */
1599
+ /** Create a response to an Interaction. Body is an interaction response. Returns 204 unless with_response is set to true which returns 200 with the body as interaction callback response. */
1600
1600
  createInteractionResponse: (interactionId: string, interactionToken: string, params?: Partial<InteractionResponse>, options?: O) => RestResponse<InteractionResponse>;
1601
1601
  createMessage: (channelId: string, params?: Partial<CreateMessageParams>, options?: O) => RestResponse<Message>;
1602
1602
  /** Create a reaction for the message. This endpoint requires the READ_MESSAGE_HISTORY permission to be present on the current user. Additionally, if nobody else has reacted to the message using this emoji, this endpoint requires the ADD_REACTIONS permission to be present on the current user. Returns a 204 empty response on success. Fires a Message Reaction Add Gateway event.
@@ -1804,6 +1804,8 @@ export interface Endpoints<O> {
1804
1804
  /** Get a list of users that reacted with this emoji. Returns an array of user objects on success.
1805
1805
  The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji. To use custom emoji, you must encode it in the format name:id with the emoji name and emoji id. */
1806
1806
  getReactions: (channelId: string, messageId: string, emoji: string, params?: Partial<GetReactionParams>, options?: O) => RestResponse<Array<User>>;
1807
+ /** Get a subscription by its ID. Returns a subscription object. */
1808
+ getSkuSubscription: (skuId: string, subscriptionId: string, options?: O) => RestResponse<Subscription>;
1807
1809
  /** Gets the stage instance associated with the Stage channel, if it exists. */
1808
1810
  getStageInstance: (channelId: string, options?: O) => RestResponse<any>;
1809
1811
  /** Returns a sticker object for the given sticker ID. */
@@ -1856,6 +1858,8 @@ export interface Endpoints<O> {
1856
1858
  listScheduledEventsForGuild: (guildId: string, params?: Partial<ListScheduledEventsForGuildParams>, options?: O) => RestResponse<Array<GuildScheduledEvent>>;
1857
1859
  /** Returns all SKUs for a given application. */
1858
1860
  listSkUs: (applicationId: string, options?: O) => RestResponse<any>;
1861
+ /** Returns all subscriptions containing the SKU, filtered by user. Returns a list of subscription objects. */
1862
+ listSkuSubscriptions: (skuId: string, options?: O) => RestResponse<Array<Subscription>>;
1859
1863
  /** Returns a list of available sticker packs. */
1860
1864
  listStickerPacks: (options?: O) => RestResponse<any>;
1861
1865
  listThreadMembers: (channelId: string, params?: Partial<ListThreadMemberParams>, options?: O) => RestResponse<Array<ThreadMember>>;
@@ -2011,7 +2015,7 @@ export interface ExecuteWebhookParams {
2011
2015
  readonly payload_json: string;
2012
2016
  /** attachment objects with filename and description */
2013
2017
  readonly attachments: Array<Attachment>;
2014
- /** message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set can be set) */
2018
+ /** message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
2015
2019
  readonly flags: number;
2016
2020
  /** name of thread to create (requires the webhook channel to be a forum or media channel) */
2017
2021
  readonly thread_name: string;
@@ -2522,6 +2526,16 @@ export declare const GuildMemberFlag: {
2522
2526
  readonly BYPASSES_VERIFICATION: number;
2523
2527
  /** Member has started onboarding */
2524
2528
  readonly STARTED_ONBOARDING: number;
2529
+ /** Member is a guest and can only access the voice channel they were invited to */
2530
+ readonly IS_GUEST: number;
2531
+ /** Member has started Server Guide new member actions */
2532
+ readonly STARTED_HOME_ACTIONS: number;
2533
+ /** Member has completed Server Guide new member actions */
2534
+ readonly COMPLETED_HOME_ACTIONS: number;
2535
+ /** Member's username, display name, or nickname is blocked by AutoMod */
2536
+ readonly AUTOMOD_QUARANTINED_USERNAME: number;
2537
+ /** Member has dismissed the DM settings upsell */
2538
+ readonly DM_SETTINGS_UPSELL_ACKNOWLEDGED: number;
2525
2539
  };
2526
2540
  export interface GuildMemberRemoveEvent {
2527
2541
  /** ID of the guild */
@@ -4282,7 +4296,7 @@ export interface ReadyEvent {
4282
4296
  /** Contains id and flags */
4283
4297
  readonly application: Application;
4284
4298
  }
4285
- export type ReceiveEvent = HelloEvent | ReadyEvent | ResumedEvent | ReconnectEvent | InvalidSessionEvent | ApplicationCommandPermissionsUpdateEvent | AutoModerationRuleCreateEvent | AutoModerationRuleUpdateEvent | AutoModerationRuleDeleteEvent | AutoModerationActionExecutionEvent | ChannelCreateEvent | ChannelUpdateEvent | ChannelDeleteEvent | ChannelPinsUpdateEvent | ThreadCreateEvent | ThreadUpdateEvent | ThreadDeleteEvent | ThreadListSyncEvent | ThreadMemberUpdateEvent | ThreadMembersUpdateEvent | EntitlementCreateEvent | EntitlementUpdateEvent | EntitlementDeleteEvent | GuildCreateEvent | GuildUpdateEvent | GuildDeleteEvent | GuildAuditLogEntryCreateEvent | GuildBanAddEvent | GuildBanRemoveEvent | GuildEmojisUpdateEvent | GuildStickersUpdateEvent | GuildIntegrationsUpdateEvent | GuildMemberAddEvent | GuildMemberRemoveEvent | GuildMemberUpdateEvent | GuildMembersChunkEvent | GuildRoleCreateEvent | GuildRoleUpdateEvent | GuildRoleDeleteEvent | GuildScheduledEventCreateEvent | GuildScheduledEventUpdateEvent | GuildScheduledEventDeleteEvent | GuildScheduledEventUserAddEvent | GuildScheduledEventUserRemoveEvent | IntegrationCreateEvent | IntegrationUpdateEvent | IntegrationDeleteEvent | InteractionCreateEvent | InviteCreateEvent | InviteDeleteEvent | MessageCreateEvent | MessageUpdateEvent | MessageDeleteEvent | MessageDeleteBulkEvent | MessageReactionAddEvent | MessageReactionRemoveEvent | MessageReactionRemoveAllEvent | MessageReactionRemoveEmojiEvent | PresenceUpdateEvent | StageInstanceCreateEvent | StageInstanceUpdateEvent | StageInstanceDeleteEvent | TypingStartEvent | UserUpdateEvent | VoiceChannelEffectSendEvent | VoiceStateUpdateEvent | VoiceServerUpdateEvent | WebhooksUpdateEvent | MessagePollVoteAddEvent | MessagePollVoteRemoveEvent;
4299
+ export type ReceiveEvent = HelloEvent | ReadyEvent | ResumedEvent | ReconnectEvent | InvalidSessionEvent | ApplicationCommandPermissionsUpdateEvent | AutoModerationRuleCreateEvent | AutoModerationRuleUpdateEvent | AutoModerationRuleDeleteEvent | AutoModerationActionExecutionEvent | ChannelCreateEvent | ChannelUpdateEvent | ChannelDeleteEvent | ChannelPinsUpdateEvent | ThreadCreateEvent | ThreadUpdateEvent | ThreadDeleteEvent | ThreadListSyncEvent | ThreadMemberUpdateEvent | ThreadMembersUpdateEvent | EntitlementCreateEvent | EntitlementUpdateEvent | EntitlementDeleteEvent | GuildCreateEvent | GuildUpdateEvent | GuildDeleteEvent | GuildAuditLogEntryCreateEvent | GuildBanAddEvent | GuildBanRemoveEvent | GuildEmojisUpdateEvent | GuildStickersUpdateEvent | GuildIntegrationsUpdateEvent | GuildMemberAddEvent | GuildMemberRemoveEvent | GuildMemberUpdateEvent | GuildMembersChunkEvent | GuildRoleCreateEvent | GuildRoleUpdateEvent | GuildRoleDeleteEvent | GuildScheduledEventCreateEvent | GuildScheduledEventUpdateEvent | GuildScheduledEventDeleteEvent | GuildScheduledEventUserAddEvent | GuildScheduledEventUserRemoveEvent | IntegrationCreateEvent | IntegrationUpdateEvent | IntegrationDeleteEvent | InteractionCreateEvent | InviteCreateEvent | InviteDeleteEvent | MessageCreateEvent | MessageUpdateEvent | MessageDeleteEvent | MessageDeleteBulkEvent | MessageReactionAddEvent | MessageReactionRemoveEvent | MessageReactionRemoveAllEvent | MessageReactionRemoveEmojiEvent | PresenceUpdateEvent | StageInstanceCreateEvent | StageInstanceUpdateEvent | StageInstanceDeleteEvent | SubscriptionCreateEvent | SubscriptionUpdateEvent | SubscriptionDeleteEvent | TypingStartEvent | UserUpdateEvent | VoiceChannelEffectSendEvent | VoiceStateUpdateEvent | VoiceServerUpdateEvent | WebhooksUpdateEvent | MessagePollVoteAddEvent | MessagePollVoteRemoveEvent;
4286
4300
  export interface ReceiveEvents {
4287
4301
  HELLO: HelloEvent;
4288
4302
  READY: ReadyEvent;
@@ -4346,6 +4360,9 @@ export interface ReceiveEvents {
4346
4360
  STAGE_INSTANCE_CREATE: StageInstanceCreateEvent;
4347
4361
  STAGE_INSTANCE_UPDATE: StageInstanceUpdateEvent;
4348
4362
  STAGE_INSTANCE_DELETE: StageInstanceDeleteEvent;
4363
+ SUBSCRIPTION_CREATE: SubscriptionCreateEvent;
4364
+ SUBSCRIPTION_UPDATE: SubscriptionUpdateEvent;
4365
+ SUBSCRIPTION_DELETE: SubscriptionDeleteEvent;
4349
4366
  TYPING_START: TypingStartEvent;
4350
4367
  USER_UPDATE: UserUpdateEvent;
4351
4368
  VOICE_CHANNEL_EFFECT_SEND: VoiceChannelEffectSendEvent;
@@ -4651,8 +4668,6 @@ export interface Sticker {
4651
4668
  readonly description?: string | null;
4652
4669
  /** autocomplete/suggestion tags for the sticker (max 200 characters) */
4653
4670
  readonly tags: string;
4654
- /** Deprecated previously the sticker asset hash, now an empty string */
4655
- readonly asset?: string;
4656
4671
  /** type of sticker */
4657
4672
  readonly type: StickerType;
4658
4673
  /** type of sticker format */
@@ -4702,6 +4717,37 @@ export declare enum StickerType {
4702
4717
  /** a sticker uploaded to a guild for the guild's members */
4703
4718
  GUILD = 2
4704
4719
  }
4720
+ export interface Subscription {
4721
+ /** ID of the subscription */
4722
+ readonly id: Snowflake;
4723
+ /** ID of the user who is subscribed */
4724
+ readonly user_id: Snowflake;
4725
+ /** List of SKUs subscribed to */
4726
+ readonly sku_ids: Array<Snowflake>;
4727
+ /** List of entitlements granted for this subscription */
4728
+ readonly entitlement_ids: Array<Snowflake>;
4729
+ /** Start of the current subscription period */
4730
+ readonly current_period_start: string;
4731
+ /** End of the current subscription period */
4732
+ readonly current_period_end: string;
4733
+ /** Current status of the subscription */
4734
+ readonly status: SubscriptionStatus;
4735
+ /** When the subscription was canceled */
4736
+ readonly canceled_at: string;
4737
+ /** ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope. */
4738
+ readonly country?: string;
4739
+ }
4740
+ export type SubscriptionCreateEvent = Subscription;
4741
+ export type SubscriptionDeleteEvent = Subscription;
4742
+ export declare enum SubscriptionStatus {
4743
+ /** Subscription is active and scheduled to renew. */
4744
+ ACTIVE = 0,
4745
+ /** Subscription is active but will not renew. */
4746
+ ENDING = 1,
4747
+ /** Subscription is inactive and not being charged. */
4748
+ INACTIVE = 2
4749
+ }
4750
+ export type SubscriptionUpdateEvent = Subscription;
4705
4751
  export declare const SystemChannelFlag: {
4706
4752
  /** Suppress member join notifications */
4707
4753
  readonly SUPPRESS_JOIN_NOTIFICATIONS: number;