@devvit/protos 0.11.19-next-2025-07-08-20-18-01-989363f22.0 → 0.11.19-next-2025-07-08-21-34-11-32558d0e0.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.
- package/community.d.ts +1 -0
- package/community.d.ts.map +1 -1
- package/community.js +1 -0
- package/package.json +4 -4
- package/schema/.snootobuf/deps/google/api/annotations.proto +1 -1
- package/schema/.snootobuf/deps/google/api/auth.proto +19 -75
- package/schema/.snootobuf/deps/google/api/backend.proto +8 -142
- package/schema/.snootobuf/deps/google/api/billing.proto +13 -23
- package/schema/.snootobuf/deps/google/api/client.proto +1 -333
- package/schema/.snootobuf/deps/google/api/config_change.proto +3 -2
- package/schema/.snootobuf/deps/google/api/consumer.proto +2 -1
- package/schema/.snootobuf/deps/google/api/context.proto +5 -34
- package/schema/.snootobuf/deps/google/api/control.proto +7 -15
- package/schema/.snootobuf/deps/google/api/distribution.proto +5 -5
- package/schema/.snootobuf/deps/google/api/documentation.proto +16 -27
- package/schema/.snootobuf/deps/google/api/endpoint.proto +25 -23
- package/schema/.snootobuf/deps/google/api/field_behavior.proto +3 -23
- package/schema/.snootobuf/deps/google/api/http.proto +120 -173
- package/schema/.snootobuf/deps/google/api/httpbody.proto +6 -11
- package/schema/.snootobuf/deps/google/api/label.proto +2 -1
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +5 -10
- package/schema/.snootobuf/deps/google/api/log.proto +2 -1
- package/schema/.snootobuf/deps/google/api/logging.proto +8 -6
- package/schema/.snootobuf/deps/google/api/metric.proto +40 -116
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +24 -38
- package/schema/.snootobuf/deps/google/api/monitoring.proto +25 -43
- package/schema/.snootobuf/deps/google/api/quota.proto +95 -20
- package/schema/.snootobuf/deps/google/api/resource.proto +74 -18
- package/schema/.snootobuf/deps/google/api/routing.proto +1 -1
- package/schema/.snootobuf/deps/google/api/service.proto +38 -54
- package/schema/.snootobuf/deps/google/api/source_info.proto +2 -1
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +3 -3
- package/schema/.snootobuf/deps/google/api/usage.proto +5 -9
- package/schema/devvit/dev_portal/app/app.proto +5 -0
- package/schema/snootobuf.lock +589 -518
- package/schema/snootobuf.redditapi.lock +589 -518
- package/schema/snootobuf.ts.lock +589 -518
- package/types/devvit/dev_portal/admin_portal.d.ts +2 -2
- package/types/devvit/dev_portal/app/app.d.ts +6 -0
- package/types/devvit/dev_portal/app/app.d.ts.map +1 -1
- package/types/devvit/dev_portal/app/app.js +16 -0
- package/types/devvit/dev_portal/dev_portal.d.ts +42 -40
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
package/community.d.ts
CHANGED
@@ -67,6 +67,7 @@ export * from './types/google/protobuf/empty.js';
|
|
67
67
|
export * from './types/google/protobuf/struct.js';
|
68
68
|
export * from './types/google/protobuf/timestamp.js';
|
69
69
|
export * from './types/google/protobuf/wrappers.js';
|
70
|
+
export * from './types/reddit/devvit/ads/v1/ads.js';
|
70
71
|
export * from './types/devvit/dev_portal/admin_portal.js';
|
71
72
|
export * from './types/devvit/dev_portal/admin_portal.twirp-client.js';
|
72
73
|
//# sourceMappingURL=community.d.ts.map
|
package/community.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../src/community.ts"],"names":[],"mappings":"AAEA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,gEAAgE,CAAC;AAC/E,mBAAmB,sCAAsC,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wDAAwD,CAAC;AACvE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sEAAsE,CAAC;AACrF,cAAc,gFAAgF,CAAC;AAC/F,cAAc,oFAAoF,CAAC;AACnG,cAAc,wDAAwD,CAAC;AACvE,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;AACvG,cAAc,yEAAyE,CAAC;AACxF,cAAc,sFAAsF,CAAC;AACrG,cAAc,oEAAoE,CAAC;AACnF,cAAc,iFAAiF,CAAC;AAChG,cAAc,+EAA+E,CAAC;AAC9F,cAAc,mDAAmD,CAAC;AAClE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,mDAAmD,CAAC;AAClE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sDAAsD,CAAC;AACrE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8DAA8D,CAAC;AAC7E,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kCAAkC,CAAC;AACjD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wDAAwD,CAAC"}
|
package/community.js
CHANGED
@@ -66,6 +66,7 @@ export * from './types/google/protobuf/empty.js';
|
|
66
66
|
export * from './types/google/protobuf/struct.js';
|
67
67
|
export * from './types/google/protobuf/timestamp.js';
|
68
68
|
export * from './types/google/protobuf/wrappers.js';
|
69
|
+
export * from './types/reddit/devvit/ads/v1/ads.js';
|
69
70
|
// Admin types
|
70
71
|
export * from './types/devvit/dev_portal/admin_portal.js';
|
71
72
|
export * from './types/devvit/dev_portal/admin_portal.twirp-client.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/protos",
|
3
|
-
"version": "0.11.19-next-2025-07-08-
|
3
|
+
"version": "0.11.19-next-2025-07-08-21-34-11-32558d0e0.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.19-next-2025-07-08-
|
49
|
-
"@devvit/tsconfig": "0.11.19-next-2025-07-08-
|
48
|
+
"@devvit/repo-tools": "0.11.19-next-2025-07-08-21-34-11-32558d0e0.0",
|
49
|
+
"@devvit/tsconfig": "0.11.19-next-2025-07-08-21-34-11-32558d0e0.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": "
|
83
|
+
"gitHead": "95d954ad6a0957e5ec366d57c2995bf326d5360d"
|
84
84
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2018 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,16 +16,18 @@ syntax = "proto3";
|
|
16
16
|
|
17
17
|
package google.api;
|
18
18
|
|
19
|
+
import "google/api/annotations.proto";
|
20
|
+
|
19
21
|
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
20
22
|
option java_multiple_files = true;
|
21
23
|
option java_outer_classname = "AuthProto";
|
22
24
|
option java_package = "com.google.api";
|
23
25
|
option objc_class_prefix = "GAPI";
|
24
26
|
|
25
|
-
|
26
|
-
//
|
27
|
+
|
28
|
+
// `Authentication` defines the authentication configuration for an API.
|
27
29
|
//
|
28
|
-
// Example:
|
30
|
+
// Example for an API targeted for external use:
|
29
31
|
//
|
30
32
|
// name: calendar.googleapis.com
|
31
33
|
// authentication:
|
@@ -37,9 +39,6 @@ option objc_class_prefix = "GAPI";
|
|
37
39
|
// - selector: "*"
|
38
40
|
// requirements:
|
39
41
|
// provider_id: google_calendar_auth
|
40
|
-
// - selector: google.calendar.Delegate
|
41
|
-
// oauth:
|
42
|
-
// canonical_scopes: https://www.googleapis.com/auth/calendar.read
|
43
42
|
message Authentication {
|
44
43
|
// A list of authentication rules that apply to individual API methods.
|
45
44
|
//
|
@@ -62,48 +61,21 @@ message Authentication {
|
|
62
61
|
message AuthenticationRule {
|
63
62
|
// Selects the methods to which this rule applies.
|
64
63
|
//
|
65
|
-
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
66
|
-
// details.
|
64
|
+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
67
65
|
string selector = 1;
|
68
66
|
|
69
67
|
// The requirements for OAuth credentials.
|
70
68
|
OAuthRequirements oauth = 2;
|
71
69
|
|
72
70
|
// If true, the service accepts API keys without any other credential.
|
73
|
-
// This flag only applies to HTTP and gRPC requests.
|
74
71
|
bool allow_without_credential = 5;
|
75
72
|
|
76
73
|
// Requirements for additional authentication providers.
|
77
74
|
repeated AuthRequirement requirements = 7;
|
78
75
|
}
|
79
76
|
|
80
|
-
//
|
81
|
-
|
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).
|
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).
|
107
79
|
message AuthProvider {
|
108
80
|
// The unique identifier of the auth provider. It will be referred to by
|
109
81
|
// `AuthRequirement.provider_id`.
|
@@ -120,15 +92,12 @@ message AuthProvider {
|
|
120
92
|
string issuer = 2;
|
121
93
|
|
122
94
|
// URL of the provider's public key set to validate signature of the JWT. See
|
123
|
-
// [OpenID
|
124
|
-
// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
95
|
+
// [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
125
96
|
// Optional if the key set document:
|
126
97
|
// - can be retrieved from
|
127
|
-
// [OpenID
|
128
|
-
// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
98
|
+
// [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html
|
129
99
|
// of the issuer.
|
130
|
-
// - can be inferred from the email domain of the issuer (e.g. a Google
|
131
|
-
// service account).
|
100
|
+
// - can be inferred from the email domain of the issuer (e.g. a Google service account).
|
132
101
|
//
|
133
102
|
// Example: https://www.googleapis.com/oauth2/v1/certs
|
134
103
|
string jwks_uri = 3;
|
@@ -136,15 +105,11 @@ message AuthProvider {
|
|
136
105
|
// The list of JWT
|
137
106
|
// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
138
107
|
// that are allowed to access. A JWT containing any of these audiences will
|
139
|
-
// be accepted. When this setting is absent, JWTs with
|
140
|
-
//
|
141
|
-
//
|
142
|
-
// will
|
143
|
-
//
|
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/
|
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".
|
148
113
|
//
|
149
114
|
// Example:
|
150
115
|
//
|
@@ -152,29 +117,9 @@ message AuthProvider {
|
|
152
117
|
// bookstore_web.apps.googleusercontent.com
|
153
118
|
string audiences = 4;
|
154
119
|
|
155
|
-
// Redirect URL if JWT token is required but
|
120
|
+
// Redirect URL if JWT token is required but no present or is expired.
|
156
121
|
// Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
157
122
|
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;
|
178
123
|
}
|
179
124
|
|
180
125
|
// OAuth scopes are a way to define data and permissions on data. For example,
|
@@ -207,8 +152,7 @@ message OAuthRequirements {
|
|
207
152
|
}
|
208
153
|
|
209
154
|
// User-defined authentication requirements, including support for
|
210
|
-
// [JSON Web Token
|
211
|
-
// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
155
|
+
// [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
212
156
|
message AuthRequirement {
|
213
157
|
// [id][google.api.AuthProvider.id] from authentication provider.
|
214
158
|
//
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2018 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,6 +22,7 @@ option java_outer_classname = "BackendProto";
|
|
22
22
|
option java_package = "com.google.api";
|
23
23
|
option objc_class_prefix = "GAPI";
|
24
24
|
|
25
|
+
|
25
26
|
// `Backend` defines the backend configuration for a service.
|
26
27
|
message Backend {
|
27
28
|
// A list of API backend rules that apply to individual API methods.
|
@@ -32,154 +33,19 @@ message Backend {
|
|
32
33
|
|
33
34
|
// A backend rule provides configuration for an individual API element.
|
34
35
|
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
|
-
|
92
36
|
// Selects the methods to which this rule applies.
|
93
37
|
//
|
94
|
-
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
95
|
-
// details.
|
38
|
+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
96
39
|
string selector = 1;
|
97
40
|
|
98
41
|
// 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.
|
118
42
|
string address = 2;
|
119
43
|
|
120
|
-
// The number of seconds to wait for a response from a request.
|
121
|
-
//
|
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.
|
122
46
|
double deadline = 3;
|
123
47
|
|
124
|
-
//
|
125
|
-
|
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;
|
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;
|
185
51
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2018 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,42 +16,34 @@ syntax = "proto3";
|
|
16
16
|
|
17
17
|
package google.api;
|
18
18
|
|
19
|
+
import "google/api/annotations.proto";
|
20
|
+
|
19
21
|
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
20
22
|
option java_multiple_files = true;
|
21
23
|
option java_outer_classname = "BillingProto";
|
22
24
|
option java_package = "com.google.api";
|
23
25
|
option objc_class_prefix = "GAPI";
|
24
26
|
|
27
|
+
|
25
28
|
// Billing related configuration of the service.
|
26
29
|
//
|
27
30
|
// The following example shows how to configure monitored resources and metrics
|
28
|
-
// for billing
|
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
|
-
//
|
31
|
+
// for billing:
|
34
32
|
//
|
35
33
|
// monitored_resources:
|
36
|
-
// - type: library.googleapis.com/
|
34
|
+
// - type: library.googleapis.com/branch
|
37
35
|
// labels:
|
38
|
-
// - key:
|
39
|
-
// description:
|
40
|
-
//
|
41
|
-
//
|
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.
|
36
|
+
// - key: /city
|
37
|
+
// description: The city where the library branch is located in.
|
38
|
+
// - key: /name
|
39
|
+
// description: The name of the branch.
|
47
40
|
// metrics:
|
48
41
|
// - name: library.googleapis.com/book/borrowed_count
|
49
42
|
// metric_kind: DELTA
|
50
43
|
// value_type: INT64
|
51
|
-
// unit: "1"
|
52
44
|
// billing:
|
53
45
|
// consumer_destinations:
|
54
|
-
// - monitored_resource: library.googleapis.com/
|
46
|
+
// - monitored_resource: library.googleapis.com/branch
|
55
47
|
// metrics:
|
56
48
|
// - library.googleapis.com/book/borrowed_count
|
57
49
|
message Billing {
|
@@ -59,13 +51,11 @@ message Billing {
|
|
59
51
|
// bill against consumer project).
|
60
52
|
message BillingDestination {
|
61
53
|
// The monitored resource type. The type must be defined in
|
62
|
-
// [Service.monitored_resources][google.api.Service.monitored_resources]
|
63
|
-
// section.
|
54
|
+
// [Service.monitored_resources][google.api.Service.monitored_resources] section.
|
64
55
|
string monitored_resource = 1;
|
65
56
|
|
66
57
|
// Names of the metrics to report to this billing destination.
|
67
|
-
// Each name must be defined in
|
68
|
-
// [Service.metrics][google.api.Service.metrics] section.
|
58
|
+
// Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
|
69
59
|
repeated string metrics = 2;
|
70
60
|
}
|
71
61
|
|