Skip to content

Commit 2818d31

Browse files
committed
SK-2042 Add fern generared code for detect api support
1 parent 3af194c commit 2818d31

File tree

96 files changed

+7731
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+7731
-91
lines changed

skyflow/generated/rest/__init__.py

Lines changed: 148 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,56 @@
33
# isort: skip_file
44

55
from .types import (
6+
AdvancedOptionsColumnMapping,
7+
AdvancedOptionsEntityColumnMap,
8+
AdvancedOptionsVaultSchema,
9+
AllowRegex,
10+
AudioConfigTranscriptionType,
611
AuditEventAuditResourceType,
712
AuditEventContext,
813
AuditEventData,
914
AuditEventHttpInfo,
1015
BatchRecordMethod,
1116
ContextAccessType,
1217
ContextAuthMode,
18+
DeidentifyFileOutput,
19+
DeidentifyFileOutputProcessedFileType,
20+
DeidentifyFileResponse,
21+
DeidentifyStatusResponse,
22+
DeidentifyStatusResponseOutputType,
23+
DeidentifyStatusResponseStatus,
24+
DeidentifyStringResponse,
25+
DetectDataAccuracy,
26+
DetectDataEntities,
27+
DetectFileRequestDataType,
28+
DetectRequestDeidentifyOption,
29+
DetectedEntity,
1330
DetokenizeRecordResponseValueType,
31+
EntityLocation,
32+
EntityType,
33+
EntityTypes,
34+
ErrorResponse,
35+
ErrorResponseError,
36+
ErrorString,
1437
GooglerpcStatus,
38+
ProcessedFileOutputProcessedFileType,
1539
ProtobufAny,
1640
RedactionEnumRedaction,
41+
ReidentifyStringResponse,
1742
RequestActionType,
43+
ResourceId,
44+
RestrictRegex,
45+
TokenType,
46+
TokenTypeDefault,
47+
TokenTypeWithoutVault,
48+
TokenTypeWithoutVaultDefault,
49+
Transformations,
50+
TransformationsShiftDates,
51+
TransformationsShiftDatesEntityTypesItem,
52+
Uuid,
53+
V1AdvancedOptions,
54+
V1AudioConfig,
55+
V1AudioOptions,
1856
V1AuditAfterOptions,
1957
V1AuditEventResponse,
2058
V1AuditResponse,
@@ -29,26 +67,39 @@
2967
V1Card,
3068
V1DeleteFileResponse,
3169
V1DeleteRecordResponse,
70+
V1DetectFileResponse,
71+
V1DetectStatusResponse,
72+
V1DetectStatusResponseStatus,
73+
V1DetectTextRequest,
74+
V1DetectTextResponse,
3275
V1DetokenizeRecordRequest,
3376
V1DetokenizeRecordResponse,
3477
V1DetokenizeResponse,
3578
V1FieldRecords,
3679
V1FileAvScanStatus,
80+
V1FileDataFormat,
3781
V1GetAuthTokenResponse,
3882
V1GetFileScanStatusResponse,
3983
V1GetQueryResponse,
84+
V1ImageOptions,
4085
V1InsertRecordResponse,
86+
V1Locations,
4187
V1MemberType,
88+
V1PdfConfig,
89+
V1PdfOptions,
90+
V1ProcessedFileOutput,
4291
V1RecordMetaProperties,
92+
V1ResponseEntities,
4393
V1TokenizeRecordRequest,
4494
V1TokenizeRecordResponse,
4595
V1TokenizeResponse,
4696
V1UpdateRecordResponse,
4797
V1VaultFieldMapping,
4898
V1VaultSchemaConfig,
99+
VaultId,
49100
)
50-
from .errors import BadRequestError, NotFoundError, UnauthorizedError
51-
from . import audit, authentication, bin_lookup, query, records, tokens
101+
from .errors import BadRequestError, InternalServerError, NotFoundError, UnauthorizedError
102+
from . import audit, authentication, bin_lookup, deprecated, files, query, records, strings, tokens
52103
from .audit import (
53104
AuditServiceListAuditEventsRequestFilterOpsActionType,
54105
AuditServiceListAuditEventsRequestFilterOpsContextAccessType,
@@ -59,15 +110,41 @@
59110
)
60111
from .client import AsyncSkyflow, Skyflow
61112
from .environment import SkyflowEnvironment
113+
from .files import (
114+
DeidentifyAudioRequestFile,
115+
DeidentifyAudioRequestFileDataFormat,
116+
DeidentifyAudioRequestOutputTranscription,
117+
DeidentifyDocumentRequestFile,
118+
DeidentifyDocumentRequestFileDataFormat,
119+
DeidentifyFileRequestFile,
120+
DeidentifyFileRequestFileDataFormat,
121+
DeidentifyImageRequestFile,
122+
DeidentifyImageRequestFileDataFormat,
123+
DeidentifyImageRequestMaskingMethod,
124+
DeidentifyPdfRequestFile,
125+
DeidentifyPresentationRequestFile,
126+
DeidentifyPresentationRequestFileDataFormat,
127+
DeidentifySpreadsheetRequestFile,
128+
DeidentifySpreadsheetRequestFileDataFormat,
129+
DeidentifyStructuredTextRequestFile,
130+
DeidentifyStructuredTextRequestFileDataFormat,
131+
DeidentifyTextRequestFile,
132+
)
62133
from .records import (
63134
RecordServiceBulkGetRecordRequestOrderBy,
64135
RecordServiceBulkGetRecordRequestRedaction,
65136
RecordServiceGetRecordRequestRedaction,
66137
)
138+
from .strings import ReidentifyStringRequestFormat
67139
from .version import __version__
68140

69141
__all__ = [
142+
"AdvancedOptionsColumnMapping",
143+
"AdvancedOptionsEntityColumnMap",
144+
"AdvancedOptionsVaultSchema",
145+
"AllowRegex",
70146
"AsyncSkyflow",
147+
"AudioConfigTranscriptionType",
71148
"AuditEventAuditResourceType",
72149
"AuditEventContext",
73150
"AuditEventData",
@@ -82,18 +159,71 @@
82159
"BatchRecordMethod",
83160
"ContextAccessType",
84161
"ContextAuthMode",
162+
"DeidentifyAudioRequestFile",
163+
"DeidentifyAudioRequestFileDataFormat",
164+
"DeidentifyAudioRequestOutputTranscription",
165+
"DeidentifyDocumentRequestFile",
166+
"DeidentifyDocumentRequestFileDataFormat",
167+
"DeidentifyFileOutput",
168+
"DeidentifyFileOutputProcessedFileType",
169+
"DeidentifyFileRequestFile",
170+
"DeidentifyFileRequestFileDataFormat",
171+
"DeidentifyFileResponse",
172+
"DeidentifyImageRequestFile",
173+
"DeidentifyImageRequestFileDataFormat",
174+
"DeidentifyImageRequestMaskingMethod",
175+
"DeidentifyPdfRequestFile",
176+
"DeidentifyPresentationRequestFile",
177+
"DeidentifyPresentationRequestFileDataFormat",
178+
"DeidentifySpreadsheetRequestFile",
179+
"DeidentifySpreadsheetRequestFileDataFormat",
180+
"DeidentifyStatusResponse",
181+
"DeidentifyStatusResponseOutputType",
182+
"DeidentifyStatusResponseStatus",
183+
"DeidentifyStringResponse",
184+
"DeidentifyStructuredTextRequestFile",
185+
"DeidentifyStructuredTextRequestFileDataFormat",
186+
"DeidentifyTextRequestFile",
187+
"DetectDataAccuracy",
188+
"DetectDataEntities",
189+
"DetectFileRequestDataType",
190+
"DetectRequestDeidentifyOption",
191+
"DetectedEntity",
85192
"DetokenizeRecordResponseValueType",
193+
"EntityLocation",
194+
"EntityType",
195+
"EntityTypes",
196+
"ErrorResponse",
197+
"ErrorResponseError",
198+
"ErrorString",
86199
"GooglerpcStatus",
200+
"InternalServerError",
87201
"NotFoundError",
202+
"ProcessedFileOutputProcessedFileType",
88203
"ProtobufAny",
89204
"RecordServiceBulkGetRecordRequestOrderBy",
90205
"RecordServiceBulkGetRecordRequestRedaction",
91206
"RecordServiceGetRecordRequestRedaction",
92207
"RedactionEnumRedaction",
208+
"ReidentifyStringRequestFormat",
209+
"ReidentifyStringResponse",
93210
"RequestActionType",
211+
"ResourceId",
212+
"RestrictRegex",
94213
"Skyflow",
95214
"SkyflowEnvironment",
215+
"TokenType",
216+
"TokenTypeDefault",
217+
"TokenTypeWithoutVault",
218+
"TokenTypeWithoutVaultDefault",
219+
"Transformations",
220+
"TransformationsShiftDates",
221+
"TransformationsShiftDatesEntityTypesItem",
96222
"UnauthorizedError",
223+
"Uuid",
224+
"V1AdvancedOptions",
225+
"V1AudioConfig",
226+
"V1AudioOptions",
97227
"V1AuditAfterOptions",
98228
"V1AuditEventResponse",
99229
"V1AuditResponse",
@@ -108,28 +238,44 @@
108238
"V1Card",
109239
"V1DeleteFileResponse",
110240
"V1DeleteRecordResponse",
241+
"V1DetectFileResponse",
242+
"V1DetectStatusResponse",
243+
"V1DetectStatusResponseStatus",
244+
"V1DetectTextRequest",
245+
"V1DetectTextResponse",
111246
"V1DetokenizeRecordRequest",
112247
"V1DetokenizeRecordResponse",
113248
"V1DetokenizeResponse",
114249
"V1FieldRecords",
115250
"V1FileAvScanStatus",
251+
"V1FileDataFormat",
116252
"V1GetAuthTokenResponse",
117253
"V1GetFileScanStatusResponse",
118254
"V1GetQueryResponse",
255+
"V1ImageOptions",
119256
"V1InsertRecordResponse",
257+
"V1Locations",
120258
"V1MemberType",
259+
"V1PdfConfig",
260+
"V1PdfOptions",
261+
"V1ProcessedFileOutput",
121262
"V1RecordMetaProperties",
263+
"V1ResponseEntities",
122264
"V1TokenizeRecordRequest",
123265
"V1TokenizeRecordResponse",
124266
"V1TokenizeResponse",
125267
"V1UpdateRecordResponse",
126268
"V1VaultFieldMapping",
127269
"V1VaultSchemaConfig",
270+
"VaultId",
128271
"__version__",
129272
"audit",
130273
"authentication",
131274
"bin_lookup",
275+
"deprecated",
276+
"files",
132277
"query",
133278
"records",
279+
"strings",
134280
"tokens",
135281
]

skyflow/generated/rest/audit/raw_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ def audit_service_list_audit_events(
244244
raise NotFoundError(
245245
headers=dict(_response.headers),
246246
body=typing.cast(
247-
typing.Dict[str, typing.Optional[typing.Any]],
247+
typing.Optional[typing.Any],
248248
parse_obj_as(
249-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
249+
type_=typing.Optional[typing.Any], # type: ignore
250250
object_=_response.json(),
251251
),
252252
),
@@ -471,9 +471,9 @@ async def audit_service_list_audit_events(
471471
raise NotFoundError(
472472
headers=dict(_response.headers),
473473
body=typing.cast(
474-
typing.Dict[str, typing.Optional[typing.Any]],
474+
typing.Optional[typing.Any],
475475
parse_obj_as(
476-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
476+
type_=typing.Optional[typing.Any], # type: ignore
477477
object_=_response.json(),
478478
),
479479
),

skyflow/generated/rest/authentication/raw_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def authentication_service_get_auth_token(
9494
raise BadRequestError(
9595
headers=dict(_response.headers),
9696
body=typing.cast(
97-
typing.Dict[str, typing.Optional[typing.Any]],
97+
typing.Optional[typing.Any],
9898
parse_obj_as(
99-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
99+
type_=typing.Optional[typing.Any], # type: ignore
100100
object_=_response.json(),
101101
),
102102
),
@@ -105,9 +105,9 @@ def authentication_service_get_auth_token(
105105
raise UnauthorizedError(
106106
headers=dict(_response.headers),
107107
body=typing.cast(
108-
typing.Dict[str, typing.Optional[typing.Any]],
108+
typing.Optional[typing.Any],
109109
parse_obj_as(
110-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
110+
type_=typing.Optional[typing.Any], # type: ignore
111111
object_=_response.json(),
112112
),
113113
),
@@ -116,9 +116,9 @@ def authentication_service_get_auth_token(
116116
raise NotFoundError(
117117
headers=dict(_response.headers),
118118
body=typing.cast(
119-
typing.Dict[str, typing.Optional[typing.Any]],
119+
typing.Optional[typing.Any],
120120
parse_obj_as(
121-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
121+
type_=typing.Optional[typing.Any], # type: ignore
122122
object_=_response.json(),
123123
),
124124
),
@@ -206,9 +206,9 @@ async def authentication_service_get_auth_token(
206206
raise BadRequestError(
207207
headers=dict(_response.headers),
208208
body=typing.cast(
209-
typing.Dict[str, typing.Optional[typing.Any]],
209+
typing.Optional[typing.Any],
210210
parse_obj_as(
211-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
211+
type_=typing.Optional[typing.Any], # type: ignore
212212
object_=_response.json(),
213213
),
214214
),
@@ -217,9 +217,9 @@ async def authentication_service_get_auth_token(
217217
raise UnauthorizedError(
218218
headers=dict(_response.headers),
219219
body=typing.cast(
220-
typing.Dict[str, typing.Optional[typing.Any]],
220+
typing.Optional[typing.Any],
221221
parse_obj_as(
222-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
222+
type_=typing.Optional[typing.Any], # type: ignore
223223
object_=_response.json(),
224224
),
225225
),
@@ -228,9 +228,9 @@ async def authentication_service_get_auth_token(
228228
raise NotFoundError(
229229
headers=dict(_response.headers),
230230
body=typing.cast(
231-
typing.Dict[str, typing.Optional[typing.Any]],
231+
typing.Optional[typing.Any],
232232
parse_obj_as(
233-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
233+
type_=typing.Optional[typing.Any], # type: ignore
234234
object_=_response.json(),
235235
),
236236
),

skyflow/generated/rest/bin_lookup/raw_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def bin_list_service_list_cards_of_bin(
8585
raise NotFoundError(
8686
headers=dict(_response.headers),
8787
body=typing.cast(
88-
typing.Dict[str, typing.Optional[typing.Any]],
88+
typing.Optional[typing.Any],
8989
parse_obj_as(
90-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
90+
type_=typing.Optional[typing.Any], # type: ignore
9191
object_=_response.json(),
9292
),
9393
),
@@ -166,9 +166,9 @@ async def bin_list_service_list_cards_of_bin(
166166
raise NotFoundError(
167167
headers=dict(_response.headers),
168168
body=typing.cast(
169-
typing.Dict[str, typing.Optional[typing.Any]],
169+
typing.Optional[typing.Any],
170170
parse_obj_as(
171-
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
171+
type_=typing.Optional[typing.Any], # type: ignore
172172
object_=_response.json(),
173173
),
174174
),

0 commit comments

Comments
 (0)