structifyai 1.179.0__py3-none-any.whl → 1.182.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.
- structify/_base_client.py +5 -2
- structify/_compat.py +3 -3
- structify/_utils/_json.py +35 -0
- structify/_version.py +1 -1
- structify/resources/__init__.py +0 -2
- structify/resources/connector_catalog/admin.py +76 -0
- structify/resources/connectors/connectors.py +357 -1
- structify/resources/polars.py +2 -7
- structify/resources/sessions.py +83 -0
- structify/resources/slack.py +8 -8
- structify/resources/teams.py +12 -76
- structify/resources/wiki.py +22 -18
- structify/resources/workflow.py +7 -1
- structify/types/__init__.py +7 -3
- structify/types/admin/admin_sandbox.py +0 -2
- structify/types/{team_create_link_code_params.py → cell_edit_param.py} +7 -3
- structify/types/chat_create_session_params.py +2 -0
- structify/types/code_generate_code_params.py +2 -0
- structify/types/connector_add_schema_object_params.py +59 -0
- structify/types/connector_add_schema_object_response.py +35 -0
- structify/types/dashboard_component.py +7 -45
- structify/types/dashboard_component_param.py +8 -52
- structify/types/dashboard_page.py +3 -3
- structify/types/dashboard_page_param.py +3 -3
- structify/types/job_event_body.py +4 -0
- structify/types/llm_information_store.py +4 -0
- structify/types/parquet_edit_param.py +29 -0
- structify/types/session_edit_node_output_params.py +14 -0
- structify/types/session_edit_node_output_response.py +11 -0
- structify/types/slack_event_payload_param.py +2 -2
- structify/types/slack_events_params.py +2 -2
- structify/types/team_update_params.py +6 -0
- structify/types/usage_group_key.py +1 -0
- structify/types/user_info.py +4 -0
- structify/types/wiki_create_params.py +1 -2
- structify/types/wiki_list_response.py +2 -2
- structify/types/wiki_page.py +23 -0
- structify/types/wiki_page_with_references.py +2 -2
- structify/types/wiki_update_params.py +4 -2
- structify/types/workflow_run_params.py +3 -0
- structify/types/workflow_session_node.py +2 -0
- {structifyai-1.179.0.dist-info → structifyai-1.182.0.dist-info}/METADATA +1 -1
- {structifyai-1.179.0.dist-info → structifyai-1.182.0.dist-info}/RECORD +45 -42
- structify/resources/external.py +0 -99
- structify/resources/external_dataframe_proxy.py +0 -290
- structify/types/team_wiki_page.py +0 -28
- structify/types/teams_link_code_response.py +0 -13
- {structifyai-1.179.0.dist-info → structifyai-1.182.0.dist-info}/WHEEL +0 -0
- {structifyai-1.179.0.dist-info → structifyai-1.182.0.dist-info}/licenses/LICENSE +0 -0
structify/resources/sessions.py
CHANGED
|
@@ -17,6 +17,7 @@ from ..types import (
|
|
|
17
17
|
session_finalize_dag_params,
|
|
18
18
|
session_mark_errored_params,
|
|
19
19
|
session_create_session_params,
|
|
20
|
+
session_edit_node_output_params,
|
|
20
21
|
session_request_confirmation_params,
|
|
21
22
|
session_update_node_progress_params,
|
|
22
23
|
session_upload_dashboard_layout_params,
|
|
@@ -49,12 +50,14 @@ from ..types.edge_spec_param import EdgeSpecParam
|
|
|
49
50
|
from ..types.node_spec_param import NodeSpecParam
|
|
50
51
|
from ..types.workflow_session import WorkflowSession
|
|
51
52
|
from ..types.get_node_response import GetNodeResponse
|
|
53
|
+
from ..types.parquet_edit_param import ParquetEditParam
|
|
52
54
|
from ..types.finalize_dag_response import FinalizeDagResponse
|
|
53
55
|
from ..types.workflow_session_node import WorkflowSessionNode
|
|
54
56
|
from ..types.get_node_logs_response import GetNodeLogsResponse
|
|
55
57
|
from ..types.session_kill_jobs_response import SessionKillJobsResponse
|
|
56
58
|
from ..types.session_get_events_response import SessionGetEventsResponse
|
|
57
59
|
from ..types.workflow_node_execution_status import WorkflowNodeExecutionStatus
|
|
60
|
+
from ..types.session_edit_node_output_response import SessionEditNodeOutputResponse
|
|
58
61
|
from ..types.session_get_node_progress_response import SessionGetNodeProgressResponse
|
|
59
62
|
|
|
60
63
|
__all__ = ["SessionsResource", "AsyncSessionsResource"]
|
|
@@ -150,6 +153,39 @@ class SessionsResource(SyncAPIResource):
|
|
|
150
153
|
cast_to=WorkflowSession,
|
|
151
154
|
)
|
|
152
155
|
|
|
156
|
+
def edit_node_output(
|
|
157
|
+
self,
|
|
158
|
+
node_id: str,
|
|
159
|
+
*,
|
|
160
|
+
edits: Iterable[ParquetEditParam],
|
|
161
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
162
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
163
|
+
extra_headers: Headers | None = None,
|
|
164
|
+
extra_query: Query | None = None,
|
|
165
|
+
extra_body: Body | None = None,
|
|
166
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
167
|
+
) -> SessionEditNodeOutputResponse:
|
|
168
|
+
"""
|
|
169
|
+
Args:
|
|
170
|
+
extra_headers: Send extra headers
|
|
171
|
+
|
|
172
|
+
extra_query: Add additional query parameters to the request
|
|
173
|
+
|
|
174
|
+
extra_body: Add additional JSON properties to the request
|
|
175
|
+
|
|
176
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
177
|
+
"""
|
|
178
|
+
if not node_id:
|
|
179
|
+
raise ValueError(f"Expected a non-empty value for `node_id` but received {node_id!r}")
|
|
180
|
+
return self._post(
|
|
181
|
+
f"/sessions/nodes/{node_id}/edit_output",
|
|
182
|
+
body=maybe_transform({"edits": edits}, session_edit_node_output_params.SessionEditNodeOutputParams),
|
|
183
|
+
options=make_request_options(
|
|
184
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
185
|
+
),
|
|
186
|
+
cast_to=SessionEditNodeOutputResponse,
|
|
187
|
+
)
|
|
188
|
+
|
|
153
189
|
def finalize_dag(
|
|
154
190
|
self,
|
|
155
191
|
session_id: str,
|
|
@@ -823,6 +859,41 @@ class AsyncSessionsResource(AsyncAPIResource):
|
|
|
823
859
|
cast_to=WorkflowSession,
|
|
824
860
|
)
|
|
825
861
|
|
|
862
|
+
async def edit_node_output(
|
|
863
|
+
self,
|
|
864
|
+
node_id: str,
|
|
865
|
+
*,
|
|
866
|
+
edits: Iterable[ParquetEditParam],
|
|
867
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
868
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
869
|
+
extra_headers: Headers | None = None,
|
|
870
|
+
extra_query: Query | None = None,
|
|
871
|
+
extra_body: Body | None = None,
|
|
872
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
873
|
+
) -> SessionEditNodeOutputResponse:
|
|
874
|
+
"""
|
|
875
|
+
Args:
|
|
876
|
+
extra_headers: Send extra headers
|
|
877
|
+
|
|
878
|
+
extra_query: Add additional query parameters to the request
|
|
879
|
+
|
|
880
|
+
extra_body: Add additional JSON properties to the request
|
|
881
|
+
|
|
882
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
883
|
+
"""
|
|
884
|
+
if not node_id:
|
|
885
|
+
raise ValueError(f"Expected a non-empty value for `node_id` but received {node_id!r}")
|
|
886
|
+
return await self._post(
|
|
887
|
+
f"/sessions/nodes/{node_id}/edit_output",
|
|
888
|
+
body=await async_maybe_transform(
|
|
889
|
+
{"edits": edits}, session_edit_node_output_params.SessionEditNodeOutputParams
|
|
890
|
+
),
|
|
891
|
+
options=make_request_options(
|
|
892
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
893
|
+
),
|
|
894
|
+
cast_to=SessionEditNodeOutputResponse,
|
|
895
|
+
)
|
|
896
|
+
|
|
826
897
|
async def finalize_dag(
|
|
827
898
|
self,
|
|
828
899
|
session_id: str,
|
|
@@ -1416,6 +1487,9 @@ class SessionsResourceWithRawResponse:
|
|
|
1416
1487
|
self.create_session = to_raw_response_wrapper(
|
|
1417
1488
|
sessions.create_session,
|
|
1418
1489
|
)
|
|
1490
|
+
self.edit_node_output = to_raw_response_wrapper(
|
|
1491
|
+
sessions.edit_node_output,
|
|
1492
|
+
)
|
|
1419
1493
|
self.finalize_dag = to_raw_response_wrapper(
|
|
1420
1494
|
sessions.finalize_dag,
|
|
1421
1495
|
)
|
|
@@ -1474,6 +1548,9 @@ class AsyncSessionsResourceWithRawResponse:
|
|
|
1474
1548
|
self.create_session = async_to_raw_response_wrapper(
|
|
1475
1549
|
sessions.create_session,
|
|
1476
1550
|
)
|
|
1551
|
+
self.edit_node_output = async_to_raw_response_wrapper(
|
|
1552
|
+
sessions.edit_node_output,
|
|
1553
|
+
)
|
|
1477
1554
|
self.finalize_dag = async_to_raw_response_wrapper(
|
|
1478
1555
|
sessions.finalize_dag,
|
|
1479
1556
|
)
|
|
@@ -1532,6 +1609,9 @@ class SessionsResourceWithStreamingResponse:
|
|
|
1532
1609
|
self.create_session = to_streamed_response_wrapper(
|
|
1533
1610
|
sessions.create_session,
|
|
1534
1611
|
)
|
|
1612
|
+
self.edit_node_output = to_streamed_response_wrapper(
|
|
1613
|
+
sessions.edit_node_output,
|
|
1614
|
+
)
|
|
1535
1615
|
self.finalize_dag = to_streamed_response_wrapper(
|
|
1536
1616
|
sessions.finalize_dag,
|
|
1537
1617
|
)
|
|
@@ -1590,6 +1670,9 @@ class AsyncSessionsResourceWithStreamingResponse:
|
|
|
1590
1670
|
self.create_session = async_to_streamed_response_wrapper(
|
|
1591
1671
|
sessions.create_session,
|
|
1592
1672
|
)
|
|
1673
|
+
self.edit_node_output = async_to_streamed_response_wrapper(
|
|
1674
|
+
sessions.edit_node_output,
|
|
1675
|
+
)
|
|
1593
1676
|
self.finalize_dag = async_to_streamed_response_wrapper(
|
|
1594
1677
|
sessions.finalize_dag,
|
|
1595
1678
|
)
|
structify/resources/slack.py
CHANGED
|
@@ -80,12 +80,12 @@ class SlackResource(SyncAPIResource):
|
|
|
80
80
|
self,
|
|
81
81
|
*,
|
|
82
82
|
event: slack_events_params.Variant1Event,
|
|
83
|
+
event_id: str,
|
|
83
84
|
team_id: str,
|
|
84
85
|
type: Literal["event_callback"],
|
|
85
86
|
api_app_id: Optional[str] | Omit = omit,
|
|
86
87
|
authed_users: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
87
88
|
event_context: Optional[str] | Omit = omit,
|
|
88
|
-
event_id: Optional[str] | Omit = omit,
|
|
89
89
|
event_time: Optional[int] | Omit = omit,
|
|
90
90
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
91
91
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -111,7 +111,7 @@ class SlackResource(SyncAPIResource):
|
|
|
111
111
|
"""
|
|
112
112
|
...
|
|
113
113
|
|
|
114
|
-
@required_args(["challenge", "type"], ["event", "team_id", "type"])
|
|
114
|
+
@required_args(["challenge", "type"], ["event", "event_id", "team_id", "type"])
|
|
115
115
|
def events(
|
|
116
116
|
self,
|
|
117
117
|
*,
|
|
@@ -119,11 +119,11 @@ class SlackResource(SyncAPIResource):
|
|
|
119
119
|
type: Literal["url_verification"] | Literal["event_callback"],
|
|
120
120
|
token: Optional[str] | Omit = omit,
|
|
121
121
|
event: slack_events_params.Variant1Event | Omit = omit,
|
|
122
|
+
event_id: str | Omit = omit,
|
|
122
123
|
team_id: str | Omit = omit,
|
|
123
124
|
api_app_id: Optional[str] | Omit = omit,
|
|
124
125
|
authed_users: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
125
126
|
event_context: Optional[str] | Omit = omit,
|
|
126
|
-
event_id: Optional[str] | Omit = omit,
|
|
127
127
|
event_time: Optional[int] | Omit = omit,
|
|
128
128
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
129
129
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -142,11 +142,11 @@ class SlackResource(SyncAPIResource):
|
|
|
142
142
|
"type": type,
|
|
143
143
|
"token": token,
|
|
144
144
|
"event": event,
|
|
145
|
+
"event_id": event_id,
|
|
145
146
|
"team_id": team_id,
|
|
146
147
|
"api_app_id": api_app_id,
|
|
147
148
|
"authed_users": authed_users,
|
|
148
149
|
"event_context": event_context,
|
|
149
|
-
"event_id": event_id,
|
|
150
150
|
"event_time": event_time,
|
|
151
151
|
},
|
|
152
152
|
slack_events_params.SlackEventsParams,
|
|
@@ -215,12 +215,12 @@ class AsyncSlackResource(AsyncAPIResource):
|
|
|
215
215
|
self,
|
|
216
216
|
*,
|
|
217
217
|
event: slack_events_params.Variant1Event,
|
|
218
|
+
event_id: str,
|
|
218
219
|
team_id: str,
|
|
219
220
|
type: Literal["event_callback"],
|
|
220
221
|
api_app_id: Optional[str] | Omit = omit,
|
|
221
222
|
authed_users: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
222
223
|
event_context: Optional[str] | Omit = omit,
|
|
223
|
-
event_id: Optional[str] | Omit = omit,
|
|
224
224
|
event_time: Optional[int] | Omit = omit,
|
|
225
225
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
226
226
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -246,7 +246,7 @@ class AsyncSlackResource(AsyncAPIResource):
|
|
|
246
246
|
"""
|
|
247
247
|
...
|
|
248
248
|
|
|
249
|
-
@required_args(["challenge", "type"], ["event", "team_id", "type"])
|
|
249
|
+
@required_args(["challenge", "type"], ["event", "event_id", "team_id", "type"])
|
|
250
250
|
async def events(
|
|
251
251
|
self,
|
|
252
252
|
*,
|
|
@@ -254,11 +254,11 @@ class AsyncSlackResource(AsyncAPIResource):
|
|
|
254
254
|
type: Literal["url_verification"] | Literal["event_callback"],
|
|
255
255
|
token: Optional[str] | Omit = omit,
|
|
256
256
|
event: slack_events_params.Variant1Event | Omit = omit,
|
|
257
|
+
event_id: str | Omit = omit,
|
|
257
258
|
team_id: str | Omit = omit,
|
|
258
259
|
api_app_id: Optional[str] | Omit = omit,
|
|
259
260
|
authed_users: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
260
261
|
event_context: Optional[str] | Omit = omit,
|
|
261
|
-
event_id: Optional[str] | Omit = omit,
|
|
262
262
|
event_time: Optional[int] | Omit = omit,
|
|
263
263
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
264
264
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -277,11 +277,11 @@ class AsyncSlackResource(AsyncAPIResource):
|
|
|
277
277
|
"type": type,
|
|
278
278
|
"token": token,
|
|
279
279
|
"event": event,
|
|
280
|
+
"event_id": event_id,
|
|
280
281
|
"team_id": team_id,
|
|
281
282
|
"api_app_id": api_app_id,
|
|
282
283
|
"authed_users": authed_users,
|
|
283
284
|
"event_context": event_context,
|
|
284
|
-
"event_id": event_id,
|
|
285
285
|
"event_time": event_time,
|
|
286
286
|
},
|
|
287
287
|
slack_events_params.SlackEventsParams,
|
structify/resources/teams.py
CHANGED
|
@@ -15,7 +15,6 @@ from ..types import (
|
|
|
15
15
|
team_add_member_params,
|
|
16
16
|
team_credits_usage_params,
|
|
17
17
|
team_create_project_params,
|
|
18
|
-
team_create_link_code_params,
|
|
19
18
|
team_accept_invitation_params,
|
|
20
19
|
team_update_member_role_params,
|
|
21
20
|
)
|
|
@@ -44,7 +43,6 @@ from ..types.list_members_response import ListMembersResponse
|
|
|
44
43
|
from ..types.credits_usage_response import CreditsUsageResponse
|
|
45
44
|
from ..types.list_projects_response import ListProjectsResponse
|
|
46
45
|
from ..types.remove_member_response import RemoveMemberResponse
|
|
47
|
-
from ..types.teams_link_code_response import TeamsLinkCodeResponse
|
|
48
46
|
from ..types.accept_invitation_response import AcceptInvitationResponse
|
|
49
47
|
from ..types.invitation_details_response import InvitationDetailsResponse
|
|
50
48
|
from ..types.update_member_role_response import UpdateMemberRoleResponse
|
|
@@ -120,6 +118,9 @@ class TeamsResource(SyncAPIResource):
|
|
|
120
118
|
slack_team_icon: Optional[str] | Omit = omit,
|
|
121
119
|
slack_team_id: Optional[str] | Omit = omit,
|
|
122
120
|
slack_team_name: Optional[str] | Omit = omit,
|
|
121
|
+
teams_app_id: Optional[str] | Omit = omit,
|
|
122
|
+
teams_app_password: Optional[str] | Omit = omit,
|
|
123
|
+
teams_tenant_id: Optional[str] | Omit = omit,
|
|
123
124
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
124
125
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
125
126
|
extra_headers: Headers | None = None,
|
|
@@ -150,6 +151,9 @@ class TeamsResource(SyncAPIResource):
|
|
|
150
151
|
"slack_team_icon": slack_team_icon,
|
|
151
152
|
"slack_team_id": slack_team_id,
|
|
152
153
|
"slack_team_name": slack_team_name,
|
|
154
|
+
"teams_app_id": teams_app_id,
|
|
155
|
+
"teams_app_password": teams_app_password,
|
|
156
|
+
"teams_tenant_id": teams_tenant_id,
|
|
153
157
|
},
|
|
154
158
|
team_update_params.TeamUpdateParams,
|
|
155
159
|
),
|
|
@@ -278,36 +282,6 @@ class TeamsResource(SyncAPIResource):
|
|
|
278
282
|
cast_to=AddMemberResponse,
|
|
279
283
|
)
|
|
280
284
|
|
|
281
|
-
def create_link_code(
|
|
282
|
-
self,
|
|
283
|
-
*,
|
|
284
|
-
team_id: str,
|
|
285
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
286
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
287
|
-
extra_headers: Headers | None = None,
|
|
288
|
-
extra_query: Query | None = None,
|
|
289
|
-
extra_body: Body | None = None,
|
|
290
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
291
|
-
) -> TeamsLinkCodeResponse:
|
|
292
|
-
"""
|
|
293
|
-
Args:
|
|
294
|
-
extra_headers: Send extra headers
|
|
295
|
-
|
|
296
|
-
extra_query: Add additional query parameters to the request
|
|
297
|
-
|
|
298
|
-
extra_body: Add additional JSON properties to the request
|
|
299
|
-
|
|
300
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
301
|
-
"""
|
|
302
|
-
return self._post(
|
|
303
|
-
"/teams/link-code",
|
|
304
|
-
body=maybe_transform({"team_id": team_id}, team_create_link_code_params.TeamCreateLinkCodeParams),
|
|
305
|
-
options=make_request_options(
|
|
306
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
307
|
-
),
|
|
308
|
-
cast_to=TeamsLinkCodeResponse,
|
|
309
|
-
)
|
|
310
|
-
|
|
311
285
|
def create_project(
|
|
312
286
|
self,
|
|
313
287
|
team_id: str,
|
|
@@ -697,6 +671,9 @@ class AsyncTeamsResource(AsyncAPIResource):
|
|
|
697
671
|
slack_team_icon: Optional[str] | Omit = omit,
|
|
698
672
|
slack_team_id: Optional[str] | Omit = omit,
|
|
699
673
|
slack_team_name: Optional[str] | Omit = omit,
|
|
674
|
+
teams_app_id: Optional[str] | Omit = omit,
|
|
675
|
+
teams_app_password: Optional[str] | Omit = omit,
|
|
676
|
+
teams_tenant_id: Optional[str] | Omit = omit,
|
|
700
677
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
701
678
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
702
679
|
extra_headers: Headers | None = None,
|
|
@@ -727,6 +704,9 @@ class AsyncTeamsResource(AsyncAPIResource):
|
|
|
727
704
|
"slack_team_icon": slack_team_icon,
|
|
728
705
|
"slack_team_id": slack_team_id,
|
|
729
706
|
"slack_team_name": slack_team_name,
|
|
707
|
+
"teams_app_id": teams_app_id,
|
|
708
|
+
"teams_app_password": teams_app_password,
|
|
709
|
+
"teams_tenant_id": teams_tenant_id,
|
|
730
710
|
},
|
|
731
711
|
team_update_params.TeamUpdateParams,
|
|
732
712
|
),
|
|
@@ -857,38 +837,6 @@ class AsyncTeamsResource(AsyncAPIResource):
|
|
|
857
837
|
cast_to=AddMemberResponse,
|
|
858
838
|
)
|
|
859
839
|
|
|
860
|
-
async def create_link_code(
|
|
861
|
-
self,
|
|
862
|
-
*,
|
|
863
|
-
team_id: str,
|
|
864
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
865
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
866
|
-
extra_headers: Headers | None = None,
|
|
867
|
-
extra_query: Query | None = None,
|
|
868
|
-
extra_body: Body | None = None,
|
|
869
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
870
|
-
) -> TeamsLinkCodeResponse:
|
|
871
|
-
"""
|
|
872
|
-
Args:
|
|
873
|
-
extra_headers: Send extra headers
|
|
874
|
-
|
|
875
|
-
extra_query: Add additional query parameters to the request
|
|
876
|
-
|
|
877
|
-
extra_body: Add additional JSON properties to the request
|
|
878
|
-
|
|
879
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
880
|
-
"""
|
|
881
|
-
return await self._post(
|
|
882
|
-
"/teams/link-code",
|
|
883
|
-
body=await async_maybe_transform(
|
|
884
|
-
{"team_id": team_id}, team_create_link_code_params.TeamCreateLinkCodeParams
|
|
885
|
-
),
|
|
886
|
-
options=make_request_options(
|
|
887
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
888
|
-
),
|
|
889
|
-
cast_to=TeamsLinkCodeResponse,
|
|
890
|
-
)
|
|
891
|
-
|
|
892
840
|
async def create_project(
|
|
893
841
|
self,
|
|
894
842
|
team_id: str,
|
|
@@ -1232,9 +1180,6 @@ class TeamsResourceWithRawResponse:
|
|
|
1232
1180
|
self.add_member = to_raw_response_wrapper(
|
|
1233
1181
|
teams.add_member,
|
|
1234
1182
|
)
|
|
1235
|
-
self.create_link_code = to_raw_response_wrapper(
|
|
1236
|
-
teams.create_link_code,
|
|
1237
|
-
)
|
|
1238
1183
|
self.create_project = to_raw_response_wrapper(
|
|
1239
1184
|
teams.create_project,
|
|
1240
1185
|
)
|
|
@@ -1286,9 +1231,6 @@ class AsyncTeamsResourceWithRawResponse:
|
|
|
1286
1231
|
self.add_member = async_to_raw_response_wrapper(
|
|
1287
1232
|
teams.add_member,
|
|
1288
1233
|
)
|
|
1289
|
-
self.create_link_code = async_to_raw_response_wrapper(
|
|
1290
|
-
teams.create_link_code,
|
|
1291
|
-
)
|
|
1292
1234
|
self.create_project = async_to_raw_response_wrapper(
|
|
1293
1235
|
teams.create_project,
|
|
1294
1236
|
)
|
|
@@ -1340,9 +1282,6 @@ class TeamsResourceWithStreamingResponse:
|
|
|
1340
1282
|
self.add_member = to_streamed_response_wrapper(
|
|
1341
1283
|
teams.add_member,
|
|
1342
1284
|
)
|
|
1343
|
-
self.create_link_code = to_streamed_response_wrapper(
|
|
1344
|
-
teams.create_link_code,
|
|
1345
|
-
)
|
|
1346
1285
|
self.create_project = to_streamed_response_wrapper(
|
|
1347
1286
|
teams.create_project,
|
|
1348
1287
|
)
|
|
@@ -1394,9 +1333,6 @@ class AsyncTeamsResourceWithStreamingResponse:
|
|
|
1394
1333
|
self.add_member = async_to_streamed_response_wrapper(
|
|
1395
1334
|
teams.add_member,
|
|
1396
1335
|
)
|
|
1397
|
-
self.create_link_code = async_to_streamed_response_wrapper(
|
|
1398
|
-
teams.create_link_code,
|
|
1399
|
-
)
|
|
1400
1336
|
self.create_project = async_to_streamed_response_wrapper(
|
|
1401
1337
|
teams.create_project,
|
|
1402
1338
|
)
|
structify/resources/wiki.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ from .._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from .._base_client import make_request_options
|
|
21
|
-
from ..types.
|
|
21
|
+
from ..types.wiki_page import WikiPage
|
|
22
22
|
from ..types.wiki_list_response import WikiListResponse
|
|
23
23
|
from ..types.wiki_page_with_references import WikiPageWithReferences
|
|
24
24
|
|
|
@@ -49,7 +49,7 @@ class WikiResource(SyncAPIResource):
|
|
|
49
49
|
self,
|
|
50
50
|
team_id: str,
|
|
51
51
|
*,
|
|
52
|
-
|
|
52
|
+
markdown: str,
|
|
53
53
|
slug: str,
|
|
54
54
|
title: str,
|
|
55
55
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -58,7 +58,7 @@ class WikiResource(SyncAPIResource):
|
|
|
58
58
|
extra_query: Query | None = None,
|
|
59
59
|
extra_body: Body | None = None,
|
|
60
60
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
61
|
-
) ->
|
|
61
|
+
) -> WikiPage:
|
|
62
62
|
"""
|
|
63
63
|
Args:
|
|
64
64
|
extra_headers: Send extra headers
|
|
@@ -75,7 +75,7 @@ class WikiResource(SyncAPIResource):
|
|
|
75
75
|
f"/team/{team_id}/wiki",
|
|
76
76
|
body=maybe_transform(
|
|
77
77
|
{
|
|
78
|
-
"
|
|
78
|
+
"markdown": markdown,
|
|
79
79
|
"slug": slug,
|
|
80
80
|
"title": title,
|
|
81
81
|
},
|
|
@@ -84,7 +84,7 @@ class WikiResource(SyncAPIResource):
|
|
|
84
84
|
options=make_request_options(
|
|
85
85
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
86
86
|
),
|
|
87
|
-
cast_to=
|
|
87
|
+
cast_to=WikiPage,
|
|
88
88
|
)
|
|
89
89
|
|
|
90
90
|
def update(
|
|
@@ -92,7 +92,8 @@ class WikiResource(SyncAPIResource):
|
|
|
92
92
|
slug: str,
|
|
93
93
|
*,
|
|
94
94
|
team_id: str,
|
|
95
|
-
|
|
95
|
+
markdown: str,
|
|
96
|
+
base_version: Optional[int] | Omit = omit,
|
|
96
97
|
title: Optional[str] | Omit = omit,
|
|
97
98
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
98
99
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -100,7 +101,7 @@ class WikiResource(SyncAPIResource):
|
|
|
100
101
|
extra_query: Query | None = None,
|
|
101
102
|
extra_body: Body | None = None,
|
|
102
103
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
103
|
-
) ->
|
|
104
|
+
) -> WikiPage:
|
|
104
105
|
"""
|
|
105
106
|
Args:
|
|
106
107
|
extra_headers: Send extra headers
|
|
@@ -119,7 +120,8 @@ class WikiResource(SyncAPIResource):
|
|
|
119
120
|
f"/team/{team_id}/wiki/{slug}",
|
|
120
121
|
body=maybe_transform(
|
|
121
122
|
{
|
|
122
|
-
"
|
|
123
|
+
"markdown": markdown,
|
|
124
|
+
"base_version": base_version,
|
|
123
125
|
"title": title,
|
|
124
126
|
},
|
|
125
127
|
wiki_update_params.WikiUpdateParams,
|
|
@@ -127,7 +129,7 @@ class WikiResource(SyncAPIResource):
|
|
|
127
129
|
options=make_request_options(
|
|
128
130
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
129
131
|
),
|
|
130
|
-
cast_to=
|
|
132
|
+
cast_to=WikiPage,
|
|
131
133
|
)
|
|
132
134
|
|
|
133
135
|
def list(
|
|
@@ -255,7 +257,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
255
257
|
self,
|
|
256
258
|
team_id: str,
|
|
257
259
|
*,
|
|
258
|
-
|
|
260
|
+
markdown: str,
|
|
259
261
|
slug: str,
|
|
260
262
|
title: str,
|
|
261
263
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -264,7 +266,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
264
266
|
extra_query: Query | None = None,
|
|
265
267
|
extra_body: Body | None = None,
|
|
266
268
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
267
|
-
) ->
|
|
269
|
+
) -> WikiPage:
|
|
268
270
|
"""
|
|
269
271
|
Args:
|
|
270
272
|
extra_headers: Send extra headers
|
|
@@ -281,7 +283,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
281
283
|
f"/team/{team_id}/wiki",
|
|
282
284
|
body=await async_maybe_transform(
|
|
283
285
|
{
|
|
284
|
-
"
|
|
286
|
+
"markdown": markdown,
|
|
285
287
|
"slug": slug,
|
|
286
288
|
"title": title,
|
|
287
289
|
},
|
|
@@ -290,7 +292,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
290
292
|
options=make_request_options(
|
|
291
293
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
292
294
|
),
|
|
293
|
-
cast_to=
|
|
295
|
+
cast_to=WikiPage,
|
|
294
296
|
)
|
|
295
297
|
|
|
296
298
|
async def update(
|
|
@@ -298,7 +300,8 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
298
300
|
slug: str,
|
|
299
301
|
*,
|
|
300
302
|
team_id: str,
|
|
301
|
-
|
|
303
|
+
markdown: str,
|
|
304
|
+
base_version: Optional[int] | Omit = omit,
|
|
302
305
|
title: Optional[str] | Omit = omit,
|
|
303
306
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
304
307
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -306,7 +309,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
306
309
|
extra_query: Query | None = None,
|
|
307
310
|
extra_body: Body | None = None,
|
|
308
311
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
309
|
-
) ->
|
|
312
|
+
) -> WikiPage:
|
|
310
313
|
"""
|
|
311
314
|
Args:
|
|
312
315
|
extra_headers: Send extra headers
|
|
@@ -325,7 +328,8 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
325
328
|
f"/team/{team_id}/wiki/{slug}",
|
|
326
329
|
body=await async_maybe_transform(
|
|
327
330
|
{
|
|
328
|
-
"
|
|
331
|
+
"markdown": markdown,
|
|
332
|
+
"base_version": base_version,
|
|
329
333
|
"title": title,
|
|
330
334
|
},
|
|
331
335
|
wiki_update_params.WikiUpdateParams,
|
|
@@ -333,7 +337,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
333
337
|
options=make_request_options(
|
|
334
338
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
335
339
|
),
|
|
336
|
-
cast_to=
|
|
340
|
+
cast_to=WikiPage,
|
|
337
341
|
)
|
|
338
342
|
|
|
339
343
|
async def list(
|
structify/resources/workflow.py
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
5
7
|
import httpx
|
|
6
8
|
|
|
7
9
|
from ..types import workflow_run_params, workflow_stop_params
|
|
8
|
-
from .._types import Body, Query, Headers, NoneType, NotGiven, not_given
|
|
10
|
+
from .._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
9
11
|
from .._utils import maybe_transform, async_maybe_transform
|
|
10
12
|
from .._compat import cached_property
|
|
11
13
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -45,6 +47,7 @@ class WorkflowResource(SyncAPIResource):
|
|
|
45
47
|
*,
|
|
46
48
|
chat_session_id: str,
|
|
47
49
|
use_node_cache: bool,
|
|
50
|
+
edited_node_name: Optional[str] | Omit = omit,
|
|
48
51
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
49
52
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
50
53
|
extra_headers: Headers | None = None,
|
|
@@ -69,6 +72,7 @@ class WorkflowResource(SyncAPIResource):
|
|
|
69
72
|
{
|
|
70
73
|
"chat_session_id": chat_session_id,
|
|
71
74
|
"use_node_cache": use_node_cache,
|
|
75
|
+
"edited_node_name": edited_node_name,
|
|
72
76
|
},
|
|
73
77
|
workflow_run_params.WorkflowRunParams,
|
|
74
78
|
),
|
|
@@ -135,6 +139,7 @@ class AsyncWorkflowResource(AsyncAPIResource):
|
|
|
135
139
|
*,
|
|
136
140
|
chat_session_id: str,
|
|
137
141
|
use_node_cache: bool,
|
|
142
|
+
edited_node_name: Optional[str] | Omit = omit,
|
|
138
143
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
139
144
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
140
145
|
extra_headers: Headers | None = None,
|
|
@@ -159,6 +164,7 @@ class AsyncWorkflowResource(AsyncAPIResource):
|
|
|
159
164
|
{
|
|
160
165
|
"chat_session_id": chat_session_id,
|
|
161
166
|
"use_node_cache": use_node_cache,
|
|
167
|
+
"edited_node_name": edited_node_name,
|
|
162
168
|
},
|
|
163
169
|
workflow_run_params.WorkflowRunParams,
|
|
164
170
|
),
|