@firmenakte/api-client 2.44.0 → 2.46.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.
@@ -393,13 +393,9 @@ export type BankMatchDto = {
393
393
  };
394
394
  export type BankSettingsDto = {
395
395
  /**
396
- * Ask the AI for bookings no rule assigns.
396
+ * The KI-Abgleich. aus: no AI, nothing taken over; pruefen: the AI proposes too, every hit waits for a person; sicher: a sure hit of a rule or the AI is taken over (and can be undone). The rules propose in every mode.
397
397
  */
398
- aiMatch: boolean;
399
- /**
400
- * sicher: a sure hit of a rule or the AI is taken over (and can be undone); nie: every hit waits for a person.
401
- */
402
- autoAccept: string;
398
+ mode: string;
403
399
  };
404
400
  export type BankTransactionDto = {
405
401
  id: string;
@@ -512,7 +508,7 @@ export type BillingDocumentDto = {
512
508
  */
513
509
  via: string;
514
510
  /**
515
- * pending, read, unread (not enough credits; read again later), failed, or given (came with its data).
511
+ * pending, read, unread (the Buchhaltung was off; read again later), failed, given (came with its data), or waiting (the month's Belege are read and the Guthaben does not pay one more; read on the 1st, after an upgrade or a top-up, oldest first).
516
512
  */
517
513
  readStatus: string;
518
514
  readError?: null | string;
@@ -618,7 +614,7 @@ export type BillingEmailDto = {
618
614
  };
619
615
  export type BillingExportDto = {
620
616
  /**
621
- * The period: YYYY-MM or YYYY-Qn.
617
+ * The period: YYYY-MM, YYYY-Qn or YYYY.
622
618
  */
623
619
  period: string;
624
620
  /**
@@ -647,6 +643,14 @@ export type BillingExportDto = {
647
643
  * When it was first downloaded.
648
644
  */
649
645
  downloadedAt?: null | string;
646
+ /**
647
+ * Issued invoices and receipts in it without a Sachkonto: missing from the DATEV Buchungsstapel.
648
+ */
649
+ unaccountedCount?: number;
650
+ /**
651
+ * Of the documents, the invoices the workspace issued; the rest are receipts.
652
+ */
653
+ invoiceCount?: number;
650
654
  };
651
655
  export type BillingListsDto = {
652
656
  partners: string;
@@ -657,6 +661,54 @@ export type BillingListsDto = {
657
661
  */
658
662
  incoming?: null | string;
659
663
  };
664
+ export type BillingMailAddressDto = {
665
+ /**
666
+ * receipts (the Belege-Adresse).
667
+ */
668
+ kind: string;
669
+ label: string;
670
+ /**
671
+ * The address; null for a Belege-Adresse not made yet.
672
+ */
673
+ address?: null | string;
674
+ description: string;
675
+ /**
676
+ * Belege are taken from its mail.
677
+ */
678
+ checked?: boolean;
679
+ };
680
+ export type BillingMailBody = {
681
+ /**
682
+ * member or address (with invoiceReplyAddress).
683
+ */
684
+ invoiceReplyTo?: null | string;
685
+ /**
686
+ * The address replies go to, with invoiceReplyTo address.
687
+ */
688
+ invoiceReplyAddress?: null | string;
689
+ /**
690
+ * The kinds of the addresses Belege are taken from: receipts (the Belege-Adresse); empty takes none.
691
+ */
692
+ receiptSources?: null | Array<string>;
693
+ };
694
+ export type BillingMailDto = {
695
+ /**
696
+ * Where replies to invoice mails go (their Reply-To; they are always sent by Firmenakte): member (the sending member's own address, the default) or address (invoiceReplyAddress). Null where this server sends no invoice mails.
697
+ */
698
+ invoiceReplyTo?: null | string;
699
+ /**
700
+ * The address replies go to with invoiceReplyTo address.
701
+ */
702
+ invoiceReplyAddress?: null | string;
703
+ /**
704
+ * The addresses Belege may be taken from, those ticked with checked; by default the Belege-Adresse.
705
+ */
706
+ receiptSources: Array<BillingMailAddressDto>;
707
+ /**
708
+ * Whether the plan allows an own address (invoiceReplyTo address); the free plan does not.
709
+ */
710
+ ownAddresses?: boolean;
711
+ };
660
712
  export type BillingMonthDto = {
661
713
  /**
662
714
  * The month, YYYY-MM.
@@ -703,6 +755,30 @@ export type BillingNumbersDto = {
703
755
  */
704
756
  addressField?: null | string;
705
757
  };
758
+ export type BillingPartnerDefaultsDto = {
759
+ /**
760
+ * A company's or person's Firmenakte-ID, or an own entry's ID.
761
+ */
762
+ id: string;
763
+ /**
764
+ * Rechnungs-E-Mail: where invoices to him are sent by e-mail.
765
+ */
766
+ email?: null | string;
767
+ address?: null | InvoiceCustomer;
768
+ known?: null | InvoiceCustomer;
769
+ /**
770
+ * register, ownRecord or none.
771
+ */
772
+ knownSource: string;
773
+ /**
774
+ * His Zahlungsziel in days; empty takes the Absender's.
775
+ */
776
+ paymentDays?: null | number;
777
+ /**
778
+ * The Absender's Zahlungsziel in days, which applies without his own.
779
+ */
780
+ senderPaymentDays: number;
781
+ };
706
782
  export type BillingPartnerDto = {
707
783
  /**
708
784
  * company, person or ownRecord.
@@ -751,14 +827,14 @@ export type BillingPartnerDto = {
751
827
  export type BillingSenderDto = {
752
828
  id: string;
753
829
  /**
754
- * company (released Firmenbuch company) or details (Rechnungsdaten ohne Firma).
830
+ * company (the Unternehmen with a register entry) or details (an Unternehmen without one).
755
831
  */
756
832
  kind: string;
757
833
  name: string;
758
834
  address?: null | string;
759
835
  uid?: null | string;
760
836
  /**
761
- * details only: none, pending, verified, rejected or revoked. Sending by e-mail or post needs verified.
837
+ * details only: the member's verification, none, pending or verified. Sending by e-mail or post needs verified.
762
838
  */
763
839
  verification?: null | string;
764
840
  /**
@@ -767,14 +843,32 @@ export type BillingSenderDto = {
767
843
  iban?: null | string;
768
844
  bic?: null | string;
769
845
  paymentDays: number;
846
+ /**
847
+ * Superseded by numberPattern: its text before the first variable, RE- of RE-{Jahr}-{Nummer}.
848
+ */
770
849
  prefix: string;
771
850
  /**
772
- * The number the next invoice of this Absender gets.
851
+ * The number the next invoice of this Absender dated today gets.
773
852
  */
774
853
  nextNumber: string;
854
+ /**
855
+ * Its running number ({Nummer}) in the current period.
856
+ */
775
857
  nextSequence: number;
776
858
  footer?: null | string;
777
859
  smallBusiness: boolean;
860
+ /**
861
+ * The Nummernkreis: text with {Jahr} (2026), {Jahr2} (26), {Monat} (03) and {Nummer}, such as RE-{Jahr}-{Nummer}.
862
+ */
863
+ numberPattern: string;
864
+ /**
865
+ * The digits {Nummer} has at least, padded with zeros.
866
+ */
867
+ numberDigits: number;
868
+ /**
869
+ * When {Nummer} starts at 1 again, by the invoice date: yearly, monthly or never.
870
+ */
871
+ numberReset: string;
778
872
  /**
779
873
  * The Konto („Zahlung auf“) its invoices name for payment, a bank account with an IBAN; null for none.
780
874
  */
@@ -790,6 +884,11 @@ export type BillingSetupDto = {
790
884
  */
791
885
  acceptDeliveries: boolean;
792
886
  email: BillingEmailDto;
887
+ mail?: null | BillingMailDto;
888
+ /**
889
+ * What the Abschluss counts by: invoice (Rechnungsdatum, default) or payment (Zahlungseingang).
890
+ */
891
+ reportBasis?: string;
793
892
  };
794
893
  export type BillingSummaryDto = {
795
894
  from: string;
@@ -1805,7 +1904,6 @@ export type CreateListDto = {
1805
1904
  ownRecordId?: null | string;
1806
1905
  ownRecord?: null | CreateOwnRecordDto;
1807
1906
  }>;
1808
- rules?: null | Array<CreateRuleDto>;
1809
1907
  };
1810
1908
  export type CreateOwnRecordDto = {
1811
1909
  name: string;
@@ -1829,14 +1927,9 @@ export type CreateOwnRecordDto = {
1829
1927
  };
1830
1928
  };
1831
1929
  };
1832
- export type CreateRuleDto = {
1833
- rule: RuleDefinition;
1834
- runNow?: boolean;
1835
- };
1836
1930
  export type CreditPrices = {
1837
- listUpdate: number;
1838
1931
  exportRows: number;
1839
- exportMinimum: number;
1932
+ receiptRead: number;
1840
1933
  };
1841
1934
  export type CursorPageOfAkteRefDto = {
1842
1935
  items: Array<AkteRefDto>;
@@ -1963,11 +2056,6 @@ export type CursorPageOfListEventDto = {
1963
2056
  nextCursor?: null | string;
1964
2057
  total?: null | number;
1965
2058
  };
1966
- export type CursorPageOfListRunDto = {
1967
- items: Array<ListRunDto>;
1968
- nextCursor?: null | string;
1969
- total?: null | number;
1970
- };
1971
2059
  export type CursorPageOfMineSearchRow = {
1972
2060
  items: Array<MineSearchRow>;
1973
2061
  nextCursor?: null | string;
@@ -2078,14 +2166,6 @@ export type CursorPageOfRefNamespaceEntry = {
2078
2166
  nextCursor?: null | string;
2079
2167
  total?: null | number;
2080
2168
  };
2081
- export type CursorPageOfRuleDto = {
2082
- items: Array<RuleDto>;
2083
- nextCursor?: null | string;
2084
- total?: null | number;
2085
- };
2086
- export type EmptyRuleTrigger = {
2087
- [key: string]: never;
2088
- };
2089
2169
  export type EntityActivityDto = {
2090
2170
  at: string;
2091
2171
  kind: string;
@@ -2183,7 +2263,6 @@ export type EntrySearchDto = {
2183
2263
  * Opaque nextCursor; keep filters and sort unchanged.
2184
2264
  */
2185
2265
  cursor?: null | string;
2186
- runId?: null | string;
2187
2266
  excluded?: null | boolean;
2188
2267
  };
2189
2268
  export type EntrySubjectDto = {
@@ -2198,13 +2277,6 @@ export type EntryWriteResultDto = {
2198
2277
  akte?: null | ListEntryAkteDto;
2199
2278
  ownRecord?: null | ListEntryOwnRecordDto;
2200
2279
  };
2201
- export type EvaluationDto = {
2202
- run?: null | ListRunDto;
2203
- members?: null | number;
2204
- wouldAdd?: null | number;
2205
- wouldRemove?: null | number;
2206
- sample?: null | Array<ListEventSubject>;
2207
- };
2208
2280
  export type EviChangedFunction = {
2209
2281
  personId?: null | string;
2210
2282
  code: string;
@@ -2393,6 +2465,12 @@ export type GeoPoint = {
2393
2465
  lng: number;
2394
2466
  fnr?: null | string;
2395
2467
  kind?: null | string;
2468
+ legalForm?: null | string;
2469
+ place?: null | string;
2470
+ industryLabel?: null | string;
2471
+ employees?: null | number;
2472
+ assets?: null | number;
2473
+ logoUrl?: null | string;
2396
2474
  };
2397
2475
  export type GisaLicenseState = {
2398
2476
  status?: null | string;
@@ -2607,6 +2685,10 @@ export type InvoiceDraftBody = {
2607
2685
  */
2608
2686
  note?: null | string;
2609
2687
  scope?: null | InvoiceDraftScope;
2688
+ /**
2689
+ * Rechnungsnummer typed by hand; empty takes the Absender's next number. Given as typed when issued: a number already given by the Absender is refused (409), one of the range's own numbers past its counter moves the counter on.
2690
+ */
2691
+ number?: null | string;
2610
2692
  };
2611
2693
  export type InvoiceDraftScope = {
2612
2694
  /**
@@ -2687,6 +2769,10 @@ export type InvoiceDto = {
2687
2769
  email: InvoiceEmailDto;
2688
2770
  scope?: null | InvoiceDraftScope;
2689
2771
  defaults?: null | InvoiceDefaultsDto;
2772
+ /**
2773
+ * A draft's Rechnungsnummer typed by hand; empty numbers automatically.
2774
+ */
2775
+ requestedNumber?: null | string;
2690
2776
  };
2691
2777
  export type InvoiceEmailDto = {
2692
2778
  /**
@@ -2694,7 +2780,7 @@ export type InvoiceEmailDto = {
2694
2780
  */
2695
2781
  to?: null | string;
2696
2782
  /**
2697
- * ready, notIssued, noAddress, pending (the Absender is being verified: „Wird geprüft“), notAllowed, suppressed (an earlier mail there bounced) or unavailable (sending is not set up).
2783
+ * ready, notIssued, noAddress, notVerified (the member is not verified; Du → Profil → Verifizierung), pending (their verification is in review: „Wird geprüft“), notAllowed, suppressed (an earlier mail there bounced) or unavailable (sending is not set up).
2698
2784
  */
2699
2785
  state: string;
2700
2786
  /**
@@ -2809,7 +2895,7 @@ export type LetterCountDto = {
2809
2895
  export type LetterDto = {
2810
2896
  id: string;
2811
2897
  /**
2812
- * draft (nothing went out), running (an ongoing list sends to its new entries), paused (its ongoing lists send nothing until resumed) or sent.
2898
+ * draft (not started), running (its run books the Zielgruppe's companies without a letter), paused (books nothing until resumed) or sent (fertig).
2813
2899
  */
2814
2900
  status: string;
2815
2901
  senderCompanyId?: null | string;
@@ -2837,13 +2923,58 @@ export type LetterDto = {
2837
2923
  createdAt: string;
2838
2924
  changedAt: string;
2839
2925
  /**
2840
- * 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.
2926
+ * Unused since Kampagnen (#3540); always 0.
2841
2927
  */
2842
2928
  newRecipients?: number;
2843
2929
  /**
2844
2930
  * The bold line in the QR field with its variables; null prints „Mehr erfahren“.
2845
2931
  */
2846
2932
  qrText?: null | string;
2933
+ /**
2934
+ * The Kampagne's name; null is „Neue Kampagne“.
2935
+ */
2936
+ name?: null | string;
2937
+ audience?: Filter;
2938
+ /**
2939
+ * Laufend: every company that newly matches the Zielgruppe gets the Brief, each once. Else einmalig.
2940
+ */
2941
+ ongoing?: boolean;
2942
+ /**
2943
+ * The budget in credits per calendar month (Europe/Vienna); null is none.
2944
+ */
2945
+ budgetCredits?: null | number;
2946
+ /**
2947
+ * Why it is paused: user, sender, member, verification or letter.
2948
+ */
2949
+ pausedReason?: null | string;
2950
+ /**
2951
+ * Letters that wait for the budget, the workspace limit or credits.
2952
+ */
2953
+ waitingCount?: number;
2954
+ /**
2955
+ * Letters Pingen could not deliver (Rückläufer).
2956
+ */
2957
+ undeliverableCount?: number;
2958
+ /**
2959
+ * Credits its letters were charged.
2960
+ */
2961
+ creditsSpent?: number;
2962
+ /**
2963
+ * Credits the budget counted in the current period.
2964
+ */
2965
+ budgetUsed?: number;
2966
+ /**
2967
+ * Letters charged per ISO week, oldest first.
2968
+ */
2969
+ weeks?: null | Array<LetterWeekDto>;
2970
+ /**
2971
+ * Letters that waited 14 days without budget or credits and expired (verfallen).
2972
+ */
2973
+ expiredCount?: number;
2974
+ /**
2975
+ * The Kampagne's Kontaktliste, the companies it sent to; null until its first letter.
2976
+ */
2977
+ contactListId?: null | string;
2847
2978
  };
2848
2979
  export type LetterPlanDto = {
2849
2980
  letterId: string;
@@ -2857,9 +2988,9 @@ export type LetterPlanDto = {
2857
2988
  sending: number;
2858
2989
  creditsPerLetter: number;
2859
2990
  credits: number;
2860
- fromWeekly: number;
2991
+ fromIncluded: number;
2861
2992
  fromBalance: number;
2862
- weeklyLettersLeft: number;
2993
+ monthlyLettersLeft: number;
2863
2994
  balance: number;
2864
2995
  affordable: boolean;
2865
2996
  examples: Array<string>;
@@ -2903,18 +3034,13 @@ export type LetterPreviewDto = {
2903
3034
  };
2904
3035
  export type LetterPricesDto = {
2905
3036
  /**
2906
- * One letter, with up to one attachment.
3037
+ * One letter, up to two sheets with its attachments.
2907
3038
  */
2908
3039
  letter: number;
2909
3040
  /**
2910
- * Each attachment after the first.
2911
- */
2912
- attachment: number;
2913
- /**
2914
- * Each sheet from the third (printed duplex).
3041
+ * Each sheet from the third (printed duplex); attachments count only through their sheets.
2915
3042
  */
2916
3043
  sheet: number;
2917
- weeklySharePercent: number;
2918
3044
  };
2919
3045
  export type LetterRecipientDto = {
2920
3046
  kind: string;
@@ -2925,76 +3051,10 @@ export type LetterRecipientDto = {
2925
3051
  * A company's address in one line.
2926
3052
  */
2927
3053
  address?: null | string;
2928
- /**
2929
- * Lists only: once or ongoing.
2930
- */
2931
- mode?: null | string;
2932
- /**
2933
- * Lists only: the budget in credits per budgetPeriod; null is none.
2934
- */
2935
- budgetCredits?: null | number;
2936
- /**
2937
- * Lists only: day, week or month.
2938
- */
2939
- budgetPeriod?: null | string;
2940
- /**
2941
- * Lists only: queue or drop.
2942
- */
2943
- overflow?: null | string;
2944
- /**
2945
- * Lists only: the Brief sends to the list's new entries now (an ongoing list after a send).
2946
- */
2947
- running?: boolean;
2948
- /**
2949
- * Lists only: why sending to new entries is paused: user (paused in the Brief), sender, member or letter.
2950
- */
2951
- pausedReason?: null | string;
2952
- /**
2953
- * Lists only: letters to the list's new entries charged this week.
2954
- */
2955
- sentThisWeek?: number;
2956
- /**
2957
- * Lists only: letters to new entries that wait for the budget, the workspace limit or credits.
2958
- */
2959
- waiting?: number;
2960
- /**
2961
- * Lists only: credits the budget counted in the current period.
2962
- */
2963
- budgetUsed?: number;
2964
- /**
2965
- * Lists only: when the current budget period ends.
2966
- */
2967
- budgetResetsAt?: null | string;
2968
3054
  };
2969
3055
  export type LetterRecipientRef = {
2970
3056
  kind: string;
2971
3057
  id: string;
2972
- /**
2973
- * once (default) or ongoing (also new entries).
2974
- */
2975
- mode?: null | string;
2976
- /**
2977
- * Credits per budgetPeriod.
2978
- */
2979
- budgetCredits?: null | number;
2980
- /**
2981
- * day, week or month.
2982
- */
2983
- budgetPeriod?: null | string;
2984
- /**
2985
- * queue (default) or drop.
2986
- */
2987
- overflow?: null | string;
2988
- };
2989
- export type LetterRulePayload = {
2990
- /**
2991
- * ID of a Brief in this workspace, from list_letters.
2992
- */
2993
- letterId: string;
2994
- /**
2995
- * Firmenakte-ID of the Absender company, one of get_letter_setup's senders.
2996
- */
2997
- senderCompanyId: string;
2998
3058
  };
2999
3059
  export type LetterSenderDto = {
3000
3060
  companyId: string;
@@ -3026,14 +3086,14 @@ export type LetterSendingDto = {
3026
3086
  hasPdf: boolean;
3027
3087
  scans: number;
3028
3088
  firstScannedAt?: null | string;
3029
- /**
3030
- * The list rule (sendLetter) that queued it for a new list entry; null for a send of the Brief.
3031
- */
3032
- ruleId?: null | string;
3033
3089
  /**
3034
3090
  * Why a waiting letter waits: list_budget, workspace_limit or credits.
3035
3091
  */
3036
3092
  waitReason?: null | string;
3093
+ /**
3094
+ * The company's postcode and place, as „1140 Wien“; null without a current address.
3095
+ */
3096
+ companyPlace?: null | string;
3037
3097
  };
3038
3098
  export type LetterSendResultDto = {
3039
3099
  plan: LetterPlanDto;
@@ -3046,6 +3106,14 @@ export type LetterSetupDto = {
3046
3106
  noSenderReason?: null | string;
3047
3107
  variables: Array<LetterVariableDto>;
3048
3108
  prices: LetterPricesDto;
3109
+ /**
3110
+ * Why the caller cannot send Briefe now, as a sentence: they are not verified (Du → Profil → Verifizierung) or their verification is in review. Null when they may send.
3111
+ */
3112
+ sendRefusal?: null | string;
3113
+ /**
3114
+ * The budget a new Kampagne starts with, credits per month; null is none.
3115
+ */
3116
+ budgetCredits?: null | number;
3049
3117
  };
3050
3118
  export type LetterSpanDto = {
3051
3119
  text: string;
@@ -3067,24 +3135,27 @@ export type LetterSummaryDto = {
3067
3135
  scannedCount: number;
3068
3136
  changedAt: string;
3069
3137
  /**
3070
- * With listId: how this Brief sends to that list, once or ongoing.
3138
+ * The Kampagne's name; null is „Neue Kampagne“.
3071
3139
  */
3072
- listMode?: null | string;
3140
+ name?: null | string;
3073
3141
  };
3074
3142
  export type LetterVariableDto = {
3075
3143
  path: string;
3076
3144
  label: string;
3077
3145
  group: string;
3078
3146
  };
3147
+ export type LetterWeekDto = {
3148
+ week: string;
3149
+ sent: number;
3150
+ credits: number;
3151
+ };
3079
3152
  export type ListDto = {
3080
3153
  id: string;
3081
3154
  name: string;
3082
3155
  color?: null | string;
3083
3156
  stats: Stats;
3084
3157
  revision: string;
3085
- hasRules?: boolean;
3086
3158
  allSelectedPresent?: null | boolean;
3087
- run?: null | ListRunDto;
3088
3159
  system?: null | string;
3089
3160
  };
3090
3161
  export type ListEntryAkteDto = {
@@ -3138,7 +3209,6 @@ export type ListEntrySubjectDto = {
3138
3209
  export type ListEventDto = {
3139
3210
  seq: number;
3140
3211
  listId: string;
3141
- runId?: null | string;
3142
3212
  type: string;
3143
3213
  at: string;
3144
3214
  baseline: boolean;
@@ -3156,41 +3226,6 @@ export type ListEventSubject = {
3156
3226
  type?: null | string;
3157
3227
  name: string;
3158
3228
  };
3159
- export type ListRunDto = {
3160
- id: string;
3161
- trigger: string;
3162
- evaluationDate: string;
3163
- startedAt: string;
3164
- finishedAt?: null | string;
3165
- added: number;
3166
- status: string;
3167
- baseline: boolean;
3168
- credits: number;
3169
- reason?: null | string;
3170
- deliveries?: null | Array<RunDeliveryDto>;
3171
- };
3172
- export type ListSchedule = {
3173
- /**
3174
- * Repeat daily, weekdays (Monday-Friday), weekly, monthly, or manual (no recurrence). Never more often than daily.
3175
- */
3176
- every?: 'daily' | 'weekdays' | 'weekly' | 'monthly' | 'manual';
3177
- /**
3178
- * Required for recurrence: a full hour HH:00 from 00:00 to 23:00 in Europe/Vienna. This schedule belongs to an independent query rule. Omit or use null for manual (no recurrence); an initial run is selected separately with runNow. Each query run uses the current listUpdate price.
3179
- */
3180
- at?: null | string;
3181
- /**
3182
- * Required only for weekly: 0=Sunday, 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday. Otherwise omit or use null.
3183
- */
3184
- weekday?: null | number;
3185
- /**
3186
- * Required only for monthly: day of month 1-28. Otherwise omit or use null.
3187
- */
3188
- monthday?: null | number;
3189
- /**
3190
- * Always Europe/Vienna; daylight saving time is handled automatically.
3191
- */
3192
- timezone?: 'Europe/Vienna';
3193
- };
3194
3229
  export type ListSubjectProperty = {
3195
3230
  path: string;
3196
3231
  label: string;
@@ -3220,17 +3255,30 @@ export type MatchBankTransactionsResult = {
3220
3255
  };
3221
3256
  export type MeClassPricesDto = {
3222
3257
  basic: number;
3223
- expensive: number;
3258
+ ai: number;
3224
3259
  };
3225
3260
  export type MeCreditsDto = {
3226
- week: string;
3227
- allowance: number;
3228
- used: number;
3229
- topUp: number;
3261
+ /**
3262
+ * The calendar month (Europe/Vienna) the included amounts belong to, "yyyy-MM".
3263
+ */
3264
+ month: string;
3265
+ /**
3266
+ * The Guthaben in credits (euro cents). It pays once a feature's included amount of the month is used up.
3267
+ */
3230
3268
  balance: number;
3269
+ /**
3270
+ * When the included amounts are full again: the 1st of the next month, 00:00 Europe/Vienna.
3271
+ */
3231
3272
  resetsAt: string;
3273
+ /**
3274
+ * What the plan includes this month per feature, in the feature's unit, and what of it is used.
3275
+ */
3276
+ included: Array<MeIncludedDto>;
3232
3277
  prices: CreditPrices;
3233
- classes?: null | MeClassPricesDto;
3278
+ /**
3279
+ * Credits (euro cents) one Abfrage (basic) costs, and one block of 5,000 AI tokens (ai).
3280
+ */
3281
+ classes: MeClassPricesDto;
3234
3282
  };
3235
3283
  export type MeDto = {
3236
3284
  workspace: MeWorkspaceDto;
@@ -3242,6 +3290,11 @@ export type MeDto = {
3242
3290
  features?: Array<string>;
3243
3291
  access?: WorkspaceAccessDto;
3244
3292
  };
3293
+ export type MeIncludedDto = {
3294
+ feature: string;
3295
+ included: number;
3296
+ used: number;
3297
+ };
3245
3298
  export type MeKeyDto = {
3246
3299
  id: string;
3247
3300
  name: string;
@@ -3443,18 +3496,6 @@ export type NoticeCompany = {
3443
3496
  id: string;
3444
3497
  name: string;
3445
3498
  };
3446
- export type NotificationRulePayload = {
3447
- channel: 'inApp' | 'email';
3448
- };
3449
- export type NotificationRulesDto = {
3450
- inApp: null | RuleDto;
3451
- email: null | RuleDto;
3452
- };
3453
- export type NotificationRuleSetting = {
3454
- enabled: boolean;
3455
- id: null | string;
3456
- revision: null | string;
3457
- };
3458
3499
  export type NumbersSettingsBody = {
3459
3500
  customerNumberField?: null | string;
3460
3501
  supplierNumberField?: null | string;
@@ -3462,6 +3503,14 @@ export type NumbersSettingsBody = {
3462
3503
  ibanField?: null | string;
3463
3504
  emailField?: null | string;
3464
3505
  addressField?: null | string;
3506
+ /**
3507
+ * Raise the number the next Kunde gets (without Vorsatz). Never lower: a number is given once.
3508
+ */
3509
+ nextCustomerNumber?: null | number;
3510
+ /**
3511
+ * Raise the number the next Lieferant gets (without Vorsatz). Never lower: a number is given once.
3512
+ */
3513
+ nextSupplierNumber?: null | number;
3465
3514
  };
3466
3515
  export type OwnRecordDto = {
3467
3516
  id: string;
@@ -3545,7 +3594,6 @@ export type Problem = {
3545
3594
  requestId: string;
3546
3595
  errors: Array<V2ValidationError>;
3547
3596
  candidates?: null | Array<string>;
3548
- run?: null | ListRunDto;
3549
3597
  };
3550
3598
  export type PublicAccountFigure = {
3551
3599
  definition?: null | AkteRefLink;
@@ -4103,19 +4151,6 @@ export type PublicSourceCapabilities = {
4103
4151
  documents: boolean;
4104
4152
  extracts: boolean;
4105
4153
  };
4106
- export type QueryRulePayload = {
4107
- definition: {
4108
- /**
4109
- * Record type: company or person. Automatic list query rules currently support company only.
4110
- */
4111
- subject: 'company' | 'person';
4112
- where: Filter;
4113
- /**
4114
- * Filter language version; use 1.
4115
- */
4116
- filterVersion?: 1;
4117
- };
4118
- };
4119
4154
  export type RecordChange = {
4120
4155
  /**
4121
4156
  * Source record change event identity; distinct from an entity change ID.
@@ -4241,84 +4276,6 @@ export type ResultSlice = {
4241
4276
  fields: Array<ResultField>;
4242
4277
  expiresAt: string;
4243
4278
  };
4244
- export type RuleDefinition = ({
4245
- operationId: 'applyListQuery';
4246
- } & RuleDefinitionApplyListQueryDefinition) | ({
4247
- operationId: 'notifyListEntries';
4248
- } & RuleDefinitionNotifyListEntriesDefinition) | ({
4249
- operationId: 'sendLetter';
4250
- } & RuleDefinitionSendLetterDefinition);
4251
- export type RuleDefinitionApplyListQueryDefinition = {
4252
- operationId: 'applyListQuery';
4253
- payload: QueryRulePayload;
4254
- triggerPayload?: null | ListSchedule;
4255
- trigger?: 'manual' | 'schedule';
4256
- enabled?: boolean;
4257
- schemaVersion?: 1;
4258
- };
4259
- export type RuleDefinitionNotifyListEntriesDefinition = {
4260
- operationId: 'notifyListEntries';
4261
- payload: NotificationRulePayload;
4262
- triggerPayload?: null | EmptyRuleTrigger;
4263
- trigger?: 'entry.added';
4264
- enabled?: boolean;
4265
- schemaVersion?: 1;
4266
- };
4267
- export type RuleDefinitionSendLetterDefinition = {
4268
- operationId: 'sendLetter';
4269
- payload: LetterRulePayload;
4270
- triggerPayload?: null | EmptyRuleTrigger;
4271
- trigger?: 'entry.added';
4272
- enabled?: boolean;
4273
- schemaVersion?: 1;
4274
- };
4275
- export type RuleDto = {
4276
- id: string;
4277
- listId: string;
4278
- revision: string;
4279
- rule: RuleDefinition;
4280
- nextRunAt?: null | string;
4281
- credits: number;
4282
- run?: null | ListRunDto;
4283
- };
4284
- export type RuleQuoteDto = {
4285
- credits: number;
4286
- nextRunAt: null | string;
4287
- items: Array<RuleQuoteItem>;
4288
- /**
4289
- * Companies a run would newly add to the list now: matches that are neither members nor excluded, as wouldAdd of a dry run counts them. Counted up to 10000; matchesCapped is true when there are more.
4290
- */
4291
- matches: number;
4292
- /**
4293
- * True when more than 10000 companies would be added; matches then reads 10000.
4294
- */
4295
- matchesCapped: boolean;
4296
- };
4297
- export type RuleQuoteItem = {
4298
- id: string;
4299
- type?: null | string;
4300
- name: string;
4301
- /**
4302
- * City of the registered address.
4303
- */
4304
- place?: null | string;
4305
- /**
4306
- * Short label of the current legal form, such as GmbH.
4307
- */
4308
- legalFormShortLabel?: null | string;
4309
- /**
4310
- * Date of the first Firmenbuch registration.
4311
- */
4312
- registeredDate?: null | string;
4313
- };
4314
- export type RunDeliveryDto = {
4315
- channel: string;
4316
- status: string;
4317
- };
4318
- export type RunRuleDto = {
4319
- revision: string;
4320
- dryRun?: boolean;
4321
- };
4322
4279
  export type SaveArticleRequest = {
4323
4280
  name: string;
4324
4281
  priceCents: number;
@@ -4360,16 +4317,16 @@ export type SenderSettingsBody = {
4360
4317
  */
4361
4318
  bic?: null | string;
4362
4319
  /**
4363
- * Overrides the Absender's UID from the Firmenbuch or the Rechnungsdaten ohne Firma; an empty string removes the override, omitted keeps it.
4320
+ * Overrides the UID of the Unternehmen; an empty string removes the override, omitted keeps it.
4364
4321
  */
4365
4322
  uid?: null | string;
4366
4323
  paymentDays?: null | number;
4367
4324
  /**
4368
- * The text before year and number, such as RE-: RE-2026-0001.
4325
+ * Superseded by numberPattern: replaces the pattern's text before its first variable, RE- of RE-{Jahr}-{Nummer}. Ignored when numberPattern is sent.
4369
4326
  */
4370
4327
  prefix?: null | string;
4371
4328
  /**
4372
- * Raise the next number, for example when moving from another tool. Never lower.
4329
+ * Raise the running number of the current period, for example when moving from another tool. Never lower.
4373
4330
  */
4374
4331
  nextSequence?: null | number;
4375
4332
  /**
@@ -4384,6 +4341,18 @@ export type SenderSettingsBody = {
4384
4341
  * The Konto invoices name for payment, one with an IBAN; an empty string removes it. Takes precedence over iban.
4385
4342
  */
4386
4343
  accountId?: null | string;
4344
+ /**
4345
+ * The Nummernkreis, at most 40 characters: text with {Jahr} (2026), {Jahr2} (26), {Monat} (03) and {Nummer} once, such as RE-{Jahr}-{Nummer}.
4346
+ */
4347
+ numberPattern?: null | string;
4348
+ /**
4349
+ * The digits {Nummer} has at least, 1 to 12.
4350
+ */
4351
+ numberDigits?: null | number;
4352
+ /**
4353
+ * When {Nummer} starts at 1 again, by the invoice date: yearly (needs {Jahr} or {Jahr2}), monthly (needs {Monat} and a year) or never. Omitted with a numberPattern, it follows the pattern: with {Monat} and a year monthly, with a year yearly, else never.
4354
+ */
4355
+ numberReset?: null | string;
4387
4356
  };
4388
4357
  export type SendInvoiceBody = {
4389
4358
  /**
@@ -4391,7 +4360,7 @@ export type SendInvoiceBody = {
4391
4360
  */
4392
4361
  reminder?: boolean;
4393
4362
  /**
4394
- * One short sentence from the sender above the fixed text; no links. At most 300 characters.
4363
+ * One short sentence from the sender in the mail, under the amount; no links. At most 300 characters.
4395
4364
  */
4396
4365
  note?: null | string;
4397
4366
  };
@@ -4402,18 +4371,57 @@ export type SendLetterBody = {
4402
4371
  */
4403
4372
  resendReceived?: boolean;
4404
4373
  };
4405
- export type SetEntityValuesDto = {
4374
+ export type SendTemplateBody = {
4406
4375
  /**
4407
- * Workspace field key to a value of its configured type (string, one option, number, ISO date, boolean, an amount {cents, currency}, an ID for file, reference and member, or a sequence number {number, label} read back, "next" to give one); null clears.
4376
+ * Companies by Firmenakte-ID.
4408
4377
  */
4409
- values: {
4410
- [key: string]: null | string | number | boolean | {
4411
- cents: number;
4412
- currency?: string;
4413
- } | {
4414
- number: number;
4415
- label: string;
4416
- };
4378
+ companies?: null | Array<string>;
4379
+ /**
4380
+ * A table (list ID): all its entries, or with entryIds only those.
4381
+ */
4382
+ listId?: null | string;
4383
+ /**
4384
+ * Entries of listId by entry ID: the ticked rows.
4385
+ */
4386
+ entryIds?: null | Array<string>;
4387
+ /**
4388
+ * The Absender key (the workspace's Unternehmen); without, the Brief's.
4389
+ */
4390
+ senderCompanyId?: null | string;
4391
+ /**
4392
+ * Also send to those that already received this Brief; skipped as already_sent otherwise.
4393
+ */
4394
+ resendReceived?: boolean;
4395
+ /**
4396
+ * Only count and price; nothing is sent or charged.
4397
+ */
4398
+ dryRun?: boolean;
4399
+ };
4400
+ export type SendTemplateResultDto = {
4401
+ dryRun: boolean;
4402
+ /**
4403
+ * Letters queued.
4404
+ */
4405
+ sent: number;
4406
+ skipped: number;
4407
+ letter: LetterPlanDto;
4408
+ /**
4409
+ * Credits the send cost.
4410
+ */
4411
+ credits?: number;
4412
+ };
4413
+ export type SetEntityValuesDto = {
4414
+ /**
4415
+ * Workspace field key to a value of its configured type (string, one option, number, ISO date, boolean, an amount {cents, currency}, an ID for file, reference and member, or a sequence number {number, label} read back, "next" to give one); null clears.
4416
+ */
4417
+ values: {
4418
+ [key: string]: null | string | number | boolean | {
4419
+ cents: number;
4420
+ currency?: string;
4421
+ } | {
4422
+ number: number;
4423
+ label: string;
4424
+ };
4417
4425
  };
4418
4426
  fields?: null | Array<ContactFieldValue>;
4419
4427
  /**
@@ -4423,10 +4431,6 @@ export type SetEntityValuesDto = {
4423
4431
  [key: string]: null | string | number | boolean;
4424
4432
  };
4425
4433
  };
4426
- export type SetNotificationRulesDto = {
4427
- inApp: NotificationRuleSetting;
4428
- email: NotificationRuleSetting;
4429
- };
4430
4434
  export type SourceKey = 'firmenbuch' | 'ediktsdatei' | 'evi' | 'gisa' | 'bmf-scheinunternehmen' | 'transparenzportal' | 'ama' | 'bev' | 'statistik-austria' | 'vies' | 'websites' | 'openstreetmap' | 'claims' | 'vornamen' | 'oenace-2025' | 'gewerbeschluessel';
4431
4435
  export type SourceLicense = {
4432
4436
  name: string;
@@ -4547,11 +4551,10 @@ export type UpdateBankConnectionBody = {
4547
4551
  payoutAccountId?: null | string;
4548
4552
  };
4549
4553
  export type UpdateBankSettingsRequest = {
4550
- aiMatch?: null | boolean;
4551
4554
  /**
4552
- * sicher or nie.
4555
+ * aus, pruefen or sicher.
4553
4556
  */
4554
- autoAccept?: null | string;
4557
+ mode: 'aus' | 'pruefen' | 'sicher';
4555
4558
  };
4556
4559
  export type UpdateBankTransactionBody = {
4557
4560
  bookingDate?: null | string;
@@ -4601,6 +4604,17 @@ export type UpdateBillingPartnerBody = {
4601
4604
  */
4602
4605
  archived: boolean;
4603
4606
  };
4607
+ export type UpdateBillingPartnerDefaultsBody = {
4608
+ /**
4609
+ * Rechnungs-E-Mail; empty removes it.
4610
+ */
4611
+ email?: null | string;
4612
+ address?: null | InvoiceCustomer;
4613
+ /**
4614
+ * Zahlungsziel in days, 0 to 365; empty takes the Absender's.
4615
+ */
4616
+ paymentDays?: null | number;
4617
+ };
4604
4618
  export type UpdateBillingSettingsRequest = {
4605
4619
  sender?: null | SenderSettingsBody;
4606
4620
  numbers?: null | NumbersSettingsBody;
@@ -4608,6 +4622,11 @@ export type UpdateBillingSettingsRequest = {
4608
4622
  * Take invoices other Firmenakte workspaces issue to this one into the Eingang by themselves; false turns it off.
4609
4623
  */
4610
4624
  acceptDeliveries?: null | boolean;
4625
+ mail?: null | BillingMailBody;
4626
+ /**
4627
+ * What the Abschluss counts by: invoice (Rechnungsdatum) or payment (Zahlungseingang).
4628
+ */
4629
+ reportBasis?: 'invoice' | 'payment';
4611
4630
  };
4612
4631
  export type UpdateEntryDto = {
4613
4632
  excluded?: null | boolean;
@@ -4645,13 +4664,25 @@ export type UpdateLetterBody = {
4645
4664
  advertising?: null | boolean;
4646
4665
  recipients?: null | Array<LetterRecipientRef>;
4647
4666
  /**
4648
- * 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.
4667
+ * true pauses a running Kampagne (it books nothing, waiting letters wait); false starts a draft or resumes a paused one, as the caller: its Zielgruppe's companies without a letter get one.
4649
4668
  */
4650
4669
  paused?: null | boolean;
4670
+ /**
4671
+ * The Kampagne's name; empty removes it, so it is „Neue Kampagne“.
4672
+ */
4673
+ name?: null | string;
4674
+ audience?: Filter;
4675
+ /**
4676
+ * true: laufend, every new match gets the Brief; false: einmalig.
4677
+ */
4678
+ ongoing?: null | boolean;
4679
+ /**
4680
+ * The budget in credits per calendar month, at least one letter's price; 0 removes it.
4681
+ */
4682
+ budgetCredits?: null | number;
4651
4683
  };
4652
- export type UpdateRuleDto = {
4653
- revision: string;
4654
- rule: RuleDefinition;
4684
+ export type UpdateLetterSetupRequest = {
4685
+ budgetCredits?: null | number;
4655
4686
  };
4656
4687
  export type V2Problem = {
4657
4688
  type: string;
@@ -4662,7 +4693,6 @@ export type V2Problem = {
4662
4693
  requestId: string;
4663
4694
  errors: Array<V2ValidationError>;
4664
4695
  candidates?: null | Array<string>;
4665
- run?: null | ListRunDto;
4666
4696
  };
4667
4697
  export type V2ValidationError = {
4668
4698
  code: string;
@@ -5462,8 +5492,8 @@ export type GetJobResponses = {
5462
5492
  200: ListWriteJobDto;
5463
5493
  };
5464
5494
  export type GetJobResponse = GetJobResponses[keyof GetJobResponses];
5465
- export type PreviewNewListRuleData = {
5466
- body: CreateRuleDto;
5495
+ export type ListListsData = {
5496
+ body?: never;
5467
5497
  headers?: {
5468
5498
  /**
5469
5499
  * Optional replay key, retained for 24 hours.
@@ -5471,10 +5501,31 @@ export type PreviewNewListRuleData = {
5471
5501
  'Idempotency-Key'?: string;
5472
5502
  };
5473
5503
  path?: never;
5474
- query?: never;
5475
- url: '/api/v2/me/lists/rules/preview';
5504
+ query?: {
5505
+ /**
5506
+ * Page size, default 25, maximum 100. Zero returns the count.
5507
+ */
5508
+ limit?: number;
5509
+ /**
5510
+ * Opaque cursor from the previous page; expires after 24 hours.
5511
+ */
5512
+ cursor?: string;
5513
+ /**
5514
+ * Up to 500 entity IDs or Firmenbuchnummern; each list then says in allSelectedPresent whether it holds all of them.
5515
+ */
5516
+ selectedIds?: Array<string>;
5517
+ /**
5518
+ * A list whose entries are the selection for allSelectedPresent, instead of selectedIds.
5519
+ */
5520
+ selectionListId?: string;
5521
+ /**
5522
+ * Narrows the selectionListId selection to entries whose name contains this text.
5523
+ */
5524
+ selectionQ?: string;
5525
+ };
5526
+ url: '/api/v2/me/lists';
5476
5527
  };
5477
- export type PreviewNewListRuleErrors = {
5528
+ export type ListListsErrors = {
5478
5529
  /**
5479
5530
  * Malformed request, or a cursor from another request.
5480
5531
  */
@@ -5516,32 +5567,27 @@ export type PreviewNewListRuleErrors = {
5516
5567
  */
5517
5568
  500: Problem;
5518
5569
  };
5519
- export type PreviewNewListRuleError = PreviewNewListRuleErrors[keyof PreviewNewListRuleErrors];
5520
- export type PreviewNewListRuleResponses = {
5570
+ export type ListListsError = ListListsErrors[keyof ListListsErrors];
5571
+ export type ListListsResponses = {
5521
5572
  /**
5522
5573
  * OK
5523
5574
  */
5524
- 200: RuleQuoteDto;
5575
+ 200: CursorPageOfListDto;
5525
5576
  };
5526
- export type PreviewNewListRuleResponse = PreviewNewListRuleResponses[keyof PreviewNewListRuleResponses];
5527
- export type PreviewRuleData = {
5528
- body: CreateRuleDto;
5577
+ export type ListListsResponse = ListListsResponses[keyof ListListsResponses];
5578
+ export type CreateListData = {
5579
+ body: CreateListDto;
5529
5580
  headers?: {
5530
5581
  /**
5531
5582
  * Optional replay key, retained for 24 hours.
5532
5583
  */
5533
5584
  'Idempotency-Key'?: string;
5534
5585
  };
5535
- path: {
5536
- /**
5537
- * ID of an existing list in the authorized workspace, returned by listLists or createList. A new list has no ID until creation; createList accepts its initial rules directly.
5538
- */
5539
- id: string;
5540
- };
5586
+ path?: never;
5541
5587
  query?: never;
5542
- url: '/api/v2/me/lists/{id}/rules/preview';
5588
+ url: '/api/v2/me/lists';
5543
5589
  };
5544
- export type PreviewRuleErrors = {
5590
+ export type CreateListErrors = {
5545
5591
  /**
5546
5592
  * Malformed request, or a cursor from another request.
5547
5593
  */
@@ -5583,15 +5629,15 @@ export type PreviewRuleErrors = {
5583
5629
  */
5584
5630
  500: Problem;
5585
5631
  };
5586
- export type PreviewRuleError = PreviewRuleErrors[keyof PreviewRuleErrors];
5587
- export type PreviewRuleResponses = {
5632
+ export type CreateListError = CreateListErrors[keyof CreateListErrors];
5633
+ export type CreateListResponses = {
5588
5634
  /**
5589
- * OK
5635
+ * Created
5590
5636
  */
5591
- 200: RuleQuoteDto;
5637
+ 201: ListDto;
5592
5638
  };
5593
- export type PreviewRuleResponse = PreviewRuleResponses[keyof PreviewRuleResponses];
5594
- export type ListRulesData = {
5639
+ export type CreateListResponse = CreateListResponses[keyof CreateListResponses];
5640
+ export type DeleteListData = {
5595
5641
  body?: never;
5596
5642
  headers?: {
5597
5643
  /**
@@ -5605,23 +5651,10 @@ export type ListRulesData = {
5605
5651
  */
5606
5652
  id: string;
5607
5653
  };
5608
- query?: {
5609
- /**
5610
- * Page size, default 25, maximum 100. Zero returns the count.
5611
- */
5612
- limit?: number;
5613
- /**
5614
- * Opaque cursor from the previous page; expires after 24 hours.
5615
- */
5616
- cursor?: string;
5617
- /**
5618
- * The rule function: applyListQuery, notifyListEntries or sendLetter.
5619
- */
5620
- operationId?: string;
5621
- };
5622
- url: '/api/v2/me/lists/{id}/rules';
5654
+ query?: never;
5655
+ url: '/api/v2/me/lists/{id}';
5623
5656
  };
5624
- export type ListRulesErrors = {
5657
+ export type DeleteListErrors = {
5625
5658
  /**
5626
5659
  * Malformed request, or a cursor from another request.
5627
5660
  */
@@ -5663,16 +5696,15 @@ export type ListRulesErrors = {
5663
5696
  */
5664
5697
  500: Problem;
5665
5698
  };
5666
- export type ListRulesError = ListRulesErrors[keyof ListRulesErrors];
5667
- export type ListRulesResponses = {
5699
+ export type DeleteListError = DeleteListErrors[keyof DeleteListErrors];
5700
+ export type DeleteListResponses = {
5668
5701
  /**
5669
- * OK
5702
+ * No Content
5670
5703
  */
5671
- 200: CursorPageOfRuleDto;
5704
+ 204: any;
5672
5705
  };
5673
- export type ListRulesResponse = ListRulesResponses[keyof ListRulesResponses];
5674
- export type CreateRuleData = {
5675
- body: CreateRuleDto;
5706
+ export type GetListData = {
5707
+ body?: never;
5676
5708
  headers?: {
5677
5709
  /**
5678
5710
  * Optional replay key, retained for 24 hours.
@@ -5681,14 +5713,14 @@ export type CreateRuleData = {
5681
5713
  };
5682
5714
  path: {
5683
5715
  /**
5684
- * ID of an existing list in the authorized workspace, returned by listLists or createList. A new list has no ID until creation; createList accepts its initial rules directly.
5716
+ * Workspace resource ID.
5685
5717
  */
5686
5718
  id: string;
5687
5719
  };
5688
5720
  query?: never;
5689
- url: '/api/v2/me/lists/{id}/rules';
5721
+ url: '/api/v2/me/lists/{id}';
5690
5722
  };
5691
- export type CreateRuleErrors = {
5723
+ export type GetListErrors = {
5692
5724
  /**
5693
5725
  * Malformed request, or a cursor from another request.
5694
5726
  */
@@ -5730,17 +5762,24 @@ export type CreateRuleErrors = {
5730
5762
  */
5731
5763
  500: Problem;
5732
5764
  };
5733
- export type CreateRuleError = CreateRuleErrors[keyof CreateRuleErrors];
5734
- export type CreateRuleResponses = {
5765
+ export type GetListError = GetListErrors[keyof GetListErrors];
5766
+ export type GetListResponses = {
5735
5767
  /**
5736
- * Created
5768
+ * OK
5737
5769
  */
5738
- 201: RuleDto;
5770
+ 200: ListDto;
5739
5771
  };
5740
- export type CreateRuleResponse = CreateRuleResponses[keyof CreateRuleResponses];
5741
- export type DeleteRuleData = {
5742
- body?: never;
5772
+ export type GetListResponse = GetListResponses[keyof GetListResponses];
5773
+ export type UpdateListData = {
5774
+ body: {
5775
+ name?: null | string;
5776
+ color?: null | string;
5777
+ };
5743
5778
  headers?: {
5779
+ /**
5780
+ * Optional list revision, quoted or unquoted. If the list changed, returns 412 revision_conflict and saves nothing.
5781
+ */
5782
+ 'If-Match'?: string;
5744
5783
  /**
5745
5784
  * Optional replay key, retained for 24 hours.
5746
5785
  */
@@ -5751,20 +5790,11 @@ export type DeleteRuleData = {
5751
5790
  * Workspace resource ID.
5752
5791
  */
5753
5792
  id: string;
5754
- /**
5755
- * Stable query rule ID within this workspace list.
5756
- */
5757
- ruleId: string;
5758
- };
5759
- query?: {
5760
- /**
5761
- * Last reviewed rule revision; a changed rule returns 409 and is not deleted.
5762
- */
5763
- revision?: string;
5764
5793
  };
5765
- url: '/api/v2/me/lists/{id}/rules/{ruleId}';
5794
+ query?: never;
5795
+ url: '/api/v2/me/lists/{id}';
5766
5796
  };
5767
- export type DeleteRuleErrors = {
5797
+ export type UpdateListErrors = {
5768
5798
  /**
5769
5799
  * Malformed request, or a cursor from another request.
5770
5800
  */
@@ -5793,6 +5823,10 @@ export type DeleteRuleErrors = {
5793
5823
  * Erased or expired.
5794
5824
  */
5795
5825
  410: Problem;
5826
+ /**
5827
+ * The object changed since it was read.
5828
+ */
5829
+ 412: Problem;
5796
5830
  /**
5797
5831
  * Validation failed; `errors[]` names each parameter or JSON pointer.
5798
5832
  */
@@ -5806,15 +5840,16 @@ export type DeleteRuleErrors = {
5806
5840
  */
5807
5841
  500: Problem;
5808
5842
  };
5809
- export type DeleteRuleError = DeleteRuleErrors[keyof DeleteRuleErrors];
5810
- export type DeleteRuleResponses = {
5843
+ export type UpdateListError = UpdateListErrors[keyof UpdateListErrors];
5844
+ export type UpdateListResponses = {
5811
5845
  /**
5812
- * No Content
5846
+ * OK
5813
5847
  */
5814
- 204: any;
5848
+ 200: ListDto;
5815
5849
  };
5816
- export type UpdateRuleData = {
5817
- body: UpdateRuleDto;
5850
+ export type UpdateListResponse = UpdateListResponses[keyof UpdateListResponses];
5851
+ export type ListEntriesData = {
5852
+ body?: never;
5818
5853
  headers?: {
5819
5854
  /**
5820
5855
  * Optional replay key, retained for 24 hours.
@@ -5826,15 +5861,40 @@ export type UpdateRuleData = {
5826
5861
  * Workspace resource ID.
5827
5862
  */
5828
5863
  id: string;
5864
+ };
5865
+ query?: {
5866
+ /**
5867
+ * Case-insensitive name text.
5868
+ */
5869
+ q?: string;
5870
+ /**
5871
+ * matched, unmatched or ambiguous.
5872
+ */
5873
+ match?: string;
5874
+ /**
5875
+ * How the entry came onto the list: manual, import, query, chat or migration.
5876
+ */
5877
+ origin?: string;
5878
+ /**
5879
+ * true returns only excluded entries, false only the others; omit for both.
5880
+ */
5881
+ excluded?: boolean;
5882
+ /**
5883
+ * Any public column path or fields.<key>; prefix with minus for descending. Empty values last.
5884
+ */
5885
+ sort?: string;
5886
+ /**
5887
+ * Page size, default 25, maximum 100. Zero returns the count.
5888
+ */
5889
+ limit?: number;
5829
5890
  /**
5830
- * Stable query rule ID within this workspace list.
5891
+ * Opaque cursor from the previous page; expires after 24 hours.
5831
5892
  */
5832
- ruleId: string;
5893
+ cursor?: string;
5833
5894
  };
5834
- query?: never;
5835
- url: '/api/v2/me/lists/{id}/rules/{ruleId}';
5895
+ url: '/api/v2/me/lists/{id}/entries';
5836
5896
  };
5837
- export type UpdateRuleErrors = {
5897
+ export type ListEntriesErrors = {
5838
5898
  /**
5839
5899
  * Malformed request, or a cursor from another request.
5840
5900
  */
@@ -5876,16 +5936,47 @@ export type UpdateRuleErrors = {
5876
5936
  */
5877
5937
  500: Problem;
5878
5938
  };
5879
- export type UpdateRuleError = UpdateRuleErrors[keyof UpdateRuleErrors];
5880
- export type UpdateRuleResponses = {
5939
+ export type ListEntriesError = ListEntriesErrors[keyof ListEntriesErrors];
5940
+ export type ListEntriesResponses = {
5881
5941
  /**
5882
5942
  * OK
5883
5943
  */
5884
- 200: RuleDto;
5944
+ 200: CursorPageOfListEntryDto;
5885
5945
  };
5886
- export type UpdateRuleResponse = UpdateRuleResponses[keyof UpdateRuleResponses];
5887
- export type RunRuleData = {
5888
- body: RunRuleDto;
5946
+ export type ListEntriesResponse = ListEntriesResponses[keyof ListEntriesResponses];
5947
+ export type AddEntriesData = {
5948
+ body: {
5949
+ items?: null | Array<{
5950
+ id?: null | string;
5951
+ ownRecordId?: null | string;
5952
+ ownRecord?: null | CreateOwnRecordDto;
5953
+ }>;
5954
+ listId?: null | string;
5955
+ query?: null | {
5956
+ /**
5957
+ * Record type: company or person. Automatic list query rules currently support company only.
5958
+ */
5959
+ subject: 'company' | 'person';
5960
+ where: Filter;
5961
+ /**
5962
+ * Filter language version; use 1.
5963
+ */
5964
+ filterVersion?: 1;
5965
+ };
5966
+ q?: null | string;
5967
+ /**
5968
+ * Workspace field key to a value of its configured type (string, one option, number, ISO date, boolean, an amount {cents, currency}, an ID for file, reference and member, or a sequence number {number, label} read back, "next" to give one); null clears.
5969
+ */
5970
+ values?: null | {
5971
+ [key: string]: null | string | number | boolean | {
5972
+ cents: number;
5973
+ currency?: string;
5974
+ } | {
5975
+ number: number;
5976
+ label: string;
5977
+ };
5978
+ };
5979
+ };
5889
5980
  headers?: {
5890
5981
  /**
5891
5982
  * Optional replay key, retained for 24 hours.
@@ -5897,15 +5988,11 @@ export type RunRuleData = {
5897
5988
  * Workspace resource ID.
5898
5989
  */
5899
5990
  id: string;
5900
- /**
5901
- * Stable query rule ID within this workspace list.
5902
- */
5903
- ruleId: string;
5904
5991
  };
5905
5992
  query?: never;
5906
- url: '/api/v2/me/lists/{id}/rules/{ruleId}/run';
5993
+ url: '/api/v2/me/lists/{id}/entries';
5907
5994
  };
5908
- export type RunRuleErrors = {
5995
+ export type AddEntriesErrors = {
5909
5996
  /**
5910
5997
  * Malformed request, or a cursor from another request.
5911
5998
  */
@@ -5947,583 +6034,29 @@ export type RunRuleErrors = {
5947
6034
  */
5948
6035
  500: Problem;
5949
6036
  };
5950
- export type RunRuleError = RunRuleErrors[keyof RunRuleErrors];
5951
- export type RunRuleResponses = {
6037
+ export type AddEntriesError = AddEntriesErrors[keyof AddEntriesErrors];
6038
+ export type AddEntriesResponses = {
5952
6039
  /**
5953
6040
  * OK
5954
6041
  */
5955
- 200: EvaluationDto;
6042
+ 200: EntriesWriteDto;
6043
+ /**
6044
+ * Accepted
6045
+ */
6046
+ 202: EntriesWriteDto;
5956
6047
  };
5957
- export type RunRuleResponse = RunRuleResponses[keyof RunRuleResponses];
5958
- export type ListListsData = {
5959
- body?: never;
6048
+ export type AddEntriesResponse = AddEntriesResponses[keyof AddEntriesResponses];
6049
+ export type UpdateEntryData = {
6050
+ body: UpdateEntryDto;
5960
6051
  headers?: {
5961
6052
  /**
5962
6053
  * Optional replay key, retained for 24 hours.
5963
6054
  */
5964
6055
  'Idempotency-Key'?: string;
5965
6056
  };
5966
- path?: never;
5967
- query?: {
6057
+ path: {
5968
6058
  /**
5969
- * Page size, default 25, maximum 100. Zero returns the count.
5970
- */
5971
- limit?: number;
5972
- /**
5973
- * Opaque cursor from the previous page; expires after 24 hours.
5974
- */
5975
- cursor?: string;
5976
- /**
5977
- * Up to 500 entity IDs or Firmenbuchnummern; each list then says in allSelectedPresent whether it holds all of them.
5978
- */
5979
- selectedIds?: Array<string>;
5980
- /**
5981
- * A list whose entries are the selection for allSelectedPresent, instead of selectedIds.
5982
- */
5983
- selectionListId?: string;
5984
- /**
5985
- * Narrows the selectionListId selection to entries whose name contains this text.
5986
- */
5987
- selectionQ?: string;
5988
- };
5989
- url: '/api/v2/me/lists';
5990
- };
5991
- export type ListListsErrors = {
5992
- /**
5993
- * Malformed request, or a cursor from another request.
5994
- */
5995
- 400: Problem;
5996
- /**
5997
- * No valid API key or session.
5998
- */
5999
- 401: Problem;
6000
- /**
6001
- * Not enough credits for this call.
6002
- */
6003
- 402: Problem;
6004
- /**
6005
- * This operation needs a dashboard session.
6006
- */
6007
- 403: Problem;
6008
- /**
6009
- * Not found, or it belongs to another workspace.
6010
- */
6011
- 404: Problem;
6012
- /**
6013
- * Conflict with the current state; `code` says which.
6014
- */
6015
- 409: Problem;
6016
- /**
6017
- * Erased or expired.
6018
- */
6019
- 410: Problem;
6020
- /**
6021
- * Validation failed; `errors[]` names each parameter or JSON pointer.
6022
- */
6023
- 422: Problem;
6024
- /**
6025
- * Too many requests; retry after `Retry-After`.
6026
- */
6027
- 429: Problem;
6028
- /**
6029
- * Internal error; quote `requestId` to support.
6030
- */
6031
- 500: Problem;
6032
- };
6033
- export type ListListsError = ListListsErrors[keyof ListListsErrors];
6034
- export type ListListsResponses = {
6035
- /**
6036
- * OK
6037
- */
6038
- 200: CursorPageOfListDto;
6039
- };
6040
- export type ListListsResponse = ListListsResponses[keyof ListListsResponses];
6041
- export type CreateListData = {
6042
- body: CreateListDto;
6043
- headers?: {
6044
- /**
6045
- * Optional replay key, retained for 24 hours.
6046
- */
6047
- 'Idempotency-Key'?: string;
6048
- };
6049
- path?: never;
6050
- query?: never;
6051
- url: '/api/v2/me/lists';
6052
- };
6053
- export type CreateListErrors = {
6054
- /**
6055
- * Malformed request, or a cursor from another request.
6056
- */
6057
- 400: Problem;
6058
- /**
6059
- * No valid API key or session.
6060
- */
6061
- 401: Problem;
6062
- /**
6063
- * Not enough credits for this call.
6064
- */
6065
- 402: Problem;
6066
- /**
6067
- * This operation needs a dashboard session.
6068
- */
6069
- 403: Problem;
6070
- /**
6071
- * Not found, or it belongs to another workspace.
6072
- */
6073
- 404: Problem;
6074
- /**
6075
- * Conflict with the current state; `code` says which.
6076
- */
6077
- 409: Problem;
6078
- /**
6079
- * Erased or expired.
6080
- */
6081
- 410: Problem;
6082
- /**
6083
- * Validation failed; `errors[]` names each parameter or JSON pointer.
6084
- */
6085
- 422: Problem;
6086
- /**
6087
- * Too many requests; retry after `Retry-After`.
6088
- */
6089
- 429: Problem;
6090
- /**
6091
- * Internal error; quote `requestId` to support.
6092
- */
6093
- 500: Problem;
6094
- };
6095
- export type CreateListError = CreateListErrors[keyof CreateListErrors];
6096
- export type CreateListResponses = {
6097
- /**
6098
- * Created
6099
- */
6100
- 201: ListDto;
6101
- };
6102
- export type CreateListResponse = CreateListResponses[keyof CreateListResponses];
6103
- export type DeleteListData = {
6104
- body?: never;
6105
- headers?: {
6106
- /**
6107
- * Optional replay key, retained for 24 hours.
6108
- */
6109
- 'Idempotency-Key'?: string;
6110
- };
6111
- path: {
6112
- /**
6113
- * Workspace resource ID.
6114
- */
6115
- id: string;
6116
- };
6117
- query?: never;
6118
- url: '/api/v2/me/lists/{id}';
6119
- };
6120
- export type DeleteListErrors = {
6121
- /**
6122
- * Malformed request, or a cursor from another request.
6123
- */
6124
- 400: Problem;
6125
- /**
6126
- * No valid API key or session.
6127
- */
6128
- 401: Problem;
6129
- /**
6130
- * Not enough credits for this call.
6131
- */
6132
- 402: Problem;
6133
- /**
6134
- * This operation needs a dashboard session.
6135
- */
6136
- 403: Problem;
6137
- /**
6138
- * Not found, or it belongs to another workspace.
6139
- */
6140
- 404: Problem;
6141
- /**
6142
- * Conflict with the current state; `code` says which.
6143
- */
6144
- 409: Problem;
6145
- /**
6146
- * Erased or expired.
6147
- */
6148
- 410: Problem;
6149
- /**
6150
- * Validation failed; `errors[]` names each parameter or JSON pointer.
6151
- */
6152
- 422: Problem;
6153
- /**
6154
- * Too many requests; retry after `Retry-After`.
6155
- */
6156
- 429: Problem;
6157
- /**
6158
- * Internal error; quote `requestId` to support.
6159
- */
6160
- 500: Problem;
6161
- };
6162
- export type DeleteListError = DeleteListErrors[keyof DeleteListErrors];
6163
- export type DeleteListResponses = {
6164
- /**
6165
- * No Content
6166
- */
6167
- 204: any;
6168
- };
6169
- export type GetListData = {
6170
- body?: never;
6171
- headers?: {
6172
- /**
6173
- * Optional replay key, retained for 24 hours.
6174
- */
6175
- 'Idempotency-Key'?: string;
6176
- };
6177
- path: {
6178
- /**
6179
- * Workspace resource ID.
6180
- */
6181
- id: string;
6182
- };
6183
- query?: never;
6184
- url: '/api/v2/me/lists/{id}';
6185
- };
6186
- export type GetListErrors = {
6187
- /**
6188
- * Malformed request, or a cursor from another request.
6189
- */
6190
- 400: Problem;
6191
- /**
6192
- * No valid API key or session.
6193
- */
6194
- 401: Problem;
6195
- /**
6196
- * Not enough credits for this call.
6197
- */
6198
- 402: Problem;
6199
- /**
6200
- * This operation needs a dashboard session.
6201
- */
6202
- 403: Problem;
6203
- /**
6204
- * Not found, or it belongs to another workspace.
6205
- */
6206
- 404: Problem;
6207
- /**
6208
- * Conflict with the current state; `code` says which.
6209
- */
6210
- 409: Problem;
6211
- /**
6212
- * Erased or expired.
6213
- */
6214
- 410: Problem;
6215
- /**
6216
- * Validation failed; `errors[]` names each parameter or JSON pointer.
6217
- */
6218
- 422: Problem;
6219
- /**
6220
- * Too many requests; retry after `Retry-After`.
6221
- */
6222
- 429: Problem;
6223
- /**
6224
- * Internal error; quote `requestId` to support.
6225
- */
6226
- 500: Problem;
6227
- };
6228
- export type GetListError = GetListErrors[keyof GetListErrors];
6229
- export type GetListResponses = {
6230
- /**
6231
- * OK
6232
- */
6233
- 200: ListDto;
6234
- };
6235
- export type GetListResponse = GetListResponses[keyof GetListResponses];
6236
- export type UpdateListData = {
6237
- body: {
6238
- name?: null | string;
6239
- color?: null | string;
6240
- };
6241
- headers?: {
6242
- /**
6243
- * Optional list revision, quoted or unquoted. If the list changed, returns 412 revision_conflict and saves nothing.
6244
- */
6245
- 'If-Match'?: string;
6246
- /**
6247
- * Optional replay key, retained for 24 hours.
6248
- */
6249
- 'Idempotency-Key'?: string;
6250
- };
6251
- path: {
6252
- /**
6253
- * Workspace resource ID.
6254
- */
6255
- id: string;
6256
- };
6257
- query?: never;
6258
- url: '/api/v2/me/lists/{id}';
6259
- };
6260
- export type UpdateListErrors = {
6261
- /**
6262
- * Malformed request, or a cursor from another request.
6263
- */
6264
- 400: Problem;
6265
- /**
6266
- * No valid API key or session.
6267
- */
6268
- 401: Problem;
6269
- /**
6270
- * Not enough credits for this call.
6271
- */
6272
- 402: Problem;
6273
- /**
6274
- * This operation needs a dashboard session.
6275
- */
6276
- 403: Problem;
6277
- /**
6278
- * Not found, or it belongs to another workspace.
6279
- */
6280
- 404: Problem;
6281
- /**
6282
- * Conflict with the current state; `code` says which.
6283
- */
6284
- 409: Problem;
6285
- /**
6286
- * Erased or expired.
6287
- */
6288
- 410: Problem;
6289
- /**
6290
- * The object changed since it was read.
6291
- */
6292
- 412: Problem;
6293
- /**
6294
- * Validation failed; `errors[]` names each parameter or JSON pointer.
6295
- */
6296
- 422: Problem;
6297
- /**
6298
- * Too many requests; retry after `Retry-After`.
6299
- */
6300
- 429: Problem;
6301
- /**
6302
- * Internal error; quote `requestId` to support.
6303
- */
6304
- 500: Problem;
6305
- };
6306
- export type UpdateListError = UpdateListErrors[keyof UpdateListErrors];
6307
- export type UpdateListResponses = {
6308
- /**
6309
- * OK
6310
- */
6311
- 200: ListDto;
6312
- };
6313
- export type UpdateListResponse = UpdateListResponses[keyof UpdateListResponses];
6314
- export type ListEntriesData = {
6315
- body?: never;
6316
- headers?: {
6317
- /**
6318
- * Optional replay key, retained for 24 hours.
6319
- */
6320
- 'Idempotency-Key'?: string;
6321
- };
6322
- path: {
6323
- /**
6324
- * Workspace resource ID.
6325
- */
6326
- id: string;
6327
- };
6328
- query?: {
6329
- /**
6330
- * Case-insensitive name text.
6331
- */
6332
- q?: string;
6333
- /**
6334
- * matched, unmatched or ambiguous.
6335
- */
6336
- match?: string;
6337
- /**
6338
- * How the entry came onto the list: manual, import, query, chat or migration.
6339
- */
6340
- origin?: string;
6341
- /**
6342
- * true returns only excluded entries, false only the others; omit for both.
6343
- */
6344
- excluded?: boolean;
6345
- /**
6346
- * Any public column path or fields.<key>; prefix with minus for descending. Empty values last.
6347
- */
6348
- sort?: string;
6349
- /**
6350
- * Page size, default 25, maximum 100. Zero returns the count.
6351
- */
6352
- limit?: number;
6353
- /**
6354
- * Opaque cursor from the previous page; expires after 24 hours.
6355
- */
6356
- cursor?: string;
6357
- /**
6358
- * Only entries added in this list's run.
6359
- */
6360
- runId?: string;
6361
- };
6362
- url: '/api/v2/me/lists/{id}/entries';
6363
- };
6364
- export type ListEntriesErrors = {
6365
- /**
6366
- * Malformed request, or a cursor from another request.
6367
- */
6368
- 400: Problem;
6369
- /**
6370
- * No valid API key or session.
6371
- */
6372
- 401: Problem;
6373
- /**
6374
- * Not enough credits for this call.
6375
- */
6376
- 402: Problem;
6377
- /**
6378
- * This operation needs a dashboard session.
6379
- */
6380
- 403: Problem;
6381
- /**
6382
- * Not found, or it belongs to another workspace.
6383
- */
6384
- 404: Problem;
6385
- /**
6386
- * Conflict with the current state; `code` says which.
6387
- */
6388
- 409: Problem;
6389
- /**
6390
- * Erased or expired.
6391
- */
6392
- 410: Problem;
6393
- /**
6394
- * Validation failed; `errors[]` names each parameter or JSON pointer.
6395
- */
6396
- 422: Problem;
6397
- /**
6398
- * Too many requests; retry after `Retry-After`.
6399
- */
6400
- 429: Problem;
6401
- /**
6402
- * Internal error; quote `requestId` to support.
6403
- */
6404
- 500: Problem;
6405
- };
6406
- export type ListEntriesError = ListEntriesErrors[keyof ListEntriesErrors];
6407
- export type ListEntriesResponses = {
6408
- /**
6409
- * OK
6410
- */
6411
- 200: CursorPageOfListEntryDto;
6412
- };
6413
- export type ListEntriesResponse = ListEntriesResponses[keyof ListEntriesResponses];
6414
- export type AddEntriesData = {
6415
- body: {
6416
- items?: null | Array<{
6417
- id?: null | string;
6418
- ownRecordId?: null | string;
6419
- ownRecord?: null | CreateOwnRecordDto;
6420
- }>;
6421
- listId?: null | string;
6422
- query?: null | {
6423
- /**
6424
- * Record type: company or person. Automatic list query rules currently support company only.
6425
- */
6426
- subject: 'company' | 'person';
6427
- where: Filter;
6428
- /**
6429
- * Filter language version; use 1.
6430
- */
6431
- filterVersion?: 1;
6432
- };
6433
- q?: null | string;
6434
- /**
6435
- * Workspace field key to a value of its configured type (string, one option, number, ISO date, boolean, an amount {cents, currency}, an ID for file, reference and member, or a sequence number {number, label} read back, "next" to give one); null clears.
6436
- */
6437
- values?: null | {
6438
- [key: string]: null | string | number | boolean | {
6439
- cents: number;
6440
- currency?: string;
6441
- } | {
6442
- number: number;
6443
- label: string;
6444
- };
6445
- };
6446
- };
6447
- headers?: {
6448
- /**
6449
- * Optional replay key, retained for 24 hours.
6450
- */
6451
- 'Idempotency-Key'?: string;
6452
- };
6453
- path: {
6454
- /**
6455
- * Workspace resource ID.
6456
- */
6457
- id: string;
6458
- };
6459
- query?: never;
6460
- url: '/api/v2/me/lists/{id}/entries';
6461
- };
6462
- export type AddEntriesErrors = {
6463
- /**
6464
- * Malformed request, or a cursor from another request.
6465
- */
6466
- 400: Problem;
6467
- /**
6468
- * No valid API key or session.
6469
- */
6470
- 401: Problem;
6471
- /**
6472
- * Not enough credits for this call.
6473
- */
6474
- 402: Problem;
6475
- /**
6476
- * This operation needs a dashboard session.
6477
- */
6478
- 403: Problem;
6479
- /**
6480
- * Not found, or it belongs to another workspace.
6481
- */
6482
- 404: Problem;
6483
- /**
6484
- * Conflict with the current state; `code` says which.
6485
- */
6486
- 409: Problem;
6487
- /**
6488
- * Erased or expired.
6489
- */
6490
- 410: Problem;
6491
- /**
6492
- * Validation failed; `errors[]` names each parameter or JSON pointer.
6493
- */
6494
- 422: Problem;
6495
- /**
6496
- * Too many requests; retry after `Retry-After`.
6497
- */
6498
- 429: Problem;
6499
- /**
6500
- * Internal error; quote `requestId` to support.
6501
- */
6502
- 500: Problem;
6503
- };
6504
- export type AddEntriesError = AddEntriesErrors[keyof AddEntriesErrors];
6505
- export type AddEntriesResponses = {
6506
- /**
6507
- * OK
6508
- */
6509
- 200: EntriesWriteDto;
6510
- /**
6511
- * Accepted
6512
- */
6513
- 202: EntriesWriteDto;
6514
- };
6515
- export type AddEntriesResponse = AddEntriesResponses[keyof AddEntriesResponses];
6516
- export type UpdateEntryData = {
6517
- body: UpdateEntryDto;
6518
- headers?: {
6519
- /**
6520
- * Optional replay key, retained for 24 hours.
6521
- */
6522
- 'Idempotency-Key'?: string;
6523
- };
6524
- path: {
6525
- /**
6526
- * Workspace resource ID.
6059
+ * Workspace resource ID.
6527
6060
  */
6528
6061
  id: string;
6529
6062
  /**
@@ -6598,81 +6131,10 @@ export type RemoveEntriesData = {
6598
6131
  /**
6599
6132
  * Filter language version; use 1.
6600
6133
  */
6601
- filterVersion?: 1;
6602
- };
6603
- q?: null | string;
6604
- };
6605
- headers?: {
6606
- /**
6607
- * Optional replay key, retained for 24 hours.
6608
- */
6609
- 'Idempotency-Key'?: string;
6610
- };
6611
- path: {
6612
- /**
6613
- * Workspace resource ID.
6614
- */
6615
- id: string;
6616
- };
6617
- query?: never;
6618
- url: '/api/v2/me/lists/{id}/entries/remove';
6619
- };
6620
- export type RemoveEntriesErrors = {
6621
- /**
6622
- * Malformed request, or a cursor from another request.
6623
- */
6624
- 400: Problem;
6625
- /**
6626
- * No valid API key or session.
6627
- */
6628
- 401: Problem;
6629
- /**
6630
- * Not enough credits for this call.
6631
- */
6632
- 402: Problem;
6633
- /**
6634
- * This operation needs a dashboard session.
6635
- */
6636
- 403: Problem;
6637
- /**
6638
- * Not found, or it belongs to another workspace.
6639
- */
6640
- 404: Problem;
6641
- /**
6642
- * Conflict with the current state; `code` says which.
6643
- */
6644
- 409: Problem;
6645
- /**
6646
- * Erased or expired.
6647
- */
6648
- 410: Problem;
6649
- /**
6650
- * Validation failed; `errors[]` names each parameter or JSON pointer.
6651
- */
6652
- 422: Problem;
6653
- /**
6654
- * Too many requests; retry after `Retry-After`.
6655
- */
6656
- 429: Problem;
6657
- /**
6658
- * Internal error; quote `requestId` to support.
6659
- */
6660
- 500: Problem;
6661
- };
6662
- export type RemoveEntriesError = RemoveEntriesErrors[keyof RemoveEntriesErrors];
6663
- export type RemoveEntriesResponses = {
6664
- /**
6665
- * OK
6666
- */
6667
- 200: EntriesWriteDto;
6668
- /**
6669
- * Accepted
6670
- */
6671
- 202: EntriesWriteDto;
6672
- };
6673
- export type RemoveEntriesResponse = RemoveEntriesResponses[keyof RemoveEntriesResponses];
6674
- export type ListColumnsData = {
6675
- body?: never;
6134
+ filterVersion?: 1;
6135
+ };
6136
+ q?: null | string;
6137
+ };
6676
6138
  headers?: {
6677
6139
  /**
6678
6140
  * Optional replay key, retained for 24 hours.
@@ -6686,9 +6148,9 @@ export type ListColumnsData = {
6686
6148
  id: string;
6687
6149
  };
6688
6150
  query?: never;
6689
- url: '/api/v2/me/lists/{id}/columns';
6151
+ url: '/api/v2/me/lists/{id}/entries/remove';
6690
6152
  };
6691
- export type ListColumnsErrors = {
6153
+ export type RemoveEntriesErrors = {
6692
6154
  /**
6693
6155
  * Malformed request, or a cursor from another request.
6694
6156
  */
@@ -6730,16 +6192,20 @@ export type ListColumnsErrors = {
6730
6192
  */
6731
6193
  500: Problem;
6732
6194
  };
6733
- export type ListColumnsError = ListColumnsErrors[keyof ListColumnsErrors];
6734
- export type ListColumnsResponses = {
6195
+ export type RemoveEntriesError = RemoveEntriesErrors[keyof RemoveEntriesErrors];
6196
+ export type RemoveEntriesResponses = {
6735
6197
  /**
6736
6198
  * OK
6737
6199
  */
6738
- 200: ColumnsDto;
6200
+ 200: EntriesWriteDto;
6201
+ /**
6202
+ * Accepted
6203
+ */
6204
+ 202: EntriesWriteDto;
6739
6205
  };
6740
- export type ListColumnsResponse = ListColumnsResponses[keyof ListColumnsResponses];
6741
- export type ReplaceColumnsData = {
6742
- body: ReplaceColumnsDto;
6206
+ export type RemoveEntriesResponse = RemoveEntriesResponses[keyof RemoveEntriesResponses];
6207
+ export type ListColumnsData = {
6208
+ body?: never;
6743
6209
  headers?: {
6744
6210
  /**
6745
6211
  * Optional replay key, retained for 24 hours.
@@ -6755,7 +6221,7 @@ export type ReplaceColumnsData = {
6755
6221
  query?: never;
6756
6222
  url: '/api/v2/me/lists/{id}/columns';
6757
6223
  };
6758
- export type ReplaceColumnsErrors = {
6224
+ export type ListColumnsErrors = {
6759
6225
  /**
6760
6226
  * Malformed request, or a cursor from another request.
6761
6227
  */
@@ -6797,16 +6263,16 @@ export type ReplaceColumnsErrors = {
6797
6263
  */
6798
6264
  500: Problem;
6799
6265
  };
6800
- export type ReplaceColumnsError = ReplaceColumnsErrors[keyof ReplaceColumnsErrors];
6801
- export type ReplaceColumnsResponses = {
6266
+ export type ListColumnsError = ListColumnsErrors[keyof ListColumnsErrors];
6267
+ export type ListColumnsResponses = {
6802
6268
  /**
6803
6269
  * OK
6804
6270
  */
6805
6271
  200: ColumnsDto;
6806
6272
  };
6807
- export type ReplaceColumnsResponse = ReplaceColumnsResponses[keyof ReplaceColumnsResponses];
6808
- export type SearchEntriesData = {
6809
- body: EntrySearchDto;
6273
+ export type ListColumnsResponse = ListColumnsResponses[keyof ListColumnsResponses];
6274
+ export type ReplaceColumnsData = {
6275
+ body: ReplaceColumnsDto;
6810
6276
  headers?: {
6811
6277
  /**
6812
6278
  * Optional replay key, retained for 24 hours.
@@ -6820,9 +6286,9 @@ export type SearchEntriesData = {
6820
6286
  id: string;
6821
6287
  };
6822
6288
  query?: never;
6823
- url: '/api/v2/me/lists/{id}/entries/search';
6289
+ url: '/api/v2/me/lists/{id}/columns';
6824
6290
  };
6825
- export type SearchEntriesErrors = {
6291
+ export type ReplaceColumnsErrors = {
6826
6292
  /**
6827
6293
  * Malformed request, or a cursor from another request.
6828
6294
  */
@@ -6864,16 +6330,16 @@ export type SearchEntriesErrors = {
6864
6330
  */
6865
6331
  500: Problem;
6866
6332
  };
6867
- export type SearchEntriesError = SearchEntriesErrors[keyof SearchEntriesErrors];
6868
- export type SearchEntriesResponses = {
6333
+ export type ReplaceColumnsError = ReplaceColumnsErrors[keyof ReplaceColumnsErrors];
6334
+ export type ReplaceColumnsResponses = {
6869
6335
  /**
6870
6336
  * OK
6871
6337
  */
6872
- 200: CursorPageOfListEntryDto;
6338
+ 200: ColumnsDto;
6873
6339
  };
6874
- export type SearchEntriesResponse = SearchEntriesResponses[keyof SearchEntriesResponses];
6875
- export type ListRunsData = {
6876
- body?: never;
6340
+ export type ReplaceColumnsResponse = ReplaceColumnsResponses[keyof ReplaceColumnsResponses];
6341
+ export type SearchEntriesData = {
6342
+ body: EntrySearchDto;
6877
6343
  headers?: {
6878
6344
  /**
6879
6345
  * Optional replay key, retained for 24 hours.
@@ -6886,27 +6352,10 @@ export type ListRunsData = {
6886
6352
  */
6887
6353
  id: string;
6888
6354
  };
6889
- query?: {
6890
- /**
6891
- * Page size, default 25, maximum 100. Zero returns the count.
6892
- */
6893
- limit?: number;
6894
- /**
6895
- * Opaque cursor from the previous page; expires after 24 hours.
6896
- */
6897
- cursor?: string;
6898
- /**
6899
- * Filter by scheduled, manual, created or entriesChanged.
6900
- */
6901
- trigger?: string;
6902
- /**
6903
- * Filter by running, succeeded, failed or skipped.
6904
- */
6905
- status?: string;
6906
- };
6907
- url: '/api/v2/me/lists/{id}/runs';
6355
+ query?: never;
6356
+ url: '/api/v2/me/lists/{id}/entries/search';
6908
6357
  };
6909
- export type ListRunsErrors = {
6358
+ export type SearchEntriesErrors = {
6910
6359
  /**
6911
6360
  * Malformed request, or a cursor from another request.
6912
6361
  */
@@ -6948,14 +6397,14 @@ export type ListRunsErrors = {
6948
6397
  */
6949
6398
  500: Problem;
6950
6399
  };
6951
- export type ListRunsError = ListRunsErrors[keyof ListRunsErrors];
6952
- export type ListRunsResponses = {
6400
+ export type SearchEntriesError = SearchEntriesErrors[keyof SearchEntriesErrors];
6401
+ export type SearchEntriesResponses = {
6953
6402
  /**
6954
6403
  * OK
6955
6404
  */
6956
- 200: CursorPageOfListRunDto;
6405
+ 200: CursorPageOfListEntryDto;
6957
6406
  };
6958
- export type ListRunsResponse = ListRunsResponses[keyof ListRunsResponses];
6407
+ export type SearchEntriesResponse = SearchEntriesResponses[keyof SearchEntriesResponses];
6959
6408
  export type ListListEventsData = {
6960
6409
  body?: never;
6961
6410
  headers?: {
@@ -6976,17 +6425,13 @@ export type ListListEventsData = {
6976
6425
  */
6977
6426
  after?: number;
6978
6427
  /**
6979
- * Comma-separated entry.added, entry.removed, run.skipped or entry.flagged.
6428
+ * Comma-separated entry.added, entry.removed or entry.flagged.
6980
6429
  */
6981
6430
  type?: string;
6982
6431
  /**
6983
6432
  * Page size, 1 to 100; default 25.
6984
6433
  */
6985
6434
  limit?: number;
6986
- /**
6987
- * Only entries added in this list's run.
6988
- */
6989
- runId?: string;
6990
6435
  };
6991
6436
  url: '/api/v2/me/lists/{id}/events';
6992
6437
  };
@@ -8697,24 +8142,13 @@ export type GetPublicSourceResponses = {
8697
8142
  200: PublicSource;
8698
8143
  };
8699
8144
  export type GetPublicSourceResponse = GetPublicSourceResponses[keyof GetPublicSourceResponses];
8700
- export type SetNotificationRulesData = {
8701
- body: SetNotificationRulesDto;
8702
- headers?: {
8703
- /**
8704
- * Optional replay key, retained for 24 hours.
8705
- */
8706
- 'Idempotency-Key'?: string;
8707
- };
8708
- path: {
8709
- /**
8710
- * Workspace resource ID.
8711
- */
8712
- id: string;
8713
- };
8145
+ export type GetLetterSetupData = {
8146
+ body?: never;
8147
+ path?: never;
8714
8148
  query?: never;
8715
- url: '/api/v2/me/lists/{id}/notification-rules';
8149
+ url: '/api/v2/me/letters/setup';
8716
8150
  };
8717
- export type SetNotificationRulesErrors = {
8151
+ export type GetLetterSetupErrors = {
8718
8152
  /**
8719
8153
  * Malformed request, or a cursor from another request.
8720
8154
  */
@@ -8723,10 +8157,6 @@ export type SetNotificationRulesErrors = {
8723
8157
  * No valid API key or session.
8724
8158
  */
8725
8159
  401: Problem;
8726
- /**
8727
- * Not enough credits for this call.
8728
- */
8729
- 402: Problem;
8730
8160
  /**
8731
8161
  * This operation needs a dashboard session.
8732
8162
  */
@@ -8739,10 +8169,6 @@ export type SetNotificationRulesErrors = {
8739
8169
  * Conflict with the current state; `code` says which.
8740
8170
  */
8741
8171
  409: Problem;
8742
- /**
8743
- * Erased or expired.
8744
- */
8745
- 410: Problem;
8746
8172
  /**
8747
8173
  * Validation failed; `errors[]` names each parameter or JSON pointer.
8748
8174
  */
@@ -8756,21 +8182,21 @@ export type SetNotificationRulesErrors = {
8756
8182
  */
8757
8183
  500: Problem;
8758
8184
  };
8759
- export type SetNotificationRulesError = SetNotificationRulesErrors[keyof SetNotificationRulesErrors];
8760
- export type SetNotificationRulesResponses = {
8185
+ export type GetLetterSetupError = GetLetterSetupErrors[keyof GetLetterSetupErrors];
8186
+ export type GetLetterSetupResponses = {
8761
8187
  /**
8762
8188
  * OK
8763
8189
  */
8764
- 200: NotificationRulesDto;
8190
+ 200: LetterSetupDto;
8765
8191
  };
8766
- export type SetNotificationRulesResponse = SetNotificationRulesResponses[keyof SetNotificationRulesResponses];
8767
- export type GetLetterSetupData = {
8768
- body?: never;
8192
+ export type GetLetterSetupResponse = GetLetterSetupResponses[keyof GetLetterSetupResponses];
8193
+ export type UpdateLetterSetupData = {
8194
+ body: UpdateLetterSetupRequest;
8769
8195
  path?: never;
8770
8196
  query?: never;
8771
8197
  url: '/api/v2/me/letters/setup';
8772
8198
  };
8773
- export type GetLetterSetupErrors = {
8199
+ export type UpdateLetterSetupErrors = {
8774
8200
  /**
8775
8201
  * Malformed request, or a cursor from another request.
8776
8202
  */
@@ -8804,14 +8230,14 @@ export type GetLetterSetupErrors = {
8804
8230
  */
8805
8231
  500: Problem;
8806
8232
  };
8807
- export type GetLetterSetupError = GetLetterSetupErrors[keyof GetLetterSetupErrors];
8808
- export type GetLetterSetupResponses = {
8233
+ export type UpdateLetterSetupError = UpdateLetterSetupErrors[keyof UpdateLetterSetupErrors];
8234
+ export type UpdateLetterSetupResponses = {
8809
8235
  /**
8810
8236
  * OK
8811
8237
  */
8812
8238
  200: LetterSetupDto;
8813
8239
  };
8814
- export type GetLetterSetupResponse = GetLetterSetupResponses[keyof GetLetterSetupResponses];
8240
+ export type UpdateLetterSetupResponse = UpdateLetterSetupResponses[keyof UpdateLetterSetupResponses];
8815
8241
  export type ListLettersData = {
8816
8242
  body?: never;
8817
8243
  path?: never;
@@ -9386,6 +8812,63 @@ export type CreateLetterSendingsResponses = {
9386
8812
  200: LetterSendResultDto;
9387
8813
  };
9388
8814
  export type CreateLetterSendingsResponse = CreateLetterSendingsResponses[keyof CreateLetterSendingsResponses];
8815
+ export type SendTemplateData = {
8816
+ body: SendTemplateBody;
8817
+ path: {
8818
+ /**
8819
+ * The Brief's ID.
8820
+ */
8821
+ id: string;
8822
+ };
8823
+ query?: never;
8824
+ url: '/api/v2/me/letters/{id}/dispatch';
8825
+ };
8826
+ export type SendTemplateErrors = {
8827
+ /**
8828
+ * Malformed request, or a cursor from another request.
8829
+ */
8830
+ 400: Problem;
8831
+ /**
8832
+ * No valid API key or session.
8833
+ */
8834
+ 401: Problem;
8835
+ /**
8836
+ * Not enough credits for this call.
8837
+ */
8838
+ 402: Problem;
8839
+ /**
8840
+ * This operation needs a dashboard session.
8841
+ */
8842
+ 403: Problem;
8843
+ /**
8844
+ * Not found, or it belongs to another workspace.
8845
+ */
8846
+ 404: Problem;
8847
+ /**
8848
+ * Conflict with the current state; `code` says which.
8849
+ */
8850
+ 409: Problem;
8851
+ /**
8852
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
8853
+ */
8854
+ 422: Problem;
8855
+ /**
8856
+ * Too many requests; retry after `Retry-After`.
8857
+ */
8858
+ 429: Problem;
8859
+ /**
8860
+ * Internal error; quote `requestId` to support.
8861
+ */
8862
+ 500: Problem;
8863
+ };
8864
+ export type SendTemplateError = SendTemplateErrors[keyof SendTemplateErrors];
8865
+ export type SendTemplateResponses = {
8866
+ /**
8867
+ * OK
8868
+ */
8869
+ 200: SendTemplateResultDto;
8870
+ };
8871
+ export type SendTemplateResponse = SendTemplateResponses[keyof SendTemplateResponses];
9389
8872
  export type ListBillingDocumentsData = {
9390
8873
  body?: never;
9391
8874
  path?: never;
@@ -9926,6 +9409,112 @@ export type UpdateBillingPartnerResponses = {
9926
9409
  200: BillingPartnerDto;
9927
9410
  };
9928
9411
  export type UpdateBillingPartnerResponse = UpdateBillingPartnerResponses[keyof UpdateBillingPartnerResponses];
9412
+ export type GetBillingPartnerDefaultsData = {
9413
+ body?: never;
9414
+ path: {
9415
+ /**
9416
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9417
+ */
9418
+ id: string;
9419
+ };
9420
+ query?: never;
9421
+ url: '/api/v2/me/billing/partners/{id}/defaults';
9422
+ };
9423
+ export type GetBillingPartnerDefaultsErrors = {
9424
+ /**
9425
+ * Malformed request, or a cursor from another request.
9426
+ */
9427
+ 400: Problem;
9428
+ /**
9429
+ * No valid API key or session.
9430
+ */
9431
+ 401: Problem;
9432
+ /**
9433
+ * This operation needs a dashboard session.
9434
+ */
9435
+ 403: Problem;
9436
+ /**
9437
+ * Not found, or it belongs to another workspace.
9438
+ */
9439
+ 404: Problem;
9440
+ /**
9441
+ * Conflict with the current state; `code` says which.
9442
+ */
9443
+ 409: Problem;
9444
+ /**
9445
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9446
+ */
9447
+ 422: Problem;
9448
+ /**
9449
+ * Too many requests; retry after `Retry-After`.
9450
+ */
9451
+ 429: Problem;
9452
+ /**
9453
+ * Internal error; quote `requestId` to support.
9454
+ */
9455
+ 500: Problem;
9456
+ };
9457
+ export type GetBillingPartnerDefaultsError = GetBillingPartnerDefaultsErrors[keyof GetBillingPartnerDefaultsErrors];
9458
+ export type GetBillingPartnerDefaultsResponses = {
9459
+ /**
9460
+ * OK
9461
+ */
9462
+ 200: BillingPartnerDefaultsDto;
9463
+ };
9464
+ export type GetBillingPartnerDefaultsResponse = GetBillingPartnerDefaultsResponses[keyof GetBillingPartnerDefaultsResponses];
9465
+ export type UpdateBillingPartnerDefaultsData = {
9466
+ body: UpdateBillingPartnerDefaultsBody;
9467
+ path: {
9468
+ /**
9469
+ * A company's Firmenakte-ID or an own entry's ID.
9470
+ */
9471
+ id: string;
9472
+ };
9473
+ query?: never;
9474
+ url: '/api/v2/me/billing/partners/{id}/defaults';
9475
+ };
9476
+ export type UpdateBillingPartnerDefaultsErrors = {
9477
+ /**
9478
+ * Malformed request, or a cursor from another request.
9479
+ */
9480
+ 400: Problem;
9481
+ /**
9482
+ * No valid API key or session.
9483
+ */
9484
+ 401: Problem;
9485
+ /**
9486
+ * This operation needs a dashboard session.
9487
+ */
9488
+ 403: Problem;
9489
+ /**
9490
+ * Not found, or it belongs to another workspace.
9491
+ */
9492
+ 404: Problem;
9493
+ /**
9494
+ * Conflict with the current state; `code` says which.
9495
+ */
9496
+ 409: Problem;
9497
+ /**
9498
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9499
+ */
9500
+ 422: Problem;
9501
+ /**
9502
+ * Too many requests; retry after `Retry-After`.
9503
+ */
9504
+ 429: Problem;
9505
+ /**
9506
+ * Internal error; quote `requestId` to support.
9507
+ */
9508
+ 500: Problem;
9509
+ };
9510
+ export type UpdateBillingPartnerDefaultsError = UpdateBillingPartnerDefaultsErrors[keyof UpdateBillingPartnerDefaultsErrors];
9511
+ export type UpdateBillingPartnerDefaultsResponses = {
9512
+ /**
9513
+ * OK
9514
+ */
9515
+ 200: BillingPartnerDefaultsDto;
9516
+ };
9517
+ export type UpdateBillingPartnerDefaultsResponse = UpdateBillingPartnerDefaultsResponses[keyof UpdateBillingPartnerDefaultsResponses];
9929
9518
  export type GetBillingSummaryData = {
9930
9519
  body?: never;
9931
9520
  path?: never;
@@ -9992,9 +9581,9 @@ export type ListBillingExportsData = {
9992
9581
  path?: never;
9993
9582
  query?: {
9994
9583
  /**
9995
- * month (default) or quarter.
9584
+ * month (default), quarter or year.
9996
9585
  */
9997
- kind?: 'month' | 'quarter';
9586
+ kind?: 'month' | 'quarter' | 'year';
9998
9587
  /**
9999
9588
  * Page size, default 12, maximum 60.
10000
9589
  */
@@ -10052,7 +9641,7 @@ export type GetBillingExportFileData = {
10052
9641
  body?: never;
10053
9642
  path: {
10054
9643
  /**
10055
- * The period: YYYY-MM for a month, YYYY-Qn for a quarter.
9644
+ * The period: YYYY-MM for a month, YYYY-Qn for a quarter, YYYY for a year.
10056
9645
  */
10057
9646
  period: string;
10058
9647
  };
@@ -11504,6 +11093,14 @@ export type ListBankTransactionsData = {
11504
11093
  * Searches counterparty and reference.
11505
11094
  */
11506
11095
  q?: string;
11096
+ /**
11097
+ * Booked on or after this day, YYYY-MM-DD.
11098
+ */
11099
+ from?: string;
11100
+ /**
11101
+ * Booked on or before this day, YYYY-MM-DD.
11102
+ */
11103
+ to?: string;
11507
11104
  /**
11508
11105
  * Page size: bookings and Konten default 50, at most 200; candidates default 10, at most 50.
11509
11106
  */