aiinbx 0.5.1__py3-none-any.whl → 0.6.0__py3-none-any.whl

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.

Potentially problematic release.


This version of aiinbx might be problematic. Click here for more details.

aiinbx/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "aiinbx"
4
- __version__ = "0.5.1" # x-release-please-version
4
+ __version__ = "0.6.0" # x-release-please-version
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union
5
+ from typing import Union, Iterable
6
6
 
7
7
  import httpx
8
8
 
@@ -84,6 +84,7 @@ class EmailsResource(SyncAPIResource):
84
84
  *,
85
85
  from_: str,
86
86
  html: str,
87
+ attachments: Iterable[email_reply_params.Attachment] | Omit = omit,
87
88
  bcc: Union[str, SequenceNotStr[str]] | Omit = omit,
88
89
  cc: Union[str, SequenceNotStr[str]] | Omit = omit,
89
90
  from_name: str | Omit = omit,
@@ -122,6 +123,7 @@ class EmailsResource(SyncAPIResource):
122
123
  {
123
124
  "from_": from_,
124
125
  "html": html,
126
+ "attachments": attachments,
125
127
  "bcc": bcc,
126
128
  "cc": cc,
127
129
  "from_name": from_name,
@@ -146,6 +148,7 @@ class EmailsResource(SyncAPIResource):
146
148
  html: str,
147
149
  subject: str,
148
150
  to: Union[str, SequenceNotStr[str]],
151
+ attachments: Iterable[email_send_params.Attachment] | Omit = omit,
149
152
  bcc: Union[str, SequenceNotStr[str]] | Omit = omit,
150
153
  cc: Union[str, SequenceNotStr[str]] | Omit = omit,
151
154
  from_name: str | Omit = omit,
@@ -185,6 +188,7 @@ class EmailsResource(SyncAPIResource):
185
188
  "html": html,
186
189
  "subject": subject,
187
190
  "to": to,
191
+ "attachments": attachments,
188
192
  "bcc": bcc,
189
193
  "cc": cc,
190
194
  "from_name": from_name,
@@ -263,6 +267,7 @@ class AsyncEmailsResource(AsyncAPIResource):
263
267
  *,
264
268
  from_: str,
265
269
  html: str,
270
+ attachments: Iterable[email_reply_params.Attachment] | Omit = omit,
266
271
  bcc: Union[str, SequenceNotStr[str]] | Omit = omit,
267
272
  cc: Union[str, SequenceNotStr[str]] | Omit = omit,
268
273
  from_name: str | Omit = omit,
@@ -301,6 +306,7 @@ class AsyncEmailsResource(AsyncAPIResource):
301
306
  {
302
307
  "from_": from_,
303
308
  "html": html,
309
+ "attachments": attachments,
304
310
  "bcc": bcc,
305
311
  "cc": cc,
306
312
  "from_name": from_name,
@@ -325,6 +331,7 @@ class AsyncEmailsResource(AsyncAPIResource):
325
331
  html: str,
326
332
  subject: str,
327
333
  to: Union[str, SequenceNotStr[str]],
334
+ attachments: Iterable[email_send_params.Attachment] | Omit = omit,
328
335
  bcc: Union[str, SequenceNotStr[str]] | Omit = omit,
329
336
  cc: Union[str, SequenceNotStr[str]] | Omit = omit,
330
337
  from_name: str | Omit = omit,
@@ -364,6 +371,7 @@ class AsyncEmailsResource(AsyncAPIResource):
364
371
  "html": html,
365
372
  "subject": subject,
366
373
  "to": to,
374
+ "attachments": attachments,
367
375
  "bcc": bcc,
368
376
  "cc": cc,
369
377
  "from_name": from_name,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union
5
+ from typing import Union, Iterable
6
6
  from typing_extensions import Literal
7
7
 
8
8
  import httpx
@@ -85,6 +85,7 @@ class ThreadsResource(SyncAPIResource):
85
85
  thread_id: str,
86
86
  *,
87
87
  to: Union[str, SequenceNotStr[str]],
88
+ attachments: Iterable[thread_forward_params.Attachment] | Omit = omit,
88
89
  bcc: Union[str, SequenceNotStr[str]] | Omit = omit,
89
90
  cc: Union[str, SequenceNotStr[str]] | Omit = omit,
90
91
  from_: str | Omit = omit,
@@ -118,6 +119,7 @@ class ThreadsResource(SyncAPIResource):
118
119
  body=maybe_transform(
119
120
  {
120
121
  "to": to,
122
+ "attachments": attachments,
121
123
  "bcc": bcc,
122
124
  "cc": cc,
123
125
  "from_": from_,
@@ -274,6 +276,7 @@ class AsyncThreadsResource(AsyncAPIResource):
274
276
  thread_id: str,
275
277
  *,
276
278
  to: Union[str, SequenceNotStr[str]],
279
+ attachments: Iterable[thread_forward_params.Attachment] | Omit = omit,
277
280
  bcc: Union[str, SequenceNotStr[str]] | Omit = omit,
278
281
  cc: Union[str, SequenceNotStr[str]] | Omit = omit,
279
282
  from_: str | Omit = omit,
@@ -307,6 +310,7 @@ class AsyncThreadsResource(AsyncAPIResource):
307
310
  body=await async_maybe_transform(
308
311
  {
309
312
  "to": to,
313
+ "attachments": attachments,
310
314
  "bcc": bcc,
311
315
  "cc": cc,
312
316
  "from_": from_,
@@ -2,13 +2,13 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union
6
- from typing_extensions import Required, Annotated, TypedDict
5
+ from typing import Union, Iterable
6
+ from typing_extensions import Literal, Required, Annotated, TypedDict
7
7
 
8
8
  from .._types import SequenceNotStr
9
9
  from .._utils import PropertyInfo
10
10
 
11
- __all__ = ["EmailReplyParams"]
11
+ __all__ = ["EmailReplyParams", "Attachment"]
12
12
 
13
13
 
14
14
  class EmailReplyParams(TypedDict, total=False):
@@ -16,6 +16,8 @@ class EmailReplyParams(TypedDict, total=False):
16
16
 
17
17
  html: Required[str]
18
18
 
19
+ attachments: Iterable[Attachment]
20
+
19
21
  bcc: Union[str, SequenceNotStr[str]]
20
22
 
21
23
  cc: Union[str, SequenceNotStr[str]]
@@ -31,3 +33,15 @@ class EmailReplyParams(TypedDict, total=False):
31
33
  text: str
32
34
 
33
35
  to: Union[str, SequenceNotStr[str]]
36
+
37
+
38
+ class Attachment(TypedDict, total=False):
39
+ content: Required[str]
40
+
41
+ file_name: Required[str]
42
+
43
+ cid: str
44
+
45
+ content_type: str
46
+
47
+ disposition: Literal["attachment", "inline"]
@@ -2,13 +2,13 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union
6
- from typing_extensions import Required, Annotated, TypedDict
5
+ from typing import Union, Iterable
6
+ from typing_extensions import Literal, Required, Annotated, TypedDict
7
7
 
8
8
  from .._types import SequenceNotStr
9
9
  from .._utils import PropertyInfo
10
10
 
11
- __all__ = ["EmailSendParams"]
11
+ __all__ = ["EmailSendParams", "Attachment"]
12
12
 
13
13
 
14
14
  class EmailSendParams(TypedDict, total=False):
@@ -20,6 +20,8 @@ class EmailSendParams(TypedDict, total=False):
20
20
 
21
21
  to: Required[Union[str, SequenceNotStr[str]]]
22
22
 
23
+ attachments: Iterable[Attachment]
24
+
23
25
  bcc: Union[str, SequenceNotStr[str]]
24
26
 
25
27
  cc: Union[str, SequenceNotStr[str]]
@@ -37,3 +39,15 @@ class EmailSendParams(TypedDict, total=False):
37
39
  text: str
38
40
 
39
41
  thread_id: Annotated[str, PropertyInfo(alias="threadId")]
42
+
43
+
44
+ class Attachment(TypedDict, total=False):
45
+ content: Required[str]
46
+
47
+ file_name: Required[str]
48
+
49
+ cid: str
50
+
51
+ content_type: str
52
+
53
+ disposition: Literal["attachment", "inline"]
@@ -2,18 +2,20 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union
6
- from typing_extensions import Required, Annotated, TypedDict
5
+ from typing import Union, Iterable
6
+ from typing_extensions import Literal, Required, Annotated, TypedDict
7
7
 
8
8
  from .._types import SequenceNotStr
9
9
  from .._utils import PropertyInfo
10
10
 
11
- __all__ = ["ThreadForwardParams"]
11
+ __all__ = ["ThreadForwardParams", "Attachment"]
12
12
 
13
13
 
14
14
  class ThreadForwardParams(TypedDict, total=False):
15
15
  to: Required[Union[str, SequenceNotStr[str]]]
16
16
 
17
+ attachments: Iterable[Attachment]
18
+
17
19
  bcc: Union[str, SequenceNotStr[str]]
18
20
 
19
21
  cc: Union[str, SequenceNotStr[str]]
@@ -27,3 +29,15 @@ class ThreadForwardParams(TypedDict, total=False):
27
29
  is_draft: bool
28
30
 
29
31
  note: str
32
+
33
+
34
+ class Attachment(TypedDict, total=False):
35
+ content: Required[str]
36
+
37
+ file_name: Required[str]
38
+
39
+ cid: str
40
+
41
+ content_type: str
42
+
43
+ disposition: Literal["attachment", "inline"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aiinbx
3
- Version: 0.5.1
3
+ Version: 0.6.0
4
4
  Summary: The official Python library for the AIInbx API
5
5
  Project-URL: Homepage, https://github.com/aiinbx/aiinbx-py
6
6
  Project-URL: Repository, https://github.com/aiinbx/aiinbx-py
@@ -11,7 +11,7 @@ aiinbx/_resource.py,sha256=R_-4UEtw4XqdaVP9kNZE-XgrsuRBrQeFB0x4vbgWM_k,1100
11
11
  aiinbx/_response.py,sha256=bN_uhJdOtEIu7WonnaRndk73_0N7bpUqEqUx_rZUxH8,28788
12
12
  aiinbx/_streaming.py,sha256=u-0UUgwRBaD_lIoxSkzfS1Kh8Dzk5zZbhS9Zbqmrh40,10149
13
13
  aiinbx/_types.py,sha256=k1TfzLVNmuxwSkopIgy03zuljyVxSEiekHlbSzCR9U0,7236
14
- aiinbx/_version.py,sha256=NnWe_WdYOpH7yRhG9snE-Aw2E3Byz8z4EKx1MMDmZK8,158
14
+ aiinbx/_version.py,sha256=3Tcx-R7x8QBarXmx2T2yyujfNksN_exKgtvhl4zFPEw,158
15
15
  aiinbx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  aiinbx/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  aiinbx/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -28,9 +28,9 @@ aiinbx/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
28
28
  aiinbx/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
29
  aiinbx/resources/__init__.py,sha256=A9igPOfiP9soOFOLpVfUBwR7looj88eofftT1jXV-jw,2017
30
30
  aiinbx/resources/domains.py,sha256=-MNGBG7p7acT_ck-47NDX2nOiJ_pH-9qUrVWjbbjmsk,17432
31
- aiinbx/resources/emails.py,sha256=Uh7QZzKMoD4ERa1zjVPVpZSfRHBplYzsalFjCf-20Vg,16611
31
+ aiinbx/resources/emails.py,sha256=jQLcxCDLod1gl3_qhPbduCSUylsc9bplmFhgIvgv2vo,17115
32
32
  aiinbx/resources/meta.py,sha256=pG0ICZDnENRpvhVDPjoCZW509jhxgIpjhb8gG4hRusw,5464
33
- aiinbx/resources/threads.py,sha256=5pFdoPL0gqvKWhdE5eS7uQEA3GkiwJukcycKsX4RK80,18219
33
+ aiinbx/resources/threads.py,sha256=rfBH9PdliTbinebBdaSuFum2GXbVd0ut2_Dd0JHPsxI,18483
34
34
  aiinbx/resources/webhooks.py,sha256=2aBYtHvVy4Ngpq_GEEMk0U6Vn_LKFwommXaguEjhhj0,962
35
35
  aiinbx/types/__init__.py,sha256=Nax8UISh-wdV5r4vKVb8h1DXCgEhtidtyIjX0ZcBcnE,2424
36
36
  aiinbx/types/domain_create_params.py,sha256=6VplEi2RZNbhYkfQ0E08gOYQ9nJyQvvOYu9yUsKfpq8,285
@@ -39,10 +39,10 @@ aiinbx/types/domain_delete_response.py,sha256=SKlha3uajVd7dDu2U33WUd-PuG0l6J7HAV
39
39
  aiinbx/types/domain_list_response.py,sha256=CZRPenvpyxiDWBBXvwlJoiAQTX5Sx_PYNKJK_VaunDw,1225
40
40
  aiinbx/types/domain_retrieve_response.py,sha256=wlAQXvccwS-WB3i10LY4L1IpKL9jXmApjpgoz_DfrL4,1152
41
41
  aiinbx/types/domain_verify_response.py,sha256=5cl4a0yLjMcAjCPs97ZaTYeXT7uxNAvcnc3X0hU5kjk,3386
42
- aiinbx/types/email_reply_params.py,sha256=jzmdqKzIGY_TmbuOpSend_E6PJ3JltRm6xRhb_zBHQM,669
42
+ aiinbx/types/email_reply_params.py,sha256=ZlP-bvN-9q-GVgQeMBW4nEq5d_rpjVOjw7sq6kRkqn8,929
43
43
  aiinbx/types/email_reply_response.py,sha256=Uq8CkHQx_O577ydGONz34JjK4yMkFUOYEXWqDnu2h9s,382
44
44
  aiinbx/types/email_retrieve_response.py,sha256=qycc6BSOHvZ_jqXfTW5sdncL3m-QUnwPYa6vtvIH43s,2188
45
- aiinbx/types/email_send_params.py,sha256=rxN3NbcU6dDFzByF-b6-T_sWYx7K-Fh-cUPdR7mV3TY,835
45
+ aiinbx/types/email_send_params.py,sha256=y7A8UqUMrDkeXaeIFNqsaHLz55OOD0R2VOcwS3p0tSQ,1095
46
46
  aiinbx/types/email_send_response.py,sha256=WGJVnCc1IR762j6KHEmYGHuaTUggrylTV9c1GudIjDw,380
47
47
  aiinbx/types/inbound_email_received_webhook_event.py,sha256=gzScx4szJgJO9bgZtnak46UOtRCpgsEH5YZDOPICyjE,2608
48
48
  aiinbx/types/meta_webhooks_schema_response.py,sha256=eHTx-1la-ByKUarx0wdWa7KyxMb62-3HAUQfj-q435g,7434
@@ -52,13 +52,13 @@ aiinbx/types/outbound_email_complained_webhook_event.py,sha256=VPXgnyYr9zb6hXnQU
52
52
  aiinbx/types/outbound_email_delivered_webhook_event.py,sha256=Ftn1Rz2sn7y67qb9Ymkxqd4OMR5Fn4b-LuyOHF1bHwA,932
53
53
  aiinbx/types/outbound_email_opened_webhook_event.py,sha256=sMsbjWJDFOqmMe1mmWdUS277-JF1PzQUDe22AxkAzao,782
54
54
  aiinbx/types/outbound_email_rejected_webhook_event.py,sha256=kmpVDzZvSPLaPktrySAnrND9MY4PN-j-GEhz0nrBxdg,674
55
- aiinbx/types/thread_forward_params.py,sha256=8iwJhf48nebxCb1Y2wRmEepctdWjOt0BXndpKgpsCRc,695
55
+ aiinbx/types/thread_forward_params.py,sha256=MmVCeae4j472GzeFeBEzCBt0oPFgJ1nGZJBlMERdTsM,955
56
56
  aiinbx/types/thread_forward_response.py,sha256=DmxnVB38C3R-fsNURfKMf5chNbKamQcx_QaubTk_8Ts,388
57
57
  aiinbx/types/thread_retrieve_response.py,sha256=s5jj2iwBfcoVPeybIOJUVwRhvnc_0NdEMcbDGJnheEw,2364
58
58
  aiinbx/types/thread_search_params.py,sha256=ZvlTTw4b_swhuC0VoLnU2QI1hYjROiEAyJ4HJXCrR9M,1939
59
59
  aiinbx/types/thread_search_response.py,sha256=lldugJNQuQ5tsD9BrgxoDNojAYs7Ks8iZDMxwhnjogY,908
60
60
  aiinbx/types/unwrap_webhook_event.py,sha256=6Hp4c5iHNs2lw3DYgRrgvRFBOmms0NADJ5XExEZrICI,1091
61
- aiinbx-0.5.1.dist-info/METADATA,sha256=gt0I1xXYJDfx4qIwIMOpXUdOJfodd8nxZ7GeWSm5WI4,13206
62
- aiinbx-0.5.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
- aiinbx-0.5.1.dist-info/licenses/LICENSE,sha256=i1rY5G0rFWpuWXv5WPoFrQEOrDWycksLhJxuLBF1tZw,11337
64
- aiinbx-0.5.1.dist-info/RECORD,,
61
+ aiinbx-0.6.0.dist-info/METADATA,sha256=ujuc1kPRKxsA64AxUJ1H2xT6TfVG-wrDcNnlhTdgjY8,13206
62
+ aiinbx-0.6.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
+ aiinbx-0.6.0.dist-info/licenses/LICENSE,sha256=i1rY5G0rFWpuWXv5WPoFrQEOrDWycksLhJxuLBF1tZw,11337
64
+ aiinbx-0.6.0.dist-info/RECORD,,
File without changes