@devvit/protos 0.11.0-next-2024-07-16-5a9564e7d.0 → 0.11.0-next-2024-07-16-6c7d6e68a.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/protos",
3
- "version": "0.11.0-next-2024-07-16-5a9564e7d.0",
3
+ "version": "0.11.0-next-2024-07-16-6c7d6e68a.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,9 +44,9 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@ampproject/filesize": "4.3.0",
47
- "@devvit/eslint-config": "0.11.0-next-2024-07-16-5a9564e7d.0",
48
- "@devvit/repo-tools": "0.11.0-next-2024-07-16-5a9564e7d.0",
49
- "@devvit/tsconfig": "0.11.0-next-2024-07-16-5a9564e7d.0",
47
+ "@devvit/eslint-config": "0.11.0-next-2024-07-16-6c7d6e68a.0",
48
+ "@devvit/repo-tools": "0.11.0-next-2024-07-16-6c7d6e68a.0",
49
+ "@devvit/tsconfig": "0.11.0-next-2024-07-16-6c7d6e68a.0",
50
50
  "@types/long": "4.0.2",
51
51
  "chokidar-cli": "3.0.0",
52
52
  "esbuild": "0.18.12",
@@ -79,5 +79,5 @@
79
79
  ]
80
80
  }
81
81
  },
82
- "gitHead": "f35c3ad90885b664a253781b294bb3c451b151d7"
82
+ "gitHead": "4018e7f04b9a1015af77724a9feb2413f3f8fab8"
83
83
  }
@@ -10,35 +10,40 @@ option java_package = "com.reddit.devvit.actor.payments";
10
10
  // PaymentProcessor is an actor type for exposing hooks that are triggered
11
11
  // as part of product order flow.
12
12
  service PaymentProcessor {
13
- // OnProcessing is called while the order is in-flight by the Payments platform.
13
+ // FulfillOrder is called while the order is in-flight by the Payments platform.
14
14
  // This give the opportunity for a developer to acknowlege and order has been
15
15
  // fulfilled or reject it
16
- rpc OnProcessing(OrderProcessing) returns (ProcessingHandlerResult);
16
+ rpc FulfillOrder(FulfillOrderRequest) returns (FulfillOrderResponse);
17
17
 
18
- // OnRefund is called when an order is refunded. This happens asynchnously
18
+ // RefundOrder is called when an order is refunded. This happens asynchnously
19
19
  // outside the main order flow
20
- rpc OnRefund(OrderRefund) returns (RefundHandlerResult);
20
+ rpc RefundOrder(RefundOrderRequest) returns (RefundOrderResponse);
21
21
  }
22
22
 
23
- message OrderProcessing {
23
+ message FulfillOrderRequest {
24
24
  devvit.payments.v1alpha.Order order = 1;
25
25
  }
26
26
 
27
- message OrderRefund {
27
+ message RefundOrderRequest {
28
28
  devvit.payments.v1alpha.Order order = 1;
29
29
  }
30
30
 
31
- // ProcessingHandlerResult contains whether or not the order is acknowledged
31
+ message FulfillOrderResponse {
32
+ // the keys in this map are the SKU of the product
33
+ map<string, FulfillOrderProductResult> results = 1;
34
+ }
35
+
36
+ // FulfillOrderProductResult contains whether or not the processing for a product is acknowledged
32
37
  // or rejected. This can also be empty indicating that the developer will
33
- // acknowledge the order asynchnously, but not outright reject it now.
34
- message ProcessingHandlerResult {
38
+ // acknowledge the delivery of the product asynchnously, but not outright reject it now.
39
+ message FulfillOrderProductResult {
35
40
  oneof result {
36
- // the order has been fulfilled
41
+ // the product has been acknowledged and delivered
37
42
  bool acknowledged = 1;
38
- // the order was rejected with a reason
43
+ // the reason for rejecting product delivery
39
44
  string rejection_reason = 2;
40
45
  }
41
46
  }
42
47
 
43
48
  // RefundHandlerResult is empty. Placeholder for future functionality
44
- message RefundHandlerResult {}
49
+ message RefundOrderResponse {}
@@ -33,6 +33,7 @@ message WaitlistRegisterUserRequest {
33
33
  map<string, ProgrammingExperienceLevel> programming_experience = 6;
34
34
  string apps_wanted = 7;
35
35
  // "What apps or customizations would you like to see in your subreddit(s)?"
36
+ bool does_consent_to_email = 8;
36
37
  }
37
38
 
38
39
  message WaitlistRegisterUserResponse {
@@ -45,6 +46,8 @@ message GetCurrentUserStatusResponse {
45
46
  devvit.dev_portal.admin.WaitlistStatus waitlist_status = 1;
46
47
  int32 accepted_terms_version = 2;
47
48
  int32 current_terms_version = 3;
49
+ bool has_verified_email = 4;
50
+ bool does_consent_to_email = 5;
48
51
  }
49
52
 
50
53
  service Waitlist {
@@ -6,61 +6,89 @@
6
6
  import _m0 from 'protobufjs/minimal.js';
7
7
  import { Metadata } from "../../../../../lib/Types.js";
8
8
  import { Order } from '../../../payments/v1alpha/order.js';
9
- export interface OrderProcessing {
9
+ export interface FulfillOrderRequest {
10
10
  order?: Order | undefined;
11
11
  }
12
- export interface OrderRefund {
12
+ export interface RefundOrderRequest {
13
13
  order?: Order | undefined;
14
14
  }
15
+ export interface FulfillOrderResponse {
16
+ /** the keys in this map are the SKU of the product */
17
+ results: {
18
+ [key: string]: FulfillOrderProductResult;
19
+ };
20
+ }
21
+ export interface FulfillOrderResponse_ResultsEntry {
22
+ key: string;
23
+ value?: FulfillOrderProductResult | undefined;
24
+ }
15
25
  /**
16
- * ProcessingHandlerResult contains whether or not the order is acknowledged
26
+ * FulfillOrderProductResult contains whether or not the processing for a product is acknowledged
17
27
  * or rejected. This can also be empty indicating that the developer will
18
- * acknowledge the order asynchnously, but not outright reject it now.
28
+ * acknowledge the delivery of the product asynchnously, but not outright reject it now.
19
29
  */
20
- export interface ProcessingHandlerResult {
21
- /** the order has been fulfilled */
30
+ export interface FulfillOrderProductResult {
31
+ /** the product has been acknowledged and delivered */
22
32
  acknowledged?: boolean | undefined;
23
- /** the order was rejected with a reason */
33
+ /** the reason for rejecting product delivery */
24
34
  rejectionReason?: string | undefined;
25
35
  }
26
36
  /** RefundHandlerResult is empty. Placeholder for future functionality */
27
- export interface RefundHandlerResult {
37
+ export interface RefundOrderResponse {
28
38
  }
29
- export declare const OrderProcessing: {
30
- $type: "devvit.actor.payments.v1alpha.OrderProcessing";
31
- encode(message: OrderProcessing, writer?: _m0.Writer): _m0.Writer;
32
- decode(input: _m0.Reader | Uint8Array, length?: number): OrderProcessing;
33
- fromJSON(object: any): OrderProcessing;
34
- toJSON(message: OrderProcessing): unknown;
35
- create(base?: DeepPartial<OrderProcessing>): OrderProcessing;
36
- fromPartial(object: DeepPartial<OrderProcessing>): OrderProcessing;
39
+ export declare const FulfillOrderRequest: {
40
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderRequest";
41
+ encode(message: FulfillOrderRequest, writer?: _m0.Writer): _m0.Writer;
42
+ decode(input: _m0.Reader | Uint8Array, length?: number): FulfillOrderRequest;
43
+ fromJSON(object: any): FulfillOrderRequest;
44
+ toJSON(message: FulfillOrderRequest): unknown;
45
+ create(base?: DeepPartial<FulfillOrderRequest>): FulfillOrderRequest;
46
+ fromPartial(object: DeepPartial<FulfillOrderRequest>): FulfillOrderRequest;
47
+ };
48
+ export declare const RefundOrderRequest: {
49
+ $type: "devvit.actor.payments.v1alpha.RefundOrderRequest";
50
+ encode(message: RefundOrderRequest, writer?: _m0.Writer): _m0.Writer;
51
+ decode(input: _m0.Reader | Uint8Array, length?: number): RefundOrderRequest;
52
+ fromJSON(object: any): RefundOrderRequest;
53
+ toJSON(message: RefundOrderRequest): unknown;
54
+ create(base?: DeepPartial<RefundOrderRequest>): RefundOrderRequest;
55
+ fromPartial(object: DeepPartial<RefundOrderRequest>): RefundOrderRequest;
56
+ };
57
+ export declare const FulfillOrderResponse: {
58
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderResponse";
59
+ encode(message: FulfillOrderResponse, writer?: _m0.Writer): _m0.Writer;
60
+ decode(input: _m0.Reader | Uint8Array, length?: number): FulfillOrderResponse;
61
+ fromJSON(object: any): FulfillOrderResponse;
62
+ toJSON(message: FulfillOrderResponse): unknown;
63
+ create(base?: DeepPartial<FulfillOrderResponse>): FulfillOrderResponse;
64
+ fromPartial(object: DeepPartial<FulfillOrderResponse>): FulfillOrderResponse;
37
65
  };
38
- export declare const OrderRefund: {
39
- $type: "devvit.actor.payments.v1alpha.OrderRefund";
40
- encode(message: OrderRefund, writer?: _m0.Writer): _m0.Writer;
41
- decode(input: _m0.Reader | Uint8Array, length?: number): OrderRefund;
42
- fromJSON(object: any): OrderRefund;
43
- toJSON(message: OrderRefund): unknown;
44
- create(base?: DeepPartial<OrderRefund>): OrderRefund;
45
- fromPartial(object: DeepPartial<OrderRefund>): OrderRefund;
66
+ export declare const FulfillOrderResponse_ResultsEntry: {
67
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderResponse.ResultsEntry";
68
+ encode(message: FulfillOrderResponse_ResultsEntry, writer?: _m0.Writer): _m0.Writer;
69
+ decode(input: _m0.Reader | Uint8Array, length?: number): FulfillOrderResponse_ResultsEntry;
70
+ fromJSON(object: any): FulfillOrderResponse_ResultsEntry;
71
+ toJSON(message: FulfillOrderResponse_ResultsEntry): unknown;
72
+ create(base?: DeepPartial<FulfillOrderResponse_ResultsEntry>): FulfillOrderResponse_ResultsEntry;
73
+ fromPartial(object: DeepPartial<FulfillOrderResponse_ResultsEntry>): FulfillOrderResponse_ResultsEntry;
46
74
  };
47
- export declare const ProcessingHandlerResult: {
48
- $type: "devvit.actor.payments.v1alpha.ProcessingHandlerResult";
49
- encode(message: ProcessingHandlerResult, writer?: _m0.Writer): _m0.Writer;
50
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessingHandlerResult;
51
- fromJSON(object: any): ProcessingHandlerResult;
52
- toJSON(message: ProcessingHandlerResult): unknown;
53
- create(base?: DeepPartial<ProcessingHandlerResult>): ProcessingHandlerResult;
54
- fromPartial(object: DeepPartial<ProcessingHandlerResult>): ProcessingHandlerResult;
75
+ export declare const FulfillOrderProductResult: {
76
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderProductResult";
77
+ encode(message: FulfillOrderProductResult, writer?: _m0.Writer): _m0.Writer;
78
+ decode(input: _m0.Reader | Uint8Array, length?: number): FulfillOrderProductResult;
79
+ fromJSON(object: any): FulfillOrderProductResult;
80
+ toJSON(message: FulfillOrderProductResult): unknown;
81
+ create(base?: DeepPartial<FulfillOrderProductResult>): FulfillOrderProductResult;
82
+ fromPartial(object: DeepPartial<FulfillOrderProductResult>): FulfillOrderProductResult;
55
83
  };
56
- export declare const RefundHandlerResult: {
57
- $type: "devvit.actor.payments.v1alpha.RefundHandlerResult";
58
- encode(_: RefundHandlerResult, writer?: _m0.Writer): _m0.Writer;
59
- decode(input: _m0.Reader | Uint8Array, length?: number): RefundHandlerResult;
60
- fromJSON(_: any): RefundHandlerResult;
61
- toJSON(_: RefundHandlerResult): unknown;
62
- create(base?: DeepPartial<RefundHandlerResult>): RefundHandlerResult;
63
- fromPartial(_: DeepPartial<RefundHandlerResult>): RefundHandlerResult;
84
+ export declare const RefundOrderResponse: {
85
+ $type: "devvit.actor.payments.v1alpha.RefundOrderResponse";
86
+ encode(_: RefundOrderResponse, writer?: _m0.Writer): _m0.Writer;
87
+ decode(input: _m0.Reader | Uint8Array, length?: number): RefundOrderResponse;
88
+ fromJSON(_: any): RefundOrderResponse;
89
+ toJSON(_: RefundOrderResponse): unknown;
90
+ create(base?: DeepPartial<RefundOrderResponse>): RefundOrderResponse;
91
+ fromPartial(_: DeepPartial<RefundOrderResponse>): RefundOrderResponse;
64
92
  };
65
93
  /**
66
94
  * PaymentProcessor is an actor type for exposing hooks that are triggered
@@ -68,16 +96,16 @@ export declare const RefundHandlerResult: {
68
96
  */
69
97
  export interface PaymentProcessor {
70
98
  /**
71
- * OnProcessing is called while the order is in-flight by the Payments platform.
99
+ * FulfillOrder is called while the order is in-flight by the Payments platform.
72
100
  * This give the opportunity for a developer to acknowlege and order has been
73
101
  * fulfilled or reject it
74
102
  */
75
- OnProcessing(request: OrderProcessing, metadata?: Metadata): Promise<ProcessingHandlerResult>;
103
+ FulfillOrder(request: FulfillOrderRequest, metadata?: Metadata): Promise<FulfillOrderResponse>;
76
104
  /**
77
- * OnRefund is called when an order is refunded. This happens asynchnously
105
+ * RefundOrder is called when an order is refunded. This happens asynchnously
78
106
  * outside the main order flow
79
107
  */
80
- OnRefund(request: OrderRefund, metadata?: Metadata): Promise<RefundHandlerResult>;
108
+ RefundOrder(request: RefundOrderRequest, metadata?: Metadata): Promise<RefundOrderResponse>;
81
109
  }
82
110
  export declare const PaymentProcessorServiceName = "devvit.actor.payments.v1alpha.PaymentProcessor";
83
111
  export declare class PaymentProcessorClientImpl implements PaymentProcessor {
@@ -86,8 +114,8 @@ export declare class PaymentProcessorClientImpl implements PaymentProcessor {
86
114
  constructor(rpc: Rpc, opts?: {
87
115
  service?: string;
88
116
  });
89
- OnProcessing(request: OrderProcessing, metadata?: Metadata): Promise<ProcessingHandlerResult>;
90
- OnRefund(request: OrderRefund, metadata?: Metadata): Promise<RefundHandlerResult>;
117
+ FulfillOrder(request: FulfillOrderRequest, metadata?: Metadata): Promise<FulfillOrderResponse>;
118
+ RefundOrder(request: RefundOrderRequest, metadata?: Metadata): Promise<RefundOrderResponse>;
91
119
  }
92
120
  /**
93
121
  * PaymentProcessor is an actor type for exposing hooks that are triggered
@@ -99,58 +127,58 @@ export declare const PaymentProcessorDefinition: {
99
127
  readonly fullName: "devvit.actor.payments.v1alpha.PaymentProcessor";
100
128
  readonly methods: {
101
129
  /**
102
- * OnProcessing is called while the order is in-flight by the Payments platform.
130
+ * FulfillOrder is called while the order is in-flight by the Payments platform.
103
131
  * This give the opportunity for a developer to acknowlege and order has been
104
132
  * fulfilled or reject it
105
133
  */
106
- readonly onProcessing: {
107
- readonly name: "OnProcessing";
134
+ readonly fulfillOrder: {
135
+ readonly name: "FulfillOrder";
108
136
  readonly requestType: {
109
- $type: "devvit.actor.payments.v1alpha.OrderProcessing";
110
- encode(message: OrderProcessing, writer?: _m0.Writer): _m0.Writer;
111
- decode(input: _m0.Reader | Uint8Array, length?: number): OrderProcessing;
112
- fromJSON(object: any): OrderProcessing;
113
- toJSON(message: OrderProcessing): unknown;
114
- create(base?: DeepPartial<OrderProcessing>): OrderProcessing;
115
- fromPartial(object: DeepPartial<OrderProcessing>): OrderProcessing;
137
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderRequest";
138
+ encode(message: FulfillOrderRequest, writer?: _m0.Writer): _m0.Writer;
139
+ decode(input: _m0.Reader | Uint8Array, length?: number): FulfillOrderRequest;
140
+ fromJSON(object: any): FulfillOrderRequest;
141
+ toJSON(message: FulfillOrderRequest): unknown;
142
+ create(base?: DeepPartial<FulfillOrderRequest>): FulfillOrderRequest;
143
+ fromPartial(object: DeepPartial<FulfillOrderRequest>): FulfillOrderRequest;
116
144
  };
117
145
  readonly requestStream: false;
118
146
  readonly responseType: {
119
- $type: "devvit.actor.payments.v1alpha.ProcessingHandlerResult";
120
- encode(message: ProcessingHandlerResult, writer?: _m0.Writer): _m0.Writer;
121
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessingHandlerResult;
122
- fromJSON(object: any): ProcessingHandlerResult;
123
- toJSON(message: ProcessingHandlerResult): unknown;
124
- create(base?: DeepPartial<ProcessingHandlerResult>): ProcessingHandlerResult;
125
- fromPartial(object: DeepPartial<ProcessingHandlerResult>): ProcessingHandlerResult;
147
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderResponse";
148
+ encode(message: FulfillOrderResponse, writer?: _m0.Writer): _m0.Writer;
149
+ decode(input: _m0.Reader | Uint8Array, length?: number): FulfillOrderResponse;
150
+ fromJSON(object: any): FulfillOrderResponse;
151
+ toJSON(message: FulfillOrderResponse): unknown;
152
+ create(base?: DeepPartial<FulfillOrderResponse>): FulfillOrderResponse;
153
+ fromPartial(object: DeepPartial<FulfillOrderResponse>): FulfillOrderResponse;
126
154
  };
127
155
  readonly responseStream: false;
128
156
  readonly options: {};
129
157
  };
130
158
  /**
131
- * OnRefund is called when an order is refunded. This happens asynchnously
159
+ * RefundOrder is called when an order is refunded. This happens asynchnously
132
160
  * outside the main order flow
133
161
  */
134
- readonly onRefund: {
135
- readonly name: "OnRefund";
162
+ readonly refundOrder: {
163
+ readonly name: "RefundOrder";
136
164
  readonly requestType: {
137
- $type: "devvit.actor.payments.v1alpha.OrderRefund";
138
- encode(message: OrderRefund, writer?: _m0.Writer): _m0.Writer;
139
- decode(input: _m0.Reader | Uint8Array, length?: number): OrderRefund;
140
- fromJSON(object: any): OrderRefund;
141
- toJSON(message: OrderRefund): unknown;
142
- create(base?: DeepPartial<OrderRefund>): OrderRefund;
143
- fromPartial(object: DeepPartial<OrderRefund>): OrderRefund;
165
+ $type: "devvit.actor.payments.v1alpha.RefundOrderRequest";
166
+ encode(message: RefundOrderRequest, writer?: _m0.Writer): _m0.Writer;
167
+ decode(input: _m0.Reader | Uint8Array, length?: number): RefundOrderRequest;
168
+ fromJSON(object: any): RefundOrderRequest;
169
+ toJSON(message: RefundOrderRequest): unknown;
170
+ create(base?: DeepPartial<RefundOrderRequest>): RefundOrderRequest;
171
+ fromPartial(object: DeepPartial<RefundOrderRequest>): RefundOrderRequest;
144
172
  };
145
173
  readonly requestStream: false;
146
174
  readonly responseType: {
147
- $type: "devvit.actor.payments.v1alpha.RefundHandlerResult";
148
- encode(_: RefundHandlerResult, writer?: _m0.Writer): _m0.Writer;
149
- decode(input: _m0.Reader | Uint8Array, length?: number): RefundHandlerResult;
150
- fromJSON(_: any): RefundHandlerResult;
151
- toJSON(_: RefundHandlerResult): unknown;
152
- create(base?: DeepPartial<RefundHandlerResult>): RefundHandlerResult;
153
- fromPartial(_: DeepPartial<RefundHandlerResult>): RefundHandlerResult;
175
+ $type: "devvit.actor.payments.v1alpha.RefundOrderResponse";
176
+ encode(_: RefundOrderResponse, writer?: _m0.Writer): _m0.Writer;
177
+ decode(input: _m0.Reader | Uint8Array, length?: number): RefundOrderResponse;
178
+ fromJSON(_: any): RefundOrderResponse;
179
+ toJSON(_: RefundOrderResponse): unknown;
180
+ create(base?: DeepPartial<RefundOrderResponse>): RefundOrderResponse;
181
+ fromPartial(_: DeepPartial<RefundOrderResponse>): RefundOrderResponse;
154
182
  };
155
183
  readonly responseStream: false;
156
184
  readonly options: {};
@@ -1 +1 @@
1
- {"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/actor/payments/v1alpha/payments.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;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CAAC,GAAG,kBAAkB;;;;;0BAmQ9D,mBAAmB,WAAU,IAAI,MAAM,GAAyB,IAAI,MAAM;8BAItE,IAAI,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,mBAAmB;4BAgBhE,GAAG,GAAG,mBAAmB;0BAI3B,mBAAmB,GAAG,OAAO;8BAKzB,YAAY,mBAAmB,CAAC,GAAG,mBAAmB;+BAGrD,YAAY,mBAAmB,CAAC,GAAG,mBAAmB;;;;;;CAoF7D,CAAC;AAEX,UAAU,GAAG;IACX,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACtG;AAED,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACvC,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -7,11 +7,11 @@
7
7
  import _m0 from 'protobufjs/minimal.js';
8
8
  import { messageTypeRegistry } from '../../../../typeRegistry.js';
9
9
  import { Order } from '../../../payments/v1alpha/order.js';
10
- function createBaseOrderProcessing() {
10
+ function createBaseFulfillOrderRequest() {
11
11
  return { order: undefined };
12
12
  }
13
- export const OrderProcessing = {
14
- $type: "devvit.actor.payments.v1alpha.OrderProcessing",
13
+ export const FulfillOrderRequest = {
14
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderRequest",
15
15
  encode(message, writer = _m0.Writer.create()) {
16
16
  if (message.order !== undefined) {
17
17
  Order.encode(message.order, writer.uint32(10).fork()).ldelim();
@@ -21,7 +21,7 @@ export const OrderProcessing = {
21
21
  decode(input, length) {
22
22
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23
23
  let end = length === undefined ? reader.len : reader.pos + length;
24
- const message = createBaseOrderProcessing();
24
+ const message = createBaseFulfillOrderRequest();
25
25
  while (reader.pos < end) {
26
26
  const tag = reader.uint32();
27
27
  switch (tag >>> 3) {
@@ -50,20 +50,20 @@ export const OrderProcessing = {
50
50
  return obj;
51
51
  },
52
52
  create(base) {
53
- return OrderProcessing.fromPartial(base ?? {});
53
+ return FulfillOrderRequest.fromPartial(base ?? {});
54
54
  },
55
55
  fromPartial(object) {
56
- const message = createBaseOrderProcessing();
56
+ const message = createBaseFulfillOrderRequest();
57
57
  message.order = (object.order !== undefined && object.order !== null) ? Order.fromPartial(object.order) : undefined;
58
58
  return message;
59
59
  },
60
60
  };
61
- messageTypeRegistry.set(OrderProcessing.$type, OrderProcessing);
62
- function createBaseOrderRefund() {
61
+ messageTypeRegistry.set(FulfillOrderRequest.$type, FulfillOrderRequest);
62
+ function createBaseRefundOrderRequest() {
63
63
  return { order: undefined };
64
64
  }
65
- export const OrderRefund = {
66
- $type: "devvit.actor.payments.v1alpha.OrderRefund",
65
+ export const RefundOrderRequest = {
66
+ $type: "devvit.actor.payments.v1alpha.RefundOrderRequest",
67
67
  encode(message, writer = _m0.Writer.create()) {
68
68
  if (message.order !== undefined) {
69
69
  Order.encode(message.order, writer.uint32(10).fork()).ldelim();
@@ -73,7 +73,7 @@ export const OrderRefund = {
73
73
  decode(input, length) {
74
74
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
75
75
  let end = length === undefined ? reader.len : reader.pos + length;
76
- const message = createBaseOrderRefund();
76
+ const message = createBaseRefundOrderRequest();
77
77
  while (reader.pos < end) {
78
78
  const tag = reader.uint32();
79
79
  switch (tag >>> 3) {
@@ -102,20 +102,163 @@ export const OrderRefund = {
102
102
  return obj;
103
103
  },
104
104
  create(base) {
105
- return OrderRefund.fromPartial(base ?? {});
105
+ return RefundOrderRequest.fromPartial(base ?? {});
106
106
  },
107
107
  fromPartial(object) {
108
- const message = createBaseOrderRefund();
108
+ const message = createBaseRefundOrderRequest();
109
109
  message.order = (object.order !== undefined && object.order !== null) ? Order.fromPartial(object.order) : undefined;
110
110
  return message;
111
111
  },
112
112
  };
113
- messageTypeRegistry.set(OrderRefund.$type, OrderRefund);
114
- function createBaseProcessingHandlerResult() {
113
+ messageTypeRegistry.set(RefundOrderRequest.$type, RefundOrderRequest);
114
+ function createBaseFulfillOrderResponse() {
115
+ return { results: {} };
116
+ }
117
+ export const FulfillOrderResponse = {
118
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderResponse",
119
+ encode(message, writer = _m0.Writer.create()) {
120
+ Object.entries(message.results).forEach(([key, value]) => {
121
+ FulfillOrderResponse_ResultsEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
122
+ });
123
+ return writer;
124
+ },
125
+ decode(input, length) {
126
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
127
+ let end = length === undefined ? reader.len : reader.pos + length;
128
+ const message = createBaseFulfillOrderResponse();
129
+ while (reader.pos < end) {
130
+ const tag = reader.uint32();
131
+ switch (tag >>> 3) {
132
+ case 1:
133
+ if (tag !== 10) {
134
+ break;
135
+ }
136
+ const entry1 = FulfillOrderResponse_ResultsEntry.decode(reader, reader.uint32());
137
+ if (entry1.value !== undefined) {
138
+ message.results[entry1.key] = entry1.value;
139
+ }
140
+ continue;
141
+ }
142
+ if ((tag & 7) === 4 || tag === 0) {
143
+ break;
144
+ }
145
+ reader.skipType(tag & 7);
146
+ }
147
+ return message;
148
+ },
149
+ fromJSON(object) {
150
+ return {
151
+ results: isObject(object.results)
152
+ ? Object.entries(object.results).reduce((acc, [key, value]) => {
153
+ acc[key] = FulfillOrderProductResult.fromJSON(value);
154
+ return acc;
155
+ }, {})
156
+ : {},
157
+ };
158
+ },
159
+ toJSON(message) {
160
+ const obj = {};
161
+ if (message.results) {
162
+ const entries = Object.entries(message.results);
163
+ if (entries.length > 0) {
164
+ obj.results = {};
165
+ entries.forEach(([k, v]) => {
166
+ obj.results[k] = FulfillOrderProductResult.toJSON(v);
167
+ });
168
+ }
169
+ }
170
+ return obj;
171
+ },
172
+ create(base) {
173
+ return FulfillOrderResponse.fromPartial(base ?? {});
174
+ },
175
+ fromPartial(object) {
176
+ const message = createBaseFulfillOrderResponse();
177
+ message.results = Object.entries(object.results ?? {}).reduce((acc, [key, value]) => {
178
+ if (value !== undefined) {
179
+ acc[key] = FulfillOrderProductResult.fromPartial(value);
180
+ }
181
+ return acc;
182
+ }, {});
183
+ return message;
184
+ },
185
+ };
186
+ messageTypeRegistry.set(FulfillOrderResponse.$type, FulfillOrderResponse);
187
+ function createBaseFulfillOrderResponse_ResultsEntry() {
188
+ return { key: "", value: undefined };
189
+ }
190
+ export const FulfillOrderResponse_ResultsEntry = {
191
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderResponse.ResultsEntry",
192
+ encode(message, writer = _m0.Writer.create()) {
193
+ if (message.key !== "") {
194
+ writer.uint32(10).string(message.key);
195
+ }
196
+ if (message.value !== undefined) {
197
+ FulfillOrderProductResult.encode(message.value, writer.uint32(18).fork()).ldelim();
198
+ }
199
+ return writer;
200
+ },
201
+ decode(input, length) {
202
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
203
+ let end = length === undefined ? reader.len : reader.pos + length;
204
+ const message = createBaseFulfillOrderResponse_ResultsEntry();
205
+ while (reader.pos < end) {
206
+ const tag = reader.uint32();
207
+ switch (tag >>> 3) {
208
+ case 1:
209
+ if (tag !== 10) {
210
+ break;
211
+ }
212
+ message.key = reader.string();
213
+ continue;
214
+ case 2:
215
+ if (tag !== 18) {
216
+ break;
217
+ }
218
+ message.value = FulfillOrderProductResult.decode(reader, reader.uint32());
219
+ continue;
220
+ }
221
+ if ((tag & 7) === 4 || tag === 0) {
222
+ break;
223
+ }
224
+ reader.skipType(tag & 7);
225
+ }
226
+ return message;
227
+ },
228
+ fromJSON(object) {
229
+ return {
230
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
231
+ value: isSet(object.value) ? FulfillOrderProductResult.fromJSON(object.value) : undefined,
232
+ };
233
+ },
234
+ toJSON(message) {
235
+ const obj = {};
236
+ if (message.key !== "") {
237
+ obj.key = message.key;
238
+ }
239
+ if (message.value !== undefined) {
240
+ obj.value = FulfillOrderProductResult.toJSON(message.value);
241
+ }
242
+ return obj;
243
+ },
244
+ create(base) {
245
+ return FulfillOrderResponse_ResultsEntry.fromPartial(base ?? {});
246
+ },
247
+ fromPartial(object) {
248
+ const message = createBaseFulfillOrderResponse_ResultsEntry();
249
+ message.key = object.key ?? "";
250
+ message.value = (object.value !== undefined && object.value !== null)
251
+ ? FulfillOrderProductResult.fromPartial(object.value)
252
+ : undefined;
253
+ return message;
254
+ },
255
+ };
256
+ messageTypeRegistry.set(FulfillOrderResponse_ResultsEntry.$type, FulfillOrderResponse_ResultsEntry);
257
+ function createBaseFulfillOrderProductResult() {
115
258
  return { acknowledged: undefined, rejectionReason: undefined };
116
259
  }
117
- export const ProcessingHandlerResult = {
118
- $type: "devvit.actor.payments.v1alpha.ProcessingHandlerResult",
260
+ export const FulfillOrderProductResult = {
261
+ $type: "devvit.actor.payments.v1alpha.FulfillOrderProductResult",
119
262
  encode(message, writer = _m0.Writer.create()) {
120
263
  if (message.acknowledged !== undefined) {
121
264
  writer.uint32(8).bool(message.acknowledged);
@@ -128,7 +271,7 @@ export const ProcessingHandlerResult = {
128
271
  decode(input, length) {
129
272
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
130
273
  let end = length === undefined ? reader.len : reader.pos + length;
131
- const message = createBaseProcessingHandlerResult();
274
+ const message = createBaseFulfillOrderProductResult();
132
275
  while (reader.pos < end) {
133
276
  const tag = reader.uint32();
134
277
  switch (tag >>> 3) {
@@ -169,28 +312,28 @@ export const ProcessingHandlerResult = {
169
312
  return obj;
170
313
  },
171
314
  create(base) {
172
- return ProcessingHandlerResult.fromPartial(base ?? {});
315
+ return FulfillOrderProductResult.fromPartial(base ?? {});
173
316
  },
174
317
  fromPartial(object) {
175
- const message = createBaseProcessingHandlerResult();
318
+ const message = createBaseFulfillOrderProductResult();
176
319
  message.acknowledged = object.acknowledged ?? undefined;
177
320
  message.rejectionReason = object.rejectionReason ?? undefined;
178
321
  return message;
179
322
  },
180
323
  };
181
- messageTypeRegistry.set(ProcessingHandlerResult.$type, ProcessingHandlerResult);
182
- function createBaseRefundHandlerResult() {
324
+ messageTypeRegistry.set(FulfillOrderProductResult.$type, FulfillOrderProductResult);
325
+ function createBaseRefundOrderResponse() {
183
326
  return {};
184
327
  }
185
- export const RefundHandlerResult = {
186
- $type: "devvit.actor.payments.v1alpha.RefundHandlerResult",
328
+ export const RefundOrderResponse = {
329
+ $type: "devvit.actor.payments.v1alpha.RefundOrderResponse",
187
330
  encode(_, writer = _m0.Writer.create()) {
188
331
  return writer;
189
332
  },
190
333
  decode(input, length) {
191
334
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
192
335
  let end = length === undefined ? reader.len : reader.pos + length;
193
- const message = createBaseRefundHandlerResult();
336
+ const message = createBaseRefundOrderResponse();
194
337
  while (reader.pos < end) {
195
338
  const tag = reader.uint32();
196
339
  switch (tag >>> 3) {
@@ -210,31 +353,31 @@ export const RefundHandlerResult = {
210
353
  return obj;
211
354
  },
212
355
  create(base) {
213
- return RefundHandlerResult.fromPartial(base ?? {});
356
+ return RefundOrderResponse.fromPartial(base ?? {});
214
357
  },
215
358
  fromPartial(_) {
216
- const message = createBaseRefundHandlerResult();
359
+ const message = createBaseRefundOrderResponse();
217
360
  return message;
218
361
  },
219
362
  };
220
- messageTypeRegistry.set(RefundHandlerResult.$type, RefundHandlerResult);
363
+ messageTypeRegistry.set(RefundOrderResponse.$type, RefundOrderResponse);
221
364
  export const PaymentProcessorServiceName = "devvit.actor.payments.v1alpha.PaymentProcessor";
222
365
  export class PaymentProcessorClientImpl {
223
366
  constructor(rpc, opts) {
224
367
  this.service = opts?.service || PaymentProcessorServiceName;
225
368
  this.rpc = rpc;
226
- this.OnProcessing = this.OnProcessing.bind(this);
227
- this.OnRefund = this.OnRefund.bind(this);
369
+ this.FulfillOrder = this.FulfillOrder.bind(this);
370
+ this.RefundOrder = this.RefundOrder.bind(this);
228
371
  }
229
- OnProcessing(request, metadata) {
230
- const data = OrderProcessing.encode(request).finish();
231
- const promise = this.rpc.request(this.service, "OnProcessing", data, metadata);
232
- return promise.then((data) => ProcessingHandlerResult.decode(_m0.Reader.create(data)));
372
+ FulfillOrder(request, metadata) {
373
+ const data = FulfillOrderRequest.encode(request).finish();
374
+ const promise = this.rpc.request(this.service, "FulfillOrder", data, metadata);
375
+ return promise.then((data) => FulfillOrderResponse.decode(_m0.Reader.create(data)));
233
376
  }
234
- OnRefund(request, metadata) {
235
- const data = OrderRefund.encode(request).finish();
236
- const promise = this.rpc.request(this.service, "OnRefund", data, metadata);
237
- return promise.then((data) => RefundHandlerResult.decode(_m0.Reader.create(data)));
377
+ RefundOrder(request, metadata) {
378
+ const data = RefundOrderRequest.encode(request).finish();
379
+ const promise = this.rpc.request(this.service, "RefundOrder", data, metadata);
380
+ return promise.then((data) => RefundOrderResponse.decode(_m0.Reader.create(data)));
238
381
  }
239
382
  }
240
383
  export const PaymentProcessorDefinition = {
@@ -242,32 +385,35 @@ export const PaymentProcessorDefinition = {
242
385
  fullName: "devvit.actor.payments.v1alpha.PaymentProcessor",
243
386
  methods: {
244
387
  /**
245
- * OnProcessing is called while the order is in-flight by the Payments platform.
388
+ * FulfillOrder is called while the order is in-flight by the Payments platform.
246
389
  * This give the opportunity for a developer to acknowlege and order has been
247
390
  * fulfilled or reject it
248
391
  */
249
- onProcessing: {
250
- name: "OnProcessing",
251
- requestType: OrderProcessing,
392
+ fulfillOrder: {
393
+ name: "FulfillOrder",
394
+ requestType: FulfillOrderRequest,
252
395
  requestStream: false,
253
- responseType: ProcessingHandlerResult,
396
+ responseType: FulfillOrderResponse,
254
397
  responseStream: false,
255
398
  options: {},
256
399
  },
257
400
  /**
258
- * OnRefund is called when an order is refunded. This happens asynchnously
401
+ * RefundOrder is called when an order is refunded. This happens asynchnously
259
402
  * outside the main order flow
260
403
  */
261
- onRefund: {
262
- name: "OnRefund",
263
- requestType: OrderRefund,
404
+ refundOrder: {
405
+ name: "RefundOrder",
406
+ requestType: RefundOrderRequest,
264
407
  requestStream: false,
265
- responseType: RefundHandlerResult,
408
+ responseType: RefundOrderResponse,
266
409
  responseStream: false,
267
410
  options: {},
268
411
  },
269
412
  },
270
413
  };
414
+ function isObject(value) {
415
+ return typeof value === "object" && value !== null;
416
+ }
271
417
  function isSet(value) {
272
418
  return value !== null && value !== undefined;
273
419
  }
@@ -37,8 +37,9 @@ export interface WaitlistRegisterUserRequest {
37
37
  programmingExperience: {
38
38
  [key: string]: ProgrammingExperienceLevel;
39
39
  };
40
- /** "What apps or customizations would you like to see in your subreddit(s)?" */
41
40
  appsWanted: string;
41
+ /** "What apps or customizations would you like to see in your subreddit(s)?" */
42
+ doesConsentToEmail: boolean;
42
43
  }
43
44
  export interface WaitlistRegisterUserRequest_ProgrammingExperienceEntry {
44
45
  key: string;
@@ -53,6 +54,8 @@ export interface GetCurrentUserStatusResponse {
53
54
  waitlistStatus: WaitlistStatus;
54
55
  acceptedTermsVersion: number;
55
56
  currentTermsVersion: number;
57
+ hasVerifiedEmail: boolean;
58
+ doesConsentToEmail: boolean;
56
59
  }
57
60
  export declare const IsCurrentUserRegisteredResponse: {
58
61
  $type: "devvit.dev_portal.waitlist.IsCurrentUserRegisteredResponse";
@@ -1 +1 @@
1
- {"version":3,"file":"waitlist.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/dev_portal/waitlist/waitlist.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAgD,MAAM,4BAA4B,CAAC;AAE1G,oBAAY,0BAA0B;IACpC,QAAQ,IAAI;IACZ,UAAU,IAAI;IACd,MAAM,IAAI;IACV,YAAY,KAAK;CAClB;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,GAAG,GAAG,0BAA0B,CAgB1F;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAY3F;AAED,MAAM,WAAW,+BAA+B;IAC9C,YAAY,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACnD,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,MAAM,WAAW,2BAA2B;IAC1C,eAAe;IACf,MAAM,EAAE,MAAM,CAAC;IACf,eAAe;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,SAAS,CAAC,EACN,MAAM,GACN,SAAS,CAAC;IACd,gFAAgF;IAChF,qBAAqB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,0BAA0B,CAAA;KAAE,CAAC;IACrE,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sDAAsD;IACrE,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,0BAA0B,CAAC;CACnC;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,yCAAyC;IACz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CAAC,GAAG,4BAA4B;oCAGlE,YAAY,4BAA4B,CAAC,GAAG,4BAA4B;;;;;;CA6OpF,CAAC;AAEX,UAAU,GAAG;IACX,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACtG;AAED,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACvC,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -131,7 +131,15 @@ export const IsCurrentUserRegisteredResponse = {
131
131
  };
132
132
  messageTypeRegistry.set(IsCurrentUserRegisteredResponse.$type, IsCurrentUserRegisteredResponse);
133
133
  function createBaseWaitlistRegisterUserRequest() {
134
- return { userId: "", userName: "", whatToBuild: "", botsBuilt: undefined, programmingExperience: {}, appsWanted: "" };
134
+ return {
135
+ userId: "",
136
+ userName: "",
137
+ whatToBuild: "",
138
+ botsBuilt: undefined,
139
+ programmingExperience: {},
140
+ appsWanted: "",
141
+ doesConsentToEmail: false,
142
+ };
135
143
  }
136
144
  export const WaitlistRegisterUserRequest = {
137
145
  $type: "devvit.dev_portal.waitlist.WaitlistRegisterUserRequest",
@@ -154,6 +162,9 @@ export const WaitlistRegisterUserRequest = {
154
162
  if (message.appsWanted !== "") {
155
163
  writer.uint32(58).string(message.appsWanted);
156
164
  }
165
+ if (message.doesConsentToEmail !== false) {
166
+ writer.uint32(64).bool(message.doesConsentToEmail);
167
+ }
157
168
  return writer;
158
169
  },
159
170
  decode(input, length) {
@@ -202,6 +213,12 @@ export const WaitlistRegisterUserRequest = {
202
213
  }
203
214
  message.appsWanted = reader.string();
204
215
  continue;
216
+ case 8:
217
+ if (tag !== 64) {
218
+ break;
219
+ }
220
+ message.doesConsentToEmail = reader.bool();
221
+ continue;
205
222
  }
206
223
  if ((tag & 7) === 4 || tag === 0) {
207
224
  break;
@@ -223,6 +240,7 @@ export const WaitlistRegisterUserRequest = {
223
240
  }, {})
224
241
  : {},
225
242
  appsWanted: isSet(object.appsWanted) ? globalThis.String(object.appsWanted) : "",
243
+ doesConsentToEmail: isSet(object.doesConsentToEmail) ? globalThis.Boolean(object.doesConsentToEmail) : false,
226
244
  };
227
245
  },
228
246
  toJSON(message) {
@@ -251,6 +269,9 @@ export const WaitlistRegisterUserRequest = {
251
269
  if (message.appsWanted !== "") {
252
270
  obj.appsWanted = message.appsWanted;
253
271
  }
272
+ if (message.doesConsentToEmail !== false) {
273
+ obj.doesConsentToEmail = message.doesConsentToEmail;
274
+ }
254
275
  return obj;
255
276
  },
256
277
  create(base) {
@@ -269,6 +290,7 @@ export const WaitlistRegisterUserRequest = {
269
290
  return acc;
270
291
  }, {});
271
292
  message.appsWanted = object.appsWanted ?? "";
293
+ message.doesConsentToEmail = object.doesConsentToEmail ?? false;
272
294
  return message;
273
295
  },
274
296
  };
@@ -410,7 +432,13 @@ export const WaitlistRegisterUserResponse = {
410
432
  };
411
433
  messageTypeRegistry.set(WaitlistRegisterUserResponse.$type, WaitlistRegisterUserResponse);
412
434
  function createBaseGetCurrentUserStatusResponse() {
413
- return { waitlistStatus: 0, acceptedTermsVersion: 0, currentTermsVersion: 0 };
435
+ return {
436
+ waitlistStatus: 0,
437
+ acceptedTermsVersion: 0,
438
+ currentTermsVersion: 0,
439
+ hasVerifiedEmail: false,
440
+ doesConsentToEmail: false,
441
+ };
414
442
  }
415
443
  export const GetCurrentUserStatusResponse = {
416
444
  $type: "devvit.dev_portal.waitlist.GetCurrentUserStatusResponse",
@@ -424,6 +452,12 @@ export const GetCurrentUserStatusResponse = {
424
452
  if (message.currentTermsVersion !== 0) {
425
453
  writer.uint32(24).int32(message.currentTermsVersion);
426
454
  }
455
+ if (message.hasVerifiedEmail !== false) {
456
+ writer.uint32(32).bool(message.hasVerifiedEmail);
457
+ }
458
+ if (message.doesConsentToEmail !== false) {
459
+ writer.uint32(40).bool(message.doesConsentToEmail);
460
+ }
427
461
  return writer;
428
462
  },
429
463
  decode(input, length) {
@@ -451,6 +485,18 @@ export const GetCurrentUserStatusResponse = {
451
485
  }
452
486
  message.currentTermsVersion = reader.int32();
453
487
  continue;
488
+ case 4:
489
+ if (tag !== 32) {
490
+ break;
491
+ }
492
+ message.hasVerifiedEmail = reader.bool();
493
+ continue;
494
+ case 5:
495
+ if (tag !== 40) {
496
+ break;
497
+ }
498
+ message.doesConsentToEmail = reader.bool();
499
+ continue;
454
500
  }
455
501
  if ((tag & 7) === 4 || tag === 0) {
456
502
  break;
@@ -464,6 +510,8 @@ export const GetCurrentUserStatusResponse = {
464
510
  waitlistStatus: isSet(object.waitlistStatus) ? waitlistStatusFromJSON(object.waitlistStatus) : 0,
465
511
  acceptedTermsVersion: isSet(object.acceptedTermsVersion) ? globalThis.Number(object.acceptedTermsVersion) : 0,
466
512
  currentTermsVersion: isSet(object.currentTermsVersion) ? globalThis.Number(object.currentTermsVersion) : 0,
513
+ hasVerifiedEmail: isSet(object.hasVerifiedEmail) ? globalThis.Boolean(object.hasVerifiedEmail) : false,
514
+ doesConsentToEmail: isSet(object.doesConsentToEmail) ? globalThis.Boolean(object.doesConsentToEmail) : false,
467
515
  };
468
516
  },
469
517
  toJSON(message) {
@@ -477,6 +525,12 @@ export const GetCurrentUserStatusResponse = {
477
525
  if (message.currentTermsVersion !== 0) {
478
526
  obj.currentTermsVersion = Math.round(message.currentTermsVersion);
479
527
  }
528
+ if (message.hasVerifiedEmail !== false) {
529
+ obj.hasVerifiedEmail = message.hasVerifiedEmail;
530
+ }
531
+ if (message.doesConsentToEmail !== false) {
532
+ obj.doesConsentToEmail = message.doesConsentToEmail;
533
+ }
480
534
  return obj;
481
535
  },
482
536
  create(base) {
@@ -487,6 +541,8 @@ export const GetCurrentUserStatusResponse = {
487
541
  message.waitlistStatus = object.waitlistStatus ?? 0;
488
542
  message.acceptedTermsVersion = object.acceptedTermsVersion ?? 0;
489
543
  message.currentTermsVersion = object.currentTermsVersion ?? 0;
544
+ message.hasVerifiedEmail = object.hasVerifiedEmail ?? false;
545
+ message.doesConsentToEmail = object.doesConsentToEmail ?? false;
490
546
  return message;
491
547
  },
492
548
  };