dfx 1.0.14 → 1.0.15

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.
@@ -3,6 +3,56 @@ import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest";
3
3
  import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
4
4
  import * as Data from "effect/Data";
5
5
  import * as Effect from "effect/Effect";
6
+ export const NameplatePalette = {
7
+ /**
8
+ * Crimson color palette
9
+ */
10
+ CRIMSON: "crimson",
11
+ /**
12
+ * Berry color palette
13
+ */
14
+ BERRY: "berry",
15
+ /**
16
+ * Sky color palette
17
+ */
18
+ SKY: "sky",
19
+ /**
20
+ * Teal color palette
21
+ */
22
+ TEAL: "teal",
23
+ /**
24
+ * Forest color palette
25
+ */
26
+ FOREST: "forest",
27
+ /**
28
+ * Bubble gum color palette
29
+ */
30
+ BUBBLE_GUM: "bubble_gum",
31
+ /**
32
+ * Violet color palette
33
+ */
34
+ VIOLET: "violet",
35
+ /**
36
+ * Cobalt color palette
37
+ */
38
+ COBALT: "cobalt",
39
+ /**
40
+ * Clover color palette
41
+ */
42
+ CLOVER: "clover",
43
+ /**
44
+ * Lemon color palette
45
+ */
46
+ LEMON: "lemon",
47
+ /**
48
+ * White color palette
49
+ */
50
+ WHITE: "white",
51
+ /**
52
+ * Black color palette
53
+ */
54
+ BLACK: "black",
55
+ };
6
56
  export const OAuth2Scopes = {
7
57
  /**
8
58
  * allows /users/@me without email
@@ -644,6 +694,16 @@ export const ChannelTypes = {
644
694
  */
645
695
  GUILD_FORUM: 15,
646
696
  };
697
+ export const ApplicationCommandHandler = {
698
+ /**
699
+ * The app handles the interaction using an interaction token
700
+ */
701
+ APP_HANDLER: 1,
702
+ /**
703
+ * Discord handles the interaction by launching an Activity and sending a follow-up message without coordinating with the app
704
+ */
705
+ DISCORD_LAUNCH_ACTIVITY: 2,
706
+ };
647
707
  export const EntitlementTypes = {
648
708
  APPLICATION_SUBSCRIPTION: 8,
649
709
  QUEST_REWARD: 10,
@@ -658,6 +718,16 @@ export const EntitlementTenantFulfillmentStatusResponse = {
658
718
  UNFULFILLED: 6,
659
719
  UNFULFILLMENT_FAILED: 7,
660
720
  };
721
+ export const EntitlementOwnerTypes = {
722
+ /**
723
+ * A guild subscription
724
+ */
725
+ GUILD: 1,
726
+ /**
727
+ * A user subscription
728
+ */
729
+ USER: 2,
730
+ };
661
731
  export const ApplicationCommandPermissionType = {
662
732
  /**
663
733
  * This permission is for a role.
@@ -854,6 +924,10 @@ export const GuildFeatures = {
854
924
  * guild has disabled activity alerts in the configured safety alerts channel
855
925
  */
856
926
  RAID_ALERTS_DISABLED: "RAID_ALERTS_DISABLED",
927
+ /**
928
+ * guild has restricted member prune to administrators and the guild owner
929
+ */
930
+ PRUNE_REQUIRES_ADMIN: "PRUNE_REQUIRES_ADMIN",
857
931
  /**
858
932
  * guild is able to set role icons
859
933
  */
@@ -936,6 +1010,45 @@ export const GuildScheduledEventEntityTypes = {
936
1010
  VOICE: 2,
937
1011
  EXTERNAL: 3,
938
1012
  };
1013
+ export const RecurrenceRuleFrequencies = {
1014
+ DAILY: 3,
1015
+ WEEKLY: 2,
1016
+ MONTHLY: 1,
1017
+ YEARLY: 0,
1018
+ };
1019
+ export const RecurrenceRuleWeekdays = {
1020
+ MONDAY: 0,
1021
+ TUESDAY: 1,
1022
+ WEDNESDAY: 2,
1023
+ THURSDAY: 3,
1024
+ FRIDAY: 4,
1025
+ SATURDAY: 5,
1026
+ SUNDAY: 6,
1027
+ };
1028
+ export const RecurrenceRuleMonths = {
1029
+ JANUARY: 1,
1030
+ FEBRUARY: 2,
1031
+ MARCH: 3,
1032
+ APRIL: 4,
1033
+ MAY: 5,
1034
+ JUNE: 6,
1035
+ JULY: 7,
1036
+ AUGUST: 8,
1037
+ SEPTEMBER: 9,
1038
+ OCTOBER: 10,
1039
+ NOVEMBER: 11,
1040
+ DECEMBER: 12,
1041
+ };
1042
+ export const GuildScheduledEventUserResponses = {
1043
+ /**
1044
+ * User is not interested in the event
1045
+ */
1046
+ UNINTERESTED: 0,
1047
+ /**
1048
+ * User is interested in the event
1049
+ */
1050
+ INTERESTED: 1,
1051
+ };
939
1052
  export const MessageType = {
940
1053
  DEFAULT: 0,
941
1054
  RECIPIENT_ADD: 1,
@@ -1479,6 +1592,18 @@ export const AuditLogActionTypes = {
1479
1592
  HOME_SETTINGS_UPDATE: 191,
1480
1593
  VOICE_CHANNEL_STATUS_CREATE: 192,
1481
1594
  VOICE_CHANNEL_STATUS_DELETE: 193,
1595
+ /**
1596
+ * Scheduled event exception was created
1597
+ */
1598
+ GUILD_SCHEDULED_EVENT_EXCEPTION_CREATE: 200,
1599
+ /**
1600
+ * Scheduled event exception was updated
1601
+ */
1602
+ GUILD_SCHEDULED_EVENT_EXCEPTION_UPDATE: 201,
1603
+ /**
1604
+ * Scheduled event exception was deleted
1605
+ */
1606
+ GUILD_SCHEDULED_EVENT_EXCEPTION_DELETE: 202,
1482
1607
  GUILD_PROFILE_UPDATE: 211,
1483
1608
  };
1484
1609
  export const IntegrationTypes = {
@@ -1520,10 +1645,6 @@ export const AutomodTriggerType = {
1520
1645
  * Check if content contains words from a list of keywords or matches regex
1521
1646
  */
1522
1647
  KEYWORD: 1,
1523
- /**
1524
- * DEPRECATED
1525
- */
1526
- SPAM_LINK: 2,
1527
1648
  /**
1528
1649
  * Check if content represents generic spam
1529
1650
  */
@@ -1536,6 +1657,10 @@ export const AutomodTriggerType = {
1536
1657
  * Check if content contains more unique mentions than allowed
1537
1658
  */
1538
1659
  MENTION_SPAM: 5,
1660
+ /**
1661
+ * Check if user profile fields contains words from a list of keywords or matches regex
1662
+ */
1663
+ USER_PROFILE: 6,
1539
1664
  };
1540
1665
  export const AutomodKeywordPresetType = {
1541
1666
  /**
@@ -1757,13 +1882,27 @@ export const ApplicationIdentityProviderAuthType = {
1757
1882
  APPLE_ID_TOKEN: "APPLE_ID_TOKEN",
1758
1883
  PLAYSTATION_NETWORK_ID_TOKEN: "PLAYSTATION_NETWORK_ID_TOKEN",
1759
1884
  };
1885
+ export const SubscriptionResponseStatusType = {
1886
+ /**
1887
+ * Subscription is active and scheduled to renew
1888
+ */
1889
+ ACTIVE: 0,
1890
+ /**
1891
+ * Subscription is inactive and not being charged
1892
+ */
1893
+ INACTIVE: 1,
1894
+ /**
1895
+ * Subscription is active but will not renew
1896
+ */
1897
+ ENDING: 2,
1898
+ };
1760
1899
  export const StageInstancesPrivacyLevels = {
1761
1900
  /**
1762
1901
  * The Stage instance is visible publicly. (deprecated)
1763
1902
  */
1764
1903
  PUBLIC: 1,
1765
1904
  /**
1766
- * The Stage instance is visible publicly. (deprecated)
1905
+ * The Stage instance is visible to only guild members.
1767
1906
  */
1768
1907
  GUILD_ONLY: 2,
1769
1908
  };
@@ -2247,6 +2386,10 @@ export const make = (httpClient, options = {}) => {
2247
2386
  "429": "RatelimitedResponse",
2248
2387
  "4xx": "ErrorResponse",
2249
2388
  })),
2389
+ updateGuildIncidentActions: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/incident-actions`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2390
+ "429": "RatelimitedResponse",
2391
+ "4xx": "ErrorResponse",
2392
+ })),
2250
2393
  listGuildIntegrations: guildId => HttpClientRequest.get(`/guilds/${guildId}/integrations`).pipe(onRequest(["2xx"], {
2251
2394
  "429": "RatelimitedResponse",
2252
2395
  "4xx": "ErrorResponse",
@@ -2408,6 +2551,15 @@ export const make = (httpClient, options = {}) => {
2408
2551
  "429": "RatelimitedResponse",
2409
2552
  "4xx": "ErrorResponse",
2410
2553
  })),
2554
+ createGuildScheduledEventException: (guildId, guildScheduledEventId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/exceptions`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2555
+ "429": "RatelimitedResponse",
2556
+ "4xx": "ErrorResponse",
2557
+ })),
2558
+ deleteGuildScheduledEventException: (guildId, guildScheduledEventId, exceptionId) => HttpClientRequest.delete(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/exceptions/${exceptionId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2559
+ updateGuildScheduledEventException: (guildId, guildScheduledEventId, exceptionId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/exceptions/${exceptionId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2560
+ "429": "RatelimitedResponse",
2561
+ "4xx": "ErrorResponse",
2562
+ })),
2411
2563
  listGuildScheduledEventUsers: (guildId, guildScheduledEventId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`).pipe(HttpClientRequest.setUrlParams({
2412
2564
  with_member: options?.["with_member"],
2413
2565
  limit: options?.["limit"],
@@ -2417,6 +2569,21 @@ export const make = (httpClient, options = {}) => {
2417
2569
  "429": "RatelimitedResponse",
2418
2570
  "4xx": "ErrorResponse",
2419
2571
  })),
2572
+ countGuildScheduledEventUsers: (guildId, guildScheduledEventId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users/counts`).pipe(HttpClientRequest.setUrlParams({
2573
+ guild_scheduled_event_exception_ids: options?.["guild_scheduled_event_exception_ids"],
2574
+ }), onRequest(["2xx"], {
2575
+ "429": "RatelimitedResponse",
2576
+ "4xx": "ErrorResponse",
2577
+ })),
2578
+ listGuildScheduledEventExceptionUsers: (guildId, guildScheduledEventId, guildScheduledEventExceptionId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/${guildScheduledEventExceptionId}/users`).pipe(HttpClientRequest.setUrlParams({
2579
+ with_member: options?.["with_member"],
2580
+ limit: options?.["limit"],
2581
+ before: options?.["before"],
2582
+ after: options?.["after"],
2583
+ }), onRequest(["2xx"], {
2584
+ "429": "RatelimitedResponse",
2585
+ "4xx": "ErrorResponse",
2586
+ })),
2420
2587
  listGuildSoundboardSounds: guildId => HttpClientRequest.get(`/guilds/${guildId}/soundboard-sounds`).pipe(onRequest(["2xx"], {
2421
2588
  "429": "RatelimitedResponse",
2422
2589
  "4xx": "ErrorResponse",
@@ -2523,6 +2690,8 @@ export const make = (httpClient, options = {}) => {
2523
2690
  inviteResolve: (code, options) => HttpClientRequest.get(`/invites/${code}`).pipe(HttpClientRequest.setUrlParams({
2524
2691
  with_counts: options?.["with_counts"],
2525
2692
  guild_scheduled_event_id: options?.["guild_scheduled_event_id"],
2693
+ target_channel_id: options?.["target_channel_id"],
2694
+ target_message_id: options?.["target_message_id"],
2526
2695
  }), onRequest(["2xx"], {
2527
2696
  "429": "RatelimitedResponse",
2528
2697
  "4xx": "ErrorResponse",
@@ -2549,6 +2718,7 @@ export const make = (httpClient, options = {}) => {
2549
2718
  "429": "RatelimitedResponse",
2550
2719
  "4xx": "ErrorResponse",
2551
2720
  })),
2721
+ deleteLobby: lobbyId => HttpClientRequest.delete(`/lobbies/${lobbyId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2552
2722
  editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2553
2723
  "429": "RatelimitedResponse",
2554
2724
  "4xx": "ErrorResponse",
@@ -2611,6 +2781,21 @@ export const make = (httpClient, options = {}) => {
2611
2781
  "429": "RatelimitedResponse",
2612
2782
  "4xx": "ErrorResponse",
2613
2783
  })),
2784
+ getSkuSubscriptions: (skuId, options) => HttpClientRequest.get(`/skus/${skuId}/subscriptions`).pipe(HttpClientRequest.setUrlParams({
2785
+ before: options?.["before"],
2786
+ after: options?.["after"],
2787
+ limit: options?.["limit"],
2788
+ user_id: options?.["user_id"],
2789
+ }), onRequest(["2xx"], {
2790
+ "429": "RatelimitedResponse",
2791
+ "4xx": "ErrorResponse",
2792
+ })),
2793
+ getSkuSubscription: (skuId, subscriptionId, options) => HttpClientRequest.get(`/skus/${skuId}/subscriptions/${subscriptionId}`).pipe(HttpClientRequest.setUrlParams({
2794
+ user_id: options?.["user_id"],
2795
+ }), onRequest(["2xx"], {
2796
+ "429": "RatelimitedResponse",
2797
+ "4xx": "ErrorResponse",
2798
+ })),
2614
2799
  getSoundboardDefaultSounds: () => HttpClientRequest.get(`/soundboard-default-sounds`).pipe(onRequest(["2xx"], {
2615
2800
  "429": "RatelimitedResponse",
2616
2801
  "4xx": "ErrorResponse",