@dimmi/api 0.3.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/schema.d.ts +785 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1298,6 +1298,194 @@ export interface paths {
1298
1298
  patch?: never;
1299
1299
  trace?: never;
1300
1300
  };
1301
+ "/billing": {
1302
+ parameters: {
1303
+ query?: never;
1304
+ header?: never;
1305
+ path?: never;
1306
+ cookie?: never;
1307
+ };
1308
+ /**
1309
+ * Read the workspace's billing
1310
+ * @description Reads the currency and price book the workspace is billed on, where its billing stands, and its saved cards. Returns the billing account with its cards, each by brand and last four digits.
1311
+ */
1312
+ get: operations["billing.show"];
1313
+ put?: never;
1314
+ post?: never;
1315
+ delete?: never;
1316
+ options?: never;
1317
+ head?: never;
1318
+ /**
1319
+ * Change the workspace's billing
1320
+ * @description Changes the currency the workspace is billed in, USD or NGN, and the details its invoices print. Takes an owner or an admin. Returns the billing account as it is now.
1321
+ */
1322
+ patch: operations["billing.update"];
1323
+ trace?: never;
1324
+ };
1325
+ "/billing/card-check-confirmations": {
1326
+ parameters: {
1327
+ query?: never;
1328
+ header?: never;
1329
+ path?: never;
1330
+ cookie?: never;
1331
+ };
1332
+ get?: never;
1333
+ put?: never;
1334
+ /**
1335
+ * Finish saving a card
1336
+ * @description Finishes the card check the teammate came back from: saves the card when it succeeded and refunds the check. Returns the billing account with the saved card.
1337
+ */
1338
+ post: operations["billing.card-check-confirmations.store"];
1339
+ delete?: never;
1340
+ options?: never;
1341
+ head?: never;
1342
+ patch?: never;
1343
+ trace?: never;
1344
+ };
1345
+ "/billing/card-checks": {
1346
+ parameters: {
1347
+ query?: never;
1348
+ header?: never;
1349
+ path?: never;
1350
+ cookie?: never;
1351
+ };
1352
+ get?: never;
1353
+ put?: never;
1354
+ /**
1355
+ * Start saving a card
1356
+ * @description Opens a hosted card checkout for a small card check, refunded once the card is verified. Send the teammate to the page it returns. Returns the checkout page's address.
1357
+ */
1358
+ post: operations["billing.card-checks.store"];
1359
+ delete?: never;
1360
+ options?: never;
1361
+ head?: never;
1362
+ patch?: never;
1363
+ trace?: never;
1364
+ };
1365
+ "/billing/cards/{card}": {
1366
+ parameters: {
1367
+ query?: never;
1368
+ header?: never;
1369
+ path?: never;
1370
+ cookie?: never;
1371
+ };
1372
+ get?: never;
1373
+ put?: never;
1374
+ post?: never;
1375
+ /**
1376
+ * Remove a saved card
1377
+ * @description Removes a saved card. The workspace keeps at least one; removing the default moves it to another card. Returns the billing account with the cards left.
1378
+ */
1379
+ delete: operations["billing.cards.destroy"];
1380
+ options?: never;
1381
+ head?: never;
1382
+ /**
1383
+ * Make a card the default
1384
+ * @description Makes a saved card the one invoices are charged to first. Takes an owner or an admin. Returns the billing account with its cards.
1385
+ */
1386
+ patch: operations["billing.cards.update"];
1387
+ trace?: never;
1388
+ };
1389
+ "/billing/invoices": {
1390
+ parameters: {
1391
+ query?: never;
1392
+ header?: never;
1393
+ path?: never;
1394
+ cookie?: never;
1395
+ };
1396
+ /**
1397
+ * List invoices
1398
+ * @description Lists the workspace's monthly invoices, newest first. Returns each invoice's number, month, total and whether it is paid.
1399
+ */
1400
+ get: operations["billing.invoices.index"];
1401
+ put?: never;
1402
+ post?: never;
1403
+ delete?: never;
1404
+ options?: never;
1405
+ head?: never;
1406
+ patch?: never;
1407
+ trace?: never;
1408
+ };
1409
+ "/billing/invoices/{invoice}": {
1410
+ parameters: {
1411
+ query?: never;
1412
+ header?: never;
1413
+ path?: never;
1414
+ cookie?: never;
1415
+ };
1416
+ /**
1417
+ * Read an invoice
1418
+ * @description Reads one invoice with its lines. Returns the invoice with every line.
1419
+ */
1420
+ get: operations["billing.invoices.show"];
1421
+ put?: never;
1422
+ post?: never;
1423
+ delete?: never;
1424
+ options?: never;
1425
+ head?: never;
1426
+ patch?: never;
1427
+ trace?: never;
1428
+ };
1429
+ "/billing/invoices/{invoice}/payments": {
1430
+ parameters: {
1431
+ query?: never;
1432
+ header?: never;
1433
+ path?: never;
1434
+ cookie?: never;
1435
+ };
1436
+ get?: never;
1437
+ put?: never;
1438
+ /**
1439
+ * Pay an invoice now
1440
+ * @description Charges an unpaid invoice to the workspace's cards straight away, the default first. Returns the invoice as it stands after the charge.
1441
+ */
1442
+ post: operations["billing.invoices.payments.store"];
1443
+ delete?: never;
1444
+ options?: never;
1445
+ head?: never;
1446
+ patch?: never;
1447
+ trace?: never;
1448
+ };
1449
+ "/billing/invoices/{invoice}/pdf": {
1450
+ parameters: {
1451
+ query?: never;
1452
+ header?: never;
1453
+ path?: never;
1454
+ cookie?: never;
1455
+ };
1456
+ /**
1457
+ * Download an invoice
1458
+ * @description Downloads one invoice as a PDF, with the details it prints and every line. Returns the invoice as a PDF file.
1459
+ */
1460
+ get: operations["billing.invoices.pdf.show"];
1461
+ put?: never;
1462
+ post?: never;
1463
+ delete?: never;
1464
+ options?: never;
1465
+ head?: never;
1466
+ patch?: never;
1467
+ trace?: never;
1468
+ };
1469
+ "/billing/usage": {
1470
+ parameters: {
1471
+ query?: never;
1472
+ header?: never;
1473
+ path?: never;
1474
+ cookie?: never;
1475
+ };
1476
+ /**
1477
+ * Read this month's usage
1478
+ * @description Reads what the workspace used so far this month and what it comes to, line by line, on its price book and in its currency. Returns the counts, the bill's lines and its total so far.
1479
+ */
1480
+ get: operations["billing.usage.show"];
1481
+ put?: never;
1482
+ post?: never;
1483
+ delete?: never;
1484
+ options?: never;
1485
+ head?: never;
1486
+ patch?: never;
1487
+ trace?: never;
1488
+ };
1301
1489
  "/broadcast-preferences/{token}": {
1302
1490
  parameters: {
1303
1491
  query?: never;
@@ -13010,6 +13198,234 @@ export interface components {
13010
13198
  /** @description What fills the messenger's home hero and header: solid, gradient or image. */
13011
13199
  type: string;
13012
13200
  };
13201
+ BillingAccount: {
13202
+ /** @description The postal address invoices print, as lines of text. Empty prints none. */
13203
+ address: string;
13204
+ /** @description Where receipts and invoices go. Null sends them to the teammate who saved the card. */
13205
+ billing_email: string | null;
13206
+ /**
13207
+ * Format: date-time
13208
+ * @description When the workspace passed its free allowance without a saved card, as a UTC time. Null when no card is needed.
13209
+ */
13210
+ card_required_at: string | null;
13211
+ /** @description The saved cards, the default first. */
13212
+ cards: components["schemas"]["BillingCard"][] | null;
13213
+ /** @description The country invoices print, as a two-letter ISO code such as NG. Empty prints none. */
13214
+ country: string;
13215
+ /** @description The currency the workspace is billed in: USD or NGN. */
13216
+ currency: string;
13217
+ /** @description The payment gateway that keeps the cards and charges them, such as paystack. */
13218
+ gateway: string;
13219
+ /** @description The company name invoices print. Empty prints the workspace's name. */
13220
+ legal_name: string;
13221
+ /** @description The kind of record this is, the same for every record of its kind, such as article. */
13222
+ object: string;
13223
+ /** @description The price book the workspace is billed on, such as 2026-12. It stays the same when prices change. */
13224
+ price_book: string;
13225
+ /** @description Where billing stands: free, card_on_file, past_due or suspended. */
13226
+ status: string;
13227
+ /** @description The tax ID invoices print, such as a TIN or VAT number. Empty prints none. */
13228
+ tax_id: string;
13229
+ };
13230
+ BillingCard: {
13231
+ /** @description The bank that issued the card, when the gateway knows it. */
13232
+ bank: string;
13233
+ /** @description The card's brand, such as visa or mastercard. */
13234
+ brand: string;
13235
+ /**
13236
+ * Format: date-time
13237
+ * @description When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
13238
+ */
13239
+ created_at: string;
13240
+ /** @description The currency the card was saved in: USD or NGN. */
13241
+ currency: string;
13242
+ /** @description The month the card expires, from 01 to 12. */
13243
+ exp_month: string;
13244
+ /** @description The year the card expires. */
13245
+ exp_year: string;
13246
+ /** @description The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place. */
13247
+ id: string;
13248
+ /** @description Whether invoices are charged to this card first. */
13249
+ is_default: boolean;
13250
+ /** @description The card number's last four digits. */
13251
+ last4: string;
13252
+ /** @description The kind of record this is, the same for every record of its kind, such as article. */
13253
+ object: string;
13254
+ };
13255
+ BillingCardCheckConfirmationBody: {
13256
+ /** @description Reference: text of at most 100 characters. */
13257
+ reference: string;
13258
+ };
13259
+ BillingCardUpdateBody: {
13260
+ /** @description Is default: true or false. */
13261
+ is_default: boolean;
13262
+ };
13263
+ BillingCheckout: {
13264
+ /** @description The token the gateway's own script opens the checkout with over the page, such as a Paystack access code. */
13265
+ client_token: string;
13266
+ /** @description The payment gateway the checkout is at, such as paystack. */
13267
+ gateway: string;
13268
+ /** @description The kind of record this is, the same for every record of its kind, such as article. */
13269
+ object: string;
13270
+ /** @description The hosted checkout page to send the teammate to. */
13271
+ url: string;
13272
+ };
13273
+ BillingInvoice: {
13274
+ /** @description Where to finish paying when the card needed the customer, such as for a one-time code. Null otherwise. */
13275
+ checkout_url: string | null;
13276
+ /**
13277
+ * Format: date-time
13278
+ * @description When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
13279
+ */
13280
+ created_at: string;
13281
+ /** @description The currency the invoice is in: USD or NGN. */
13282
+ currency: string;
13283
+ /** @description Where a dispute on the invoice's payment stands: none, open, won (the payment stands) or lost (it was returned). */
13284
+ dispute_status: string;
13285
+ /** @description The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place. */
13286
+ id: string;
13287
+ /** @description The invoice's lines, when one invoice is read. */
13288
+ lines?: components["schemas"]["BillingLine"][] | null;
13289
+ /**
13290
+ * Format: date-time
13291
+ * @description When a past-due invoice is charged again, as a UTC time. Null when no retry is scheduled.
13292
+ */
13293
+ next_attempt_at: string | null;
13294
+ /** @description The invoice number, such as DIM-000042. */
13295
+ number: string;
13296
+ /** @description The kind of record this is, the same for every record of its kind, such as article. */
13297
+ object: string;
13298
+ /**
13299
+ * Format: date-time
13300
+ * @description When the invoice was paid, as a UTC time. Null until then.
13301
+ */
13302
+ paid_at: string | null;
13303
+ /**
13304
+ * Format: date-time
13305
+ * @description When the month the invoice covers ended.
13306
+ */
13307
+ period_end: string;
13308
+ /**
13309
+ * Format: date-time
13310
+ * @description When the month the invoice covers began.
13311
+ */
13312
+ period_start: string;
13313
+ /**
13314
+ * Format: date-time
13315
+ * @description When the latest refund on the invoice finished, as a UTC time. Null when none did.
13316
+ */
13317
+ refunded_at: string | null;
13318
+ /**
13319
+ * Format: int64
13320
+ * @description How much of the invoice was refunded, in the currency's minor unit. 0 when nothing was.
13321
+ */
13322
+ refunded_minor: number;
13323
+ /** @description Where the invoice stands: open, paid, carried (under the minimum and rolled into the next invoice), or past_due once every card failed. */
13324
+ status: string;
13325
+ /**
13326
+ * Format: int64
13327
+ * @description What the invoice comes to, in the currency's minor unit.
13328
+ */
13329
+ total_minor: number;
13330
+ };
13331
+ BillingLine: {
13332
+ /**
13333
+ * Format: int64
13334
+ * @description The line's amount in the currency's minor unit, cents or kobo. A free allowance is negative.
13335
+ */
13336
+ amount_minor: number;
13337
+ /** @description What the line is for, such as AI conversations, 101–500. */
13338
+ description: string;
13339
+ /** @description What the line counts: conversations_ai, conversations_human, free_conversations, credits, free_credits, email or carried. */
13340
+ kind: string;
13341
+ /**
13342
+ * Format: int64
13343
+ * @description How many units the line prices.
13344
+ */
13345
+ quantity: number;
13346
+ /** @description The price of one unit, written for a reader, such as $0.15 or ₦100. */
13347
+ rate: string;
13348
+ };
13349
+ BillingUpdateBody: {
13350
+ /** @description Address: text of at most 500 characters. */
13351
+ address?: string;
13352
+ /** @description Billing email: text of at most 320 characters. */
13353
+ billing_email?: string;
13354
+ /** @description Country: text of at most 2 characters. */
13355
+ country?: string;
13356
+ /**
13357
+ * @description A three-letter currency code, such as USD.
13358
+ * @enum {string}
13359
+ */
13360
+ currency?: "USD" | "NGN";
13361
+ /** @description Legal name: text of at most 200 characters. */
13362
+ legal_name?: string;
13363
+ /** @description Tax id: the id of the tax, as the tool that lists them shows it. */
13364
+ tax_id?: string;
13365
+ };
13366
+ BillingUsage: {
13367
+ counts: components["schemas"]["BillingUsageCounts"];
13368
+ /** @description The currency the bill is in: USD or NGN. */
13369
+ currency: string;
13370
+ /**
13371
+ * Format: int64
13372
+ * @description How many conversations the workspace's price book gives free each month.
13373
+ */
13374
+ free_conversations: number;
13375
+ /** @description The bill so far, line by line. */
13376
+ lines: components["schemas"]["BillingLine"][] | null;
13377
+ /** @description The kind of record this is, the same for every record of its kind, such as article. */
13378
+ object: string;
13379
+ /**
13380
+ * Format: date-time
13381
+ * @description When the month ends, as a UTC time.
13382
+ */
13383
+ period_end: string;
13384
+ /**
13385
+ * Format: date-time
13386
+ * @description When the month began, as a UTC time.
13387
+ */
13388
+ period_start: string;
13389
+ /** @description The price book the bill is rated on. */
13390
+ price_book: string;
13391
+ /**
13392
+ * Format: int64
13393
+ * @description What the month comes to so far, in the currency's minor unit.
13394
+ */
13395
+ total_minor: number;
13396
+ };
13397
+ BillingUsageCounts: {
13398
+ /**
13399
+ * Format: int64
13400
+ * @description Conversations the AI agent replied in on dimmi's models.
13401
+ */
13402
+ ai_conversations: number;
13403
+ /**
13404
+ * Format: int64
13405
+ * @description Conversations the AI agent replied in on the workspace's own model key.
13406
+ */
13407
+ ai_on_own_key: number;
13408
+ /**
13409
+ * Format: int64
13410
+ * @description Operator, routine and simulation runs on dimmi's models.
13411
+ */
13412
+ credit_runs: number;
13413
+ /**
13414
+ * Format: int64
13415
+ * @description Broadcast and series emails sent.
13416
+ */
13417
+ emails: number;
13418
+ /**
13419
+ * Format: int64
13420
+ * @description Further units from long AI threads: one for every 10 AI replies.
13421
+ */
13422
+ extra_ai_units: number;
13423
+ /**
13424
+ * Format: int64
13425
+ * @description Conversations only the team replied in.
13426
+ */
13427
+ human_conversations: number;
13428
+ };
13013
13429
  Branding: {
13014
13430
  /** @description True when the workspace may not hide the dimmi badge: on the cloud edition until it has paid. */
13015
13431
  locked: boolean;
@@ -13462,6 +13878,10 @@ export interface components {
13462
13878
  family: string;
13463
13879
  /** @description The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place. */
13464
13880
  id: string;
13881
+ /** @description The model's price for input tokens, in US dollars per million tokens, as a decimal string such as "0.10". Absent when the model has no per-token price. */
13882
+ input_per_mtok?: string;
13883
+ /** @description The model's price for output tokens, reasoning included, in US dollars per million tokens, as a decimal string such as "0.50". Absent when the model has no per-token price. */
13884
+ output_per_mtok?: string;
13465
13885
  /** @description The jobs this model is suggested for: any of answer, classifier and fallback. */
13466
13886
  suggested: string[] | null;
13467
13887
  };
@@ -23495,6 +23915,18 @@ export interface components {
23495
23915
  ResourceAuthFactor: {
23496
23916
  data: components["schemas"]["AuthFactor"];
23497
23917
  };
23918
+ ResourceBillingAccount: {
23919
+ data: components["schemas"]["BillingAccount"];
23920
+ };
23921
+ ResourceBillingCheckout: {
23922
+ data: components["schemas"]["BillingCheckout"];
23923
+ };
23924
+ ResourceBillingInvoice: {
23925
+ data: components["schemas"]["BillingInvoice"];
23926
+ };
23927
+ ResourceBillingUsage: {
23928
+ data: components["schemas"]["BillingUsage"];
23929
+ };
23498
23930
  ResourceBroadcast: {
23499
23931
  data: components["schemas"]["Broadcast"];
23500
23932
  };
@@ -23711,6 +24143,10 @@ export interface components {
23711
24143
  ResourceKnowledgeUsage: {
23712
24144
  data: components["schemas"]["KnowledgeUsage"];
23713
24145
  };
24146
+ ResourceListBillingInvoice: {
24147
+ /** @description The items, as a list; empty when there are none. */
24148
+ data: components["schemas"]["BillingInvoice"][] | null;
24149
+ };
23714
24150
  ResourceListFeedbackBoard: {
23715
24151
  /** @description The items, as a list; empty when there are none. */
23716
24152
  data: components["schemas"]["FeedbackBoard"][] | null;
@@ -33392,6 +33828,355 @@ export interface operations {
33392
33828
  };
33393
33829
  };
33394
33830
  };
33831
+ "billing.show": {
33832
+ parameters: {
33833
+ query?: never;
33834
+ header?: never;
33835
+ path?: never;
33836
+ cookie?: never;
33837
+ };
33838
+ requestBody?: never;
33839
+ responses: {
33840
+ /** @description OK */
33841
+ 200: {
33842
+ headers: {
33843
+ [name: string]: unknown;
33844
+ };
33845
+ content: {
33846
+ "application/json": components["schemas"]["ResourceBillingAccount"];
33847
+ };
33848
+ };
33849
+ /** @description Error */
33850
+ default: {
33851
+ headers: {
33852
+ [name: string]: unknown;
33853
+ };
33854
+ content: {
33855
+ "application/json": components["schemas"]["ResponseError"];
33856
+ };
33857
+ };
33858
+ };
33859
+ };
33860
+ "billing.update": {
33861
+ parameters: {
33862
+ query?: never;
33863
+ header?: never;
33864
+ path?: never;
33865
+ cookie?: never;
33866
+ };
33867
+ requestBody: {
33868
+ content: {
33869
+ "application/json": components["schemas"]["BillingUpdateBody"];
33870
+ };
33871
+ };
33872
+ responses: {
33873
+ /** @description OK */
33874
+ 200: {
33875
+ headers: {
33876
+ [name: string]: unknown;
33877
+ };
33878
+ content: {
33879
+ "application/json": components["schemas"]["ResourceBillingAccount"];
33880
+ };
33881
+ };
33882
+ /** @description Error */
33883
+ default: {
33884
+ headers: {
33885
+ [name: string]: unknown;
33886
+ };
33887
+ content: {
33888
+ "application/json": components["schemas"]["ResponseError"];
33889
+ };
33890
+ };
33891
+ };
33892
+ };
33893
+ "billing.card-check-confirmations.store": {
33894
+ parameters: {
33895
+ query?: never;
33896
+ header?: never;
33897
+ path?: never;
33898
+ cookie?: never;
33899
+ };
33900
+ requestBody: {
33901
+ content: {
33902
+ "application/json": components["schemas"]["BillingCardCheckConfirmationBody"];
33903
+ };
33904
+ };
33905
+ responses: {
33906
+ /** @description OK */
33907
+ 200: {
33908
+ headers: {
33909
+ [name: string]: unknown;
33910
+ };
33911
+ content: {
33912
+ "application/json": components["schemas"]["ResourceBillingAccount"];
33913
+ };
33914
+ };
33915
+ /** @description Error */
33916
+ default: {
33917
+ headers: {
33918
+ [name: string]: unknown;
33919
+ };
33920
+ content: {
33921
+ "application/json": components["schemas"]["ResponseError"];
33922
+ };
33923
+ };
33924
+ };
33925
+ };
33926
+ "billing.card-checks.store": {
33927
+ parameters: {
33928
+ query?: never;
33929
+ header?: never;
33930
+ path?: never;
33931
+ cookie?: never;
33932
+ };
33933
+ requestBody?: never;
33934
+ responses: {
33935
+ /** @description Created */
33936
+ 201: {
33937
+ headers: {
33938
+ [name: string]: unknown;
33939
+ };
33940
+ content: {
33941
+ "application/json": components["schemas"]["ResourceBillingCheckout"];
33942
+ };
33943
+ };
33944
+ /** @description Error */
33945
+ default: {
33946
+ headers: {
33947
+ [name: string]: unknown;
33948
+ };
33949
+ content: {
33950
+ "application/json": components["schemas"]["ResponseError"];
33951
+ };
33952
+ };
33953
+ };
33954
+ };
33955
+ "billing.cards.destroy": {
33956
+ parameters: {
33957
+ query?: never;
33958
+ header?: never;
33959
+ path: {
33960
+ /** @description The saved card (bpm_...) to remove. */
33961
+ card: string;
33962
+ };
33963
+ cookie?: never;
33964
+ };
33965
+ requestBody?: never;
33966
+ responses: {
33967
+ /** @description OK */
33968
+ 200: {
33969
+ headers: {
33970
+ [name: string]: unknown;
33971
+ };
33972
+ content: {
33973
+ "application/json": components["schemas"]["ResourceBillingAccount"];
33974
+ };
33975
+ };
33976
+ /** @description Error */
33977
+ default: {
33978
+ headers: {
33979
+ [name: string]: unknown;
33980
+ };
33981
+ content: {
33982
+ "application/json": components["schemas"]["ResponseError"];
33983
+ };
33984
+ };
33985
+ };
33986
+ };
33987
+ "billing.cards.update": {
33988
+ parameters: {
33989
+ query?: never;
33990
+ header?: never;
33991
+ path: {
33992
+ /** @description The saved card (bpm_...) to charge first. */
33993
+ card: string;
33994
+ };
33995
+ cookie?: never;
33996
+ };
33997
+ requestBody: {
33998
+ content: {
33999
+ "application/json": components["schemas"]["BillingCardUpdateBody"];
34000
+ };
34001
+ };
34002
+ responses: {
34003
+ /** @description OK */
34004
+ 200: {
34005
+ headers: {
34006
+ [name: string]: unknown;
34007
+ };
34008
+ content: {
34009
+ "application/json": components["schemas"]["ResourceBillingAccount"];
34010
+ };
34011
+ };
34012
+ /** @description Error */
34013
+ default: {
34014
+ headers: {
34015
+ [name: string]: unknown;
34016
+ };
34017
+ content: {
34018
+ "application/json": components["schemas"]["ResponseError"];
34019
+ };
34020
+ };
34021
+ };
34022
+ };
34023
+ "billing.invoices.index": {
34024
+ parameters: {
34025
+ query?: never;
34026
+ header?: never;
34027
+ path?: never;
34028
+ cookie?: never;
34029
+ };
34030
+ requestBody?: never;
34031
+ responses: {
34032
+ /** @description OK */
34033
+ 200: {
34034
+ headers: {
34035
+ [name: string]: unknown;
34036
+ };
34037
+ content: {
34038
+ "application/json": components["schemas"]["ResourceListBillingInvoice"];
34039
+ };
34040
+ };
34041
+ /** @description Error */
34042
+ default: {
34043
+ headers: {
34044
+ [name: string]: unknown;
34045
+ };
34046
+ content: {
34047
+ "application/json": components["schemas"]["ResponseError"];
34048
+ };
34049
+ };
34050
+ };
34051
+ };
34052
+ "billing.invoices.show": {
34053
+ parameters: {
34054
+ query?: never;
34055
+ header?: never;
34056
+ path: {
34057
+ /** @description The invoice (bivc_...) to read. */
34058
+ invoice: string;
34059
+ };
34060
+ cookie?: never;
34061
+ };
34062
+ requestBody?: never;
34063
+ responses: {
34064
+ /** @description OK */
34065
+ 200: {
34066
+ headers: {
34067
+ [name: string]: unknown;
34068
+ };
34069
+ content: {
34070
+ "application/json": components["schemas"]["ResourceBillingInvoice"];
34071
+ };
34072
+ };
34073
+ /** @description Error */
34074
+ default: {
34075
+ headers: {
34076
+ [name: string]: unknown;
34077
+ };
34078
+ content: {
34079
+ "application/json": components["schemas"]["ResponseError"];
34080
+ };
34081
+ };
34082
+ };
34083
+ };
34084
+ "billing.invoices.payments.store": {
34085
+ parameters: {
34086
+ query?: never;
34087
+ header?: never;
34088
+ path: {
34089
+ /** @description The invoice (bivc_...) to pay. */
34090
+ invoice: string;
34091
+ };
34092
+ cookie?: never;
34093
+ };
34094
+ requestBody?: never;
34095
+ responses: {
34096
+ /** @description OK */
34097
+ 200: {
34098
+ headers: {
34099
+ [name: string]: unknown;
34100
+ };
34101
+ content: {
34102
+ "application/json": components["schemas"]["ResourceBillingInvoice"];
34103
+ };
34104
+ };
34105
+ /** @description Error */
34106
+ default: {
34107
+ headers: {
34108
+ [name: string]: unknown;
34109
+ };
34110
+ content: {
34111
+ "application/json": components["schemas"]["ResponseError"];
34112
+ };
34113
+ };
34114
+ };
34115
+ };
34116
+ "billing.invoices.pdf.show": {
34117
+ parameters: {
34118
+ query?: never;
34119
+ header?: never;
34120
+ path: {
34121
+ /** @description The invoice (bivc_...) to download. */
34122
+ invoice: string;
34123
+ };
34124
+ cookie?: never;
34125
+ };
34126
+ requestBody?: never;
34127
+ responses: {
34128
+ /** @description OK */
34129
+ 200: {
34130
+ headers: {
34131
+ "Cache-Control"?: string;
34132
+ "Content-Disposition"?: string;
34133
+ "Content-Type"?: string;
34134
+ [name: string]: unknown;
34135
+ };
34136
+ content: {
34137
+ "application/json": string;
34138
+ };
34139
+ };
34140
+ /** @description Error */
34141
+ default: {
34142
+ headers: {
34143
+ [name: string]: unknown;
34144
+ };
34145
+ content: {
34146
+ "application/json": components["schemas"]["ResponseError"];
34147
+ };
34148
+ };
34149
+ };
34150
+ };
34151
+ "billing.usage.show": {
34152
+ parameters: {
34153
+ query?: never;
34154
+ header?: never;
34155
+ path?: never;
34156
+ cookie?: never;
34157
+ };
34158
+ requestBody?: never;
34159
+ responses: {
34160
+ /** @description OK */
34161
+ 200: {
34162
+ headers: {
34163
+ [name: string]: unknown;
34164
+ };
34165
+ content: {
34166
+ "application/json": components["schemas"]["ResourceBillingUsage"];
34167
+ };
34168
+ };
34169
+ /** @description Error */
34170
+ default: {
34171
+ headers: {
34172
+ [name: string]: unknown;
34173
+ };
34174
+ content: {
34175
+ "application/json": components["schemas"]["ResponseError"];
34176
+ };
34177
+ };
34178
+ };
34179
+ };
33395
34180
  "broadcast-preferences.show": {
33396
34181
  parameters: {
33397
34182
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimmi/api",
3
- "version": "0.3.1",
3
+ "version": "0.5.0",
4
4
  "description": "A typed client for the dimmi REST API: openapi-fetch over types generated from its OpenAPI document.",
5
5
  "license": "MIT",
6
6
  "type": "module",