dfx 1.0.13 → 1.0.14
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/dist/DiscordConfig.d.ts.map +1 -1
- package/dist/DiscordConfig.js +1 -1
- package/dist/DiscordConfig.js.map +1 -1
- package/dist/DiscordREST/Generated.d.ts +249 -19
- package/dist/DiscordREST/Generated.d.ts.map +1 -1
- package/dist/DiscordREST/Generated.js +98 -1
- package/dist/DiscordREST/Generated.js.map +1 -1
- package/dist/Interactions/webhook.d.ts.map +1 -1
- package/dist/Interactions/webhook.js +1 -1
- package/dist/Interactions/webhook.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/src/DiscordConfig.ts +1 -1
- package/src/DiscordREST/Generated.ts +342 -27
- package/src/Interactions/webhook.ts +1 -1
- package/src/version.ts +1 -1
|
@@ -377,6 +377,18 @@ export const ActionTypes = {
|
|
|
377
377
|
* Properties about the user changed
|
|
378
378
|
*/
|
|
379
379
|
USER_UPDATE: "USER_UPDATE",
|
|
380
|
+
/**
|
|
381
|
+
* Entitlement was created
|
|
382
|
+
*/
|
|
383
|
+
ENTITLEMENT_CREATE: "ENTITLEMENT_CREATE",
|
|
384
|
+
/**
|
|
385
|
+
* Entitlement was updated
|
|
386
|
+
*/
|
|
387
|
+
ENTITLEMENT_UPDATE: "ENTITLEMENT_UPDATE",
|
|
388
|
+
/**
|
|
389
|
+
* Entitlement was deleted
|
|
390
|
+
*/
|
|
391
|
+
ENTITLEMENT_DELETE: "ENTITLEMENT_DELETE",
|
|
380
392
|
/**
|
|
381
393
|
* Contains the initial state information
|
|
382
394
|
*/
|
|
@@ -397,6 +409,30 @@ export const ActionTypes = {
|
|
|
397
409
|
* Guild's voice server was updated
|
|
398
410
|
*/
|
|
399
411
|
VOICE_SERVER_UPDATE: "VOICE_SERVER_UPDATE",
|
|
412
|
+
/**
|
|
413
|
+
* Sent when a message is created in a lobby
|
|
414
|
+
*/
|
|
415
|
+
LOBBY_MESSAGE_CREATE: "LOBBY_MESSAGE_CREATE",
|
|
416
|
+
/**
|
|
417
|
+
* Sent when a message is updated in a lobby
|
|
418
|
+
*/
|
|
419
|
+
LOBBY_MESSAGE_UPDATE: "LOBBY_MESSAGE_UPDATE",
|
|
420
|
+
/**
|
|
421
|
+
* Sent when a message is deleted from a lobby
|
|
422
|
+
*/
|
|
423
|
+
LOBBY_MESSAGE_DELETE: "LOBBY_MESSAGE_DELETE",
|
|
424
|
+
/**
|
|
425
|
+
* Sent when a direct message is created during an active Social SDK session
|
|
426
|
+
*/
|
|
427
|
+
GAME_DIRECT_MESSAGE_CREATE: "GAME_DIRECT_MESSAGE_CREATE",
|
|
428
|
+
/**
|
|
429
|
+
* Sent when a direct message is deleted during an active Social SDK session
|
|
430
|
+
*/
|
|
431
|
+
GAME_DIRECT_MESSAGE_DELETE: "GAME_DIRECT_MESSAGE_DELETE",
|
|
432
|
+
/**
|
|
433
|
+
* Sent when a direct message is updated during an active Social SDK session
|
|
434
|
+
*/
|
|
435
|
+
GAME_DIRECT_MESSAGE_UPDATE: "GAME_DIRECT_MESSAGE_UPDATE",
|
|
400
436
|
/**
|
|
401
437
|
* User used an interaction, such as an Application Command
|
|
402
438
|
*/
|
|
@@ -418,6 +454,14 @@ export const ActionTypes = {
|
|
|
418
454
|
*/
|
|
419
455
|
APPLICATION_COMMAND_PERMISSIONS_UPDATE:
|
|
420
456
|
"APPLICATION_COMMAND_PERMISSIONS_UPDATE",
|
|
457
|
+
/**
|
|
458
|
+
* Sent when an app was authorized by a user to a server or their account
|
|
459
|
+
*/
|
|
460
|
+
APPLICATION_AUTHORIZED: "APPLICATION_AUTHORIZED",
|
|
461
|
+
/**
|
|
462
|
+
* Sent when an app was deauthorized by a user
|
|
463
|
+
*/
|
|
464
|
+
APPLICATION_DEAUTHORIZED: "APPLICATION_DEAUTHORIZED",
|
|
421
465
|
/**
|
|
422
466
|
* Stage instance was created
|
|
423
467
|
*/
|
|
@@ -474,6 +518,10 @@ export const ActionTypes = {
|
|
|
474
518
|
GUILD_SOUNDBOARD_SOUND_CREATE: "GUILD_SOUNDBOARD_SOUND_CREATE",
|
|
475
519
|
GUILD_SOUNDBOARD_SOUND_UPDATE: "GUILD_SOUNDBOARD_SOUND_UPDATE",
|
|
476
520
|
GUILD_SOUNDBOARD_SOUND_DELETE: "GUILD_SOUNDBOARD_SOUND_DELETE",
|
|
521
|
+
/**
|
|
522
|
+
* User was added to a Quest (currently unavailable)
|
|
523
|
+
*/
|
|
524
|
+
QUEST_USER_ENROLLMENT: "QUEST_USER_ENROLLMENT",
|
|
477
525
|
RATE_LIMITED: "RATE_LIMITED",
|
|
478
526
|
} as const
|
|
479
527
|
export type ActionTypes = (typeof ActionTypes)[keyof typeof ActionTypes]
|
|
@@ -558,6 +606,7 @@ export interface PrivateApplicationResponse {
|
|
|
558
606
|
readonly integration_types_config?: Record<string, unknown> | undefined
|
|
559
607
|
readonly verify_key: string
|
|
560
608
|
readonly flags: number
|
|
609
|
+
readonly flags_new: string
|
|
561
610
|
readonly max_participants?: number | null | undefined
|
|
562
611
|
readonly tags?: ReadonlyArray<string> | undefined
|
|
563
612
|
readonly redirect_uris: ReadonlyArray<string>
|
|
@@ -569,7 +618,22 @@ export interface PrivateApplicationResponse {
|
|
|
569
618
|
readonly approximate_user_authorization_count: number
|
|
570
619
|
readonly event_webhooks_url?: string | null | undefined
|
|
571
620
|
readonly event_webhooks_status?: ApplicationEventWebhooksStatus | undefined
|
|
572
|
-
readonly event_webhooks_types?:
|
|
621
|
+
readonly event_webhooks_types?:
|
|
622
|
+
| ReadonlyArray<
|
|
623
|
+
| "APPLICATION_AUTHORIZED"
|
|
624
|
+
| "APPLICATION_DEAUTHORIZED"
|
|
625
|
+
| "ENTITLEMENT_CREATE"
|
|
626
|
+
| "ENTITLEMENT_DELETE"
|
|
627
|
+
| "ENTITLEMENT_UPDATE"
|
|
628
|
+
| "GAME_DIRECT_MESSAGE_CREATE"
|
|
629
|
+
| "GAME_DIRECT_MESSAGE_DELETE"
|
|
630
|
+
| "GAME_DIRECT_MESSAGE_UPDATE"
|
|
631
|
+
| "LOBBY_MESSAGE_CREATE"
|
|
632
|
+
| "LOBBY_MESSAGE_DELETE"
|
|
633
|
+
| "LOBBY_MESSAGE_UPDATE"
|
|
634
|
+
| "QUEST_USER_ENROLLMENT"
|
|
635
|
+
>
|
|
636
|
+
| undefined
|
|
573
637
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes
|
|
574
638
|
readonly team: TeamResponse | null
|
|
575
639
|
}
|
|
@@ -668,7 +732,23 @@ export interface ApplicationFormPartial {
|
|
|
668
732
|
readonly integration_types_config?: Record<string, unknown> | null | undefined
|
|
669
733
|
readonly event_webhooks_status?: 1 | 2 | null | undefined
|
|
670
734
|
readonly event_webhooks_url?: string | null | undefined
|
|
671
|
-
readonly event_webhooks_types?:
|
|
735
|
+
readonly event_webhooks_types?:
|
|
736
|
+
| ReadonlyArray<
|
|
737
|
+
| "APPLICATION_AUTHORIZED"
|
|
738
|
+
| "APPLICATION_DEAUTHORIZED"
|
|
739
|
+
| "ENTITLEMENT_CREATE"
|
|
740
|
+
| "ENTITLEMENT_DELETE"
|
|
741
|
+
| "ENTITLEMENT_UPDATE"
|
|
742
|
+
| "GAME_DIRECT_MESSAGE_CREATE"
|
|
743
|
+
| "GAME_DIRECT_MESSAGE_DELETE"
|
|
744
|
+
| "GAME_DIRECT_MESSAGE_UPDATE"
|
|
745
|
+
| "LOBBY_MESSAGE_CREATE"
|
|
746
|
+
| "LOBBY_MESSAGE_DELETE"
|
|
747
|
+
| "LOBBY_MESSAGE_UPDATE"
|
|
748
|
+
| "QUEST_USER_ENROLLMENT"
|
|
749
|
+
>
|
|
750
|
+
| null
|
|
751
|
+
| undefined
|
|
672
752
|
}
|
|
673
753
|
|
|
674
754
|
export const EmbeddedActivityLocationKind = {
|
|
@@ -734,20 +814,11 @@ export interface ApplicationResponse {
|
|
|
734
814
|
readonly integration_types_config?: Record<string, unknown> | undefined
|
|
735
815
|
readonly verify_key: string
|
|
736
816
|
readonly flags: number
|
|
817
|
+
readonly flags_new: string
|
|
737
818
|
readonly max_participants?: number | null | undefined
|
|
738
819
|
readonly tags?: ReadonlyArray<string> | undefined
|
|
739
820
|
}
|
|
740
821
|
|
|
741
|
-
export interface ClipSpeakingEventResponse {
|
|
742
|
-
readonly user_id: SnowflakeType
|
|
743
|
-
readonly speaking_flags: number
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
export interface ClipEventTimelineEntryResponse {
|
|
747
|
-
readonly timestamp_ms: number
|
|
748
|
-
readonly speaking?: ClipSpeakingEventResponse | undefined
|
|
749
|
-
}
|
|
750
|
-
|
|
751
822
|
export interface AttachmentResponse {
|
|
752
823
|
readonly id: SnowflakeType
|
|
753
824
|
readonly filename: string
|
|
@@ -768,9 +839,6 @@ export interface AttachmentResponse {
|
|
|
768
839
|
readonly application?: ApplicationResponse | undefined
|
|
769
840
|
readonly clip_created_at?: string | undefined
|
|
770
841
|
readonly clip_participants?: ReadonlyArray<UserResponse> | undefined
|
|
771
|
-
readonly clip_events_timeline?:
|
|
772
|
-
| ReadonlyArray<ClipEventTimelineEntryResponse>
|
|
773
|
-
| undefined
|
|
774
842
|
}
|
|
775
843
|
|
|
776
844
|
export interface ActivitiesAttachmentResponse {
|
|
@@ -2279,6 +2347,7 @@ export interface InviteApplicationResponse {
|
|
|
2279
2347
|
readonly integration_types_config?: Record<string, unknown> | undefined
|
|
2280
2348
|
readonly verify_key: string
|
|
2281
2349
|
readonly flags: number
|
|
2350
|
+
readonly flags_new: string
|
|
2282
2351
|
readonly max_participants?: number | null | undefined
|
|
2283
2352
|
readonly tags?: ReadonlyArray<string> | undefined
|
|
2284
2353
|
}
|
|
@@ -2466,9 +2535,6 @@ export interface MessageAttachmentResponse {
|
|
|
2466
2535
|
readonly application?: ApplicationResponse | undefined
|
|
2467
2536
|
readonly clip_created_at?: string | undefined
|
|
2468
2537
|
readonly clip_participants?: ReadonlyArray<UserResponse> | undefined
|
|
2469
|
-
readonly clip_events_timeline?:
|
|
2470
|
-
| ReadonlyArray<ClipEventTimelineEntryResponse>
|
|
2471
|
-
| undefined
|
|
2472
2538
|
}
|
|
2473
2539
|
|
|
2474
2540
|
export interface MessageEmbedFieldResponse {
|
|
@@ -3923,6 +3989,13 @@ export interface ThreadSearchResponse {
|
|
|
3923
3989
|
readonly total_results: number
|
|
3924
3990
|
}
|
|
3925
3991
|
|
|
3992
|
+
export interface SearchIndexNotReadyResponse {
|
|
3993
|
+
readonly message: string
|
|
3994
|
+
readonly code: number
|
|
3995
|
+
readonly documents_indexed: number
|
|
3996
|
+
readonly retry_after: number
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3926
3999
|
export interface TypingIndicatorResponse {}
|
|
3927
4000
|
|
|
3928
4001
|
export interface ListMyPrivateArchivedThreadsParams {
|
|
@@ -5593,13 +5666,6 @@ export interface GuildSearchResponse {
|
|
|
5593
5666
|
readonly documents_indexed?: number | null | undefined
|
|
5594
5667
|
}
|
|
5595
5668
|
|
|
5596
|
-
export interface SearchIndexNotReadyResponse {
|
|
5597
|
-
readonly message: string
|
|
5598
|
-
readonly code: number
|
|
5599
|
-
readonly documents_indexed: number
|
|
5600
|
-
readonly retry_after: number
|
|
5601
|
-
}
|
|
5602
|
-
|
|
5603
5669
|
export interface WelcomeMessageResponse {
|
|
5604
5670
|
readonly author_ids: ReadonlyArray<SnowflakeType>
|
|
5605
5671
|
readonly message: string
|
|
@@ -5782,6 +5848,208 @@ export interface VoiceRegionResponse {
|
|
|
5782
5848
|
|
|
5783
5849
|
export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>
|
|
5784
5850
|
|
|
5851
|
+
export const GuildJoinRequestApplicationStatus = {
|
|
5852
|
+
/**
|
|
5853
|
+
* Applicant started but not yet submitted join request
|
|
5854
|
+
*/
|
|
5855
|
+
STARTED: "STARTED",
|
|
5856
|
+
/**
|
|
5857
|
+
* Applicant submitted join request that is awaiting review
|
|
5858
|
+
*/
|
|
5859
|
+
SUBMITTED: "SUBMITTED",
|
|
5860
|
+
/**
|
|
5861
|
+
* Join request rejected
|
|
5862
|
+
*/
|
|
5863
|
+
REJECTED: "REJECTED",
|
|
5864
|
+
/**
|
|
5865
|
+
* Join request approved
|
|
5866
|
+
*/
|
|
5867
|
+
APPROVED: "APPROVED",
|
|
5868
|
+
} as const
|
|
5869
|
+
export type GuildJoinRequestApplicationStatus =
|
|
5870
|
+
(typeof GuildJoinRequestApplicationStatus)[keyof typeof GuildJoinRequestApplicationStatus]
|
|
5871
|
+
|
|
5872
|
+
export interface GetGuildJoinRequestsParams {
|
|
5873
|
+
readonly status?: undefined
|
|
5874
|
+
readonly limit?: number | undefined
|
|
5875
|
+
readonly before?: SnowflakeType | undefined
|
|
5876
|
+
readonly after?: SnowflakeType | undefined
|
|
5877
|
+
}
|
|
5878
|
+
|
|
5879
|
+
export const GuildMemberVerificationFormFieldType = {
|
|
5880
|
+
/**
|
|
5881
|
+
* Field requiring applicant to acknowledge list of terms
|
|
5882
|
+
*/
|
|
5883
|
+
TERMS: "TERMS",
|
|
5884
|
+
/**
|
|
5885
|
+
* Short text input field
|
|
5886
|
+
*/
|
|
5887
|
+
TEXT_INPUT: "TEXT_INPUT",
|
|
5888
|
+
/**
|
|
5889
|
+
* Long-form text input field
|
|
5890
|
+
*/
|
|
5891
|
+
PARAGRAPH: "PARAGRAPH",
|
|
5892
|
+
/**
|
|
5893
|
+
* Field where applicant selects one of many options
|
|
5894
|
+
*/
|
|
5895
|
+
MULTIPLE_CHOICE: "MULTIPLE_CHOICE",
|
|
5896
|
+
} as const
|
|
5897
|
+
export type GuildMemberVerificationFormFieldType =
|
|
5898
|
+
(typeof GuildMemberVerificationFormFieldType)[keyof typeof GuildMemberVerificationFormFieldType]
|
|
5899
|
+
|
|
5900
|
+
export interface MultipleChoiceFormFieldResponse {
|
|
5901
|
+
/**
|
|
5902
|
+
* Type of form field
|
|
5903
|
+
*/
|
|
5904
|
+
readonly field_type: "MULTIPLE_CHOICE"
|
|
5905
|
+
/**
|
|
5906
|
+
* Label shown above field
|
|
5907
|
+
*/
|
|
5908
|
+
readonly label?: string | undefined
|
|
5909
|
+
/**
|
|
5910
|
+
* Optional helper text shown below label
|
|
5911
|
+
*/
|
|
5912
|
+
readonly description?: string | undefined
|
|
5913
|
+
/**
|
|
5914
|
+
* Whether applicant must fill in field
|
|
5915
|
+
*/
|
|
5916
|
+
readonly required?: boolean | undefined
|
|
5917
|
+
/**
|
|
5918
|
+
* Choices applicant can select from
|
|
5919
|
+
*/
|
|
5920
|
+
readonly choices: ReadonlyArray<string>
|
|
5921
|
+
/**
|
|
5922
|
+
* Index of choice selected by applicant
|
|
5923
|
+
*/
|
|
5924
|
+
readonly response?: number | undefined
|
|
5925
|
+
}
|
|
5926
|
+
|
|
5927
|
+
export interface ParagraphFormFieldResponse {
|
|
5928
|
+
/**
|
|
5929
|
+
* Type of form field
|
|
5930
|
+
*/
|
|
5931
|
+
readonly field_type: "PARAGRAPH"
|
|
5932
|
+
/**
|
|
5933
|
+
* Label shown above field
|
|
5934
|
+
*/
|
|
5935
|
+
readonly label?: string | undefined
|
|
5936
|
+
/**
|
|
5937
|
+
* Optional helper text shown below label
|
|
5938
|
+
*/
|
|
5939
|
+
readonly description?: string | undefined
|
|
5940
|
+
/**
|
|
5941
|
+
* Whether applicant must fill in field
|
|
5942
|
+
*/
|
|
5943
|
+
readonly required?: boolean | undefined
|
|
5944
|
+
/**
|
|
5945
|
+
* Placeholder text shown in empty input
|
|
5946
|
+
*/
|
|
5947
|
+
readonly placeholder?: string | undefined
|
|
5948
|
+
/**
|
|
5949
|
+
* Applicant's text response
|
|
5950
|
+
*/
|
|
5951
|
+
readonly response?: string | undefined
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
export interface TermsFormFieldResponse {
|
|
5955
|
+
/**
|
|
5956
|
+
* Type of form field
|
|
5957
|
+
*/
|
|
5958
|
+
readonly field_type: "TERMS"
|
|
5959
|
+
/**
|
|
5960
|
+
* Label shown above field
|
|
5961
|
+
*/
|
|
5962
|
+
readonly label?: string | undefined
|
|
5963
|
+
/**
|
|
5964
|
+
* Optional helper text shown below label
|
|
5965
|
+
*/
|
|
5966
|
+
readonly description?: string | undefined
|
|
5967
|
+
/**
|
|
5968
|
+
* Whether applicant must fill in field
|
|
5969
|
+
*/
|
|
5970
|
+
readonly required?: boolean | undefined
|
|
5971
|
+
/**
|
|
5972
|
+
* Terms applicant must acknowledge
|
|
5973
|
+
*/
|
|
5974
|
+
readonly values: ReadonlyArray<string>
|
|
5975
|
+
/**
|
|
5976
|
+
* Whether applicant accepted terms
|
|
5977
|
+
*/
|
|
5978
|
+
readonly response?: boolean | undefined
|
|
5979
|
+
}
|
|
5980
|
+
|
|
5981
|
+
export interface TextInputFormFieldResponse {
|
|
5982
|
+
/**
|
|
5983
|
+
* Type of form field
|
|
5984
|
+
*/
|
|
5985
|
+
readonly field_type: "TEXT_INPUT"
|
|
5986
|
+
/**
|
|
5987
|
+
* Label shown above field
|
|
5988
|
+
*/
|
|
5989
|
+
readonly label?: string | undefined
|
|
5990
|
+
/**
|
|
5991
|
+
* Optional helper text shown below label
|
|
5992
|
+
*/
|
|
5993
|
+
readonly description?: string | undefined
|
|
5994
|
+
/**
|
|
5995
|
+
* Whether applicant must fill in field
|
|
5996
|
+
*/
|
|
5997
|
+
readonly required?: boolean | undefined
|
|
5998
|
+
/**
|
|
5999
|
+
* Placeholder text shown in empty input
|
|
6000
|
+
*/
|
|
6001
|
+
readonly placeholder?: string | undefined
|
|
6002
|
+
/**
|
|
6003
|
+
* Applicant's text response
|
|
6004
|
+
*/
|
|
6005
|
+
readonly response?: string | undefined
|
|
6006
|
+
}
|
|
6007
|
+
|
|
6008
|
+
export interface GuildJoinRequestResponse {
|
|
6009
|
+
readonly id: SnowflakeType
|
|
6010
|
+
readonly created_at: string
|
|
6011
|
+
readonly reviewed_at: string | null
|
|
6012
|
+
readonly application_status: GuildJoinRequestApplicationStatus | null
|
|
6013
|
+
/**
|
|
6014
|
+
* Reason request was rejected. Only set when application_status is REJECTED
|
|
6015
|
+
*/
|
|
6016
|
+
readonly rejection_reason: string | null
|
|
6017
|
+
readonly guild_id: SnowflakeType
|
|
6018
|
+
readonly user_id: SnowflakeType
|
|
6019
|
+
readonly user?: UserResponse | null | undefined
|
|
6020
|
+
/**
|
|
6021
|
+
* Applicant's responses on join request form
|
|
6022
|
+
*/
|
|
6023
|
+
readonly form_responses?:
|
|
6024
|
+
| ReadonlyArray<
|
|
6025
|
+
| MultipleChoiceFormFieldResponse
|
|
6026
|
+
| ParagraphFormFieldResponse
|
|
6027
|
+
| TermsFormFieldResponse
|
|
6028
|
+
| TextInputFormFieldResponse
|
|
6029
|
+
>
|
|
6030
|
+
| null
|
|
6031
|
+
| undefined
|
|
6032
|
+
readonly actioned_by_user?: UserResponse | null | undefined
|
|
6033
|
+
}
|
|
6034
|
+
|
|
6035
|
+
export interface GuildJoinRequestsListResponse {
|
|
6036
|
+
readonly total?: number | undefined
|
|
6037
|
+
readonly guild_join_requests?:
|
|
6038
|
+
| ReadonlyArray<GuildJoinRequestResponse>
|
|
6039
|
+
| undefined
|
|
6040
|
+
}
|
|
6041
|
+
|
|
6042
|
+
export interface ActionGuildJoinRequestRequest {
|
|
6043
|
+
/**
|
|
6044
|
+
* Whether to approve or reject the join request
|
|
6045
|
+
*/
|
|
6046
|
+
readonly action?: undefined
|
|
6047
|
+
/**
|
|
6048
|
+
* Reason for rejection. Only used when action is REJECTED
|
|
6049
|
+
*/
|
|
6050
|
+
readonly rejection_reason?: string | null | undefined
|
|
6051
|
+
}
|
|
6052
|
+
|
|
5785
6053
|
export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>
|
|
5786
6054
|
|
|
5787
6055
|
export interface RoleColors {
|
|
@@ -6817,6 +7085,7 @@ export interface ProvisionalTokenResponse {
|
|
|
6817
7085
|
}
|
|
6818
7086
|
|
|
6819
7087
|
export interface BotPartnerSdkTokenRequest {
|
|
7088
|
+
readonly provisional_user_id?: SnowflakeType | null | undefined
|
|
6820
7089
|
readonly external_user_id: string
|
|
6821
7090
|
readonly preferred_global_name?: string | null | undefined
|
|
6822
7091
|
}
|
|
@@ -8063,7 +8332,7 @@ export const make = (
|
|
|
8063
8332
|
limit: options?.["limit"] as any,
|
|
8064
8333
|
offset: options?.["offset"] as any,
|
|
8065
8334
|
}),
|
|
8066
|
-
onRequest(["
|
|
8335
|
+
onRequest(["200", "202"], {
|
|
8067
8336
|
"429": "RatelimitedResponse",
|
|
8068
8337
|
"4xx": "ErrorResponse",
|
|
8069
8338
|
}),
|
|
@@ -8470,6 +8739,27 @@ export const make = (
|
|
|
8470
8739
|
"4xx": "ErrorResponse",
|
|
8471
8740
|
}),
|
|
8472
8741
|
),
|
|
8742
|
+
getGuildJoinRequests: (guildId, options) =>
|
|
8743
|
+
HttpClientRequest.get(`/guilds/${guildId}/requests`).pipe(
|
|
8744
|
+
HttpClientRequest.setUrlParams({
|
|
8745
|
+
status: options?.["status"] as any,
|
|
8746
|
+
limit: options?.["limit"] as any,
|
|
8747
|
+
before: options?.["before"] as any,
|
|
8748
|
+
after: options?.["after"] as any,
|
|
8749
|
+
}),
|
|
8750
|
+
onRequest(["2xx"], {
|
|
8751
|
+
"429": "RatelimitedResponse",
|
|
8752
|
+
"4xx": "ErrorResponse",
|
|
8753
|
+
}),
|
|
8754
|
+
),
|
|
8755
|
+
actionGuildJoinRequest: (guildId, requestId, options) =>
|
|
8756
|
+
HttpClientRequest.patch(`/guilds/${guildId}/requests/${requestId}`).pipe(
|
|
8757
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8758
|
+
onRequest(["2xx"], {
|
|
8759
|
+
"429": "RatelimitedResponse",
|
|
8760
|
+
"4xx": "ErrorResponse",
|
|
8761
|
+
}),
|
|
8762
|
+
),
|
|
8473
8763
|
listGuildRoles: guildId =>
|
|
8474
8764
|
HttpClientRequest.get(`/guilds/${guildId}/roles`).pipe(
|
|
8475
8765
|
onRequest(["2xx"], {
|
|
@@ -10005,7 +10295,7 @@ export interface DiscordRest {
|
|
|
10005
10295
|
channelId: string,
|
|
10006
10296
|
options?: ThreadSearchParams | undefined,
|
|
10007
10297
|
) => Effect.Effect<
|
|
10008
|
-
ThreadSearchResponse,
|
|
10298
|
+
ThreadSearchResponse | SearchIndexNotReadyResponse,
|
|
10009
10299
|
| HttpClientError.HttpClientError
|
|
10010
10300
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10011
10301
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
@@ -10444,6 +10734,31 @@ export interface DiscordRest {
|
|
|
10444
10734
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10445
10735
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10446
10736
|
>
|
|
10737
|
+
/**
|
|
10738
|
+
* List join requests for guild, optionally filtered by application status
|
|
10739
|
+
*/
|
|
10740
|
+
readonly getGuildJoinRequests: (
|
|
10741
|
+
guildId: string,
|
|
10742
|
+
options?: GetGuildJoinRequestsParams | undefined,
|
|
10743
|
+
) => Effect.Effect<
|
|
10744
|
+
GuildJoinRequestsListResponse,
|
|
10745
|
+
| HttpClientError.HttpClientError
|
|
10746
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10747
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10748
|
+
>
|
|
10749
|
+
/**
|
|
10750
|
+
* Approve or reject guild join request
|
|
10751
|
+
*/
|
|
10752
|
+
readonly actionGuildJoinRequest: (
|
|
10753
|
+
guildId: string,
|
|
10754
|
+
requestId: string,
|
|
10755
|
+
options: ActionGuildJoinRequestRequest,
|
|
10756
|
+
) => Effect.Effect<
|
|
10757
|
+
GuildJoinRequestResponse,
|
|
10758
|
+
| HttpClientError.HttpClientError
|
|
10759
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10760
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10761
|
+
>
|
|
10447
10762
|
readonly listGuildRoles: (
|
|
10448
10763
|
guildId: string,
|
|
10449
10764
|
) => Effect.Effect<
|
|
@@ -82,7 +82,7 @@ export const layerConfig: (
|
|
|
82
82
|
config: Config.Config<MakeConfigOpts>,
|
|
83
83
|
) => Layer.Layer<WebhookConfig, Config.ConfigError> = (
|
|
84
84
|
config: Config.Config<MakeConfigOpts>,
|
|
85
|
-
) => Layer.effect(WebhookConfig, Effect.map(config
|
|
85
|
+
) => Layer.effect(WebhookConfig, Effect.map(config, makeConfig))
|
|
86
86
|
|
|
87
87
|
export class WebhookParseError extends Data.TaggedError("WebhookParseError")<{
|
|
88
88
|
cause: unknown
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "1.0.
|
|
1
|
+
export const LIB_VERSION = "1.0.14";
|