-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3541da
commit 652fa30
Showing
242 changed files
with
4,131 additions
and
5,642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!-- Begin Title, generated by Fern --> | ||
# Seam Go Library | ||
|
||
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern) | ||
|
||
The Seam Go library provides convenient access to the Seam API from Go. | ||
<!-- End Title --> | ||
|
||
<!-- Begin Installation, generated by Fern --> | ||
# Installation | ||
|
||
Run the following command to use the Seam Go library in your module: | ||
```sh | ||
go get github.com/seamapi/go | ||
``` | ||
<!-- End Installation --> | ||
|
||
<!-- Begin Usage, generated by Fern --> | ||
# Usage | ||
|
||
```go | ||
import goclient "github.com/seamapi/go/client" | ||
|
||
client := goclient.NewClient(goclient.WithAuthApiKey("<YOUR_AUTH_TOKEN>")) | ||
``` | ||
<!-- End Usage --> | ||
|
||
<!-- Begin Status, generated by Fern --> | ||
# Beta Status | ||
|
||
This SDK is in beta, and there may be breaking changes between versions without a major | ||
version update. Therefore, we recommend pinning the package version to a specific version. | ||
This way, you can install the same version each time without breaking changes. | ||
<!-- End Status --> | ||
|
||
<!-- Begin Contributing, generated by Fern --> | ||
# Contributing | ||
|
||
While we value open-source contributions to this SDK, this library is generated programmatically. | ||
Additions made directly to this library would have to be moved over to our generation code, | ||
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as | ||
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening | ||
an issue first to discuss with us! | ||
|
||
On the other hand, contributions to the README are always very welcome! | ||
<!-- End Contributing --> | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
// This file was auto-generated by Fern from our API Definition. | ||
|
||
package api | ||
|
||
import ( | ||
fmt "fmt" | ||
) | ||
|
||
type AccessCodesCreateRequest struct { | ||
DeviceId string `json:"device_id"` | ||
Name *string `json:"name,omitempty"` | ||
StartsAt *string `json:"starts_at,omitempty"` | ||
EndsAt *string `json:"ends_at,omitempty"` | ||
Code *string `json:"code,omitempty"` | ||
Sync *bool `json:"sync,omitempty"` | ||
AttemptForOfflineDevice *bool `json:"attempt_for_offline_device,omitempty"` | ||
CommonCodeKey *string `json:"common_code_key,omitempty"` | ||
PreferNativeScheduling *bool `json:"prefer_native_scheduling,omitempty"` | ||
UseBackupAccessCodePool *bool `json:"use_backup_access_code_pool,omitempty"` | ||
} | ||
|
||
type AccessCodesCreateMultipleRequest struct { | ||
DeviceIds []string `json:"device_ids,omitempty"` | ||
BehaviorWhenCodeCannotBeShared *AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeShared `json:"behavior_when_code_cannot_be_shared,omitempty"` | ||
Name *string `json:"name,omitempty"` | ||
StartsAt *string `json:"starts_at,omitempty"` | ||
EndsAt *string `json:"ends_at,omitempty"` | ||
Code *string `json:"code,omitempty"` | ||
AttemptForOfflineDevice *bool `json:"attempt_for_offline_device,omitempty"` | ||
PreferNativeScheduling *bool `json:"prefer_native_scheduling,omitempty"` | ||
UseBackupAccessCodePool *bool `json:"use_backup_access_code_pool,omitempty"` | ||
} | ||
|
||
type AccessCodesDeleteRequest struct { | ||
DeviceId *string `json:"device_id,omitempty"` | ||
AccessCodeId string `json:"access_code_id"` | ||
Sync *bool `json:"sync,omitempty"` | ||
} | ||
|
||
type AccessCodesGetRequest struct { | ||
DeviceId *string `json:"device_id,omitempty"` | ||
AccessCodeId *string `json:"access_code_id,omitempty"` | ||
Code *string `json:"code,omitempty"` | ||
} | ||
|
||
type AccessCodesListRequest struct { | ||
DeviceId string `json:"device_id"` | ||
AccessCodeIds []string `json:"access_code_ids,omitempty"` | ||
} | ||
|
||
type AccessCodesPullBackupAccessCodeRequest struct { | ||
AccessCodeId string `json:"access_code_id"` | ||
} | ||
|
||
type AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeShared string | ||
|
||
const ( | ||
AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeSharedThrow AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeShared = "throw" | ||
AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeSharedCreateRandomCode AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeShared = "create_random_code" | ||
) | ||
|
||
func NewAccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeSharedFromString(s string) (AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeShared, error) { | ||
switch s { | ||
case "throw": | ||
return AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeSharedThrow, nil | ||
case "create_random_code": | ||
return AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeSharedCreateRandomCode, nil | ||
} | ||
var t AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeShared | ||
return "", fmt.Errorf("%s is not a valid %T", s, t) | ||
} | ||
|
||
func (a AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeShared) Ptr() *AccessCodesCreateMultipleRequestBehaviorWhenCodeCannotBeShared { | ||
return &a | ||
} | ||
|
||
type AccessCodesCreateMultipleResponse struct { | ||
AccessCodes []*AccessCode `json:"access_codes,omitempty"` | ||
Ok bool `json:"ok"` | ||
} | ||
|
||
type AccessCodesCreateResponse struct { | ||
ActionAttempt *ActionAttempt `json:"action_attempt,omitempty"` | ||
AccessCode *AccessCode `json:"access_code,omitempty"` | ||
Ok bool `json:"ok"` | ||
} | ||
|
||
type AccessCodesDeleteResponse struct { | ||
ActionAttempt *ActionAttempt `json:"action_attempt,omitempty"` | ||
Ok bool `json:"ok"` | ||
} | ||
|
||
type AccessCodesGetResponse struct { | ||
AccessCode *AccessCode `json:"access_code,omitempty"` | ||
Ok bool `json:"ok"` | ||
} | ||
|
||
type AccessCodesListResponse struct { | ||
AccessCodes []*AccessCode `json:"access_codes,omitempty"` | ||
Ok bool `json:"ok"` | ||
} | ||
|
||
type AccessCodesPullBackupAccessCodeResponse struct { | ||
BackupAccessCode *AccessCode `json:"backup_access_code,omitempty"` | ||
Ok bool `json:"ok"` | ||
} | ||
|
||
type AccessCodesUpdateRequestType string | ||
|
||
const ( | ||
AccessCodesUpdateRequestTypeOngoing AccessCodesUpdateRequestType = "ongoing" | ||
AccessCodesUpdateRequestTypeTimeBound AccessCodesUpdateRequestType = "time_bound" | ||
) | ||
|
||
func NewAccessCodesUpdateRequestTypeFromString(s string) (AccessCodesUpdateRequestType, error) { | ||
switch s { | ||
case "ongoing": | ||
return AccessCodesUpdateRequestTypeOngoing, nil | ||
case "time_bound": | ||
return AccessCodesUpdateRequestTypeTimeBound, nil | ||
} | ||
var t AccessCodesUpdateRequestType | ||
return "", fmt.Errorf("%s is not a valid %T", s, t) | ||
} | ||
|
||
func (a AccessCodesUpdateRequestType) Ptr() *AccessCodesUpdateRequestType { | ||
return &a | ||
} | ||
|
||
type AccessCodesUpdateResponse struct { | ||
ActionAttempt *ActionAttempt `json:"action_attempt,omitempty"` | ||
Ok bool `json:"ok"` | ||
} | ||
|
||
type AccessCodesUpdateRequest struct { | ||
Name *string `json:"name,omitempty"` | ||
StartsAt *string `json:"starts_at,omitempty"` | ||
EndsAt *string `json:"ends_at,omitempty"` | ||
Code *string `json:"code,omitempty"` | ||
Sync *bool `json:"sync,omitempty"` | ||
AttemptForOfflineDevice *bool `json:"attempt_for_offline_device,omitempty"` | ||
PreferNativeScheduling *bool `json:"prefer_native_scheduling,omitempty"` | ||
UseBackupAccessCodePool *bool `json:"use_backup_access_code_pool,omitempty"` | ||
AccessCodeId string `json:"access_code_id"` | ||
DeviceId *string `json:"device_id,omitempty"` | ||
Type *AccessCodesUpdateRequestType `json:"type,omitempty"` | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.