@maxim_mazurok/gapi.client.readerrevenuesubscriptionlinking-v1 0.2.20260909 → 0.2.20260927
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/index.d.ts +47 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://readerrevenuesubscriptionlinking.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260927
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -42,6 +42,12 @@ declare namespace gapi.client {
|
|
|
42
42
|
/** A source-specific subscription token. This is an opaque string that the publisher provides to Google. This token is opaque and has no meaning to Google. */
|
|
43
43
|
subscriptionToken?: string;
|
|
44
44
|
}
|
|
45
|
+
interface ListReaderEntitlementsResponse {
|
|
46
|
+
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
47
|
+
nextPageToken?: string;
|
|
48
|
+
/** The collection of ReaderEntitlements found across the scoped child publications. Every element's `name` field will contain the canonical sub-publication path, never the wildcard dash. */
|
|
49
|
+
readerEntitlements?: ReaderEntitlements[];
|
|
50
|
+
}
|
|
45
51
|
interface Reader {
|
|
46
52
|
/** Output only. Time the publication reader was created and associated with a Google user. */
|
|
47
53
|
createTime?: string;
|
|
@@ -60,6 +66,45 @@ declare namespace gapi.client {
|
|
|
60
66
|
/** Output only. The resource name of the singleton. */
|
|
61
67
|
name?: string;
|
|
62
68
|
}
|
|
69
|
+
interface EntitlementsResource {
|
|
70
|
+
/** Lists reader entitlements across parent publications via wildcard. - Returns PERMISSION_DENIED if the caller does not have access. - Returns NOT_FOUND if the reader does not exist. */
|
|
71
|
+
list(request?: {
|
|
72
|
+
/** V1 error format. */
|
|
73
|
+
'$.xgafv'?: '1' | '2';
|
|
74
|
+
/** OAuth access token. */
|
|
75
|
+
access_token?: string;
|
|
76
|
+
/** Data format for response. */
|
|
77
|
+
alt?: 'json' | 'media' | 'proto';
|
|
78
|
+
/** JSONP */
|
|
79
|
+
callback?: string;
|
|
80
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
81
|
+
fields?: string;
|
|
82
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
83
|
+
key?: string;
|
|
84
|
+
/** OAuth 2.0 token for the current user. */
|
|
85
|
+
oauth_token?: string;
|
|
86
|
+
/** Optional. The maximum number of entitlements to return. The service may return fewer than this value. If unspecified, at most 50 entitlements will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. */
|
|
87
|
+
pageSize?: number;
|
|
88
|
+
/** Optional. A page token, received from a previous `ListReaderEntitlements` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReaderEntitlements` must match the call that provided the page token. */
|
|
89
|
+
pageToken?: string;
|
|
90
|
+
/** Required. The parent reader scope. Format: "publications/-/readers/{reader_id}" */
|
|
91
|
+
parent: string;
|
|
92
|
+
/** Returns response with indentations and line breaks. */
|
|
93
|
+
prettyPrint?: boolean;
|
|
94
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
95
|
+
quotaUser?: string;
|
|
96
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
97
|
+
upload_protocol?: string;
|
|
98
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
99
|
+
uploadType?: string;
|
|
100
|
+
}): Request<ListReaderEntitlementsResponse>;
|
|
101
|
+
}
|
|
102
|
+
interface ReadersResource {
|
|
103
|
+
entitlements: EntitlementsResource;
|
|
104
|
+
}
|
|
105
|
+
interface WildcardResource {
|
|
106
|
+
readers: ReadersResource;
|
|
107
|
+
}
|
|
63
108
|
interface ReadersResource {
|
|
64
109
|
/** Removes a publication reader, effectively severing the association with a Google user. If `force` is set to true, any entitlements for this reader will also be deleted. (Otherwise, the request will only work if the reader has no entitlements.) - If the reader does not exist, return NOT_FOUND. - Return FAILED_PRECONDITION if the force field is false (or unset) and entitlements are present. */
|
|
65
110
|
delete(request?: {
|
|
@@ -208,6 +253,7 @@ declare namespace gapi.client {
|
|
|
208
253
|
): Request<ReaderEntitlements>;
|
|
209
254
|
}
|
|
210
255
|
interface PublicationsResource {
|
|
256
|
+
'-': WildcardResource;
|
|
211
257
|
readers: ReadersResource;
|
|
212
258
|
}
|
|
213
259
|
|
package/package.json
CHANGED