@rundit-sdk/embed 0.2.0 → 0.3.0-rc.11

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.
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ export declare class RunditSdkError extends Error {
16
16
  }
17
17
 
18
18
  export interface CreateEmbedClientOptions {
19
- baseUrl: string
19
+ baseUrl?: string
20
20
  token: string
21
21
  fetch?: typeof fetch
22
22
  headers?: Record<string, string>
@@ -25,10 +25,10 @@ export interface CreateEmbedClientOptions {
25
25
  export interface SdkCompanyDto {
26
26
  id: number
27
27
  name: string
28
- type?: string
28
+ type: string | null
29
29
  website?: string | null
30
30
  currency: string
31
- logoImageFileUuid?: string | null
31
+ logoImageFileUuid: string | null
32
32
  legalName?: string | null
33
33
  status?: string | null
34
34
  description?: string | null
@@ -48,10 +48,19 @@ export interface SdkCompanyDto {
48
48
  export interface SdkCompactCompanyDto {
49
49
  id: number
50
50
  name: string
51
- type?: string
51
+ type: string | null
52
52
  website?: string | null
53
53
  currency: string
54
- logoImageFileUuid?: string | null
54
+ logoImageFileUuid: string | null
55
+ }
56
+
57
+ export interface SdkPaginationMetaDto {
58
+ nextCursor: string | null
59
+ }
60
+
61
+ export interface SdkCompaniesListResponseDto {
62
+ data: SdkCompactCompanyDto[]
63
+ meta: SdkPaginationMetaDto
55
64
  }
56
65
 
57
66
  export interface SdkCompactCompanyGroupDto {
@@ -62,6 +71,11 @@ export interface SdkCompactCompanyGroupDto {
62
71
  companyIds?: number[]
63
72
  }
64
73
 
74
+ export interface SdkCompanyGroupsListResponseDto {
75
+ data: SdkCompactCompanyGroupDto[]
76
+ meta: SdkPaginationMetaDto
77
+ }
78
+
65
79
  export interface SdkCompanyGroupBasicInformationDto {
66
80
  fullName?: string | null
67
81
  domicile?: string | null
@@ -135,7 +149,7 @@ export interface SdkCompanyGroupDto {
135
149
  export interface SdkCompanyReferenceDto {
136
150
  id: number
137
151
  name: string
138
- type?: string
152
+ type: string | null
139
153
  }
140
154
 
141
155
  export interface SdkCompanyGroupReferenceDto {
@@ -209,6 +223,11 @@ export interface SdkCompanyPositionDto {
209
223
  date: string
210
224
  }
211
225
 
226
+ export interface SdkCompanyPositionsListResponseDto {
227
+ data: SdkCompanyPositionDto[]
228
+ meta: SdkPaginationMetaDto
229
+ }
230
+
212
231
  export interface SdkPortfolioPositionDto {
213
232
  companyIds?: number[]
214
233
  currency: string
@@ -244,9 +263,9 @@ export interface SdkTransactionAdditionalInfoDto {
244
263
  earnOut?: string | null
245
264
  }
246
265
 
247
- export interface SdkTransactionBaseDto {
266
+ export interface SdkOtherInvestmentTransactionDto {
248
267
  id: number
249
- type: "Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff"
268
+ type: "OtherInvestment"
250
269
  date: string
251
270
  companyId: number
252
271
  companyGroupId?: number | null
@@ -254,12 +273,14 @@ export interface SdkTransactionBaseDto {
254
273
  companyGroup?: SdkCompanyGroupReferenceDto
255
274
  currency?: string | null
256
275
  additionalInfo?: SdkTransactionAdditionalInfoDto
257
- children?: SdkTransactionBaseDto[]
276
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
277
+ invested: number
278
+ name?: string | null
258
279
  }
259
280
 
260
- export interface SdkEquityTransactionDto {
281
+ export interface SdkInsolvencyTransactionDto {
261
282
  id: number
262
- type: "EquityInvestment" | "EquityReceived" | "OptionsReceived"
283
+ type: "Insolvency"
263
284
  date: string
264
285
  companyId: number
265
286
  companyGroupId?: number | null
@@ -267,13 +288,27 @@ export interface SdkEquityTransactionDto {
267
288
  companyGroup?: SdkCompanyGroupReferenceDto
268
289
  currency?: string | null
269
290
  additionalInfo?: SdkTransactionAdditionalInfoDto
270
- children?: SdkTransactionBaseDto[]
271
- invested?: number | null
291
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
292
+ customSummaryFairValue?: number | null
293
+ }
294
+
295
+ export interface SdkValuationChangeTransactionDto {
296
+ id: number
297
+ type: "ValuationChange"
298
+ date: string
299
+ companyId: number
300
+ companyGroupId?: number | null
301
+ company?: SdkCompanyReferenceDto
302
+ companyGroup?: SdkCompanyGroupReferenceDto
303
+ currency?: string | null
304
+ additionalInfo?: SdkTransactionAdditionalInfoDto
305
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
306
+ companyPostMoneyValuation?: number | null
272
307
  pricePerShare?: number | null
273
- sharesAcquired?: number | null
274
308
  sharesIssuedTotalDiluted?: number | null
275
309
  sharesIssuedTotalCurrent?: number | null
276
- companyPostMoneyValuation?: number | null
310
+ valuationMethod?: "Historical" | "NewFinancingRound" | "PubliclyListedSecurity" | "Realization" | "RecentTransactionMultiples" | "RecentMarketMultiples" | "RecentMarketAndTransactionMultiples" | "DiscountToPrimaryRound" | "ThirdPartyOpinion" | "Dcf" | "Other"
311
+ customSummaryFairValue?: number | null
277
312
  }
278
313
 
279
314
  export interface SdkTransactionPaymentDto {
@@ -281,9 +316,9 @@ export interface SdkTransactionPaymentDto {
281
316
  dueDate: string
282
317
  }
283
318
 
284
- export interface SdkConvertibleNoteTransactionDto {
319
+ export interface SdkExitTransactionDto {
285
320
  id: number
286
- type: "ConvertibleNote"
321
+ type: "TradeSale" | "IPO" | "Auction" | "LimitedAuction" | "Proprietary" | "OtherExit" | "Dividend" | "OtherRealization"
287
322
  date: string
288
323
  companyId: number
289
324
  companyGroupId?: number | null
@@ -291,22 +326,19 @@ export interface SdkConvertibleNoteTransactionDto {
291
326
  companyGroup?: SdkCompanyGroupReferenceDto
292
327
  currency?: string | null
293
328
  additionalInfo?: SdkTransactionAdditionalInfoDto
294
- children?: SdkTransactionBaseDto[]
295
- invested: number
296
- valuationCap?: number | null
297
- discountRate?: number | null
298
- interestRate?: number | null
299
- interestType?: string | null
300
- compounded?: string | null
301
- dayCountConvention?: string | null
302
- maturityDate?: string | null
303
- warrantedOwnership?: number | null
329
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
330
+ profit?: number | null
331
+ pricePerShare?: number | null
332
+ sharesAcquired?: number | null
333
+ companyPostMoneyValuation?: number | null
334
+ ticker?: string | null
335
+ name?: string | null
304
336
  payments?: SdkTransactionPaymentDto[]
305
337
  }
306
338
 
307
- export interface SdkFutureEquityAgreementTransactionDto {
339
+ export interface SdkConversionTransactionDto {
308
340
  id: number
309
- type: "FutureEquityAgreement"
341
+ type: "ConvertToEquity" | "Payback" | "WriteOff"
310
342
  date: string
311
343
  companyId: number
312
344
  companyGroupId?: number | null
@@ -314,13 +346,14 @@ export interface SdkFutureEquityAgreementTransactionDto {
314
346
  companyGroup?: SdkCompanyGroupReferenceDto
315
347
  currency?: string | null
316
348
  additionalInfo?: SdkTransactionAdditionalInfoDto
317
- children?: SdkTransactionBaseDto[]
318
- invested: number
319
- valuationCap?: number | null
320
- discountRate?: number | null
321
- valuationTiming?: string | null
322
- companyPostMoneyValuation?: number | null
323
- warrantedOwnership?: number | null
349
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
350
+ parentId: number
351
+ convertedTransactionType?: "Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff"
352
+ amountConverted?: number | null
353
+ writeOffAmount?: number | null
354
+ pricePerShare?: number | null
355
+ sharesAcquired?: number | null
356
+ payments?: SdkTransactionPaymentDto[]
324
357
  }
325
358
 
326
359
  export interface SdkExtendTransactionDto {
@@ -333,15 +366,15 @@ export interface SdkExtendTransactionDto {
333
366
  companyGroup?: SdkCompanyGroupReferenceDto
334
367
  currency?: string | null
335
368
  additionalInfo?: SdkTransactionAdditionalInfoDto
336
- children?: SdkTransactionBaseDto[]
369
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
337
370
  parentId: number
338
371
  maturityDate?: string | null
339
372
  transactionFairValue?: number | null
340
373
  }
341
374
 
342
- export interface SdkConversionTransactionDto {
375
+ export interface SdkFutureEquityAgreementTransactionDto {
343
376
  id: number
344
- type: "ConvertToEquity" | "Payback" | "WriteOff"
377
+ type: "FutureEquityAgreement"
345
378
  date: string
346
379
  companyId: number
347
380
  companyGroupId?: number | null
@@ -349,19 +382,18 @@ export interface SdkConversionTransactionDto {
349
382
  companyGroup?: SdkCompanyGroupReferenceDto
350
383
  currency?: string | null
351
384
  additionalInfo?: SdkTransactionAdditionalInfoDto
352
- children?: SdkTransactionBaseDto[]
353
- parentId: number
354
- convertedTransactionType?: "Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff"
355
- amountConverted?: number | null
356
- writeOffAmount?: number | null
357
- pricePerShare?: number | null
358
- sharesAcquired?: number | null
359
- payments?: SdkTransactionPaymentDto[]
385
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
386
+ invested: number
387
+ valuationCap?: number | null
388
+ discountRate?: number | null
389
+ valuationTiming?: string | null
390
+ companyPostMoneyValuation?: number | null
391
+ warrantedOwnership?: number | null
360
392
  }
361
393
 
362
- export interface SdkExitTransactionDto {
394
+ export interface SdkConvertibleNoteTransactionDto {
363
395
  id: number
364
- type: "TradeSale" | "IPO" | "Auction" | "LimitedAuction" | "Proprietary" | "OtherExit" | "Dividend" | "OtherRealization"
396
+ type: "ConvertibleNote"
365
397
  date: string
366
398
  companyId: number
367
399
  companyGroupId?: number | null
@@ -369,19 +401,22 @@ export interface SdkExitTransactionDto {
369
401
  companyGroup?: SdkCompanyGroupReferenceDto
370
402
  currency?: string | null
371
403
  additionalInfo?: SdkTransactionAdditionalInfoDto
372
- children?: SdkTransactionBaseDto[]
373
- profit?: number | null
374
- pricePerShare?: number | null
375
- sharesAcquired?: number | null
376
- companyPostMoneyValuation?: number | null
377
- ticker?: string | null
378
- name?: string | null
404
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
405
+ invested: number
406
+ valuationCap?: number | null
407
+ discountRate?: number | null
408
+ interestRate?: number | null
409
+ interestType?: string | null
410
+ compounded?: string | null
411
+ dayCountConvention?: string | null
412
+ maturityDate?: string | null
413
+ warrantedOwnership?: number | null
379
414
  payments?: SdkTransactionPaymentDto[]
380
415
  }
381
416
 
382
- export interface SdkValuationChangeTransactionDto {
417
+ export interface SdkEquityTransactionDto {
383
418
  id: number
384
- type: "ValuationChange"
419
+ type: "EquityInvestment" | "EquityReceived" | "OptionsReceived"
385
420
  date: string
386
421
  companyId: number
387
422
  companyGroupId?: number | null
@@ -389,65 +424,197 @@ export interface SdkValuationChangeTransactionDto {
389
424
  companyGroup?: SdkCompanyGroupReferenceDto
390
425
  currency?: string | null
391
426
  additionalInfo?: SdkTransactionAdditionalInfoDto
392
- children?: SdkTransactionBaseDto[]
393
- companyPostMoneyValuation?: number | null
427
+ children?: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
428
+ invested?: number | null
394
429
  pricePerShare?: number | null
430
+ sharesAcquired?: number | null
395
431
  sharesIssuedTotalDiluted?: number | null
396
432
  sharesIssuedTotalCurrent?: number | null
397
- valuationMethod?: "Historical" | "NewFinancingRound" | "PubliclyListedSecurity" | "Realization" | "RecentTransactionMultiples" | "RecentMarketMultiples" | "RecentMarketAndTransactionMultiples" | "DiscountToPrimaryRound" | "ThirdPartyOpinion" | "Dcf" | "Other"
398
- customSummaryFairValue?: number | null
433
+ companyPostMoneyValuation?: number | null
399
434
  }
400
435
 
401
- export interface SdkInsolvencyTransactionDto {
436
+ export interface SdkTransactionsListResponseDto {
437
+ data: (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
438
+ meta: SdkPaginationMetaDto
439
+ }
440
+
441
+ export interface SdkMetricUnitDto {
442
+ unit: { }
443
+ currencyCode?: string | null
444
+ }
445
+
446
+ export interface SdkMetricTypeDto {
402
447
  id: number
403
- type: "Insolvency"
448
+ name: string
449
+ shortName?: string | null
450
+ description?: string | null
451
+ origin?: { }
452
+ aggMethod: { }
453
+ valueType?: { }
454
+ unit?: SdkMetricUnitDto
455
+ }
456
+
457
+ export interface SdkMetricTypesListResponseDto {
458
+ data: SdkMetricTypeDto[]
459
+ meta: SdkPaginationMetaDto
460
+ }
461
+
462
+ export interface SdkMetricPointDto {
404
463
  date: string
464
+ timeframe: { }
465
+ value: number | null
466
+ valueError?: string | null
467
+ aggregated?: boolean
468
+ }
469
+
470
+ export interface SdkCompanyMetricDto {
471
+ id: number
472
+ metricType: SdkMetricTypeDto
473
+ points: SdkMetricPointDto[]
474
+ }
475
+
476
+ export interface SdkCompanyMetricsDto {
405
477
  companyId: number
406
- companyGroupId?: number | null
407
- company?: SdkCompanyReferenceDto
408
- companyGroup?: SdkCompanyGroupReferenceDto
409
- currency?: string | null
410
- additionalInfo?: SdkTransactionAdditionalInfoDto
411
- children?: SdkTransactionBaseDto[]
412
- customSummaryFairValue?: number | null
478
+ company: SdkCompanyReferenceDto
479
+ metrics: SdkCompanyMetricDto[]
413
480
  }
414
481
 
415
- export interface SdkOtherInvestmentTransactionDto {
482
+ export interface SdkCompanyMetricsListResponseDto {
483
+ data: SdkCompanyMetricsDto[]
484
+ meta: SdkPaginationMetaDto
485
+ }
486
+
487
+ export interface MetricSearchDto {
488
+ limit?: number
489
+ cursor?: string
490
+ companyIds?: number[]
491
+ companyGroupIds?: number[]
492
+ metricTypeIds?: number[]
493
+ timeframe?: "Month" | "Quarter" | "Year"
494
+ from?: string
495
+ to?: string
496
+ }
497
+
498
+ export interface SdkCompanyReportSummaryDto {
416
499
  id: number
417
- type: "OtherInvestment"
500
+ title: string
418
501
  date: string
419
- companyId: number
420
- companyGroupId?: number | null
421
- company?: SdkCompanyReferenceDto
422
- companyGroup?: SdkCompanyGroupReferenceDto
423
- currency?: string | null
424
- additionalInfo?: SdkTransactionAdditionalInfoDto
425
- children?: SdkTransactionBaseDto[]
426
- invested: number
427
- name?: string | null
502
+ timeframe: { }
503
+ publishedAt?: string | null
504
+ company: SdkCompanyReferenceDto
505
+ }
506
+
507
+ export interface SdkCompanyReportsListResponseDto {
508
+ data: SdkCompanyReportSummaryDto[]
509
+ meta: SdkPaginationMetaDto
510
+ }
511
+
512
+ export interface SdkUserReferenceDto {
513
+ id: number
514
+ name: string
515
+ }
516
+
517
+ export interface SdkCompanyReportAttachmentDto {
518
+ id: number
519
+ name: string
520
+ url?: string | null
521
+ }
522
+
523
+ export interface SdkCompanyReportSectionDto {
524
+ id: number
525
+ type: { }
526
+ order: number
527
+ title: string
528
+ content?: string | null
529
+ file?: SdkCompanyReportAttachmentDto
530
+ imageUrl?: string | null
531
+ }
532
+
533
+ export interface SdkCompanyReportDto {
534
+ id: number
535
+ title: string
536
+ date: string
537
+ timeframe: { }
538
+ publishedAt?: string | null
539
+ company: SdkCompanyReferenceDto
540
+ createdBy?: SdkUserReferenceDto
541
+ sections: SdkCompanyReportSectionDto[]
542
+ attachments: SdkCompanyReportAttachmentDto[]
428
543
  }
429
544
 
430
545
  export type CompaniesGetOneResponse = SdkCompanyDto
431
546
 
432
- export type CompaniesGetAllResponse = SdkCompactCompanyDto[]
547
+ export type CompaniesGetAllResponse = SdkCompaniesListResponseDto
433
548
 
434
- export type CompanyGroupsGetAllResponse = SdkCompactCompanyGroupDto[]
549
+ export type CompanyGroupsGetAllResponse = SdkCompanyGroupsListResponseDto
435
550
 
436
551
  export type CompanyGroupsGetOneResponse = SdkCompanyGroupDto
437
552
 
438
- export type PositionsGetCompanyPositionsResponse = SdkCompanyPositionDto[]
553
+ export type PositionsGetCompanyPositionsResponse = SdkCompanyPositionsListResponseDto
439
554
 
440
555
  export type PositionsGetPortfolioPositionsResponse = SdkPortfolioPositionDto
441
556
 
442
- export type TransactionsGetCompanyTransactionsResponse = (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
557
+ export type TransactionsGetCompanyTransactionsResponse = SdkTransactionsListResponseDto
558
+
559
+ export type TransactionsGetTransactionsResponse = SdkTransactionsListResponseDto
560
+
561
+ export type MetricsGetTypesResponse = SdkMetricTypesListResponseDto
562
+
563
+ export type MetricsSearchResponse = SdkCompanyMetricsListResponseDto
443
564
 
444
- export type TransactionsGetTransactionsResponse = (SdkEquityTransactionDto | SdkConvertibleNoteTransactionDto | SdkFutureEquityAgreementTransactionDto | SdkExtendTransactionDto | SdkConversionTransactionDto | SdkExitTransactionDto | SdkValuationChangeTransactionDto | SdkInsolvencyTransactionDto | SdkOtherInvestmentTransactionDto)[]
565
+ export type MetricsSearchBody = MetricSearchDto
566
+
567
+ export type CompanyReportsListResponse = SdkCompanyReportsListResponseDto
568
+
569
+ export type CompanyReportsGetOneResponse = SdkCompanyReportDto
570
+
571
+ export interface CompaniesGetAllQuery {
572
+ /**
573
+ * Maximum items per page. Currently accepted but not enforced; reserved for future pagination.
574
+ */
575
+ limit?: number
576
+ /**
577
+ * Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored.
578
+ */
579
+ cursor?: string
580
+ /**
581
+ * Restrict results to these company identifiers
582
+ */
583
+ companyIds?: number[]
584
+ /**
585
+ * Restrict results to companies that belong to any of these company groups
586
+ */
587
+ companyGroupIds?: number[]
588
+ }
589
+
590
+ export interface CompanyGroupsGetAllQuery {
591
+ /**
592
+ * Maximum items per page. Currently accepted but not enforced; reserved for future pagination.
593
+ */
594
+ limit?: number
595
+ /**
596
+ * Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored.
597
+ */
598
+ cursor?: string
599
+ /**
600
+ * Restrict results to these company group identifiers
601
+ */
602
+ companyGroupIds?: number[]
603
+ }
445
604
 
446
605
  export interface PositionsGetCompanyPositionsQuery {
447
606
  /**
448
- * Optional company group identifier to filter by
607
+ * Maximum items per page. Currently accepted but not enforced; reserved for future pagination.
608
+ */
609
+ limit?: number
610
+ /**
611
+ * Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored.
612
+ */
613
+ cursor?: string
614
+ /**
615
+ * Optional list of company group identifiers to filter the position breakdown
449
616
  */
450
- companyGroupId?: number
617
+ companyGroupIds?: number[]
451
618
  /**
452
619
  * Reporting currency code
453
620
  */
@@ -463,6 +630,10 @@ export interface PositionsGetPortfolioPositionsQuery {
463
630
  * Optional list of company group identifiers to filter the portfolio positions
464
631
  */
465
632
  companyGroupIds?: number[]
633
+ /**
634
+ * Optional list of company identifiers to narrow the aggregation to
635
+ */
636
+ companyIds?: number[]
466
637
  /**
467
638
  * Reporting currency code
468
639
  */
@@ -474,23 +645,86 @@ export interface PositionsGetPortfolioPositionsQuery {
474
645
  }
475
646
 
476
647
  export interface TransactionsGetCompanyTransactionsQuery {
648
+ /**
649
+ * Maximum items per page. Currently accepted but not enforced; reserved for future pagination.
650
+ */
651
+ limit?: number
652
+ /**
653
+ * Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored.
654
+ */
655
+ cursor?: string
477
656
  /**
478
657
  * Optional company group identifiers to filter transactions by
479
658
  */
480
659
  companyGroupIds?: number[]
660
+ /**
661
+ * Restrict results to these transaction types
662
+ */
663
+ types?: ("Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff")[]
664
+ /**
665
+ * Exclude transactions on or after this ISO 8601 date (cut-off filter)
666
+ */
667
+ priorTo?: string
481
668
  }
482
669
 
483
670
  export interface TransactionsGetTransactionsQuery {
671
+ /**
672
+ * Maximum items per page. Currently accepted but not enforced; reserved for future pagination.
673
+ */
674
+ limit?: number
675
+ /**
676
+ * Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored.
677
+ */
678
+ cursor?: string
484
679
  /**
485
680
  * Optional company group identifiers to filter transactions by
486
681
  */
487
682
  companyGroupIds?: number[]
683
+ /**
684
+ * Restrict results to these transaction types
685
+ */
686
+ types?: ("Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff")[]
687
+ /**
688
+ * Exclude transactions on or after this ISO 8601 date (cut-off filter)
689
+ */
690
+ priorTo?: string
488
691
  /**
489
692
  * Optional company identifiers to filter transactions by
490
693
  */
491
694
  companyIds?: number[]
492
695
  }
493
696
 
697
+ export interface CompanyReportsListQuery {
698
+ /**
699
+ * Maximum items per page. Currently accepted but not enforced; reserved for future pagination.
700
+ */
701
+ limit?: number
702
+ /**
703
+ * Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored.
704
+ */
705
+ cursor?: string
706
+ /**
707
+ * Restrict results to these companies. Defaults to all companies the caller can access.
708
+ */
709
+ companyIds?: number[]
710
+ /**
711
+ * Restrict to companies that belong to any of these company groups.
712
+ */
713
+ companyGroupIds?: number[]
714
+ /**
715
+ * Restrict to a reporting period granularity (Month, Quarter, Year).
716
+ */
717
+ timeframe?: "Month" | "Quarter" | "Year"
718
+ /**
719
+ * Lower bound for the reporting period date (ISO 8601, inclusive).
720
+ */
721
+ from?: string
722
+ /**
723
+ * Upper bound for the reporting period date (ISO 8601, inclusive).
724
+ */
725
+ to?: string
726
+ }
727
+
494
728
  export interface CompaniesNamespace {
495
729
  /**
496
730
  * Get one company available to the SDK consumer
@@ -500,17 +734,19 @@ export interface CompaniesNamespace {
500
734
  getOne(id: number, init?: RequestOptions): Promise<CompaniesGetOneResponse>
501
735
  /**
502
736
  * List companies available to the SDK consumer
737
+ * Parameters: query: limit? (number), cursor? (string), companyIds? (number[]), companyGroupIds? (number[])
503
738
  * Returns: CompaniesGetAllResponse
504
739
  */
505
- getAll(init?: RequestOptions): Promise<CompaniesGetAllResponse>
740
+ getAll(query?: CompaniesGetAllQuery, init?: RequestOptions): Promise<CompaniesGetAllResponse>
506
741
  }
507
742
 
508
743
  export interface CompanyGroupsNamespace {
509
744
  /**
510
745
  * List company groups available to the SDK consumer
746
+ * Parameters: query: limit? (number), cursor? (string), companyGroupIds? (number[])
511
747
  * Returns: CompanyGroupsGetAllResponse
512
748
  */
513
- getAll(init?: RequestOptions): Promise<CompanyGroupsGetAllResponse>
749
+ getAll(query?: CompanyGroupsGetAllQuery, init?: RequestOptions): Promise<CompanyGroupsGetAllResponse>
514
750
  /**
515
751
  * Get one company group available to the SDK consumer
516
752
  * Parameters: path: id (number)
@@ -522,13 +758,13 @@ export interface CompanyGroupsNamespace {
522
758
  export interface PositionsNamespace {
523
759
  /**
524
760
  * Get positions for one company
525
- * Parameters: path: id (number); query: companyGroupId? (number), currency (string), date? (string)
761
+ * Parameters: path: id (number); query: limit? (number), cursor? (string), companyGroupIds? (number[]), currency (string), date? (string)
526
762
  * Returns: PositionsGetCompanyPositionsResponse
527
763
  */
528
764
  getCompanyPositions(id: number, query?: PositionsGetCompanyPositionsQuery, init?: RequestOptions): Promise<PositionsGetCompanyPositionsResponse>
529
765
  /**
530
766
  * Get portfolio positions
531
- * Parameters: query: companyGroupIds? (number[]), currency (string), date? (string)
767
+ * Parameters: query: companyGroupIds? (number[]), companyIds? (number[]), currency (string), date? (string)
532
768
  * Returns: PositionsGetPortfolioPositionsResponse
533
769
  */
534
770
  getPortfolioPositions(query?: PositionsGetPortfolioPositionsQuery, init?: RequestOptions): Promise<PositionsGetPortfolioPositionsResponse>
@@ -537,23 +773,58 @@ export interface PositionsNamespace {
537
773
  export interface TransactionsNamespace {
538
774
  /**
539
775
  * Get transactions for one company
540
- * Parameters: path: id (number); query: companyGroupIds? (number[])
776
+ * Parameters: path: id (number); query: limit? (number), cursor? (string), companyGroupIds? (number[]), types? (("Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff")[]), priorTo? (string)
541
777
  * Returns: TransactionsGetCompanyTransactionsResponse
542
778
  */
543
779
  getCompanyTransactions(id: number, query?: TransactionsGetCompanyTransactionsQuery, init?: RequestOptions): Promise<TransactionsGetCompanyTransactionsResponse>
544
780
  /**
545
781
  * Get transactions for multiple companies
546
- * Parameters: query: companyGroupIds? (number[]), companyIds? (number[])
782
+ * Parameters: query: limit? (number), cursor? (string), companyGroupIds? (number[]), types? (("Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff")[]), priorTo? (string), companyIds? (number[])
547
783
  * Returns: TransactionsGetTransactionsResponse
548
784
  */
549
785
  getTransactions(query?: TransactionsGetTransactionsQuery, init?: RequestOptions): Promise<TransactionsGetTransactionsResponse>
550
786
  }
551
787
 
788
+ export interface MetricsNamespace {
789
+ /**
790
+ * List metric types available to the SDK consumer
791
+ * Returns predefined metric types plus user-defined metric types scoped to the caller — VC group custom types for VC users, company custom types for company users. Each entry includes a numeric id and a human-readable name suitable for display or LLM context.
792
+ * Returns: MetricsGetTypesResponse
793
+ */
794
+ getTypes(init?: RequestOptions): Promise<MetricsGetTypesResponse>
795
+ /**
796
+ * Read metric values for accessible companies, grouped by company
797
+ * Returns metric data points for companies the caller can access (companies in the caller's VC group portfolio, or the caller's own company for company users). Each entry carries company and metric type references with id and human-readable name. Filter by company, company group, metric type, timeframe, and date range to narrow the response.
798
+ * Parameters: body: MetricsSearchBody
799
+ * Returns: MetricsSearchResponse
800
+ */
801
+ search(body: MetricsSearchBody, init?: RequestOptions): Promise<MetricsSearchResponse>
802
+ }
803
+
804
+ export interface CompanyReportsNamespace {
805
+ /**
806
+ * List published company reports accessible to the caller (metadata only)
807
+ * Returns lightweight report metadata (id, title, period, publisher company reference). Use GET /company-reports/:id to fetch the full content of a specific report. Visibility is determined by the caller's roles — VC users see reports for managed-portfolio companies, company employees see their own company's reports, portfolio investors see Published reports shared with their visibility groups. Filters narrow the list by company ids and reporting period (timeframe + date range).
808
+ * Parameters: query: limit? (number), cursor? (string), companyIds? (number[]), companyGroupIds? (number[]), timeframe? ("Month" | "Quarter" | "Year"), from? (string), to? (string)
809
+ * Returns: CompanyReportsListResponse
810
+ */
811
+ list(query?: CompanyReportsListQuery, init?: RequestOptions): Promise<CompanyReportsListResponse>
812
+ /**
813
+ * Fetch the full content of a single company report
814
+ * Returns the report metadata plus structured sections (text/markdown/image) and attachments with pre-signed URLs. Returns 404 if the report does not exist and 403 if the caller cannot access it under their role-based permissions.
815
+ * Parameters: path: id (number)
816
+ * Returns: CompanyReportsGetOneResponse
817
+ */
818
+ getOne(id: number, init?: RequestOptions): Promise<CompanyReportsGetOneResponse>
819
+ }
820
+
552
821
  export interface EmbedClient {
553
822
  companies: CompaniesNamespace
554
823
  companyGroups: CompanyGroupsNamespace
555
824
  positions: PositionsNamespace
556
825
  transactions: TransactionsNamespace
826
+ metrics: MetricsNamespace
827
+ companyReports: CompanyReportsNamespace
557
828
  }
558
829
 
559
830
  export declare function createEmbedClient(options: CreateEmbedClientOptions): EmbedClient
@@ -561,10 +832,10 @@ export declare function createEmbedClient(options: CreateEmbedClientOptions): Em
561
832
  export declare const routeManifest: {
562
833
  companies: {
563
834
  getOne: { method: "GET"; path: "/companies/:id"; summary: "Get one company available to the SDK consumer"; description: null; exampleCall: "client.companies.getOne(123)"; responseType: "CompaniesGetOneResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
564
- getAll: { method: "GET"; path: "/companies"; summary: "List companies available to the SDK consumer"; description: null; exampleCall: "client.companies.getAll()"; responseType: "CompaniesGetAllResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
835
+ getAll: { method: "GET"; path: "/companies"; summary: "List companies available to the SDK consumer"; description: null; exampleCall: "client.companies.getAll({ limit: 123 })"; responseType: "CompaniesGetAllResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
565
836
  }
566
837
  companyGroups: {
567
- getAll: { method: "GET"; path: "/company-groups"; summary: "List company groups available to the SDK consumer"; description: null; exampleCall: "client.companyGroups.getAll()"; responseType: "CompanyGroupsGetAllResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
838
+ getAll: { method: "GET"; path: "/company-groups"; summary: "List company groups available to the SDK consumer"; description: null; exampleCall: "client.companyGroups.getAll({ limit: 123 })"; responseType: "CompanyGroupsGetAllResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
568
839
  getOne: { method: "GET"; path: "/company-groups/:id"; summary: "Get one company group available to the SDK consumer"; description: null; exampleCall: "client.companyGroups.getOne(123)"; responseType: "CompanyGroupsGetOneResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
569
840
  }
570
841
  positions: {
@@ -572,7 +843,15 @@ export declare const routeManifest: {
572
843
  getPortfolioPositions: { method: "GET"; path: "/positions/portfolio"; summary: "Get portfolio positions"; description: null; exampleCall: "client.positions.getPortfolioPositions({ currency: 'USD' })"; responseType: "PositionsGetPortfolioPositionsResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
573
844
  }
574
845
  transactions: {
575
- getCompanyTransactions: { method: "GET"; path: "/transactions/companies/:id"; summary: "Get transactions for one company"; description: null; exampleCall: "client.transactions.getCompanyTransactions(123, { companyGroupIds: [123] })"; responseType: "TransactionsGetCompanyTransactionsResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
576
- getTransactions: { method: "GET"; path: "/transactions"; summary: "Get transactions for multiple companies"; description: null; exampleCall: "client.transactions.getTransactions({ companyGroupIds: [123] })"; responseType: "TransactionsGetTransactionsResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
846
+ getCompanyTransactions: { method: "GET"; path: "/transactions/companies/:id"; summary: "Get transactions for one company"; description: null; exampleCall: "client.transactions.getCompanyTransactions(123, { limit: 123 })"; responseType: "TransactionsGetCompanyTransactionsResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
847
+ getTransactions: { method: "GET"; path: "/transactions"; summary: "Get transactions for multiple companies"; description: null; exampleCall: "client.transactions.getTransactions({ limit: 123 })"; responseType: "TransactionsGetTransactionsResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
848
+ }
849
+ metrics: {
850
+ getTypes: { method: "GET"; path: "/metrics/types"; summary: "List metric types available to the SDK consumer"; description: "Returns predefined metric types plus user-defined metric types scoped to the caller — VC group custom types for VC users, company custom types for company users. Each entry includes a numeric id and a human-readable name suitable for display or LLM context."; exampleCall: "client.metrics.getTypes()"; responseType: "MetricsGetTypesResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
851
+ search: { method: "POST"; path: "/metrics"; summary: "Read metric values for accessible companies, grouped by company"; description: "Returns metric data points for companies the caller can access (companies in the caller's VC group portfolio, or the caller's own company for company users). Each entry carries company and metric type references with id and human-readable name. Filter by company, company group, metric type, timeframe, and date range to narrow the response."; exampleCall: "client.metrics.search({})"; responseType: "MetricsSearchResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
852
+ }
853
+ companyReports: {
854
+ list: { method: "GET"; path: "/company-reports"; summary: "List published company reports accessible to the caller (metadata only)"; description: "Returns lightweight report metadata (id, title, period, publisher company reference). Use GET /company-reports/:id to fetch the full content of a specific report. Visibility is determined by the caller's roles — VC users see reports for managed-portfolio companies, company employees see their own company's reports, portfolio investors see Published reports shared with their visibility groups. Filters narrow the list by company ids and reporting period (timeframe + date range)."; exampleCall: "client.companyReports.list({ limit: 123 })"; responseType: "CompanyReportsListResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
855
+ getOne: { method: "GET"; path: "/company-reports/:id"; summary: "Fetch the full content of a single company report"; description: "Returns the report metadata plus structured sections (text/markdown/image) and attachments with pre-signed URLs. Returns 404 if the report does not exist and 403 if the caller cannot access it under their role-based permissions."; exampleCall: "client.companyReports.getOne(123)"; responseType: "CompanyReportsGetOneResponse"; pathParams: { name: string; type: string; description: string | null }[]; queryParams: { name: string; type: string; required: boolean; description: string | null }[] }
577
856
  }
578
857
  }