Skip to content

Commit 70d5550

Browse files
committed
Release 0.0.0-alpha7
1 parent 53f2bdf commit 70d5550

File tree

540 files changed

+575
-541
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

540 files changed

+575
-541
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
3+
on: [push]
4+
jobs:
5+
publish:
6+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repo
10+
uses: actions/checkout@v3
11+
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: 2.7
15+
bundler-cache: true
16+
17+
- name: Test gem
18+
run: bundle install && bundle exec rake test
19+
20+
- name: Build and Push Gem
21+
env:
22+
GEM_HOST_API_KEY: ${{ secrets.RUBY_GEMS_API_KEY }}
23+
run: |
24+
gem build vapi_server_sdk.gemspec
25+
26+
gem push vapi_server_sdk-*.gem --host https://rubygems.org/

lib/requests.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ def get_url(request_options: nil)
4545

4646
# @return [Hash{String => String}]
4747
def get_headers
48-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "vapi", "X-Fern-SDK-Version": "0.0.0-alpha6" }
48+
headers = {
49+
"X-Fern-Language": "Ruby",
50+
"X-Fern-SDK-Name": "vapi_server_sdk",
51+
"X-Fern-SDK-Version": "0.0.0-alpha7"
52+
}
4953
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless @token.nil?
5054
headers
5155
end
@@ -90,7 +94,11 @@ def get_url(request_options: nil)
9094

9195
# @return [Hash{String => String}]
9296
def get_headers
93-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "vapi", "X-Fern-SDK-Version": "0.0.0-alpha6" }
97+
headers = {
98+
"X-Fern-Language": "Ruby",
99+
"X-Fern-SDK-Name": "vapi_server_sdk",
100+
"X-Fern-SDK-Version": "0.0.0-alpha7"
101+
}
94102
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless @token.nil?
95103
headers
96104
end

lib/types_export.rb

Lines changed: 524 additions & 524 deletions
Large diffs are not rendered by default.

lib/vapi.rb renamed to lib/vapi_server_sdk.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
require_relative "environment"
44
require_relative "types_export"
55
require_relative "requests"
6-
require_relative "vapi/calls/client"
7-
require_relative "vapi/assistants/client"
8-
require_relative "vapi/phone_numbers/client"
9-
require_relative "vapi/squads/client"
10-
require_relative "vapi/blocks/client"
11-
require_relative "vapi/tools/client"
12-
require_relative "vapi/files/client"
13-
require_relative "vapi/analytics/client"
14-
require_relative "vapi/logs/client"
6+
require_relative "vapi_server_sdk/calls/client"
7+
require_relative "vapi_server_sdk/assistants/client"
8+
require_relative "vapi_server_sdk/phone_numbers/client"
9+
require_relative "vapi_server_sdk/squads/client"
10+
require_relative "vapi_server_sdk/blocks/client"
11+
require_relative "vapi_server_sdk/tools/client"
12+
require_relative "vapi_server_sdk/files/client"
13+
require_relative "vapi_server_sdk/analytics/client"
14+
require_relative "vapi_server_sdk/logs/client"
1515

1616
module Vapi
1717
class Client
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/vapi/logs/client.rb renamed to lib/vapi_server_sdk/logs/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(request_client:)
2525
# @param customer_id [String] This is the ID of the customer.
2626
# @param squad_id [String] This is the ID of the squad.
2727
# @param call_id [String] This is the ID of the call.
28-
# @param page [Float] This is the page number to return. Defaults to 1.
28+
# @param page [Integer] This is the page number to return. Defaults to 1.
2929
# @param sort_order [Vapi::Logs::LogsGetRequestSortOrder] This is the sort order for pagination. Defaults to 'ASC'.
3030
# @param limit [Float] This is the maximum number of items to return. Defaults to 100.
3131
# @param created_at_gt [DateTime] This will return items where the createdAt is greater than the specified value.
@@ -106,7 +106,7 @@ def initialize(request_client:)
106106
# @param customer_id [String] This is the ID of the customer.
107107
# @param squad_id [String] This is the ID of the squad.
108108
# @param call_id [String] This is the ID of the call.
109-
# @param page [Float] This is the page number to return. Defaults to 1.
109+
# @param page [Integer] This is the page number to return. Defaults to 1.
110110
# @param sort_order [Vapi::Logs::LogsGetRequestSortOrder] This is the sort order for pagination. Defaults to 'ASC'.
111111
# @param limit [Float] This is the maximum number of items to return. Defaults to 100.
112112
# @param created_at_gt [DateTime] This will return items where the createdAt is greater than the specified value.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)