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