rcs 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cc0ed650419f2955313e2c91055c00a20c376af7b19fca0a067c575e39cb441
4
- data.tar.gz: 0114e52c609971adb0f70222a9eda7be72ed2c21cbaab3edf6412a3586419c4d
3
+ metadata.gz: 136abdf05e10f91dfd2f6887a0fc7d604b0923a4324a93f63610ce033db24a51
4
+ data.tar.gz: 07ae0f8fb7fcb527d7e88ac474819d43d303919baf0056352c90b1e8414377d1
5
5
  SHA512:
6
- metadata.gz: f814ccaa8ebb9566fd17e1f5d067605f60ef77e5becb1e66c336eb6feda96aa42b384d3d04dcfb6ec89ae0e2d4e48d0516750b7c0c35fafc52cbb2faf139cb53
7
- data.tar.gz: 1c5530bf2ad1d6589b6e445929ca77aa7dd0e80c726faa93cda11e4e335fb0002aa8bad60f9f2de9ca4d60f34b18a8a9118c3bf416b6d292412d5639654ab274
6
+ metadata.gz: a2ad9f1075a4c578876caebede6b7dd9bd9865a8eb21ddfd516338b5d77b3ad57d2fa3f9059179345f4d80f607a9f9cc1dad47521bdac767ffec7519364eb697
7
+ data.tar.gz: 07db3f3b3564a39bea88b6864b0065c625f2742e3ad769f000a96cdd79981a8ed7e6a7bd3c871e2000531bc8d7c47cbcbe0704d989710665e20d90c1a095e576
@@ -3,12 +3,12 @@
3
3
  require_relative "../../requests"
4
4
  require_relative "../types/company"
5
5
  require "json"
6
- require_relative "../types/company_details"
6
+ require_relative "types/company_register_request"
7
+ require_relative "types/company_register_response"
7
8
  require_relative "../types/company_contact"
8
9
  require_relative "../types/messaging"
9
10
  require_relative "../types/point_of_contact"
10
11
  require_relative "../types/optionals"
11
- require_relative "types/company_register_response"
12
12
  require_relative "types/company_update_response"
13
13
  require "async"
14
14
 
@@ -65,39 +65,7 @@ module Pinnacle
65
65
 
66
66
  # Register a company for RCS with the Pinnacle platform
67
67
  #
68
- # @param company [Hash] Request of type Pinnacle::CompanyDetails, as a Hash
69
- # * :name (String)
70
- # * :category (Pinnacle::CompanyCategory)
71
- # * :address (String)
72
- # * :ein (String)
73
- # * :description (String)
74
- # * :brand_color (String)
75
- # * :logo_url (String)
76
- # * :hero_url (String)
77
- # @param company_contact [Hash] Request of type Pinnacle::CompanyContact, as a Hash
78
- # * :primary_website_url (String)
79
- # * :primary_website_label (String)
80
- # * :primary_phone (String)
81
- # * :primary_phone_label (String)
82
- # * :primary_email (String)
83
- # * :primary_email_label (String)
84
- # * :privacy_policy_url (String)
85
- # * :tos_url (String)
86
- # @param messaging [Hash] Request of type Pinnacle::Messaging, as a Hash
87
- # * :opt_in (String)
88
- # * :opt_out (String)
89
- # * :opt_out_keywords (Array<String>)
90
- # * :agent_use_case (String)
91
- # * :expected_agent_responses (String)
92
- # @param point_of_contact [Hash] Request of type Pinnacle::PointOfContact, as a Hash
93
- # * :poc_name (String)
94
- # * :poc_title (String)
95
- # * :poc_email (String)
96
- # @param optionals [Hash] Request of type Pinnacle::Optionals, as a Hash
97
- # * :additional_websites (Array<Pinnacle::AdditionalWebsite>)
98
- # * :additional_phone_numbers (Array<Pinnacle::AdditionalPhoneNumber>)
99
- # * :additional_emails (Array<Pinnacle::AdditionalEmail>)
100
- # * :test_numbers (Array<String>)
68
+ # @param request [Pinnacle::Company::CompanyRegisterRequestCompanyId, Pinnacle::Company::CompanyRegisterRequestCompany]
101
69
  # @param request_options [Pinnacle::RequestOptions]
102
70
  # @return [Pinnacle::Company::CompanyRegisterResponse]
103
71
  # @example
@@ -106,18 +74,8 @@ module Pinnacle
106
74
  # environment: Pinnacle::Environment::DEFAULT,
107
75
  # api_key: "YOUR_API_KEY"
108
76
  # )
109
- # api.company.register(
110
- # company: { name: "name", category: ENTERTAINMENT, address: "address", ein: "ein", description: "description", brand_color: "brandColor", logo_url: "logoUrl", hero_url: "heroUrl" },
111
- # company_contact: { primary_website_url: "primaryWebsiteUrl", primary_website_label: "primaryWebsiteLabel", primary_phone: "primaryPhone", primary_phone_label: "primaryPhoneLabel", primary_email: "primaryEmail", primary_email_label: "primaryEmailLabel", privacy_policy_url: "privacyPolicyUrl", tos_url: "tosUrl" },
112
- # messaging: { opt_in: "By opting in, you agree to receive messages from Pinnacle, including updates and promotions. Reply “STOP” to unsubscribe. Standard message and data rates may apply.", opt_out: "Reply with keywords like STOP or UNSUBSCRIBE to opt-out. A confirmation message will be sent, and no further messages will be received unless you re-subscribe.", opt_out_keywords: ["STOP", "UNSUBSCRIBE"], agent_use_case: "Pinnacle’s agent assists with product updates, promotions, order tracking, and support. It answers FAQs, provides order updates, and helps with opt-in/out processes. Escalates to live support when needed.", expected_agent_responses: "General Inquiry: “How can I assist you today?”
113
- # Order Status: “Provide your order number.”
114
- # Opt-In: “You’re now subscribed!”
115
- # Opt-Out: “You have unsubscribed.”
116
- # Escalation: “Connecting to a live agent.”
117
- # " },
118
- # point_of_contact: { poc_name: "pocName", poc_title: "pocTitle", poc_email: "pocEmail" }
119
- # )
120
- def register(company:, company_contact:, messaging:, point_of_contact:, optionals: nil, request_options: nil)
77
+ # api.company.register(request: { company_id: "companyId" })
78
+ def register(request:, request_options: nil)
121
79
  response = @request_client.conn.post do |req|
122
80
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
123
81
  req.headers["PINNACLE-API-Key"] = request_options.api_key unless request_options&.api_key.nil?
@@ -129,22 +87,16 @@ module Pinnacle
129
87
  unless request_options.nil? || request_options&.additional_query_parameters.nil?
130
88
  req.params = { **(request_options&.additional_query_parameters || {}) }.compact
131
89
  end
132
- req.body = {
133
- **(request_options&.additional_body_parameters || {}),
134
- company: company,
135
- companyContact: company_contact,
136
- messaging: messaging,
137
- pointOfContact: point_of_contact,
138
- optionals: optionals
139
- }.compact
90
+ req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
140
91
  req.url "#{@request_client.get_url(request_options: request_options)}/company/register"
141
92
  end
142
93
  Pinnacle::Company::CompanyRegisterResponse.from_json(json_object: response.body)
143
94
  end
144
95
 
145
- # Update a company on the Pinnacle platform
96
+ # Upsert a company on the Pinnacle platform
146
97
  #
147
- # @param company_id [String]
98
+ # @param company_id [String] Optional company ID. If provided, updates existing company. If not provided,
99
+ # creates a new company.
148
100
  # @param company [Hash] Request of type Pinnacle::Company, as a Hash
149
101
  # * :id (Integer)
150
102
  # * :created_at (DateTime)
@@ -209,9 +161,9 @@ module Pinnacle
209
161
  # environment: Pinnacle::Environment::DEFAULT,
210
162
  # api_key: "YOUR_API_KEY"
211
163
  # )
212
- # api.company.update(company_id: "companyId")
213
- def update(company_id:, company: nil, company_contact: nil, messaging: nil, point_of_contact: nil, optionals: nil,
214
- request_options: nil)
164
+ # api.company.update
165
+ def update(company_id: nil, company: nil, company_contact: nil, messaging: nil, point_of_contact: nil,
166
+ optionals: nil, request_options: nil)
215
167
  response = @request_client.conn.post do |req|
216
168
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
217
169
  req.headers["PINNACLE-API-Key"] = request_options.api_key unless request_options&.api_key.nil?
@@ -292,39 +244,7 @@ module Pinnacle
292
244
 
293
245
  # Register a company for RCS with the Pinnacle platform
294
246
  #
295
- # @param company [Hash] Request of type Pinnacle::CompanyDetails, as a Hash
296
- # * :name (String)
297
- # * :category (Pinnacle::CompanyCategory)
298
- # * :address (String)
299
- # * :ein (String)
300
- # * :description (String)
301
- # * :brand_color (String)
302
- # * :logo_url (String)
303
- # * :hero_url (String)
304
- # @param company_contact [Hash] Request of type Pinnacle::CompanyContact, as a Hash
305
- # * :primary_website_url (String)
306
- # * :primary_website_label (String)
307
- # * :primary_phone (String)
308
- # * :primary_phone_label (String)
309
- # * :primary_email (String)
310
- # * :primary_email_label (String)
311
- # * :privacy_policy_url (String)
312
- # * :tos_url (String)
313
- # @param messaging [Hash] Request of type Pinnacle::Messaging, as a Hash
314
- # * :opt_in (String)
315
- # * :opt_out (String)
316
- # * :opt_out_keywords (Array<String>)
317
- # * :agent_use_case (String)
318
- # * :expected_agent_responses (String)
319
- # @param point_of_contact [Hash] Request of type Pinnacle::PointOfContact, as a Hash
320
- # * :poc_name (String)
321
- # * :poc_title (String)
322
- # * :poc_email (String)
323
- # @param optionals [Hash] Request of type Pinnacle::Optionals, as a Hash
324
- # * :additional_websites (Array<Pinnacle::AdditionalWebsite>)
325
- # * :additional_phone_numbers (Array<Pinnacle::AdditionalPhoneNumber>)
326
- # * :additional_emails (Array<Pinnacle::AdditionalEmail>)
327
- # * :test_numbers (Array<String>)
247
+ # @param request [Pinnacle::Company::CompanyRegisterRequestCompanyId, Pinnacle::Company::CompanyRegisterRequestCompany]
328
248
  # @param request_options [Pinnacle::RequestOptions]
329
249
  # @return [Pinnacle::Company::CompanyRegisterResponse]
330
250
  # @example
@@ -333,18 +253,8 @@ module Pinnacle
333
253
  # environment: Pinnacle::Environment::DEFAULT,
334
254
  # api_key: "YOUR_API_KEY"
335
255
  # )
336
- # api.company.register(
337
- # company: { name: "name", category: ENTERTAINMENT, address: "address", ein: "ein", description: "description", brand_color: "brandColor", logo_url: "logoUrl", hero_url: "heroUrl" },
338
- # company_contact: { primary_website_url: "primaryWebsiteUrl", primary_website_label: "primaryWebsiteLabel", primary_phone: "primaryPhone", primary_phone_label: "primaryPhoneLabel", primary_email: "primaryEmail", primary_email_label: "primaryEmailLabel", privacy_policy_url: "privacyPolicyUrl", tos_url: "tosUrl" },
339
- # messaging: { opt_in: "By opting in, you agree to receive messages from Pinnacle, including updates and promotions. Reply “STOP” to unsubscribe. Standard message and data rates may apply.", opt_out: "Reply with keywords like STOP or UNSUBSCRIBE to opt-out. A confirmation message will be sent, and no further messages will be received unless you re-subscribe.", opt_out_keywords: ["STOP", "UNSUBSCRIBE"], agent_use_case: "Pinnacle’s agent assists with product updates, promotions, order tracking, and support. It answers FAQs, provides order updates, and helps with opt-in/out processes. Escalates to live support when needed.", expected_agent_responses: "General Inquiry: “How can I assist you today?”
340
- # Order Status: “Provide your order number.”
341
- # Opt-In: “You’re now subscribed!”
342
- # Opt-Out: “You have unsubscribed.”
343
- # Escalation: “Connecting to a live agent.”
344
- # " },
345
- # point_of_contact: { poc_name: "pocName", poc_title: "pocTitle", poc_email: "pocEmail" }
346
- # )
347
- def register(company:, company_contact:, messaging:, point_of_contact:, optionals: nil, request_options: nil)
256
+ # api.company.register(request: { company_id: "companyId" })
257
+ def register(request:, request_options: nil)
348
258
  Async do
349
259
  response = @request_client.conn.post do |req|
350
260
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -357,23 +267,17 @@ module Pinnacle
357
267
  unless request_options.nil? || request_options&.additional_query_parameters.nil?
358
268
  req.params = { **(request_options&.additional_query_parameters || {}) }.compact
359
269
  end
360
- req.body = {
361
- **(request_options&.additional_body_parameters || {}),
362
- company: company,
363
- companyContact: company_contact,
364
- messaging: messaging,
365
- pointOfContact: point_of_contact,
366
- optionals: optionals
367
- }.compact
270
+ req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
368
271
  req.url "#{@request_client.get_url(request_options: request_options)}/company/register"
369
272
  end
370
273
  Pinnacle::Company::CompanyRegisterResponse.from_json(json_object: response.body)
371
274
  end
372
275
  end
373
276
 
374
- # Update a company on the Pinnacle platform
277
+ # Upsert a company on the Pinnacle platform
375
278
  #
376
- # @param company_id [String]
279
+ # @param company_id [String] Optional company ID. If provided, updates existing company. If not provided,
280
+ # creates a new company.
377
281
  # @param company [Hash] Request of type Pinnacle::Company, as a Hash
378
282
  # * :id (Integer)
379
283
  # * :created_at (DateTime)
@@ -438,9 +342,9 @@ module Pinnacle
438
342
  # environment: Pinnacle::Environment::DEFAULT,
439
343
  # api_key: "YOUR_API_KEY"
440
344
  # )
441
- # api.company.update(company_id: "companyId")
442
- def update(company_id:, company: nil, company_contact: nil, messaging: nil, point_of_contact: nil, optionals: nil,
443
- request_options: nil)
345
+ # api.company.update
346
+ def update(company_id: nil, company: nil, company_contact: nil, messaging: nil, point_of_contact: nil,
347
+ optionals: nil, request_options: nil)
444
348
  Async do
445
349
  response = @request_client.conn.post do |req|
446
350
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "json"
4
+ require_relative "company_register_request_company_id"
5
+ require_relative "company_register_request_company"
6
+
7
+ module Pinnacle
8
+ class Company
9
+ class CompanyRegisterRequest
10
+ # Deserialize a JSON object to an instance of CompanyRegisterRequest
11
+ #
12
+ # @param json_object [String]
13
+ # @return [Pinnacle::Company::CompanyRegisterRequest]
14
+ def self.from_json(json_object:)
15
+ struct = JSON.parse(json_object, object_class: OpenStruct)
16
+ begin
17
+ Pinnacle::Company::CompanyRegisterRequestCompanyId.validate_raw(obj: struct)
18
+ return Pinnacle::Company::CompanyRegisterRequestCompanyId.from_json(json_object: struct) unless struct.nil?
19
+
20
+ return nil
21
+ rescue StandardError
22
+ # noop
23
+ end
24
+ begin
25
+ Pinnacle::Company::CompanyRegisterRequestCompany.validate_raw(obj: struct)
26
+ return Pinnacle::Company::CompanyRegisterRequestCompany.from_json(json_object: struct) unless struct.nil?
27
+
28
+ return nil
29
+ rescue StandardError
30
+ # noop
31
+ end
32
+ struct
33
+ end
34
+
35
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
36
+ # hash and check each fields type against the current object's property
37
+ # definitions.
38
+ #
39
+ # @param obj [Object]
40
+ # @return [Void]
41
+ def self.validate_raw(obj:)
42
+ begin
43
+ return Pinnacle::Company::CompanyRegisterRequestCompanyId.validate_raw(obj: obj)
44
+ rescue StandardError
45
+ # noop
46
+ end
47
+ begin
48
+ return Pinnacle::Company::CompanyRegisterRequestCompany.validate_raw(obj: obj)
49
+ rescue StandardError
50
+ # noop
51
+ end
52
+ raise("Passed value matched no type within the union, validation failed.")
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,128 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../types/company_details"
4
+ require_relative "../../types/company_contact"
5
+ require_relative "../../types/messaging"
6
+ require_relative "../../types/point_of_contact"
7
+ require_relative "../../types/optionals"
8
+ require "ostruct"
9
+ require "json"
10
+
11
+ module Pinnacle
12
+ class Company
13
+ # Register a new company
14
+ class CompanyRegisterRequestCompany
15
+ # @return [Pinnacle::CompanyDetails]
16
+ attr_reader :company
17
+ # @return [Pinnacle::CompanyContact]
18
+ attr_reader :company_contact
19
+ # @return [Pinnacle::Messaging]
20
+ attr_reader :messaging
21
+ # @return [Pinnacle::PointOfContact]
22
+ attr_reader :point_of_contact
23
+ # @return [Pinnacle::Optionals]
24
+ attr_reader :optionals
25
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
26
+ attr_reader :additional_properties
27
+ # @return [Object]
28
+ attr_reader :_field_set
29
+ protected :_field_set
30
+
31
+ OMIT = Object.new
32
+
33
+ # @param company [Pinnacle::CompanyDetails]
34
+ # @param company_contact [Pinnacle::CompanyContact]
35
+ # @param messaging [Pinnacle::Messaging]
36
+ # @param point_of_contact [Pinnacle::PointOfContact]
37
+ # @param optionals [Pinnacle::Optionals]
38
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
39
+ # @return [Pinnacle::Company::CompanyRegisterRequestCompany]
40
+ def initialize(company:, company_contact:, messaging:, point_of_contact:, optionals: OMIT,
41
+ additional_properties: nil)
42
+ @company = company
43
+ @company_contact = company_contact
44
+ @messaging = messaging
45
+ @point_of_contact = point_of_contact
46
+ @optionals = optionals if optionals != OMIT
47
+ @additional_properties = additional_properties
48
+ @_field_set = {
49
+ "company": company,
50
+ "companyContact": company_contact,
51
+ "messaging": messaging,
52
+ "pointOfContact": point_of_contact,
53
+ "optionals": optionals
54
+ }.reject do |_k, v|
55
+ v == OMIT
56
+ end
57
+ end
58
+
59
+ # Deserialize a JSON object to an instance of CompanyRegisterRequestCompany
60
+ #
61
+ # @param json_object [String]
62
+ # @return [Pinnacle::Company::CompanyRegisterRequestCompany]
63
+ def self.from_json(json_object:)
64
+ struct = JSON.parse(json_object, object_class: OpenStruct)
65
+ parsed_json = JSON.parse(json_object)
66
+ if parsed_json["company"].nil?
67
+ company = nil
68
+ else
69
+ company = parsed_json["company"].to_json
70
+ company = Pinnacle::CompanyDetails.from_json(json_object: company)
71
+ end
72
+ if parsed_json["companyContact"].nil?
73
+ company_contact = nil
74
+ else
75
+ company_contact = parsed_json["companyContact"].to_json
76
+ company_contact = Pinnacle::CompanyContact.from_json(json_object: company_contact)
77
+ end
78
+ if parsed_json["messaging"].nil?
79
+ messaging = nil
80
+ else
81
+ messaging = parsed_json["messaging"].to_json
82
+ messaging = Pinnacle::Messaging.from_json(json_object: messaging)
83
+ end
84
+ if parsed_json["pointOfContact"].nil?
85
+ point_of_contact = nil
86
+ else
87
+ point_of_contact = parsed_json["pointOfContact"].to_json
88
+ point_of_contact = Pinnacle::PointOfContact.from_json(json_object: point_of_contact)
89
+ end
90
+ if parsed_json["optionals"].nil?
91
+ optionals = nil
92
+ else
93
+ optionals = parsed_json["optionals"].to_json
94
+ optionals = Pinnacle::Optionals.from_json(json_object: optionals)
95
+ end
96
+ new(
97
+ company: company,
98
+ company_contact: company_contact,
99
+ messaging: messaging,
100
+ point_of_contact: point_of_contact,
101
+ optionals: optionals,
102
+ additional_properties: struct
103
+ )
104
+ end
105
+
106
+ # Serialize an instance of CompanyRegisterRequestCompany to a JSON object
107
+ #
108
+ # @return [String]
109
+ def to_json(*_args)
110
+ @_field_set&.to_json
111
+ end
112
+
113
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
114
+ # hash and check each fields type against the current object's property
115
+ # definitions.
116
+ #
117
+ # @param obj [Object]
118
+ # @return [Void]
119
+ def self.validate_raw(obj:)
120
+ Pinnacle::CompanyDetails.validate_raw(obj: obj.company)
121
+ Pinnacle::CompanyContact.validate_raw(obj: obj.company_contact)
122
+ Pinnacle::Messaging.validate_raw(obj: obj.messaging)
123
+ Pinnacle::PointOfContact.validate_raw(obj: obj.point_of_contact)
124
+ obj.optionals.nil? || Pinnacle::Optionals.validate_raw(obj: obj.optionals)
125
+ end
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Pinnacle
7
+ class Company
8
+ # Register an existing company
9
+ class CompanyRegisterRequestCompanyId
10
+ # @return [String] ID of an existing company to register
11
+ attr_reader :company_id
12
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
13
+ attr_reader :additional_properties
14
+ # @return [Object]
15
+ attr_reader :_field_set
16
+ protected :_field_set
17
+
18
+ OMIT = Object.new
19
+
20
+ # @param company_id [String] ID of an existing company to register
21
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
22
+ # @return [Pinnacle::Company::CompanyRegisterRequestCompanyId]
23
+ def initialize(company_id:, additional_properties: nil)
24
+ @company_id = company_id
25
+ @additional_properties = additional_properties
26
+ @_field_set = { "companyId": company_id }
27
+ end
28
+
29
+ # Deserialize a JSON object to an instance of CompanyRegisterRequestCompanyId
30
+ #
31
+ # @param json_object [String]
32
+ # @return [Pinnacle::Company::CompanyRegisterRequestCompanyId]
33
+ def self.from_json(json_object:)
34
+ struct = JSON.parse(json_object, object_class: OpenStruct)
35
+ parsed_json = JSON.parse(json_object)
36
+ company_id = parsed_json["companyId"]
37
+ new(company_id: company_id, additional_properties: struct)
38
+ end
39
+
40
+ # Serialize an instance of CompanyRegisterRequestCompanyId to a JSON object
41
+ #
42
+ # @return [String]
43
+ def to_json(*_args)
44
+ @_field_set&.to_json
45
+ end
46
+
47
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
48
+ # hash and check each fields type against the current object's property
49
+ # definitions.
50
+ #
51
+ # @param obj [Object]
52
+ # @return [Void]
53
+ def self.validate_raw(obj:)
54
+ obj.company_id.is_a?(String) != false || raise("Passed value for field obj.company_id is not the expected type, validation failed.")
55
+ end
56
+ end
57
+ end
58
+ end
@@ -53,6 +53,8 @@ module Pinnacle
53
53
 
54
54
  # Generate signed upload (expires in 2 hours) and download URLs for a file
55
55
  # (expires in 1 hour).
56
+ # See the [Upload](/api-reference/upload) page for native Python and Typescript
57
+ # SDKs.
56
58
  #
57
59
  # @param content_type [String] The MIME type of the file.
58
60
  # Supported types are audio/basic, audio/L24, audio/mp4, audio/mpeg, audio/mpg,
@@ -152,6 +154,8 @@ module Pinnacle
152
154
 
153
155
  # Generate signed upload (expires in 2 hours) and download URLs for a file
154
156
  # (expires in 1 hour).
157
+ # See the [Upload](/api-reference/upload) page for native Python and Typescript
158
+ # SDKs.
155
159
  #
156
160
  # @param content_type [String] The MIME type of the file.
157
161
  # Supported types are audio/basic, audio/L24, audio/mp4, audio/mpeg, audio/mpg,
data/lib/requests.rb CHANGED
@@ -43,7 +43,7 @@ module Pinnacle
43
43
 
44
44
  # @return [Hash{String => String}]
45
45
  def get_headers
46
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "1.0.16" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "1.0.18" }
47
47
  headers["PINNACLE-API-Key"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
48
48
  headers
49
49
  end
@@ -87,7 +87,7 @@ module Pinnacle
87
87
 
88
88
  # @return [Hash{String => String}]
89
89
  def get_headers
90
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "1.0.16" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "1.0.18" }
91
91
  headers["PINNACLE-API-Key"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
92
92
  headers
93
93
  end
data/lib/types_export.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "rcs/company/types/company_register_request_company_id"
4
+ require_relative "rcs/company/types/company_register_request_company"
5
+ require_relative "rcs/company/types/company_register_request"
3
6
  require_relative "rcs/company/types/company_register_response_brand"
4
7
  require_relative "rcs/company/types/company_register_response"
5
8
  require_relative "rcs/company/types/company_update_response_brand"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-17 00:00:00.000000000 Z
11
+ date: 2025-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -100,6 +100,9 @@ files:
100
100
  - lib/gemconfig.rb
101
101
  - lib/rcs.rb
102
102
  - lib/rcs/company/client.rb
103
+ - lib/rcs/company/types/company_register_request.rb
104
+ - lib/rcs/company/types/company_register_request_company.rb
105
+ - lib/rcs/company/types/company_register_request_company_id.rb
103
106
  - lib/rcs/company/types/company_register_response.rb
104
107
  - lib/rcs/company/types/company_register_response_brand.rb
105
108
  - lib/rcs/company/types/company_update_response.rb
@@ -154,7 +157,7 @@ metadata:
154
157
  homepage_uri: https://github.com/pinnacle-dev/rcs-ruby
155
158
  source_code_uri: https://github.com/pinnacle-dev/rcs-ruby
156
159
  changelog_uri: https://github.com/pinnacle-dev/rcs-ruby/blob/master/CHANGELOG.md
157
- post_install_message:
160
+ post_install_message:
158
161
  rdoc_options: []
159
162
  require_paths:
160
163
  - lib
@@ -170,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
173
  version: '0'
171
174
  requirements: []
172
175
  rubygems_version: 3.1.6
173
- signing_key:
176
+ signing_key:
174
177
  specification_version: 4
175
178
  summary: ''
176
179
  test_files: []