@devvit/protos 0.11.5-next-2024-12-09-1c29dd3cd.0 → 0.11.5-next-2024-12-09-cc5ef651d.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.5-next-2024-12-09-1c29dd3cd.0",
3
+ "version": "0.11.5-next-2024-12-09-cc5ef651d.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@ampproject/filesize": "4.3.0",
48
- "@devvit/repo-tools": "0.11.5-next-2024-12-09-1c29dd3cd.0",
49
- "@devvit/tsconfig": "0.11.5-next-2024-12-09-1c29dd3cd.0",
48
+ "@devvit/repo-tools": "0.11.5-next-2024-12-09-cc5ef651d.0",
49
+ "@devvit/tsconfig": "0.11.5-next-2024-12-09-cc5ef651d.0",
50
50
  "@protobuf-ts/plugin": "2.9.3",
51
51
  "@types/long": "4.0.2",
52
52
  "chokidar-cli": "3.0.0",
@@ -80,5 +80,5 @@
80
80
  ]
81
81
  }
82
82
  },
83
- "gitHead": "962a1f3faa8237bc6cd9348dbffb6eda273e1b69"
83
+ "gitHead": "accd4b554e037bc2c3a64eef4c489db30481093b"
84
84
  }
@@ -20,6 +20,7 @@ import "devvit/dev_portal/feedback/feedback.proto";
20
20
  import "devvit/dev_portal/installation/installation.proto";
21
21
  import "devvit/dev_portal/installation_settings/installation_settings.proto";
22
22
  import "devvit/dev_portal/nutrition/nutrition.proto";
23
+ import "devvit/dev_portal/payments/payments_verification.proto";
23
24
  import "devvit/dev_portal/payments/product.proto";
24
25
  // utils
25
26
  import "devvit/uuid.proto";
@@ -157,6 +158,14 @@ service DevPortalAppSettings {
157
158
  rpc UpdateSettings(app_settings.UpdateAppSettingsRequest) returns (app_settings.UpdateAppSettingsResponse);
158
159
  }
159
160
 
161
+ // Service to support developer settings page. See here: https://docs.google.com/document/d/1HuAfNB_26jnNu7gGDHk-vafzgpnoNaFqHoumE2C40cA/edit?tab=t.0#bookmark=id.9kf1k0pojgnq
162
+ // for more context.
163
+ service DevPortalDeveloperSettings {
164
+ // Returns the payments verification status for a given user. This determines whether the user can get paid out and
165
+ // whether they can publish apps that accept payments.
166
+ rpc GetPaymentsVerificationStatus(payments.GetPaymentsVerificationStatusRequest) returns (payments.GetPaymentsVerificationStatusResponse);
167
+ }
168
+
160
169
  service DevPortalAppPublishRequest {
161
170
  rpc Submit(app_publish_request.AppPRCreateRequest) returns (UUID);
162
171
  rpc Update(app_publish_request.AppPRUpdateRequest) returns (google.protobuf.Empty);
@@ -0,0 +1,31 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.dev_portal.payments;
4
+
5
+ import "devvit/payments/v1alpha/product.proto";
6
+
7
+ option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/devportal/payments";
8
+
9
+ // Get verification status.
10
+ message GetPaymentsVerificationStatusRequest {}
11
+
12
+ // Return verification response.
13
+ message GetPaymentsVerificationStatusResponse {
14
+ PaymentsVerificationStatus status = 1;
15
+ }
16
+
17
+ // The verification status of a devvit developer. This shows whether or not a user can receive payments
18
+ // and their state in the verification flow. See design doc here:
19
+ // https://docs.google.com/document/d/1HuAfNB_26jnNu7gGDHk-vafzgpnoNaFqHoumE2C40cA/edit?tab=t.0#bookmark=id.hm6xb18pqjvh
20
+ enum PaymentsVerificationStatus {
21
+ UNKNOWN = 0;
22
+ // User has not begun the verification process and is permitted to.
23
+ VERIFICATION_NOT_STARTED = 1;
24
+ // User has begun the verification process.
25
+ VERIFICATION_PENDING = 2;
26
+ // User is not eligible to receive payments. This may be because they're ineligible to apply for payments
27
+ // or because they applied and were rejected.
28
+ VERIFICATION_CAN_NOT_START = 3;
29
+ // Verification has been completed and the user is able to receive payments.
30
+ VERIFICATION_SUCCESS = 4;
31
+ }