@devvit/protos 0.11.17-next-2025-05-29-91b3cf49f.0 → 0.11.17-next-2025-05-29-de9726085.0

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.
Files changed (30) hide show
  1. package/package.json +4 -4
  2. package/schema/.snootobuf/deps/google/api/annotations.proto +1 -1
  3. package/schema/.snootobuf/deps/google/api/auth.proto +75 -19
  4. package/schema/.snootobuf/deps/google/api/backend.proto +142 -8
  5. package/schema/.snootobuf/deps/google/api/billing.proto +23 -13
  6. package/schema/.snootobuf/deps/google/api/client.proto +333 -1
  7. package/schema/.snootobuf/deps/google/api/config_change.proto +2 -3
  8. package/schema/.snootobuf/deps/google/api/consumer.proto +1 -2
  9. package/schema/.snootobuf/deps/google/api/context.proto +34 -5
  10. package/schema/.snootobuf/deps/google/api/control.proto +15 -7
  11. package/schema/.snootobuf/deps/google/api/distribution.proto +5 -5
  12. package/schema/.snootobuf/deps/google/api/documentation.proto +27 -16
  13. package/schema/.snootobuf/deps/google/api/endpoint.proto +23 -25
  14. package/schema/.snootobuf/deps/google/api/field_behavior.proto +23 -3
  15. package/schema/.snootobuf/deps/google/api/http.proto +173 -120
  16. package/schema/.snootobuf/deps/google/api/httpbody.proto +11 -6
  17. package/schema/.snootobuf/deps/google/api/label.proto +1 -2
  18. package/schema/.snootobuf/deps/google/api/launch_stage.proto +10 -5
  19. package/schema/.snootobuf/deps/google/api/log.proto +1 -2
  20. package/schema/.snootobuf/deps/google/api/logging.proto +6 -8
  21. package/schema/.snootobuf/deps/google/api/metric.proto +116 -40
  22. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +38 -24
  23. package/schema/.snootobuf/deps/google/api/monitoring.proto +43 -25
  24. package/schema/.snootobuf/deps/google/api/quota.proto +20 -95
  25. package/schema/.snootobuf/deps/google/api/resource.proto +18 -74
  26. package/schema/.snootobuf/deps/google/api/routing.proto +1 -1
  27. package/schema/.snootobuf/deps/google/api/service.proto +54 -38
  28. package/schema/.snootobuf/deps/google/api/source_info.proto +1 -2
  29. package/schema/.snootobuf/deps/google/api/system_parameter.proto +3 -3
  30. package/schema/.snootobuf/deps/google/api/usage.proto +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/protos",
3
- "version": "0.11.17-next-2025-05-29-91b3cf49f.0",
3
+ "version": "0.11.17-next-2025-05-29-de9726085.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.17-next-2025-05-29-91b3cf49f.0",
49
- "@devvit/tsconfig": "0.11.17-next-2025-05-29-91b3cf49f.0",
48
+ "@devvit/repo-tools": "0.11.17-next-2025-05-29-de9726085.0",
49
+ "@devvit/tsconfig": "0.11.17-next-2025-05-29-de9726085.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": "e0454927030a596851bff2898ebb569d05387a46"
83
+ "gitHead": "3f6b99cc63200a8d1e03436e8258c7852b1d2c35"
84
84
  }
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2015, Google Inc.
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2018 Google LLC.
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -16,18 +16,16 @@ syntax = "proto3";
16
16
 
17
17
  package google.api;
18
18
 
19
- import "google/api/annotations.proto";
20
-
21
19
  option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
22
20
  option java_multiple_files = true;
23
21
  option java_outer_classname = "AuthProto";
24
22
  option java_package = "com.google.api";
25
23
  option objc_class_prefix = "GAPI";
26
24
 
27
-
28
- // `Authentication` defines the authentication configuration for an API.
25
+ // `Authentication` defines the authentication configuration for API methods
26
+ // provided by an API service.
29
27
  //
30
- // Example for an API targeted for external use:
28
+ // Example:
31
29
  //
32
30
  // name: calendar.googleapis.com
33
31
  // authentication:
@@ -39,6 +37,9 @@ option objc_class_prefix = "GAPI";
39
37
  // - selector: "*"
40
38
  // requirements:
41
39
  // provider_id: google_calendar_auth
40
+ // - selector: google.calendar.Delegate
41
+ // oauth:
42
+ // canonical_scopes: https://www.googleapis.com/auth/calendar.read
42
43
  message Authentication {
43
44
  // A list of authentication rules that apply to individual API methods.
44
45
  //
@@ -61,21 +62,48 @@ message Authentication {
61
62
  message AuthenticationRule {
62
63
  // Selects the methods to which this rule applies.
63
64
  //
64
- // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
65
+ // Refer to [selector][google.api.DocumentationRule.selector] for syntax
66
+ // details.
65
67
  string selector = 1;
66
68
 
67
69
  // The requirements for OAuth credentials.
68
70
  OAuthRequirements oauth = 2;
69
71
 
70
72
  // If true, the service accepts API keys without any other credential.
73
+ // This flag only applies to HTTP and gRPC requests.
71
74
  bool allow_without_credential = 5;
72
75
 
73
76
  // Requirements for additional authentication providers.
74
77
  repeated AuthRequirement requirements = 7;
75
78
  }
76
79
 
77
- // Configuration for an anthentication provider, including support for
78
- // [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
80
+ // Specifies a location to extract JWT from an API request.
81
+ message JwtLocation {
82
+ oneof in {
83
+ // Specifies HTTP header name to extract JWT token.
84
+ string header = 1;
85
+
86
+ // Specifies URL query parameter name to extract JWT token.
87
+ string query = 2;
88
+
89
+ // Specifies cookie name to extract JWT token.
90
+ string cookie = 4;
91
+ }
92
+
93
+ // The value prefix. The value format is "value_prefix{token}"
94
+ // Only applies to "in" header type. Must be empty for "in" query type.
95
+ // If not empty, the header value has to match (case sensitive) this prefix.
96
+ // If not matched, JWT will not be extracted. If matched, JWT will be
97
+ // extracted after the prefix is removed.
98
+ //
99
+ // For example, for "Authorization: Bearer {JWT}",
100
+ // value_prefix="Bearer " with a space at the end.
101
+ string value_prefix = 3;
102
+ }
103
+
104
+ // Configuration for an authentication provider, including support for
105
+ // [JSON Web Token
106
+ // (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
79
107
  message AuthProvider {
80
108
  // The unique identifier of the auth provider. It will be referred to by
81
109
  // `AuthRequirement.provider_id`.
@@ -92,12 +120,15 @@ message AuthProvider {
92
120
  string issuer = 2;
93
121
 
94
122
  // URL of the provider's public key set to validate signature of the JWT. See
95
- // [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
123
+ // [OpenID
124
+ // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
96
125
  // Optional if the key set document:
97
126
  // - can be retrieved from
98
- // [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html
127
+ // [OpenID
128
+ // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
99
129
  // of the issuer.
100
- // - can be inferred from the email domain of the issuer (e.g. a Google service account).
130
+ // - can be inferred from the email domain of the issuer (e.g. a Google
131
+ // service account).
101
132
  //
102
133
  // Example: https://www.googleapis.com/oauth2/v1/certs
103
134
  string jwks_uri = 3;
@@ -105,11 +136,15 @@ message AuthProvider {
105
136
  // The list of JWT
106
137
  // [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
107
138
  // that are allowed to access. A JWT containing any of these audiences will
108
- // be accepted. When this setting is absent, only JWTs with audience
109
- // "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
110
- // will be accepted. For example, if no audiences are in the setting,
111
- // LibraryService API will only accept JWTs with the following audience
112
- // "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
139
+ // be accepted. When this setting is absent, JWTs with audiences:
140
+ // - "https://[service.name]/[google.protobuf.Api.name]"
141
+ // - "https://[service.name]/"
142
+ // will be accepted.
143
+ // For example, if no audiences are in the setting, LibraryService API will
144
+ // accept JWTs with the following audiences:
145
+ // -
146
+ // https://library-example.googleapis.com/google.example.library.v1.LibraryService
147
+ // - https://library-example.googleapis.com/
113
148
  //
114
149
  // Example:
115
150
  //
@@ -117,9 +152,29 @@ message AuthProvider {
117
152
  // bookstore_web.apps.googleusercontent.com
118
153
  string audiences = 4;
119
154
 
120
- // Redirect URL if JWT token is required but no present or is expired.
155
+ // Redirect URL if JWT token is required but not present or is expired.
121
156
  // Implement authorizationUrl of securityDefinitions in OpenAPI spec.
122
157
  string authorization_url = 5;
158
+
159
+ // Defines the locations to extract the JWT. For now it is only used by the
160
+ // Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
161
+ // (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
162
+ //
163
+ // JWT locations can be one of HTTP headers, URL query parameters or
164
+ // cookies. The rule is that the first match wins.
165
+ //
166
+ // If not specified, default to use following 3 locations:
167
+ // 1) Authorization: Bearer
168
+ // 2) x-goog-iap-jwt-assertion
169
+ // 3) access_token query parameter
170
+ //
171
+ // Default locations can be specified as followings:
172
+ // jwt_locations:
173
+ // - header: Authorization
174
+ // value_prefix: "Bearer "
175
+ // - header: x-goog-iap-jwt-assertion
176
+ // - query: access_token
177
+ repeated JwtLocation jwt_locations = 6;
123
178
  }
124
179
 
125
180
  // OAuth scopes are a way to define data and permissions on data. For example,
@@ -152,7 +207,8 @@ message OAuthRequirements {
152
207
  }
153
208
 
154
209
  // User-defined authentication requirements, including support for
155
- // [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
210
+ // [JSON Web Token
211
+ // (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
156
212
  message AuthRequirement {
157
213
  // [id][google.api.AuthProvider.id] from authentication provider.
158
214
  //
@@ -1,4 +1,4 @@
1
- // Copyright 2018 Google LLC.
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@ option java_outer_classname = "BackendProto";
22
22
  option java_package = "com.google.api";
23
23
  option objc_class_prefix = "GAPI";
24
24
 
25
-
26
25
  // `Backend` defines the backend configuration for a service.
27
26
  message Backend {
28
27
  // A list of API backend rules that apply to individual API methods.
@@ -33,19 +32,154 @@ message Backend {
33
32
 
34
33
  // A backend rule provides configuration for an individual API element.
35
34
  message BackendRule {
35
+ // Path Translation specifies how to combine the backend address with the
36
+ // request path in order to produce the appropriate forwarding URL for the
37
+ // request.
38
+ //
39
+ // Path Translation is applicable only to HTTP-based backends. Backends which
40
+ // do not accept requests over HTTP/HTTPS should leave `path_translation`
41
+ // unspecified.
42
+ enum PathTranslation {
43
+ PATH_TRANSLATION_UNSPECIFIED = 0;
44
+
45
+ // Use the backend address as-is, with no modification to the path. If the
46
+ // URL pattern contains variables, the variable names and values will be
47
+ // appended to the query string. If a query string parameter and a URL
48
+ // pattern variable have the same name, this may result in duplicate keys in
49
+ // the query string.
50
+ //
51
+ // # Examples
52
+ //
53
+ // Given the following operation config:
54
+ //
55
+ // Method path: /api/company/{cid}/user/{uid}
56
+ // Backend address: https://example.cloudfunctions.net/getUser
57
+ //
58
+ // Requests to the following request paths will call the backend at the
59
+ // translated path:
60
+ //
61
+ // Request path: /api/company/widgetworks/user/johndoe
62
+ // Translated:
63
+ // https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
64
+ //
65
+ // Request path: /api/company/widgetworks/user/johndoe?timezone=EST
66
+ // Translated:
67
+ // https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
68
+ CONSTANT_ADDRESS = 1;
69
+
70
+ // The request path will be appended to the backend address.
71
+ //
72
+ // # Examples
73
+ //
74
+ // Given the following operation config:
75
+ //
76
+ // Method path: /api/company/{cid}/user/{uid}
77
+ // Backend address: https://example.appspot.com
78
+ //
79
+ // Requests to the following request paths will call the backend at the
80
+ // translated path:
81
+ //
82
+ // Request path: /api/company/widgetworks/user/johndoe
83
+ // Translated:
84
+ // https://example.appspot.com/api/company/widgetworks/user/johndoe
85
+ //
86
+ // Request path: /api/company/widgetworks/user/johndoe?timezone=EST
87
+ // Translated:
88
+ // https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
89
+ APPEND_PATH_TO_ADDRESS = 2;
90
+ }
91
+
36
92
  // Selects the methods to which this rule applies.
37
93
  //
38
- // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
94
+ // Refer to [selector][google.api.DocumentationRule.selector] for syntax
95
+ // details.
39
96
  string selector = 1;
40
97
 
41
98
  // The address of the API backend.
99
+ //
100
+ // The scheme is used to determine the backend protocol and security.
101
+ // The following schemes are accepted:
102
+ //
103
+ // SCHEME PROTOCOL SECURITY
104
+ // http:// HTTP None
105
+ // https:// HTTP TLS
106
+ // grpc:// gRPC None
107
+ // grpcs:// gRPC TLS
108
+ //
109
+ // It is recommended to explicitly include a scheme. Leaving out the scheme
110
+ // may cause constrasting behaviors across platforms.
111
+ //
112
+ // If the port is unspecified, the default is:
113
+ // - 80 for schemes without TLS
114
+ // - 443 for schemes with TLS
115
+ //
116
+ // For HTTP backends, use [protocol][google.api.BackendRule.protocol]
117
+ // to specify the protocol version.
42
118
  string address = 2;
43
119
 
44
- // The number of seconds to wait for a response from a request. The default
45
- // deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
120
+ // The number of seconds to wait for a response from a request. The default
121
+ // varies based on the request protocol and deployment environment.
46
122
  double deadline = 3;
47
123
 
48
- // Minimum deadline in seconds needed for this method. Calls having deadline
49
- // value lower than this will be rejected.
50
- double min_deadline = 4;
124
+ // Deprecated, do not use.
125
+ double min_deadline = 4 [deprecated = true];
126
+
127
+ // The number of seconds to wait for the completion of a long running
128
+ // operation. The default is no deadline.
129
+ double operation_deadline = 5;
130
+
131
+ PathTranslation path_translation = 6;
132
+
133
+ // Authentication settings used by the backend.
134
+ //
135
+ // These are typically used to provide service management functionality to
136
+ // a backend served on a publicly-routable URL. The `authentication`
137
+ // details should match the authentication behavior used by the backend.
138
+ //
139
+ // For example, specifying `jwt_audience` implies that the backend expects
140
+ // authentication via a JWT.
141
+ //
142
+ // When authentication is unspecified, the resulting behavior is the same
143
+ // as `disable_auth` set to `true`.
144
+ //
145
+ // Refer to https://developers.google.com/identity/protocols/OpenIDConnect for
146
+ // JWT ID token.
147
+ oneof authentication {
148
+ // The JWT audience is used when generating a JWT ID token for the backend.
149
+ // This ID token will be added in the HTTP "authorization" header, and sent
150
+ // to the backend.
151
+ string jwt_audience = 7;
152
+
153
+ // When disable_auth is true, a JWT ID token won't be generated and the
154
+ // original "Authorization" HTTP header will be preserved. If the header is
155
+ // used to carry the original token and is expected by the backend, this
156
+ // field must be set to true to preserve the header.
157
+ bool disable_auth = 8;
158
+ }
159
+
160
+ // The protocol used for sending a request to the backend.
161
+ // The supported values are "http/1.1" and "h2".
162
+ //
163
+ // The default value is inferred from the scheme in the
164
+ // [address][google.api.BackendRule.address] field:
165
+ //
166
+ // SCHEME PROTOCOL
167
+ // http:// http/1.1
168
+ // https:// http/1.1
169
+ // grpc:// h2
170
+ // grpcs:// h2
171
+ //
172
+ // For secure HTTP backends (https://) that support HTTP/2, set this field
173
+ // to "h2" for improved performance.
174
+ //
175
+ // Configuring this field to non-default values is only supported for secure
176
+ // HTTP backends. This field will be ignored for all other backends.
177
+ //
178
+ // See
179
+ // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
180
+ // for more details on the supported values.
181
+ string protocol = 9;
182
+
183
+ // The map between request protocol and the backend address.
184
+ map<string, BackendRule> overrides_by_request_protocol = 10;
51
185
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2018 Google LLC.
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -16,34 +16,42 @@ syntax = "proto3";
16
16
 
17
17
  package google.api;
18
18
 
19
- import "google/api/annotations.proto";
20
-
21
19
  option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
22
20
  option java_multiple_files = true;
23
21
  option java_outer_classname = "BillingProto";
24
22
  option java_package = "com.google.api";
25
23
  option objc_class_prefix = "GAPI";
26
24
 
27
-
28
25
  // Billing related configuration of the service.
29
26
  //
30
27
  // The following example shows how to configure monitored resources and metrics
31
- // for billing:
28
+ // for billing, `consumer_destinations` is the only supported destination and
29
+ // the monitored resources need at least one label key
30
+ // `cloud.googleapis.com/location` to indicate the location of the billing
31
+ // usage, using different monitored resources between monitoring and billing is
32
+ // recommended so they can be evolved independently:
33
+ //
32
34
  //
33
35
  // monitored_resources:
34
- // - type: library.googleapis.com/branch
36
+ // - type: library.googleapis.com/billing_branch
35
37
  // labels:
36
- // - key: /city
37
- // description: The city where the library branch is located in.
38
- // - key: /name
39
- // description: The name of the branch.
38
+ // - key: cloud.googleapis.com/location
39
+ // description: |
40
+ // Predefined label to support billing location restriction.
41
+ // - key: city
42
+ // description: |
43
+ // Custom label to define the city where the library branch is located
44
+ // in.
45
+ // - key: name
46
+ // description: Custom label to define the name of the library branch.
40
47
  // metrics:
41
48
  // - name: library.googleapis.com/book/borrowed_count
42
49
  // metric_kind: DELTA
43
50
  // value_type: INT64
51
+ // unit: "1"
44
52
  // billing:
45
53
  // consumer_destinations:
46
- // - monitored_resource: library.googleapis.com/branch
54
+ // - monitored_resource: library.googleapis.com/billing_branch
47
55
  // metrics:
48
56
  // - library.googleapis.com/book/borrowed_count
49
57
  message Billing {
@@ -51,11 +59,13 @@ message Billing {
51
59
  // bill against consumer project).
52
60
  message BillingDestination {
53
61
  // The monitored resource type. The type must be defined in
54
- // [Service.monitored_resources][google.api.Service.monitored_resources] section.
62
+ // [Service.monitored_resources][google.api.Service.monitored_resources]
63
+ // section.
55
64
  string monitored_resource = 1;
56
65
 
57
66
  // Names of the metrics to report to this billing destination.
58
- // Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
67
+ // Each name must be defined in
68
+ // [Service.metrics][google.api.Service.metrics] section.
59
69
  repeated string metrics = 2;
60
70
  }
61
71