Skip to content

Commit 29cf0c2

Browse files
authored
Merge pull request #68 from epilot-dev/speakeasy-sdk-regen-1686275414
chore: speakeasy sdk regeneration - Generate Entity SDK
2 parents 6e87005 + 699e092 commit 29cf0c2

File tree

450 files changed

+12717
-2583
lines changed

Some content is hidden

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

450 files changed

+12717
-2583
lines changed

entity/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This allows generated code to be indexed correctly
2+
*.py linguist-generated=false

entity/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.python-version
2+
.DS_Store
3+
venv/
4+
src/*.egg-info/
5+
__pycache__/
6+
.pytest_cache/
7+
.python-version`

entity/README.md

Lines changed: 178 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -16,87 +16,214 @@ from epilot.models import operations, shared
1616

1717
s = epilot.Epilot(
1818
security=shared.Security(
19-
epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE",
19+
epilot_auth="",
2020
),
2121
)
2222

23-
2423
req = operations.AttachActivityRequest(
2524
entities=[
26-
"9bd9d8d6-9a67-44e0-b467-cc8796ed151a",
27-
"05dfc2dd-f7cc-478c-a1ba-928fc816742c",
28-
"b7392059-2939-46fe-a759-6eb10faaa235",
25+
'ee1dee63-2954-4671-8246-751c43fec091',
2926
],
30-
id="01F130Q52Q6MWSNS8N2AVXV4JN",
27+
id='01F130Q52Q6MWSNS8N2AVXV4JN',
3128
)
32-
29+
3330
res = s.activity.attach_activity(req)
3431

3532
if res.activity_item is not None:
3633
# handle response
34+
pass
3735
```
3836
<!-- End SDK Example Usage -->
3937

4038
<!-- Start SDK Available Operations -->
41-
## SDK Available Operations
39+
## Available Resources and Operations
40+
4241

42+
### [activity](docs/sdks/activity/README.md)
4343

44-
### activity
44+
* [attach_activity](docs/sdks/activity/README.md#attach_activity) - attachActivity
45+
* [create_activity](docs/sdks/activity/README.md#create_activity) - createActivity
46+
* [get_activity](docs/sdks/activity/README.md#get_activity) - getActivity
47+
* [get_entity_activity_feed](docs/sdks/activity/README.md#get_entity_activity_feed) - getEntityActivityFeed
4548

46-
* `attach_activity` - attachActivity
47-
* `create_activity` - createActivity
48-
* `get_activity` - getActivity
49-
* `get_entity_activity_feed` - getEntityActivityFeed
49+
### [entities](docs/sdks/entities/README.md)
5050

51-
### entities
51+
* [autocomplete](docs/sdks/entities/README.md#autocomplete) - autocomplete
52+
* [create_entity](docs/sdks/entities/README.md#create_entity) - createEntity
53+
* [delete_entity](docs/sdks/entities/README.md#delete_entity) - deleteEntity
54+
* [get_entity](docs/sdks/entities/README.md#get_entity) - getEntity
55+
* [patch_entity](docs/sdks/entities/README.md#patch_entity) - patchEntity
56+
* [search_entities](docs/sdks/entities/README.md#search_entities) - searchEntities
57+
* [update_entity](docs/sdks/entities/README.md#update_entity) - updateEntity
58+
* [upsert_entity](docs/sdks/entities/README.md#upsert_entity) - upsertEntity
5259

53-
* `autocomplete` - autocomplete
54-
* `create_entity` - createEntity
55-
* `delete_entity` - deleteEntity
56-
* `get_entity` - getEntity
57-
* `patch_entity` - patchEntity
58-
* `search_entities` - searchEntities
59-
* `update_entity` - updateEntity
60-
* `upsert_entity` - upsertEntity
60+
### [entity_import](docs/sdks/entityimport/README.md)
6161

62-
### export
62+
* [import_entities](docs/sdks/entityimport/README.md#import_entities) - Import Entities
6363

64-
* `export_entities` - exportEntities
65-
* `import_entities` - importEntities
64+
### [export](docs/sdks/export/README.md)
6665

67-
### relations
66+
* [export_entities](docs/sdks/export/README.md#export_entities) - exportEntities
6867

69-
* `add_relations` - addRelations
70-
* `delete_relation` - deleteRelation
71-
* `get_relations` - getRelations
72-
* `get_relations_v2` - getRelationsV2
73-
* `update_relation` - updateRelation
68+
### [relations](docs/sdks/relations/README.md)
7469

75-
### saved_views
70+
* [add_relations](docs/sdks/relations/README.md#add_relations) - addRelations
71+
* [delete_relation](docs/sdks/relations/README.md#delete_relation) - deleteRelation
72+
* [get_related_entities_count](docs/sdks/relations/README.md#get_related_entities_count) - getRelatedEntitiesCount
73+
* [get_relations](docs/sdks/relations/README.md#get_relations) - getRelations
74+
* [get_relations_v2](docs/sdks/relations/README.md#get_relations_v2) - getRelationsV2
75+
* [get_relations_v3](docs/sdks/relations/README.md#get_relations_v3) - getRelationsV3
76+
* [update_relation](docs/sdks/relations/README.md#update_relation) - updateRelation
7677

77-
* `create_saved_view` - createSavedView
78-
* `delete_saved_view` - deleteSavedView
79-
* `get_saved_view` - getSavedView
80-
* `list_saved_views` - listSavedViews
81-
* `update_saved_view` - updateSavedView
78+
### [saved_views](docs/sdks/savedviews/README.md)
8279

83-
### schemas
80+
* [create_saved_view](docs/sdks/savedviews/README.md#create_saved_view) - createSavedView
81+
* [delete_saved_view](docs/sdks/savedviews/README.md#delete_saved_view) - deleteSavedView
82+
* [get_saved_view](docs/sdks/savedviews/README.md#get_saved_view) - getSavedView
83+
* [list_favorite_views_for_user](docs/sdks/savedviews/README.md#list_favorite_views_for_user) - listFavoriteViewsForUser
84+
* [list_saved_views](docs/sdks/savedviews/README.md#list_saved_views) - listSavedViews
85+
* [update_saved_view](docs/sdks/savedviews/README.md#update_saved_view) - updateSavedView
8486

85-
* `delete_schema` - deleteSchema
86-
* `get_schema` - getSchema
87-
* `get_schema_versions` - getSchemaVersions
88-
* `list_schema_blueprints` - listSchemaBlueprints
89-
* `list_schemas` - listSchemas
90-
* `list_taxonomy_classifications_for_schema` - listTaxonomyClassificationsForSchema
91-
* `put_schema` - putSchema
87+
### [schemas](docs/sdks/schemas/README.md)
9288

93-
### taxonomy
89+
* [delete_schema](docs/sdks/schemas/README.md#delete_schema) - deleteSchema
90+
* [get_schema](docs/sdks/schemas/README.md#get_schema) - getSchema
91+
* [get_schema_versions](docs/sdks/schemas/README.md#get_schema_versions) - getSchemaVersions
92+
* [list_schema_blueprints](docs/sdks/schemas/README.md#list_schema_blueprints) - listSchemaBlueprints
93+
* [list_schemas](docs/sdks/schemas/README.md#list_schemas) - listSchemas
94+
* [list_taxonomy_classifications_for_schema](docs/sdks/schemas/README.md#list_taxonomy_classifications_for_schema) - listTaxonomyClassificationsForSchema
95+
* [put_schema](docs/sdks/schemas/README.md#put_schema) - putSchema
9496

95-
* `get_taxonomy` - getTaxonomy
96-
* `list_taxonomies` - listTaxonomies
97-
* `taxonomies_classifications_search` - taxonomiesClassificationsSearch
98-
* `taxonomy_autocomplete` - taxonomyAutocomplete
99-
* `update_classifications_for_taxonomy` - updateClassificationsForTaxonomy
97+
### [taxonomy](docs/sdks/taxonomy/README.md)
98+
99+
* [get_taxonomy](docs/sdks/taxonomy/README.md#get_taxonomy) - getTaxonomy
100+
* [list_taxonomies](docs/sdks/taxonomy/README.md#list_taxonomies) - listTaxonomies
101+
* [taxonomies_classifications_search](docs/sdks/taxonomy/README.md#taxonomies_classifications_search) - taxonomiesClassificationsSearch
102+
* [taxonomy_autocomplete](docs/sdks/taxonomy/README.md#taxonomy_autocomplete) - taxonomyAutocomplete
103+
* [update_classifications_for_taxonomy](docs/sdks/taxonomy/README.md#update_classifications_for_taxonomy) - updateClassificationsForTaxonomy
100104
<!-- End SDK Available Operations -->
101105

106+
107+
108+
<!-- Start Dev Containers -->
109+
110+
<!-- End Dev Containers -->
111+
112+
113+
114+
<!-- Start Pagination -->
115+
# Pagination
116+
117+
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
118+
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
119+
return value of `Next` is `None`, then there are no more pages to be fetched.
120+
121+
Here's an example of one such pagination call:
122+
<!-- End Pagination -->
123+
124+
125+
126+
<!-- Start Error Handling -->
127+
# Error Handling
128+
129+
Handling errors in your SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.
130+
<!-- End Error Handling -->
131+
132+
133+
134+
<!-- Start Server Selection -->
135+
# Server Selection
136+
137+
## Select Server by Index
138+
139+
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
140+
141+
| # | Server | Variables |
142+
| - | ------ | --------- |
143+
| 0 | `https://entity.sls.epilot.io` | None |
144+
145+
For example:
146+
147+
148+
```python
149+
import epilot
150+
from epilot.models import operations, shared
151+
152+
s = epilot.Epilot(
153+
security=shared.Security(
154+
epilot_auth="",
155+
),
156+
server_idx=0
157+
)
158+
159+
req = operations.AttachActivityRequest(
160+
entities=[
161+
'ee1dee63-2954-4671-8246-751c43fec091',
162+
],
163+
id='01F130Q52Q6MWSNS8N2AVXV4JN',
164+
)
165+
166+
res = s.activity.attach_activity(req)
167+
168+
if res.activity_item is not None:
169+
# handle response
170+
pass
171+
```
172+
173+
174+
## Override Server URL Per-Client
175+
176+
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
177+
178+
179+
```python
180+
import epilot
181+
from epilot.models import operations, shared
182+
183+
s = epilot.Epilot(
184+
security=shared.Security(
185+
epilot_auth="",
186+
),
187+
server_url="https://entity.sls.epilot.io"
188+
)
189+
190+
req = operations.AttachActivityRequest(
191+
entities=[
192+
'ee1dee63-2954-4671-8246-751c43fec091',
193+
],
194+
id='01F130Q52Q6MWSNS8N2AVXV4JN',
195+
)
196+
197+
res = s.activity.attach_activity(req)
198+
199+
if res.activity_item is not None:
200+
# handle response
201+
pass
202+
```
203+
<!-- End Server Selection -->
204+
205+
206+
207+
<!-- Start Custom HTTP Client -->
208+
# Custom HTTP Client
209+
210+
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
211+
212+
213+
For example, you could specify a header for every request that your sdk makes as follows:
214+
215+
```python
216+
import epilot
217+
import requests
218+
219+
http_client = requests.Session()
220+
http_client.headers.update({'x-custom-header': 'someValue'})
221+
s = epilot.Epilot(client: http_client)
222+
```
223+
<!-- End Custom HTTP Client -->
224+
225+
<!-- Placeholder for Future Speakeasy SDK Sections -->
226+
227+
228+
102229
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

0 commit comments

Comments
 (0)