vpndetection 4.1.1 → 5.0.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/README.md CHANGED
@@ -52,10 +52,10 @@ console.log(result.ip); // the address we saw this call come from
52
52
  ### Your plan and usage
53
53
 
54
54
  ```js
55
- const acct = await client.myAccount();
56
- console.log(acct.plan.key); // max
57
- console.log(acct.usage.requests); // 580
58
- console.log(acct.usage.window_end); // when the allowance resets
55
+ const ent = await client.myEntitlement();
56
+ console.log(ent.plan.key); // max
57
+ console.log(ent.usage.requests); // 580
58
+ console.log(ent.usage.window_end); // when the allowance resets
59
59
  ```
60
60
 
61
61
  Usage counts against the anniversary of your subscription, not the calendar month and not the billing period, and it is the same number a lookup is gated on. `hard_limit` is null on an uncapped plan, which is not the same as zero.
@@ -170,6 +170,14 @@ const bytes = await client.database.downloadBytes('cdn_ip_v1', 'csvgz');
170
170
 
171
171
  `downloadBytes` holds the whole file in memory, and the catalog runs from `cdn_ip_v1` at 10 KB to `resproxy_ip_90d_v1` at 1.79 GB, so use `download` for anything you have not measured.
172
172
 
173
+ The formats are `csvgz` and `mmdb`, exported as `DATABASE_FORMATS` for a caller that needs to validate or enumerate rather than switch — `STANDINGS` and `LICENSE_TYPES` likewise. Anything else is refused before the request leaves, as a `bad_request` naming what is allowed, because the TypeScript union only guards a TypeScript caller:
174
+
175
+ ```js
176
+ import { DATABASE_FORMATS } from 'vpndetection';
177
+
178
+ DATABASE_FORMATS.includes(fromTheCommandLine); // ['csvgz', 'mmdb']
179
+ ```
180
+
173
181
  ### Absent is not false
174
182
 
175
183
  Only `ip` and `isVpn` come back on every plan. A field your plan does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
package/dist/client.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Writable } from 'node:stream';
2
2
  import type { Client } from './generated/client/index.js';
3
- import type { AccountMe, Database, DatabaseFormat, DatabaseMetadata, DbChecksums, Download } from './generated/types.gen.js';
3
+ import type { Entitlement, Database, DatabaseFormat, DatabaseMetadata, DbChecksums, Download } from './generated/types.gen.js';
4
4
  import { VPNDetectionError } from './errors.js';
5
5
  import { type Result } from './types.js';
6
6
  /**
@@ -104,7 +104,7 @@ export declare class VPNDetection {
104
104
  *
105
105
  * Named for what it answers rather than `me`, which sits one letter from
106
106
  * `myIp` and means something quite different: one is which address you are
107
- * calling FROM, the other is which account you are calling AS.
107
+ * calling FROM, the other is what the key you are calling WITH may spend.
108
108
  *
109
109
  * Unlike a lookup there is no useful unauthenticated answer, so a client
110
110
  * built without a key gets an unauthorized error rather than a partial one.
@@ -117,14 +117,7 @@ export declare class VPNDetection {
117
117
  * Deliberately NOT cached: the whole point is what has been spent, and a
118
118
  * cached answer is a wrong one within seconds of the next request.
119
119
  */
120
- myAccount(options?: LookupOptions): Promise<AccountMe>;
121
- /**
122
- * The former name of `myAccount`.
123
- *
124
- * @deprecated Use `myAccount`. Kept because it shipped in 3.1.0 and 4.0.0;
125
- * it goes at the next major.
126
- */
127
- me(options?: LookupOptions): Promise<AccountMe>;
120
+ myEntitlement(options?: LookupOptions): Promise<Entitlement>;
128
121
  /**
129
122
  * Classify many addresses concurrently.
130
123
  *
package/dist/client.js CHANGED
@@ -2,10 +2,10 @@ import { LRUCache } from 'lru-cache';
2
2
  import pLimit from 'p-limit';
3
3
  import pRetry from 'p-retry';
4
4
  import { createClient, createConfig } from './generated/client/index.js';
5
- import { accountMe, databaseChecksum, databaseMetadata, downloadDatabase as downloadRedirect, listDatabases, listDownloads, lookupIp, lookupMyIp, } from './generated/sdk.gen.js';
5
+ import { myEntitlement, databaseChecksum, databaseMetadata, downloadDatabase as downloadRedirect, listDatabases, listDownloads, lookupIp, lookupMyIp, } from './generated/sdk.gen.js';
6
6
  import { bogonResult, isBogon } from './bogon.js';
7
7
  import { errorFromResponse, VPNDetectionError } from './errors.js';
8
- import { toResult } from './types.js';
8
+ import { DATABASE_FORMATS, toResult } from './types.js';
9
9
  export const DEFAULT_BASE_URL = 'https://api.vpndetection.io';
10
10
  // Matches the other SDKs, whose HTTP clients default to 30s. Node's global
11
11
  // fetch has no whole-request limit of its own, so without this a hung API holds
@@ -107,7 +107,7 @@ export class VPNDetection {
107
107
  *
108
108
  * Named for what it answers rather than `me`, which sits one letter from
109
109
  * `myIp` and means something quite different: one is which address you are
110
- * calling FROM, the other is which account you are calling AS.
110
+ * calling FROM, the other is what the key you are calling WITH may spend.
111
111
  *
112
112
  * Unlike a lookup there is no useful unauthenticated answer, so a client
113
113
  * built without a key gets an unauthorized error rather than a partial one.
@@ -120,24 +120,15 @@ export class VPNDetection {
120
120
  * Deliberately NOT cached: the whole point is what has been spent, and a
121
121
  * cached answer is a wrong one within seconds of the next request.
122
122
  */
123
- async myAccount(options = {}) {
123
+ async myEntitlement(options = {}) {
124
124
  const timeoutMs = options.timeoutMs ?? this.timeoutMs;
125
125
  return withRetry(options.retries ?? this.retries, async () => {
126
- const res = await deadline(timeoutMs, (signal) => accountMe({
126
+ const res = await deadline(timeoutMs, (signal) => myEntitlement({
127
127
  client: this.client, signal: signal,
128
128
  }));
129
129
  return unwrap(res);
130
130
  });
131
131
  }
132
- /**
133
- * The former name of `myAccount`.
134
- *
135
- * @deprecated Use `myAccount`. Kept because it shipped in 3.1.0 and 4.0.0;
136
- * it goes at the next major.
137
- */
138
- async me(options = {}) {
139
- return this.myAccount(options);
140
- }
141
132
  /**
142
133
  * Classify many addresses concurrently.
143
134
  *
@@ -203,6 +194,7 @@ export class DatabaseApi {
203
194
  * previous version came to return `undefined`.
204
195
  */
205
196
  async checksums(id, format) {
197
+ assertFormat(format);
206
198
  return withRetry(this.retries, async () => {
207
199
  const res = await deadline(this.timeoutMs, (signal) => databaseChecksum({
208
200
  client: this.client, query: { id: id, format: format }, signal: signal,
@@ -235,6 +227,7 @@ export class DatabaseApi {
235
227
  * already running is not interrupted when it lapses.
236
228
  */
237
229
  async downloadUrl(id, format) {
230
+ assertFormat(format);
238
231
  return withRetry(this.retries, async () => {
239
232
  const res = await deadline(this.timeoutMs, (signal) => downloadRedirect({
240
233
  client: this.client,
@@ -353,6 +346,21 @@ export class DatabaseApi {
353
346
  function bearerOnly(apiKey) {
354
347
  return (auth) => (auth.scheme === 'bearer' ? apiKey : undefined);
355
348
  }
349
+ /**
350
+ * Rejects a format the API does not publish, before the network sees it.
351
+ *
352
+ * The generated union guards a TypeScript caller at COMPILE time and nobody
353
+ * else: a format arriving from a CLI flag, a form field or a model is a plain
354
+ * string, and without this it costs a round trip and comes back as a 400 whose
355
+ * message names nothing the caller can act on. Ruby, PHP, Python, Java and Perl
356
+ * all reject locally; this is Node catching up.
357
+ */
358
+ function assertFormat(format) {
359
+ if (DATABASE_FORMATS.includes(format)) {
360
+ return;
361
+ }
362
+ throw new VPNDetectionError('bad_request', `invalid format ${JSON.stringify(format)}; must be one of ${DATABASE_FORMATS.join(', ')}`);
363
+ }
356
364
  function unwrap(res) {
357
365
  if (res.response === undefined) {
358
366
  throw new VPNDetectionError('network', 'no response from the API');
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAO,MAAM,MAAM,SAAS,CAAC;AAK7B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EACH,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,IAAI,gBAAgB,EACnF,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,GACrD,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAe,MAAM,YAAY,CAAC;AAQnD,MAAM,C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,GAAG,EAAE,CAAC;QACX,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;AACL,CAAC;AAED,SAAS,OAAO,CAAC,GAAY;IACzB,IAAI,GAAG,YAAY,iBAAiB,EAAE,CAAC;QACnC,OAAO,GAAG,CAAC;IACf,CAAC;IACD,MAAM,KAAK,GAAI,GAA2B,EAAE,KAAK,CAAC;IAClD,IAAI,KAAK,YAAY,iBAAiB,EAAE,CAAC;QACrC,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO,IAAI,iBAAiB,CAAC,SAAS,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAC9F,CAAC"}
@@ -1,2 +1,2 @@
1
- export { accountMe, databaseChecksum, databaseMetadata, downloadDatabase, listDatabases, listDownloads, lookupIp, lookupMyIp, type Options } from './sdk.gen.js';
2
- export type { AccountApikey, AccountError, AccountMe, AccountMeData, AccountMeError, AccountMeErrors, AccountMeResponse, AccountMeResponses, AccountPlan, AccountUsage, ClassDetail, ClientOptions, Database, DatabaseChecksumData, DatabaseChecksumError, DatabaseChecksumErrors, DatabaseChecksumResponse, DatabaseChecksumResponses, DatabaseFormat, DatabaseFormatSize, DatabaseMetadata, DatabaseMetadataColumn, DatabaseMetadataData, DatabaseMetadataError, DatabaseMetadataErrors, DatabaseMetadataResponse, DatabaseMetadataResponses, DatabaseVersion, DbChecksums, Download, DownloadDatabaseData, DownloadDatabaseError, DownloadDatabaseErrors, Error, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListDownloadsData, ListDownloadsError, ListDownloadsErrors, ListDownloadsResponse, ListDownloadsResponses, LookupError, LookupIpData, LookupIpError, LookupIpErrors, LookupIpResponse, LookupIpResponses, LookupMyIpData, LookupMyIpError, LookupMyIpErrors, LookupMyIpResponse, LookupMyIpResponses, LookupResponse, ProxyDetail, Standing, VpnDetail } from './types.gen.js';
1
+ export { accountCreateApikey, accountIdentity, accountListApikeys, accountOrg, accountOrgMembers, accountRevealApikey, accountRevokeApikey, accountRotateApikey, databaseChecksum, databaseMetadata, downloadDatabase, listDatabases, listDownloads, lookupIp, lookupMyIp, myEntitlement, oauthAuthorize, oauthDeviceAuthorization, oauthMetadata, oauthRevoke, oauthToken, type Options } from './sdk.gen.js';
2
+ export type { AccountCreateApikeyData, AccountCreateApikeyError, AccountCreateApikeyErrors, AccountCreateApikeyRequest, AccountCreateApikeyResponse, AccountCreateApikeyResponses, AccountCreatedApikey, AccountIdentityData, AccountIdentityError, AccountIdentityErrors, AccountIdentityResponse, AccountIdentityResponses, AccountListApikeysData, AccountListApikeysError, AccountListApikeysErrors, AccountListApikeysResponse, AccountListApikeysResponses, AccountOrg, AccountOrgData, AccountOrgError, AccountOrgErrors, AccountOrgMembersData, AccountOrgMembersError, AccountOrgMembersErrors, AccountOrgMembersResponse, AccountOrgMembersResponses, AccountOrgRef, AccountOrgResponse, AccountOrgResponses, AccountOrgWrap, AccountRc, AccountRevealApikeyData, AccountRevealApikeyError, AccountRevealApikeyErrors, AccountRevealApikeyResponse, AccountRevealApikeyResponses, AccountRevealedApikey, AccountRevokeApikeyData, AccountRevokeApikeyError, AccountRevokeApikeyErrors, AccountRevokeApikeyResponse, AccountRevokeApikeyResponses, AccountRotateApikeyData, AccountRotateApikeyError, AccountRotateApikeyErrors, AccountRotateApikeyResponse, AccountRotateApikeyResponses, AccountUser, ApikeyDetail, ApikeyIdParam, ApikeyList, ClassDetail, ClientOptions, Database, DatabaseChecksumData, DatabaseChecksumError, DatabaseChecksumErrors, DatabaseChecksumResponse, DatabaseChecksumResponses, DatabaseFormat, DatabaseFormatSize, DatabaseMetadata, DatabaseMetadataColumn, DatabaseMetadataData, DatabaseMetadataError, DatabaseMetadataErrors, DatabaseMetadataResponse, DatabaseMetadataResponses, DatabaseVersion, DbChecksums, DeviceAuthorization, DeviceAuthorizationRequest, Download, DownloadDatabaseData, DownloadDatabaseError, DownloadDatabaseErrors, Entitlement, EntitlementApikey, EntitlementError, EntitlementPlan, EntitlementUsage, Error, Identity, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListDownloadsData, ListDownloadsError, ListDownloadsErrors, ListDownloadsResponse, ListDownloadsResponses, LookupError, LookupIpData, LookupIpError, LookupIpErrors, LookupIpResponse, LookupIpResponses, LookupMyIpData, LookupMyIpError, LookupMyIpErrors, LookupMyIpResponse, LookupMyIpResponses, LookupResponse, MyEntitlementData, MyEntitlementError, MyEntitlementErrors, MyEntitlementResponse, MyEntitlementResponses, OauthAuthorizeData, OauthAuthorizeErrors, OauthDeviceAuthorizationData, OauthDeviceAuthorizationError, OauthDeviceAuthorizationErrors, OauthDeviceAuthorizationResponse, OauthDeviceAuthorizationResponses, OauthError, OauthMetadata, OauthMetadataData, OauthMetadataResponse, OauthMetadataResponses, OauthRevokeData, OauthRevokeResponse, OauthRevokeResponses, OauthTokenData, OauthTokenError, OauthTokenErrors, OauthTokenResponse, OauthTokenResponses, ProxyDetail, RevokeRequest, Standing, TokenRequest, TokenResponse, VpnDetail } from './types.gen.js';
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export { accountMe, databaseChecksum, databaseMetadata, downloadDatabase, listDatabases, listDownloads, lookupIp, lookupMyIp } from './sdk.gen.js';
2
+ export { accountCreateApikey, accountIdentity, accountListApikeys, accountOrg, accountOrgMembers, accountRevealApikey, accountRevokeApikey, accountRotateApikey, databaseChecksum, databaseMetadata, downloadDatabase, listDatabases, listDownloads, lookupIp, lookupMyIp, myEntitlement, oauthAuthorize, oauthDeviceAuthorization, oauthMetadata, oauthRevoke, oauthToken } from './sdk.gen.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAgB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,wBAAwB,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAgB,MAAM,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
- import type { AccountMeData, AccountMeErrors, AccountMeResponses, DatabaseChecksumData, DatabaseChecksumErrors, DatabaseChecksumResponses, DatabaseMetadataData, DatabaseMetadataErrors, DatabaseMetadataResponses, DownloadDatabaseData, DownloadDatabaseErrors, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListDownloadsData, ListDownloadsErrors, ListDownloadsResponses, LookupIpData, LookupIpErrors, LookupIpResponses, LookupMyIpData, LookupMyIpErrors, LookupMyIpResponses } from './types.gen.js';
1
+ import { type Client, type ClientMeta, type Options as Options2, type RequestResult, type TDataShape } from './client/index.js';
2
+ import type { AccountCreateApikeyData, AccountCreateApikeyErrors, AccountCreateApikeyResponses, AccountIdentityData, AccountIdentityErrors, AccountIdentityResponses, AccountListApikeysData, AccountListApikeysErrors, AccountListApikeysResponses, AccountOrgData, AccountOrgErrors, AccountOrgMembersData, AccountOrgMembersErrors, AccountOrgMembersResponses, AccountOrgResponses, AccountRevealApikeyData, AccountRevealApikeyErrors, AccountRevealApikeyResponses, AccountRevokeApikeyData, AccountRevokeApikeyErrors, AccountRevokeApikeyResponses, AccountRotateApikeyData, AccountRotateApikeyErrors, AccountRotateApikeyResponses, DatabaseChecksumData, DatabaseChecksumErrors, DatabaseChecksumResponses, DatabaseMetadataData, DatabaseMetadataErrors, DatabaseMetadataResponses, DownloadDatabaseData, DownloadDatabaseErrors, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListDownloadsData, ListDownloadsErrors, ListDownloadsResponses, LookupIpData, LookupIpErrors, LookupIpResponses, LookupMyIpData, LookupMyIpErrors, LookupMyIpResponses, MyEntitlementData, MyEntitlementErrors, MyEntitlementResponses, OauthAuthorizeData, OauthAuthorizeErrors, OauthDeviceAuthorizationData, OauthDeviceAuthorizationErrors, OauthDeviceAuthorizationResponses, OauthMetadataData, OauthMetadataResponses, OauthRevokeData, OauthRevokeResponses, OauthTokenData, OauthTokenErrors, OauthTokenResponses } from './types.gen.js';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -23,7 +23,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
23
23
  */
24
24
  export declare const lookupIp: <ThrowOnError extends boolean = false>(options: Options<LookupIpData, ThrowOnError>) => RequestResult<LookupIpResponses, LookupIpErrors, ThrowOnError>;
25
25
  /**
26
- * Lookup your own address
26
+ * My IP
27
27
  *
28
28
  * Answers what is known about the address this request came from, which is
29
29
  * the same answer `GET /{ip}` gives for that address: the plan behind the
@@ -80,10 +80,172 @@ export declare const databaseChecksum: <ThrowOnError extends boolean = false>(op
80
80
  */
81
81
  export declare const listDownloads: <ThrowOnError extends boolean = false>(options?: Options<ListDownloadsData, ThrowOnError>) => RequestResult<ListDownloadsResponses, ListDownloadsErrors, ThrowOnError>;
82
82
  /**
83
- * Your key, plan and usage
83
+ * Plan and usage
84
84
  *
85
85
  * Answers what the presented key is, what plan is behind it, and what has
86
86
  * been spent against that plan's allowance in the current window.
87
87
  *
88
88
  */
89
- export declare const accountMe: <ThrowOnError extends boolean = false>(options?: Options<AccountMeData, ThrowOnError>) => RequestResult<AccountMeResponses, AccountMeErrors, ThrowOnError>;
89
+ export declare const myEntitlement: <ThrowOnError extends boolean = false>(options?: Options<MyEntitlementData, ThrowOnError>) => RequestResult<MyEntitlementResponses, MyEntitlementErrors, ThrowOnError>;
90
+ /**
91
+ * Identity
92
+ *
93
+ * The identity behind this credential: what it is, the organization it is
94
+ * scoped to, and the scopes it currently holds.
95
+ *
96
+ * `user` is present for an OAuth token and ABSENT for an API key, which
97
+ * has an organization but no person behind it. `credential.kind` says
98
+ * which you are holding, so a client can branch without guessing from a
99
+ * missing field.
100
+ *
101
+ * Narrower than what the console shows its own user on purpose: an
102
+ * integration needs a name to display and an organization to address, not
103
+ * a profile. The `scopes` array is what the credential may do RIGHT NOW,
104
+ * so a client can render its own capabilities rather than discovering
105
+ * them from a 403.
106
+ *
107
+ */
108
+ export declare const accountIdentity: <ThrowOnError extends boolean = false>(options?: Options<AccountIdentityData, ThrowOnError>) => RequestResult<AccountIdentityResponses, AccountIdentityErrors, ThrowOnError>;
109
+ /**
110
+ * Organization
111
+ *
112
+ * The organization this credential is scoped to.
113
+ *
114
+ * There is no way to name a different one. A credential describes exactly
115
+ * one organization, so an identifier in the path could only ever be your
116
+ * own or a refusal.
117
+ *
118
+ */
119
+ export declare const accountOrg: <ThrowOnError extends boolean = false>(options?: Options<AccountOrgData, ThrowOnError>) => RequestResult<AccountOrgResponses, AccountOrgErrors, ThrowOnError>;
120
+ /**
121
+ * Members
122
+ *
123
+ * Read-only. Adding or removing a member is an invitation flow with email
124
+ * in the middle rather than a POST, and modelling it as one here would
125
+ * promise something this API does not do.
126
+ *
127
+ */
128
+ export declare const accountOrgMembers: <ThrowOnError extends boolean = false>(options?: Options<AccountOrgMembersData, ThrowOnError>) => RequestResult<AccountOrgMembersResponses, AccountOrgMembersErrors, ThrowOnError>;
129
+ /**
130
+ * List
131
+ *
132
+ * Metadata only. A key's secret is never in a list - not here and not in
133
+ * the console - because a list is the response that ends up in logs,
134
+ * caches and support tickets.
135
+ *
136
+ * `retrievable` says whether the secret could still be read back at all.
137
+ * A key issued before this product stored secrets recoverably was never
138
+ * kept, so `reveal` will refuse it permanently; rotating produces one
139
+ * that can be read.
140
+ *
141
+ */
142
+ export declare const accountListApikeys: <ThrowOnError extends boolean = false>(options?: Options<AccountListApikeysData, ThrowOnError>) => RequestResult<AccountListApikeysResponses, AccountListApikeysErrors, ThrowOnError>;
143
+ /**
144
+ * Create
145
+ *
146
+ * Creates a key and returns its secret.
147
+ *
148
+ * This is the ONLY response that ever carries the secret, and only
149
+ * because this is the moment it comes into existence. Store it now.
150
+ *
151
+ */
152
+ export declare const accountCreateApikey: <ThrowOnError extends boolean = false>(options: Options<AccountCreateApikeyData, ThrowOnError>) => RequestResult<AccountCreateApikeyResponses, AccountCreateApikeyErrors, ThrowOnError>;
153
+ /**
154
+ * Rotate
155
+ *
156
+ * Replaces the secret behind a key, keeping its id, name and settings.
157
+ * The previous secret stops working immediately.
158
+ *
159
+ */
160
+ export declare const accountRotateApikey: <ThrowOnError extends boolean = false>(options: Options<AccountRotateApikeyData, ThrowOnError>) => RequestResult<AccountRotateApikeyResponses, AccountRotateApikeyErrors, ThrowOnError>;
161
+ /**
162
+ * Revoke
163
+ *
164
+ * Stops the key working. Revocation is soft: the key stays listed with a
165
+ * `revoked_at`, because the organization still owns whatever it did while
166
+ * it was alive.
167
+ *
168
+ */
169
+ export declare const accountRevokeApikey: <ThrowOnError extends boolean = false>(options: Options<AccountRevokeApikeyData, ThrowOnError>) => RequestResult<AccountRevokeApikeyResponses, AccountRevokeApikeyErrors, ThrowOnError>;
170
+ /**
171
+ * Reveal
172
+ *
173
+ * Returns an existing key's secret.
174
+ *
175
+ * Its own scope rather than part of `apikeys.manage`, because the two are
176
+ * different acts: rotating replaces a secret you never see, while this
177
+ * hands one over.
178
+ *
179
+ * Refused with `NOT_RETRIEVABLE` for a key issued before this product
180
+ * stored secrets recoverably - that secret was never kept, so no retry
181
+ * will ever produce it. Rotate the key instead.
182
+ *
183
+ */
184
+ export declare const accountRevealApikey: <ThrowOnError extends boolean = false>(options: Options<AccountRevealApikeyData, ThrowOnError>) => RequestResult<AccountRevealApikeyResponses, AccountRevealApikeyErrors, ThrowOnError>;
185
+ /**
186
+ * Discovery
187
+ *
188
+ * RFC 8414 authorization server metadata: the endpoints, the grant types
189
+ * and the scopes this server supports.
190
+ *
191
+ * Read this rather than hardcoding endpoints. It is also served at
192
+ * `/.well-known/openid-configuration`, identically, because several
193
+ * clients probe that path first.
194
+ *
195
+ */
196
+ export declare const oauthMetadata: <ThrowOnError extends boolean = false>(options?: Options<OauthMetadataData, ThrowOnError>) => RequestResult<OauthMetadataResponses, unknown, ThrowOnError>;
197
+ /**
198
+ * Device authorization
199
+ *
200
+ * Starts the device flow. Show the `user_code` to the person and send them
201
+ * to `verification_uri`; `verification_uri_complete` has the code already
202
+ * embedded, which is what to open if you can open a browser at all.
203
+ *
204
+ * Then poll `/oauth/token`, no faster than `interval` seconds.
205
+ *
206
+ */
207
+ export declare const oauthDeviceAuthorization: <ThrowOnError extends boolean = false>(options: Options<OauthDeviceAuthorizationData, ThrowOnError>) => RequestResult<OauthDeviceAuthorizationResponses, OauthDeviceAuthorizationErrors, ThrowOnError>;
208
+ /**
209
+ * Authorize
210
+ *
211
+ * The browser entry point for the authorization-code flow. This is a
212
+ * redirect target, not something to call from code.
213
+ *
214
+ * An unknown `client_id` or an unregistered `redirect_uri` is shown to the
215
+ * USER and never redirected, because sending an error to an address we
216
+ * have not verified belongs to you is how an open redirector works.
217
+ * Everything else comes back to your `redirect_uri` with `error`, your
218
+ * `state`, and `iss`.
219
+ *
220
+ */
221
+ export declare const oauthAuthorize: <ThrowOnError extends boolean = false>(options: Options<OauthAuthorizeData, ThrowOnError>) => RequestResult<unknown, OauthAuthorizeErrors, ThrowOnError>;
222
+ /**
223
+ * Token
224
+ *
225
+ * Three grant types.
226
+ *
227
+ * `urn:ietf:params:oauth:grant-type:device_code` polls a device
228
+ * authorization. Until the person approves it answers
229
+ * `authorization_pending`; poll faster than `interval` and it answers
230
+ * `slow_down`, which means widen your interval and keep it widened.
231
+ *
232
+ * `authorization_code` exchanges a code from `/oauth/authorize`, with the
233
+ * `code_verifier` matching the challenge you sent.
234
+ *
235
+ * `refresh_token` exchanges a refresh token. The presented token is
236
+ * consumed whatever happens next, so store the new one before using it.
237
+ *
238
+ */
239
+ export declare const oauthToken: <ThrowOnError extends boolean = false>(options: Options<OauthTokenData, ThrowOnError>) => RequestResult<OauthTokenResponses, OauthTokenErrors, ThrowOnError>;
240
+ /**
241
+ * Revoke
242
+ *
243
+ * RFC 7009. Always answers 200, including for a token that was never
244
+ * valid - an endpoint that distinguished the two would be a way to test
245
+ * whether a stolen string is a live credential.
246
+ *
247
+ * Revoking a REFRESH token ends the whole authorization and takes its
248
+ * access tokens with it. Revoking an access token affects only that token.
249
+ *
250
+ */
251
+ export declare const oauthRevoke: <ThrowOnError extends boolean = false>(options: Options<OauthRevokeData, ThrowOnError>) => RequestResult<OauthRevokeResponses, unknown, ThrowOnError>;