@firmenakte/api-client 2.36.0 → 2.38.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.
@@ -13,6 +13,10 @@ export type AccountLiability = {
13
13
  amount: number;
14
14
  after: string;
15
15
  };
16
+ export type AddLetterAttachmentBody = {
17
+ fileName: string;
18
+ contentBase64: string;
19
+ };
16
20
  export type AddressCoordinatesResponse = {
17
21
  lat: number;
18
22
  lng: number;
@@ -623,6 +627,13 @@ export type CompanyLicense = {
623
627
  lastSeen?: null | string;
624
628
  dormantSince?: null | string;
625
629
  };
630
+ export type CompanyLogoDto = {
631
+ url: string;
632
+ width: number;
633
+ height: number;
634
+ source: SourceKey;
635
+ asOf: string;
636
+ };
626
637
  export type CompanyMatchCandidate = {
627
638
  id: string;
628
639
  name: string;
@@ -775,6 +786,7 @@ export type CompanyResponse = {
775
786
  websites: Array<string>;
776
787
  webPresence?: null | Array<CompanyWebsite>;
777
788
  profile?: null | CompanyProfileDto;
789
+ logo?: null | CompanyLogoDto;
778
790
  uidVerifications?: null | Array<CompanyUidVerification>;
779
791
  signerCount?: null | number;
780
792
  insolvency: CompanyInsolvency;
@@ -814,7 +826,7 @@ export type CompanySearchRequest = {
814
826
  */
815
827
  includeSummary?: boolean;
816
828
  /**
817
- * What the company does, for example Bronzeguss. Ranks by relevance, combines with filters, takes no sort; three credits. 503 where unavailable.
829
+ * What the company does, for example Bronzeguss, or a whole description of up to 2000 characters, such as a company's profile text to find similar companies. Ranks by relevance, combines with filters, takes no sort; three credits. Up to eight words also match word by word; a longer text ranks by meaning alone. 503 where unavailable.
818
830
  */
819
831
  activity?: null | string;
820
832
  where?: Filter;
@@ -1025,6 +1037,22 @@ export type CreateImportDto = {
1025
1037
  [key: string]: string;
1026
1038
  }>;
1027
1039
  };
1040
+ export type CreateLetterRequest = {
1041
+ senderCompanyId?: null | string;
1042
+ subject?: null | string;
1043
+ body?: null | string;
1044
+ qrUrl?: null | string;
1045
+ /**
1046
+ * The bold line in the QR field; takes the same variables as the text. Empty prints „Mehr erfahren“.
1047
+ */
1048
+ qrText?: null | string;
1049
+ advertising?: null | boolean;
1050
+ recipients?: null | Array<LetterRecipientRef>;
1051
+ /**
1052
+ * Brief ID to copy.
1053
+ */
1054
+ from?: null | string;
1055
+ };
1028
1056
  export type CreateListDto = {
1029
1057
  name: string;
1030
1058
  color?: null | string;
@@ -1176,6 +1204,16 @@ export type CursorPageOfImportRowDto = {
1176
1204
  nextCursor?: null | string;
1177
1205
  total?: null | number;
1178
1206
  };
1207
+ export type CursorPageOfLetterSendingDto = {
1208
+ items: Array<LetterSendingDto>;
1209
+ nextCursor?: null | string;
1210
+ total?: null | number;
1211
+ };
1212
+ export type CursorPageOfLetterSummaryDto = {
1213
+ items: Array<LetterSummaryDto>;
1214
+ nextCursor?: null | string;
1215
+ total?: null | number;
1216
+ };
1179
1217
  export type CursorPageOfListDto = {
1180
1218
  items: Array<ListDto>;
1181
1219
  nextCursor?: null | string;
@@ -1341,11 +1379,6 @@ export type CursorPageOfSearchHistoryDto = {
1341
1379
  nextCursor?: null | string;
1342
1380
  total?: null | number;
1343
1381
  };
1344
- export type CursorPageOfSimilarCompany = {
1345
- items: Array<SimilarCompany>;
1346
- nextCursor?: null | string;
1347
- total?: null | number;
1348
- };
1349
1382
  export type DeletedMeApiKeyDto = {
1350
1383
  id: string;
1351
1384
  };
@@ -1422,6 +1455,7 @@ export type EntityResponseCompanyResponse = {
1422
1455
  websites: Array<string>;
1423
1456
  webPresence?: null | Array<CompanyWebsite>;
1424
1457
  profile?: null | CompanyProfileDto;
1458
+ logo?: null | CompanyLogoDto;
1425
1459
  uidVerifications?: null | Array<CompanyUidVerification>;
1426
1460
  signerCount?: null | number;
1427
1461
  insolvency: CompanyInsolvency;
@@ -1469,6 +1503,7 @@ export type EntitySearchItem = {
1469
1503
  identifiers: Array<RegisterIdentifier>;
1470
1504
  isDeleted?: null | boolean;
1471
1505
  ref?: null | string;
1506
+ match?: null | string;
1472
1507
  };
1473
1508
  export type EntitySearchPage = {
1474
1509
  items: Array<EntitySearchItem>;
@@ -1795,6 +1830,278 @@ export type InsolvencyProceeding = {
1795
1830
  };
1796
1831
  export type InsolvencyProceedingStatus = 'open' | 'closed' | 'uncertain';
1797
1832
  export type InsolvencyProceedingType = 'bankruptcy' | 'restructuringWithSelfAdministration' | 'restructuringWithoutSelfAdministration';
1833
+ export type LetterAttachmentDto = {
1834
+ id: string;
1835
+ fileName: string;
1836
+ pages: number;
1837
+ grayscale: boolean;
1838
+ };
1839
+ export type LetterBlockDto = {
1840
+ kind: string;
1841
+ spans: Array<LetterSpanDto>;
1842
+ number?: null | number;
1843
+ };
1844
+ export type LetterCountDto = {
1845
+ reason: string;
1846
+ count: number;
1847
+ };
1848
+ export type LetterDto = {
1849
+ id: string;
1850
+ /**
1851
+ * draft (nothing went out), running (an ongoing list sends to its new entries), paused (its ongoing lists send nothing until resumed) or sent.
1852
+ */
1853
+ status: string;
1854
+ senderCompanyId?: null | string;
1855
+ senderName?: null | string;
1856
+ subject: string;
1857
+ body: string;
1858
+ qrUrl?: null | string;
1859
+ advertising: boolean;
1860
+ recipients: Array<LetterRecipientDto>;
1861
+ attachments: Array<LetterAttachmentDto>;
1862
+ version: number;
1863
+ creditsPerLetter: number;
1864
+ sheets: number;
1865
+ sentCount: number;
1866
+ /**
1867
+ * Letters Pingen reports as delivered.
1868
+ */
1869
+ deliveredCount: number;
1870
+ queuedCount: number;
1871
+ scannedCount: number;
1872
+ /**
1873
+ * What {{ich.name}} prints: the profile name of who last edited the Brief; it stays while the Brief runs.
1874
+ */
1875
+ authorName?: null | string;
1876
+ createdAt: string;
1877
+ changedAt: string;
1878
+ /**
1879
+ * Running or paused: companies in An without a letter of this Brief yet (picked companies, once lists and lists not yet running). A send reaches only them.
1880
+ */
1881
+ newRecipients?: number;
1882
+ /**
1883
+ * The bold line in the QR field with its variables; null prints „Mehr erfahren“.
1884
+ */
1885
+ qrText?: null | string;
1886
+ };
1887
+ export type LetterPlanDto = {
1888
+ letterId: string;
1889
+ letterSubject: string;
1890
+ senderName?: null | string;
1891
+ sentBy: string;
1892
+ recipients: number;
1893
+ skipped: Array<LetterCountDto>;
1894
+ neutral: Array<LetterCountDto>;
1895
+ fallbacks: Array<LetterCountDto>;
1896
+ sending: number;
1897
+ creditsPerLetter: number;
1898
+ credits: number;
1899
+ fromWeekly: number;
1900
+ fromBalance: number;
1901
+ weeklyLettersLeft: number;
1902
+ balance: number;
1903
+ affordable: boolean;
1904
+ examples: Array<string>;
1905
+ thumbnail?: null | string;
1906
+ /**
1907
+ * Letters of this Brief to lists' new entries that wait for the budget, the workspace limit or credits.
1908
+ */
1909
+ waiting?: number;
1910
+ /**
1911
+ * Lists this send starts Laufend (ongoing): after it every company that enters one gets the Brief, within that list's budget. Lists already running or paused are not counted.
1912
+ */
1913
+ ongoingLists?: number;
1914
+ };
1915
+ export type LetterPreviewDto = {
1916
+ index: number;
1917
+ total: number;
1918
+ companyId?: null | string;
1919
+ companyName?: null | string;
1920
+ sender?: null | LetterSenderDto;
1921
+ addressLines: Array<string>;
1922
+ placeDate: string;
1923
+ subject: Array<LetterSpanDto>;
1924
+ blocks: Array<LetterBlockDto>;
1925
+ qrUrl?: null | string;
1926
+ addressSheet: boolean;
1927
+ salutation?: null | string;
1928
+ neutralReason?: null | string;
1929
+ skipReason?: null | string;
1930
+ pages: number;
1931
+ sheets: number;
1932
+ attachments: number;
1933
+ creditsPerLetter: number;
1934
+ /**
1935
+ * The bold line of the QR field with its values; null without a QR code.
1936
+ */
1937
+ qrText?: null | string;
1938
+ };
1939
+ export type LetterPricesDto = {
1940
+ letter: number;
1941
+ attachment: number;
1942
+ sheet: number;
1943
+ weeklySharePercent: number;
1944
+ };
1945
+ export type LetterRecipientDto = {
1946
+ kind: string;
1947
+ id: string;
1948
+ label: string;
1949
+ count?: null | number;
1950
+ /**
1951
+ * A company's address in one line.
1952
+ */
1953
+ address?: null | string;
1954
+ /**
1955
+ * Lists only: once or ongoing.
1956
+ */
1957
+ mode?: null | string;
1958
+ /**
1959
+ * Lists only: the budget in credits per budgetPeriod; null is none.
1960
+ */
1961
+ budgetCredits?: null | number;
1962
+ /**
1963
+ * Lists only: day, week or month.
1964
+ */
1965
+ budgetPeriod?: null | string;
1966
+ /**
1967
+ * Lists only: queue or drop.
1968
+ */
1969
+ overflow?: null | string;
1970
+ /**
1971
+ * Lists only: the Brief sends to the list's new entries now (an ongoing list after a send).
1972
+ */
1973
+ running?: boolean;
1974
+ /**
1975
+ * Lists only: why sending to new entries is paused: user (paused in the Brief), sender, member or letter.
1976
+ */
1977
+ pausedReason?: null | string;
1978
+ /**
1979
+ * Lists only: letters to the list's new entries charged this week.
1980
+ */
1981
+ sentThisWeek?: number;
1982
+ /**
1983
+ * Lists only: letters to new entries that wait for the budget, the workspace limit or credits.
1984
+ */
1985
+ waiting?: number;
1986
+ /**
1987
+ * Lists only: credits the budget counted in the current period.
1988
+ */
1989
+ budgetUsed?: number;
1990
+ /**
1991
+ * Lists only: when the current budget period ends.
1992
+ */
1993
+ budgetResetsAt?: null | string;
1994
+ };
1995
+ export type LetterRecipientRef = {
1996
+ kind: string;
1997
+ id: string;
1998
+ /**
1999
+ * once (default) or ongoing (also new entries).
2000
+ */
2001
+ mode?: null | string;
2002
+ /**
2003
+ * Credits per budgetPeriod.
2004
+ */
2005
+ budgetCredits?: null | number;
2006
+ /**
2007
+ * day, week or month.
2008
+ */
2009
+ budgetPeriod?: null | string;
2010
+ /**
2011
+ * queue (default) or drop.
2012
+ */
2013
+ overflow?: null | string;
2014
+ };
2015
+ export type LetterRulePayload = {
2016
+ /**
2017
+ * ID of a Brief in this workspace, from list_letters.
2018
+ */
2019
+ letterId: string;
2020
+ /**
2021
+ * Firmenakte-ID of the Absender company, one of get_letter_setup's senders.
2022
+ */
2023
+ senderCompanyId: string;
2024
+ };
2025
+ export type LetterSenderDto = {
2026
+ companyId: string;
2027
+ name: string;
2028
+ addressLines: Array<string>;
2029
+ returnLine: string;
2030
+ footer: string;
2031
+ };
2032
+ export type LetterSenderOptionDto = {
2033
+ companyId: string;
2034
+ name: string;
2035
+ };
2036
+ export type LetterSendingDto = {
2037
+ id: string;
2038
+ letterId: string;
2039
+ letterSubject: string;
2040
+ companyId: string;
2041
+ companyName: string;
2042
+ listId?: null | string;
2043
+ senderCompanyId: string;
2044
+ senderName: string;
2045
+ sentBy: string;
2046
+ salutation?: null | string;
2047
+ status: string;
2048
+ skipReason?: null | string;
2049
+ credits: number;
2050
+ createdAt: string;
2051
+ sentAt?: null | string;
2052
+ hasPdf: boolean;
2053
+ scans: number;
2054
+ firstScannedAt?: null | string;
2055
+ /**
2056
+ * The list rule (sendLetter) that queued it for a new list entry; null for a send of the Brief.
2057
+ */
2058
+ ruleId?: null | string;
2059
+ /**
2060
+ * Why a waiting letter waits: list_budget, workspace_limit or credits.
2061
+ */
2062
+ waitReason?: null | string;
2063
+ };
2064
+ export type LetterSendResultDto = {
2065
+ plan: LetterPlanDto;
2066
+ dryRun: boolean;
2067
+ queued: number;
2068
+ skipped: number;
2069
+ };
2070
+ export type LetterSetupDto = {
2071
+ senders: Array<LetterSenderOptionDto>;
2072
+ noSenderReason?: null | string;
2073
+ variables: Array<LetterVariableDto>;
2074
+ prices: LetterPricesDto;
2075
+ };
2076
+ export type LetterSpanDto = {
2077
+ text: string;
2078
+ bold?: boolean;
2079
+ italic?: boolean;
2080
+ variable?: null | string;
2081
+ fallback?: boolean;
2082
+ };
2083
+ export type LetterSummaryDto = {
2084
+ id: string;
2085
+ subject: string;
2086
+ /**
2087
+ * draft, running, paused or sent.
2088
+ */
2089
+ status: string;
2090
+ attachmentsOnly: boolean;
2091
+ sentCount: number;
2092
+ queuedCount: number;
2093
+ scannedCount: number;
2094
+ changedAt: string;
2095
+ /**
2096
+ * With listId: how this Brief sends to that list, once or ongoing.
2097
+ */
2098
+ listMode?: null | string;
2099
+ };
2100
+ export type LetterVariableDto = {
2101
+ path: string;
2102
+ label: string;
2103
+ group: string;
2104
+ };
1798
2105
  export type ListDto = {
1799
2106
  id: string;
1800
2107
  name: string;
@@ -2378,6 +2685,7 @@ export type PublicCompany = {
2378
2685
  websites: Array<string>;
2379
2686
  webPresence?: null | Array<CompanyWebsite>;
2380
2687
  profile?: null | CompanyProfileDto;
2688
+ logo?: null | CompanyLogoDto;
2381
2689
  uidVerifications?: null | Array<CompanyUidVerification>;
2382
2690
  signerCount?: null | number;
2383
2691
  insolvency: CompanyInsolvency;
@@ -2537,6 +2845,7 @@ export type PublicEntityPublicCompany = {
2537
2845
  websites: Array<string>;
2538
2846
  webPresence?: null | Array<CompanyWebsite>;
2539
2847
  profile?: null | CompanyProfileDto;
2848
+ logo?: null | CompanyLogoDto;
2540
2849
  uidVerifications?: null | Array<CompanyUidVerification>;
2541
2850
  signerCount?: null | number;
2542
2851
  insolvency: CompanyInsolvency;
@@ -3024,7 +3333,9 @@ export type RuleDefinition = ({
3024
3333
  operationId: 'applyListQuery';
3025
3334
  } & RuleDefinitionApplyListQueryDefinition) | ({
3026
3335
  operationId: 'notifyListEntries';
3027
- } & RuleDefinitionNotifyListEntriesDefinition);
3336
+ } & RuleDefinitionNotifyListEntriesDefinition) | ({
3337
+ operationId: 'sendLetter';
3338
+ } & RuleDefinitionSendLetterDefinition);
3028
3339
  export type RuleDefinitionApplyListQueryDefinition = {
3029
3340
  operationId: 'applyListQuery';
3030
3341
  payload: QueryRulePayload;
@@ -3041,6 +3352,14 @@ export type RuleDefinitionNotifyListEntriesDefinition = {
3041
3352
  enabled?: boolean;
3042
3353
  schemaVersion?: 1;
3043
3354
  };
3355
+ export type RuleDefinitionSendLetterDefinition = {
3356
+ operationId: 'sendLetter';
3357
+ payload: LetterRulePayload;
3358
+ triggerPayload?: null | EmptyRuleTrigger;
3359
+ trigger?: 'entry.added';
3360
+ enabled?: boolean;
3361
+ schemaVersion?: 1;
3362
+ };
3044
3363
  export type RuleDto = {
3045
3364
  id: string;
3046
3365
  listId: string;
@@ -3110,6 +3429,9 @@ export type SelectionHandle = {
3110
3429
  count: number;
3111
3430
  expiresAt: string;
3112
3431
  };
3432
+ export type SendLetterBody = {
3433
+ dryRun?: boolean;
3434
+ };
3113
3435
  export type SetEntityValuesDto = {
3114
3436
  /**
3115
3437
  * Workspace field key to a value of its configured type (string, one option, number, ISO date or boolean); null clears.
@@ -3129,12 +3451,7 @@ export type SetNotificationRulesDto = {
3129
3451
  inApp: NotificationRuleSetting;
3130
3452
  email: NotificationRuleSetting;
3131
3453
  };
3132
- export type SimilarCompany = {
3133
- id: string;
3134
- name: string;
3135
- reasons: Array<string>;
3136
- };
3137
- export type SourceKey = 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
3454
+ export type SourceKey = 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
3138
3455
  export type SourceLicense = {
3139
3456
  name: string;
3140
3457
  url?: null | string;
@@ -3261,6 +3578,22 @@ export type UpdateEntryDto = {
3261
3578
  export type UpdateImportDto = {
3262
3579
  rows: Array<ImportChoice>;
3263
3580
  };
3581
+ export type UpdateLetterBody = {
3582
+ senderCompanyId?: null | string;
3583
+ subject?: null | string;
3584
+ body?: null | string;
3585
+ qrUrl?: null | string;
3586
+ /**
3587
+ * The bold line in the QR field; empty removes it, so „Mehr erfahren“ prints.
3588
+ */
3589
+ qrText?: null | string;
3590
+ advertising?: null | boolean;
3591
+ recipients?: null | Array<LetterRecipientRef>;
3592
+ /**
3593
+ * A Brief that runs on lists: true pauses them (new entries get nothing, waiting letters wait), false resumes them for entries from now on; entries added meanwhile get nothing.
3594
+ */
3595
+ paused?: null | boolean;
3596
+ };
3264
3597
  export type UpdateRuleDto = {
3265
3598
  revision: string;
3266
3599
  rule: RuleDefinition;
@@ -4411,7 +4744,7 @@ export type ListRulesData = {
4411
4744
  */
4412
4745
  cursor?: string;
4413
4746
  /**
4414
- * The rule function: applyListQuery or notifyListEntries.
4747
+ * The rule function: applyListQuery, notifyListEntries or sendLetter.
4415
4748
  */
4416
4749
  operationId?: string;
4417
4750
  };
@@ -6985,7 +7318,7 @@ export type ListSourceRecordsData = {
6985
7318
  /**
6986
7319
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
6987
7320
  */
6988
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
7321
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
6989
7322
  };
6990
7323
  query?: {
6991
7324
  /**
@@ -7055,7 +7388,7 @@ export type ListSourceRecordChangesData = {
7055
7388
  /**
7056
7389
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
7057
7390
  */
7058
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
7391
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
7059
7392
  };
7060
7393
  query?: {
7061
7394
  /**
@@ -7125,7 +7458,7 @@ export type GetSourceRecordData = {
7125
7458
  /**
7126
7459
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
7127
7460
  */
7128
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
7461
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
7129
7462
  /**
7130
7463
  * Source record ID returned by this source's records collection; this is not an entity ID.
7131
7464
  */
@@ -7186,7 +7519,7 @@ export type ListRecordObservationsData = {
7186
7519
  /**
7187
7520
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
7188
7521
  */
7189
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
7522
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
7190
7523
  /**
7191
7524
  * Source record ID returned by this source's records collection; this is not an entity ID.
7192
7525
  */
@@ -7627,7 +7960,7 @@ export type GetPublicSourceData = {
7627
7960
  /**
7628
7961
  * Source key from /api/v2/public/sources/catalogue; consult its capabilities before reading records.
7629
7962
  */
7630
- source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap';
7963
+ source: 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims';
7631
7964
  };
7632
7965
  query?: never;
7633
7966
  url: '/api/v2/public/sources/{source}';
@@ -8019,19 +8352,13 @@ export type UpdateDigestSettingsResponses = {
8019
8352
  200: DigestDto;
8020
8353
  };
8021
8354
  export type UpdateDigestSettingsResponse = UpdateDigestSettingsResponses[keyof UpdateDigestSettingsResponses];
8022
- export type GetMeData = {
8355
+ export type GetLetterSetupData = {
8023
8356
  body?: never;
8024
- headers?: {
8025
- /**
8026
- * Optional replay key, retained for 24 hours.
8027
- */
8028
- 'Idempotency-Key'?: string;
8029
- };
8030
8357
  path?: never;
8031
8358
  query?: never;
8032
- url: '/api/v2/me';
8359
+ url: '/api/v2/me/letters/setup';
8033
8360
  };
8034
- export type GetMeErrors = {
8361
+ export type GetLetterSetupErrors = {
8035
8362
  /**
8036
8363
  * Malformed request, or a cursor from another request.
8037
8364
  */
@@ -8065,27 +8392,38 @@ export type GetMeErrors = {
8065
8392
  */
8066
8393
  500: Problem;
8067
8394
  };
8068
- export type GetMeError = GetMeErrors[keyof GetMeErrors];
8069
- export type GetMeResponses = {
8395
+ export type GetLetterSetupError = GetLetterSetupErrors[keyof GetLetterSetupErrors];
8396
+ export type GetLetterSetupResponses = {
8070
8397
  /**
8071
8398
  * OK
8072
8399
  */
8073
- 200: MeDto;
8400
+ 200: LetterSetupDto;
8074
8401
  };
8075
- export type GetMeResponse = GetMeResponses[keyof GetMeResponses];
8076
- export type GetCreditsData = {
8402
+ export type GetLetterSetupResponse = GetLetterSetupResponses[keyof GetLetterSetupResponses];
8403
+ export type ListLettersData = {
8077
8404
  body?: never;
8078
- headers?: {
8405
+ path?: never;
8406
+ query?: {
8079
8407
  /**
8080
- * Optional replay key, retained for 24 hours.
8408
+ * Searches the Betreff.
8081
8409
  */
8082
- 'Idempotency-Key'?: string;
8410
+ q?: string;
8411
+ /**
8412
+ * Page size, default 50, maximum 200.
8413
+ */
8414
+ limit?: number;
8415
+ /**
8416
+ * Opaque cursor from the previous page.
8417
+ */
8418
+ cursor?: string;
8419
+ /**
8420
+ * Only what concerns this list: the Briefe that send to it, or the sendings to companies from it.
8421
+ */
8422
+ listId?: string;
8083
8423
  };
8084
- path?: never;
8085
- query?: never;
8086
- url: '/api/v2/me/credits';
8424
+ url: '/api/v2/me/letters';
8087
8425
  };
8088
- export type GetCreditsErrors = {
8426
+ export type ListLettersErrors = {
8089
8427
  /**
8090
8428
  * Malformed request, or a cursor from another request.
8091
8429
  */
@@ -8119,27 +8457,21 @@ export type GetCreditsErrors = {
8119
8457
  */
8120
8458
  500: Problem;
8121
8459
  };
8122
- export type GetCreditsError = GetCreditsErrors[keyof GetCreditsErrors];
8123
- export type GetCreditsResponses = {
8460
+ export type ListLettersError = ListLettersErrors[keyof ListLettersErrors];
8461
+ export type ListLettersResponses = {
8124
8462
  /**
8125
8463
  * OK
8126
8464
  */
8127
- 200: MeCreditsDto;
8465
+ 200: CursorPageOfLetterSummaryDto;
8128
8466
  };
8129
- export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
8130
- export type ListApiKeysData = {
8131
- body?: never;
8132
- headers?: {
8133
- /**
8134
- * Optional replay key, retained for 24 hours.
8135
- */
8136
- 'Idempotency-Key'?: string;
8137
- };
8467
+ export type ListLettersResponse = ListLettersResponses[keyof ListLettersResponses];
8468
+ export type CreateLetterData = {
8469
+ body: CreateLetterRequest;
8138
8470
  path?: never;
8139
8471
  query?: never;
8140
- url: '/api/v2/me/api-keys';
8472
+ url: '/api/v2/me/letters';
8141
8473
  };
8142
- export type ListApiKeysErrors = {
8474
+ export type CreateLetterErrors = {
8143
8475
  /**
8144
8476
  * Malformed request, or a cursor from another request.
8145
8477
  */
@@ -8173,27 +8505,46 @@ export type ListApiKeysErrors = {
8173
8505
  */
8174
8506
  500: Problem;
8175
8507
  };
8176
- export type ListApiKeysError = ListApiKeysErrors[keyof ListApiKeysErrors];
8177
- export type ListApiKeysResponses = {
8508
+ export type CreateLetterError = CreateLetterErrors[keyof CreateLetterErrors];
8509
+ export type CreateLetterResponses = {
8178
8510
  /**
8179
8511
  * OK
8180
8512
  */
8181
- 200: CursorPageOfMeApiKeyDto;
8513
+ 200: LetterDto;
8182
8514
  };
8183
- export type ListApiKeysResponse = ListApiKeysResponses[keyof ListApiKeysResponses];
8184
- export type CreateApiKeyData = {
8185
- body: CreateMeApiKeyRequest;
8186
- headers?: {
8515
+ export type CreateLetterResponse = CreateLetterResponses[keyof CreateLetterResponses];
8516
+ export type ListLetterSendingsData = {
8517
+ body?: never;
8518
+ path?: never;
8519
+ query?: {
8187
8520
  /**
8188
- * Optional replay key, retained for 24 hours.
8521
+ * Only sendings of this Brief.
8189
8522
  */
8190
- 'Idempotency-Key'?: string;
8523
+ letterId?: string;
8524
+ /**
8525
+ * A recipient's Firmenakte-ID.
8526
+ */
8527
+ companyId?: string;
8528
+ /**
8529
+ * waiting, queued, submitted, sent, undeliverable, skipped or dropped.
8530
+ */
8531
+ status?: string;
8532
+ /**
8533
+ * Page size, default 50, maximum 200.
8534
+ */
8535
+ limit?: number;
8536
+ /**
8537
+ * Opaque cursor from the previous page.
8538
+ */
8539
+ cursor?: string;
8540
+ /**
8541
+ * Only what concerns this list: the Briefe that send to it, or the sendings to companies from it.
8542
+ */
8543
+ listId?: string;
8191
8544
  };
8192
- path?: never;
8193
- query?: never;
8194
- url: '/api/v2/me/api-keys';
8545
+ url: '/api/v2/me/letters/sendings';
8195
8546
  };
8196
- export type CreateApiKeyErrors = {
8547
+ export type ListLetterSendingsErrors = {
8197
8548
  /**
8198
8549
  * Malformed request, or a cursor from another request.
8199
8550
  */
@@ -8227,32 +8578,26 @@ export type CreateApiKeyErrors = {
8227
8578
  */
8228
8579
  500: Problem;
8229
8580
  };
8230
- export type CreateApiKeyError = CreateApiKeyErrors[keyof CreateApiKeyErrors];
8231
- export type CreateApiKeyResponses = {
8581
+ export type ListLetterSendingsError = ListLetterSendingsErrors[keyof ListLetterSendingsErrors];
8582
+ export type ListLetterSendingsResponses = {
8232
8583
  /**
8233
8584
  * OK
8234
8585
  */
8235
- 200: CreatedMeApiKeyDto;
8586
+ 200: CursorPageOfLetterSendingDto;
8236
8587
  };
8237
- export type CreateApiKeyResponse = CreateApiKeyResponses[keyof CreateApiKeyResponses];
8238
- export type DeleteApiKeyData = {
8588
+ export type ListLetterSendingsResponse = ListLetterSendingsResponses[keyof ListLetterSendingsResponses];
8589
+ export type DeleteLetterData = {
8239
8590
  body?: never;
8240
- headers?: {
8241
- /**
8242
- * Optional replay key, retained for 24 hours.
8243
- */
8244
- 'Idempotency-Key'?: string;
8245
- };
8246
8591
  path: {
8247
8592
  /**
8248
- * The API key's public handle, never its secret.
8593
+ * The Brief's ID.
8249
8594
  */
8250
8595
  id: string;
8251
8596
  };
8252
8597
  query?: never;
8253
- url: '/api/v2/me/api-keys/{id}';
8598
+ url: '/api/v2/me/letters/{id}';
8254
8599
  };
8255
- export type DeleteApiKeyErrors = {
8600
+ export type DeleteLetterErrors = {
8256
8601
  /**
8257
8602
  * Malformed request, or a cursor from another request.
8258
8603
  */
@@ -8286,42 +8631,652 @@ export type DeleteApiKeyErrors = {
8286
8631
  */
8287
8632
  500: Problem;
8288
8633
  };
8289
- export type DeleteApiKeyError = DeleteApiKeyErrors[keyof DeleteApiKeyErrors];
8290
- export type DeleteApiKeyResponses = {
8634
+ export type DeleteLetterError = DeleteLetterErrors[keyof DeleteLetterErrors];
8635
+ export type DeleteLetterResponses = {
8291
8636
  /**
8292
8637
  * OK
8293
8638
  */
8294
- 200: DeletedMeApiKeyDto;
8639
+ 200: LetterDto;
8295
8640
  };
8296
- export type DeleteApiKeyResponse = DeleteApiKeyResponses[keyof DeleteApiKeyResponses];
8297
- export type ListPublicCompanyTimelineData = {
8641
+ export type DeleteLetterResponse = DeleteLetterResponses[keyof DeleteLetterResponses];
8642
+ export type GetLetterData = {
8298
8643
  body?: never;
8299
- headers?: {
8300
- /**
8301
- * ETag from a previous read. A match returns a free 304.
8302
- */
8303
- 'If-None-Match'?: string;
8304
- /**
8305
- * Optional replay key, retained for 24 hours. Replays are free.
8306
- */
8307
- 'Idempotency-Key'?: string;
8308
- };
8309
8644
  path: {
8310
8645
  /**
8311
- * Firmenakte-ID (compact or hyphenated, including merged IDs), scheme:value register alias, or a bare Firmenbuchnummer. Resolves to the canonical visible record without redirects.
8646
+ * The Brief's ID.
8312
8647
  */
8313
- id: AkteId;
8648
+ id: string;
8314
8649
  };
8315
- query?: {
8316
- /**
8317
- * Page size, default 25, minimum 1, maximum 100. Values outside this range return 422.
8318
- */
8319
- limit?: number;
8320
- /**
8321
- * Opaque cursor from the previous page. Expires after 24 hours.
8322
- */
8323
- cursor?: string;
8324
- /**
8650
+ query?: never;
8651
+ url: '/api/v2/me/letters/{id}';
8652
+ };
8653
+ export type GetLetterErrors = {
8654
+ /**
8655
+ * Malformed request, or a cursor from another request.
8656
+ */
8657
+ 400: Problem;
8658
+ /**
8659
+ * No valid API key or session.
8660
+ */
8661
+ 401: Problem;
8662
+ /**
8663
+ * This operation needs a dashboard session.
8664
+ */
8665
+ 403: Problem;
8666
+ /**
8667
+ * Not found, or it belongs to another workspace.
8668
+ */
8669
+ 404: Problem;
8670
+ /**
8671
+ * Conflict with the current state; `code` says which.
8672
+ */
8673
+ 409: Problem;
8674
+ /**
8675
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
8676
+ */
8677
+ 422: Problem;
8678
+ /**
8679
+ * Too many requests; retry after `Retry-After`.
8680
+ */
8681
+ 429: Problem;
8682
+ /**
8683
+ * Internal error; quote `requestId` to support.
8684
+ */
8685
+ 500: Problem;
8686
+ };
8687
+ export type GetLetterError = GetLetterErrors[keyof GetLetterErrors];
8688
+ export type GetLetterResponses = {
8689
+ /**
8690
+ * OK
8691
+ */
8692
+ 200: LetterDto;
8693
+ };
8694
+ export type GetLetterResponse = GetLetterResponses[keyof GetLetterResponses];
8695
+ export type UpdateLetterData = {
8696
+ body: UpdateLetterBody;
8697
+ path: {
8698
+ /**
8699
+ * The Brief's ID.
8700
+ */
8701
+ id: string;
8702
+ };
8703
+ query?: never;
8704
+ url: '/api/v2/me/letters/{id}';
8705
+ };
8706
+ export type UpdateLetterErrors = {
8707
+ /**
8708
+ * Malformed request, or a cursor from another request.
8709
+ */
8710
+ 400: Problem;
8711
+ /**
8712
+ * No valid API key or session.
8713
+ */
8714
+ 401: Problem;
8715
+ /**
8716
+ * This operation needs a dashboard session.
8717
+ */
8718
+ 403: Problem;
8719
+ /**
8720
+ * Not found, or it belongs to another workspace.
8721
+ */
8722
+ 404: Problem;
8723
+ /**
8724
+ * Conflict with the current state; `code` says which.
8725
+ */
8726
+ 409: Problem;
8727
+ /**
8728
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
8729
+ */
8730
+ 422: Problem;
8731
+ /**
8732
+ * Too many requests; retry after `Retry-After`.
8733
+ */
8734
+ 429: Problem;
8735
+ /**
8736
+ * Internal error; quote `requestId` to support.
8737
+ */
8738
+ 500: Problem;
8739
+ };
8740
+ export type UpdateLetterError = UpdateLetterErrors[keyof UpdateLetterErrors];
8741
+ export type UpdateLetterResponses = {
8742
+ /**
8743
+ * OK
8744
+ */
8745
+ 200: LetterDto;
8746
+ };
8747
+ export type UpdateLetterResponse = UpdateLetterResponses[keyof UpdateLetterResponses];
8748
+ export type AddLetterAttachmentData = {
8749
+ body: AddLetterAttachmentBody;
8750
+ path: {
8751
+ /**
8752
+ * The Brief's ID.
8753
+ */
8754
+ id: string;
8755
+ };
8756
+ query?: never;
8757
+ url: '/api/v2/me/letters/{id}/attachments';
8758
+ };
8759
+ export type AddLetterAttachmentErrors = {
8760
+ /**
8761
+ * Malformed request, or a cursor from another request.
8762
+ */
8763
+ 400: Problem;
8764
+ /**
8765
+ * No valid API key or session.
8766
+ */
8767
+ 401: Problem;
8768
+ /**
8769
+ * This operation needs a dashboard session.
8770
+ */
8771
+ 403: Problem;
8772
+ /**
8773
+ * Not found, or it belongs to another workspace.
8774
+ */
8775
+ 404: Problem;
8776
+ /**
8777
+ * Conflict with the current state; `code` says which.
8778
+ */
8779
+ 409: Problem;
8780
+ /**
8781
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
8782
+ */
8783
+ 422: Problem;
8784
+ /**
8785
+ * Too many requests; retry after `Retry-After`.
8786
+ */
8787
+ 429: Problem;
8788
+ /**
8789
+ * Internal error; quote `requestId` to support.
8790
+ */
8791
+ 500: Problem;
8792
+ };
8793
+ export type AddLetterAttachmentError = AddLetterAttachmentErrors[keyof AddLetterAttachmentErrors];
8794
+ export type AddLetterAttachmentResponses = {
8795
+ /**
8796
+ * OK
8797
+ */
8798
+ 200: LetterDto;
8799
+ };
8800
+ export type AddLetterAttachmentResponse = AddLetterAttachmentResponses[keyof AddLetterAttachmentResponses];
8801
+ export type RemoveLetterAttachmentData = {
8802
+ body?: never;
8803
+ path: {
8804
+ /**
8805
+ * The Brief's ID.
8806
+ */
8807
+ id: string;
8808
+ /**
8809
+ * The attachment's ID.
8810
+ */
8811
+ attachmentId: string;
8812
+ };
8813
+ query?: never;
8814
+ url: '/api/v2/me/letters/{id}/attachments/{attachmentId}';
8815
+ };
8816
+ export type RemoveLetterAttachmentErrors = {
8817
+ /**
8818
+ * Malformed request, or a cursor from another request.
8819
+ */
8820
+ 400: Problem;
8821
+ /**
8822
+ * No valid API key or session.
8823
+ */
8824
+ 401: Problem;
8825
+ /**
8826
+ * This operation needs a dashboard session.
8827
+ */
8828
+ 403: Problem;
8829
+ /**
8830
+ * Not found, or it belongs to another workspace.
8831
+ */
8832
+ 404: Problem;
8833
+ /**
8834
+ * Conflict with the current state; `code` says which.
8835
+ */
8836
+ 409: Problem;
8837
+ /**
8838
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
8839
+ */
8840
+ 422: Problem;
8841
+ /**
8842
+ * Too many requests; retry after `Retry-After`.
8843
+ */
8844
+ 429: Problem;
8845
+ /**
8846
+ * Internal error; quote `requestId` to support.
8847
+ */
8848
+ 500: Problem;
8849
+ };
8850
+ export type RemoveLetterAttachmentError = RemoveLetterAttachmentErrors[keyof RemoveLetterAttachmentErrors];
8851
+ export type RemoveLetterAttachmentResponses = {
8852
+ /**
8853
+ * OK
8854
+ */
8855
+ 200: LetterDto;
8856
+ };
8857
+ export type RemoveLetterAttachmentResponse = RemoveLetterAttachmentResponses[keyof RemoveLetterAttachmentResponses];
8858
+ export type PreviewLetterData = {
8859
+ body?: never;
8860
+ path: {
8861
+ /**
8862
+ * The Brief's ID.
8863
+ */
8864
+ id: string;
8865
+ };
8866
+ query?: {
8867
+ /**
8868
+ * A recipient's Firmenakte-ID.
8869
+ */
8870
+ companyId?: string;
8871
+ /**
8872
+ * Position among the recipients, 0 first.
8873
+ */
8874
+ index?: number;
8875
+ };
8876
+ url: '/api/v2/me/letters/{id}/preview';
8877
+ };
8878
+ export type PreviewLetterErrors = {
8879
+ /**
8880
+ * Malformed request, or a cursor from another request.
8881
+ */
8882
+ 400: Problem;
8883
+ /**
8884
+ * No valid API key or session.
8885
+ */
8886
+ 401: Problem;
8887
+ /**
8888
+ * This operation needs a dashboard session.
8889
+ */
8890
+ 403: Problem;
8891
+ /**
8892
+ * Not found, or it belongs to another workspace.
8893
+ */
8894
+ 404: Problem;
8895
+ /**
8896
+ * Conflict with the current state; `code` says which.
8897
+ */
8898
+ 409: Problem;
8899
+ /**
8900
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
8901
+ */
8902
+ 422: Problem;
8903
+ /**
8904
+ * Too many requests; retry after `Retry-After`.
8905
+ */
8906
+ 429: Problem;
8907
+ /**
8908
+ * Internal error; quote `requestId` to support.
8909
+ */
8910
+ 500: Problem;
8911
+ };
8912
+ export type PreviewLetterError = PreviewLetterErrors[keyof PreviewLetterErrors];
8913
+ export type PreviewLetterResponses = {
8914
+ /**
8915
+ * OK
8916
+ */
8917
+ 200: LetterPreviewDto;
8918
+ };
8919
+ export type PreviewLetterResponse = PreviewLetterResponses[keyof PreviewLetterResponses];
8920
+ export type CreateLetterSendingsData = {
8921
+ body: SendLetterBody;
8922
+ path: {
8923
+ /**
8924
+ * The Brief's ID.
8925
+ */
8926
+ id: string;
8927
+ };
8928
+ query?: never;
8929
+ url: '/api/v2/me/letters/{id}/send';
8930
+ };
8931
+ export type CreateLetterSendingsErrors = {
8932
+ /**
8933
+ * Malformed request, or a cursor from another request.
8934
+ */
8935
+ 400: Problem;
8936
+ /**
8937
+ * No valid API key or session.
8938
+ */
8939
+ 401: Problem;
8940
+ /**
8941
+ * Not enough credits for this call.
8942
+ */
8943
+ 402: Problem;
8944
+ /**
8945
+ * This operation needs a dashboard session.
8946
+ */
8947
+ 403: Problem;
8948
+ /**
8949
+ * Not found, or it belongs to another workspace.
8950
+ */
8951
+ 404: Problem;
8952
+ /**
8953
+ * Conflict with the current state; `code` says which.
8954
+ */
8955
+ 409: Problem;
8956
+ /**
8957
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
8958
+ */
8959
+ 422: Problem;
8960
+ /**
8961
+ * Too many requests; retry after `Retry-After`.
8962
+ */
8963
+ 429: Problem;
8964
+ /**
8965
+ * Internal error; quote `requestId` to support.
8966
+ */
8967
+ 500: Problem;
8968
+ };
8969
+ export type CreateLetterSendingsError = CreateLetterSendingsErrors[keyof CreateLetterSendingsErrors];
8970
+ export type CreateLetterSendingsResponses = {
8971
+ /**
8972
+ * OK
8973
+ */
8974
+ 200: LetterSendResultDto;
8975
+ };
8976
+ export type CreateLetterSendingsResponse = CreateLetterSendingsResponses[keyof CreateLetterSendingsResponses];
8977
+ export type GetMeData = {
8978
+ body?: never;
8979
+ headers?: {
8980
+ /**
8981
+ * Optional replay key, retained for 24 hours.
8982
+ */
8983
+ 'Idempotency-Key'?: string;
8984
+ };
8985
+ path?: never;
8986
+ query?: never;
8987
+ url: '/api/v2/me';
8988
+ };
8989
+ export type GetMeErrors = {
8990
+ /**
8991
+ * Malformed request, or a cursor from another request.
8992
+ */
8993
+ 400: Problem;
8994
+ /**
8995
+ * No valid API key or session.
8996
+ */
8997
+ 401: Problem;
8998
+ /**
8999
+ * This operation needs a dashboard session.
9000
+ */
9001
+ 403: Problem;
9002
+ /**
9003
+ * Not found, or it belongs to another workspace.
9004
+ */
9005
+ 404: Problem;
9006
+ /**
9007
+ * Conflict with the current state; `code` says which.
9008
+ */
9009
+ 409: Problem;
9010
+ /**
9011
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9012
+ */
9013
+ 422: Problem;
9014
+ /**
9015
+ * Too many requests; retry after `Retry-After`.
9016
+ */
9017
+ 429: Problem;
9018
+ /**
9019
+ * Internal error; quote `requestId` to support.
9020
+ */
9021
+ 500: Problem;
9022
+ };
9023
+ export type GetMeError = GetMeErrors[keyof GetMeErrors];
9024
+ export type GetMeResponses = {
9025
+ /**
9026
+ * OK
9027
+ */
9028
+ 200: MeDto;
9029
+ };
9030
+ export type GetMeResponse = GetMeResponses[keyof GetMeResponses];
9031
+ export type GetCreditsData = {
9032
+ body?: never;
9033
+ headers?: {
9034
+ /**
9035
+ * Optional replay key, retained for 24 hours.
9036
+ */
9037
+ 'Idempotency-Key'?: string;
9038
+ };
9039
+ path?: never;
9040
+ query?: never;
9041
+ url: '/api/v2/me/credits';
9042
+ };
9043
+ export type GetCreditsErrors = {
9044
+ /**
9045
+ * Malformed request, or a cursor from another request.
9046
+ */
9047
+ 400: Problem;
9048
+ /**
9049
+ * No valid API key or session.
9050
+ */
9051
+ 401: Problem;
9052
+ /**
9053
+ * This operation needs a dashboard session.
9054
+ */
9055
+ 403: Problem;
9056
+ /**
9057
+ * Not found, or it belongs to another workspace.
9058
+ */
9059
+ 404: Problem;
9060
+ /**
9061
+ * Conflict with the current state; `code` says which.
9062
+ */
9063
+ 409: Problem;
9064
+ /**
9065
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9066
+ */
9067
+ 422: Problem;
9068
+ /**
9069
+ * Too many requests; retry after `Retry-After`.
9070
+ */
9071
+ 429: Problem;
9072
+ /**
9073
+ * Internal error; quote `requestId` to support.
9074
+ */
9075
+ 500: Problem;
9076
+ };
9077
+ export type GetCreditsError = GetCreditsErrors[keyof GetCreditsErrors];
9078
+ export type GetCreditsResponses = {
9079
+ /**
9080
+ * OK
9081
+ */
9082
+ 200: MeCreditsDto;
9083
+ };
9084
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
9085
+ export type ListApiKeysData = {
9086
+ body?: never;
9087
+ headers?: {
9088
+ /**
9089
+ * Optional replay key, retained for 24 hours.
9090
+ */
9091
+ 'Idempotency-Key'?: string;
9092
+ };
9093
+ path?: never;
9094
+ query?: never;
9095
+ url: '/api/v2/me/api-keys';
9096
+ };
9097
+ export type ListApiKeysErrors = {
9098
+ /**
9099
+ * Malformed request, or a cursor from another request.
9100
+ */
9101
+ 400: Problem;
9102
+ /**
9103
+ * No valid API key or session.
9104
+ */
9105
+ 401: Problem;
9106
+ /**
9107
+ * This operation needs a dashboard session.
9108
+ */
9109
+ 403: Problem;
9110
+ /**
9111
+ * Not found, or it belongs to another workspace.
9112
+ */
9113
+ 404: Problem;
9114
+ /**
9115
+ * Conflict with the current state; `code` says which.
9116
+ */
9117
+ 409: Problem;
9118
+ /**
9119
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9120
+ */
9121
+ 422: Problem;
9122
+ /**
9123
+ * Too many requests; retry after `Retry-After`.
9124
+ */
9125
+ 429: Problem;
9126
+ /**
9127
+ * Internal error; quote `requestId` to support.
9128
+ */
9129
+ 500: Problem;
9130
+ };
9131
+ export type ListApiKeysError = ListApiKeysErrors[keyof ListApiKeysErrors];
9132
+ export type ListApiKeysResponses = {
9133
+ /**
9134
+ * OK
9135
+ */
9136
+ 200: CursorPageOfMeApiKeyDto;
9137
+ };
9138
+ export type ListApiKeysResponse = ListApiKeysResponses[keyof ListApiKeysResponses];
9139
+ export type CreateApiKeyData = {
9140
+ body: CreateMeApiKeyRequest;
9141
+ headers?: {
9142
+ /**
9143
+ * Optional replay key, retained for 24 hours.
9144
+ */
9145
+ 'Idempotency-Key'?: string;
9146
+ };
9147
+ path?: never;
9148
+ query?: never;
9149
+ url: '/api/v2/me/api-keys';
9150
+ };
9151
+ export type CreateApiKeyErrors = {
9152
+ /**
9153
+ * Malformed request, or a cursor from another request.
9154
+ */
9155
+ 400: Problem;
9156
+ /**
9157
+ * No valid API key or session.
9158
+ */
9159
+ 401: Problem;
9160
+ /**
9161
+ * This operation needs a dashboard session.
9162
+ */
9163
+ 403: Problem;
9164
+ /**
9165
+ * Not found, or it belongs to another workspace.
9166
+ */
9167
+ 404: Problem;
9168
+ /**
9169
+ * Conflict with the current state; `code` says which.
9170
+ */
9171
+ 409: Problem;
9172
+ /**
9173
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9174
+ */
9175
+ 422: Problem;
9176
+ /**
9177
+ * Too many requests; retry after `Retry-After`.
9178
+ */
9179
+ 429: Problem;
9180
+ /**
9181
+ * Internal error; quote `requestId` to support.
9182
+ */
9183
+ 500: Problem;
9184
+ };
9185
+ export type CreateApiKeyError = CreateApiKeyErrors[keyof CreateApiKeyErrors];
9186
+ export type CreateApiKeyResponses = {
9187
+ /**
9188
+ * OK
9189
+ */
9190
+ 200: CreatedMeApiKeyDto;
9191
+ };
9192
+ export type CreateApiKeyResponse = CreateApiKeyResponses[keyof CreateApiKeyResponses];
9193
+ export type DeleteApiKeyData = {
9194
+ body?: never;
9195
+ headers?: {
9196
+ /**
9197
+ * Optional replay key, retained for 24 hours.
9198
+ */
9199
+ 'Idempotency-Key'?: string;
9200
+ };
9201
+ path: {
9202
+ /**
9203
+ * The API key's public handle, never its secret.
9204
+ */
9205
+ id: string;
9206
+ };
9207
+ query?: never;
9208
+ url: '/api/v2/me/api-keys/{id}';
9209
+ };
9210
+ export type DeleteApiKeyErrors = {
9211
+ /**
9212
+ * Malformed request, or a cursor from another request.
9213
+ */
9214
+ 400: Problem;
9215
+ /**
9216
+ * No valid API key or session.
9217
+ */
9218
+ 401: Problem;
9219
+ /**
9220
+ * This operation needs a dashboard session.
9221
+ */
9222
+ 403: Problem;
9223
+ /**
9224
+ * Not found, or it belongs to another workspace.
9225
+ */
9226
+ 404: Problem;
9227
+ /**
9228
+ * Conflict with the current state; `code` says which.
9229
+ */
9230
+ 409: Problem;
9231
+ /**
9232
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9233
+ */
9234
+ 422: Problem;
9235
+ /**
9236
+ * Too many requests; retry after `Retry-After`.
9237
+ */
9238
+ 429: Problem;
9239
+ /**
9240
+ * Internal error; quote `requestId` to support.
9241
+ */
9242
+ 500: Problem;
9243
+ };
9244
+ export type DeleteApiKeyError = DeleteApiKeyErrors[keyof DeleteApiKeyErrors];
9245
+ export type DeleteApiKeyResponses = {
9246
+ /**
9247
+ * OK
9248
+ */
9249
+ 200: DeletedMeApiKeyDto;
9250
+ };
9251
+ export type DeleteApiKeyResponse = DeleteApiKeyResponses[keyof DeleteApiKeyResponses];
9252
+ export type ListPublicCompanyTimelineData = {
9253
+ body?: never;
9254
+ headers?: {
9255
+ /**
9256
+ * ETag from a previous read. A match returns a free 304.
9257
+ */
9258
+ 'If-None-Match'?: string;
9259
+ /**
9260
+ * Optional replay key, retained for 24 hours. Replays are free.
9261
+ */
9262
+ 'Idempotency-Key'?: string;
9263
+ };
9264
+ path: {
9265
+ /**
9266
+ * Firmenakte-ID (compact or hyphenated, including merged IDs), scheme:value register alias, or a bare Firmenbuchnummer. Resolves to the canonical visible record without redirects.
9267
+ */
9268
+ id: AkteId;
9269
+ };
9270
+ query?: {
9271
+ /**
9272
+ * Page size, default 25, minimum 1, maximum 100. Values outside this range return 422.
9273
+ */
9274
+ limit?: number;
9275
+ /**
9276
+ * Opaque cursor from the previous page. Expires after 24 hours.
9277
+ */
9278
+ cursor?: string;
9279
+ /**
8325
9280
  * Optional comma-separated sections: firmenbuch, annual-accounts, ediktsdatei, gisa, bmf-scheinunternehmen, funding (evi is accepted and holds no entries). Omitted: every section. Keep it unchanged while continuing a cursor.
8326
9281
  */
8327
9282
  section?: string;
@@ -15533,166 +16488,6 @@ export type GetCompanyNetworkResponses = {
15533
16488
  200: CompanyNetworkResponse;
15534
16489
  };
15535
16490
  export type GetCompanyNetworkResponse = GetCompanyNetworkResponses[keyof GetCompanyNetworkResponses];
15536
- export type ListSimilarCompaniesData = {
15537
- body?: never;
15538
- headers?: {
15539
- /**
15540
- * ETag from a previous read. A match returns a free 304.
15541
- */
15542
- 'If-None-Match'?: string;
15543
- /**
15544
- * Optional replay key, retained for 24 hours. Replays are free.
15545
- */
15546
- 'Idempotency-Key'?: string;
15547
- };
15548
- path: {
15549
- /**
15550
- * Firmenakte-ID (compact or hyphenated, including merged IDs), scheme:value register alias, or a bare Firmenbuchnummer. Resolves to the canonical visible record without redirects.
15551
- */
15552
- id: AkteId;
15553
- };
15554
- query?: {
15555
- /**
15556
- * Page size; default 25, maximum 100. Zero returns the count.
15557
- */
15558
- limit?: number;
15559
- /**
15560
- * Opaque cursor from the previous page. Expires after 24 hours.
15561
- */
15562
- cursor?: string;
15563
- /**
15564
- * Has no effect on this collection.
15565
- */
15566
- current?: boolean;
15567
- };
15568
- url: '/api/v2/companies/{id}/similar';
15569
- };
15570
- export type ListSimilarCompaniesErrors = {
15571
- /**
15572
- * Malformed request, or a cursor from another request.
15573
- */
15574
- 400: Problem;
15575
- /**
15576
- * No valid API key or session.
15577
- */
15578
- 401: Problem;
15579
- /**
15580
- * Not enough credits for this call.
15581
- */
15582
- 402: Problem;
15583
- /**
15584
- * Not found, or it belongs to another workspace.
15585
- */
15586
- 404: Problem;
15587
- /**
15588
- * Conflict with the current state; `code` says which.
15589
- */
15590
- 409: Problem;
15591
- /**
15592
- * Erased or expired.
15593
- */
15594
- 410: Problem;
15595
- /**
15596
- * Validation failed; `errors[]` names each parameter or JSON pointer.
15597
- */
15598
- 422: Problem;
15599
- /**
15600
- * Too many requests; retry after `Retry-After`.
15601
- */
15602
- 429: Problem;
15603
- /**
15604
- * Internal error; quote `requestId` to support.
15605
- */
15606
- 500: Problem;
15607
- };
15608
- export type ListSimilarCompaniesError = ListSimilarCompaniesErrors[keyof ListSimilarCompaniesErrors];
15609
- export type ListSimilarCompaniesResponses = {
15610
- /**
15611
- * OK
15612
- */
15613
- 200: CursorPageOfSimilarCompany;
15614
- };
15615
- export type ListSimilarCompaniesResponse = ListSimilarCompaniesResponses[keyof ListSimilarCompaniesResponses];
15616
- export type ListPublicSimilarCompaniesData = {
15617
- body?: never;
15618
- headers?: {
15619
- /**
15620
- * ETag from a previous read. A match returns a free 304.
15621
- */
15622
- 'If-None-Match'?: string;
15623
- /**
15624
- * Optional replay key, retained for 24 hours. Replays are free.
15625
- */
15626
- 'Idempotency-Key'?: string;
15627
- };
15628
- path: {
15629
- /**
15630
- * Firmenakte-ID (compact or hyphenated, including merged IDs), scheme:value register alias, or a bare Firmenbuchnummer. Resolves to the canonical visible record without redirects.
15631
- */
15632
- id: AkteId;
15633
- };
15634
- query?: {
15635
- /**
15636
- * Page size, default 25, minimum 1, maximum 100. Values outside this range return 422.
15637
- */
15638
- limit?: number;
15639
- /**
15640
- * Opaque cursor from the previous page. Expires after 24 hours.
15641
- */
15642
- cursor?: string;
15643
- /**
15644
- * Has no effect on this collection.
15645
- */
15646
- current?: boolean;
15647
- };
15648
- url: '/api/v2/public/entities/companies/{id}/similar';
15649
- };
15650
- export type ListPublicSimilarCompaniesErrors = {
15651
- /**
15652
- * Malformed request, or a cursor from another request.
15653
- */
15654
- 400: Problem;
15655
- /**
15656
- * No valid API key or session.
15657
- */
15658
- 401: Problem;
15659
- /**
15660
- * Not enough credits for this call.
15661
- */
15662
- 402: Problem;
15663
- /**
15664
- * Not found, or it belongs to another workspace.
15665
- */
15666
- 404: Problem;
15667
- /**
15668
- * Conflict with the current state; `code` says which.
15669
- */
15670
- 409: Problem;
15671
- /**
15672
- * Erased or expired.
15673
- */
15674
- 410: Problem;
15675
- /**
15676
- * Validation failed; `errors[]` names each parameter or JSON pointer.
15677
- */
15678
- 422: Problem;
15679
- /**
15680
- * Too many requests; retry after `Retry-After`.
15681
- */
15682
- 429: Problem;
15683
- /**
15684
- * Internal error; quote `requestId` to support.
15685
- */
15686
- 500: Problem;
15687
- };
15688
- export type ListPublicSimilarCompaniesError = ListPublicSimilarCompaniesErrors[keyof ListPublicSimilarCompaniesErrors];
15689
- export type ListPublicSimilarCompaniesResponses = {
15690
- /**
15691
- * OK
15692
- */
15693
- 200: CursorPageOfSimilarCompany;
15694
- };
15695
- export type ListPublicSimilarCompaniesResponse = ListPublicSimilarCompaniesResponses[keyof ListPublicSimilarCompaniesResponses];
15696
16491
  export type ListChangesData = {
15697
16492
  body?: never;
15698
16493
  headers?: {