@squonk/account-server-client 4.3.1 → 4.4.0-4-4.2174798239

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 (184) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  2. package/dist/api/actions/actions.cjs +85 -0
  3. package/dist/api/actions/actions.cjs.map +1 -0
  4. package/dist/api/actions/actions.d.cts +74 -0
  5. package/dist/api/actions/actions.d.cts.map +1 -0
  6. package/dist/api/actions/actions.d.ts +74 -0
  7. package/dist/api/actions/actions.d.ts.map +1 -0
  8. package/dist/api/actions/actions.js +79 -0
  9. package/dist/api/actions/actions.js.map +1 -0
  10. package/dist/api/api.schemas.cjs +142 -0
  11. package/dist/api/api.schemas.cjs.map +1 -0
  12. package/dist/api/api.schemas.d.cts +1032 -0
  13. package/dist/api/api.schemas.d.cts.map +1 -0
  14. package/dist/api/api.schemas.d.ts +1032 -0
  15. package/dist/api/api.schemas.d.ts.map +1 -0
  16. package/dist/api/api.schemas.js +118 -0
  17. package/dist/api/api.schemas.js.map +1 -0
  18. package/dist/api/asset/asset.cjs +464 -0
  19. package/dist/api/asset/asset.cjs.map +1 -0
  20. package/{asset → dist/api/asset}/asset.d.cts +132 -130
  21. package/dist/api/asset/asset.d.cts.map +1 -0
  22. package/{asset → dist/api/asset}/asset.d.ts +132 -130
  23. package/dist/api/asset/asset.d.ts.map +1 -0
  24. package/dist/api/asset/asset.js +431 -0
  25. package/dist/api/asset/asset.js.map +1 -0
  26. package/dist/api/charges/charges.cjs +272 -0
  27. package/dist/api/charges/charges.cjs.map +1 -0
  28. package/{charges → dist/api/charges}/charges.d.cts +106 -104
  29. package/dist/api/charges/charges.d.cts.map +1 -0
  30. package/{charges → dist/api/charges}/charges.d.ts +106 -104
  31. package/dist/api/charges/charges.d.ts.map +1 -0
  32. package/dist/api/charges/charges.js +248 -0
  33. package/dist/api/charges/charges.js.map +1 -0
  34. package/dist/api/event-stream/event-stream.cjs +230 -0
  35. package/dist/api/event-stream/event-stream.cjs.map +1 -0
  36. package/{event-stream → dist/api/event-stream}/event-stream.d.cts +75 -73
  37. package/dist/api/event-stream/event-stream.d.cts.map +1 -0
  38. package/{event-stream → dist/api/event-stream}/event-stream.d.ts +75 -73
  39. package/dist/api/event-stream/event-stream.d.ts.map +1 -0
  40. package/dist/api/event-stream/event-stream.js +212 -0
  41. package/dist/api/event-stream/event-stream.js.map +1 -0
  42. package/dist/api/merchant/merchant.cjs +139 -0
  43. package/dist/api/merchant/merchant.cjs.map +1 -0
  44. package/{merchant → dist/api/merchant}/merchant.d.cts +56 -54
  45. package/dist/api/merchant/merchant.d.cts.map +1 -0
  46. package/{merchant → dist/api/merchant}/merchant.d.ts +56 -54
  47. package/dist/api/merchant/merchant.d.ts.map +1 -0
  48. package/dist/api/merchant/merchant.js +127 -0
  49. package/dist/api/merchant/merchant.js.map +1 -0
  50. package/dist/api/organisation/organisation.cjs +341 -0
  51. package/dist/api/organisation/organisation.cjs.map +1 -0
  52. package/{organisation → dist/api/organisation}/organisation.d.cts +112 -110
  53. package/dist/api/organisation/organisation.d.cts.map +1 -0
  54. package/{organisation → dist/api/organisation}/organisation.d.ts +112 -110
  55. package/dist/api/organisation/organisation.d.ts.map +1 -0
  56. package/dist/api/organisation/organisation.js +314 -0
  57. package/dist/api/organisation/organisation.js.map +1 -0
  58. package/dist/api/product/product.cjs +513 -0
  59. package/dist/api/product/product.cjs.map +1 -0
  60. package/{product → dist/api/product}/product.d.cts +188 -186
  61. package/dist/api/product/product.d.cts.map +1 -0
  62. package/{product → dist/api/product}/product.d.ts +188 -186
  63. package/dist/api/product/product.d.ts.map +1 -0
  64. package/dist/api/product/product.js +468 -0
  65. package/dist/api/product/product.js.map +1 -0
  66. package/dist/api/state/state.cjs +76 -0
  67. package/dist/api/state/state.cjs.map +1 -0
  68. package/dist/api/state/state.d.cts +66 -0
  69. package/dist/api/state/state.d.cts.map +1 -0
  70. package/dist/api/state/state.d.ts +66 -0
  71. package/dist/api/state/state.d.ts.map +1 -0
  72. package/dist/api/state/state.js +70 -0
  73. package/dist/api/state/state.js.map +1 -0
  74. package/dist/api/unit/unit.cjs +568 -0
  75. package/dist/api/unit/unit.cjs.map +1 -0
  76. package/{unit → dist/api/unit}/unit.d.cts +167 -165
  77. package/dist/api/unit/unit.d.cts.map +1 -0
  78. package/{unit → dist/api/unit}/unit.d.ts +167 -165
  79. package/dist/api/unit/unit.d.ts.map +1 -0
  80. package/dist/api/unit/unit.js +523 -0
  81. package/dist/api/unit/unit.js.map +1 -0
  82. package/dist/api/user/user.cjs +380 -0
  83. package/dist/api/user/user.cjs.map +1 -0
  84. package/{user → dist/api/user}/user.d.cts +129 -127
  85. package/dist/api/user/user.d.cts.map +1 -0
  86. package/{user → dist/api/user}/user.d.ts +129 -127
  87. package/dist/api/user/user.d.ts.map +1 -0
  88. package/dist/api/user/user.js +350 -0
  89. package/dist/api/user/user.js.map +1 -0
  90. package/dist/custom-instance.cjs +49 -0
  91. package/dist/custom-instance.cjs.map +1 -0
  92. package/dist/custom-instance.d.cts +22 -0
  93. package/dist/custom-instance.d.cts.map +1 -0
  94. package/dist/custom-instance.d.ts +22 -0
  95. package/dist/custom-instance.d.ts.map +1 -0
  96. package/dist/custom-instance.js +44 -0
  97. package/dist/custom-instance.js.map +1 -0
  98. package/dist/index.cjs +31 -0
  99. package/dist/index.d.cts +3 -0
  100. package/dist/index.d.ts +3 -0
  101. package/dist/index.js +4 -0
  102. package/dist/options-mutator.cjs +24 -0
  103. package/dist/options-mutator.cjs.map +1 -0
  104. package/dist/options-mutator.js +23 -0
  105. package/dist/options-mutator.js.map +1 -0
  106. package/orval.config.ts +24 -0
  107. package/package.json +163 -16
  108. package/pnpm-workspace.yaml +3 -0
  109. package/src/api/actions/actions.ts +249 -0
  110. package/src/{account-server-api.schemas.ts → api/api.schemas.ts} +82 -2
  111. package/src/{asset → api/asset}/asset.ts +8 -8
  112. package/src/{charges → api/charges}/charges.ts +9 -9
  113. package/src/{event-stream → api/event-stream}/event-stream.ts +7 -7
  114. package/src/{merchant → api/merchant}/merchant.ts +7 -7
  115. package/src/{organisation → api/organisation}/organisation.ts +8 -8
  116. package/src/{product → api/product}/product.ts +10 -10
  117. package/src/{state → api/state}/state.ts +6 -6
  118. package/src/{unit → api/unit}/unit.ts +9 -9
  119. package/src/{user → api/user}/user.ts +9 -9
  120. package/src/index.ts +2 -2
  121. package/src/options-mutator.ts +2 -2
  122. package/tsconfig.json +29 -0
  123. package/tsdown.config.ts +52 -0
  124. package/asset/asset.cjs +0 -281
  125. package/asset/asset.cjs.map +0 -1
  126. package/asset/asset.js +0 -281
  127. package/asset/asset.js.map +0 -1
  128. package/asset/package.json +0 -7
  129. package/charges/charges.cjs +0 -176
  130. package/charges/charges.cjs.map +0 -1
  131. package/charges/charges.js +0 -176
  132. package/charges/charges.js.map +0 -1
  133. package/charges/package.json +0 -7
  134. package/chunk-3WKSNKHE.js +0 -25
  135. package/chunk-3WKSNKHE.js.map +0 -1
  136. package/chunk-NY2VJJG7.cjs +0 -25
  137. package/chunk-NY2VJJG7.cjs.map +0 -1
  138. package/chunk-RB2KVIEK.cjs +0 -27
  139. package/chunk-RB2KVIEK.cjs.map +0 -1
  140. package/chunk-XYDLYMQ2.js +0 -27
  141. package/chunk-XYDLYMQ2.js.map +0 -1
  142. package/event-stream/event-stream.cjs +0 -144
  143. package/event-stream/event-stream.cjs.map +0 -1
  144. package/event-stream/event-stream.js +0 -144
  145. package/event-stream/event-stream.js.map +0 -1
  146. package/event-stream/package.json +0 -7
  147. package/index.cjs +0 -142
  148. package/index.cjs.map +0 -1
  149. package/index.d.cts +0 -979
  150. package/index.d.ts +0 -979
  151. package/index.js +0 -142
  152. package/index.js.map +0 -1
  153. package/merchant/merchant.cjs +0 -91
  154. package/merchant/merchant.cjs.map +0 -1
  155. package/merchant/merchant.js +0 -91
  156. package/merchant/merchant.js.map +0 -1
  157. package/merchant/package.json +0 -7
  158. package/organisation/organisation.cjs +0 -213
  159. package/organisation/organisation.cjs.map +0 -1
  160. package/organisation/organisation.js +0 -213
  161. package/organisation/organisation.js.map +0 -1
  162. package/organisation/package.json +0 -7
  163. package/product/package.json +0 -7
  164. package/product/product.cjs +0 -341
  165. package/product/product.cjs.map +0 -1
  166. package/product/product.js +0 -341
  167. package/product/product.js.map +0 -1
  168. package/state/package.json +0 -7
  169. package/state/state.cjs +0 -53
  170. package/state/state.cjs.map +0 -1
  171. package/state/state.d.cts +0 -64
  172. package/state/state.d.ts +0 -64
  173. package/state/state.js +0 -53
  174. package/state/state.js.map +0 -1
  175. package/unit/package.json +0 -7
  176. package/unit/unit.cjs +0 -339
  177. package/unit/unit.cjs.map +0 -1
  178. package/unit/unit.js +0 -339
  179. package/unit/unit.js.map +0 -1
  180. package/user/package.json +0 -7
  181. package/user/user.cjs +0 -226
  182. package/user/user.cjs.map +0 -1
  183. package/user/user.js +0 -226
  184. package/user/user.js.map +0 -1
package/index.d.cts DELETED
@@ -1,979 +0,0 @@
1
- import * as axios from 'axios';
2
- import { AxiosRequestConfig, AxiosError } from 'axios';
3
-
4
- /**
5
- * Generated by orval v7.10.0 🍺
6
- * Do not edit manually.
7
- * Account Server API
8
- * The Informatics Matters Account Server API.
9
-
10
- A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
11
-
12
- * OpenAPI spec version: 4.3
13
- */
14
- interface AsError {
15
- /** Brief error text that can be presented to the user */
16
- error: string;
17
- }
18
- type AssetGetByIdResponse = AssetDetail;
19
- interface AssetGetResponse {
20
- /** A list of Assets
21
- */
22
- assets: AssetDetail[];
23
- /** The number of Assets returned
24
- */
25
- count: number;
26
- }
27
- interface AssetPostResponse {
28
- /** The Asset ID
29
- */
30
- id: string;
31
- }
32
- interface ChargesGetResponse {
33
- coins: string;
34
- count: number;
35
- summary: ChargeSummary[];
36
- organisation_charges: OrganisationChargeSummary[];
37
- }
38
- interface EventStreamGetPostResponse {
39
- /** The EventStream ID */
40
- id: number;
41
- /** A symbolic name, used internally to identify the stream */
42
- name: string;
43
- /** The Event Stream location. This will be a URL where events can be fetched. The protocol is typically a WebSocket, but the protocol is defined by the specific Event Stream Service that has been deployed. */
44
- location: string;
45
- /** The Event Stream format. */
46
- format: string;
47
- }
48
- /**
49
- * The Event Stream protocol, used to inform the client how to connect to given locations and handle events. At the moment the AS only supports web-sockets.
50
- */
51
- type EventStreamVersionGetResponseProtocol = (typeof EventStreamVersionGetResponseProtocol)[keyof typeof EventStreamVersionGetResponseProtocol];
52
- declare const EventStreamVersionGetResponseProtocol: {
53
- readonly ERROR_INTERNAL: "ERROR_INTERNAL";
54
- readonly SERVICE_NOT_PRESENT: "SERVICE_NOT_PRESENT";
55
- readonly WEBSOCKET: "WEBSOCKET";
56
- };
57
- interface EventStreamVersionGetResponse {
58
- /** The EventStream implementation version */
59
- version: string;
60
- /** The Event Stream protocol, used to inform the client how to connect to given locations and handle events. At the moment the AS only supports web-sockets. */
61
- protocol: EventStreamVersionGetResponseProtocol;
62
- /** The name of the Event Stream implementation, often used to identify the service origin and implementation. */
63
- name: string;
64
- }
65
- interface StateGetVersionResponse {
66
- /** The Account Server version. This is guaranteed to be a valid semantic version for official (tagged) images. The version value format for unofficial images is a string but otherwise undefined
67
- */
68
- version: string;
69
- }
70
- interface OrganisationPostResponse {
71
- /** The Organisation's unique ID */
72
- id: string;
73
- }
74
- interface UsersGetResponse {
75
- count: number;
76
- organisation?: OrganisationDetail;
77
- unit?: UnitDetail;
78
- /** The list of Organisation Users
79
- */
80
- users: UserDetail[];
81
- }
82
- /**
83
- * The Organisation's default product privacy setting
84
- */
85
- type OrganisationGetDefaultResponseDefaultProductPrivacy = (typeof OrganisationGetDefaultResponseDefaultProductPrivacy)[keyof typeof OrganisationGetDefaultResponseDefaultProductPrivacy];
86
- declare const OrganisationGetDefaultResponseDefaultProductPrivacy: {
87
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
88
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
89
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
90
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
91
- };
92
- interface OrganisationGetDefaultResponse {
93
- /** Whether the user making the API call is a member of the Default Organisation. Only admin users are members of the Default organisation */
94
- caller_is_member?: boolean;
95
- /** The Default Organisation ID
96
- */
97
- id?: string;
98
- /** The Default Organisation Name
99
- */
100
- name?: string;
101
- /** True if the Organisation is private. The Default organisation is always public, although it does not contain a membership (unless you're admin) and only houses Personal Units
102
- */
103
- private?: boolean;
104
- created?: string;
105
- /** The Organisation's default product privacy setting */
106
- default_product_privacy?: OrganisationGetDefaultResponseDefaultProductPrivacy;
107
- }
108
- interface OrganisationUnitPostResponse {
109
- /** The unit's unique ID */
110
- id: string;
111
- }
112
- interface PersonalUnitPutResponse {
113
- /** The unit's Organisation. Used to identify the Default organisation */
114
- organisation_id: string;
115
- /** The unit's unique ID */
116
- id: string;
117
- }
118
- interface OrganisationChargeSummary {
119
- organisation_id: string;
120
- name: string;
121
- summary: ChargeSummary[];
122
- }
123
- interface OrganisationUnitsGetResponse {
124
- count?: number;
125
- organisation: OrganisationAllDetail;
126
- /** A list of Units
127
- */
128
- units: UnitAllDetail[];
129
- }
130
- interface OrganisationChargesGetResponse {
131
- organisation_id: string;
132
- name: string;
133
- coins: string;
134
- summary: ChargeSummary[];
135
- unit_charges: OrganisationUnitChargeSummary[];
136
- }
137
- interface OrganisationUnitChargeSummary {
138
- unit_id: string;
139
- name: string;
140
- /**
141
- * @minimum 1
142
- * @maximum 28
143
- */
144
- billing_day: number;
145
- /** The start of the charge period */
146
- from: string;
147
- /** The date where of first day after the charge period */
148
- until: string;
149
- summary: ChargeSummary[];
150
- }
151
- interface OrganisationsGetResponse {
152
- count: number;
153
- /** A list of Organisations */
154
- organisations: OrganisationAllDetail[];
155
- }
156
- type OrganisationGetResponse = OrganisationAllDetail;
157
- type ProductChargesGetResponseProductType = (typeof ProductChargesGetResponseProductType)[keyof typeof ProductChargesGetResponseProductType];
158
- declare const ProductChargesGetResponseProductType: {
159
- readonly DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION: "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION";
160
- readonly DATA_MANAGER_STORAGE_SUBSCRIPTION: "DATA_MANAGER_STORAGE_SUBSCRIPTION";
161
- };
162
- interface ProductChargesGetResponse {
163
- product_id: string;
164
- product_type: ProductChargesGetResponseProductType;
165
- /**
166
- * @minimum 1
167
- * @maximum 28
168
- */
169
- billing_day: number;
170
- /** True if the product can be (needs to be) claimed. */
171
- claimable: boolean;
172
- claim?: ProductClaimDetail;
173
- count: number;
174
- /** The start of the charge period */
175
- from: string;
176
- /** The date where of first day after the charge period */
177
- until: string;
178
- /** The total number of coins consumed by this product for the invoice period */
179
- coins: string;
180
- processing_charges: ProcessingCharges[];
181
- storage_charges: StorageCharges;
182
- }
183
- type ProductsGetResponseProductsItem = ProductDmStorage | ProductDmProjectTier;
184
- interface ProductsGetResponse {
185
- count: number;
186
- /** All the Products you have access to */
187
- products: ProductsGetResponseProductsItem[];
188
- }
189
- type ProductsGetDefaultStorageCostDefaultStorageCost = {
190
- cost: string;
191
- units: string;
192
- description: string;
193
- };
194
- interface ProductsGetDefaultStorageCost {
195
- default_storage_cost: ProductsGetDefaultStorageCostDefaultStorageCost;
196
- }
197
- interface ProductsGetTypesResponse {
198
- /** The number of Product Types */
199
- count: number;
200
- /** All the Product Types you have access to */
201
- product_types: ProductType[];
202
- }
203
- /**
204
- * The Unit's Product
205
- */
206
- type ProductUnitGetResponseProduct = ProductDmStorage | ProductDmProjectTier;
207
- interface ProductUnitGetResponse {
208
- /** The Unit's Product */
209
- product: ProductUnitGetResponseProduct;
210
- }
211
- interface UnitChargesGetResponse {
212
- /** Whether the user making the API call is a member of the Unit */
213
- caller_is_member: boolean;
214
- unit_id: string;
215
- name?: string;
216
- /** The Unit's owner (a username) */
217
- owner_id: string;
218
- /** True if the Unit is private */
219
- private: boolean;
220
- created: string;
221
- coins: string;
222
- count: number;
223
- /**
224
- * @minimum 1
225
- * @maximum 28
226
- */
227
- billing_day: number;
228
- /** The start of the charge period */
229
- from: string;
230
- /** The date where of first day after the charge period */
231
- until: string;
232
- summary: UnitChargeSummary;
233
- products: UnitProductChargeSummary[];
234
- }
235
- interface UnitChargeSummary {
236
- charges: ChargeSummary[];
237
- }
238
- interface UnitProductChargeSummary {
239
- product_id: string;
240
- product_type: string;
241
- charges: ChargeSummary[];
242
- }
243
- /**
244
- * The type of charge
245
- */
246
- type ChargeSummaryType = (typeof ChargeSummaryType)[keyof typeof ChargeSummaryType];
247
- declare const ChargeSummaryType: {
248
- readonly PROCESSING: "PROCESSING";
249
- readonly STORAGE: "STORAGE";
250
- };
251
- interface ChargeSummary {
252
- /** The type of charge */
253
- type: ChargeSummaryType;
254
- /** The cost, in coins of the charge */
255
- coins: string;
256
- }
257
- interface UnitProductPostResponse {
258
- /** The Product's unique ID */
259
- id: string;
260
- }
261
- type UnitGetResponse = UnitAllDetail;
262
- interface UnitsGetResponse {
263
- /** A list of Units
264
- */
265
- units: OrganisationUnitsGetResponse[];
266
- }
267
- type UserAccountGetResponse = UserAccountDetail;
268
- type AssetDetailScope = (typeof AssetDetailScope)[keyof typeof AssetDetailScope];
269
- declare const AssetDetailScope: {
270
- readonly USER: "USER";
271
- readonly PRODUCT: "PRODUCT";
272
- readonly UNIT: "UNIT";
273
- readonly ORGANISATION: "ORGANISATION";
274
- readonly GLOBAL: "GLOBAL";
275
- };
276
- interface AssetDetail {
277
- creator: string;
278
- id: string;
279
- name: string;
280
- scope: AssetDetailScope;
281
- scope_id: string;
282
- secret: boolean;
283
- disabled: boolean;
284
- content: string;
285
- created: string;
286
- content_modified?: string;
287
- description?: string;
288
- merchants: MerchantDetail[];
289
- }
290
- type ProcessingChargesMerchantKind = (typeof ProcessingChargesMerchantKind)[keyof typeof ProcessingChargesMerchantKind];
291
- declare const ProcessingChargesMerchantKind: {
292
- readonly DATA_MANAGER: "DATA_MANAGER";
293
- };
294
- interface ProcessingCharges {
295
- merchant_name: string;
296
- merchant_kind: ProcessingChargesMerchantKind;
297
- merchant_api_hostname: string;
298
- /** The date when the process stopped */
299
- closed?: string;
300
- /** True if no further change to the charges can occur. Typically True after the charge has been closed for a pre-configured period of time. */
301
- final: boolean;
302
- /** True if charges were received after the charge record was finalised */
303
- post_final_charges?: boolean;
304
- charge: ProcessingChargeItem;
305
- }
306
- interface ProcessingChargeItem {
307
- /** The charge record number */
308
- id: number;
309
- /** The most recent sequence number for this charge */
310
- sqn: number;
311
- name?: string;
312
- username: string;
313
- /** The date and time of the processing charge */
314
- timestamp: string;
315
- /** The coin-cost of the storage */
316
- coins: string;
317
- additional_data?: ChargeAdditionalData;
318
- }
319
- interface StorageCharges {
320
- num_items: number;
321
- items: StorageChargeItem[];
322
- }
323
- interface StorageChargeItem {
324
- item_number: number;
325
- /** The date and time of the processing charge */
326
- date: string;
327
- /** The coin-cost of the storage */
328
- coins: string;
329
- /** The current burn rate, the approximate amount of coins you are currently consuming each day */
330
- current_burn_rate?: string;
331
- /** The date when the charges concluded */
332
- closed?: string;
333
- additional_data?: ChargeAdditionalData;
334
- }
335
- interface ChargeAdditionalData {
336
- [key: string]: unknown;
337
- }
338
- interface ProductDmStorage {
339
- product: ProductDetail;
340
- organisation: OrganisationAllDetail;
341
- unit: UnitAllDetail;
342
- storage: ProductDmStorageDetail;
343
- coins: ProductCoinsDetail;
344
- /** True if the product can be (needs to be) claimed. */
345
- claimable: boolean;
346
- }
347
- interface ProductDmProjectTier {
348
- product: ProductDetail;
349
- organisation: OrganisationAllDetail;
350
- unit: UnitAllDetail;
351
- storage: ProductDmStorageDetail;
352
- coins: ProductCoinsDetail;
353
- instance: ProductInstanceDetail;
354
- /** True if the product can be (needs to be) claimed. */
355
- claimable: boolean;
356
- claim?: ProductClaimDetail;
357
- }
358
- type ProductDmStorageDetailSize = {
359
- /** The humanised size of the peak storage used for the current day. The value is reset at the start of each day */
360
- peak: string;
361
- /** The humanised size of the current storage used for the current day and used to calculate the 'burn rate' */
362
- current: string;
363
- /** The humanised storage unit. The cost of storage is based on the daily peak of the number of units (or part thereof) used */
364
- unit_size: string;
365
- /** The peak number of storage units used today */
366
- units_used: number;
367
- };
368
- type ProductDmStorageDetailCoins = {
369
- /** The number of coins currently committed for the current day. This is added to the accumulated coins at the start of each day */
370
- used: number;
371
- /** The coin cost of a 'unit' of storage or part thereof. The unit size is defined in the storage section of the response */
372
- unit_cost: number;
373
- };
374
- interface ProductDmStorageDetail {
375
- size: ProductDmStorageDetailSize;
376
- coins: ProductDmStorageDetailCoins;
377
- }
378
- interface ProductClaimDetail {
379
- /** The service-specific ID that is using this Subscription
380
- */
381
- id: string;
382
- /** A name for the service-specific ID
383
- */
384
- name?: string;
385
- }
386
- interface ProductCoinsDetail {
387
- /** The billing allowance. When you exceed this during the current billing period the *cost multiplier* will increase */
388
- allowance: number;
389
- /** The limit on your billing period spend. You can exceed the allowance but you cannot exceed the spend limit. Once reached the dependent may be restricted */
390
- limit: number;
391
- /** The total number of coins consumed (in this billing period), excluding the coins that have been consumed for the current day */
392
- used: number;
393
- /** True if the product is operating at or beyond its coin limit. When it is authority to perform actions using the product are severely limited. */
394
- at_limit: boolean;
395
- /** The current burn rate, the approximate amount of coins you are currently consuming each day */
396
- current_burn_rate: number;
397
- /** The predicted total billing period amount, if costs continue at the current burn rate until the end of the billing period. This is an estimate */
398
- billing_prediction: number;
399
- /** The predicted storage contribution to the billing period amount, if costs continue at the current burn rate until the end of the billing period. This is an estimate */
400
- billing_prediction_storage_contribution: number;
401
- /** The day of the month when the bill is due, and the end of the current billing period */
402
- billing_day: number;
403
- /** A multiplier applied to your coin usage within your allowance */
404
- allowance_multiplier: number;
405
- /** A multiplier that will be applied to coin used beyond your allowance */
406
- overspend_multiplier: number;
407
- /** The number of days remaining, in the current billing period */
408
- remaining_days: number;
409
- }
410
- /**
411
- * The Product Type
412
-
413
- */
414
- type ProductDetailType = (typeof ProductDetailType)[keyof typeof ProductDetailType];
415
- declare const ProductDetailType: {
416
- readonly DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION: "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION";
417
- readonly DATA_MANAGER_STORAGE_SUBSCRIPTION: "DATA_MANAGER_STORAGE_SUBSCRIPTION";
418
- };
419
- /**
420
- * The Product Type flavour. Not all products have flavours
421
-
422
- */
423
- type ProductDetailFlavour = (typeof ProductDetailFlavour)[keyof typeof ProductDetailFlavour];
424
- declare const ProductDetailFlavour: {
425
- readonly EVALUATION: "EVALUATION";
426
- readonly BRONZE: "BRONZE";
427
- readonly SILVER: "SILVER";
428
- readonly GOLD: "GOLD";
429
- };
430
- interface ProductDetail {
431
- /** The Product ID
432
- */
433
- id: string;
434
- created: string;
435
- /** The Product Type
436
- */
437
- type: ProductDetailType;
438
- /** The Product Type flavour. Not all products have flavours
439
- */
440
- flavour?: ProductDetailFlavour;
441
- /** The name of the Product
442
- */
443
- name?: string;
444
- }
445
- type ProductInstanceDetailCoins = {
446
- /** The number of coins used
447
- */
448
- used: number;
449
- };
450
- interface ProductInstanceDetail {
451
- coins: ProductInstanceDetailCoins;
452
- }
453
- /**
454
- * The kind of service that can use the Product
455
- */
456
- type ProductTypeServiceKind = (typeof ProductTypeServiceKind)[keyof typeof ProductTypeServiceKind];
457
- declare const ProductTypeServiceKind: {
458
- readonly DATA_MANAGER: "DATA_MANAGER";
459
- };
460
- interface ProductType {
461
- /** A product type, this is a unique string amongst all types known to the Account Server */
462
- type: string;
463
- /** A product flavour. Not all types have a flavour, those that do have a type-specific flavour string */
464
- flavour?: string;
465
- /** The kind of service that can use the Product */
466
- service_kind?: ProductTypeServiceKind;
467
- }
468
- /**
469
- * The Organisation's default product privacy setting
470
- */
471
- type OrganisationAllDetailDefaultProductPrivacy = (typeof OrganisationAllDetailDefaultProductPrivacy)[keyof typeof OrganisationAllDetailDefaultProductPrivacy];
472
- declare const OrganisationAllDetailDefaultProductPrivacy: {
473
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
474
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
475
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
476
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
477
- };
478
- interface OrganisationAllDetail {
479
- /** Whether the user making the API call is a member of the Unit */
480
- caller_is_member: boolean;
481
- /** The Organisation's unique ID */
482
- id: string;
483
- /** The Organisation's name */
484
- name: string;
485
- /** The username of the Organisation's owner. Not all Organisations have an owner. The Default Organisation has no owner. */
486
- owner_id?: string;
487
- /** True if the Unit is private */
488
- private: boolean;
489
- created: string;
490
- /** The Organisation's default product privacy setting */
491
- default_product_privacy: OrganisationAllDetailDefaultProductPrivacy;
492
- /** A list of users that are members of the Organisation */
493
- users: UserDetail[];
494
- }
495
- /**
496
- * The Organisation's default product privacy setting
497
- */
498
- type OrganisationDetailDefaultProductPrivacy = (typeof OrganisationDetailDefaultProductPrivacy)[keyof typeof OrganisationDetailDefaultProductPrivacy];
499
- declare const OrganisationDetailDefaultProductPrivacy: {
500
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
501
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
502
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
503
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
504
- };
505
- interface OrganisationDetail {
506
- /** Whether the user making the API call is a member of the Unit */
507
- caller_is_member: boolean;
508
- /** The Organisation's unique ID */
509
- id: string;
510
- /** The Organisation's name */
511
- name: string;
512
- /** The username of the Organisation's owner. Not all Organisations have an owner. The Default Organisation has no owner. */
513
- owner_id?: string;
514
- /** True if the Unit is private */
515
- private: boolean;
516
- created: string;
517
- /** The Organisation's default product privacy setting */
518
- default_product_privacy: OrganisationDetailDefaultProductPrivacy;
519
- }
520
- interface MerchantsGetResponse {
521
- count?: number;
522
- /** The list of known Merchants
523
- */
524
- merchants: MerchantDetail[];
525
- }
526
- type MerchantGetResponse = MerchantDetail;
527
- /**
528
- * The kind of Service
529
- */
530
- type MerchantDetailKind = (typeof MerchantDetailKind)[keyof typeof MerchantDetailKind];
531
- declare const MerchantDetailKind: {
532
- readonly DATA_MANAGER: "DATA_MANAGER";
533
- };
534
- interface MerchantDetail {
535
- /** The unique ID of the Service */
536
- id: number;
537
- created: string;
538
- /** The kind of Service */
539
- kind: MerchantDetailKind;
540
- /** The name assigned to the Service */
541
- name: string;
542
- /** The hostname used by the Service */
543
- api_hostname: string;
544
- }
545
- /**
546
- * The Unit's default product privacy setting
547
- */
548
- type UnitAllDetailDefaultProductPrivacy = (typeof UnitAllDetailDefaultProductPrivacy)[keyof typeof UnitAllDetailDefaultProductPrivacy];
549
- declare const UnitAllDetailDefaultProductPrivacy: {
550
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
551
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
552
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
553
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
554
- };
555
- interface UnitAllDetail {
556
- /** Whether the user making the API call is a member of the Unit */
557
- caller_is_member: boolean;
558
- /** The Unit's unique identity */
559
- id: string;
560
- /** The Unit's name */
561
- name: string;
562
- /** The Unit's owner (a username) */
563
- owner_id: string;
564
- /** True if the Unit is private */
565
- private: boolean;
566
- created: string;
567
- /** The Unit's billing day */
568
- billing_day: number;
569
- /** The Unit's default product privacy setting */
570
- default_product_privacy: UnitAllDetailDefaultProductPrivacy;
571
- /** A list of users that are members of the Unit */
572
- users: UserDetail[];
573
- }
574
- /**
575
- * The Unit's default product privacy setting
576
- */
577
- type UnitDetailDefaultProductPrivacy = (typeof UnitDetailDefaultProductPrivacy)[keyof typeof UnitDetailDefaultProductPrivacy];
578
- declare const UnitDetailDefaultProductPrivacy: {
579
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
580
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
581
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
582
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
583
- };
584
- interface UnitDetail {
585
- /** Whether the user making the API call is a member of the Unit */
586
- caller_is_member: boolean;
587
- /** The Unit's unique identity */
588
- id: string;
589
- /** The Unit's name */
590
- name: string;
591
- /** The Unit's owner (a username) */
592
- owner_id: string;
593
- /** True if the Unit is private */
594
- private: boolean;
595
- created: string;
596
- /** The Unit's billing day */
597
- billing_day: number;
598
- /** The Unit's default product privacy setting */
599
- default_product_privacy: UnitDetailDefaultProductPrivacy;
600
- }
601
- interface UserAccountDetail {
602
- user: UserDetail;
603
- /** Whether the caller has admin privilege */
604
- caller_has_admin_privilege: boolean;
605
- /** The roles assigned to the user recognised by the Account Server */
606
- account_server_roles: string[];
607
- }
608
- interface UserDetail {
609
- /** The user identity (username) */
610
- id: string;
611
- }
612
- type AssetPatchBodyBody = {
613
- /** A file containing the content for the asset. You must provide a value here or in content_string */
614
- content_file?: Blob;
615
- /** The textual content of the asset. You must provide a value here or in content_file */
616
- content_string?: string;
617
- /** An optional description for the Asset */
618
- description?: string;
619
- };
620
- /**
621
- * An enumeration of the scope of the asset. This can be one of `USER`, `PRODUCT`, `UNIT`, `ORGANISATION`, or `GLOBAL`. Assets that are not `GLOBAL` need a scope ID.
622
- */
623
- type AssetPostBodyBodyScope = (typeof AssetPostBodyBodyScope)[keyof typeof AssetPostBodyBodyScope];
624
- declare const AssetPostBodyBodyScope: {
625
- readonly USER: "USER";
626
- readonly PRODUCT: "PRODUCT";
627
- readonly UNIT: "UNIT";
628
- readonly ORGANISATION: "ORGANISATION";
629
- readonly GLOBAL: "GLOBAL";
630
- };
631
- type AssetPostBodyBody = {
632
- /**
633
- * The name of the asset. This must be unique within its scope. For example, only one asset can be called "asset-1" within a given `UNIT`. Asset names must be valid RFC 1123 Label Names
634
- * @maxLength 80
635
- * @pattern ^[a-z0-9-]{1,63}$
636
- */
637
- name: string;
638
- /** A file containing the content for the asset. You must provide a value here or in **content_string** but not both */
639
- content_file?: Blob;
640
- /** The textual content of the asset. You must provide a value here or in **content_file** but not both */
641
- content_string?: string;
642
- /** An enumeration of the scope of the asset. This can be one of `USER`, `PRODUCT`, `UNIT`, `ORGANISATION`, or `GLOBAL`. Assets that are not `GLOBAL` need a scope ID. */
643
- scope: AssetPostBodyBodyScope;
644
- /** The unique identity based on the Scope of the asset. For example, this will be the Unit ID if it's a UNIT. A scope_id is required if the scope is USER as it will be automatically set to your username. Global assets do not have a scope. */
645
- scope_id?: string;
646
- /** Is this a secret asset? Secret assets are not revealed in a subsequent **GET** but are revealed to merchants they are connected to. */
647
- secret: boolean;
648
- /** An optional description for the Asset */
649
- description?: string;
650
- };
651
- type EventStreamPostBodyBodyFormat = (typeof EventStreamPostBodyBodyFormat)[keyof typeof EventStreamPostBodyBodyFormat];
652
- declare const EventStreamPostBodyBodyFormat: {
653
- readonly PROTOCOL_STRING: "PROTOCOL_STRING";
654
- readonly JSON_STRING: "JSON_STRING";
655
- };
656
- type EventStreamPostBodyBody = {
657
- format?: EventStreamPostBodyBodyFormat;
658
- };
659
- /**
660
- * The default product privacy setting for the Organisation
661
- */
662
- type OrganisationPostBodyBodyDefaultProductPrivacy = (typeof OrganisationPostBodyBodyDefaultProductPrivacy)[keyof typeof OrganisationPostBodyBodyDefaultProductPrivacy];
663
- declare const OrganisationPostBodyBodyDefaultProductPrivacy: {
664
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
665
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
666
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
667
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
668
- };
669
- type OrganisationPostBodyBody = {
670
- /**
671
- * The name of the organisation
672
- * @maxLength 80
673
- */
674
- name: string;
675
- /** The name of the organisation owner. A user ID */
676
- owner: string;
677
- /** The default product privacy setting for the Organisation */
678
- default_product_privacy?: OrganisationPostBodyBodyDefaultProductPrivacy;
679
- };
680
- type PersonalUnitPutBodyBody = {
681
- /**
682
- * The day you would like to be billed for the Unit's Products (a value from 1 and 28)
683
- * @minimum 1
684
- * @maximum 28
685
- */
686
- billing_day: number;
687
- };
688
- /**
689
- * The default product privacy setting for products in the unit. Whether the privacy can be honoured will depend on the organisation's value
690
- */
691
- type OrganisationUnitPostBodyBodyDefaultProductPrivacy = (typeof OrganisationUnitPostBodyBodyDefaultProductPrivacy)[keyof typeof OrganisationUnitPostBodyBodyDefaultProductPrivacy];
692
- declare const OrganisationUnitPostBodyBodyDefaultProductPrivacy: {
693
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
694
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
695
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
696
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
697
- };
698
- type OrganisationUnitPostBodyBody = {
699
- /**
700
- * The name of the unit
701
- * @maxLength 80
702
- */
703
- name: string;
704
- /**
705
- * The day you would like to be billed for the Unit's Products (a value from 1 and 28)
706
- * @minimum 1
707
- * @maximum 28
708
- */
709
- billing_day: number;
710
- /** The default product privacy setting for products in the unit. Whether the privacy can be honoured will depend on the organisation's value */
711
- default_product_privacy?: OrganisationUnitPostBodyBodyDefaultProductPrivacy;
712
- };
713
- /**
714
- * The new default **Product** privacy applied to all products that belong to this Organisation. Privacy is also controlled at the **Unit** level. As an example the Organisation level privacy can be `DEFAULT_PRIVATE`, but the unit can declare its Products to be `ALWAYS_PRIVATE`.
715
-
716
- Whether the privacy can be honoured will depend on the value in any of the organisation's existing units
717
- */
718
- type OrganisationPatchBodyBodyDefaultProductPrivacy = (typeof OrganisationPatchBodyBodyDefaultProductPrivacy)[keyof typeof OrganisationPatchBodyBodyDefaultProductPrivacy];
719
- declare const OrganisationPatchBodyBodyDefaultProductPrivacy: {
720
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
721
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
722
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
723
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
724
- };
725
- type OrganisationPatchBodyBody = {
726
- /** The new name for the Organisational */
727
- name?: string;
728
- /** The new default **Product** privacy applied to all products that belong to this Organisation. Privacy is also controlled at the **Unit** level. As an example the Organisation level privacy can be `DEFAULT_PRIVATE`, but the unit can declare its Products to be `ALWAYS_PRIVATE`.
729
-
730
- Whether the privacy can be honoured will depend on the value in any of the organisation's existing units */
731
- default_product_privacy?: OrganisationPatchBodyBodyDefaultProductPrivacy;
732
- };
733
- /**
734
- * The new default **Product** privacy applied to all products that belong to this Unit. Privacy is also controlled at the **Organisation** level. As an example, the Unit can declare its Products to be `DEFAULT_PRIVATE`, but the Organisation can declare its value to be `DEFAULT_PUBLIC`.
735
-
736
- Whether the privacy can be honoured will depend on the organisation's value
737
- */
738
- type UnitPatchBodyBodyDefaultProductPrivacy = (typeof UnitPatchBodyBodyDefaultProductPrivacy)[keyof typeof UnitPatchBodyBodyDefaultProductPrivacy];
739
- declare const UnitPatchBodyBodyDefaultProductPrivacy: {
740
- readonly ALWAYS_PUBLIC: "ALWAYS_PUBLIC";
741
- readonly ALWAYS_PRIVATE: "ALWAYS_PRIVATE";
742
- readonly DEFAULT_PUBLIC: "DEFAULT_PUBLIC";
743
- readonly DEFAULT_PRIVATE: "DEFAULT_PRIVATE";
744
- };
745
- type UnitPatchBodyBody = {
746
- /** The new name for the Unit */
747
- name?: string;
748
- /** The new default **Product** privacy applied to all products that belong to this Unit. Privacy is also controlled at the **Organisation** level. As an example, the Unit can declare its Products to be `DEFAULT_PRIVATE`, but the Organisation can declare its value to be `DEFAULT_PUBLIC`.
749
-
750
- Whether the privacy can be honoured will depend on the organisation's value */
751
- default_product_privacy?: UnitPatchBodyBodyDefaultProductPrivacy;
752
- };
753
- /**
754
- * The Type of Product. Storage subscriptions require an **Allowance** to be defined and the **Flavour** must not be provided.
755
-
756
- Project Tier subscriptions have built-in allowances and Limits so you must not provide values for these for these products
757
- */
758
- type UnitProductPostBodyBodyType = (typeof UnitProductPostBodyBodyType)[keyof typeof UnitProductPostBodyBodyType];
759
- declare const UnitProductPostBodyBodyType: {
760
- readonly DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION: "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION";
761
- readonly DATA_MANAGER_STORAGE_SUBSCRIPTION: "DATA_MANAGER_STORAGE_SUBSCRIPTION";
762
- };
763
- /**
764
- * The Flavour of the Product. Used only for Project Tier Products. Do not set this for Storage products
765
- */
766
- type UnitProductPostBodyBodyFlavour = (typeof UnitProductPostBodyBodyFlavour)[keyof typeof UnitProductPostBodyBodyFlavour];
767
- declare const UnitProductPostBodyBodyFlavour: {
768
- readonly EVALUATION: "EVALUATION";
769
- readonly BRONZE: "BRONZE";
770
- readonly SILVER: "SILVER";
771
- readonly GOLD: "GOLD";
772
- };
773
- type UnitProductPostBodyBody = {
774
- /**
775
- * The name you want to give the Product
776
- * @maxLength 80
777
- */
778
- name: string;
779
- /** The Type of Product. Storage subscriptions require an **Allowance** to be defined and the **Flavour** must not be provided.
780
-
781
- Project Tier subscriptions have built-in allowances and Limits so you must not provide values for these for these products */
782
- type: UnitProductPostBodyBodyType;
783
- /** The Flavour of the Product. Used only for Project Tier Products. Do not set this for Storage products */
784
- flavour?: UnitProductPostBodyBodyFlavour;
785
- /**
786
- * The Product's coin allowance. You must provide this for Storage products but you must not provide a value for Project Tier Products
787
- * @minimum 1
788
- */
789
- allowance?: number;
790
- /**
791
- * The Product's built-in coin limit. If set it must not be less than the allowance. If not set the allowance is used. You can provide this for Storage products but you must not provide a value for Project Tier Products
792
- * @minimum 1
793
- */
794
- limit?: number;
795
- };
796
- type ProductPatchBodyBody = {
797
- /**
798
- * The name you want to give the Product
799
- * @maxLength 80
800
- */
801
- name?: string;
802
- /**
803
- * The Product's built-in coin allowance. Product allowances cannot be reduced
804
- * @minimum 1
805
- */
806
- allowance?: number;
807
- /**
808
- * The Product's built-in coin limit. If set it must not be less than the allowance. If not set the allowance is used. The existing product limit cannot be reduced
809
- * @minimum 1
810
- */
811
- limit?: number;
812
- };
813
- /**
814
- * A charge Prior Billing Period, 0 implies "current" and -23 is for the period 23 months ago.
815
- */
816
- type QPbpParameter = number;
817
- /**
818
- * An Organisation Identity
819
- */
820
- type QOrgIdParameter = string;
821
- /**
822
- * A Merchant Identity
823
- */
824
- type QMIdParameter = number;
825
- /**
826
- * An object name
827
- */
828
- type QNameParameter = string;
829
- /**
830
- * A Unit Identity
831
- */
832
- type QUnitIdParameter = string;
833
- /**
834
- * A Product Identity
835
- */
836
- type QProductIdParameter = string;
837
- /**
838
- * A User Identity
839
- */
840
- type QUserIdParameter = string;
841
- /**
842
- * A date from which to retrieve assets. Any asset that occurs on ar after this date will be returned. UTC is assumed if no timezone is provided
843
- */
844
- type QFromParameter = string;
845
- /**
846
- * A date where assets prior to this will be returned. Any asset that occurs prior this date will be returned. UTC is assumed if no timezone is provided
847
- */
848
- type QUntilParameter = string;
849
- type GetChargesParams = {
850
- /**
851
- * A date from which to retrieve assets. Any asset that occurs on ar after this date will be returned. UTC is assumed if no timezone is provided
852
- */
853
- from?: QFromParameter;
854
- /**
855
- * A date where assets prior to this will be returned. Any asset that occurs prior this date will be returned. UTC is assumed if no timezone is provided
856
- */
857
- until?: QUntilParameter;
858
- /**
859
- * A charge Prior Billing Period, 0 implies "current" and -23 is for the period 23 months ago.
860
- * @minimum -23
861
- * @maximum 0
862
- */
863
- pbp?: QPbpParameter;
864
- };
865
- type GetOrganisationChargesParams = {
866
- /**
867
- * A date from which to retrieve assets. Any asset that occurs on ar after this date will be returned. UTC is assumed if no timezone is provided
868
- */
869
- from?: QFromParameter;
870
- /**
871
- * A date where assets prior to this will be returned. Any asset that occurs prior this date will be returned. UTC is assumed if no timezone is provided
872
- */
873
- until?: QUntilParameter;
874
- /**
875
- * A charge Prior Billing Period, 0 implies "current" and -23 is for the period 23 months ago.
876
- * @minimum -23
877
- * @maximum 0
878
- */
879
- pbp?: QPbpParameter;
880
- };
881
- type GetProductChargesParams = {
882
- /**
883
- * A date from which to retrieve assets. Any asset that occurs on ar after this date will be returned. UTC is assumed if no timezone is provided
884
- */
885
- from?: QFromParameter;
886
- /**
887
- * A date where assets prior to this will be returned. Any asset that occurs prior this date will be returned. UTC is assumed if no timezone is provided
888
- */
889
- until?: QUntilParameter;
890
- /**
891
- * A charge Prior Billing Period, 0 implies "current" and -23 is for the period 23 months ago.
892
- * @minimum -23
893
- * @maximum 0
894
- */
895
- pbp?: QPbpParameter;
896
- };
897
- type GetUnitChargesParams = {
898
- /**
899
- * A date from which to retrieve assets. Any asset that occurs on ar after this date will be returned. UTC is assumed if no timezone is provided
900
- */
901
- from?: QFromParameter;
902
- /**
903
- * A date where assets prior to this will be returned. Any asset that occurs prior this date will be returned. UTC is assumed if no timezone is provided
904
- */
905
- until?: QUntilParameter;
906
- /**
907
- * A charge Prior Billing Period, 0 implies "current" and -23 is for the period 23 months ago.
908
- * @minimum -23
909
- * @maximum 0
910
- */
911
- pbp?: QPbpParameter;
912
- };
913
- type GetOrganisationsParams = {
914
- /**
915
- * An object name
916
- */
917
- name?: QNameParameter;
918
- };
919
- type GetUnitsParams = {
920
- /**
921
- * An object name
922
- */
923
- name?: QNameParameter;
924
- };
925
- type GetAssetParams = {
926
- /**
927
- * A User Identity
928
- * @minLength 3
929
- * @maxLength 80
930
- * @pattern ^\w(?:\w*(?:[@.-]\w+)?)*$
931
- */
932
- user_id?: QUserIdParameter;
933
- /**
934
- * A Product Identity
935
- * @pattern ^product-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
936
- */
937
- product_id?: QProductIdParameter;
938
- /**
939
- * A Unit Identity
940
- * @pattern ^unit-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
941
- */
942
- unit_id?: QUnitIdParameter;
943
- /**
944
- * An Organisation Identity
945
- * @pattern ^org-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
946
- */
947
- org_id?: QOrgIdParameter;
948
- };
949
- type AttachAssetParams = {
950
- /**
951
- * A Merchant Identity
952
- * @minimum 1
953
- */
954
- m_id?: QMIdParameter;
955
- };
956
- type DetachAssetParams = {
957
- /**
958
- * A Merchant Identity
959
- * @minimum 1
960
- */
961
- m_id?: QMIdParameter;
962
- };
963
-
964
- declare const AXIOS_INSTANCE: axios.AxiosInstance;
965
- /**
966
- * Set the access token to be added as the `Authorization: Bearer 'token'` header
967
- * Useful for client only apps where a proxy API route isn't involved to securely add the access token
968
- * @param token access token
969
- */
970
- declare const setAuthToken: (token: string) => void;
971
- /**
972
- * Set the url to which request paths are added to.
973
- * @param baseUrl origin + subpath e.g. 'https://example.com/subpath' or '/subpath'
974
- */
975
- declare const setBaseUrl: (baseUrl: string) => void;
976
- declare const customInstance: <TReturn>(config: AxiosRequestConfig, options?: AxiosRequestConfig) => Promise<TReturn>;
977
- type ErrorType<TError> = AxiosError<TError>;
978
-
979
- export { AXIOS_INSTANCE, type AsError, type AssetDetail, AssetDetailScope, type AssetGetByIdResponse, type AssetGetResponse, type AssetPatchBodyBody, type AssetPostBodyBody, AssetPostBodyBodyScope, type AssetPostResponse, type AttachAssetParams, type ChargeAdditionalData, type ChargeSummary, ChargeSummaryType, type ChargesGetResponse, type DetachAssetParams, type ErrorType, type EventStreamGetPostResponse, type EventStreamPostBodyBody, EventStreamPostBodyBodyFormat, type EventStreamVersionGetResponse, EventStreamVersionGetResponseProtocol, type GetAssetParams, type GetChargesParams, type GetOrganisationChargesParams, type GetOrganisationsParams, type GetProductChargesParams, type GetUnitChargesParams, type GetUnitsParams, type MerchantDetail, MerchantDetailKind, type MerchantGetResponse, type MerchantsGetResponse, type OrganisationAllDetail, OrganisationAllDetailDefaultProductPrivacy, type OrganisationChargeSummary, type OrganisationChargesGetResponse, type OrganisationDetail, OrganisationDetailDefaultProductPrivacy, type OrganisationGetDefaultResponse, OrganisationGetDefaultResponseDefaultProductPrivacy, type OrganisationGetResponse, type OrganisationPatchBodyBody, OrganisationPatchBodyBodyDefaultProductPrivacy, type OrganisationPostBodyBody, OrganisationPostBodyBodyDefaultProductPrivacy, type OrganisationPostResponse, type OrganisationUnitChargeSummary, type OrganisationUnitPostBodyBody, OrganisationUnitPostBodyBodyDefaultProductPrivacy, type OrganisationUnitPostResponse, type OrganisationUnitsGetResponse, type OrganisationsGetResponse, type PersonalUnitPutBodyBody, type PersonalUnitPutResponse, type ProcessingChargeItem, type ProcessingCharges, ProcessingChargesMerchantKind, type ProductChargesGetResponse, ProductChargesGetResponseProductType, type ProductClaimDetail, type ProductCoinsDetail, type ProductDetail, ProductDetailFlavour, ProductDetailType, type ProductDmProjectTier, type ProductDmStorage, type ProductDmStorageDetail, type ProductDmStorageDetailCoins, type ProductDmStorageDetailSize, type ProductInstanceDetail, type ProductInstanceDetailCoins, type ProductPatchBodyBody, type ProductType, ProductTypeServiceKind, type ProductUnitGetResponse, type ProductUnitGetResponseProduct, type ProductsGetDefaultStorageCost, type ProductsGetDefaultStorageCostDefaultStorageCost, type ProductsGetResponse, type ProductsGetResponseProductsItem, type ProductsGetTypesResponse, type QFromParameter, type QMIdParameter, type QNameParameter, type QOrgIdParameter, type QPbpParameter, type QProductIdParameter, type QUnitIdParameter, type QUntilParameter, type QUserIdParameter, type StateGetVersionResponse, type StorageChargeItem, type StorageCharges, type UnitAllDetail, UnitAllDetailDefaultProductPrivacy, type UnitChargeSummary, type UnitChargesGetResponse, type UnitDetail, UnitDetailDefaultProductPrivacy, type UnitGetResponse, type UnitPatchBodyBody, UnitPatchBodyBodyDefaultProductPrivacy, type UnitProductChargeSummary, type UnitProductPostBodyBody, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType, type UnitProductPostResponse, type UnitsGetResponse, type UserAccountDetail, type UserAccountGetResponse, type UserDetail, type UsersGetResponse, customInstance, setAuthToken, setBaseUrl };