@spaceinvoices/js-sdk 14.32.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/generated/files/files.d.cts +2 -3
  2. package/dist/generated/files/files.d.ts +2 -3
  3. package/dist/generated/model/createWebhookBody.d.cts +1 -1
  4. package/dist/generated/model/createWebhookBody.d.ts +1 -1
  5. package/dist/generated/model/createWebhookBodyEventsItem.d.cts +36 -0
  6. package/dist/generated/model/createWebhookBodyEventsItem.d.ts +36 -0
  7. package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +36 -0
  8. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +36 -0
  9. package/dist/generated/model/uploadExpenseAttachmentBody.d.cts +1 -1
  10. package/dist/generated/model/uploadExpenseAttachmentBody.d.ts +1 -1
  11. package/dist/generated/model/uploadFileBody.d.cts +1 -1
  12. package/dist/generated/model/uploadFileBody.d.ts +1 -1
  13. package/dist/generated/model/uploadFinaCertificateBody.d.cts +2 -2
  14. package/dist/generated/model/uploadFinaCertificateBody.d.ts +2 -2
  15. package/dist/generated/model/uploadFursCertificateBody.d.cts +2 -2
  16. package/dist/generated/model/uploadFursCertificateBody.d.ts +2 -2
  17. package/dist/generated/model/webhookResponseEventsItem.d.cts +36 -0
  18. package/dist/generated/model/webhookResponseEventsItem.d.ts +36 -0
  19. package/dist/generated/model/webhookWithSecretEventsItem.d.cts +36 -0
  20. package/dist/generated/model/webhookWithSecretEventsItem.d.ts +36 -0
  21. package/dist/generated/upload/upload.d.cts +4 -5
  22. package/dist/generated/upload/upload.d.ts +4 -5
  23. package/dist/generated-zod/expenses/expenses.d.cts +1 -1
  24. package/dist/generated-zod/expenses/expenses.d.ts +1 -1
  25. package/dist/generated-zod/files/files.d.cts +3 -4
  26. package/dist/generated-zod/files/files.d.ts +3 -4
  27. package/dist/generated-zod/fina-certificate/fina-certificate.d.cts +2 -2
  28. package/dist/generated-zod/fina-certificate/fina-certificate.d.ts +2 -2
  29. package/dist/generated-zod/furs-certificate/furs-certificate.d.cts +2 -2
  30. package/dist/generated-zod/furs-certificate/furs-certificate.d.ts +2 -2
  31. package/dist/generated-zod/upload/upload.d.cts +4 -5
  32. package/dist/generated-zod/upload/upload.d.ts +4 -5
  33. package/dist/generated-zod/webhooks/webhooks.d.cts +216 -0
  34. package/dist/generated-zod/webhooks/webhooks.d.ts +216 -0
  35. package/dist/index.cjs +3 -3
  36. package/dist/index.js +3 -3
  37. package/dist/sdk/index.cjs +1 -1
  38. package/dist/sdk/index.js +1 -1
  39. package/dist/sdk-runtime.cjs +1 -1
  40. package/dist/sdk-runtime.js +1 -1
  41. package/package.json +1 -1
@@ -7,9 +7,8 @@
7
7
  */
8
8
  import type { Error, FileMetadata, GetFiles200, GetFilesParams, UploadFileBody, ValidationError } from '../model/index.cjs';
9
9
  /**
10
- * Upload a file (logo, signature, or attachment) to cloud storage.
11
- Files are automatically optimized and stored in entity-specific folders.
12
- Logos and signatures are entity-level (one per entity), while attachments can be associated with specific documents.
10
+ * Upload a logo, signature, or attachment with explicit file metadata. Set category to logo for logo uploads. The x-entity-id header selects the entity, and business_unit_id can assign a logo to a business unit.
11
+ Files are automatically optimized and stored in entity-specific folders. Entity-level logos and signatures replace the existing file in the same category, while attachments can be associated with specific documents.
13
12
  * @summary Upload a file
14
13
  */
15
14
  export type uploadFileResponse201 = {
@@ -7,9 +7,8 @@
7
7
  */
8
8
  import type { Error, FileMetadata, GetFiles200, GetFilesParams, UploadFileBody, ValidationError } from '../model/index.js';
9
9
  /**
10
- * Upload a file (logo, signature, or attachment) to cloud storage.
11
- Files are automatically optimized and stored in entity-specific folders.
12
- Logos and signatures are entity-level (one per entity), while attachments can be associated with specific documents.
10
+ * Upload a logo, signature, or attachment with explicit file metadata. Set category to logo for logo uploads. The x-entity-id header selects the entity, and business_unit_id can assign a logo to a business unit.
11
+ Files are automatically optimized and stored in entity-specific folders. Entity-level logos and signatures replace the existing file in the same category, while attachments can be associated with specific documents.
13
12
  * @summary Upload a file
14
13
  */
15
14
  export type uploadFileResponse201 = {
@@ -19,7 +19,7 @@ export type CreateWebhookBody = {
19
19
  */
20
20
  description?: string;
21
21
  /**
22
- * Events that trigger this webhook
22
+ * Events that trigger this webhook. Use an exact event name, `<resource>.*` for every event of one resource, `document.<action>` or `document.*` for every document type, or `*` for every event.
23
23
  * @minItems 1
24
24
  */
25
25
  events: CreateWebhookBodyEventsItem[];
@@ -19,7 +19,7 @@ export type CreateWebhookBody = {
19
19
  */
20
20
  description?: string;
21
21
  /**
22
- * Events that trigger this webhook
22
+ * Events that trigger this webhook. Use an exact event name, `<resource>.*` for every event of one resource, `document.<action>` or `document.*` for every document type, or `*` for every event.
23
23
  * @minItems 1
24
24
  */
25
25
  events: CreateWebhookBodyEventsItem[];
@@ -108,4 +108,40 @@ export declare const CreateWebhookBodyEventsItem: {
108
108
  readonly emailopened: "email.opened";
109
109
  readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
110
110
  readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
111
+ readonly '*': "*";
112
+ readonly 'document*': "document.*";
113
+ readonly documentcreated: "document.created";
114
+ readonly documentupdated: "document.updated";
115
+ readonly documentsent: "document.sent";
116
+ readonly documentpaid: "document.paid";
117
+ readonly documentoverdue: "document.overdue";
118
+ readonly documentcancelled: "document.cancelled";
119
+ readonly documentdeleted: "document.deleted";
120
+ readonly documentrestored: "document.restored";
121
+ readonly documentvoided: "document.voided";
122
+ readonly documentfinalized: "document.finalized";
123
+ readonly documentaccepted: "document.accepted";
124
+ readonly documentrejected: "document.rejected";
125
+ readonly documentissued: "document.issued";
126
+ readonly documentapplied: "document.applied";
127
+ readonly 'invoice*': "invoice.*";
128
+ readonly 'customer*': "customer.*";
129
+ readonly 'payment*': "payment.*";
130
+ readonly 'estimate*': "estimate.*";
131
+ readonly 'credit_note*': "credit_note.*";
132
+ readonly 'advance_invoice*': "advance_invoice.*";
133
+ readonly 'item*': "item.*";
134
+ readonly 'tax*': "tax.*";
135
+ readonly 'recurring_invoice*': "recurring_invoice.*";
136
+ readonly 'stripe_app*': "stripe_app.*";
137
+ readonly 'order*': "order.*";
138
+ readonly 'order_integration*': "order_integration.*";
139
+ readonly 'delivery_note*': "delivery_note.*";
140
+ readonly 'expense*': "expense.*";
141
+ readonly 'e_invoicingsubmission*': "e_invoicing.submission.*";
142
+ readonly 'e_invoicingenrollment*': "e_invoicing.enrollment.*";
143
+ readonly 'e_invoicingsupplier*': "e_invoicing.supplier.*";
144
+ readonly 'ksefsubmission*': "ksef.submission.*";
145
+ readonly 'email*': "email.*";
146
+ readonly 'fiscalization*': "fiscalization.*";
111
147
  };
@@ -108,4 +108,40 @@ export declare const CreateWebhookBodyEventsItem: {
108
108
  readonly emailopened: "email.opened";
109
109
  readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
110
110
  readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
111
+ readonly '*': "*";
112
+ readonly 'document*': "document.*";
113
+ readonly documentcreated: "document.created";
114
+ readonly documentupdated: "document.updated";
115
+ readonly documentsent: "document.sent";
116
+ readonly documentpaid: "document.paid";
117
+ readonly documentoverdue: "document.overdue";
118
+ readonly documentcancelled: "document.cancelled";
119
+ readonly documentdeleted: "document.deleted";
120
+ readonly documentrestored: "document.restored";
121
+ readonly documentvoided: "document.voided";
122
+ readonly documentfinalized: "document.finalized";
123
+ readonly documentaccepted: "document.accepted";
124
+ readonly documentrejected: "document.rejected";
125
+ readonly documentissued: "document.issued";
126
+ readonly documentapplied: "document.applied";
127
+ readonly 'invoice*': "invoice.*";
128
+ readonly 'customer*': "customer.*";
129
+ readonly 'payment*': "payment.*";
130
+ readonly 'estimate*': "estimate.*";
131
+ readonly 'credit_note*': "credit_note.*";
132
+ readonly 'advance_invoice*': "advance_invoice.*";
133
+ readonly 'item*': "item.*";
134
+ readonly 'tax*': "tax.*";
135
+ readonly 'recurring_invoice*': "recurring_invoice.*";
136
+ readonly 'stripe_app*': "stripe_app.*";
137
+ readonly 'order*': "order.*";
138
+ readonly 'order_integration*': "order_integration.*";
139
+ readonly 'delivery_note*': "delivery_note.*";
140
+ readonly 'expense*': "expense.*";
141
+ readonly 'e_invoicingsubmission*': "e_invoicing.submission.*";
142
+ readonly 'e_invoicingenrollment*': "e_invoicing.enrollment.*";
143
+ readonly 'e_invoicingsupplier*': "e_invoicing.supplier.*";
144
+ readonly 'ksefsubmission*': "ksef.submission.*";
145
+ readonly 'email*': "email.*";
146
+ readonly 'fiscalization*': "fiscalization.*";
111
147
  };
@@ -108,4 +108,40 @@ export declare const UpdateWebhookBodyEventsItem: {
108
108
  readonly emailopened: "email.opened";
109
109
  readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
110
110
  readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
111
+ readonly '*': "*";
112
+ readonly 'document*': "document.*";
113
+ readonly documentcreated: "document.created";
114
+ readonly documentupdated: "document.updated";
115
+ readonly documentsent: "document.sent";
116
+ readonly documentpaid: "document.paid";
117
+ readonly documentoverdue: "document.overdue";
118
+ readonly documentcancelled: "document.cancelled";
119
+ readonly documentdeleted: "document.deleted";
120
+ readonly documentrestored: "document.restored";
121
+ readonly documentvoided: "document.voided";
122
+ readonly documentfinalized: "document.finalized";
123
+ readonly documentaccepted: "document.accepted";
124
+ readonly documentrejected: "document.rejected";
125
+ readonly documentissued: "document.issued";
126
+ readonly documentapplied: "document.applied";
127
+ readonly 'invoice*': "invoice.*";
128
+ readonly 'customer*': "customer.*";
129
+ readonly 'payment*': "payment.*";
130
+ readonly 'estimate*': "estimate.*";
131
+ readonly 'credit_note*': "credit_note.*";
132
+ readonly 'advance_invoice*': "advance_invoice.*";
133
+ readonly 'item*': "item.*";
134
+ readonly 'tax*': "tax.*";
135
+ readonly 'recurring_invoice*': "recurring_invoice.*";
136
+ readonly 'stripe_app*': "stripe_app.*";
137
+ readonly 'order*': "order.*";
138
+ readonly 'order_integration*': "order_integration.*";
139
+ readonly 'delivery_note*': "delivery_note.*";
140
+ readonly 'expense*': "expense.*";
141
+ readonly 'e_invoicingsubmission*': "e_invoicing.submission.*";
142
+ readonly 'e_invoicingenrollment*': "e_invoicing.enrollment.*";
143
+ readonly 'e_invoicingsupplier*': "e_invoicing.supplier.*";
144
+ readonly 'ksefsubmission*': "ksef.submission.*";
145
+ readonly 'email*': "email.*";
146
+ readonly 'fiscalization*': "fiscalization.*";
111
147
  };
@@ -108,4 +108,40 @@ export declare const UpdateWebhookBodyEventsItem: {
108
108
  readonly emailopened: "email.opened";
109
109
  readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
110
110
  readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
111
+ readonly '*': "*";
112
+ readonly 'document*': "document.*";
113
+ readonly documentcreated: "document.created";
114
+ readonly documentupdated: "document.updated";
115
+ readonly documentsent: "document.sent";
116
+ readonly documentpaid: "document.paid";
117
+ readonly documentoverdue: "document.overdue";
118
+ readonly documentcancelled: "document.cancelled";
119
+ readonly documentdeleted: "document.deleted";
120
+ readonly documentrestored: "document.restored";
121
+ readonly documentvoided: "document.voided";
122
+ readonly documentfinalized: "document.finalized";
123
+ readonly documentaccepted: "document.accepted";
124
+ readonly documentrejected: "document.rejected";
125
+ readonly documentissued: "document.issued";
126
+ readonly documentapplied: "document.applied";
127
+ readonly 'invoice*': "invoice.*";
128
+ readonly 'customer*': "customer.*";
129
+ readonly 'payment*': "payment.*";
130
+ readonly 'estimate*': "estimate.*";
131
+ readonly 'credit_note*': "credit_note.*";
132
+ readonly 'advance_invoice*': "advance_invoice.*";
133
+ readonly 'item*': "item.*";
134
+ readonly 'tax*': "tax.*";
135
+ readonly 'recurring_invoice*': "recurring_invoice.*";
136
+ readonly 'stripe_app*': "stripe_app.*";
137
+ readonly 'order*': "order.*";
138
+ readonly 'order_integration*': "order_integration.*";
139
+ readonly 'delivery_note*': "delivery_note.*";
140
+ readonly 'expense*': "expense.*";
141
+ readonly 'e_invoicingsubmission*': "e_invoicing.submission.*";
142
+ readonly 'e_invoicingenrollment*': "e_invoicing.enrollment.*";
143
+ readonly 'e_invoicingsupplier*': "e_invoicing.supplier.*";
144
+ readonly 'ksefsubmission*': "ksef.submission.*";
145
+ readonly 'email*': "email.*";
146
+ readonly 'fiscalization*': "fiscalization.*";
111
147
  };
@@ -6,5 +6,5 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  export type UploadExpenseAttachmentBody = {
9
- file?: Blob;
9
+ file: Blob;
10
10
  };
@@ -6,5 +6,5 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  export type UploadExpenseAttachmentBody = {
9
- file?: Blob;
9
+ file: Blob;
10
10
  };
@@ -8,7 +8,7 @@
8
8
  import type { UploadFileBodyCategory } from './uploadFileBodyCategory.cjs';
9
9
  export type UploadFileBody = {
10
10
  /** File to upload */
11
- file?: Blob;
11
+ file: Blob;
12
12
  /** File category (logo, signature, or attachment) */
13
13
  category: UploadFileBodyCategory;
14
14
  /**
@@ -8,7 +8,7 @@
8
8
  import type { UploadFileBodyCategory } from './uploadFileBodyCategory.js';
9
9
  export type UploadFileBody = {
10
10
  /** File to upload */
11
- file?: Blob;
11
+ file: Blob;
12
12
  /** File category (logo, signature, or attachment) */
13
13
  category: UploadFileBodyCategory;
14
14
  /**
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export type UploadFinaCertificateBody = {
9
9
  /** P12/PFX certificate file */
10
- file?: Blob;
10
+ file: Blob;
11
11
  /** Certificate passphrase (will be encrypted before storage) */
12
- passphrase?: string;
12
+ passphrase: string;
13
13
  };
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export type UploadFinaCertificateBody = {
9
9
  /** P12/PFX certificate file */
10
- file?: Blob;
10
+ file: Blob;
11
11
  /** Certificate passphrase (will be encrypted before storage) */
12
- passphrase?: string;
12
+ passphrase: string;
13
13
  };
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export type UploadFursCertificateBody = {
9
9
  /** P12/PFX certificate file */
10
- file?: Blob;
10
+ file: Blob;
11
11
  /** Certificate passphrase (will be encrypted before storage) */
12
- passphrase?: string;
12
+ passphrase: string;
13
13
  };
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export type UploadFursCertificateBody = {
9
9
  /** P12/PFX certificate file */
10
- file?: Blob;
10
+ file: Blob;
11
11
  /** Certificate passphrase (will be encrypted before storage) */
12
- passphrase?: string;
12
+ passphrase: string;
13
13
  };
@@ -108,4 +108,40 @@ export declare const WebhookResponseEventsItem: {
108
108
  readonly emailopened: "email.opened";
109
109
  readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
110
110
  readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
111
+ readonly '*': "*";
112
+ readonly 'document*': "document.*";
113
+ readonly documentcreated: "document.created";
114
+ readonly documentupdated: "document.updated";
115
+ readonly documentsent: "document.sent";
116
+ readonly documentpaid: "document.paid";
117
+ readonly documentoverdue: "document.overdue";
118
+ readonly documentcancelled: "document.cancelled";
119
+ readonly documentdeleted: "document.deleted";
120
+ readonly documentrestored: "document.restored";
121
+ readonly documentvoided: "document.voided";
122
+ readonly documentfinalized: "document.finalized";
123
+ readonly documentaccepted: "document.accepted";
124
+ readonly documentrejected: "document.rejected";
125
+ readonly documentissued: "document.issued";
126
+ readonly documentapplied: "document.applied";
127
+ readonly 'invoice*': "invoice.*";
128
+ readonly 'customer*': "customer.*";
129
+ readonly 'payment*': "payment.*";
130
+ readonly 'estimate*': "estimate.*";
131
+ readonly 'credit_note*': "credit_note.*";
132
+ readonly 'advance_invoice*': "advance_invoice.*";
133
+ readonly 'item*': "item.*";
134
+ readonly 'tax*': "tax.*";
135
+ readonly 'recurring_invoice*': "recurring_invoice.*";
136
+ readonly 'stripe_app*': "stripe_app.*";
137
+ readonly 'order*': "order.*";
138
+ readonly 'order_integration*': "order_integration.*";
139
+ readonly 'delivery_note*': "delivery_note.*";
140
+ readonly 'expense*': "expense.*";
141
+ readonly 'e_invoicingsubmission*': "e_invoicing.submission.*";
142
+ readonly 'e_invoicingenrollment*': "e_invoicing.enrollment.*";
143
+ readonly 'e_invoicingsupplier*': "e_invoicing.supplier.*";
144
+ readonly 'ksefsubmission*': "ksef.submission.*";
145
+ readonly 'email*': "email.*";
146
+ readonly 'fiscalization*': "fiscalization.*";
111
147
  };
@@ -108,4 +108,40 @@ export declare const WebhookResponseEventsItem: {
108
108
  readonly emailopened: "email.opened";
109
109
  readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
110
110
  readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
111
+ readonly '*': "*";
112
+ readonly 'document*': "document.*";
113
+ readonly documentcreated: "document.created";
114
+ readonly documentupdated: "document.updated";
115
+ readonly documentsent: "document.sent";
116
+ readonly documentpaid: "document.paid";
117
+ readonly documentoverdue: "document.overdue";
118
+ readonly documentcancelled: "document.cancelled";
119
+ readonly documentdeleted: "document.deleted";
120
+ readonly documentrestored: "document.restored";
121
+ readonly documentvoided: "document.voided";
122
+ readonly documentfinalized: "document.finalized";
123
+ readonly documentaccepted: "document.accepted";
124
+ readonly documentrejected: "document.rejected";
125
+ readonly documentissued: "document.issued";
126
+ readonly documentapplied: "document.applied";
127
+ readonly 'invoice*': "invoice.*";
128
+ readonly 'customer*': "customer.*";
129
+ readonly 'payment*': "payment.*";
130
+ readonly 'estimate*': "estimate.*";
131
+ readonly 'credit_note*': "credit_note.*";
132
+ readonly 'advance_invoice*': "advance_invoice.*";
133
+ readonly 'item*': "item.*";
134
+ readonly 'tax*': "tax.*";
135
+ readonly 'recurring_invoice*': "recurring_invoice.*";
136
+ readonly 'stripe_app*': "stripe_app.*";
137
+ readonly 'order*': "order.*";
138
+ readonly 'order_integration*': "order_integration.*";
139
+ readonly 'delivery_note*': "delivery_note.*";
140
+ readonly 'expense*': "expense.*";
141
+ readonly 'e_invoicingsubmission*': "e_invoicing.submission.*";
142
+ readonly 'e_invoicingenrollment*': "e_invoicing.enrollment.*";
143
+ readonly 'e_invoicingsupplier*': "e_invoicing.supplier.*";
144
+ readonly 'ksefsubmission*': "ksef.submission.*";
145
+ readonly 'email*': "email.*";
146
+ readonly 'fiscalization*': "fiscalization.*";
111
147
  };
@@ -108,4 +108,40 @@ export declare const WebhookWithSecretEventsItem: {
108
108
  readonly emailopened: "email.opened";
109
109
  readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
110
110
  readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
111
+ readonly '*': "*";
112
+ readonly 'document*': "document.*";
113
+ readonly documentcreated: "document.created";
114
+ readonly documentupdated: "document.updated";
115
+ readonly documentsent: "document.sent";
116
+ readonly documentpaid: "document.paid";
117
+ readonly documentoverdue: "document.overdue";
118
+ readonly documentcancelled: "document.cancelled";
119
+ readonly documentdeleted: "document.deleted";
120
+ readonly documentrestored: "document.restored";
121
+ readonly documentvoided: "document.voided";
122
+ readonly documentfinalized: "document.finalized";
123
+ readonly documentaccepted: "document.accepted";
124
+ readonly documentrejected: "document.rejected";
125
+ readonly documentissued: "document.issued";
126
+ readonly documentapplied: "document.applied";
127
+ readonly 'invoice*': "invoice.*";
128
+ readonly 'customer*': "customer.*";
129
+ readonly 'payment*': "payment.*";
130
+ readonly 'estimate*': "estimate.*";
131
+ readonly 'credit_note*': "credit_note.*";
132
+ readonly 'advance_invoice*': "advance_invoice.*";
133
+ readonly 'item*': "item.*";
134
+ readonly 'tax*': "tax.*";
135
+ readonly 'recurring_invoice*': "recurring_invoice.*";
136
+ readonly 'stripe_app*': "stripe_app.*";
137
+ readonly 'order*': "order.*";
138
+ readonly 'order_integration*': "order_integration.*";
139
+ readonly 'delivery_note*': "delivery_note.*";
140
+ readonly 'expense*': "expense.*";
141
+ readonly 'e_invoicingsubmission*': "e_invoicing.submission.*";
142
+ readonly 'e_invoicingenrollment*': "e_invoicing.enrollment.*";
143
+ readonly 'e_invoicingsupplier*': "e_invoicing.supplier.*";
144
+ readonly 'ksefsubmission*': "ksef.submission.*";
145
+ readonly 'email*': "email.*";
146
+ readonly 'fiscalization*': "fiscalization.*";
111
147
  };
@@ -108,4 +108,40 @@ export declare const WebhookWithSecretEventsItem: {
108
108
  readonly emailopened: "email.opened";
109
109
  readonly fiscalizationcertificate_expiring: "fiscalization.certificate_expiring";
110
110
  readonly fiscalizationcertificate_expired: "fiscalization.certificate_expired";
111
+ readonly '*': "*";
112
+ readonly 'document*': "document.*";
113
+ readonly documentcreated: "document.created";
114
+ readonly documentupdated: "document.updated";
115
+ readonly documentsent: "document.sent";
116
+ readonly documentpaid: "document.paid";
117
+ readonly documentoverdue: "document.overdue";
118
+ readonly documentcancelled: "document.cancelled";
119
+ readonly documentdeleted: "document.deleted";
120
+ readonly documentrestored: "document.restored";
121
+ readonly documentvoided: "document.voided";
122
+ readonly documentfinalized: "document.finalized";
123
+ readonly documentaccepted: "document.accepted";
124
+ readonly documentrejected: "document.rejected";
125
+ readonly documentissued: "document.issued";
126
+ readonly documentapplied: "document.applied";
127
+ readonly 'invoice*': "invoice.*";
128
+ readonly 'customer*': "customer.*";
129
+ readonly 'payment*': "payment.*";
130
+ readonly 'estimate*': "estimate.*";
131
+ readonly 'credit_note*': "credit_note.*";
132
+ readonly 'advance_invoice*': "advance_invoice.*";
133
+ readonly 'item*': "item.*";
134
+ readonly 'tax*': "tax.*";
135
+ readonly 'recurring_invoice*': "recurring_invoice.*";
136
+ readonly 'stripe_app*': "stripe_app.*";
137
+ readonly 'order*': "order.*";
138
+ readonly 'order_integration*': "order_integration.*";
139
+ readonly 'delivery_note*': "delivery_note.*";
140
+ readonly 'expense*': "expense.*";
141
+ readonly 'e_invoicingsubmission*': "e_invoicing.submission.*";
142
+ readonly 'e_invoicingenrollment*': "e_invoicing.enrollment.*";
143
+ readonly 'e_invoicingsupplier*': "e_invoicing.supplier.*";
144
+ readonly 'ksefsubmission*': "ksef.submission.*";
145
+ readonly 'email*': "email.*";
146
+ readonly 'fiscalization*': "fiscalization.*";
111
147
  };
@@ -7,11 +7,10 @@
7
7
  */
8
8
  import type { Error, UploadImage200, UploadImageBody, ValidationError } from '../model/index.cjs';
9
9
  /**
10
- * Upload an image file to cloud storage.
11
- Supports PNG, JPG, WEBP, and GIF formats. Maximum file size: 5MB.
12
- Images are automatically optimized and stored in entity-specific folders.
13
- Returns secure URLs for use in entity settings, invoices, and other documents.
14
- * @summary Upload image
10
+ * Upload or replace the current entity logo. The x-entity-id header selects the entity whose logo is updated.
11
+ Supports PNG, JPG, WEBP, and GIF formats. Maximum file size: 10MB.
12
+ The image is automatically optimized, the previous entity logo is replaced, and secure URLs are returned for entity settings, invoices, and other documents.
13
+ * @summary Upload an entity logo
15
14
  */
16
15
  export type uploadImageResponse200 = {
17
16
  data: UploadImage200;
@@ -7,11 +7,10 @@
7
7
  */
8
8
  import type { Error, UploadImage200, UploadImageBody, ValidationError } from '../model/index.js';
9
9
  /**
10
- * Upload an image file to cloud storage.
11
- Supports PNG, JPG, WEBP, and GIF formats. Maximum file size: 5MB.
12
- Images are automatically optimized and stored in entity-specific folders.
13
- Returns secure URLs for use in entity settings, invoices, and other documents.
14
- * @summary Upload image
10
+ * Upload or replace the current entity logo. The x-entity-id header selects the entity whose logo is updated.
11
+ Supports PNG, JPG, WEBP, and GIF formats. Maximum file size: 10MB.
12
+ The image is automatically optimized, the previous entity logo is replaced, and secure URLs are returned for entity settings, invoices, and other documents.
13
+ * @summary Upload an entity logo
15
14
  */
16
15
  export type uploadImageResponse200 = {
17
16
  data: UploadImage200;
@@ -3360,7 +3360,7 @@ export declare const UploadExpenseAttachmentHeader: zod.ZodObject<{
3360
3360
  "x-entity-id": zod.ZodOptional<zod.ZodString>;
3361
3361
  }, zod.z.core.$strip>;
3362
3362
  export declare const UploadExpenseAttachmentBody: zod.ZodObject<{
3363
- file: zod.ZodOptional<zod.ZodCustom<File, File>>;
3363
+ file: zod.ZodCustom<File, File>;
3364
3364
  }, zod.z.core.$strip>;
3365
3365
  /**
3366
3366
  * @summary List expense attachments
@@ -3360,7 +3360,7 @@ export declare const UploadExpenseAttachmentHeader: zod.ZodObject<{
3360
3360
  "x-entity-id": zod.ZodOptional<zod.ZodString>;
3361
3361
  }, zod.z.core.$strip>;
3362
3362
  export declare const UploadExpenseAttachmentBody: zod.ZodObject<{
3363
- file: zod.ZodOptional<zod.ZodCustom<File, File>>;
3363
+ file: zod.ZodCustom<File, File>;
3364
3364
  }, zod.z.core.$strip>;
3365
3365
  /**
3366
3366
  * @summary List expense attachments
@@ -7,16 +7,15 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  /**
10
- * Upload a file (logo, signature, or attachment) to cloud storage.
11
- Files are automatically optimized and stored in entity-specific folders.
12
- Logos and signatures are entity-level (one per entity), while attachments can be associated with specific documents.
10
+ * Upload a logo, signature, or attachment with explicit file metadata. Set category to logo for logo uploads. The x-entity-id header selects the entity, and business_unit_id can assign a logo to a business unit.
11
+ Files are automatically optimized and stored in entity-specific folders. Entity-level logos and signatures replace the existing file in the same category, while attachments can be associated with specific documents.
13
12
  * @summary Upload a file
14
13
  */
15
14
  export declare const UploadFileHeader: zod.ZodObject<{
16
15
  "x-entity-id": zod.ZodOptional<zod.ZodString>;
17
16
  }, zod.z.core.$strip>;
18
17
  export declare const UploadFileBody: zod.ZodObject<{
19
- file: zod.ZodOptional<zod.ZodCustom<File, File>>;
18
+ file: zod.ZodCustom<File, File>;
20
19
  category: zod.ZodEnum<{
21
20
  attachment: "attachment";
22
21
  logo: "logo";
@@ -7,16 +7,15 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  /**
10
- * Upload a file (logo, signature, or attachment) to cloud storage.
11
- Files are automatically optimized and stored in entity-specific folders.
12
- Logos and signatures are entity-level (one per entity), while attachments can be associated with specific documents.
10
+ * Upload a logo, signature, or attachment with explicit file metadata. Set category to logo for logo uploads. The x-entity-id header selects the entity, and business_unit_id can assign a logo to a business unit.
11
+ Files are automatically optimized and stored in entity-specific folders. Entity-level logos and signatures replace the existing file in the same category, while attachments can be associated with specific documents.
13
12
  * @summary Upload a file
14
13
  */
15
14
  export declare const UploadFileHeader: zod.ZodObject<{
16
15
  "x-entity-id": zod.ZodOptional<zod.ZodString>;
17
16
  }, zod.z.core.$strip>;
18
17
  export declare const UploadFileBody: zod.ZodObject<{
19
- file: zod.ZodOptional<zod.ZodCustom<File, File>>;
18
+ file: zod.ZodCustom<File, File>;
20
19
  category: zod.ZodEnum<{
21
20
  attachment: "attachment";
22
21
  logo: "logo";
@@ -14,8 +14,8 @@ export declare const UploadFinaCertificateHeader: zod.ZodObject<{
14
14
  "x-entity-id": zod.ZodOptional<zod.ZodString>;
15
15
  }, zod.z.core.$strip>;
16
16
  export declare const UploadFinaCertificateBody: zod.ZodObject<{
17
- file: zod.ZodOptional<zod.ZodCustom<File, File>>;
18
- passphrase: zod.ZodOptional<zod.ZodString>;
17
+ file: zod.ZodCustom<File, File>;
18
+ passphrase: zod.ZodString;
19
19
  }, zod.z.core.$strip>;
20
20
  export declare const UploadFinaCertificateResponse: zod.ZodObject<{
21
21
  certificate_expiry: zod.z.ZodISODateTime;
@@ -14,8 +14,8 @@ export declare const UploadFinaCertificateHeader: zod.ZodObject<{
14
14
  "x-entity-id": zod.ZodOptional<zod.ZodString>;
15
15
  }, zod.z.core.$strip>;
16
16
  export declare const UploadFinaCertificateBody: zod.ZodObject<{
17
- file: zod.ZodOptional<zod.ZodCustom<File, File>>;
18
- passphrase: zod.ZodOptional<zod.ZodString>;
17
+ file: zod.ZodCustom<File, File>;
18
+ passphrase: zod.ZodString;
19
19
  }, zod.z.core.$strip>;
20
20
  export declare const UploadFinaCertificateResponse: zod.ZodObject<{
21
21
  certificate_expiry: zod.z.ZodISODateTime;
@@ -14,8 +14,8 @@ export declare const UploadFursCertificateHeader: zod.ZodObject<{
14
14
  "x-entity-id": zod.ZodOptional<zod.ZodString>;
15
15
  }, zod.z.core.$strip>;
16
16
  export declare const UploadFursCertificateBody: zod.ZodObject<{
17
- file: zod.ZodOptional<zod.ZodCustom<File, File>>;
18
- passphrase: zod.ZodOptional<zod.ZodString>;
17
+ file: zod.ZodCustom<File, File>;
18
+ passphrase: zod.ZodString;
19
19
  }, zod.z.core.$strip>;
20
20
  export declare const UploadFursCertificateResponse: zod.ZodObject<{
21
21
  certificate_expiry: zod.z.ZodISODateTime;
@@ -14,8 +14,8 @@ export declare const UploadFursCertificateHeader: zod.ZodObject<{
14
14
  "x-entity-id": zod.ZodOptional<zod.ZodString>;
15
15
  }, zod.z.core.$strip>;
16
16
  export declare const UploadFursCertificateBody: zod.ZodObject<{
17
- file: zod.ZodOptional<zod.ZodCustom<File, File>>;
18
- passphrase: zod.ZodOptional<zod.ZodString>;
17
+ file: zod.ZodCustom<File, File>;
18
+ passphrase: zod.ZodString;
19
19
  }, zod.z.core.$strip>;
20
20
  export declare const UploadFursCertificateResponse: zod.ZodObject<{
21
21
  certificate_expiry: zod.z.ZodISODateTime;
@@ -7,11 +7,10 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  /**
10
- * Upload an image file to cloud storage.
11
- Supports PNG, JPG, WEBP, and GIF formats. Maximum file size: 5MB.
12
- Images are automatically optimized and stored in entity-specific folders.
13
- Returns secure URLs for use in entity settings, invoices, and other documents.
14
- * @summary Upload image
10
+ * Upload or replace the current entity logo. The x-entity-id header selects the entity whose logo is updated.
11
+ Supports PNG, JPG, WEBP, and GIF formats. Maximum file size: 10MB.
12
+ The image is automatically optimized, the previous entity logo is replaced, and secure URLs are returned for entity settings, invoices, and other documents.
13
+ * @summary Upload an entity logo
15
14
  */
16
15
  export declare const UploadImageHeader: zod.ZodObject<{
17
16
  "x-entity-id": zod.ZodOptional<zod.ZodString>;