Skip to content

Commit

Permalink
feat(api): api update (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and DannyNemer committed Oct 15, 2024
1 parent bbc4902 commit 0c9fe4c
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 51
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-0468898ce720912feb8723a31f41773399bb4c931369f4b4f2354be30019acc4.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-3a917b8686955f6fde9d822081ba7df42bed37826f0bf2c83fedad0a47721b91.yml
12 changes: 6 additions & 6 deletions src/conductor/resources/end_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def create(
Creates an EndUser.
Args:
company_name: Your end-user's company name that will be shown elsewhere in Conductor.
company_name: The end-user's company name that will be shown elsewhere in Conductor.
email: Your end-user's email address for identification purposes. Setting this field
email: The end-user's email address for identification purposes. Setting this field
will not cause any emails to be sent.
source_id: A unique identifier for your end-user from your system. Maps users between your
source_id: The end-user's unique identifier from your system. Maps users between your
database and Conductor. Must be unique for each user. If you have only one user,
you may use any string value.
Expand Down Expand Up @@ -280,12 +280,12 @@ async def create(
Creates an EndUser.
Args:
company_name: Your end-user's company name that will be shown elsewhere in Conductor.
company_name: The end-user's company name that will be shown elsewhere in Conductor.
email: Your end-user's email address for identification purposes. Setting this field
email: The end-user's email address for identification purposes. Setting this field
will not cause any emails to be sent.
source_id: A unique identifier for your end-user from your system. Maps users between your
source_id: The end-user's unique identifier from your system. Maps users between your
database and Conductor. Must be unique for each user. If you have only one user,
you may use any string value.
Expand Down
5 changes: 4 additions & 1 deletion src/conductor/types/auth_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ class AuthSession(BaseModel):
client_secret: str = FieldInfo(alias="clientSecret")
"""The secret used in `authFlowUrl` to securely access the authentication flow."""

created_at: str = FieldInfo(alias="createdAt")
"""The date and time when this object was created."""

end_user_id: str = FieldInfo(alias="endUserId")
"""The ID of the EndUser for whom to create an IntegrationConnection."""

expires_at: str = FieldInfo(alias="expiresAt")
"""The time at which the AuthSession expires.
"""The date and time when this AuthSession expires.
By default, this value is 30 minutes from creation. You can extend this time by
setting `linkExpiryMins` when
Expand Down
13 changes: 9 additions & 4 deletions src/conductor/types/end_user.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List
from typing_extensions import Literal

from pydantic import Field as FieldInfo

from .._models import BaseModel
from .integration_connection import IntegrationConnection

__all__ = ["EndUser"]

Expand All @@ -18,19 +20,22 @@ class EndUser(BaseModel):
"""

company_name: str = FieldInfo(alias="companyName")
"""Your end-user's company name that will be shown elsewhere in Conductor."""
"""The EndUser's company name that will be shown elsewhere in Conductor."""

created_at: str = FieldInfo(alias="createdAt")
"""The time at which the object was created."""
"""The date and time when this object was created."""

email: str
"""Your end-user's email address for identification purposes."""
"""The EndUser's email address for identification purposes."""

integration_connections: List[IntegrationConnection] = FieldInfo(alias="integrationConnections")
"""The EndUser's IntegrationConnections."""

object_type: Literal["end_user"] = FieldInfo(alias="objectType")
"""The type of object. This value is always `"end_user"`."""

source_id: str = FieldInfo(alias="sourceId")
"""Your end-user's unique ID from your system.
"""The EndUser's unique identifier from your system.
Maps users between your database and Conductor.
"""
6 changes: 3 additions & 3 deletions src/conductor/types/end_user_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

class EndUserCreateParams(TypedDict, total=False):
company_name: Required[Annotated[str, PropertyInfo(alias="companyName")]]
"""Your end-user's company name that will be shown elsewhere in Conductor."""
"""The end-user's company name that will be shown elsewhere in Conductor."""

email: Required[str]
"""Your end-user's email address for identification purposes.
"""The end-user's email address for identification purposes.
Setting this field will not cause any emails to be sent.
"""

source_id: Required[Annotated[str, PropertyInfo(alias="sourceId")]]
"""A unique identifier for your end-user from your system.
"""The end-user's unique identifier from your system.
Maps users between your database and Conductor. Must be unique for each user. If
you have only one user, you may use any string value.
Expand Down
6 changes: 5 additions & 1 deletion src/conductor/types/integration_connection.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from pydantic import Field as FieldInfo
Expand All @@ -14,13 +15,16 @@ class IntegrationConnection(BaseModel):
"""The unique identifier for this IntegrationConnection."""

created_at: str = FieldInfo(alias="createdAt")
"""The time at which the object was created."""
"""The date and time when this object was created."""

end_user_id: str = FieldInfo(alias="endUserId")
"""The ID of the EndUser who owns this IntegrationConnection."""

integration_slug: Literal["quickbooks_desktop"] = FieldInfo(alias="integrationSlug")
"""The identifier of the third-party platform to integrate."""

last_request_at: Optional[str] = FieldInfo(alias="lastRequestAt", default=None)
"""The date and time of your last API request to this IntegrationConnection."""

object_type: Literal["integration_connection"] = FieldInfo(alias="objectType")
"""The type of object. This value is always `"integration_connection"`."""

0 comments on commit 0c9fe4c

Please sign in to comment.