dfx 1.0.13 → 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
@@ -312,6 +362,18 @@ export const ActionTypes = {
312
362
  * Properties about the user changed
313
363
  */
314
364
  USER_UPDATE: "USER_UPDATE",
365
+ /**
366
+ * Entitlement was created
367
+ */
368
+ ENTITLEMENT_CREATE: "ENTITLEMENT_CREATE",
369
+ /**
370
+ * Entitlement was updated
371
+ */
372
+ ENTITLEMENT_UPDATE: "ENTITLEMENT_UPDATE",
373
+ /**
374
+ * Entitlement was deleted
375
+ */
376
+ ENTITLEMENT_DELETE: "ENTITLEMENT_DELETE",
315
377
  /**
316
378
  * Contains the initial state information
317
379
  */
@@ -332,6 +394,30 @@ export const ActionTypes = {
332
394
  * Guild's voice server was updated
333
395
  */
334
396
  VOICE_SERVER_UPDATE: "VOICE_SERVER_UPDATE",
397
+ /**
398
+ * Sent when a message is created in a lobby
399
+ */
400
+ LOBBY_MESSAGE_CREATE: "LOBBY_MESSAGE_CREATE",
401
+ /**
402
+ * Sent when a message is updated in a lobby
403
+ */
404
+ LOBBY_MESSAGE_UPDATE: "LOBBY_MESSAGE_UPDATE",
405
+ /**
406
+ * Sent when a message is deleted from a lobby
407
+ */
408
+ LOBBY_MESSAGE_DELETE: "LOBBY_MESSAGE_DELETE",
409
+ /**
410
+ * Sent when a direct message is created during an active Social SDK session
411
+ */
412
+ GAME_DIRECT_MESSAGE_CREATE: "GAME_DIRECT_MESSAGE_CREATE",
413
+ /**
414
+ * Sent when a direct message is deleted during an active Social SDK session
415
+ */
416
+ GAME_DIRECT_MESSAGE_DELETE: "GAME_DIRECT_MESSAGE_DELETE",
417
+ /**
418
+ * Sent when a direct message is updated during an active Social SDK session
419
+ */
420
+ GAME_DIRECT_MESSAGE_UPDATE: "GAME_DIRECT_MESSAGE_UPDATE",
335
421
  /**
336
422
  * User used an interaction, such as an Application Command
337
423
  */
@@ -352,6 +438,14 @@ export const ActionTypes = {
352
438
  * Application command permission was updated
353
439
  */
354
440
  APPLICATION_COMMAND_PERMISSIONS_UPDATE: "APPLICATION_COMMAND_PERMISSIONS_UPDATE",
441
+ /**
442
+ * Sent when an app was authorized by a user to a server or their account
443
+ */
444
+ APPLICATION_AUTHORIZED: "APPLICATION_AUTHORIZED",
445
+ /**
446
+ * Sent when an app was deauthorized by a user
447
+ */
448
+ APPLICATION_DEAUTHORIZED: "APPLICATION_DEAUTHORIZED",
355
449
  /**
356
450
  * Stage instance was created
357
451
  */
@@ -408,6 +502,10 @@ export const ActionTypes = {
408
502
  GUILD_SOUNDBOARD_SOUND_CREATE: "GUILD_SOUNDBOARD_SOUND_CREATE",
409
503
  GUILD_SOUNDBOARD_SOUND_UPDATE: "GUILD_SOUNDBOARD_SOUND_UPDATE",
410
504
  GUILD_SOUNDBOARD_SOUND_DELETE: "GUILD_SOUNDBOARD_SOUND_DELETE",
505
+ /**
506
+ * User was added to a Quest (currently unavailable)
507
+ */
508
+ QUEST_USER_ENROLLMENT: "QUEST_USER_ENROLLMENT",
411
509
  RATE_LIMITED: "RATE_LIMITED",
412
510
  };
413
511
  export const ApplicationExplicitContentFilterTypes = {
@@ -596,6 +694,16 @@ export const ChannelTypes = {
596
694
  */
597
695
  GUILD_FORUM: 15,
598
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
+ };
599
707
  export const EntitlementTypes = {
600
708
  APPLICATION_SUBSCRIPTION: 8,
601
709
  QUEST_REWARD: 10,
@@ -610,6 +718,16 @@ export const EntitlementTenantFulfillmentStatusResponse = {
610
718
  UNFULFILLED: 6,
611
719
  UNFULFILLMENT_FAILED: 7,
612
720
  };
721
+ export const EntitlementOwnerTypes = {
722
+ /**
723
+ * A guild subscription
724
+ */
725
+ GUILD: 1,
726
+ /**
727
+ * A user subscription
728
+ */
729
+ USER: 2,
730
+ };
613
731
  export const ApplicationCommandPermissionType = {
614
732
  /**
615
733
  * This permission is for a role.
@@ -806,6 +924,10 @@ export const GuildFeatures = {
806
924
  * guild has disabled activity alerts in the configured safety alerts channel
807
925
  */
808
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",
809
931
  /**
810
932
  * guild is able to set role icons
811
933
  */
@@ -888,6 +1010,45 @@ export const GuildScheduledEventEntityTypes = {
888
1010
  VOICE: 2,
889
1011
  EXTERNAL: 3,
890
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
+ };
891
1052
  export const MessageType = {
892
1053
  DEFAULT: 0,
893
1054
  RECIPIENT_ADD: 1,
@@ -1431,6 +1592,18 @@ export const AuditLogActionTypes = {
1431
1592
  HOME_SETTINGS_UPDATE: 191,
1432
1593
  VOICE_CHANNEL_STATUS_CREATE: 192,
1433
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,
1434
1607
  GUILD_PROFILE_UPDATE: 211,
1435
1608
  };
1436
1609
  export const IntegrationTypes = {
@@ -1472,10 +1645,6 @@ export const AutomodTriggerType = {
1472
1645
  * Check if content contains words from a list of keywords or matches regex
1473
1646
  */
1474
1647
  KEYWORD: 1,
1475
- /**
1476
- * DEPRECATED
1477
- */
1478
- SPAM_LINK: 2,
1479
1648
  /**
1480
1649
  * Check if content represents generic spam
1481
1650
  */
@@ -1488,6 +1657,10 @@ export const AutomodTriggerType = {
1488
1657
  * Check if content contains more unique mentions than allowed
1489
1658
  */
1490
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,
1491
1664
  };
1492
1665
  export const AutomodKeywordPresetType = {
1493
1666
  /**
@@ -1598,6 +1771,42 @@ export const GuildOnboardingMode = {
1598
1771
  */
1599
1772
  ONBOARDING_ADVANCED: 1,
1600
1773
  };
1774
+ export const GuildJoinRequestApplicationStatus = {
1775
+ /**
1776
+ * Applicant started but not yet submitted join request
1777
+ */
1778
+ STARTED: "STARTED",
1779
+ /**
1780
+ * Applicant submitted join request that is awaiting review
1781
+ */
1782
+ SUBMITTED: "SUBMITTED",
1783
+ /**
1784
+ * Join request rejected
1785
+ */
1786
+ REJECTED: "REJECTED",
1787
+ /**
1788
+ * Join request approved
1789
+ */
1790
+ APPROVED: "APPROVED",
1791
+ };
1792
+ export const GuildMemberVerificationFormFieldType = {
1793
+ /**
1794
+ * Field requiring applicant to acknowledge list of terms
1795
+ */
1796
+ TERMS: "TERMS",
1797
+ /**
1798
+ * Short text input field
1799
+ */
1800
+ TEXT_INPUT: "TEXT_INPUT",
1801
+ /**
1802
+ * Long-form text input field
1803
+ */
1804
+ PARAGRAPH: "PARAGRAPH",
1805
+ /**
1806
+ * Field where applicant selects one of many options
1807
+ */
1808
+ MULTIPLE_CHOICE: "MULTIPLE_CHOICE",
1809
+ };
1601
1810
  export const WidgetImageStyles = {
1602
1811
  /**
1603
1812
  * shield style widget with Discord icon and guild members online count
@@ -1673,13 +1882,27 @@ export const ApplicationIdentityProviderAuthType = {
1673
1882
  APPLE_ID_TOKEN: "APPLE_ID_TOKEN",
1674
1883
  PLAYSTATION_NETWORK_ID_TOKEN: "PLAYSTATION_NETWORK_ID_TOKEN",
1675
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
+ };
1676
1899
  export const StageInstancesPrivacyLevels = {
1677
1900
  /**
1678
1901
  * The Stage instance is visible publicly. (deprecated)
1679
1902
  */
1680
1903
  PUBLIC: 1,
1681
1904
  /**
1682
- * The Stage instance is visible publicly. (deprecated)
1905
+ * The Stage instance is visible to only guild members.
1683
1906
  */
1684
1907
  GUILD_ONLY: 2,
1685
1908
  };
@@ -2045,7 +2268,7 @@ export const make = (httpClient, options = {}) => {
2045
2268
  sort_order: options?.["sort_order"],
2046
2269
  limit: options?.["limit"],
2047
2270
  offset: options?.["offset"],
2048
- }), onRequest(["2xx"], {
2271
+ }), onRequest(["200", "202"], {
2049
2272
  "429": "RatelimitedResponse",
2050
2273
  "4xx": "ErrorResponse",
2051
2274
  })),
@@ -2163,6 +2386,10 @@ export const make = (httpClient, options = {}) => {
2163
2386
  "429": "RatelimitedResponse",
2164
2387
  "4xx": "ErrorResponse",
2165
2388
  })),
2389
+ updateGuildIncidentActions: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/incident-actions`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2390
+ "429": "RatelimitedResponse",
2391
+ "4xx": "ErrorResponse",
2392
+ })),
2166
2393
  listGuildIntegrations: guildId => HttpClientRequest.get(`/guilds/${guildId}/integrations`).pipe(onRequest(["2xx"], {
2167
2394
  "429": "RatelimitedResponse",
2168
2395
  "4xx": "ErrorResponse",
@@ -2265,6 +2492,19 @@ export const make = (httpClient, options = {}) => {
2265
2492
  "429": "RatelimitedResponse",
2266
2493
  "4xx": "ErrorResponse",
2267
2494
  })),
2495
+ getGuildJoinRequests: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/requests`).pipe(HttpClientRequest.setUrlParams({
2496
+ status: options?.["status"],
2497
+ limit: options?.["limit"],
2498
+ before: options?.["before"],
2499
+ after: options?.["after"],
2500
+ }), onRequest(["2xx"], {
2501
+ "429": "RatelimitedResponse",
2502
+ "4xx": "ErrorResponse",
2503
+ })),
2504
+ actionGuildJoinRequest: (guildId, requestId, options) => HttpClientRequest.patch(`/guilds/${guildId}/requests/${requestId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2505
+ "429": "RatelimitedResponse",
2506
+ "4xx": "ErrorResponse",
2507
+ })),
2268
2508
  listGuildRoles: guildId => HttpClientRequest.get(`/guilds/${guildId}/roles`).pipe(onRequest(["2xx"], {
2269
2509
  "429": "RatelimitedResponse",
2270
2510
  "4xx": "ErrorResponse",
@@ -2311,6 +2551,15 @@ export const make = (httpClient, options = {}) => {
2311
2551
  "429": "RatelimitedResponse",
2312
2552
  "4xx": "ErrorResponse",
2313
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
+ })),
2314
2563
  listGuildScheduledEventUsers: (guildId, guildScheduledEventId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`).pipe(HttpClientRequest.setUrlParams({
2315
2564
  with_member: options?.["with_member"],
2316
2565
  limit: options?.["limit"],
@@ -2320,6 +2569,21 @@ export const make = (httpClient, options = {}) => {
2320
2569
  "429": "RatelimitedResponse",
2321
2570
  "4xx": "ErrorResponse",
2322
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
+ })),
2323
2587
  listGuildSoundboardSounds: guildId => HttpClientRequest.get(`/guilds/${guildId}/soundboard-sounds`).pipe(onRequest(["2xx"], {
2324
2588
  "429": "RatelimitedResponse",
2325
2589
  "4xx": "ErrorResponse",
@@ -2426,6 +2690,8 @@ export const make = (httpClient, options = {}) => {
2426
2690
  inviteResolve: (code, options) => HttpClientRequest.get(`/invites/${code}`).pipe(HttpClientRequest.setUrlParams({
2427
2691
  with_counts: options?.["with_counts"],
2428
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"],
2429
2695
  }), onRequest(["2xx"], {
2430
2696
  "429": "RatelimitedResponse",
2431
2697
  "4xx": "ErrorResponse",
@@ -2452,6 +2718,7 @@ export const make = (httpClient, options = {}) => {
2452
2718
  "429": "RatelimitedResponse",
2453
2719
  "4xx": "ErrorResponse",
2454
2720
  })),
2721
+ deleteLobby: lobbyId => HttpClientRequest.delete(`/lobbies/${lobbyId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2455
2722
  editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2456
2723
  "429": "RatelimitedResponse",
2457
2724
  "4xx": "ErrorResponse",
@@ -2514,6 +2781,21 @@ export const make = (httpClient, options = {}) => {
2514
2781
  "429": "RatelimitedResponse",
2515
2782
  "4xx": "ErrorResponse",
2516
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
+ })),
2517
2799
  getSoundboardDefaultSounds: () => HttpClientRequest.get(`/soundboard-default-sounds`).pipe(onRequest(["2xx"], {
2518
2800
  "429": "RatelimitedResponse",
2519
2801
  "4xx": "ErrorResponse",