discord-protos 1.0.5 → 1.2.44
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/.github/workflows/update.yml +47 -16
- package/.prettierrc.yml +1 -0
- package/README.md +5 -6
- package/discord_protos/__init__.py +20 -6
- package/discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures.proto +22 -0
- package/discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures_pb2.py +42 -0
- package/discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection.proto +10 -0
- package/discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection_pb2.py +40 -0
- package/discord_protos/{FrecencyUserSettings.proto → discord_users/v1/FrecencyUserSettings.proto} +26 -5
- package/discord_protos/discord_users/v1/FrecencyUserSettings_pb2.py +100 -0
- package/discord_protos/{PreloadedUserSettings.proto → discord_users/v1/PreloadedUserSettings.proto} +242 -26
- package/discord_protos/discord_users/v1/PreloadedUserSettings_pb2.py +214 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.proto +62 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties_pb2.py +60 -0
- package/dist/discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures.d.ts +71 -0
- package/dist/discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures.js +131 -0
- package/dist/discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection.d.ts +41 -0
- package/dist/discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection.js +94 -0
- package/dist/{proto → discord_protos/discord_users/v1}/FrecencyUserSettings.d.ts +165 -57
- package/dist/{proto → discord_protos/discord_users/v1}/FrecencyUserSettings.js +414 -103
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.d.ts +2035 -0
- package/dist/{proto → discord_protos/discord_users/v1}/PreloadedUserSettings.js +1921 -364
- package/dist/{proto → discord_protos}/google/protobuf/timestamp.d.ts +3 -6
- package/dist/{proto → discord_protos}/google/protobuf/timestamp.js +11 -11
- package/dist/{proto → discord_protos}/google/protobuf/wrappers.d.ts +9 -9
- package/dist/{proto → discord_protos}/google/protobuf/wrappers.js +28 -30
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +261 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +558 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +34 -4
- package/dist/load.js +144 -8
- package/package.json +15 -14
- package/scripts/parse.js +269 -0
- package/scripts/preload.js +17 -0
- package/tsconfig.json +6 -4
- package/discord_protos/FrecencyUserSettings_pb2.py +0 -63
- package/discord_protos/PreloadedUserSettings_pb2.py +0 -119
- package/dist/parse.d.ts +0 -35
- package/dist/parse.js +0 -180
- package/dist/proto/PreloadedUserSettings.d.ts +0 -1223
- package/dist/test.d.ts +0 -1
- package/dist/test.js +0 -18
|
@@ -58,7 +58,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
58
58
|
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
59
59
|
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
60
60
|
*
|
|
61
|
-
*
|
|
62
61
|
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
63
62
|
*
|
|
64
63
|
* Instant now = Instant.now();
|
|
@@ -67,7 +66,6 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
67
66
|
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
68
67
|
* .setNanos(now.getNano()).build();
|
|
69
68
|
*
|
|
70
|
-
*
|
|
71
69
|
* Example 6: Compute Timestamp from current time in Python.
|
|
72
70
|
*
|
|
73
71
|
* timestamp = Timestamp()
|
|
@@ -97,11 +95,10 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
97
95
|
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
98
96
|
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
99
97
|
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
100
|
-
* http://
|
|
98
|
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
101
99
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
102
100
|
*
|
|
103
101
|
*
|
|
104
|
-
*
|
|
105
102
|
* @generated from protobuf message google.protobuf.Timestamp
|
|
106
103
|
*/
|
|
107
104
|
export interface Timestamp {
|
|
@@ -110,7 +107,7 @@ export interface Timestamp {
|
|
|
110
107
|
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
111
108
|
* 9999-12-31T23:59:59Z inclusive.
|
|
112
109
|
*
|
|
113
|
-
* @generated from protobuf field: int64 seconds = 1
|
|
110
|
+
* @generated from protobuf field: int64 seconds = 1
|
|
114
111
|
*/
|
|
115
112
|
seconds: bigint;
|
|
116
113
|
/**
|
|
@@ -119,7 +116,7 @@ export interface Timestamp {
|
|
|
119
116
|
* that count forward in time. Must be from 0 to 999,999,999
|
|
120
117
|
* inclusive.
|
|
121
118
|
*
|
|
122
|
-
* @generated from protobuf field: int32 nanos = 2
|
|
119
|
+
* @generated from protobuf field: int32 nanos = 2
|
|
123
120
|
*/
|
|
124
121
|
nanos: number;
|
|
125
122
|
}
|
|
@@ -7,9 +7,8 @@ const runtime_3 = require("@protobuf-ts/runtime");
|
|
|
7
7
|
const runtime_4 = require("@protobuf-ts/runtime");
|
|
8
8
|
const runtime_5 = require("@protobuf-ts/runtime");
|
|
9
9
|
const runtime_6 = require("@protobuf-ts/runtime");
|
|
10
|
-
const runtime_7 = require("@protobuf-ts/runtime");
|
|
11
10
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
12
|
-
class Timestamp$Type extends
|
|
11
|
+
class Timestamp$Type extends runtime_6.MessageType {
|
|
13
12
|
constructor() {
|
|
14
13
|
super("google.protobuf.Timestamp", [
|
|
15
14
|
{ no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
@@ -22,7 +21,7 @@ class Timestamp$Type extends runtime_7.MessageType {
|
|
|
22
21
|
now() {
|
|
23
22
|
const msg = this.create();
|
|
24
23
|
const ms = Date.now();
|
|
25
|
-
msg.seconds =
|
|
24
|
+
msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toBigInt();
|
|
26
25
|
msg.nanos = (ms % 1000) * 1000000;
|
|
27
26
|
return msg;
|
|
28
27
|
}
|
|
@@ -30,7 +29,7 @@ class Timestamp$Type extends runtime_7.MessageType {
|
|
|
30
29
|
* Converts a `Timestamp` to a JavaScript Date.
|
|
31
30
|
*/
|
|
32
31
|
toDate(message) {
|
|
33
|
-
return new Date(
|
|
32
|
+
return new Date(runtime_5.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));
|
|
34
33
|
}
|
|
35
34
|
/**
|
|
36
35
|
* Converts a JavaScript Date to a `Timestamp`.
|
|
@@ -38,8 +37,8 @@ class Timestamp$Type extends runtime_7.MessageType {
|
|
|
38
37
|
fromDate(date) {
|
|
39
38
|
const msg = this.create();
|
|
40
39
|
const ms = date.getTime();
|
|
41
|
-
msg.seconds =
|
|
42
|
-
msg.nanos = (ms % 1000) * 1000000;
|
|
40
|
+
msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toBigInt();
|
|
41
|
+
msg.nanos = ((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000;
|
|
43
42
|
return msg;
|
|
44
43
|
}
|
|
45
44
|
/**
|
|
@@ -47,7 +46,7 @@ class Timestamp$Type extends runtime_7.MessageType {
|
|
|
47
46
|
* in the RFC 3339 format.
|
|
48
47
|
*/
|
|
49
48
|
internalJsonWrite(message, options) {
|
|
50
|
-
let ms =
|
|
49
|
+
let ms = runtime_5.PbLong.from(message.seconds).toNumber() * 1000;
|
|
51
50
|
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
|
|
52
51
|
throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
53
52
|
if (message.nanos < 0)
|
|
@@ -70,7 +69,7 @@ class Timestamp$Type extends runtime_7.MessageType {
|
|
|
70
69
|
*/
|
|
71
70
|
internalJsonRead(json, options, target) {
|
|
72
71
|
if (typeof json !== "string")
|
|
73
|
-
throw new Error("Unable to parse Timestamp from JSON " + (0,
|
|
72
|
+
throw new Error("Unable to parse Timestamp from JSON " + (0, runtime_4.typeofJsonValue)(json) + ".");
|
|
74
73
|
let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
|
|
75
74
|
if (!matches)
|
|
76
75
|
throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
|
|
@@ -81,15 +80,16 @@ class Timestamp$Type extends runtime_7.MessageType {
|
|
|
81
80
|
throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
82
81
|
if (!target)
|
|
83
82
|
target = this.create();
|
|
84
|
-
target.seconds =
|
|
83
|
+
target.seconds = runtime_5.PbLong.from(ms / 1000).toBigInt();
|
|
85
84
|
target.nanos = 0;
|
|
86
85
|
if (matches[7])
|
|
87
86
|
target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
|
|
88
87
|
return target;
|
|
89
88
|
}
|
|
90
89
|
create(value) {
|
|
91
|
-
const message =
|
|
92
|
-
|
|
90
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
91
|
+
message.seconds = 0n;
|
|
92
|
+
message.nanos = 0;
|
|
93
93
|
if (value !== undefined)
|
|
94
94
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
95
95
|
return message;
|
|
@@ -18,7 +18,7 @@ export interface DoubleValue {
|
|
|
18
18
|
/**
|
|
19
19
|
* The double value.
|
|
20
20
|
*
|
|
21
|
-
* @generated from protobuf field: double value = 1
|
|
21
|
+
* @generated from protobuf field: double value = 1
|
|
22
22
|
*/
|
|
23
23
|
value: number;
|
|
24
24
|
}
|
|
@@ -33,7 +33,7 @@ export interface FloatValue {
|
|
|
33
33
|
/**
|
|
34
34
|
* The float value.
|
|
35
35
|
*
|
|
36
|
-
* @generated from protobuf field: float value = 1
|
|
36
|
+
* @generated from protobuf field: float value = 1
|
|
37
37
|
*/
|
|
38
38
|
value: number;
|
|
39
39
|
}
|
|
@@ -48,7 +48,7 @@ export interface Int64Value {
|
|
|
48
48
|
/**
|
|
49
49
|
* The int64 value.
|
|
50
50
|
*
|
|
51
|
-
* @generated from protobuf field: int64 value = 1
|
|
51
|
+
* @generated from protobuf field: int64 value = 1
|
|
52
52
|
*/
|
|
53
53
|
value: bigint;
|
|
54
54
|
}
|
|
@@ -63,7 +63,7 @@ export interface UInt64Value {
|
|
|
63
63
|
/**
|
|
64
64
|
* The uint64 value.
|
|
65
65
|
*
|
|
66
|
-
* @generated from protobuf field: uint64 value = 1
|
|
66
|
+
* @generated from protobuf field: uint64 value = 1
|
|
67
67
|
*/
|
|
68
68
|
value: bigint;
|
|
69
69
|
}
|
|
@@ -78,7 +78,7 @@ export interface Int32Value {
|
|
|
78
78
|
/**
|
|
79
79
|
* The int32 value.
|
|
80
80
|
*
|
|
81
|
-
* @generated from protobuf field: int32 value = 1
|
|
81
|
+
* @generated from protobuf field: int32 value = 1
|
|
82
82
|
*/
|
|
83
83
|
value: number;
|
|
84
84
|
}
|
|
@@ -93,7 +93,7 @@ export interface UInt32Value {
|
|
|
93
93
|
/**
|
|
94
94
|
* The uint32 value.
|
|
95
95
|
*
|
|
96
|
-
* @generated from protobuf field: uint32 value = 1
|
|
96
|
+
* @generated from protobuf field: uint32 value = 1
|
|
97
97
|
*/
|
|
98
98
|
value: number;
|
|
99
99
|
}
|
|
@@ -108,7 +108,7 @@ export interface BoolValue {
|
|
|
108
108
|
/**
|
|
109
109
|
* The bool value.
|
|
110
110
|
*
|
|
111
|
-
* @generated from protobuf field: bool value = 1
|
|
111
|
+
* @generated from protobuf field: bool value = 1
|
|
112
112
|
*/
|
|
113
113
|
value: boolean;
|
|
114
114
|
}
|
|
@@ -123,7 +123,7 @@ export interface StringValue {
|
|
|
123
123
|
/**
|
|
124
124
|
* The string value.
|
|
125
125
|
*
|
|
126
|
-
* @generated from protobuf field: string value = 1
|
|
126
|
+
* @generated from protobuf field: string value = 1
|
|
127
127
|
*/
|
|
128
128
|
value: string;
|
|
129
129
|
}
|
|
@@ -138,7 +138,7 @@ export interface BytesValue {
|
|
|
138
138
|
/**
|
|
139
139
|
* The bytes value.
|
|
140
140
|
*
|
|
141
|
-
* @generated from protobuf field: bytes value = 1
|
|
141
|
+
* @generated from protobuf field: bytes value = 1
|
|
142
142
|
*/
|
|
143
143
|
value: Uint8Array;
|
|
144
144
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Value = exports.Int32Value = exports.UInt64Value = exports.Int64Value = exports.FloatValue = exports.DoubleValue = void 0;
|
|
4
|
-
// @generated by protobuf-ts 2.
|
|
4
|
+
// @generated by protobuf-ts 2.11.1
|
|
5
5
|
// @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3)
|
|
6
6
|
// tslint:disable
|
|
7
7
|
//
|
|
@@ -35,7 +35,6 @@ exports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Val
|
|
|
35
35
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
36
36
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37
37
|
//
|
|
38
|
-
//
|
|
39
38
|
// Wrappers for primitive (non-message) types. These types are useful
|
|
40
39
|
// for embedding primitives in the `google.protobuf.Any` type and for places
|
|
41
40
|
// where we need to distinguish between the absence of a primitive
|
|
@@ -52,9 +51,8 @@ const runtime_3 = require("@protobuf-ts/runtime");
|
|
|
52
51
|
const runtime_4 = require("@protobuf-ts/runtime");
|
|
53
52
|
const runtime_5 = require("@protobuf-ts/runtime");
|
|
54
53
|
const runtime_6 = require("@protobuf-ts/runtime");
|
|
55
|
-
const runtime_7 = require("@protobuf-ts/runtime");
|
|
56
54
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
57
|
-
class DoubleValue$Type extends
|
|
55
|
+
class DoubleValue$Type extends runtime_6.MessageType {
|
|
58
56
|
constructor() {
|
|
59
57
|
super("google.protobuf.DoubleValue", [
|
|
60
58
|
{ no: 1, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
@@ -76,8 +74,8 @@ class DoubleValue$Type extends runtime_7.MessageType {
|
|
|
76
74
|
return target;
|
|
77
75
|
}
|
|
78
76
|
create(value) {
|
|
79
|
-
const message =
|
|
80
|
-
|
|
77
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
78
|
+
message.value = 0;
|
|
81
79
|
if (value !== undefined)
|
|
82
80
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
83
81
|
return message;
|
|
@@ -116,7 +114,7 @@ class DoubleValue$Type extends runtime_7.MessageType {
|
|
|
116
114
|
*/
|
|
117
115
|
exports.DoubleValue = new DoubleValue$Type();
|
|
118
116
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
119
|
-
class FloatValue$Type extends
|
|
117
|
+
class FloatValue$Type extends runtime_6.MessageType {
|
|
120
118
|
constructor() {
|
|
121
119
|
super("google.protobuf.FloatValue", [
|
|
122
120
|
{ no: 1, name: "value", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
|
|
@@ -138,8 +136,8 @@ class FloatValue$Type extends runtime_7.MessageType {
|
|
|
138
136
|
return target;
|
|
139
137
|
}
|
|
140
138
|
create(value) {
|
|
141
|
-
const message =
|
|
142
|
-
|
|
139
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
140
|
+
message.value = 0;
|
|
143
141
|
if (value !== undefined)
|
|
144
142
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
145
143
|
return message;
|
|
@@ -178,7 +176,7 @@ class FloatValue$Type extends runtime_7.MessageType {
|
|
|
178
176
|
*/
|
|
179
177
|
exports.FloatValue = new FloatValue$Type();
|
|
180
178
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
181
|
-
class Int64Value$Type extends
|
|
179
|
+
class Int64Value$Type extends runtime_6.MessageType {
|
|
182
180
|
constructor() {
|
|
183
181
|
super("google.protobuf.Int64Value", [
|
|
184
182
|
{ no: 1, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
@@ -200,8 +198,8 @@ class Int64Value$Type extends runtime_7.MessageType {
|
|
|
200
198
|
return target;
|
|
201
199
|
}
|
|
202
200
|
create(value) {
|
|
203
|
-
const message =
|
|
204
|
-
|
|
201
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
202
|
+
message.value = 0n;
|
|
205
203
|
if (value !== undefined)
|
|
206
204
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
207
205
|
return message;
|
|
@@ -240,7 +238,7 @@ class Int64Value$Type extends runtime_7.MessageType {
|
|
|
240
238
|
*/
|
|
241
239
|
exports.Int64Value = new Int64Value$Type();
|
|
242
240
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
243
|
-
class UInt64Value$Type extends
|
|
241
|
+
class UInt64Value$Type extends runtime_6.MessageType {
|
|
244
242
|
constructor() {
|
|
245
243
|
super("google.protobuf.UInt64Value", [
|
|
246
244
|
{ no: 1, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
@@ -262,8 +260,8 @@ class UInt64Value$Type extends runtime_7.MessageType {
|
|
|
262
260
|
return target;
|
|
263
261
|
}
|
|
264
262
|
create(value) {
|
|
265
|
-
const message =
|
|
266
|
-
|
|
263
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
264
|
+
message.value = 0n;
|
|
267
265
|
if (value !== undefined)
|
|
268
266
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
269
267
|
return message;
|
|
@@ -302,7 +300,7 @@ class UInt64Value$Type extends runtime_7.MessageType {
|
|
|
302
300
|
*/
|
|
303
301
|
exports.UInt64Value = new UInt64Value$Type();
|
|
304
302
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
305
|
-
class Int32Value$Type extends
|
|
303
|
+
class Int32Value$Type extends runtime_6.MessageType {
|
|
306
304
|
constructor() {
|
|
307
305
|
super("google.protobuf.Int32Value", [
|
|
308
306
|
{ no: 1, name: "value", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
@@ -324,8 +322,8 @@ class Int32Value$Type extends runtime_7.MessageType {
|
|
|
324
322
|
return target;
|
|
325
323
|
}
|
|
326
324
|
create(value) {
|
|
327
|
-
const message =
|
|
328
|
-
|
|
325
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
326
|
+
message.value = 0;
|
|
329
327
|
if (value !== undefined)
|
|
330
328
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
331
329
|
return message;
|
|
@@ -364,7 +362,7 @@ class Int32Value$Type extends runtime_7.MessageType {
|
|
|
364
362
|
*/
|
|
365
363
|
exports.Int32Value = new Int32Value$Type();
|
|
366
364
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
367
|
-
class UInt32Value$Type extends
|
|
365
|
+
class UInt32Value$Type extends runtime_6.MessageType {
|
|
368
366
|
constructor() {
|
|
369
367
|
super("google.protobuf.UInt32Value", [
|
|
370
368
|
{ no: 1, name: "value", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
@@ -386,8 +384,8 @@ class UInt32Value$Type extends runtime_7.MessageType {
|
|
|
386
384
|
return target;
|
|
387
385
|
}
|
|
388
386
|
create(value) {
|
|
389
|
-
const message =
|
|
390
|
-
|
|
387
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
388
|
+
message.value = 0;
|
|
391
389
|
if (value !== undefined)
|
|
392
390
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
393
391
|
return message;
|
|
@@ -426,7 +424,7 @@ class UInt32Value$Type extends runtime_7.MessageType {
|
|
|
426
424
|
*/
|
|
427
425
|
exports.UInt32Value = new UInt32Value$Type();
|
|
428
426
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
429
|
-
class BoolValue$Type extends
|
|
427
|
+
class BoolValue$Type extends runtime_6.MessageType {
|
|
430
428
|
constructor() {
|
|
431
429
|
super("google.protobuf.BoolValue", [
|
|
432
430
|
{ no: 1, name: "value", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
@@ -448,8 +446,8 @@ class BoolValue$Type extends runtime_7.MessageType {
|
|
|
448
446
|
return target;
|
|
449
447
|
}
|
|
450
448
|
create(value) {
|
|
451
|
-
const message =
|
|
452
|
-
|
|
449
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
450
|
+
message.value = false;
|
|
453
451
|
if (value !== undefined)
|
|
454
452
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
455
453
|
return message;
|
|
@@ -488,7 +486,7 @@ class BoolValue$Type extends runtime_7.MessageType {
|
|
|
488
486
|
*/
|
|
489
487
|
exports.BoolValue = new BoolValue$Type();
|
|
490
488
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
491
|
-
class StringValue$Type extends
|
|
489
|
+
class StringValue$Type extends runtime_6.MessageType {
|
|
492
490
|
constructor() {
|
|
493
491
|
super("google.protobuf.StringValue", [
|
|
494
492
|
{ no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
@@ -510,8 +508,8 @@ class StringValue$Type extends runtime_7.MessageType {
|
|
|
510
508
|
return target;
|
|
511
509
|
}
|
|
512
510
|
create(value) {
|
|
513
|
-
const message =
|
|
514
|
-
|
|
511
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
512
|
+
message.value = "";
|
|
515
513
|
if (value !== undefined)
|
|
516
514
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
517
515
|
return message;
|
|
@@ -550,7 +548,7 @@ class StringValue$Type extends runtime_7.MessageType {
|
|
|
550
548
|
*/
|
|
551
549
|
exports.StringValue = new StringValue$Type();
|
|
552
550
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
553
|
-
class BytesValue$Type extends
|
|
551
|
+
class BytesValue$Type extends runtime_6.MessageType {
|
|
554
552
|
constructor() {
|
|
555
553
|
super("google.protobuf.BytesValue", [
|
|
556
554
|
{ no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
@@ -572,8 +570,8 @@ class BytesValue$Type extends runtime_7.MessageType {
|
|
|
572
570
|
return target;
|
|
573
571
|
}
|
|
574
572
|
create(value) {
|
|
575
|
-
const message =
|
|
576
|
-
|
|
573
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
574
|
+
message.value = new Uint8Array(0);
|
|
577
575
|
if (value !== undefined)
|
|
578
576
|
(0, runtime_5.reflectionMergePartial)(this, message, value);
|
|
579
577
|
return message;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties
|
|
9
|
+
*/
|
|
10
|
+
export interface PremiumMarketingComponentProperties {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from protobuf field: string content_identifier = 3
|
|
13
|
+
*/
|
|
14
|
+
contentIdentifier: string;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf oneof: properties
|
|
17
|
+
*/
|
|
18
|
+
properties: {
|
|
19
|
+
oneofKind: "placeholder";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: string placeholder = 1
|
|
22
|
+
*/
|
|
23
|
+
placeholder: string;
|
|
24
|
+
} | {
|
|
25
|
+
oneofKind: "announcementModalVariant1";
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AnnouncementModalVariant1Properties announcement_modal_variant_1 = 2
|
|
28
|
+
*/
|
|
29
|
+
announcementModalVariant1: PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties;
|
|
30
|
+
} | {
|
|
31
|
+
oneofKind: undefined;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard
|
|
36
|
+
*/
|
|
37
|
+
export interface PremiumMarketingComponentProperties_FeatureCard {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf field: string header = 1
|
|
40
|
+
*/
|
|
41
|
+
header: string;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: string pill = 2
|
|
44
|
+
*/
|
|
45
|
+
pill: string;
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf field: string body = 3
|
|
48
|
+
*/
|
|
49
|
+
body: string;
|
|
50
|
+
/**
|
|
51
|
+
* @generated from protobuf field: string image_link = 4
|
|
52
|
+
*/
|
|
53
|
+
imageLink: string;
|
|
54
|
+
/**
|
|
55
|
+
* @generated from protobuf field: string image_link_light_theme = 5
|
|
56
|
+
*/
|
|
57
|
+
imageLinkLightTheme: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.SubscriptionButton
|
|
61
|
+
*/
|
|
62
|
+
export interface PremiumMarketingComponentProperties_SubscriptionButton {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: string copy = 1
|
|
65
|
+
*/
|
|
66
|
+
copy: string;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf field: discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2
|
|
69
|
+
*/
|
|
70
|
+
buttonAction: PremiumMarketingComponentProperties_ButtonAction;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Subtitle
|
|
74
|
+
*/
|
|
75
|
+
export interface PremiumMarketingComponentProperties_Subtitle {
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf field: string link = 1
|
|
78
|
+
*/
|
|
79
|
+
link: string;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf field: string locale = 2
|
|
82
|
+
*/
|
|
83
|
+
locale: string;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from protobuf field: bool is_default = 3
|
|
86
|
+
*/
|
|
87
|
+
isDefault: boolean;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Variant1Storage
|
|
91
|
+
*/
|
|
92
|
+
export interface PremiumMarketingComponentProperties_Variant1Storage {
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf field: map<string, string> hero_art_localized_video_links_dark_theme = 1
|
|
95
|
+
*/
|
|
96
|
+
heroArtLocalizedVideoLinksDarkTheme: {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: map<string, string> hero_art_localized_video_links_light_theme = 2
|
|
101
|
+
*/
|
|
102
|
+
heroArtLocalizedVideoLinksLightTheme: {
|
|
103
|
+
[key: string]: string;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf field: map<string, string> hero_art_video_subtitle_links = 3
|
|
107
|
+
*/
|
|
108
|
+
heroArtVideoSubtitleLinks: {
|
|
109
|
+
[key: string]: string;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AnnouncementModalVariant1Properties
|
|
114
|
+
*/
|
|
115
|
+
export interface PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from protobuf field: string header = 1
|
|
118
|
+
*/
|
|
119
|
+
header: string;
|
|
120
|
+
/**
|
|
121
|
+
* @generated from protobuf field: string subheader = 2
|
|
122
|
+
*/
|
|
123
|
+
subheader: string;
|
|
124
|
+
/**
|
|
125
|
+
* @generated from protobuf field: string video_link = 3
|
|
126
|
+
*/
|
|
127
|
+
videoLink: string;
|
|
128
|
+
/**
|
|
129
|
+
* @generated from protobuf field: string help_article_id = 4
|
|
130
|
+
*/
|
|
131
|
+
helpArticleId: string;
|
|
132
|
+
/**
|
|
133
|
+
* @generated from protobuf field: repeated discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard feature_cards = 5
|
|
134
|
+
*/
|
|
135
|
+
featureCards: PremiumMarketingComponentProperties_FeatureCard[];
|
|
136
|
+
/**
|
|
137
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.SubscriptionButton button = 6
|
|
138
|
+
*/
|
|
139
|
+
button?: PremiumMarketingComponentProperties_SubscriptionButton;
|
|
140
|
+
/**
|
|
141
|
+
* @generated from protobuf field: string dismiss_key = 7
|
|
142
|
+
*/
|
|
143
|
+
dismissKey: string;
|
|
144
|
+
/**
|
|
145
|
+
* @generated from protobuf field: string hero_art_video_link_light_theme = 8
|
|
146
|
+
*/
|
|
147
|
+
heroArtVideoLinkLightTheme: string;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from protobuf field: string hero_art_image_link_dark_theme = 9
|
|
150
|
+
*/
|
|
151
|
+
heroArtImageLinkDarkTheme: string;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from protobuf field: string hero_art_image_link_light_theme = 10
|
|
154
|
+
*/
|
|
155
|
+
heroArtImageLinkLightTheme: string;
|
|
156
|
+
/**
|
|
157
|
+
* @generated from protobuf field: string modal_top_pill = 11
|
|
158
|
+
*/
|
|
159
|
+
modalTopPill: string;
|
|
160
|
+
/**
|
|
161
|
+
* @generated from protobuf field: string body = 12
|
|
162
|
+
*/
|
|
163
|
+
body: string;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from protobuf field: repeated discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Subtitle hero_art_video_subtitles = 13
|
|
166
|
+
*/
|
|
167
|
+
heroArtVideoSubtitles: PremiumMarketingComponentProperties_Subtitle[];
|
|
168
|
+
/**
|
|
169
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Variant1Storage storage = 14
|
|
170
|
+
*/
|
|
171
|
+
storage?: PremiumMarketingComponentProperties_Variant1Storage;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction
|
|
175
|
+
*/
|
|
176
|
+
export declare enum PremiumMarketingComponentProperties_ButtonAction {
|
|
177
|
+
/**
|
|
178
|
+
* @generated from protobuf enum value: BUTTON_ACTION_UNSPECIFIED = 0;
|
|
179
|
+
*/
|
|
180
|
+
UNSPECIFIED = 0,
|
|
181
|
+
/**
|
|
182
|
+
* @generated from protobuf enum value: BUTTON_ACTION_OPEN_MARKETING_PAGE = 1;
|
|
183
|
+
*/
|
|
184
|
+
OPEN_MARKETING_PAGE = 1,
|
|
185
|
+
/**
|
|
186
|
+
* @generated from protobuf enum value: BUTTON_ACTION_OPEN_TIER_2_PAYMENT_MODAL = 2;
|
|
187
|
+
*/
|
|
188
|
+
OPEN_TIER_2_PAYMENT_MODAL = 2,
|
|
189
|
+
/**
|
|
190
|
+
* @generated from protobuf enum value: BUTTON_ACTION_OPEN_TIER_1_PAYMENT_MODAL = 3;
|
|
191
|
+
*/
|
|
192
|
+
OPEN_TIER_1_PAYMENT_MODAL = 3,
|
|
193
|
+
/**
|
|
194
|
+
* @generated from protobuf enum value: BUTTON_ACTION_OPEN_TIER_2_PAYMENT_MODAL_CUSTOM_CONFIRMATION_FOOTER = 4;
|
|
195
|
+
*/
|
|
196
|
+
OPEN_TIER_2_PAYMENT_MODAL_CUSTOM_CONFIRMATION_FOOTER = 4
|
|
197
|
+
}
|
|
198
|
+
declare class PremiumMarketingComponentProperties$Type extends MessageType<PremiumMarketingComponentProperties> {
|
|
199
|
+
constructor();
|
|
200
|
+
create(value?: PartialMessage<PremiumMarketingComponentProperties>): PremiumMarketingComponentProperties;
|
|
201
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties): PremiumMarketingComponentProperties;
|
|
202
|
+
internalBinaryWrite(message: PremiumMarketingComponentProperties, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties
|
|
206
|
+
*/
|
|
207
|
+
export declare const PremiumMarketingComponentProperties: PremiumMarketingComponentProperties$Type;
|
|
208
|
+
declare class PremiumMarketingComponentProperties_FeatureCard$Type extends MessageType<PremiumMarketingComponentProperties_FeatureCard> {
|
|
209
|
+
constructor();
|
|
210
|
+
create(value?: PartialMessage<PremiumMarketingComponentProperties_FeatureCard>): PremiumMarketingComponentProperties_FeatureCard;
|
|
211
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_FeatureCard): PremiumMarketingComponentProperties_FeatureCard;
|
|
212
|
+
internalBinaryWrite(message: PremiumMarketingComponentProperties_FeatureCard, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard
|
|
216
|
+
*/
|
|
217
|
+
export declare const PremiumMarketingComponentProperties_FeatureCard: PremiumMarketingComponentProperties_FeatureCard$Type;
|
|
218
|
+
declare class PremiumMarketingComponentProperties_SubscriptionButton$Type extends MessageType<PremiumMarketingComponentProperties_SubscriptionButton> {
|
|
219
|
+
constructor();
|
|
220
|
+
create(value?: PartialMessage<PremiumMarketingComponentProperties_SubscriptionButton>): PremiumMarketingComponentProperties_SubscriptionButton;
|
|
221
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_SubscriptionButton): PremiumMarketingComponentProperties_SubscriptionButton;
|
|
222
|
+
internalBinaryWrite(message: PremiumMarketingComponentProperties_SubscriptionButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.SubscriptionButton
|
|
226
|
+
*/
|
|
227
|
+
export declare const PremiumMarketingComponentProperties_SubscriptionButton: PremiumMarketingComponentProperties_SubscriptionButton$Type;
|
|
228
|
+
declare class PremiumMarketingComponentProperties_Subtitle$Type extends MessageType<PremiumMarketingComponentProperties_Subtitle> {
|
|
229
|
+
constructor();
|
|
230
|
+
create(value?: PartialMessage<PremiumMarketingComponentProperties_Subtitle>): PremiumMarketingComponentProperties_Subtitle;
|
|
231
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_Subtitle): PremiumMarketingComponentProperties_Subtitle;
|
|
232
|
+
internalBinaryWrite(message: PremiumMarketingComponentProperties_Subtitle, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Subtitle
|
|
236
|
+
*/
|
|
237
|
+
export declare const PremiumMarketingComponentProperties_Subtitle: PremiumMarketingComponentProperties_Subtitle$Type;
|
|
238
|
+
declare class PremiumMarketingComponentProperties_Variant1Storage$Type extends MessageType<PremiumMarketingComponentProperties_Variant1Storage> {
|
|
239
|
+
constructor();
|
|
240
|
+
create(value?: PartialMessage<PremiumMarketingComponentProperties_Variant1Storage>): PremiumMarketingComponentProperties_Variant1Storage;
|
|
241
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_Variant1Storage): PremiumMarketingComponentProperties_Variant1Storage;
|
|
242
|
+
private binaryReadMap1;
|
|
243
|
+
private binaryReadMap2;
|
|
244
|
+
private binaryReadMap3;
|
|
245
|
+
internalBinaryWrite(message: PremiumMarketingComponentProperties_Variant1Storage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Variant1Storage
|
|
249
|
+
*/
|
|
250
|
+
export declare const PremiumMarketingComponentProperties_Variant1Storage: PremiumMarketingComponentProperties_Variant1Storage$Type;
|
|
251
|
+
declare class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Type extends MessageType<PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties> {
|
|
252
|
+
constructor();
|
|
253
|
+
create(value?: PartialMessage<PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties>): PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties;
|
|
254
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties): PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties;
|
|
255
|
+
internalBinaryWrite(message: PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AnnouncementModalVariant1Properties
|
|
259
|
+
*/
|
|
260
|
+
export declare const PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties: PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Type;
|
|
261
|
+
export {};
|