structifyai 1.178.0__py3-none-any.whl → 1.180.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/_version.py +1 -1
- structify/resources/connectors/connectors.py +357 -1
- structify/resources/polars.py +55 -42
- structify/resources/slack.py +8 -8
- structify/resources/wiki.py +23 -18
- structify/types/__init__.py +4 -1
- structify/types/chat_create_session_params.py +1 -0
- structify/types/code_generate_code_params.py +1 -0
- structify/types/connector_add_schema_object_params.py +59 -0
- structify/types/connector_add_schema_object_response.py +35 -0
- structify/types/llm_information_store.py +4 -0
- structify/types/slack_event_payload_param.py +2 -2
- structify/types/slack_events_params.py +2 -2
- structify/types/wiki_create_params.py +1 -2
- structify/types/wiki_create_response.py +23 -0
- structify/types/wiki_list_response.py +22 -3
- structify/types/wiki_page_with_references.py +18 -2
- structify/types/wiki_update_params.py +4 -2
- structify/types/wiki_update_response.py +23 -0
- {structifyai-1.178.0.dist-info → structifyai-1.180.0.dist-info}/METADATA +1 -1
- {structifyai-1.178.0.dist-info → structifyai-1.180.0.dist-info}/RECORD +23 -20
- structify/types/team_wiki_page.py +0 -28
- {structifyai-1.178.0.dist-info → structifyai-1.180.0.dist-info}/WHEEL +0 -0
- {structifyai-1.178.0.dist-info → structifyai-1.180.0.dist-info}/licenses/LICENSE +0 -0
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/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,8 +18,9 @@ from .._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from .._base_client import make_request_options
|
|
21
|
-
from ..types.team_wiki_page import TeamWikiPage
|
|
22
21
|
from ..types.wiki_list_response import WikiListResponse
|
|
22
|
+
from ..types.wiki_create_response import WikiCreateResponse
|
|
23
|
+
from ..types.wiki_update_response import WikiUpdateResponse
|
|
23
24
|
from ..types.wiki_page_with_references import WikiPageWithReferences
|
|
24
25
|
|
|
25
26
|
__all__ = ["WikiResource", "AsyncWikiResource"]
|
|
@@ -49,7 +50,7 @@ class WikiResource(SyncAPIResource):
|
|
|
49
50
|
self,
|
|
50
51
|
team_id: str,
|
|
51
52
|
*,
|
|
52
|
-
|
|
53
|
+
markdown: str,
|
|
53
54
|
slug: str,
|
|
54
55
|
title: str,
|
|
55
56
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -58,7 +59,7 @@ class WikiResource(SyncAPIResource):
|
|
|
58
59
|
extra_query: Query | None = None,
|
|
59
60
|
extra_body: Body | None = None,
|
|
60
61
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
61
|
-
) ->
|
|
62
|
+
) -> WikiCreateResponse:
|
|
62
63
|
"""
|
|
63
64
|
Args:
|
|
64
65
|
extra_headers: Send extra headers
|
|
@@ -75,7 +76,7 @@ class WikiResource(SyncAPIResource):
|
|
|
75
76
|
f"/team/{team_id}/wiki",
|
|
76
77
|
body=maybe_transform(
|
|
77
78
|
{
|
|
78
|
-
"
|
|
79
|
+
"markdown": markdown,
|
|
79
80
|
"slug": slug,
|
|
80
81
|
"title": title,
|
|
81
82
|
},
|
|
@@ -84,7 +85,7 @@ class WikiResource(SyncAPIResource):
|
|
|
84
85
|
options=make_request_options(
|
|
85
86
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
86
87
|
),
|
|
87
|
-
cast_to=
|
|
88
|
+
cast_to=WikiCreateResponse,
|
|
88
89
|
)
|
|
89
90
|
|
|
90
91
|
def update(
|
|
@@ -92,7 +93,8 @@ class WikiResource(SyncAPIResource):
|
|
|
92
93
|
slug: str,
|
|
93
94
|
*,
|
|
94
95
|
team_id: str,
|
|
95
|
-
|
|
96
|
+
markdown: str,
|
|
97
|
+
base_version: Optional[int] | Omit = omit,
|
|
96
98
|
title: Optional[str] | Omit = omit,
|
|
97
99
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
98
100
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -100,7 +102,7 @@ class WikiResource(SyncAPIResource):
|
|
|
100
102
|
extra_query: Query | None = None,
|
|
101
103
|
extra_body: Body | None = None,
|
|
102
104
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
103
|
-
) ->
|
|
105
|
+
) -> WikiUpdateResponse:
|
|
104
106
|
"""
|
|
105
107
|
Args:
|
|
106
108
|
extra_headers: Send extra headers
|
|
@@ -119,7 +121,8 @@ class WikiResource(SyncAPIResource):
|
|
|
119
121
|
f"/team/{team_id}/wiki/{slug}",
|
|
120
122
|
body=maybe_transform(
|
|
121
123
|
{
|
|
122
|
-
"
|
|
124
|
+
"markdown": markdown,
|
|
125
|
+
"base_version": base_version,
|
|
123
126
|
"title": title,
|
|
124
127
|
},
|
|
125
128
|
wiki_update_params.WikiUpdateParams,
|
|
@@ -127,7 +130,7 @@ class WikiResource(SyncAPIResource):
|
|
|
127
130
|
options=make_request_options(
|
|
128
131
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
129
132
|
),
|
|
130
|
-
cast_to=
|
|
133
|
+
cast_to=WikiUpdateResponse,
|
|
131
134
|
)
|
|
132
135
|
|
|
133
136
|
def list(
|
|
@@ -255,7 +258,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
255
258
|
self,
|
|
256
259
|
team_id: str,
|
|
257
260
|
*,
|
|
258
|
-
|
|
261
|
+
markdown: str,
|
|
259
262
|
slug: str,
|
|
260
263
|
title: str,
|
|
261
264
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -264,7 +267,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
264
267
|
extra_query: Query | None = None,
|
|
265
268
|
extra_body: Body | None = None,
|
|
266
269
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
267
|
-
) ->
|
|
270
|
+
) -> WikiCreateResponse:
|
|
268
271
|
"""
|
|
269
272
|
Args:
|
|
270
273
|
extra_headers: Send extra headers
|
|
@@ -281,7 +284,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
281
284
|
f"/team/{team_id}/wiki",
|
|
282
285
|
body=await async_maybe_transform(
|
|
283
286
|
{
|
|
284
|
-
"
|
|
287
|
+
"markdown": markdown,
|
|
285
288
|
"slug": slug,
|
|
286
289
|
"title": title,
|
|
287
290
|
},
|
|
@@ -290,7 +293,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
290
293
|
options=make_request_options(
|
|
291
294
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
292
295
|
),
|
|
293
|
-
cast_to=
|
|
296
|
+
cast_to=WikiCreateResponse,
|
|
294
297
|
)
|
|
295
298
|
|
|
296
299
|
async def update(
|
|
@@ -298,7 +301,8 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
298
301
|
slug: str,
|
|
299
302
|
*,
|
|
300
303
|
team_id: str,
|
|
301
|
-
|
|
304
|
+
markdown: str,
|
|
305
|
+
base_version: Optional[int] | Omit = omit,
|
|
302
306
|
title: Optional[str] | Omit = omit,
|
|
303
307
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
304
308
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -306,7 +310,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
306
310
|
extra_query: Query | None = None,
|
|
307
311
|
extra_body: Body | None = None,
|
|
308
312
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
309
|
-
) ->
|
|
313
|
+
) -> WikiUpdateResponse:
|
|
310
314
|
"""
|
|
311
315
|
Args:
|
|
312
316
|
extra_headers: Send extra headers
|
|
@@ -325,7 +329,8 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
325
329
|
f"/team/{team_id}/wiki/{slug}",
|
|
326
330
|
body=await async_maybe_transform(
|
|
327
331
|
{
|
|
328
|
-
"
|
|
332
|
+
"markdown": markdown,
|
|
333
|
+
"base_version": base_version,
|
|
329
334
|
"title": title,
|
|
330
335
|
},
|
|
331
336
|
wiki_update_params.WikiUpdateParams,
|
|
@@ -333,7 +338,7 @@ class AsyncWikiResource(AsyncAPIResource):
|
|
|
333
338
|
options=make_request_options(
|
|
334
339
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
335
340
|
),
|
|
336
|
-
cast_to=
|
|
341
|
+
cast_to=WikiUpdateResponse,
|
|
337
342
|
)
|
|
338
343
|
|
|
339
344
|
async def list(
|
structify/types/__init__.py
CHANGED
|
@@ -34,7 +34,6 @@ from .dashboard_page import DashboardPage as DashboardPage
|
|
|
34
34
|
from .job_event_body import JobEventBody as JobEventBody
|
|
35
35
|
from .project_member import ProjectMember as ProjectMember
|
|
36
36
|
from .strategy_param import StrategyParam as StrategyParam
|
|
37
|
-
from .team_wiki_page import TeamWikiPage as TeamWikiPage
|
|
38
37
|
from .team_with_role import TeamWithRole as TeamWithRole
|
|
39
38
|
from .token_response import TokenResponse as TokenResponse
|
|
40
39
|
from .autofix_context import AutofixContext as AutofixContext
|
|
@@ -116,6 +115,8 @@ from .select_team_response import SelectTeamResponse as SelectTeamResponse
|
|
|
116
115
|
from .source_list_response import SourceListResponse as SourceListResponse
|
|
117
116
|
from .structure_pdf_params import StructurePdfParams as StructurePdfParams
|
|
118
117
|
from .update_team_response import UpdateTeamResponse as UpdateTeamResponse
|
|
118
|
+
from .wiki_create_response import WikiCreateResponse as WikiCreateResponse
|
|
119
|
+
from .wiki_update_response import WikiUpdateResponse as WikiUpdateResponse
|
|
119
120
|
from .workflow_stop_params import WorkflowStopParams as WorkflowStopParams
|
|
120
121
|
from .connector_auth_method import ConnectorAuthMethod as ConnectorAuthMethod
|
|
121
122
|
from .connector_list_params import ConnectorListParams as ConnectorListParams
|
|
@@ -296,6 +297,7 @@ from .relationship_merge_strategy_param import RelationshipMergeStrategyParam as
|
|
|
296
297
|
from .source_delete_relationship_params import SourceDeleteRelationshipParams as SourceDeleteRelationshipParams
|
|
297
298
|
from .structure_enhance_property_params import StructureEnhancePropertyParams as StructureEnhancePropertyParams
|
|
298
299
|
from .chat_get_session_timeline_response import ChatGetSessionTimelineResponse as ChatGetSessionTimelineResponse
|
|
300
|
+
from .connector_add_schema_object_params import ConnectorAddSchemaObjectParams as ConnectorAddSchemaObjectParams
|
|
299
301
|
from .connector_get_explorer_chat_params import ConnectorGetExplorerChatParams as ConnectorGetExplorerChatParams
|
|
300
302
|
from .dataset_enrichment_progress_params import DatasetEnrichmentProgressParams as DatasetEnrichmentProgressParams
|
|
301
303
|
from .dataset_update_relationship_params import DatasetUpdateRelationshipParams as DatasetUpdateRelationshipParams
|
|
@@ -312,6 +314,7 @@ from .entity_get_source_entities_response import EntityGetSourceEntitiesResponse
|
|
|
312
314
|
from .session_request_confirmation_params import SessionRequestConfirmationParams as SessionRequestConfirmationParams
|
|
313
315
|
from .session_update_node_progress_params import SessionUpdateNodeProgressParams as SessionUpdateNodeProgressParams
|
|
314
316
|
from .structure_enhance_property_response import StructureEnhancePropertyResponse as StructureEnhancePropertyResponse
|
|
317
|
+
from .connector_add_schema_object_response import ConnectorAddSchemaObjectResponse as ConnectorAddSchemaObjectResponse
|
|
315
318
|
from .dataset_enrichment_progress_response import DatasetEnrichmentProgressResponse as DatasetEnrichmentProgressResponse
|
|
316
319
|
from .structure_find_relationship_response import StructureFindRelationshipResponse as StructureFindRelationshipResponse
|
|
317
320
|
from .connector_delete_schema_object_params import (
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["ConnectorAddSchemaObjectParams", "Variant0", "Variant1", "Variant2", "Variant3"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Variant0(TypedDict, total=False):
|
|
12
|
+
name: Required[str]
|
|
13
|
+
|
|
14
|
+
type: Required[Literal["database"]]
|
|
15
|
+
|
|
16
|
+
description: Optional[str]
|
|
17
|
+
|
|
18
|
+
notes: Optional[str]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Variant1(TypedDict, total=False):
|
|
22
|
+
database_id: Required[str]
|
|
23
|
+
|
|
24
|
+
name: Required[str]
|
|
25
|
+
|
|
26
|
+
type: Required[Literal["schema"]]
|
|
27
|
+
|
|
28
|
+
description: Optional[str]
|
|
29
|
+
|
|
30
|
+
notes: Optional[str]
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class Variant2(TypedDict, total=False):
|
|
34
|
+
name: Required[str]
|
|
35
|
+
|
|
36
|
+
schema_id: Required[str]
|
|
37
|
+
|
|
38
|
+
type: Required[Literal["table"]]
|
|
39
|
+
|
|
40
|
+
description: Optional[str]
|
|
41
|
+
|
|
42
|
+
endpoint: Optional[str]
|
|
43
|
+
|
|
44
|
+
notes: Optional[str]
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class Variant3(TypedDict, total=False):
|
|
48
|
+
column_type: Required[str]
|
|
49
|
+
|
|
50
|
+
name: Required[str]
|
|
51
|
+
|
|
52
|
+
table_id: Required[str]
|
|
53
|
+
|
|
54
|
+
type: Required[Literal["column"]]
|
|
55
|
+
|
|
56
|
+
notes: Optional[str]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
ConnectorAddSchemaObjectParams: TypeAlias = Union[Variant0, Variant1, Variant2, Variant3]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
from typing_extensions import Literal, TypeAlias
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["ConnectorAddSchemaObjectResponse", "UnionMember0", "UnionMember1", "UnionMember2", "UnionMember3"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class UnionMember0(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
|
|
14
|
+
type: Literal["database"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class UnionMember1(BaseModel):
|
|
18
|
+
id: str
|
|
19
|
+
|
|
20
|
+
type: Literal["schema"]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class UnionMember2(BaseModel):
|
|
24
|
+
id: str
|
|
25
|
+
|
|
26
|
+
type: Literal["table"]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class UnionMember3(BaseModel):
|
|
30
|
+
id: str
|
|
31
|
+
|
|
32
|
+
type: Literal["column"]
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
ConnectorAddSchemaObjectResponse: TypeAlias = Union[UnionMember0, UnionMember1, UnionMember2, UnionMember3]
|
|
@@ -44,6 +44,8 @@ class DatabaseSchemaTable(BaseModel):
|
|
|
44
44
|
class DatabaseSchema(BaseModel):
|
|
45
45
|
"""Schema within a database"""
|
|
46
46
|
|
|
47
|
+
id: str
|
|
48
|
+
|
|
47
49
|
name: str
|
|
48
50
|
|
|
49
51
|
tables: List[DatabaseSchemaTable]
|
|
@@ -56,6 +58,8 @@ class DatabaseSchema(BaseModel):
|
|
|
56
58
|
class Database(BaseModel):
|
|
57
59
|
"""Database within a connector"""
|
|
58
60
|
|
|
61
|
+
id: str
|
|
62
|
+
|
|
59
63
|
name: str
|
|
60
64
|
|
|
61
65
|
schemas: List[DatabaseSchema]
|
|
@@ -59,6 +59,8 @@ class EventCallbackEvent(TypedDict, total=False):
|
|
|
59
59
|
class EventCallback(TypedDict, total=False):
|
|
60
60
|
event: Required[EventCallbackEvent]
|
|
61
61
|
|
|
62
|
+
event_id: Required[str]
|
|
63
|
+
|
|
62
64
|
team_id: Required[str]
|
|
63
65
|
|
|
64
66
|
type: Required[Literal["event_callback"]]
|
|
@@ -69,8 +71,6 @@ class EventCallback(TypedDict, total=False):
|
|
|
69
71
|
|
|
70
72
|
event_context: Optional[str]
|
|
71
73
|
|
|
72
|
-
event_id: Optional[str]
|
|
73
|
-
|
|
74
74
|
event_time: Optional[int]
|
|
75
75
|
|
|
76
76
|
|
|
@@ -21,6 +21,8 @@ class Variant0(TypedDict, total=False):
|
|
|
21
21
|
class Variant1(TypedDict, total=False):
|
|
22
22
|
event: Required[Variant1Event]
|
|
23
23
|
|
|
24
|
+
event_id: Required[str]
|
|
25
|
+
|
|
24
26
|
team_id: Required[str]
|
|
25
27
|
|
|
26
28
|
type: Required[Literal["event_callback"]]
|
|
@@ -31,8 +33,6 @@ class Variant1(TypedDict, total=False):
|
|
|
31
33
|
|
|
32
34
|
event_context: Optional[str]
|
|
33
35
|
|
|
34
|
-
event_id: Optional[str]
|
|
35
|
-
|
|
36
36
|
event_time: Optional[int]
|
|
37
37
|
|
|
38
38
|
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict
|
|
6
5
|
from typing_extensions import Required, TypedDict
|
|
7
6
|
|
|
8
7
|
__all__ = ["WikiCreateParams"]
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class WikiCreateParams(TypedDict, total=False):
|
|
12
|
-
|
|
11
|
+
markdown: Required[str]
|
|
13
12
|
|
|
14
13
|
slug: Required[str]
|
|
15
14
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["WikiCreateResponse"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class WikiCreateResponse(BaseModel):
|
|
9
|
+
id: str
|
|
10
|
+
|
|
11
|
+
created_at: str
|
|
12
|
+
|
|
13
|
+
markdown: str
|
|
14
|
+
|
|
15
|
+
slug: str
|
|
16
|
+
|
|
17
|
+
team_id: str
|
|
18
|
+
|
|
19
|
+
title: str
|
|
20
|
+
|
|
21
|
+
updated_at: str
|
|
22
|
+
|
|
23
|
+
version: int
|
|
@@ -3,8 +3,27 @@
|
|
|
3
3
|
from typing import List
|
|
4
4
|
from typing_extensions import TypeAlias
|
|
5
5
|
|
|
6
|
-
from
|
|
6
|
+
from .._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["WikiListResponse"]
|
|
8
|
+
__all__ = ["WikiListResponse", "WikiListResponseItem"]
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
class WikiListResponseItem(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
|
|
14
|
+
created_at: str
|
|
15
|
+
|
|
16
|
+
markdown: str
|
|
17
|
+
|
|
18
|
+
slug: str
|
|
19
|
+
|
|
20
|
+
team_id: str
|
|
21
|
+
|
|
22
|
+
title: str
|
|
23
|
+
|
|
24
|
+
updated_at: str
|
|
25
|
+
|
|
26
|
+
version: int
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
WikiListResponse: TypeAlias = List[WikiListResponseItem]
|
|
@@ -2,11 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import List
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from .._models import BaseModel
|
|
6
6
|
from .wiki_connector_reference import WikiConnectorReference
|
|
7
7
|
|
|
8
8
|
__all__ = ["WikiPageWithReferences"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class WikiPageWithReferences(
|
|
11
|
+
class WikiPageWithReferences(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
|
|
14
|
+
created_at: str
|
|
15
|
+
|
|
16
|
+
markdown: str
|
|
17
|
+
|
|
12
18
|
references: List[WikiConnectorReference]
|
|
19
|
+
|
|
20
|
+
slug: str
|
|
21
|
+
|
|
22
|
+
team_id: str
|
|
23
|
+
|
|
24
|
+
title: str
|
|
25
|
+
|
|
26
|
+
updated_at: str
|
|
27
|
+
|
|
28
|
+
version: int
|
|
@@ -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
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
8
|
__all__ = ["WikiUpdateParams"]
|
|
@@ -11,6 +11,8 @@ __all__ = ["WikiUpdateParams"]
|
|
|
11
11
|
class WikiUpdateParams(TypedDict, total=False):
|
|
12
12
|
team_id: Required[str]
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
markdown: Required[str]
|
|
15
|
+
|
|
16
|
+
base_version: Optional[int]
|
|
15
17
|
|
|
16
18
|
title: Optional[str]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["WikiUpdateResponse"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class WikiUpdateResponse(BaseModel):
|
|
9
|
+
id: str
|
|
10
|
+
|
|
11
|
+
created_at: str
|
|
12
|
+
|
|
13
|
+
markdown: str
|
|
14
|
+
|
|
15
|
+
slug: str
|
|
16
|
+
|
|
17
|
+
team_id: str
|
|
18
|
+
|
|
19
|
+
title: str
|
|
20
|
+
|
|
21
|
+
updated_at: str
|
|
22
|
+
|
|
23
|
+
version: int
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: structifyai
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.180.0
|
|
4
4
|
Summary: The official Python library for the structify API
|
|
5
5
|
Project-URL: Homepage, https://github.com/StructifyAI/structify-python
|
|
6
6
|
Project-URL: Repository, https://github.com/StructifyAI/structify-python
|