Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 17, 2024
1 parent 85f9509 commit 9ba37db
Show file tree
Hide file tree
Showing 39 changed files with 1,056 additions and 3,326 deletions.
8 changes: 4 additions & 4 deletions accesscodes/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *Client) Delete(
ctx context.Context,
request *seamapigo.AccessCodesDeleteRequest,
opts ...option.RequestOption,
) (*seamapigo.ActionAttempt, error) {
) (*seamapigo.AccessCodesDeleteResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -227,7 +227,7 @@ func (c *Client) Delete(
); err != nil {
return nil, err
}
return response.ActionAttempt, nil
return response, nil
}

func (c *Client) GenerateCode(
Expand Down Expand Up @@ -486,7 +486,7 @@ func (c *Client) Update(
ctx context.Context,
request *seamapigo.AccessCodesUpdateRequest,
opts ...option.RequestOption,
) (*seamapigo.ActionAttempt, error) {
) (*seamapigo.AccessCodesUpdateResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -542,5 +542,5 @@ func (c *Client) Update(
); err != nil {
return nil, err
}
return response.ActionAttempt, nil
return response, nil
}
4 changes: 2 additions & 2 deletions accesscodes/unmanaged/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (c *Client) Delete(
ctx context.Context,
request *accesscodes.UnmanagedDeleteRequest,
opts ...option.RequestOption,
) (*seamapigo.ActionAttempt, error) {
) (*accesscodes.UnmanagedDeleteResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -158,7 +158,7 @@ func (c *Client) Delete(
); err != nil {
return nil, err
}
return response.ActionAttempt, nil
return response, nil
}

func (c *Client) Get(
Expand Down
12 changes: 6 additions & 6 deletions acs/accessgroups/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (c *Client) Get(
ctx context.Context,
request *acs.AccessGroupsGetRequest,
opts ...option.RequestOption,
) (*acs.AccessGroupsGetResponse, error) {
) (*seamapigo.AcsAccessGroup, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -158,14 +158,14 @@ func (c *Client) Get(
); err != nil {
return nil, err
}
return response, nil
return response.AcsAccessGroup, nil
}

func (c *Client) List(
ctx context.Context,
request *acs.AccessGroupsListRequest,
opts ...option.RequestOption,
) (*acs.AccessGroupsListResponse, error) {
) ([]*seamapigo.AcsAccessGroup, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -221,14 +221,14 @@ func (c *Client) List(
); err != nil {
return nil, err
}
return response, nil
return response.AcsAccessGroups, nil
}

func (c *Client) ListUsers(
ctx context.Context,
request *acs.AccessGroupsListUsersRequest,
opts ...option.RequestOption,
) (*acs.AccessGroupsListUsersResponse, error) {
) ([]*seamapigo.AcsUser, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -284,7 +284,7 @@ func (c *Client) ListUsers(
); err != nil {
return nil, err
}
return response, nil
return response.AcsUsers, nil
}

func (c *Client) RemoveUser(
Expand Down
5 changes: 3 additions & 2 deletions acs/credential_pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package acs
import (
json "encoding/json"
fmt "fmt"
seamapigo "github.com/seamapi/go"
core "github.com/seamapi/go/core"
)

Expand All @@ -13,8 +14,8 @@ type CredentialPoolsListRequest struct {
}

type CredentialPoolsListResponse struct {
AcsCredentialPools []*CredentialPoolsListResponseAcsCredentialPoolsItem `json:"acs_credential_pools,omitempty" url:"acs_credential_pools,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredentialPools []*seamapigo.AcsCredentialPool `json:"acs_credential_pools,omitempty" url:"acs_credential_pools,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down
5 changes: 3 additions & 2 deletions acs/credential_provisioning_automations.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package acs
import (
json "encoding/json"
fmt "fmt"
seamapigo "github.com/seamapi/go"
core "github.com/seamapi/go/core"
)

Expand All @@ -17,8 +18,8 @@ type CredentialProvisioningAutomationsLaunchRequest struct {
}

type CredentialProvisioningAutomationsLaunchResponse struct {
AcsCredentialProvisioningAutomation *CredentialProvisioningAutomationsLaunchResponseAcsCredentialProvisioningAutomation `json:"acs_credential_provisioning_automation,omitempty" url:"acs_credential_provisioning_automation,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredentialProvisioningAutomation *seamapigo.AcsCredentialProvisioningAutomation `json:"acs_credential_provisioning_automation,omitempty" url:"acs_credential_provisioning_automation,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down
4 changes: 2 additions & 2 deletions acs/credentialpools/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *Client) List(
ctx context.Context,
request *acs.CredentialPoolsListRequest,
opts ...option.RequestOption,
) (*acs.CredentialPoolsListResponse, error) {
) ([]*seamapigo.AcsCredentialPool, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -95,5 +95,5 @@ func (c *Client) List(
); err != nil {
return nil, err
}
return response, nil
return response.AcsCredentialPools, nil
}
4 changes: 2 additions & 2 deletions acs/credentialprovisioningautomations/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *Client) Launch(
ctx context.Context,
request *acs.CredentialProvisioningAutomationsLaunchRequest,
opts ...option.RequestOption,
) (*acs.CredentialProvisioningAutomationsLaunchResponse, error) {
) (*seamapigo.AcsCredentialProvisioningAutomation, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -95,5 +95,5 @@ func (c *Client) Launch(
); err != nil {
return nil, err
}
return response, nil
return response.AcsCredentialProvisioningAutomation, nil
}
38 changes: 22 additions & 16 deletions acs/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package acs
import (
json "encoding/json"
fmt "fmt"
seamapigo "github.com/seamapi/go"
core "github.com/seamapi/go/core"
time "time"
)
Expand Down Expand Up @@ -66,8 +67,8 @@ type CredentialsListRequest struct {
}

type CredentialsAssignResponse struct {
AcsCredential *CredentialsAssignResponseAcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredential *seamapigo.AcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -121,10 +122,15 @@ func (c CredentialsCreateRequestAccessMethod) Ptr() *CredentialsCreateRequestAcc
}

type CredentialsCreateRequestVisionlineMetadata struct {
AssaAbloyCredentialServiceMobileEndpointId *string `json:"assa_abloy_credential_service_mobile_endpoint_id,omitempty" url:"assa_abloy_credential_service_mobile_endpoint_id,omitempty"`
CardFormat *CredentialsCreateRequestVisionlineMetadataCardFormat `json:"card_format,omitempty" url:"card_format,omitempty"`
IsOverrideKey *bool `json:"is_override_key,omitempty" url:"is_override_key,omitempty"`
JoinerAcsCredentialIds []string `json:"joiner_acs_credential_ids,omitempty" url:"joiner_acs_credential_ids,omitempty"`
AssaAbloyCredentialServiceMobileEndpointId *string `json:"assa_abloy_credential_service_mobile_endpoint_id,omitempty" url:"assa_abloy_credential_service_mobile_endpoint_id,omitempty"`
CardFormat *CredentialsCreateRequestVisionlineMetadataCardFormat `json:"card_format,omitempty" url:"card_format,omitempty"`
CardFunctionType *CredentialsCreateRequestVisionlineMetadataCardFunctionType `json:"card_function_type,omitempty" url:"card_function_type,omitempty"`
// ---
// deprecated: use override.
// ---
IsOverrideKey *bool `json:"is_override_key,omitempty" url:"is_override_key,omitempty"`
Override *bool `json:"override,omitempty" url:"override,omitempty"`
JoinerAcsCredentialIds []string `json:"joiner_acs_credential_ids,omitempty" url:"joiner_acs_credential_ids,omitempty"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -153,8 +159,8 @@ func (c *CredentialsCreateRequestVisionlineMetadata) String() string {
}

type CredentialsCreateResponse struct {
AcsCredential *CredentialsCreateResponseAcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredential *seamapigo.AcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -212,8 +218,8 @@ func (c *CredentialsDeleteResponse) String() string {
}

type CredentialsGetResponse struct {
AcsCredential *CredentialsGetResponseAcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredential *seamapigo.AcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -242,8 +248,8 @@ func (c *CredentialsGetResponse) String() string {
}

type CredentialsListResponse struct {
AcsCredentials []*CredentialsListResponseAcsCredentialsItem `json:"acs_credentials,omitempty" url:"acs_credentials,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredentials []*seamapigo.AcsCredential `json:"acs_credentials,omitempty" url:"acs_credentials,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -272,8 +278,8 @@ func (c *CredentialsListResponse) String() string {
}

type CredentialsUnassignResponse struct {
AcsCredential *CredentialsUnassignResponseAcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredential *seamapigo.AcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -302,8 +308,8 @@ func (c *CredentialsUnassignResponse) String() string {
}

type CredentialsUpdateResponse struct {
AcsCredential *CredentialsUpdateResponseAcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredential *seamapigo.AcsCredential `json:"acs_credential,omitempty" url:"acs_credential,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down
12 changes: 6 additions & 6 deletions acs/credentials/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (c *Client) Create(
ctx context.Context,
request *acs.CredentialsCreateRequest,
opts ...option.RequestOption,
) (*acs.CredentialsCreateResponse, error) {
) (*seamapigo.AcsCredential, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -158,7 +158,7 @@ func (c *Client) Create(
); err != nil {
return nil, err
}
return response, nil
return response.AcsCredential, nil
}

func (c *Client) Delete(
Expand Down Expand Up @@ -228,7 +228,7 @@ func (c *Client) Get(
ctx context.Context,
request *acs.CredentialsGetRequest,
opts ...option.RequestOption,
) (*acs.CredentialsGetResponse, error) {
) (*seamapigo.AcsCredential, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -284,14 +284,14 @@ func (c *Client) Get(
); err != nil {
return nil, err
}
return response, nil
return response.AcsCredential, nil
}

func (c *Client) List(
ctx context.Context,
request *acs.CredentialsListRequest,
opts ...option.RequestOption,
) (*acs.CredentialsListResponse, error) {
) ([]*seamapigo.AcsCredential, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://connect.getseam.com"
Expand Down Expand Up @@ -347,7 +347,7 @@ func (c *Client) List(
); err != nil {
return nil, err
}
return response, nil
return response.AcsCredentials, nil
}

func (c *Client) Unassign(
Expand Down
13 changes: 7 additions & 6 deletions acs/entrances.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package acs
import (
json "encoding/json"
fmt "fmt"
seamapigo "github.com/seamapi/go"
core "github.com/seamapi/go/core"
)

Expand All @@ -28,8 +29,8 @@ type EntrancesListCredentialsWithAccessRequest struct {
}

type EntrancesGetResponse struct {
AcsEntrance *EntrancesGetResponseAcsEntrance `json:"acs_entrance,omitempty" url:"acs_entrance,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsEntrance *seamapigo.AcsEntrance `json:"acs_entrance,omitempty" url:"acs_entrance,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -87,8 +88,8 @@ func (e *EntrancesGrantAccessResponse) String() string {
}

type EntrancesListCredentialsWithAccessResponse struct {
AcsCredentials []*EntrancesListCredentialsWithAccessResponseAcsCredentialsItem `json:"acs_credentials,omitempty" url:"acs_credentials,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsCredentials []*seamapigo.AcsCredential `json:"acs_credentials,omitempty" url:"acs_credentials,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -117,8 +118,8 @@ func (e *EntrancesListCredentialsWithAccessResponse) String() string {
}

type EntrancesListResponse struct {
AcsEntrances []*EntrancesListResponseAcsEntrancesItem `json:"acs_entrances,omitempty" url:"acs_entrances,omitempty"`
Ok bool `json:"ok" url:"ok"`
AcsEntrances []*seamapigo.AcsEntrance `json:"acs_entrances,omitempty" url:"acs_entrances,omitempty"`
Ok bool `json:"ok" url:"ok"`

_rawJSON json.RawMessage
}
Expand Down
Loading

0 comments on commit 9ba37db

Please sign in to comment.