Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ jobs:
- uses: actions/checkout@v6

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/telnyx-go'
if: |-
github.repository == 'stainless-sdks/telnyx-go' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/telnyx-go'
if: |-
github.repository == 'stainless-sdks/telnyx-go' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.43.0"
".": "4.44.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 948
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-24fa7f67bff72e7cdd3ffe1e1982288ff948ec3548daee078800e5891d010672.yml
openapi_spec_hash: 6583028132880ad18d091aa53a5bed9f
config_hash: cacd1ecfbee4fb486e21f4c61009d648
configured_endpoints: 953
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-8b57ba42d490172b1da263344e4a074d94b96c2801ba8329a6be5c743c932303.yml
openapi_spec_hash: 6c41c630cd8ab8236ae8f8611cd3e6d9
config_hash: 0ba5866e810d1835ea3496dd0331f5ba
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 4.44.0 (2026-03-10)

Full Changelog: [v4.43.0...v4.44.0](https://github.com/team-telnyx/telnyx-go/compare/v4.43.0...v4.44.0)

### Features

* **api:** manual updates ([156c285](https://github.com/team-telnyx/telnyx-go/commit/156c2855302082ce14bf76a1b4f3197c26ed6ab5))
* Assistant tags ([3c74d33](https://github.com/team-telnyx/telnyx-go/commit/3c74d33e99c36c8215bca6ce25ccf988bdaa47a2))
* CW-2881 publish wireless VoLTE docs to prod ([9c16512](https://github.com/team-telnyx/telnyx-go/commit/9c1651289e816252a022ca6c24b80f06531a7dd8))
* MSG-6418: remove flashcall from hosted number verification codes endpoint ([64284b4](https://github.com/team-telnyx/telnyx-go/commit/64284b46640ade8533493156897542dd3a17a0cf))
* TELAPPS-ENGDESK-49737 Add prevent_double_bridge param to dial ([a455f5c](https://github.com/team-telnyx/telnyx-go/commit/a455f5ca425a3ece6f476bc25eb3df87f8f0a396))


### Chores

* **ci:** skip uploading artifacts on stainless-internal branches ([626f387](https://github.com/team-telnyx/telnyx-go/commit/626f387fe9fde8b69874f219251f5f79af2c897e))
* **internal:** minor cleanup ([5424a9f](https://github.com/team-telnyx/telnyx-go/commit/5424a9ff200b05c8816f46327ecaff7f9f1ff49c))
* **internal:** use explicit returns ([ae07632](https://github.com/team-telnyx/telnyx-go/commit/ae0763212ccbe13761dd7b653f053f8caa461cc5))
* update placeholder string ([0175443](https://github.com/team-telnyx/telnyx-go/commit/01754435c64ece5a3011fe9aa25feac8c6e7cca7))

## 4.43.0 (2026-03-05)

Full Changelog: [v4.42.0...v4.43.0](https://github.com/team-telnyx/telnyx-go/compare/v4.42.0...v4.43.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/team-telnyx/telnyx-go@v4.43.0'
go get -u 'github.com/team-telnyx/telnyx-go@v4.44.0'
```

<!-- x-release-please-end -->
Expand Down
10 changes: 5 additions & 5 deletions accessipaddress.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ func (r *AccessIPAddressService) New(ctx context.Context, body AccessIPAddressNe
opts = slices.Concat(r.Options, opts)
path := "access_ip_address"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

// Retrieve an access IP address
func (r *AccessIPAddressService) Get(ctx context.Context, accessIPAddressID string, opts ...option.RequestOption) (res *AccessIPAddressResponse, err error) {
opts = slices.Concat(r.Options, opts)
if accessIPAddressID == "" {
err = errors.New("missing required access_ip_address_id parameter")
return
return nil, err
}
path := fmt.Sprintf("access_ip_address/%s", accessIPAddressID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
return res, err
}

// List all Access IP Addresses
Expand Down Expand Up @@ -89,11 +89,11 @@ func (r *AccessIPAddressService) Delete(ctx context.Context, accessIPAddressID s
opts = slices.Concat(r.Options, opts)
if accessIPAddressID == "" {
err = errors.New("missing required access_ip_address_id parameter")
return
return nil, err
}
path := fmt.Sprintf("access_ip_address/%s", accessIPAddressID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &res, opts...)
return
return res, err
}

type AccessIPAddressResponse struct {
Expand Down
6 changes: 3 additions & 3 deletions accessiprange.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (r *AccessIPRangeService) New(ctx context.Context, body AccessIPRangeNewPar
opts = slices.Concat(r.Options, opts)
path := "access_ip_ranges"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

// List all Access IP Ranges
Expand Down Expand Up @@ -77,11 +77,11 @@ func (r *AccessIPRangeService) Delete(ctx context.Context, accessIPRangeID strin
opts = slices.Concat(r.Options, opts)
if accessIPRangeID == "" {
err = errors.New("missing required access_ip_range_id parameter")
return
return nil, err
}
path := fmt.Sprintf("access_ip_ranges/%s", accessIPRangeID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &res, opts...)
return
return res, err
}

type AccessIPRange struct {
Expand Down
2 changes: 1 addition & 1 deletion actionpurchase.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (r *ActionPurchaseService) New(ctx context.Context, body ActionPurchaseNewP
opts = slices.Concat(r.Options, opts)
path := "actions/purchase/esims"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

type ActionPurchaseNewResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion actionregister.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (r *ActionRegisterService) New(ctx context.Context, body ActionRegisterNewP
opts = slices.Concat(r.Options, opts)
path := "actions/register/sim_cards"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

type ActionRegisterNewResponse struct {
Expand Down
10 changes: 5 additions & 5 deletions address.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ func (r *AddressService) New(ctx context.Context, body AddressNewParams, opts ..
opts = slices.Concat(r.Options, opts)
path := "addresses"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

// Retrieves the details of an existing address.
func (r *AddressService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AddressGetResponse, err error) {
opts = slices.Concat(r.Options, opts)
if id == "" {
err = errors.New("missing required id parameter")
return
return nil, err
}
path := fmt.Sprintf("addresses/%s", id)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
return res, err
}

// Returns a list of your addresses.
Expand Down Expand Up @@ -111,11 +111,11 @@ func (r *AddressService) Delete(ctx context.Context, id string, opts ...option.R
opts = slices.Concat(r.Options, opts)
if id == "" {
err = errors.New("missing required id parameter")
return
return nil, err
}
path := fmt.Sprintf("addresses/%s", id)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &res, opts...)
return
return res, err
}

type Address struct {
Expand Down
6 changes: 3 additions & 3 deletions addressaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ func (r *AddressActionService) AcceptSuggestions(ctx context.Context, addressUui
opts = slices.Concat(r.Options, opts)
if addressUuid == "" {
err = errors.New("missing required address_uuid parameter")
return
return nil, err
}
path := fmt.Sprintf("addresses/%s/actions/accept_suggestions", addressUuid)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

// Validates an address for emergency services.
func (r *AddressActionService) Validate(ctx context.Context, body AddressActionValidateParams, opts ...option.RequestOption) (res *AddressActionValidateResponse, err error) {
opts = slices.Concat(r.Options, opts)
path := "addresses/actions/validate"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

type AddressActionAcceptSuggestionsResponse struct {
Expand Down
12 changes: 6 additions & 6 deletions advancedorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,39 +42,39 @@ func (r *AdvancedOrderService) New(ctx context.Context, body AdvancedOrderNewPar
opts = slices.Concat(r.Options, opts)
path := "advanced_orders"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

// Get Advanced Order
func (r *AdvancedOrderService) Get(ctx context.Context, orderID string, opts ...option.RequestOption) (res *AdvancedOrderGetResponse, err error) {
opts = slices.Concat(r.Options, opts)
if orderID == "" {
err = errors.New("missing required order_id parameter")
return
return nil, err
}
path := fmt.Sprintf("advanced_orders/%s", orderID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
return res, err
}

// List Advanced Orders
func (r *AdvancedOrderService) List(ctx context.Context, opts ...option.RequestOption) (res *AdvancedOrderListResponse, err error) {
opts = slices.Concat(r.Options, opts)
path := "advanced_orders"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
return res, err
}

// Update Advanced Order
func (r *AdvancedOrderService) UpdateRequirementGroup(ctx context.Context, advancedOrderID string, body AdvancedOrderUpdateRequirementGroupParams, opts ...option.RequestOption) (res *AdvancedOrderUpdateRequirementGroupResponse, err error) {
opts = slices.Concat(r.Options, opts)
if advancedOrderID == "" {
err = errors.New("missing required advanced-order-id parameter")
return
return nil, err
}
path := fmt.Sprintf("advanced_orders/%s/requirement_group", advancedOrderID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPatch, path, body, &res, opts...)
return
return res, err
}

type AdvancedOrderParam struct {
Expand Down
4 changes: 2 additions & 2 deletions ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (r *AIService) GetModels(ctx context.Context, opts ...option.RequestOption)
opts = slices.Concat(r.Options, opts)
path := "ai/models"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
return res, err
}

// Generate a summary of a file's contents.
Expand All @@ -89,7 +89,7 @@ func (r *AIService) Summarize(ctx context.Context, body AISummarizeParams, opts
opts = slices.Concat(r.Options, opts)
path := "ai/summarize"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
return res, err
}

type AIGetModelsResponse struct {
Expand Down
Loading