@internetdata/internetdata 2.1.0 → 2.2.1

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.
@@ -14,21 +14,21 @@ export type Error = {
14
14
  */
15
15
  export type DatabaseFormat = 'csvgz' | 'mmdb';
16
16
  /**
17
- * Where your licence for a database family stands today. `licensed` is a
17
+ * Where your license for a database family stands today. `licensed` is a
18
18
  * live grant, `expired` one whose term has ended, and `unlicensed` a
19
19
  * database published but never bought.
20
20
  *
21
21
  */
22
22
  export type Standing = 'licensed' | 'expired' | 'unlicensed';
23
23
  /**
24
- * One database FAMILY, with your organization's licence beside it. A
25
- * licence covers the family, while a download names a specific version,
24
+ * One database FAMILY, with your organization's license beside it. A
25
+ * license covers the family, while a download names a specific version,
26
26
  * so the ids passed to `download` and `checksum` come from `versions`.
27
27
  *
28
28
  */
29
29
  export type Database = {
30
30
  /**
31
- * The family, e.g. `vpn_ip`. What a licence is held against.
31
+ * The family, e.g. `vpn_ip`. What a license is held against.
32
32
  */
33
33
  base: string;
34
34
  name: string;
@@ -38,18 +38,18 @@ export type Database = {
38
38
  summary: string;
39
39
  standing: Standing;
40
40
  /**
41
- * What your licence permits you to do with the data. Null when there
42
- * is no licence, which is every family with standing `unlicensed`.
41
+ * What your license permits you to do with the data. Null when there
42
+ * is no license, which is every family with standing `unlicensed`.
43
43
  *
44
44
  */
45
45
  license_type: 'evaluation' | 'standard' | 'redistribute' | null;
46
46
  starts: string | null;
47
47
  /**
48
- * A hard stop. Null when the licence has no end date, which is the normal case for a rolling agreement, and when there is no licence. A rolling licence reports its turnover date in renews_at instead.
48
+ * A hard stop. Null when the license has no end date, which is the normal case for a rolling agreement, and when there is no license. A rolling license reports its turnover date in renews_at instead.
49
49
  */
50
50
  expires: string | null;
51
51
  /**
52
- * When a rolling licence next renews. Null when the licence has no defined term, when expires sets a hard stop instead, and when there is no licence.
52
+ * When a rolling license next renews. Null when the license has no defined term, when expires sets a hard stop instead, and when there is no license.
53
53
  */
54
54
  renews_at: string | null;
55
55
  /**
@@ -208,6 +208,227 @@ export type DbUnauthorizedIdError = {
208
208
  export type DbNotFoundError = {
209
209
  rc: 'DB_NOT_FOUND';
210
210
  };
211
+ export type AccountRc = {
212
+ /**
213
+ * The outcome. `SUCCESS` on success; otherwise the reason.
214
+ */
215
+ rc: string;
216
+ };
217
+ export type Identity = {
218
+ rc: string;
219
+ user: AccountUser;
220
+ org: AccountOrgRef;
221
+ /**
222
+ * What this credential may do right now.
223
+ */
224
+ scopes: Array<string>;
225
+ };
226
+ export type AccountUser = {
227
+ id: string;
228
+ fullname?: string;
229
+ email?: string;
230
+ };
231
+ export type AccountOrgRef = {
232
+ id: string;
233
+ };
234
+ export type AccountOrgWrap = {
235
+ rc: string;
236
+ org: AccountOrg;
237
+ };
238
+ export type AccountOrg = {
239
+ id: string;
240
+ name?: string;
241
+ created?: string | null;
242
+ };
243
+ export type ApikeyList = {
244
+ rc: string;
245
+ keys: Array<ApikeyDetail>;
246
+ };
247
+ /**
248
+ * Key METADATA. Never the key itself.
249
+ */
250
+ export type ApikeyDetail = {
251
+ id: string;
252
+ name: string;
253
+ /**
254
+ * The leading, non-secret part, so a key is recognisable without storing it.
255
+ */
256
+ key_prefix: string;
257
+ created: string;
258
+ expires?: string | null;
259
+ last_used_at?: string | null;
260
+ revoked_at?: string | null;
261
+ /**
262
+ * Source-IP allowlist. EMPTY MEANS UNRESTRICTED, not deny-all.
263
+ */
264
+ allowed_cidrs?: Array<string>;
265
+ allowed_scopes?: Array<string>;
266
+ /**
267
+ * Whether this key's secret can still be read back. False permanently for a key issued before secrets were stored recoverably.
268
+ */
269
+ retrievable?: boolean;
270
+ };
271
+ export type AccountCreateApikeyRequest = {
272
+ /**
273
+ * A label you will recognise later. Shown wherever the key is listed.
274
+ */
275
+ name: string;
276
+ /**
277
+ * What the new key may do. Omit for a key that carries no named scope, which is the safe default.
278
+ */
279
+ allowed_scopes?: Array<string>;
280
+ };
281
+ export type AccountCreatedApikey = {
282
+ rc: string;
283
+ id: string;
284
+ name?: string;
285
+ /**
286
+ * The secret. Returned once, here, and never again.
287
+ */
288
+ key: string;
289
+ key_prefix?: string;
290
+ allowed_cidrs?: Array<string>;
291
+ allowed_scopes?: Array<string>;
292
+ };
293
+ export type AccountRevealedApikey = {
294
+ rc: string;
295
+ /**
296
+ * The secret.
297
+ */
298
+ key: string;
299
+ };
300
+ export type OauthMetadata = {
301
+ issuer: string;
302
+ authorization_endpoint: string;
303
+ token_endpoint: string;
304
+ device_authorization_endpoint?: string;
305
+ revocation_endpoint?: string;
306
+ scopes_supported?: Array<string>;
307
+ response_types_supported?: Array<string>;
308
+ grant_types_supported?: Array<string>;
309
+ code_challenge_methods_supported?: Array<string>;
310
+ /**
311
+ * Always `none`. Every client is public and has no secret.
312
+ */
313
+ token_endpoint_auth_methods_supported?: Array<string>;
314
+ /**
315
+ * RFC 9207. A redirect back from the authorization endpoint carries `iss`.
316
+ */
317
+ authorization_response_iss_parameter_supported?: boolean;
318
+ service_documentation?: string;
319
+ };
320
+ export type DeviceAuthorizationRequest = {
321
+ client_id: string;
322
+ /**
323
+ * Space-delimited. Anything your client is not registered for is dropped rather than refused.
324
+ */
325
+ scope?: string;
326
+ /**
327
+ * RFC 8707: what the token is for.
328
+ */
329
+ resource?: string;
330
+ };
331
+ export type DeviceAuthorization = {
332
+ /**
333
+ * Yours. Poll with it; never show it to anyone.
334
+ */
335
+ device_code: string;
336
+ /**
337
+ * Short and typable. This is what the person confirms.
338
+ */
339
+ user_code: string;
340
+ verification_uri: string;
341
+ /**
342
+ * The same page with the code already filled in.
343
+ */
344
+ verification_uri_complete?: string;
345
+ /**
346
+ * Seconds until both codes expire.
347
+ */
348
+ expires_in: number;
349
+ /**
350
+ * Seconds between polls.
351
+ */
352
+ interval: number;
353
+ };
354
+ export type TokenRequest = {
355
+ /**
356
+ * `urn:ietf:params:oauth:grant-type:device_code`, `authorization_code` or `refresh_token`.
357
+ */
358
+ grant_type: string;
359
+ client_id: string;
360
+ /**
361
+ * Required by the device code grant.
362
+ */
363
+ device_code?: string;
364
+ /**
365
+ * Required by the authorization code grant.
366
+ */
367
+ code?: string;
368
+ /**
369
+ * Required by the authorization code grant.
370
+ */
371
+ code_verifier?: string;
372
+ /**
373
+ * Authorization code grant: the `redirect_uri` the code was issued against, exactly.
374
+ */
375
+ redirect_uri?: string;
376
+ /**
377
+ * Required by the refresh token grant.
378
+ */
379
+ refresh_token?: string;
380
+ };
381
+ export type TokenResponse = {
382
+ access_token: string;
383
+ /**
384
+ * Always `Bearer`.
385
+ */
386
+ token_type: string;
387
+ /**
388
+ * Seconds until the access token expires.
389
+ */
390
+ expires_in: number;
391
+ /**
392
+ * Always returned. A refresh consumes the token it presents, so keep this one.
393
+ */
394
+ refresh_token?: string;
395
+ /**
396
+ * What was actually granted, which may be narrower than what was asked for.
397
+ */
398
+ scope?: string;
399
+ /**
400
+ * Not part of OAuth. The ID of the API key the person picked when they
401
+ * approved, returned by every grant while this authorization may still
402
+ * read that key back. Absent when no key was picked, or when the
403
+ * person's role no longer allows reading keys back.
404
+ *
405
+ */
406
+ 'mslm:apikey_id'?: string;
407
+ /**
408
+ * Not part of OAuth. The API key itself, so a device ends up holding an
409
+ * ordinary key. Returned by the device code and authorization code
410
+ * grants only, never by a refresh, and only alongside
411
+ * `mslm:apikey_id`. Absent when that key's secret cannot be read back,
412
+ * which is the case for a key created before keys could be shown again
413
+ * in the console; a rotated key can be.
414
+ *
415
+ */
416
+ 'mslm:apikey'?: string;
417
+ };
418
+ export type RevokeRequest = {
419
+ /**
420
+ * An access token or a refresh token.
421
+ */
422
+ token: string;
423
+ /**
424
+ * Accepted and not checked.
425
+ */
426
+ client_id?: string;
427
+ };
428
+ export type OauthError = {
429
+ error: string;
430
+ error_description?: string;
431
+ };
211
432
  /**
212
433
  * Database identifier (e.g. `vpn_ip_v1`, `resproxy_provider_v1`).
213
434
  */
@@ -216,6 +437,10 @@ export type DbId = string;
216
437
  * Database file format.
217
438
  */
218
439
  export type DbFormat = DatabaseFormat;
440
+ /**
441
+ * The key's id, as returned by the list endpoint. Never the key itself.
442
+ */
443
+ export type ApikeyIdParam = string;
219
444
  export type ListDatabasesData = {
220
445
  body?: never;
221
446
  path?: never;
@@ -269,7 +494,7 @@ export type DownloadDatabaseV2Errors = {
269
494
  */
270
495
  401: Error;
271
496
  /**
272
- * Your organization holds no licence for this database, or its term has
497
+ * Your organization holds no license for this database, or its term has
273
498
  * ended.
274
499
  * `rc`: `NOT_LICENSED`, `LICENSE_EXPIRED`.
275
500
  *
@@ -309,7 +534,7 @@ export type DatabaseMetadataV2Errors = {
309
534
  */
310
535
  401: Error;
311
536
  /**
312
- * Your organization holds no licence for this database, or its term has
537
+ * Your organization holds no license for this database, or its term has
313
538
  * ended.
314
539
  * `rc`: `NOT_LICENSED`, `LICENSE_EXPIRED`.
315
540
  *
@@ -364,7 +589,7 @@ export type DatabaseChecksumV2Errors = {
364
589
  */
365
590
  401: Error;
366
591
  /**
367
- * Your organization holds no licence for this database, or its term has
592
+ * Your organization holds no license for this database, or its term has
368
593
  * ended.
369
594
  * `rc`: `NOT_LICENSED`, `LICENSE_EXPIRED`.
370
595
  *
@@ -550,3 +775,360 @@ export type DatabaseMetadataResponses = {
550
775
  200: DbMetadataSuccessResponse;
551
776
  };
552
777
  export type DatabaseMetadataResponse = DatabaseMetadataResponses[keyof DatabaseMetadataResponses];
778
+ export type AccountIdentityData = {
779
+ body?: never;
780
+ path?: never;
781
+ query?: never;
782
+ url: '/api/v1/iam/identity';
783
+ };
784
+ export type AccountIdentityErrors = {
785
+ /**
786
+ * No credential was presented, or it is not valid.
787
+ */
788
+ 401: AccountRc;
789
+ /**
790
+ * The credential does not hold the scope this endpoint requires. The
791
+ * missing scope is deliberately not named.
792
+ *
793
+ */
794
+ 403: AccountRc;
795
+ };
796
+ export type AccountIdentityError = AccountIdentityErrors[keyof AccountIdentityErrors];
797
+ export type AccountIdentityResponses = {
798
+ /**
799
+ * The caller.
800
+ */
801
+ 200: Identity;
802
+ };
803
+ export type AccountIdentityResponse = AccountIdentityResponses[keyof AccountIdentityResponses];
804
+ export type AccountOrgData = {
805
+ body?: never;
806
+ path?: never;
807
+ query?: never;
808
+ url: '/api/v1/iam/org';
809
+ };
810
+ export type AccountOrgErrors = {
811
+ /**
812
+ * No credential was presented, or it is not valid.
813
+ */
814
+ 401: AccountRc;
815
+ /**
816
+ * The credential does not hold the scope this endpoint requires. The
817
+ * missing scope is deliberately not named.
818
+ *
819
+ */
820
+ 403: AccountRc;
821
+ };
822
+ export type AccountOrgError = AccountOrgErrors[keyof AccountOrgErrors];
823
+ export type AccountOrgResponses = {
824
+ /**
825
+ * The organization.
826
+ */
827
+ 200: AccountOrgWrap;
828
+ };
829
+ export type AccountOrgResponse = AccountOrgResponses[keyof AccountOrgResponses];
830
+ export type AccountOrgMembersData = {
831
+ body?: never;
832
+ path?: never;
833
+ query?: never;
834
+ url: '/api/v1/iam/org/members';
835
+ };
836
+ export type AccountOrgMembersErrors = {
837
+ /**
838
+ * No credential was presented, or it is not valid.
839
+ */
840
+ 401: AccountRc;
841
+ /**
842
+ * The credential does not hold the scope this endpoint requires. The
843
+ * missing scope is deliberately not named.
844
+ *
845
+ */
846
+ 403: AccountRc;
847
+ };
848
+ export type AccountOrgMembersError = AccountOrgMembersErrors[keyof AccountOrgMembersErrors];
849
+ export type AccountOrgMembersResponses = {
850
+ /**
851
+ * The members.
852
+ */
853
+ 200: AccountRc;
854
+ };
855
+ export type AccountOrgMembersResponse = AccountOrgMembersResponses[keyof AccountOrgMembersResponses];
856
+ export type AccountListApikeysData = {
857
+ body?: never;
858
+ path?: never;
859
+ query?: never;
860
+ url: '/api/v1/iam/apikeys';
861
+ };
862
+ export type AccountListApikeysErrors = {
863
+ /**
864
+ * No credential was presented, or it is not valid.
865
+ */
866
+ 401: AccountRc;
867
+ /**
868
+ * The credential does not hold the scope this endpoint requires. The
869
+ * missing scope is deliberately not named.
870
+ *
871
+ */
872
+ 403: AccountRc;
873
+ };
874
+ export type AccountListApikeysError = AccountListApikeysErrors[keyof AccountListApikeysErrors];
875
+ export type AccountListApikeysResponses = {
876
+ /**
877
+ * The organization's keys, newest first.
878
+ */
879
+ 200: ApikeyList;
880
+ };
881
+ export type AccountListApikeysResponse = AccountListApikeysResponses[keyof AccountListApikeysResponses];
882
+ export type AccountCreateApikeyData = {
883
+ body: AccountCreateApikeyRequest;
884
+ path?: never;
885
+ query?: never;
886
+ url: '/api/v1/iam/apikeys';
887
+ };
888
+ export type AccountCreateApikeyErrors = {
889
+ /**
890
+ * The request body is missing a required field.
891
+ */
892
+ 400: AccountRc;
893
+ /**
894
+ * No credential was presented, or it is not valid.
895
+ */
896
+ 401: AccountRc;
897
+ /**
898
+ * The credential does not hold the scope this endpoint requires. The
899
+ * missing scope is deliberately not named.
900
+ *
901
+ */
902
+ 403: AccountRc;
903
+ };
904
+ export type AccountCreateApikeyError = AccountCreateApikeyErrors[keyof AccountCreateApikeyErrors];
905
+ export type AccountCreateApikeyResponses = {
906
+ /**
907
+ * The new key, including its secret.
908
+ */
909
+ 200: AccountCreatedApikey;
910
+ };
911
+ export type AccountCreateApikeyResponse = AccountCreateApikeyResponses[keyof AccountCreateApikeyResponses];
912
+ export type AccountRotateApikeyData = {
913
+ body?: never;
914
+ path: {
915
+ /**
916
+ * The key's id, as returned by the list endpoint. Never the key itself.
917
+ */
918
+ id: string;
919
+ };
920
+ query?: never;
921
+ url: '/api/v1/iam/apikeys/{id}/rotate';
922
+ };
923
+ export type AccountRotateApikeyErrors = {
924
+ /**
925
+ * No credential was presented, or it is not valid.
926
+ */
927
+ 401: AccountRc;
928
+ /**
929
+ * The credential does not hold the scope this endpoint requires. The
930
+ * missing scope is deliberately not named.
931
+ *
932
+ */
933
+ 403: AccountRc;
934
+ /**
935
+ * No such key in this organization.
936
+ */
937
+ 404: AccountRc;
938
+ };
939
+ export type AccountRotateApikeyError = AccountRotateApikeyErrors[keyof AccountRotateApikeyErrors];
940
+ export type AccountRotateApikeyResponses = {
941
+ /**
942
+ * The key, with its new secret.
943
+ */
944
+ 200: AccountCreatedApikey;
945
+ };
946
+ export type AccountRotateApikeyResponse = AccountRotateApikeyResponses[keyof AccountRotateApikeyResponses];
947
+ export type AccountRevokeApikeyData = {
948
+ body?: never;
949
+ path: {
950
+ /**
951
+ * The key's id, as returned by the list endpoint. Never the key itself.
952
+ */
953
+ id: string;
954
+ };
955
+ query?: never;
956
+ url: '/api/v1/iam/apikeys/{id}/revoke';
957
+ };
958
+ export type AccountRevokeApikeyErrors = {
959
+ /**
960
+ * No credential was presented, or it is not valid.
961
+ */
962
+ 401: AccountRc;
963
+ /**
964
+ * The credential does not hold the scope this endpoint requires. The
965
+ * missing scope is deliberately not named.
966
+ *
967
+ */
968
+ 403: AccountRc;
969
+ /**
970
+ * No such key in this organization.
971
+ */
972
+ 404: AccountRc;
973
+ };
974
+ export type AccountRevokeApikeyError = AccountRevokeApikeyErrors[keyof AccountRevokeApikeyErrors];
975
+ export type AccountRevokeApikeyResponses = {
976
+ /**
977
+ * Revoked.
978
+ */
979
+ 200: AccountRc;
980
+ };
981
+ export type AccountRevokeApikeyResponse = AccountRevokeApikeyResponses[keyof AccountRevokeApikeyResponses];
982
+ export type AccountRevealApikeyData = {
983
+ body?: never;
984
+ path: {
985
+ /**
986
+ * The key's id, as returned by the list endpoint. Never the key itself.
987
+ */
988
+ id: string;
989
+ };
990
+ query?: never;
991
+ url: '/api/v1/iam/apikeys/{id}/reveal';
992
+ };
993
+ export type AccountRevealApikeyErrors = {
994
+ /**
995
+ * No credential was presented, or it is not valid.
996
+ */
997
+ 401: AccountRc;
998
+ /**
999
+ * The credential does not hold the scope this endpoint requires. The
1000
+ * missing scope is deliberately not named.
1001
+ *
1002
+ */
1003
+ 403: AccountRc;
1004
+ /**
1005
+ * No such key in this organization, or its secret was never stored
1006
+ * recoverably (`NOT_RETRIEVABLE`).
1007
+ *
1008
+ */
1009
+ 404: AccountRc;
1010
+ };
1011
+ export type AccountRevealApikeyError = AccountRevealApikeyErrors[keyof AccountRevealApikeyErrors];
1012
+ export type AccountRevealApikeyResponses = {
1013
+ /**
1014
+ * The key's secret.
1015
+ */
1016
+ 200: AccountRevealedApikey;
1017
+ };
1018
+ export type AccountRevealApikeyResponse = AccountRevealApikeyResponses[keyof AccountRevealApikeyResponses];
1019
+ export type OauthMetadataData = {
1020
+ body?: never;
1021
+ path?: never;
1022
+ query?: never;
1023
+ url: '/.well-known/oauth-authorization-server';
1024
+ };
1025
+ export type OauthMetadataResponses = {
1026
+ /**
1027
+ * The server's metadata.
1028
+ */
1029
+ 200: OauthMetadata;
1030
+ };
1031
+ export type OauthMetadataResponse = OauthMetadataResponses[keyof OauthMetadataResponses];
1032
+ export type OauthDeviceAuthorizationData = {
1033
+ body: DeviceAuthorizationRequest;
1034
+ path?: never;
1035
+ query?: never;
1036
+ url: '/oauth/device_authorization';
1037
+ };
1038
+ export type OauthDeviceAuthorizationErrors = {
1039
+ /**
1040
+ * `invalid_request`, `unauthorized_client` when the client may not use
1041
+ * the device flow, or `slow_down` when this address has started too
1042
+ * many authorizations.
1043
+ *
1044
+ */
1045
+ 400: OauthError;
1046
+ /**
1047
+ * `invalid_client`: the `client_id` is not registered.
1048
+ */
1049
+ 401: OauthError;
1050
+ };
1051
+ export type OauthDeviceAuthorizationError = OauthDeviceAuthorizationErrors[keyof OauthDeviceAuthorizationErrors];
1052
+ export type OauthDeviceAuthorizationResponses = {
1053
+ /**
1054
+ * A pending device authorization.
1055
+ */
1056
+ 200: DeviceAuthorization;
1057
+ };
1058
+ export type OauthDeviceAuthorizationResponse = OauthDeviceAuthorizationResponses[keyof OauthDeviceAuthorizationResponses];
1059
+ export type OauthAuthorizeData = {
1060
+ body?: never;
1061
+ path?: never;
1062
+ query: {
1063
+ client_id: string;
1064
+ redirect_uri: string;
1065
+ response_type: 'code';
1066
+ code_challenge: string;
1067
+ /**
1068
+ * S256 only. `plain` is refused rather than downgraded.
1069
+ */
1070
+ code_challenge_method?: 'S256';
1071
+ scope?: string;
1072
+ /**
1073
+ * Returned unchanged. Use it to bind the response to your request.
1074
+ */
1075
+ state?: string;
1076
+ /**
1077
+ * RFC 8707. What the token is FOR, so it cannot be replayed elsewhere.
1078
+ */
1079
+ resource?: string;
1080
+ };
1081
+ url: '/oauth/authorize';
1082
+ };
1083
+ export type OauthAuthorizeErrors = {
1084
+ /**
1085
+ * Shown to the user. An unverified redirect target is never sent an error.
1086
+ */
1087
+ 400: unknown;
1088
+ };
1089
+ export type OauthTokenData = {
1090
+ body: TokenRequest;
1091
+ path?: never;
1092
+ query?: never;
1093
+ url: '/oauth/token';
1094
+ };
1095
+ export type OauthTokenErrors = {
1096
+ /**
1097
+ * An RFC 6749 error. `authorization_pending` and `slow_down` are
1098
+ * normal answers while polling a device authorization, not failures.
1099
+ * `access_denied` means the person refused, and `expired_token` that
1100
+ * the device code is no longer valid: it expired, or it was already
1101
+ * exchanged or refused. `invalid_grant` means the code, device code or
1102
+ * refresh token is not valid for this `client_id`. `slow_down` also
1103
+ * answers any grant when this address sends too many requests.
1104
+ *
1105
+ */
1106
+ 400: OauthError;
1107
+ /**
1108
+ * `invalid_client`: the `client_id` is not registered.
1109
+ */
1110
+ 401: OauthError;
1111
+ };
1112
+ export type OauthTokenError = OauthTokenErrors[keyof OauthTokenErrors];
1113
+ export type OauthTokenResponses = {
1114
+ /**
1115
+ * Tokens.
1116
+ */
1117
+ 200: TokenResponse;
1118
+ };
1119
+ export type OauthTokenResponse = OauthTokenResponses[keyof OauthTokenResponses];
1120
+ export type OauthRevokeData = {
1121
+ body: RevokeRequest;
1122
+ path?: never;
1123
+ query?: never;
1124
+ url: '/oauth/revoke';
1125
+ };
1126
+ export type OauthRevokeResponses = {
1127
+ /**
1128
+ * Always, whatever was presented.
1129
+ */
1130
+ 200: {
1131
+ [key: string]: unknown;
1132
+ };
1133
+ };
1134
+ export type OauthRevokeResponse = OauthRevokeResponses[keyof OauthRevokeResponses];
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export { InternetData, DatabaseApi, DEFAULT_BASE_URL } from './client.js';
2
2
  export type { DownloadDestination, DownloadsOptions, Options } from './client.js';
3
- export { InternetDataError } from './errors.js';
3
+ export { OauthApi } from './oauth.js';
4
+ export type { OauthOptions, DeviceAuthorizationOptions, PollDeviceTokenOptions, OauthMetadata, DeviceAuthorization, TokenResponse, } from './oauth.js';
5
+ export { InternetDataError, OauthError, OauthAccessDeniedError, OauthExpiredTokenError, } from './errors.js';
4
6
  export type { ErrorKind } from './errors.js';
5
7
  export { DATABASE_FORMATS, DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
6
8
  export type { Database, DatabaseFormat, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DatasetFormat, DbChecksums, Download, LicenseType, Standing, } from './types.js';
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { InternetData, DatabaseApi, DEFAULT_BASE_URL } from './client.js';
2
- export { InternetDataError } from './errors.js';
2
+ export { OauthApi } from './oauth.js';
3
+ export { InternetDataError, OauthError, OauthAccessDeniedError, OauthExpiredTokenError, } from './errors.js';
3
4
  export { DATABASE_FORMATS, DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
4
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EACH,iBAAiB,EAAE,UAAU,EAAE,sBAAsB,EAAE,sBAAsB,GAChF,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}