@coscine/api-client 2.12.0 → 3.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.
Files changed (140) hide show
  1. package/README.md +5 -1
  2. package/dist/index.js +4230 -4029
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.umd.js +4238 -4036
  5. package/dist/index.umd.js.map +1 -1
  6. package/dist/lib/Coscine.Api/api.js +6792 -0
  7. package/dist/lib/Coscine.Api/api.js.map +1 -0
  8. package/dist/lib/{Coscine.Api.Organization → Coscine.Api}/base.js +5 -5
  9. package/dist/lib/Coscine.Api/base.js.map +1 -0
  10. package/dist/lib/{Coscine.Api.Metadata → Coscine.Api}/common.js +4 -4
  11. package/dist/lib/Coscine.Api/common.js.map +1 -0
  12. package/dist/lib/{Coscine.Api.Metadata → Coscine.Api}/configuration.js +4 -4
  13. package/dist/lib/Coscine.Api/configuration.js.map +1 -0
  14. package/dist/lib/{Coscine.Api.Organization → Coscine.Api}/index.js +4 -4
  15. package/dist/lib/Coscine.Api/index.js.map +1 -0
  16. package/dist/lib/apis.js +65 -63
  17. package/dist/lib/apis.js.map +1 -1
  18. package/dist/lib/index.js +10 -9
  19. package/dist/lib/index.js.map +1 -1
  20. package/dist/types/Coscine.Api/api.d.ts +7160 -0
  21. package/dist/types/{Coscine.Api.Notices → Coscine.Api}/base.d.ts +4 -4
  22. package/dist/types/{Coscine.Api.Organization → Coscine.Api}/common.d.ts +4 -4
  23. package/dist/types/{Coscine.Api.Metadata → Coscine.Api}/configuration.d.ts +4 -4
  24. package/dist/types/Coscine.Api/index.d.ts +13 -0
  25. package/dist/types/apis.d.ts +104 -88
  26. package/dist/types/index.d.ts +209 -177
  27. package/package.json +3 -3
  28. package/dist/lib/Coscine.Api.Metadata/api.js +0 -450
  29. package/dist/lib/Coscine.Api.Metadata/api.js.map +0 -1
  30. package/dist/lib/Coscine.Api.Metadata/base.js +0 -65
  31. package/dist/lib/Coscine.Api.Metadata/base.js.map +0 -1
  32. package/dist/lib/Coscine.Api.Metadata/common.js.map +0 -1
  33. package/dist/lib/Coscine.Api.Metadata/configuration.js.map +0 -1
  34. package/dist/lib/Coscine.Api.Metadata/index.js +0 -32
  35. package/dist/lib/Coscine.Api.Metadata/index.js.map +0 -1
  36. package/dist/lib/Coscine.Api.Notices/api.js +0 -207
  37. package/dist/lib/Coscine.Api.Notices/api.js.map +0 -1
  38. package/dist/lib/Coscine.Api.Notices/base.js +0 -65
  39. package/dist/lib/Coscine.Api.Notices/base.js.map +0 -1
  40. package/dist/lib/Coscine.Api.Notices/common.js +0 -153
  41. package/dist/lib/Coscine.Api.Notices/common.js.map +0 -1
  42. package/dist/lib/Coscine.Api.Notices/configuration.js +0 -43
  43. package/dist/lib/Coscine.Api.Notices/configuration.js.map +0 -1
  44. package/dist/lib/Coscine.Api.Notices/index.js +0 -32
  45. package/dist/lib/Coscine.Api.Notices/index.js.map +0 -1
  46. package/dist/lib/Coscine.Api.Organization/api.js +0 -398
  47. package/dist/lib/Coscine.Api.Organization/api.js.map +0 -1
  48. package/dist/lib/Coscine.Api.Organization/base.js.map +0 -1
  49. package/dist/lib/Coscine.Api.Organization/common.js +0 -153
  50. package/dist/lib/Coscine.Api.Organization/common.js.map +0 -1
  51. package/dist/lib/Coscine.Api.Organization/configuration.js +0 -43
  52. package/dist/lib/Coscine.Api.Organization/configuration.js.map +0 -1
  53. package/dist/lib/Coscine.Api.Organization/index.js.map +0 -1
  54. package/dist/lib/Coscine.Api.Pid/api.js +0 -204
  55. package/dist/lib/Coscine.Api.Pid/api.js.map +0 -1
  56. package/dist/lib/Coscine.Api.Pid/base.js +0 -65
  57. package/dist/lib/Coscine.Api.Pid/base.js.map +0 -1
  58. package/dist/lib/Coscine.Api.Pid/common.js +0 -153
  59. package/dist/lib/Coscine.Api.Pid/common.js.map +0 -1
  60. package/dist/lib/Coscine.Api.Pid/configuration.js +0 -43
  61. package/dist/lib/Coscine.Api.Pid/configuration.js.map +0 -1
  62. package/dist/lib/Coscine.Api.Pid/index.js +0 -32
  63. package/dist/lib/Coscine.Api.Pid/index.js.map +0 -1
  64. package/dist/lib/Coscine.Api.Project/api.js +0 -2117
  65. package/dist/lib/Coscine.Api.Project/api.js.map +0 -1
  66. package/dist/lib/Coscine.Api.Project/base.js +0 -65
  67. package/dist/lib/Coscine.Api.Project/base.js.map +0 -1
  68. package/dist/lib/Coscine.Api.Project/common.js +0 -153
  69. package/dist/lib/Coscine.Api.Project/common.js.map +0 -1
  70. package/dist/lib/Coscine.Api.Project/configuration.js +0 -43
  71. package/dist/lib/Coscine.Api.Project/configuration.js.map +0 -1
  72. package/dist/lib/Coscine.Api.Project/index.js +0 -32
  73. package/dist/lib/Coscine.Api.Project/index.js.map +0 -1
  74. package/dist/lib/Coscine.Api.Resources/api.js +0 -1307
  75. package/dist/lib/Coscine.Api.Resources/api.js.map +0 -1
  76. package/dist/lib/Coscine.Api.Resources/base.js +0 -65
  77. package/dist/lib/Coscine.Api.Resources/base.js.map +0 -1
  78. package/dist/lib/Coscine.Api.Resources/common.js +0 -153
  79. package/dist/lib/Coscine.Api.Resources/common.js.map +0 -1
  80. package/dist/lib/Coscine.Api.Resources/configuration.js +0 -43
  81. package/dist/lib/Coscine.Api.Resources/configuration.js.map +0 -1
  82. package/dist/lib/Coscine.Api.Resources/index.js +0 -32
  83. package/dist/lib/Coscine.Api.Resources/index.js.map +0 -1
  84. package/dist/lib/Coscine.Api.Token/api.js +0 -385
  85. package/dist/lib/Coscine.Api.Token/api.js.map +0 -1
  86. package/dist/lib/Coscine.Api.Token/base.js +0 -65
  87. package/dist/lib/Coscine.Api.Token/base.js.map +0 -1
  88. package/dist/lib/Coscine.Api.Token/common.js +0 -153
  89. package/dist/lib/Coscine.Api.Token/common.js.map +0 -1
  90. package/dist/lib/Coscine.Api.Token/configuration.js +0 -43
  91. package/dist/lib/Coscine.Api.Token/configuration.js.map +0 -1
  92. package/dist/lib/Coscine.Api.Token/index.js +0 -32
  93. package/dist/lib/Coscine.Api.Token/index.js.map +0 -1
  94. package/dist/lib/Coscine.Api.User/api.js +0 -965
  95. package/dist/lib/Coscine.Api.User/api.js.map +0 -1
  96. package/dist/lib/Coscine.Api.User/base.js +0 -65
  97. package/dist/lib/Coscine.Api.User/base.js.map +0 -1
  98. package/dist/lib/Coscine.Api.User/common.js +0 -153
  99. package/dist/lib/Coscine.Api.User/common.js.map +0 -1
  100. package/dist/lib/Coscine.Api.User/configuration.js +0 -43
  101. package/dist/lib/Coscine.Api.User/configuration.js.map +0 -1
  102. package/dist/lib/Coscine.Api.User/index.js +0 -32
  103. package/dist/lib/Coscine.Api.User/index.js.map +0 -1
  104. package/dist/types/Coscine.Api.Metadata/api.d.ts +0 -299
  105. package/dist/types/Coscine.Api.Metadata/base.d.ts +0 -55
  106. package/dist/types/Coscine.Api.Metadata/common.d.ts +0 -65
  107. package/dist/types/Coscine.Api.Metadata/index.d.ts +0 -13
  108. package/dist/types/Coscine.Api.Notices/api.d.ts +0 -153
  109. package/dist/types/Coscine.Api.Notices/common.d.ts +0 -65
  110. package/dist/types/Coscine.Api.Notices/configuration.d.ts +0 -83
  111. package/dist/types/Coscine.Api.Notices/index.d.ts +0 -13
  112. package/dist/types/Coscine.Api.Organization/api.d.ts +0 -256
  113. package/dist/types/Coscine.Api.Organization/base.d.ts +0 -55
  114. package/dist/types/Coscine.Api.Organization/configuration.d.ts +0 -83
  115. package/dist/types/Coscine.Api.Organization/index.d.ts +0 -13
  116. package/dist/types/Coscine.Api.Pid/api.d.ts +0 -149
  117. package/dist/types/Coscine.Api.Pid/base.d.ts +0 -55
  118. package/dist/types/Coscine.Api.Pid/common.d.ts +0 -65
  119. package/dist/types/Coscine.Api.Pid/configuration.d.ts +0 -83
  120. package/dist/types/Coscine.Api.Pid/index.d.ts +0 -13
  121. package/dist/types/Coscine.Api.Project/api.d.ts +0 -1876
  122. package/dist/types/Coscine.Api.Project/base.d.ts +0 -55
  123. package/dist/types/Coscine.Api.Project/common.d.ts +0 -65
  124. package/dist/types/Coscine.Api.Project/configuration.d.ts +0 -83
  125. package/dist/types/Coscine.Api.Project/index.d.ts +0 -13
  126. package/dist/types/Coscine.Api.Resources/api.d.ts +0 -1733
  127. package/dist/types/Coscine.Api.Resources/base.d.ts +0 -55
  128. package/dist/types/Coscine.Api.Resources/common.d.ts +0 -65
  129. package/dist/types/Coscine.Api.Resources/configuration.d.ts +0 -83
  130. package/dist/types/Coscine.Api.Resources/index.d.ts +0 -13
  131. package/dist/types/Coscine.Api.Token/api.d.ts +0 -316
  132. package/dist/types/Coscine.Api.Token/base.d.ts +0 -55
  133. package/dist/types/Coscine.Api.Token/common.d.ts +0 -65
  134. package/dist/types/Coscine.Api.Token/configuration.d.ts +0 -83
  135. package/dist/types/Coscine.Api.Token/index.d.ts +0 -13
  136. package/dist/types/Coscine.Api.User/api.d.ts +0 -745
  137. package/dist/types/Coscine.Api.User/base.d.ts +0 -55
  138. package/dist/types/Coscine.Api.User/common.d.ts +0 -65
  139. package/dist/types/Coscine.Api.User/configuration.d.ts +0 -83
  140. package/dist/types/Coscine.Api.User/index.d.ts +0 -13
@@ -1,55 +0,0 @@
1
- /**
2
- * Coscine.Api.Resources
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.5.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
14
- export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const COLLECTION_FORMATS: {
20
- csv: string;
21
- ssv: string;
22
- tsv: string;
23
- pipes: string;
24
- };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
- export interface RequestArgs {
31
- url: string;
32
- options: any;
33
- }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
- export declare class BaseAPI {
40
- protected basePath: string;
41
- protected axios: AxiosInstance;
42
- protected configuration: Configuration | undefined;
43
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
- }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
- export declare class RequiredError extends Error {
52
- field: string;
53
- name: "RequiredError";
54
- constructor(field: string, msg?: string);
55
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Coscine.Api.Resources
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.5.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from "./configuration";
13
- import { RequestArgs } from "./base";
14
- import { AxiosInstance } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const DUMMY_BASE_URL = "https://example.com";
20
- /**
21
- *
22
- * @throws {RequiredError}
23
- * @export
24
- */
25
- export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
- export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
- /**
52
- *
53
- * @export
54
- */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
- export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,83 +0,0 @@
1
- /**
2
- * Coscine.Api.Resources
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.5.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export interface ConfigurationParameters {
13
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
- username?: string;
15
- password?: string;
16
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
- basePath?: string;
18
- baseOptions?: any;
19
- formDataCtor?: new () => any;
20
- }
21
- export declare class Configuration {
22
- /**
23
- * parameter for apiKey security
24
- * @param name security name
25
- * @memberof Configuration
26
- */
27
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
- /**
29
- * parameter for basic security
30
- *
31
- * @type {string}
32
- * @memberof Configuration
33
- */
34
- username?: string;
35
- /**
36
- * parameter for basic security
37
- *
38
- * @type {string}
39
- * @memberof Configuration
40
- */
41
- password?: string;
42
- /**
43
- * parameter for oauth2 security
44
- * @param name security name
45
- * @param scopes oauth2 scope
46
- * @memberof Configuration
47
- */
48
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
49
- /**
50
- * override base path
51
- *
52
- * @type {string}
53
- * @memberof Configuration
54
- */
55
- basePath?: string;
56
- /**
57
- * base options for axios calls
58
- *
59
- * @type {any}
60
- * @memberof Configuration
61
- */
62
- baseOptions?: any;
63
- /**
64
- * The FormData constructor that will be used to create multipart form data
65
- * requests. You can inject this here so that execution environments that
66
- * do not support the FormData class can still run the generated client.
67
- *
68
- * @type {new () => FormData}
69
- */
70
- formDataCtor?: new () => any;
71
- constructor(param?: ConfigurationParameters);
72
- /**
73
- * Check if the given MIME is a JSON MIME.
74
- * JSON MIME examples:
75
- * application/json
76
- * application/json; charset=UTF8
77
- * APPLICATION/JSON
78
- * application/vnd.company+json
79
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
80
- * @return True if the given MIME is JSON, false otherwise.
81
- */
82
- isJsonMime(mime: string): boolean;
83
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Coscine.Api.Resources
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.5.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export * from "./api";
13
- export * from "./configuration";
@@ -1,316 +0,0 @@
1
- /**
2
- * Coscine.Api.Token
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 2.2.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from './configuration';
13
- import { AxiosPromise, AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from './base';
15
- /**
16
- * Used to parse the json request for add token.
17
- * @export
18
- * @interface AddApiTokenParameter
19
- */
20
- export interface AddApiTokenParameter {
21
- /**
22
- * Gets or sets the name of the token.
23
- * @type {string}
24
- * @memberof AddApiTokenParameter
25
- */
26
- name?: string | null;
27
- /**
28
- * Gets or sets the expiration of the token.
29
- * @type {number}
30
- * @memberof AddApiTokenParameter
31
- */
32
- expiration?: number | null;
33
- }
34
- /**
35
- *
36
- * @export
37
- * @interface ApiTokenObject
38
- */
39
- export interface ApiTokenObject {
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof ApiTokenObject
44
- */
45
- tokenId?: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof ApiTokenObject
50
- */
51
- name?: string | null;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof ApiTokenObject
56
- */
57
- created?: string;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof ApiTokenObject
62
- */
63
- expires?: string;
64
- }
65
- /**
66
- *
67
- * @export
68
- * @interface CreatedApiTokenObject
69
- */
70
- export interface CreatedApiTokenObject {
71
- /**
72
- *
73
- * @type {string}
74
- * @memberof CreatedApiTokenObject
75
- */
76
- tokenId?: string;
77
- /**
78
- *
79
- * @type {string}
80
- * @memberof CreatedApiTokenObject
81
- */
82
- name?: string | null;
83
- /**
84
- *
85
- * @type {string}
86
- * @memberof CreatedApiTokenObject
87
- */
88
- created?: string;
89
- /**
90
- *
91
- * @type {string}
92
- * @memberof CreatedApiTokenObject
93
- */
94
- expires?: string;
95
- /**
96
- * Gets or sets the jwt token value of the token.
97
- * @type {string}
98
- * @memberof CreatedApiTokenObject
99
- */
100
- token?: string | null;
101
- }
102
- /**
103
- * Retuned upon creation of a new token. Contains the jwt token.
104
- * @export
105
- * @interface CreatedApiTokenObjectAllOf
106
- */
107
- export interface CreatedApiTokenObjectAllOf {
108
- /**
109
- * Gets or sets the jwt token value of the token.
110
- * @type {string}
111
- * @memberof CreatedApiTokenObjectAllOf
112
- */
113
- token?: string | null;
114
- }
115
- /**
116
- * Contains the minimum and maximum token validity in days from today.
117
- * @export
118
- * @interface TokenValidityObject
119
- */
120
- export interface TokenValidityObject {
121
- /**
122
- * Object holding the specified token minumum and maximum validity in days from today.
123
- * @type {number}
124
- * @memberof TokenValidityObject
125
- */
126
- minDays?: number;
127
- /**
128
- *
129
- * @type {number}
130
- * @memberof TokenValidityObject
131
- */
132
- maxDays?: number;
133
- }
134
- /**
135
- * TokenApi - axios parameter creator
136
- * @export
137
- */
138
- export declare const TokenApiAxiosParamCreator: (configuration?: Configuration) => {
139
- /**
140
- *
141
- * @summary Add a new token for the user.
142
- * @param {AddApiTokenParameter} addApiTokenParameter Parsed from json
143
- * @param {*} [options] Override http request option.
144
- * @throws {RequiredError}
145
- */
146
- tokenAddToken: (addApiTokenParameter: AddApiTokenParameter, options?: any) => Promise<RequestArgs>;
147
- /**
148
- *
149
- * @summary Get the specified token minumum and maximum validity in days.
150
- * @param {*} [options] Override http request option.
151
- * @throws {RequiredError}
152
- */
153
- tokenGetTokenValidityBounds: (options?: any) => Promise<RequestArgs>;
154
- /**
155
- *
156
- * @summary Get the specific token values.
157
- * @param {string} tokenId User tokenId
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- */
161
- tokenGetUserToken: (tokenId: string, options?: any) => Promise<RequestArgs>;
162
- /**
163
- *
164
- * @summary List all tokens of the current user.
165
- * @param {*} [options] Override http request option.
166
- * @throws {RequiredError}
167
- */
168
- tokenGetUserTokens: (options?: any) => Promise<RequestArgs>;
169
- /**
170
- *
171
- * @summary Revoke a specific token.
172
- * @param {string} tokenId User tokenId
173
- * @param {*} [options] Override http request option.
174
- * @throws {RequiredError}
175
- */
176
- tokenRevokeToken: (tokenId: string, options?: any) => Promise<RequestArgs>;
177
- };
178
- /**
179
- * TokenApi - functional programming interface
180
- * @export
181
- */
182
- export declare const TokenApiFp: (configuration?: Configuration) => {
183
- /**
184
- *
185
- * @summary Add a new token for the user.
186
- * @param {AddApiTokenParameter} addApiTokenParameter Parsed from json
187
- * @param {*} [options] Override http request option.
188
- * @throws {RequiredError}
189
- */
190
- tokenAddToken(addApiTokenParameter: AddApiTokenParameter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatedApiTokenObject>>;
191
- /**
192
- *
193
- * @summary Get the specified token minumum and maximum validity in days.
194
- * @param {*} [options] Override http request option.
195
- * @throws {RequiredError}
196
- */
197
- tokenGetTokenValidityBounds(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokenValidityObject>>;
198
- /**
199
- *
200
- * @summary Get the specific token values.
201
- * @param {string} tokenId User tokenId
202
- * @param {*} [options] Override http request option.
203
- * @throws {RequiredError}
204
- */
205
- tokenGetUserToken(tokenId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiTokenObject>>;
206
- /**
207
- *
208
- * @summary List all tokens of the current user.
209
- * @param {*} [options] Override http request option.
210
- * @throws {RequiredError}
211
- */
212
- tokenGetUserTokens(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiTokenObject>>>;
213
- /**
214
- *
215
- * @summary Revoke a specific token.
216
- * @param {string} tokenId User tokenId
217
- * @param {*} [options] Override http request option.
218
- * @throws {RequiredError}
219
- */
220
- tokenRevokeToken(tokenId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
221
- };
222
- /**
223
- * TokenApi - factory interface
224
- * @export
225
- */
226
- export declare const TokenApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
227
- /**
228
- *
229
- * @summary Add a new token for the user.
230
- * @param {AddApiTokenParameter} addApiTokenParameter Parsed from json
231
- * @param {*} [options] Override http request option.
232
- * @throws {RequiredError}
233
- */
234
- tokenAddToken(addApiTokenParameter: AddApiTokenParameter, options?: any): AxiosPromise<CreatedApiTokenObject>;
235
- /**
236
- *
237
- * @summary Get the specified token minumum and maximum validity in days.
238
- * @param {*} [options] Override http request option.
239
- * @throws {RequiredError}
240
- */
241
- tokenGetTokenValidityBounds(options?: any): AxiosPromise<TokenValidityObject>;
242
- /**
243
- *
244
- * @summary Get the specific token values.
245
- * @param {string} tokenId User tokenId
246
- * @param {*} [options] Override http request option.
247
- * @throws {RequiredError}
248
- */
249
- tokenGetUserToken(tokenId: string, options?: any): AxiosPromise<ApiTokenObject>;
250
- /**
251
- *
252
- * @summary List all tokens of the current user.
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- */
256
- tokenGetUserTokens(options?: any): AxiosPromise<Array<ApiTokenObject>>;
257
- /**
258
- *
259
- * @summary Revoke a specific token.
260
- * @param {string} tokenId User tokenId
261
- * @param {*} [options] Override http request option.
262
- * @throws {RequiredError}
263
- */
264
- tokenRevokeToken(tokenId: string, options?: any): AxiosPromise<any>;
265
- };
266
- /**
267
- * TokenApi - object-oriented interface
268
- * @export
269
- * @class TokenApi
270
- * @extends {BaseAPI}
271
- */
272
- export declare class TokenApi extends BaseAPI {
273
- /**
274
- *
275
- * @summary Add a new token for the user.
276
- * @param {AddApiTokenParameter} addApiTokenParameter Parsed from json
277
- * @param {*} [options] Override http request option.
278
- * @throws {RequiredError}
279
- * @memberof TokenApi
280
- */
281
- tokenAddToken(addApiTokenParameter: AddApiTokenParameter, options?: any): Promise<import("axios").AxiosResponse<CreatedApiTokenObject>>;
282
- /**
283
- *
284
- * @summary Get the specified token minumum and maximum validity in days.
285
- * @param {*} [options] Override http request option.
286
- * @throws {RequiredError}
287
- * @memberof TokenApi
288
- */
289
- tokenGetTokenValidityBounds(options?: any): Promise<import("axios").AxiosResponse<TokenValidityObject>>;
290
- /**
291
- *
292
- * @summary Get the specific token values.
293
- * @param {string} tokenId User tokenId
294
- * @param {*} [options] Override http request option.
295
- * @throws {RequiredError}
296
- * @memberof TokenApi
297
- */
298
- tokenGetUserToken(tokenId: string, options?: any): Promise<import("axios").AxiosResponse<ApiTokenObject>>;
299
- /**
300
- *
301
- * @summary List all tokens of the current user.
302
- * @param {*} [options] Override http request option.
303
- * @throws {RequiredError}
304
- * @memberof TokenApi
305
- */
306
- tokenGetUserTokens(options?: any): Promise<import("axios").AxiosResponse<ApiTokenObject[]>>;
307
- /**
308
- *
309
- * @summary Revoke a specific token.
310
- * @param {string} tokenId User tokenId
311
- * @param {*} [options] Override http request option.
312
- * @throws {RequiredError}
313
- * @memberof TokenApi
314
- */
315
- tokenRevokeToken(tokenId: string, options?: any): Promise<import("axios").AxiosResponse<any>>;
316
- }
@@ -1,55 +0,0 @@
1
- /**
2
- * Coscine.Api.Token
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 2.2.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
14
- export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const COLLECTION_FORMATS: {
20
- csv: string;
21
- ssv: string;
22
- tsv: string;
23
- pipes: string;
24
- };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
- export interface RequestArgs {
31
- url: string;
32
- options: any;
33
- }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
- export declare class BaseAPI {
40
- protected basePath: string;
41
- protected axios: AxiosInstance;
42
- protected configuration: Configuration | undefined;
43
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
- }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
- export declare class RequiredError extends Error {
52
- field: string;
53
- name: "RequiredError";
54
- constructor(field: string, msg?: string);
55
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Coscine.Api.Token
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 2.2.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from "./configuration";
13
- import { RequestArgs } from "./base";
14
- import { AxiosInstance } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const DUMMY_BASE_URL = "https://example.com";
20
- /**
21
- *
22
- * @throws {RequiredError}
23
- * @export
24
- */
25
- export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
- export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
- /**
52
- *
53
- * @export
54
- */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
- export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;