Skip to content

Commit

Permalink
Release v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 26, 2023
1 parent b3541da commit 652fa30
Show file tree
Hide file tree
Showing 242 changed files with 4,131 additions and 5,642 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ jobs:

- name: Compile
run: go build ./...
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up go
uses: actions/setup-go@v4

- name: Test
run: go test ./...
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

47 changes: 47 additions & 0 deletions README.md
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 -->

28 changes: 0 additions & 28 deletions access_code.go

This file was deleted.

65 changes: 0 additions & 65 deletions access_code_status.go

This file was deleted.

47 changes: 0 additions & 47 deletions access_code_type.go

This file was deleted.

147 changes: 147 additions & 0 deletions access_codes.go
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"`
}
16 changes: 0 additions & 16 deletions access_codes_create_multiple_request.go

This file was deleted.

Loading

0 comments on commit 652fa30

Please sign in to comment.