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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscordConfig.d.ts","sourceRoot":"","sources":["../src/DiscordConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAIzC,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAA;IACjC,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,eAAe,EAAE;YACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;YACtB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAA;SAChC,CAA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AAa,EAAE,MAAM,CAAC,WAAW,CACiB,CAAA"}
|
package/dist/DiscordConfig.js
CHANGED
|
@@ -25,5 +25,5 @@ export const make = ({ gateway, rest, token, }) => ({
|
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
27
|
export const layer = (opts) => Layer.succeed(DiscordConfig, make(opts));
|
|
28
|
-
export const layerConfig = (_) => Layer.effect(DiscordConfig, Effect.map(Config.unwrap(_)
|
|
28
|
+
export const layerConfig = (_) => Layer.effect(DiscordConfig, Effect.map(Config.unwrap(_), make));
|
|
29
29
|
//# sourceMappingURL=DiscordConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscordConfig.js","sourceRoot":"","sources":["../src/DiscordConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAErC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,MAAM,OAAO,GAAG,EAAE,CAAA;AAmBlB,MAAM,OAAO,aAAc,SAAQ,OAAO,CAAC,OAAO,EAG/C,CAAC,mBAAmB,CAAC;CAAG;AAQ3B,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,OAAO,EACP,IAAI,EACJ,KAAK,GACI,EAAwB,EAAE,CAAC,CAAC;IACrC,KAAK;IACL,IAAI,EAAE;QACJ,OAAO,EAAE,4BAA4B,OAAO,EAAE;QAC9C,GAAG,IAAI;QACP,eAAe,EAAE;YACf,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3B,GAAG,IAAI,EAAE,eAAe;SACzB;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,OAAO,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EAAE;QACP,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,MAAM;QACzC,iBAAiB,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QAC5B,GAAG,OAAO;KACX;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,IAAc,EAA8B,EAAE,CAClE,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;AAE1C,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,CAAwB,EACwB,EAAE,CAClD,KAAK,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA"}
|
|
@@ -357,6 +357,18 @@ export declare const ActionTypes: {
|
|
|
357
357
|
* Properties about the user changed
|
|
358
358
|
*/
|
|
359
359
|
readonly USER_UPDATE: "USER_UPDATE";
|
|
360
|
+
/**
|
|
361
|
+
* Entitlement was created
|
|
362
|
+
*/
|
|
363
|
+
readonly ENTITLEMENT_CREATE: "ENTITLEMENT_CREATE";
|
|
364
|
+
/**
|
|
365
|
+
* Entitlement was updated
|
|
366
|
+
*/
|
|
367
|
+
readonly ENTITLEMENT_UPDATE: "ENTITLEMENT_UPDATE";
|
|
368
|
+
/**
|
|
369
|
+
* Entitlement was deleted
|
|
370
|
+
*/
|
|
371
|
+
readonly ENTITLEMENT_DELETE: "ENTITLEMENT_DELETE";
|
|
360
372
|
/**
|
|
361
373
|
* Contains the initial state information
|
|
362
374
|
*/
|
|
@@ -377,6 +389,30 @@ export declare const ActionTypes: {
|
|
|
377
389
|
* Guild's voice server was updated
|
|
378
390
|
*/
|
|
379
391
|
readonly VOICE_SERVER_UPDATE: "VOICE_SERVER_UPDATE";
|
|
392
|
+
/**
|
|
393
|
+
* Sent when a message is created in a lobby
|
|
394
|
+
*/
|
|
395
|
+
readonly LOBBY_MESSAGE_CREATE: "LOBBY_MESSAGE_CREATE";
|
|
396
|
+
/**
|
|
397
|
+
* Sent when a message is updated in a lobby
|
|
398
|
+
*/
|
|
399
|
+
readonly LOBBY_MESSAGE_UPDATE: "LOBBY_MESSAGE_UPDATE";
|
|
400
|
+
/**
|
|
401
|
+
* Sent when a message is deleted from a lobby
|
|
402
|
+
*/
|
|
403
|
+
readonly LOBBY_MESSAGE_DELETE: "LOBBY_MESSAGE_DELETE";
|
|
404
|
+
/**
|
|
405
|
+
* Sent when a direct message is created during an active Social SDK session
|
|
406
|
+
*/
|
|
407
|
+
readonly GAME_DIRECT_MESSAGE_CREATE: "GAME_DIRECT_MESSAGE_CREATE";
|
|
408
|
+
/**
|
|
409
|
+
* Sent when a direct message is deleted during an active Social SDK session
|
|
410
|
+
*/
|
|
411
|
+
readonly GAME_DIRECT_MESSAGE_DELETE: "GAME_DIRECT_MESSAGE_DELETE";
|
|
412
|
+
/**
|
|
413
|
+
* Sent when a direct message is updated during an active Social SDK session
|
|
414
|
+
*/
|
|
415
|
+
readonly GAME_DIRECT_MESSAGE_UPDATE: "GAME_DIRECT_MESSAGE_UPDATE";
|
|
380
416
|
/**
|
|
381
417
|
* User used an interaction, such as an Application Command
|
|
382
418
|
*/
|
|
@@ -397,6 +433,14 @@ export declare const ActionTypes: {
|
|
|
397
433
|
* Application command permission was updated
|
|
398
434
|
*/
|
|
399
435
|
readonly APPLICATION_COMMAND_PERMISSIONS_UPDATE: "APPLICATION_COMMAND_PERMISSIONS_UPDATE";
|
|
436
|
+
/**
|
|
437
|
+
* Sent when an app was authorized by a user to a server or their account
|
|
438
|
+
*/
|
|
439
|
+
readonly APPLICATION_AUTHORIZED: "APPLICATION_AUTHORIZED";
|
|
440
|
+
/**
|
|
441
|
+
* Sent when an app was deauthorized by a user
|
|
442
|
+
*/
|
|
443
|
+
readonly APPLICATION_DEAUTHORIZED: "APPLICATION_DEAUTHORIZED";
|
|
400
444
|
/**
|
|
401
445
|
* Stage instance was created
|
|
402
446
|
*/
|
|
@@ -453,6 +497,10 @@ export declare const ActionTypes: {
|
|
|
453
497
|
readonly GUILD_SOUNDBOARD_SOUND_CREATE: "GUILD_SOUNDBOARD_SOUND_CREATE";
|
|
454
498
|
readonly GUILD_SOUNDBOARD_SOUND_UPDATE: "GUILD_SOUNDBOARD_SOUND_UPDATE";
|
|
455
499
|
readonly GUILD_SOUNDBOARD_SOUND_DELETE: "GUILD_SOUNDBOARD_SOUND_DELETE";
|
|
500
|
+
/**
|
|
501
|
+
* User was added to a Quest (currently unavailable)
|
|
502
|
+
*/
|
|
503
|
+
readonly QUEST_USER_ENROLLMENT: "QUEST_USER_ENROLLMENT";
|
|
456
504
|
readonly RATE_LIMITED: "RATE_LIMITED";
|
|
457
505
|
};
|
|
458
506
|
export type ActionTypes = (typeof ActionTypes)[keyof typeof ActionTypes];
|
|
@@ -528,6 +576,7 @@ export interface PrivateApplicationResponse {
|
|
|
528
576
|
readonly integration_types_config?: Record<string, unknown> | undefined;
|
|
529
577
|
readonly verify_key: string;
|
|
530
578
|
readonly flags: number;
|
|
579
|
+
readonly flags_new: string;
|
|
531
580
|
readonly max_participants?: number | null | undefined;
|
|
532
581
|
readonly tags?: ReadonlyArray<string> | undefined;
|
|
533
582
|
readonly redirect_uris: ReadonlyArray<string>;
|
|
@@ -539,7 +588,7 @@ export interface PrivateApplicationResponse {
|
|
|
539
588
|
readonly approximate_user_authorization_count: number;
|
|
540
589
|
readonly event_webhooks_url?: string | null | undefined;
|
|
541
590
|
readonly event_webhooks_status?: ApplicationEventWebhooksStatus | undefined;
|
|
542
|
-
readonly event_webhooks_types?: ReadonlyArray<
|
|
591
|
+
readonly event_webhooks_types?: ReadonlyArray<"APPLICATION_AUTHORIZED" | "APPLICATION_DEAUTHORIZED" | "ENTITLEMENT_CREATE" | "ENTITLEMENT_DELETE" | "ENTITLEMENT_UPDATE" | "GAME_DIRECT_MESSAGE_CREATE" | "GAME_DIRECT_MESSAGE_DELETE" | "GAME_DIRECT_MESSAGE_UPDATE" | "LOBBY_MESSAGE_CREATE" | "LOBBY_MESSAGE_DELETE" | "LOBBY_MESSAGE_UPDATE" | "QUEST_USER_ENROLLMENT"> | undefined;
|
|
543
592
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes;
|
|
544
593
|
readonly team: TeamResponse | null;
|
|
545
594
|
}
|
|
@@ -622,7 +671,7 @@ export interface ApplicationFormPartial {
|
|
|
622
671
|
readonly integration_types_config?: Record<string, unknown> | null | undefined;
|
|
623
672
|
readonly event_webhooks_status?: 1 | 2 | null | undefined;
|
|
624
673
|
readonly event_webhooks_url?: string | null | undefined;
|
|
625
|
-
readonly event_webhooks_types?: ReadonlyArray<
|
|
674
|
+
readonly event_webhooks_types?: ReadonlyArray<"APPLICATION_AUTHORIZED" | "APPLICATION_DEAUTHORIZED" | "ENTITLEMENT_CREATE" | "ENTITLEMENT_DELETE" | "ENTITLEMENT_UPDATE" | "GAME_DIRECT_MESSAGE_CREATE" | "GAME_DIRECT_MESSAGE_DELETE" | "GAME_DIRECT_MESSAGE_UPDATE" | "LOBBY_MESSAGE_CREATE" | "LOBBY_MESSAGE_DELETE" | "LOBBY_MESSAGE_UPDATE" | "QUEST_USER_ENROLLMENT"> | null | undefined;
|
|
626
675
|
}
|
|
627
676
|
export declare const EmbeddedActivityLocationKind: {
|
|
628
677
|
/**
|
|
@@ -681,17 +730,10 @@ export interface ApplicationResponse {
|
|
|
681
730
|
readonly integration_types_config?: Record<string, unknown> | undefined;
|
|
682
731
|
readonly verify_key: string;
|
|
683
732
|
readonly flags: number;
|
|
733
|
+
readonly flags_new: string;
|
|
684
734
|
readonly max_participants?: number | null | undefined;
|
|
685
735
|
readonly tags?: ReadonlyArray<string> | undefined;
|
|
686
736
|
}
|
|
687
|
-
export interface ClipSpeakingEventResponse {
|
|
688
|
-
readonly user_id: SnowflakeType;
|
|
689
|
-
readonly speaking_flags: number;
|
|
690
|
-
}
|
|
691
|
-
export interface ClipEventTimelineEntryResponse {
|
|
692
|
-
readonly timestamp_ms: number;
|
|
693
|
-
readonly speaking?: ClipSpeakingEventResponse | undefined;
|
|
694
|
-
}
|
|
695
737
|
export interface AttachmentResponse {
|
|
696
738
|
readonly id: SnowflakeType;
|
|
697
739
|
readonly filename: string;
|
|
@@ -712,7 +754,6 @@ export interface AttachmentResponse {
|
|
|
712
754
|
readonly application?: ApplicationResponse | undefined;
|
|
713
755
|
readonly clip_created_at?: string | undefined;
|
|
714
756
|
readonly clip_participants?: ReadonlyArray<UserResponse> | undefined;
|
|
715
|
-
readonly clip_events_timeline?: ReadonlyArray<ClipEventTimelineEntryResponse> | undefined;
|
|
716
757
|
}
|
|
717
758
|
export interface ActivitiesAttachmentResponse {
|
|
718
759
|
readonly attachment: AttachmentResponse;
|
|
@@ -1841,6 +1882,7 @@ export interface InviteApplicationResponse {
|
|
|
1841
1882
|
readonly integration_types_config?: Record<string, unknown> | undefined;
|
|
1842
1883
|
readonly verify_key: string;
|
|
1843
1884
|
readonly flags: number;
|
|
1885
|
+
readonly flags_new: string;
|
|
1844
1886
|
readonly max_participants?: number | null | undefined;
|
|
1845
1887
|
readonly tags?: ReadonlyArray<string> | undefined;
|
|
1846
1888
|
}
|
|
@@ -2003,7 +2045,6 @@ export interface MessageAttachmentResponse {
|
|
|
2003
2045
|
readonly application?: ApplicationResponse | undefined;
|
|
2004
2046
|
readonly clip_created_at?: string | undefined;
|
|
2005
2047
|
readonly clip_participants?: ReadonlyArray<UserResponse> | undefined;
|
|
2006
|
-
readonly clip_events_timeline?: ReadonlyArray<ClipEventTimelineEntryResponse> | undefined;
|
|
2007
2048
|
}
|
|
2008
2049
|
export interface MessageEmbedFieldResponse {
|
|
2009
2050
|
readonly name: string;
|
|
@@ -3143,6 +3184,12 @@ export interface ThreadSearchResponse {
|
|
|
3143
3184
|
readonly first_messages?: ReadonlyArray<MessageResponse> | undefined;
|
|
3144
3185
|
readonly total_results: number;
|
|
3145
3186
|
}
|
|
3187
|
+
export interface SearchIndexNotReadyResponse {
|
|
3188
|
+
readonly message: string;
|
|
3189
|
+
readonly code: number;
|
|
3190
|
+
readonly documents_indexed: number;
|
|
3191
|
+
readonly retry_after: number;
|
|
3192
|
+
}
|
|
3146
3193
|
export interface TypingIndicatorResponse {
|
|
3147
3194
|
}
|
|
3148
3195
|
export interface ListMyPrivateArchivedThreadsParams {
|
|
@@ -4473,12 +4520,6 @@ export interface GuildSearchResponse {
|
|
|
4473
4520
|
readonly members?: ReadonlyArray<ThreadMemberResponse> | null | undefined;
|
|
4474
4521
|
readonly documents_indexed?: number | null | undefined;
|
|
4475
4522
|
}
|
|
4476
|
-
export interface SearchIndexNotReadyResponse {
|
|
4477
|
-
readonly message: string;
|
|
4478
|
-
readonly code: number;
|
|
4479
|
-
readonly documents_indexed: number;
|
|
4480
|
-
readonly retry_after: number;
|
|
4481
|
-
}
|
|
4482
4523
|
export interface WelcomeMessageResponse {
|
|
4483
4524
|
readonly author_ids: ReadonlyArray<SnowflakeType>;
|
|
4484
4525
|
readonly message: string;
|
|
@@ -4627,6 +4668,186 @@ export interface VoiceRegionResponse {
|
|
|
4627
4668
|
readonly optimal: boolean;
|
|
4628
4669
|
}
|
|
4629
4670
|
export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>;
|
|
4671
|
+
export declare const GuildJoinRequestApplicationStatus: {
|
|
4672
|
+
/**
|
|
4673
|
+
* Applicant started but not yet submitted join request
|
|
4674
|
+
*/
|
|
4675
|
+
readonly STARTED: "STARTED";
|
|
4676
|
+
/**
|
|
4677
|
+
* Applicant submitted join request that is awaiting review
|
|
4678
|
+
*/
|
|
4679
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
4680
|
+
/**
|
|
4681
|
+
* Join request rejected
|
|
4682
|
+
*/
|
|
4683
|
+
readonly REJECTED: "REJECTED";
|
|
4684
|
+
/**
|
|
4685
|
+
* Join request approved
|
|
4686
|
+
*/
|
|
4687
|
+
readonly APPROVED: "APPROVED";
|
|
4688
|
+
};
|
|
4689
|
+
export type GuildJoinRequestApplicationStatus = (typeof GuildJoinRequestApplicationStatus)[keyof typeof GuildJoinRequestApplicationStatus];
|
|
4690
|
+
export interface GetGuildJoinRequestsParams {
|
|
4691
|
+
readonly status?: undefined;
|
|
4692
|
+
readonly limit?: number | undefined;
|
|
4693
|
+
readonly before?: SnowflakeType | undefined;
|
|
4694
|
+
readonly after?: SnowflakeType | undefined;
|
|
4695
|
+
}
|
|
4696
|
+
export declare const GuildMemberVerificationFormFieldType: {
|
|
4697
|
+
/**
|
|
4698
|
+
* Field requiring applicant to acknowledge list of terms
|
|
4699
|
+
*/
|
|
4700
|
+
readonly TERMS: "TERMS";
|
|
4701
|
+
/**
|
|
4702
|
+
* Short text input field
|
|
4703
|
+
*/
|
|
4704
|
+
readonly TEXT_INPUT: "TEXT_INPUT";
|
|
4705
|
+
/**
|
|
4706
|
+
* Long-form text input field
|
|
4707
|
+
*/
|
|
4708
|
+
readonly PARAGRAPH: "PARAGRAPH";
|
|
4709
|
+
/**
|
|
4710
|
+
* Field where applicant selects one of many options
|
|
4711
|
+
*/
|
|
4712
|
+
readonly MULTIPLE_CHOICE: "MULTIPLE_CHOICE";
|
|
4713
|
+
};
|
|
4714
|
+
export type GuildMemberVerificationFormFieldType = (typeof GuildMemberVerificationFormFieldType)[keyof typeof GuildMemberVerificationFormFieldType];
|
|
4715
|
+
export interface MultipleChoiceFormFieldResponse {
|
|
4716
|
+
/**
|
|
4717
|
+
* Type of form field
|
|
4718
|
+
*/
|
|
4719
|
+
readonly field_type: "MULTIPLE_CHOICE";
|
|
4720
|
+
/**
|
|
4721
|
+
* Label shown above field
|
|
4722
|
+
*/
|
|
4723
|
+
readonly label?: string | undefined;
|
|
4724
|
+
/**
|
|
4725
|
+
* Optional helper text shown below label
|
|
4726
|
+
*/
|
|
4727
|
+
readonly description?: string | undefined;
|
|
4728
|
+
/**
|
|
4729
|
+
* Whether applicant must fill in field
|
|
4730
|
+
*/
|
|
4731
|
+
readonly required?: boolean | undefined;
|
|
4732
|
+
/**
|
|
4733
|
+
* Choices applicant can select from
|
|
4734
|
+
*/
|
|
4735
|
+
readonly choices: ReadonlyArray<string>;
|
|
4736
|
+
/**
|
|
4737
|
+
* Index of choice selected by applicant
|
|
4738
|
+
*/
|
|
4739
|
+
readonly response?: number | undefined;
|
|
4740
|
+
}
|
|
4741
|
+
export interface ParagraphFormFieldResponse {
|
|
4742
|
+
/**
|
|
4743
|
+
* Type of form field
|
|
4744
|
+
*/
|
|
4745
|
+
readonly field_type: "PARAGRAPH";
|
|
4746
|
+
/**
|
|
4747
|
+
* Label shown above field
|
|
4748
|
+
*/
|
|
4749
|
+
readonly label?: string | undefined;
|
|
4750
|
+
/**
|
|
4751
|
+
* Optional helper text shown below label
|
|
4752
|
+
*/
|
|
4753
|
+
readonly description?: string | undefined;
|
|
4754
|
+
/**
|
|
4755
|
+
* Whether applicant must fill in field
|
|
4756
|
+
*/
|
|
4757
|
+
readonly required?: boolean | undefined;
|
|
4758
|
+
/**
|
|
4759
|
+
* Placeholder text shown in empty input
|
|
4760
|
+
*/
|
|
4761
|
+
readonly placeholder?: string | undefined;
|
|
4762
|
+
/**
|
|
4763
|
+
* Applicant's text response
|
|
4764
|
+
*/
|
|
4765
|
+
readonly response?: string | undefined;
|
|
4766
|
+
}
|
|
4767
|
+
export interface TermsFormFieldResponse {
|
|
4768
|
+
/**
|
|
4769
|
+
* Type of form field
|
|
4770
|
+
*/
|
|
4771
|
+
readonly field_type: "TERMS";
|
|
4772
|
+
/**
|
|
4773
|
+
* Label shown above field
|
|
4774
|
+
*/
|
|
4775
|
+
readonly label?: string | undefined;
|
|
4776
|
+
/**
|
|
4777
|
+
* Optional helper text shown below label
|
|
4778
|
+
*/
|
|
4779
|
+
readonly description?: string | undefined;
|
|
4780
|
+
/**
|
|
4781
|
+
* Whether applicant must fill in field
|
|
4782
|
+
*/
|
|
4783
|
+
readonly required?: boolean | undefined;
|
|
4784
|
+
/**
|
|
4785
|
+
* Terms applicant must acknowledge
|
|
4786
|
+
*/
|
|
4787
|
+
readonly values: ReadonlyArray<string>;
|
|
4788
|
+
/**
|
|
4789
|
+
* Whether applicant accepted terms
|
|
4790
|
+
*/
|
|
4791
|
+
readonly response?: boolean | undefined;
|
|
4792
|
+
}
|
|
4793
|
+
export interface TextInputFormFieldResponse {
|
|
4794
|
+
/**
|
|
4795
|
+
* Type of form field
|
|
4796
|
+
*/
|
|
4797
|
+
readonly field_type: "TEXT_INPUT";
|
|
4798
|
+
/**
|
|
4799
|
+
* Label shown above field
|
|
4800
|
+
*/
|
|
4801
|
+
readonly label?: string | undefined;
|
|
4802
|
+
/**
|
|
4803
|
+
* Optional helper text shown below label
|
|
4804
|
+
*/
|
|
4805
|
+
readonly description?: string | undefined;
|
|
4806
|
+
/**
|
|
4807
|
+
* Whether applicant must fill in field
|
|
4808
|
+
*/
|
|
4809
|
+
readonly required?: boolean | undefined;
|
|
4810
|
+
/**
|
|
4811
|
+
* Placeholder text shown in empty input
|
|
4812
|
+
*/
|
|
4813
|
+
readonly placeholder?: string | undefined;
|
|
4814
|
+
/**
|
|
4815
|
+
* Applicant's text response
|
|
4816
|
+
*/
|
|
4817
|
+
readonly response?: string | undefined;
|
|
4818
|
+
}
|
|
4819
|
+
export interface GuildJoinRequestResponse {
|
|
4820
|
+
readonly id: SnowflakeType;
|
|
4821
|
+
readonly created_at: string;
|
|
4822
|
+
readonly reviewed_at: string | null;
|
|
4823
|
+
readonly application_status: GuildJoinRequestApplicationStatus | null;
|
|
4824
|
+
/**
|
|
4825
|
+
* Reason request was rejected. Only set when application_status is REJECTED
|
|
4826
|
+
*/
|
|
4827
|
+
readonly rejection_reason: string | null;
|
|
4828
|
+
readonly guild_id: SnowflakeType;
|
|
4829
|
+
readonly user_id: SnowflakeType;
|
|
4830
|
+
readonly user?: UserResponse | null | undefined;
|
|
4831
|
+
/**
|
|
4832
|
+
* Applicant's responses on join request form
|
|
4833
|
+
*/
|
|
4834
|
+
readonly form_responses?: ReadonlyArray<MultipleChoiceFormFieldResponse | ParagraphFormFieldResponse | TermsFormFieldResponse | TextInputFormFieldResponse> | null | undefined;
|
|
4835
|
+
readonly actioned_by_user?: UserResponse | null | undefined;
|
|
4836
|
+
}
|
|
4837
|
+
export interface GuildJoinRequestsListResponse {
|
|
4838
|
+
readonly total?: number | undefined;
|
|
4839
|
+
readonly guild_join_requests?: ReadonlyArray<GuildJoinRequestResponse> | undefined;
|
|
4840
|
+
}
|
|
4841
|
+
export interface ActionGuildJoinRequestRequest {
|
|
4842
|
+
/**
|
|
4843
|
+
* Whether to approve or reject the join request
|
|
4844
|
+
*/
|
|
4845
|
+
readonly action?: undefined;
|
|
4846
|
+
/**
|
|
4847
|
+
* Reason for rejection. Only used when action is REJECTED
|
|
4848
|
+
*/
|
|
4849
|
+
readonly rejection_reason?: string | null | undefined;
|
|
4850
|
+
}
|
|
4630
4851
|
export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>;
|
|
4631
4852
|
export interface RoleColors {
|
|
4632
4853
|
readonly primary_color?: number | null | undefined;
|
|
@@ -5388,6 +5609,7 @@ export interface ProvisionalTokenResponse {
|
|
|
5388
5609
|
readonly expires_at_s?: number | null | undefined;
|
|
5389
5610
|
}
|
|
5390
5611
|
export interface BotPartnerSdkTokenRequest {
|
|
5612
|
+
readonly provisional_user_id?: SnowflakeType | null | undefined;
|
|
5391
5613
|
readonly external_user_id: string;
|
|
5392
5614
|
readonly preferred_global_name?: string | null | undefined;
|
|
5393
5615
|
}
|
|
@@ -5860,7 +6082,7 @@ export interface DiscordRest {
|
|
|
5860
6082
|
readonly createThread: (channelId: string, options: CreateThreadRequest) => Effect.Effect<CreatedThreadResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5861
6083
|
readonly listPrivateArchivedThreads: (channelId: string, options?: ListPrivateArchivedThreadsParams | undefined) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5862
6084
|
readonly listPublicArchivedThreads: (channelId: string, options?: ListPublicArchivedThreadsParams | undefined) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5863
|
-
readonly threadSearch: (channelId: string, options?: ThreadSearchParams | undefined) => Effect.Effect<ThreadSearchResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6085
|
+
readonly threadSearch: (channelId: string, options?: ThreadSearchParams | undefined) => Effect.Effect<ThreadSearchResponse | SearchIndexNotReadyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5864
6086
|
readonly triggerTypingIndicator: (channelId: string) => Effect.Effect<TypingIndicatorResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5865
6087
|
readonly listMyPrivateArchivedThreads: (channelId: string, options?: ListMyPrivateArchivedThreadsParams | undefined) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5866
6088
|
/**
|
|
@@ -5913,6 +6135,14 @@ export interface DiscordRest {
|
|
|
5913
6135
|
readonly previewPruneGuild: (guildId: string, options?: PreviewPruneGuildParams | undefined) => Effect.Effect<GuildPruneResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5914
6136
|
readonly pruneGuild: (guildId: string, options: PruneGuildRequest) => Effect.Effect<GuildPruneResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5915
6137
|
readonly listGuildVoiceRegions: (guildId: string) => Effect.Effect<ListGuildVoiceRegions200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6138
|
+
/**
|
|
6139
|
+
* List join requests for guild, optionally filtered by application status
|
|
6140
|
+
*/
|
|
6141
|
+
readonly getGuildJoinRequests: (guildId: string, options?: GetGuildJoinRequestsParams | undefined) => Effect.Effect<GuildJoinRequestsListResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6142
|
+
/**
|
|
6143
|
+
* Approve or reject guild join request
|
|
6144
|
+
*/
|
|
6145
|
+
readonly actionGuildJoinRequest: (guildId: string, requestId: string, options: ActionGuildJoinRequestRequest) => Effect.Effect<GuildJoinRequestResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5916
6146
|
readonly listGuildRoles: (guildId: string) => Effect.Effect<ListGuildRoles200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5917
6147
|
readonly createGuildRole: (guildId: string, options: CreateRoleRequest) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5918
6148
|
readonly bulkUpdateGuildRoles: (guildId: string, options: BulkUpdateGuildRolesRequest) => Effect.Effect<BulkUpdateGuildRoles200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|