userplex 0.13.0 → 0.14.0

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: b4474fb917ace6a7ed179789609bd66064fdc3ba4992f9028e68643f0916f5c8
4
- data.tar.gz: 6fdb6217c5bd87417eba1e118f9754c5de54623589c375fdf6fd7e61331d01cb
3
+ metadata.gz: b5304abd79a996fe4c2eca502d4efc7d2cd728ddcc2b2acd0c6c59db0a53073b
4
+ data.tar.gz: 35d16d6377019940f876c2014c8907daf324f1e06bd08e2726d7f80d8a3d6599
5
5
  SHA512:
6
- metadata.gz: 6b1817878f54c458f555308942cd10a0041c21fcc01e35817587fdb44ad7d45470079eb2de2d1235078c83b812f338db72b3cbbc9d4ab1837666d9e56c814ee9
7
- data.tar.gz: 2f622ad91b6030415e19632295c23cfc76f49d7202502e183c59922804eeb90591c81ba76c903d9bc421adc3f436ef2100a66a90fd1ca4f872f9d17962e1ba96
6
+ metadata.gz: 210655d52b74a4d677c39a61550c8a9e128bb00bb1508453a8618c3c5727770d5be8b7458dfc19afdb288f59dc4954596368da39a149d15f73166b5852fcdfd3
7
+ data.tar.gz: ce1b2b1c236ecdbdd419c864cda24d786c2bf098b204096e3b6c480a9f110e2dd8409d1d0436d34696bf20fa834b1ab19add9c987eec5ed1d7e70cf74baf056f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.0 (2026-01-06)
4
+
5
+ Full Changelog: [v0.13.0...v0.14.0](https://github.com/dqnamo/userplex-ruby/compare/v0.13.0...v0.14.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([8db291a](https://github.com/dqnamo/userplex-ruby/commit/8db291a972c3f71ec5c45cb8554e9808a8c67f5a))
10
+
3
11
  ## 0.13.0 (2026-01-05)
4
12
 
5
13
  Full Changelog: [v0.12.0...v0.13.0](https://github.com/dqnamo/userplex-ruby/compare/v0.12.0...v0.13.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "userplex", "~> 0.13.0"
18
+ gem "userplex", "~> 0.14.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -30,7 +30,7 @@ userplex = Userplex::Client.new(
30
30
  api_key: ENV["USERPLEX_API_KEY"] # This is the default and can be omitted
31
31
  )
32
32
 
33
- response = userplex.logs.new(name: "REPLACE_ME")
33
+ response = userplex.users.identify
34
34
 
35
35
  puts(response.success)
36
36
  ```
@@ -41,7 +41,7 @@ When the library is unable to connect to the API, or if the API returns a non-su
41
41
 
42
42
  ```ruby
43
43
  begin
44
- log = userplex.logs.new(name: "REPLACE_ME")
44
+ user = userplex.users.identify
45
45
  rescue Userplex::Errors::APIConnectionError => e
46
46
  puts("The server could not be reached")
47
47
  puts(e.cause) # an underlying Exception, likely raised within `net/http`
@@ -84,7 +84,7 @@ userplex = Userplex::Client.new(
84
84
  )
85
85
 
86
86
  # Or, configure per-request:
87
- userplex.logs.new(name: "REPLACE_ME", request_options: {max_retries: 5})
87
+ userplex.users.identify(request_options: {max_retries: 5})
88
88
  ```
89
89
 
90
90
  ### Timeouts
@@ -98,7 +98,7 @@ userplex = Userplex::Client.new(
98
98
  )
99
99
 
100
100
  # Or, configure per-request:
101
- userplex.logs.new(name: "REPLACE_ME", request_options: {timeout: 5})
101
+ userplex.users.identify(request_options: {timeout: 5})
102
102
  ```
103
103
 
104
104
  On timeout, `Userplex::Errors::APITimeoutError` is raised.
@@ -129,8 +129,7 @@ Note: the `extra_` parameters of the same name overrides the documented paramete
129
129
 
130
130
  ```ruby
131
131
  response =
132
- userplex.logs.new(
133
- name: "REPLACE_ME",
132
+ userplex.users.identify(
134
133
  request_options: {
135
134
  extra_query: {my_query_parameter: value},
136
135
  extra_body: {my_body_parameter: value},
@@ -176,18 +175,18 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio
176
175
  You can provide typesafe request parameters like so:
177
176
 
178
177
  ```ruby
179
- userplex.logs.new(name: "REPLACE_ME")
178
+ userplex.users.identify
180
179
  ```
181
180
 
182
181
  Or, equivalently:
183
182
 
184
183
  ```ruby
185
184
  # Hashes work, but are not typesafe:
186
- userplex.logs.new(name: "REPLACE_ME")
185
+ userplex.users.identify
187
186
 
188
187
  # You can also splat a full Params class:
189
- params = Userplex::LogNewParams.new(name: "REPLACE_ME")
190
- userplex.logs.new(**params)
188
+ params = Userplex::UserIdentifyParams.new
189
+ userplex.users.identify(**params)
191
190
  ```
192
191
 
193
192
  ## Versioning
@@ -39,9 +39,5 @@ module Userplex
39
39
  mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
40
40
  end
41
41
 
42
- LogBatchParams = Userplex::Models::LogBatchParams
43
-
44
- LogNewParams = Userplex::Models::LogNewParams
45
-
46
42
  UserIdentifyParams = Userplex::Models::UserIdentifyParams
47
43
  end
@@ -3,51 +3,6 @@
3
3
  module Userplex
4
4
  module Resources
5
5
  class Logs
6
- # Log multiple events
7
- #
8
- # @overload batch(body: nil, request_options: {})
9
- #
10
- # @param body [Array<Userplex::Models::LogBatchParams::Body>]
11
- # @param request_options [Userplex::RequestOptions, Hash{Symbol=>Object}, nil]
12
- #
13
- # @return [Userplex::Models::LogBatchResponse]
14
- #
15
- # @see Userplex::Models::LogBatchParams
16
- def batch(params = {})
17
- parsed, options = Userplex::LogBatchParams.dump_request(params)
18
- @client.request(
19
- method: :post,
20
- path: "logs",
21
- body: parsed[:body],
22
- model: Userplex::Models::LogBatchResponse,
23
- options: options
24
- )
25
- end
26
-
27
- # Log a single event
28
- #
29
- # @overload new(name:, data: nil, timestamp: nil, user_id: nil, request_options: {})
30
- #
31
- # @param name [String]
32
- # @param data [Hash{Symbol=>Object, nil}]
33
- # @param timestamp [Time]
34
- # @param user_id [String]
35
- # @param request_options [Userplex::RequestOptions, Hash{Symbol=>Object}, nil]
36
- #
37
- # @return [Userplex::Models::LogNewResponse]
38
- #
39
- # @see Userplex::Models::LogNewParams
40
- def new(params)
41
- parsed, options = Userplex::LogNewParams.dump_request(params)
42
- @client.request(
43
- method: :post,
44
- path: "log",
45
- body: parsed,
46
- model: Userplex::Models::LogNewResponse,
47
- options: options
48
- )
49
- end
50
-
51
6
  # @api private
52
7
  #
53
8
  # @param client [Userplex::Client]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Userplex
4
- VERSION = "0.13.0"
4
+ VERSION = "0.14.0"
5
5
  end
data/lib/userplex.rb CHANGED
@@ -52,10 +52,6 @@ require_relative "userplex/errors"
52
52
  require_relative "userplex/internal/transport/base_client"
53
53
  require_relative "userplex/internal/transport/pooled_net_requester"
54
54
  require_relative "userplex/client"
55
- require_relative "userplex/models/log_batch_params"
56
- require_relative "userplex/models/log_batch_response"
57
- require_relative "userplex/models/log_new_params"
58
- require_relative "userplex/models/log_new_response"
59
55
  require_relative "userplex/models/user_identify_params"
60
56
  require_relative "userplex/models/user_identify_response"
61
57
  require_relative "userplex/models"
@@ -1,9 +1,5 @@
1
1
  # typed: strong
2
2
 
3
3
  module Userplex
4
- LogBatchParams = Userplex::Models::LogBatchParams
5
-
6
- LogNewParams = Userplex::Models::LogNewParams
7
-
8
4
  UserIdentifyParams = Userplex::Models::UserIdentifyParams
9
5
  end
@@ -3,35 +3,6 @@
3
3
  module Userplex
4
4
  module Resources
5
5
  class Logs
6
- # Log multiple events
7
- sig do
8
- params(
9
- body: T::Array[Userplex::LogBatchParams::Body::OrHash],
10
- request_options: Userplex::RequestOptions::OrHash
11
- ).returns(Userplex::Models::LogBatchResponse)
12
- end
13
- def batch(body: nil, request_options: {})
14
- end
15
-
16
- # Log a single event
17
- sig do
18
- params(
19
- name: String,
20
- data: T::Hash[Symbol, T.nilable(T.anything)],
21
- timestamp: Time,
22
- user_id: String,
23
- request_options: Userplex::RequestOptions::OrHash
24
- ).returns(Userplex::Models::LogNewResponse)
25
- end
26
- def new(
27
- name:,
28
- data: nil,
29
- timestamp: nil,
30
- user_id: nil,
31
- request_options: {}
32
- )
33
- end
34
-
35
6
  # @api private
36
7
  sig { params(client: Userplex::Client).returns(T.attached_class) }
37
8
  def self.new(client:)
@@ -1,7 +1,3 @@
1
1
  module Userplex
2
- class LogBatchParams = Userplex::Models::LogBatchParams
3
-
4
- class LogNewParams = Userplex::Models::LogNewParams
5
-
6
2
  class UserIdentifyParams = Userplex::Models::UserIdentifyParams
7
3
  end
@@ -1,19 +1,6 @@
1
1
  module Userplex
2
2
  module Resources
3
3
  class Logs
4
- def batch: (
5
- ?body: ::Array[Userplex::LogBatchParams::Body],
6
- ?request_options: Userplex::request_opts
7
- ) -> Userplex::Models::LogBatchResponse
8
-
9
- def new: (
10
- name: String,
11
- ?data: ::Hash[Symbol, top?],
12
- ?timestamp: Time,
13
- ?user_id: String,
14
- ?request_options: Userplex::request_opts
15
- ) -> Userplex::Models::LogNewResponse
16
-
17
4
  def initialize: (client: Userplex::Client) -> void
18
5
  end
19
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: userplex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Userplex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-05 00:00:00.000000000 Z
11
+ date: 2026-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -55,10 +55,6 @@ files:
55
55
  - lib/userplex/internal/type/unknown.rb
56
56
  - lib/userplex/internal/util.rb
57
57
  - lib/userplex/models.rb
58
- - lib/userplex/models/log_batch_params.rb
59
- - lib/userplex/models/log_batch_response.rb
60
- - lib/userplex/models/log_new_params.rb
61
- - lib/userplex/models/log_new_response.rb
62
58
  - lib/userplex/models/user_identify_params.rb
63
59
  - lib/userplex/models/user_identify_response.rb
64
60
  - lib/userplex/request_options.rb
@@ -85,10 +81,6 @@ files:
85
81
  - rbi/userplex/internal/type/unknown.rbi
86
82
  - rbi/userplex/internal/util.rbi
87
83
  - rbi/userplex/models.rbi
88
- - rbi/userplex/models/log_batch_params.rbi
89
- - rbi/userplex/models/log_batch_response.rbi
90
- - rbi/userplex/models/log_new_params.rbi
91
- - rbi/userplex/models/log_new_response.rbi
92
84
  - rbi/userplex/models/user_identify_params.rbi
93
85
  - rbi/userplex/models/user_identify_response.rbi
94
86
  - rbi/userplex/request_options.rbi
@@ -114,10 +106,6 @@ files:
114
106
  - sig/userplex/internal/type/unknown.rbs
115
107
  - sig/userplex/internal/util.rbs
116
108
  - sig/userplex/models.rbs
117
- - sig/userplex/models/log_batch_params.rbs
118
- - sig/userplex/models/log_batch_response.rbs
119
- - sig/userplex/models/log_new_params.rbs
120
- - sig/userplex/models/log_new_response.rbs
121
109
  - sig/userplex/models/user_identify_params.rbs
122
110
  - sig/userplex/models/user_identify_response.rbs
123
111
  - sig/userplex/request_options.rbs
@@ -1,48 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Userplex
4
- module Models
5
- # @see Userplex::Resources::Logs#batch
6
- class LogBatchParams < Userplex::Internal::Type::BaseModel
7
- extend Userplex::Internal::Type::RequestParameters::Converter
8
- include Userplex::Internal::Type::RequestParameters
9
-
10
- # @!attribute body
11
- #
12
- # @return [Array<Userplex::Models::LogBatchParams::Body>, nil]
13
- optional :body, -> { Userplex::Internal::Type::ArrayOf[Userplex::LogBatchParams::Body] }
14
-
15
- # @!method initialize(body: nil, request_options: {})
16
- # @param body [Array<Userplex::Models::LogBatchParams::Body>]
17
- # @param request_options [Userplex::RequestOptions, Hash{Symbol=>Object}]
18
-
19
- class Body < Userplex::Internal::Type::BaseModel
20
- # @!attribute name
21
- #
22
- # @return [String]
23
- required :name, String
24
-
25
- # @!attribute data
26
- #
27
- # @return [Hash{Symbol=>Object, nil}, nil]
28
- optional :data, Userplex::Internal::Type::HashOf[Userplex::Internal::Type::Unknown, nil?: true]
29
-
30
- # @!attribute timestamp
31
- #
32
- # @return [Time, nil]
33
- optional :timestamp, Time
34
-
35
- # @!attribute user_id
36
- #
37
- # @return [String, nil]
38
- optional :user_id, String
39
-
40
- # @!method initialize(name:, data: nil, timestamp: nil, user_id: nil)
41
- # @param name [String]
42
- # @param data [Hash{Symbol=>Object, nil}]
43
- # @param timestamp [Time]
44
- # @param user_id [String]
45
- end
46
- end
47
- end
48
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Userplex
4
- module Models
5
- # @see Userplex::Resources::Logs#batch
6
- class LogBatchResponse < Userplex::Internal::Type::BaseModel
7
- # @!attribute success
8
- #
9
- # @return [Boolean]
10
- required :success, Userplex::Internal::Type::Boolean
11
-
12
- # @!method initialize(success:)
13
- # @param success [Boolean]
14
- end
15
- end
16
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Userplex
4
- module Models
5
- # @see Userplex::Resources::Logs#new
6
- class LogNewParams < Userplex::Internal::Type::BaseModel
7
- extend Userplex::Internal::Type::RequestParameters::Converter
8
- include Userplex::Internal::Type::RequestParameters
9
-
10
- # @!attribute name
11
- #
12
- # @return [String]
13
- required :name, String
14
-
15
- # @!attribute data
16
- #
17
- # @return [Hash{Symbol=>Object, nil}, nil]
18
- optional :data, Userplex::Internal::Type::HashOf[Userplex::Internal::Type::Unknown, nil?: true]
19
-
20
- # @!attribute timestamp
21
- #
22
- # @return [Time, nil]
23
- optional :timestamp, Time
24
-
25
- # @!attribute user_id
26
- #
27
- # @return [String, nil]
28
- optional :user_id, String
29
-
30
- # @!method initialize(name:, data: nil, timestamp: nil, user_id: nil, request_options: {})
31
- # @param name [String]
32
- # @param data [Hash{Symbol=>Object, nil}]
33
- # @param timestamp [Time]
34
- # @param user_id [String]
35
- # @param request_options [Userplex::RequestOptions, Hash{Symbol=>Object}]
36
- end
37
- end
38
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Userplex
4
- module Models
5
- # @see Userplex::Resources::Logs#new
6
- class LogNewResponse < Userplex::Internal::Type::BaseModel
7
- # @!attribute success
8
- #
9
- # @return [Boolean]
10
- required :success, Userplex::Internal::Type::Boolean
11
-
12
- # @!method initialize(success:)
13
- # @param success [Boolean]
14
- end
15
- end
16
- end
@@ -1,95 +0,0 @@
1
- # typed: strong
2
-
3
- module Userplex
4
- module Models
5
- class LogBatchParams < Userplex::Internal::Type::BaseModel
6
- extend Userplex::Internal::Type::RequestParameters::Converter
7
- include Userplex::Internal::Type::RequestParameters
8
-
9
- OrHash =
10
- T.type_alias do
11
- T.any(Userplex::LogBatchParams, Userplex::Internal::AnyHash)
12
- end
13
-
14
- sig { returns(T.nilable(T::Array[Userplex::LogBatchParams::Body])) }
15
- attr_reader :body
16
-
17
- sig do
18
- params(body: T::Array[Userplex::LogBatchParams::Body::OrHash]).void
19
- end
20
- attr_writer :body
21
-
22
- sig do
23
- params(
24
- body: T::Array[Userplex::LogBatchParams::Body::OrHash],
25
- request_options: Userplex::RequestOptions::OrHash
26
- ).returns(T.attached_class)
27
- end
28
- def self.new(body: nil, request_options: {})
29
- end
30
-
31
- sig do
32
- override.returns(
33
- {
34
- body: T::Array[Userplex::LogBatchParams::Body],
35
- request_options: Userplex::RequestOptions
36
- }
37
- )
38
- end
39
- def to_hash
40
- end
41
-
42
- class Body < Userplex::Internal::Type::BaseModel
43
- OrHash =
44
- T.type_alias do
45
- T.any(Userplex::LogBatchParams::Body, Userplex::Internal::AnyHash)
46
- end
47
-
48
- sig { returns(String) }
49
- attr_accessor :name
50
-
51
- sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
52
- attr_reader :data
53
-
54
- sig { params(data: T::Hash[Symbol, T.nilable(T.anything)]).void }
55
- attr_writer :data
56
-
57
- sig { returns(T.nilable(Time)) }
58
- attr_reader :timestamp
59
-
60
- sig { params(timestamp: Time).void }
61
- attr_writer :timestamp
62
-
63
- sig { returns(T.nilable(String)) }
64
- attr_reader :user_id
65
-
66
- sig { params(user_id: String).void }
67
- attr_writer :user_id
68
-
69
- sig do
70
- params(
71
- name: String,
72
- data: T::Hash[Symbol, T.nilable(T.anything)],
73
- timestamp: Time,
74
- user_id: String
75
- ).returns(T.attached_class)
76
- end
77
- def self.new(name:, data: nil, timestamp: nil, user_id: nil)
78
- end
79
-
80
- sig do
81
- override.returns(
82
- {
83
- name: String,
84
- data: T::Hash[Symbol, T.nilable(T.anything)],
85
- timestamp: Time,
86
- user_id: String
87
- }
88
- )
89
- end
90
- def to_hash
91
- end
92
- end
93
- end
94
- end
95
- end
@@ -1,23 +0,0 @@
1
- # typed: strong
2
-
3
- module Userplex
4
- module Models
5
- class LogBatchResponse < Userplex::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(Userplex::Models::LogBatchResponse, Userplex::Internal::AnyHash)
9
- end
10
-
11
- sig { returns(T::Boolean) }
12
- attr_accessor :success
13
-
14
- sig { params(success: T::Boolean).returns(T.attached_class) }
15
- def self.new(success:)
16
- end
17
-
18
- sig { override.returns({ success: T::Boolean }) }
19
- def to_hash
20
- end
21
- end
22
- end
23
- end
@@ -1,68 +0,0 @@
1
- # typed: strong
2
-
3
- module Userplex
4
- module Models
5
- class LogNewParams < Userplex::Internal::Type::BaseModel
6
- extend Userplex::Internal::Type::RequestParameters::Converter
7
- include Userplex::Internal::Type::RequestParameters
8
-
9
- OrHash =
10
- T.type_alias do
11
- T.any(Userplex::LogNewParams, Userplex::Internal::AnyHash)
12
- end
13
-
14
- sig { returns(String) }
15
- attr_accessor :name
16
-
17
- sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
18
- attr_reader :data
19
-
20
- sig { params(data: T::Hash[Symbol, T.nilable(T.anything)]).void }
21
- attr_writer :data
22
-
23
- sig { returns(T.nilable(Time)) }
24
- attr_reader :timestamp
25
-
26
- sig { params(timestamp: Time).void }
27
- attr_writer :timestamp
28
-
29
- sig { returns(T.nilable(String)) }
30
- attr_reader :user_id
31
-
32
- sig { params(user_id: String).void }
33
- attr_writer :user_id
34
-
35
- sig do
36
- params(
37
- name: String,
38
- data: T::Hash[Symbol, T.nilable(T.anything)],
39
- timestamp: Time,
40
- user_id: String,
41
- request_options: Userplex::RequestOptions::OrHash
42
- ).returns(T.attached_class)
43
- end
44
- def self.new(
45
- name:,
46
- data: nil,
47
- timestamp: nil,
48
- user_id: nil,
49
- request_options: {}
50
- )
51
- end
52
-
53
- sig do
54
- override.returns(
55
- {
56
- name: String,
57
- data: T::Hash[Symbol, T.nilable(T.anything)],
58
- timestamp: Time,
59
- user_id: String,
60
- request_options: Userplex::RequestOptions
61
- }
62
- )
63
- end
64
- def to_hash
65
- end
66
- end
67
- end
68
- end
@@ -1,23 +0,0 @@
1
- # typed: strong
2
-
3
- module Userplex
4
- module Models
5
- class LogNewResponse < Userplex::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(Userplex::Models::LogNewResponse, Userplex::Internal::AnyHash)
9
- end
10
-
11
- sig { returns(T::Boolean) }
12
- attr_accessor :success
13
-
14
- sig { params(success: T::Boolean).returns(T.attached_class) }
15
- def self.new(success:)
16
- end
17
-
18
- sig { override.returns({ success: T::Boolean }) }
19
- def to_hash
20
- end
21
- end
22
- end
23
- end
@@ -1,66 +0,0 @@
1
- module Userplex
2
- module Models
3
- type log_batch_params =
4
- { body: ::Array[Userplex::LogBatchParams::Body] }
5
- & Userplex::Internal::Type::request_parameters
6
-
7
- class LogBatchParams < Userplex::Internal::Type::BaseModel
8
- extend Userplex::Internal::Type::RequestParameters::Converter
9
- include Userplex::Internal::Type::RequestParameters
10
-
11
- attr_reader body: ::Array[Userplex::LogBatchParams::Body]?
12
-
13
- def body=: (
14
- ::Array[Userplex::LogBatchParams::Body]
15
- ) -> ::Array[Userplex::LogBatchParams::Body]
16
-
17
- def initialize: (
18
- ?body: ::Array[Userplex::LogBatchParams::Body],
19
- ?request_options: Userplex::request_opts
20
- ) -> void
21
-
22
- def to_hash: -> {
23
- body: ::Array[Userplex::LogBatchParams::Body],
24
- request_options: Userplex::RequestOptions
25
- }
26
-
27
- type body =
28
- {
29
- name: String,
30
- data: ::Hash[Symbol, top?],
31
- timestamp: Time,
32
- user_id: String
33
- }
34
-
35
- class Body < Userplex::Internal::Type::BaseModel
36
- attr_accessor name: String
37
-
38
- attr_reader data: ::Hash[Symbol, top?]?
39
-
40
- def data=: (::Hash[Symbol, top?]) -> ::Hash[Symbol, top?]
41
-
42
- attr_reader timestamp: Time?
43
-
44
- def timestamp=: (Time) -> Time
45
-
46
- attr_reader user_id: String?
47
-
48
- def user_id=: (String) -> String
49
-
50
- def initialize: (
51
- name: String,
52
- ?data: ::Hash[Symbol, top?],
53
- ?timestamp: Time,
54
- ?user_id: String
55
- ) -> void
56
-
57
- def to_hash: -> {
58
- name: String,
59
- data: ::Hash[Symbol, top?],
60
- timestamp: Time,
61
- user_id: String
62
- }
63
- end
64
- end
65
- end
66
- end
@@ -1,13 +0,0 @@
1
- module Userplex
2
- module Models
3
- type log_batch_response = { success: bool }
4
-
5
- class LogBatchResponse < Userplex::Internal::Type::BaseModel
6
- attr_accessor success: bool
7
-
8
- def initialize: (success: bool) -> void
9
-
10
- def to_hash: -> { success: bool }
11
- end
12
- end
13
- end
@@ -1,47 +0,0 @@
1
- module Userplex
2
- module Models
3
- type log_new_params =
4
- {
5
- name: String,
6
- data: ::Hash[Symbol, top?],
7
- timestamp: Time,
8
- user_id: String
9
- }
10
- & Userplex::Internal::Type::request_parameters
11
-
12
- class LogNewParams < Userplex::Internal::Type::BaseModel
13
- extend Userplex::Internal::Type::RequestParameters::Converter
14
- include Userplex::Internal::Type::RequestParameters
15
-
16
- attr_accessor name: String
17
-
18
- attr_reader data: ::Hash[Symbol, top?]?
19
-
20
- def data=: (::Hash[Symbol, top?]) -> ::Hash[Symbol, top?]
21
-
22
- attr_reader timestamp: Time?
23
-
24
- def timestamp=: (Time) -> Time
25
-
26
- attr_reader user_id: String?
27
-
28
- def user_id=: (String) -> String
29
-
30
- def initialize: (
31
- name: String,
32
- ?data: ::Hash[Symbol, top?],
33
- ?timestamp: Time,
34
- ?user_id: String,
35
- ?request_options: Userplex::request_opts
36
- ) -> void
37
-
38
- def to_hash: -> {
39
- name: String,
40
- data: ::Hash[Symbol, top?],
41
- timestamp: Time,
42
- user_id: String,
43
- request_options: Userplex::RequestOptions
44
- }
45
- end
46
- end
47
- end
@@ -1,13 +0,0 @@
1
- module Userplex
2
- module Models
3
- type log_new_response = { success: bool }
4
-
5
- class LogNewResponse < Userplex::Internal::Type::BaseModel
6
- attr_accessor success: bool
7
-
8
- def initialize: (success: bool) -> void
9
-
10
- def to_hash: -> { success: bool }
11
- end
12
- end
13
- end