formatjet 0.1.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.
Files changed (153) hide show
  1. formatjet/__init__.py +53 -0
  2. formatjet/_client.py +417 -0
  3. formatjet/_errors.py +75 -0
  4. formatjet/_transport.py +66 -0
  5. formatjet/_webhooks.py +93 -0
  6. formatjet/openapi/__init__.py +9 -0
  7. formatjet/openapi/api/__init__.py +1 -0
  8. formatjet/openapi/api/account/__init__.py +1 -0
  9. formatjet/openapi/api/account/get_account.py +144 -0
  10. formatjet/openapi/api/account/get_usage.py +197 -0
  11. formatjet/openapi/api/catalog/__init__.py +1 -0
  12. formatjet/openapi/api/catalog/get_pricing.py +128 -0
  13. formatjet/openapi/api/catalog/list_formats.py +128 -0
  14. formatjet/openapi/api/catalog/list_operations.py +193 -0
  15. formatjet/openapi/api/jobs/__init__.py +1 -0
  16. formatjet/openapi/api/jobs/cancel_job.py +220 -0
  17. formatjet/openapi/api/jobs/convert.py +396 -0
  18. formatjet/openapi/api/jobs/create_job.py +241 -0
  19. formatjet/openapi/api/jobs/create_upload.py +230 -0
  20. formatjet/openapi/api/jobs/delete_job.py +188 -0
  21. formatjet/openapi/api/jobs/estimate_job.py +239 -0
  22. formatjet/openapi/api/jobs/get_job.py +188 -0
  23. formatjet/openapi/api/jobs/list_jobs.py +208 -0
  24. formatjet/openapi/api/jobs/stream_job_events.py +194 -0
  25. formatjet/openapi/api/webhooks/__init__.py +1 -0
  26. formatjet/openapi/api/webhooks/create_webhook.py +225 -0
  27. formatjet/openapi/api/webhooks/delete_webhook.py +174 -0
  28. formatjet/openapi/api/webhooks/get_webhook.py +176 -0
  29. formatjet/openapi/api/webhooks/list_webhook_deliveries.py +234 -0
  30. formatjet/openapi/api/webhooks/list_webhooks.py +144 -0
  31. formatjet/openapi/api/webhooks/replay_webhook_event.py +242 -0
  32. formatjet/openapi/api/webhooks/rotate_webhook_secret.py +224 -0
  33. formatjet/openapi/api/webhooks/update_webhook.py +214 -0
  34. formatjet/openapi/client.py +280 -0
  35. formatjet/openapi/errors.py +16 -0
  36. formatjet/openapi/models/__init__.py +231 -0
  37. formatjet/openapi/models/account.py +114 -0
  38. formatjet/openapi/models/account_credits.py +102 -0
  39. formatjet/openapi/models/account_credits_monthly_type_0.py +78 -0
  40. formatjet/openapi/models/account_key.py +107 -0
  41. formatjet/openapi/models/account_key_mode.py +16 -0
  42. formatjet/openapi/models/account_key_scopes_item.py +17 -0
  43. formatjet/openapi/models/account_limits.py +111 -0
  44. formatjet/openapi/models/account_organization.py +69 -0
  45. formatjet/openapi/models/account_plan.py +69 -0
  46. formatjet/openapi/models/convert_files_body.py +75 -0
  47. formatjet/openapi/models/convert_from.py +95 -0
  48. formatjet/openapi/models/convert_to.py +95 -0
  49. formatjet/openapi/models/deletion_receipt_response.py +79 -0
  50. formatjet/openapi/models/deletion_receipt_response_receipt.py +50 -0
  51. formatjet/openapi/models/estimate.py +136 -0
  52. formatjet/openapi/models/estimate_credit_weight.py +70 -0
  53. formatjet/openapi/models/estimate_from.py +95 -0
  54. formatjet/openapi/models/estimate_request.py +79 -0
  55. formatjet/openapi/models/estimate_request_steps_item.py +124 -0
  56. formatjet/openapi/models/estimate_request_steps_item_from.py +95 -0
  57. formatjet/openapi/models/estimate_request_steps_item_op.py +15 -0
  58. formatjet/openapi/models/estimate_request_steps_item_options.py +47 -0
  59. formatjet/openapi/models/estimate_request_steps_item_to.py +95 -0
  60. formatjet/openapi/models/estimate_to.py +95 -0
  61. formatjet/openapi/models/format_.py +109 -0
  62. formatjet/openapi/models/job.py +297 -0
  63. formatjet/openapi/models/job_error_type_0.py +69 -0
  64. formatjet/openapi/models/job_estimate.py +61 -0
  65. formatjet/openapi/models/job_input.py +163 -0
  66. formatjet/openapi/models/job_input_format_type_1.py +95 -0
  67. formatjet/openapi/models/job_input_format_type_2_type_1.py +95 -0
  68. formatjet/openapi/models/job_input_format_type_3_type_1.py +95 -0
  69. formatjet/openapi/models/job_inputs_item.py +165 -0
  70. formatjet/openapi/models/job_inputs_item_format_type_1.py +95 -0
  71. formatjet/openapi/models/job_inputs_item_format_type_2_type_1.py +97 -0
  72. formatjet/openapi/models/job_inputs_item_format_type_3_type_1.py +97 -0
  73. formatjet/openapi/models/job_links.py +69 -0
  74. formatjet/openapi/models/job_metadata.py +45 -0
  75. formatjet/openapi/models/job_mode.py +14 -0
  76. formatjet/openapi/models/job_outputs_item.py +133 -0
  77. formatjet/openapi/models/job_request.py +213 -0
  78. formatjet/openapi/models/job_request_input_type_0.py +42 -0
  79. formatjet/openapi/models/job_request_input_type_1.py +53 -0
  80. formatjet/openapi/models/job_request_input_type_2.py +54 -0
  81. formatjet/openapi/models/job_request_inputs_item_type_0.py +42 -0
  82. formatjet/openapi/models/job_request_inputs_item_type_1.py +53 -0
  83. formatjet/openapi/models/job_request_metadata.py +47 -0
  84. formatjet/openapi/models/job_request_output.py +51 -0
  85. formatjet/openapi/models/job_request_steps_item.py +120 -0
  86. formatjet/openapi/models/job_request_steps_item_from.py +95 -0
  87. formatjet/openapi/models/job_request_steps_item_op.py +15 -0
  88. formatjet/openapi/models/job_request_steps_item_options.py +47 -0
  89. formatjet/openapi/models/job_request_steps_item_to.py +95 -0
  90. formatjet/openapi/models/job_status.py +29 -0
  91. formatjet/openapi/models/job_steps_item.py +234 -0
  92. formatjet/openapi/models/job_steps_item_from_type_1.py +95 -0
  93. formatjet/openapi/models/job_steps_item_from_type_2_type_1.py +95 -0
  94. formatjet/openapi/models/job_steps_item_from_type_3_type_1.py +95 -0
  95. formatjet/openapi/models/job_steps_item_op.py +15 -0
  96. formatjet/openapi/models/job_steps_item_options.py +45 -0
  97. formatjet/openapi/models/job_steps_item_status.py +29 -0
  98. formatjet/openapi/models/job_steps_item_to_type_1.py +95 -0
  99. formatjet/openapi/models/job_steps_item_to_type_2_type_1.py +95 -0
  100. formatjet/openapi/models/job_steps_item_to_type_3_type_1.py +95 -0
  101. formatjet/openapi/models/job_summary.py +160 -0
  102. formatjet/openapi/models/job_summary_mode.py +16 -0
  103. formatjet/openapi/models/job_summary_status.py +29 -0
  104. formatjet/openapi/models/list_formats_response_200.py +84 -0
  105. formatjet/openapi/models/list_jobs_response_200.py +95 -0
  106. formatjet/openapi/models/list_operations_from.py +95 -0
  107. formatjet/openapi/models/list_operations_response_200.py +82 -0
  108. formatjet/openapi/models/list_operations_to.py +95 -0
  109. formatjet/openapi/models/list_webhook_deliveries_response_200.py +95 -0
  110. formatjet/openapi/models/list_webhooks_response_200.py +81 -0
  111. formatjet/openapi/models/operation.py +148 -0
  112. formatjet/openapi/models/operation_credits.py +69 -0
  113. formatjet/openapi/models/operation_engines_item.py +87 -0
  114. formatjet/openapi/models/operation_engines_item_engines_item.py +69 -0
  115. formatjet/openapi/models/operation_files.py +70 -0
  116. formatjet/openapi/models/operation_kind.py +16 -0
  117. formatjet/openapi/models/operation_options_schema.py +45 -0
  118. formatjet/openapi/models/pricing.py +153 -0
  119. formatjet/openapi/models/pricing_credit_packs_item.py +77 -0
  120. formatjet/openapi/models/pricing_credit_weights_item.py +85 -0
  121. formatjet/openapi/models/pricing_plans_item.py +156 -0
  122. formatjet/openapi/models/pricing_plans_item_overage_type_1.py +61 -0
  123. formatjet/openapi/models/problem.py +155 -0
  124. formatjet/openapi/models/problem_code.py +47 -0
  125. formatjet/openapi/models/problem_errors_item.py +69 -0
  126. formatjet/openapi/models/replay_webhook_event_body.py +45 -0
  127. formatjet/openapi/models/upload.py +115 -0
  128. formatjet/openapi/models/upload_headers.py +47 -0
  129. formatjet/openapi/models/upload_method.py +15 -0
  130. formatjet/openapi/models/upload_request.py +56 -0
  131. formatjet/openapi/models/usage.py +93 -0
  132. formatjet/openapi/models/usage_days_item.py +93 -0
  133. formatjet/openapi/models/usage_totals.py +85 -0
  134. formatjet/openapi/models/webhook_delivery.py +204 -0
  135. formatjet/openapi/models/webhook_delivery_event_type.py +17 -0
  136. formatjet/openapi/models/webhook_delivery_mode.py +16 -0
  137. formatjet/openapi/models/webhook_endpoint.py +258 -0
  138. formatjet/openapi/models/webhook_endpoint_disabled_reason_type_1.py +20 -0
  139. formatjet/openapi/models/webhook_endpoint_disabled_reason_type_2_type_1.py +20 -0
  140. formatjet/openapi/models/webhook_endpoint_disabled_reason_type_3_type_1.py +20 -0
  141. formatjet/openapi/models/webhook_endpoint_events_item.py +17 -0
  142. formatjet/openapi/models/webhook_endpoint_mode.py +16 -0
  143. formatjet/openapi/models/webhook_endpoint_request.py +84 -0
  144. formatjet/openapi/models/webhook_endpoint_request_events_item.py +21 -0
  145. formatjet/openapi/models/webhook_endpoint_update.py +101 -0
  146. formatjet/openapi/models/webhook_endpoint_update_events_item.py +19 -0
  147. formatjet/openapi/models/webhook_endpoint_with_secret.py +267 -0
  148. formatjet/openapi/types.py +54 -0
  149. formatjet/py.typed +0 -0
  150. formatjet-0.1.0.dist-info/METADATA +126 -0
  151. formatjet-0.1.0.dist-info/RECORD +153 -0
  152. formatjet-0.1.0.dist-info/WHEEL +4 -0
  153. formatjet-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,193 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.list_operations_from import (
9
+ ListOperationsFrom,
10
+ )
11
+ from ...models.list_operations_response_200 import ListOperationsResponse200
12
+ from ...models.list_operations_to import ListOperationsTo
13
+ from ...models.problem import Problem
14
+ from ...types import UNSET, Response, Unset
15
+
16
+
17
+ def _get_kwargs(
18
+ *,
19
+ from_: ListOperationsFrom | Unset = UNSET,
20
+ to: ListOperationsTo | Unset = UNSET,
21
+ ) -> dict[str, Any]:
22
+
23
+ params: dict[str, Any] = {}
24
+
25
+ json_from_: str | Unset = UNSET
26
+ if not isinstance(from_, Unset):
27
+ json_from_ = from_
28
+
29
+ params["from"] = json_from_
30
+
31
+ json_to: str | Unset = UNSET
32
+ if not isinstance(to, Unset):
33
+ json_to = to
34
+
35
+ params["to"] = json_to
36
+
37
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
38
+
39
+ _kwargs: dict[str, Any] = {
40
+ "method": "get",
41
+ "url": "/v1/operations",
42
+ "params": params,
43
+ }
44
+
45
+ return _kwargs
46
+
47
+
48
+ def _parse_response(
49
+ *, client: AuthenticatedClient | Client, response: httpx.Response
50
+ ) -> ListOperationsResponse200 | Problem | None:
51
+ if response.status_code == 200:
52
+ response_200 = ListOperationsResponse200.from_dict(response.json())
53
+
54
+ return response_200
55
+
56
+ if response.status_code == 400:
57
+ response_400 = Problem.from_dict(response.json())
58
+
59
+ return response_400
60
+
61
+ if client.raise_on_unexpected_status:
62
+ raise errors.UnexpectedStatus(response.status_code, response.content)
63
+ else:
64
+ return None
65
+
66
+
67
+ def _build_response(
68
+ *, client: AuthenticatedClient | Client, response: httpx.Response
69
+ ) -> Response[ListOperationsResponse200 | Problem]:
70
+ return Response(
71
+ status_code=HTTPStatus(response.status_code),
72
+ content=response.content,
73
+ headers=response.headers,
74
+ parsed=_parse_response(client=client, response=response),
75
+ )
76
+
77
+
78
+ def sync_detailed(
79
+ *,
80
+ client: AuthenticatedClient | Client,
81
+ from_: ListOperationsFrom | Unset = UNSET,
82
+ to: ListOperationsTo | Unset = UNSET,
83
+ ) -> Response[ListOperationsResponse200 | Problem]:
84
+ """List the conversions and tools the API runs, with options and credits
85
+
86
+ Args:
87
+ from_ (ListOperationsFrom | Unset): Input format
88
+ to (ListOperationsTo | Unset): Output format
89
+
90
+ Raises:
91
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
92
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
93
+
94
+ Returns:
95
+ Response[ListOperationsResponse200 | Problem]
96
+ """
97
+
98
+ kwargs = _get_kwargs(
99
+ from_=from_,
100
+ to=to,
101
+ )
102
+
103
+ response = client.get_httpx_client().request(
104
+ **kwargs,
105
+ )
106
+
107
+ return _build_response(client=client, response=response)
108
+
109
+
110
+ def sync(
111
+ *,
112
+ client: AuthenticatedClient | Client,
113
+ from_: ListOperationsFrom | Unset = UNSET,
114
+ to: ListOperationsTo | Unset = UNSET,
115
+ ) -> ListOperationsResponse200 | Problem | None:
116
+ """List the conversions and tools the API runs, with options and credits
117
+
118
+ Args:
119
+ from_ (ListOperationsFrom | Unset): Input format
120
+ to (ListOperationsTo | Unset): Output format
121
+
122
+ Raises:
123
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
124
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
125
+
126
+ Returns:
127
+ ListOperationsResponse200 | Problem
128
+ """
129
+
130
+ return sync_detailed(
131
+ client=client,
132
+ from_=from_,
133
+ to=to,
134
+ ).parsed
135
+
136
+
137
+ async def asyncio_detailed(
138
+ *,
139
+ client: AuthenticatedClient | Client,
140
+ from_: ListOperationsFrom | Unset = UNSET,
141
+ to: ListOperationsTo | Unset = UNSET,
142
+ ) -> Response[ListOperationsResponse200 | Problem]:
143
+ """List the conversions and tools the API runs, with options and credits
144
+
145
+ Args:
146
+ from_ (ListOperationsFrom | Unset): Input format
147
+ to (ListOperationsTo | Unset): Output format
148
+
149
+ Raises:
150
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
151
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
152
+
153
+ Returns:
154
+ Response[ListOperationsResponse200 | Problem]
155
+ """
156
+
157
+ kwargs = _get_kwargs(
158
+ from_=from_,
159
+ to=to,
160
+ )
161
+
162
+ response = await client.get_async_httpx_client().request(**kwargs)
163
+
164
+ return _build_response(client=client, response=response)
165
+
166
+
167
+ async def asyncio(
168
+ *,
169
+ client: AuthenticatedClient | Client,
170
+ from_: ListOperationsFrom | Unset = UNSET,
171
+ to: ListOperationsTo | Unset = UNSET,
172
+ ) -> ListOperationsResponse200 | Problem | None:
173
+ """List the conversions and tools the API runs, with options and credits
174
+
175
+ Args:
176
+ from_ (ListOperationsFrom | Unset): Input format
177
+ to (ListOperationsTo | Unset): Output format
178
+
179
+ Raises:
180
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
181
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
182
+
183
+ Returns:
184
+ ListOperationsResponse200 | Problem
185
+ """
186
+
187
+ return (
188
+ await asyncio_detailed(
189
+ client=client,
190
+ from_=from_,
191
+ to=to,
192
+ )
193
+ ).parsed
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,220 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.job import Job
10
+ from ...models.problem import Problem
11
+ from ...types import UNSET, Response, Unset
12
+
13
+
14
+ def _get_kwargs(
15
+ id: str,
16
+ *,
17
+ idempotency_key: str | Unset = UNSET,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+ if not isinstance(idempotency_key, Unset):
21
+ headers["idempotency-key"] = idempotency_key
22
+
23
+ _kwargs: dict[str, Any] = {
24
+ "method": "post",
25
+ "url": "/v1/jobs/{id}/cancel".format(
26
+ id=quote(str(id), safe=""),
27
+ ),
28
+ }
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: AuthenticatedClient | Client, response: httpx.Response
36
+ ) -> Job | Problem | None:
37
+ if response.status_code == 200:
38
+ response_200 = Job.from_dict(response.json())
39
+
40
+ return response_200
41
+
42
+ if response.status_code == 400:
43
+ response_400 = Problem.from_dict(response.json())
44
+
45
+ return response_400
46
+
47
+ if response.status_code == 401:
48
+ response_401 = Problem.from_dict(response.json())
49
+
50
+ return response_401
51
+
52
+ if response.status_code == 403:
53
+ response_403 = Problem.from_dict(response.json())
54
+
55
+ return response_403
56
+
57
+ if response.status_code == 404:
58
+ response_404 = Problem.from_dict(response.json())
59
+
60
+ return response_404
61
+
62
+ if response.status_code == 409:
63
+ response_409 = Problem.from_dict(response.json())
64
+
65
+ return response_409
66
+
67
+ if response.status_code == 429:
68
+ response_429 = Problem.from_dict(response.json())
69
+
70
+ return response_429
71
+
72
+ if client.raise_on_unexpected_status:
73
+ raise errors.UnexpectedStatus(response.status_code, response.content)
74
+ else:
75
+ return None
76
+
77
+
78
+ def _build_response(
79
+ *, client: AuthenticatedClient | Client, response: httpx.Response
80
+ ) -> Response[Job | Problem]:
81
+ return Response(
82
+ status_code=HTTPStatus(response.status_code),
83
+ content=response.content,
84
+ headers=response.headers,
85
+ parsed=_parse_response(client=client, response=response),
86
+ )
87
+
88
+
89
+ def sync_detailed(
90
+ id: str,
91
+ *,
92
+ client: AuthenticatedClient,
93
+ idempotency_key: str | Unset = UNSET,
94
+ ) -> Response[Job | Problem]:
95
+ """Cancel a job that hasn’t finished; nothing is charged
96
+
97
+ A job that has already ended is answered as it is.
98
+
99
+ Args:
100
+ id (str):
101
+ idempotency_key (str | Unset): Up to 255 printable ASCII characters, such as a UUID. A
102
+ repeat of the same request within 24 hours gets the first one’s successful answer again
103
+ (`Idempotent-Replayed: true`); the same key with a different request is a 409.
104
+
105
+ Raises:
106
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
107
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
108
+
109
+ Returns:
110
+ Response[Job | Problem]
111
+ """
112
+
113
+ kwargs = _get_kwargs(
114
+ id=id,
115
+ idempotency_key=idempotency_key,
116
+ )
117
+
118
+ response = client.get_httpx_client().request(
119
+ **kwargs,
120
+ )
121
+
122
+ return _build_response(client=client, response=response)
123
+
124
+
125
+ def sync(
126
+ id: str,
127
+ *,
128
+ client: AuthenticatedClient,
129
+ idempotency_key: str | Unset = UNSET,
130
+ ) -> Job | Problem | None:
131
+ """Cancel a job that hasn’t finished; nothing is charged
132
+
133
+ A job that has already ended is answered as it is.
134
+
135
+ Args:
136
+ id (str):
137
+ idempotency_key (str | Unset): Up to 255 printable ASCII characters, such as a UUID. A
138
+ repeat of the same request within 24 hours gets the first one’s successful answer again
139
+ (`Idempotent-Replayed: true`); the same key with a different request is a 409.
140
+
141
+ Raises:
142
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
143
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
144
+
145
+ Returns:
146
+ Job | Problem
147
+ """
148
+
149
+ return sync_detailed(
150
+ id=id,
151
+ client=client,
152
+ idempotency_key=idempotency_key,
153
+ ).parsed
154
+
155
+
156
+ async def asyncio_detailed(
157
+ id: str,
158
+ *,
159
+ client: AuthenticatedClient,
160
+ idempotency_key: str | Unset = UNSET,
161
+ ) -> Response[Job | Problem]:
162
+ """Cancel a job that hasn’t finished; nothing is charged
163
+
164
+ A job that has already ended is answered as it is.
165
+
166
+ Args:
167
+ id (str):
168
+ idempotency_key (str | Unset): Up to 255 printable ASCII characters, such as a UUID. A
169
+ repeat of the same request within 24 hours gets the first one’s successful answer again
170
+ (`Idempotent-Replayed: true`); the same key with a different request is a 409.
171
+
172
+ Raises:
173
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
174
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
175
+
176
+ Returns:
177
+ Response[Job | Problem]
178
+ """
179
+
180
+ kwargs = _get_kwargs(
181
+ id=id,
182
+ idempotency_key=idempotency_key,
183
+ )
184
+
185
+ response = await client.get_async_httpx_client().request(**kwargs)
186
+
187
+ return _build_response(client=client, response=response)
188
+
189
+
190
+ async def asyncio(
191
+ id: str,
192
+ *,
193
+ client: AuthenticatedClient,
194
+ idempotency_key: str | Unset = UNSET,
195
+ ) -> Job | Problem | None:
196
+ """Cancel a job that hasn’t finished; nothing is charged
197
+
198
+ A job that has already ended is answered as it is.
199
+
200
+ Args:
201
+ id (str):
202
+ idempotency_key (str | Unset): Up to 255 printable ASCII characters, such as a UUID. A
203
+ repeat of the same request within 24 hours gets the first one’s successful answer again
204
+ (`Idempotent-Replayed: true`); the same key with a different request is a 409.
205
+
206
+ Raises:
207
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
208
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
209
+
210
+ Returns:
211
+ Job | Problem
212
+ """
213
+
214
+ return (
215
+ await asyncio_detailed(
216
+ id=id,
217
+ client=client,
218
+ idempotency_key=idempotency_key,
219
+ )
220
+ ).parsed