sentdm 0.0.2 → 0.1.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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/sentdm/internal/transport/pooled_net_requester.rb +1 -1
  5. data/lib/sentdm/internal/util.rb +1 -1
  6. data/lib/sentdm/models.rb +0 -8
  7. data/lib/sentdm/resources/organizations/users.rb +0 -134
  8. data/lib/sentdm/resources/organizations.rb +0 -40
  9. data/lib/sentdm/version.rb +1 -1
  10. data/lib/sentdm.rb +0 -12
  11. data/rbi/sentdm/internal/util.rbi +1 -1
  12. data/rbi/sentdm/models.rbi +0 -9
  13. data/rbi/sentdm/resources/organizations/users.rbi +0 -81
  14. data/rbi/sentdm/resources/organizations.rbi +0 -22
  15. data/sig/sentdm/models.rbs +0 -8
  16. data/sig/sentdm/resources/organizations/users.rbs +0 -35
  17. data/sig/sentdm/resources/organizations.rbs +0 -9
  18. metadata +2 -38
  19. data/lib/sentdm/models/organization_list_params.rb +0 -14
  20. data/lib/sentdm/models/organization_list_response.rb +0 -57
  21. data/lib/sentdm/models/organization_retrieve_profiles_params.rb +0 -14
  22. data/lib/sentdm/models/organization_retrieve_profiles_response.rb +0 -22
  23. data/lib/sentdm/models/organizations/customer_user.rb +0 -96
  24. data/lib/sentdm/models/organizations/user_delete_params.rb +0 -22
  25. data/lib/sentdm/models/organizations/user_invite_params.rb +0 -40
  26. data/lib/sentdm/models/organizations/user_list_params.rb +0 -28
  27. data/lib/sentdm/models/organizations/user_list_response.rb +0 -36
  28. data/lib/sentdm/models/organizations/user_retrieve_params.rb +0 -22
  29. data/lib/sentdm/models/organizations/user_update_role_params.rb +0 -28
  30. data/lib/sentdm/models/profile_summary.rb +0 -45
  31. data/rbi/sentdm/models/organization_list_params.rbi +0 -27
  32. data/rbi/sentdm/models/organization_list_response.rbi +0 -131
  33. data/rbi/sentdm/models/organization_retrieve_profiles_params.rbi +0 -30
  34. data/rbi/sentdm/models/organization_retrieve_profiles_response.rbi +0 -47
  35. data/rbi/sentdm/models/organizations/customer_user.rbi +0 -129
  36. data/rbi/sentdm/models/organizations/user_delete_params.rbi +0 -40
  37. data/rbi/sentdm/models/organizations/user_invite_params.rbi +0 -73
  38. data/rbi/sentdm/models/organizations/user_list_params.rbi +0 -48
  39. data/rbi/sentdm/models/organizations/user_list_response.rbi +0 -71
  40. data/rbi/sentdm/models/organizations/user_retrieve_params.rbi +0 -40
  41. data/rbi/sentdm/models/organizations/user_update_role_params.rbi +0 -51
  42. data/rbi/sentdm/models/profile_summary.rbi +0 -74
  43. data/sig/sentdm/models/organization_list_params.rbs +0 -15
  44. data/sig/sentdm/models/organization_list_response.rbs +0 -76
  45. data/sig/sentdm/models/organization_retrieve_profiles_params.rbs +0 -15
  46. data/sig/sentdm/models/organization_retrieve_profiles_response.rbs +0 -28
  47. data/sig/sentdm/models/organizations/customer_user.rbs +0 -91
  48. data/sig/sentdm/models/organizations/user_delete_params.rbs +0 -25
  49. data/sig/sentdm/models/organizations/user_invite_params.rbs +0 -44
  50. data/sig/sentdm/models/organizations/user_list_params.rbs +0 -30
  51. data/sig/sentdm/models/organizations/user_list_response.rbs +0 -47
  52. data/sig/sentdm/models/organizations/user_retrieve_params.rbs +0 -25
  53. data/sig/sentdm/models/organizations/user_update_role_params.rbs +0 -32
  54. data/sig/sentdm/models/profile_summary.rbs +0 -51
@@ -1,129 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- class CustomerUser < Sentdm::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(
10
- Sentdm::Organizations::CustomerUser,
11
- Sentdm::Internal::AnyHash
12
- )
13
- end
14
-
15
- # Unique identifier
16
- sig { returns(T.nilable(String)) }
17
- attr_reader :id
18
-
19
- sig { params(id: String).void }
20
- attr_writer :id
21
-
22
- sig { returns(T.nilable(Time)) }
23
- attr_reader :created_at
24
-
25
- sig { params(created_at: Time).void }
26
- attr_writer :created_at
27
-
28
- sig { returns(T.nilable(String)) }
29
- attr_reader :customer_id
30
-
31
- sig { params(customer_id: String).void }
32
- attr_writer :customer_id
33
-
34
- sig { returns(T.nilable(String)) }
35
- attr_reader :email
36
-
37
- sig { params(email: String).void }
38
- attr_writer :email
39
-
40
- sig { returns(T.nilable(Time)) }
41
- attr_accessor :invitation_sent_at
42
-
43
- sig { returns(T.nilable(String)) }
44
- attr_accessor :invitation_token
45
-
46
- sig { returns(T.nilable(Time)) }
47
- attr_accessor :invitation_token_expires_at
48
-
49
- sig { returns(T.nilable(Time)) }
50
- attr_accessor :last_login_at
51
-
52
- sig { returns(T.nilable(String)) }
53
- attr_reader :name
54
-
55
- sig { params(name: String).void }
56
- attr_writer :name
57
-
58
- sig { returns(T.nilable(String)) }
59
- attr_reader :role
60
-
61
- sig { params(role: String).void }
62
- attr_writer :role
63
-
64
- sig { returns(T.nilable(String)) }
65
- attr_reader :status
66
-
67
- sig { params(status: String).void }
68
- attr_writer :status
69
-
70
- sig { returns(T.nilable(Time)) }
71
- attr_accessor :updated_at
72
-
73
- sig do
74
- params(
75
- id: String,
76
- created_at: Time,
77
- customer_id: String,
78
- email: String,
79
- invitation_sent_at: T.nilable(Time),
80
- invitation_token: T.nilable(String),
81
- invitation_token_expires_at: T.nilable(Time),
82
- last_login_at: T.nilable(Time),
83
- name: String,
84
- role: String,
85
- status: String,
86
- updated_at: T.nilable(Time)
87
- ).returns(T.attached_class)
88
- end
89
- def self.new(
90
- # Unique identifier
91
- id: nil,
92
- created_at: nil,
93
- customer_id: nil,
94
- email: nil,
95
- invitation_sent_at: nil,
96
- invitation_token: nil,
97
- invitation_token_expires_at: nil,
98
- last_login_at: nil,
99
- name: nil,
100
- role: nil,
101
- status: nil,
102
- updated_at: nil
103
- )
104
- end
105
-
106
- sig do
107
- override.returns(
108
- {
109
- id: String,
110
- created_at: Time,
111
- customer_id: String,
112
- email: String,
113
- invitation_sent_at: T.nilable(Time),
114
- invitation_token: T.nilable(String),
115
- invitation_token_expires_at: T.nilable(Time),
116
- last_login_at: T.nilable(Time),
117
- name: String,
118
- role: String,
119
- status: String,
120
- updated_at: T.nilable(Time)
121
- }
122
- )
123
- end
124
- def to_hash
125
- end
126
- end
127
- end
128
- end
129
- end
@@ -1,40 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- class UserDeleteParams < Sentdm::Internal::Type::BaseModel
7
- extend Sentdm::Internal::Type::RequestParameters::Converter
8
- include Sentdm::Internal::Type::RequestParameters
9
-
10
- OrHash =
11
- T.type_alias do
12
- T.any(
13
- Sentdm::Organizations::UserDeleteParams,
14
- Sentdm::Internal::AnyHash
15
- )
16
- end
17
-
18
- sig { returns(String) }
19
- attr_accessor :customer_id
20
-
21
- sig do
22
- params(
23
- customer_id: String,
24
- request_options: Sentdm::RequestOptions::OrHash
25
- ).returns(T.attached_class)
26
- end
27
- def self.new(customer_id:, request_options: {})
28
- end
29
-
30
- sig do
31
- override.returns(
32
- { customer_id: String, request_options: Sentdm::RequestOptions }
33
- )
34
- end
35
- def to_hash
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,73 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- class UserInviteParams < Sentdm::Internal::Type::BaseModel
7
- extend Sentdm::Internal::Type::RequestParameters::Converter
8
- include Sentdm::Internal::Type::RequestParameters
9
-
10
- OrHash =
11
- T.type_alias do
12
- T.any(
13
- Sentdm::Organizations::UserInviteParams,
14
- Sentdm::Internal::AnyHash
15
- )
16
- end
17
-
18
- sig { returns(T.nilable(String)) }
19
- attr_reader :email
20
-
21
- sig { params(email: String).void }
22
- attr_writer :email
23
-
24
- sig { returns(T.nilable(String)) }
25
- attr_accessor :invited_by
26
-
27
- sig { returns(T.nilable(String)) }
28
- attr_reader :name
29
-
30
- sig { params(name: String).void }
31
- attr_writer :name
32
-
33
- sig { returns(T.nilable(String)) }
34
- attr_reader :role
35
-
36
- sig { params(role: String).void }
37
- attr_writer :role
38
-
39
- sig do
40
- params(
41
- email: String,
42
- invited_by: T.nilable(String),
43
- name: String,
44
- role: String,
45
- request_options: Sentdm::RequestOptions::OrHash
46
- ).returns(T.attached_class)
47
- end
48
- def self.new(
49
- email: nil,
50
- invited_by: nil,
51
- name: nil,
52
- role: nil,
53
- request_options: {}
54
- )
55
- end
56
-
57
- sig do
58
- override.returns(
59
- {
60
- email: String,
61
- invited_by: T.nilable(String),
62
- name: String,
63
- role: String,
64
- request_options: Sentdm::RequestOptions
65
- }
66
- )
67
- end
68
- def to_hash
69
- end
70
- end
71
- end
72
- end
73
- end
@@ -1,48 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- class UserListParams < Sentdm::Internal::Type::BaseModel
7
- extend Sentdm::Internal::Type::RequestParameters::Converter
8
- include Sentdm::Internal::Type::RequestParameters
9
-
10
- OrHash =
11
- T.type_alias do
12
- T.any(
13
- Sentdm::Organizations::UserListParams,
14
- Sentdm::Internal::AnyHash
15
- )
16
- end
17
-
18
- sig { returns(Integer) }
19
- attr_accessor :page
20
-
21
- sig { returns(Integer) }
22
- attr_accessor :page_size
23
-
24
- sig do
25
- params(
26
- page: Integer,
27
- page_size: Integer,
28
- request_options: Sentdm::RequestOptions::OrHash
29
- ).returns(T.attached_class)
30
- end
31
- def self.new(page:, page_size:, request_options: {})
32
- end
33
-
34
- sig do
35
- override.returns(
36
- {
37
- page: Integer,
38
- page_size: Integer,
39
- request_options: Sentdm::RequestOptions
40
- }
41
- )
42
- end
43
- def to_hash
44
- end
45
- end
46
- end
47
- end
48
- end
@@ -1,71 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- class UserListResponse < Sentdm::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(
10
- Sentdm::Models::Organizations::UserListResponse,
11
- Sentdm::Internal::AnyHash
12
- )
13
- end
14
-
15
- sig { returns(T.nilable(Integer)) }
16
- attr_reader :page
17
-
18
- sig { params(page: Integer).void }
19
- attr_writer :page
20
-
21
- sig { returns(T.nilable(Integer)) }
22
- attr_reader :page_size
23
-
24
- sig { params(page_size: Integer).void }
25
- attr_writer :page_size
26
-
27
- sig { returns(T.nilable(Integer)) }
28
- attr_reader :total_count
29
-
30
- sig { params(total_count: Integer).void }
31
- attr_writer :total_count
32
-
33
- sig do
34
- returns(T.nilable(T::Array[Sentdm::Organizations::CustomerUser]))
35
- end
36
- attr_reader :users
37
-
38
- sig do
39
- params(
40
- users: T::Array[Sentdm::Organizations::CustomerUser::OrHash]
41
- ).void
42
- end
43
- attr_writer :users
44
-
45
- sig do
46
- params(
47
- page: Integer,
48
- page_size: Integer,
49
- total_count: Integer,
50
- users: T::Array[Sentdm::Organizations::CustomerUser::OrHash]
51
- ).returns(T.attached_class)
52
- end
53
- def self.new(page: nil, page_size: nil, total_count: nil, users: nil)
54
- end
55
-
56
- sig do
57
- override.returns(
58
- {
59
- page: Integer,
60
- page_size: Integer,
61
- total_count: Integer,
62
- users: T::Array[Sentdm::Organizations::CustomerUser]
63
- }
64
- )
65
- end
66
- def to_hash
67
- end
68
- end
69
- end
70
- end
71
- end
@@ -1,40 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- class UserRetrieveParams < Sentdm::Internal::Type::BaseModel
7
- extend Sentdm::Internal::Type::RequestParameters::Converter
8
- include Sentdm::Internal::Type::RequestParameters
9
-
10
- OrHash =
11
- T.type_alias do
12
- T.any(
13
- Sentdm::Organizations::UserRetrieveParams,
14
- Sentdm::Internal::AnyHash
15
- )
16
- end
17
-
18
- sig { returns(String) }
19
- attr_accessor :customer_id
20
-
21
- sig do
22
- params(
23
- customer_id: String,
24
- request_options: Sentdm::RequestOptions::OrHash
25
- ).returns(T.attached_class)
26
- end
27
- def self.new(customer_id:, request_options: {})
28
- end
29
-
30
- sig do
31
- override.returns(
32
- { customer_id: String, request_options: Sentdm::RequestOptions }
33
- )
34
- end
35
- def to_hash
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,51 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- class UserUpdateRoleParams < Sentdm::Internal::Type::BaseModel
7
- extend Sentdm::Internal::Type::RequestParameters::Converter
8
- include Sentdm::Internal::Type::RequestParameters
9
-
10
- OrHash =
11
- T.type_alias do
12
- T.any(
13
- Sentdm::Organizations::UserUpdateRoleParams,
14
- Sentdm::Internal::AnyHash
15
- )
16
- end
17
-
18
- sig { returns(String) }
19
- attr_accessor :customer_id
20
-
21
- sig { returns(T.nilable(String)) }
22
- attr_reader :role
23
-
24
- sig { params(role: String).void }
25
- attr_writer :role
26
-
27
- sig do
28
- params(
29
- customer_id: String,
30
- role: String,
31
- request_options: Sentdm::RequestOptions::OrHash
32
- ).returns(T.attached_class)
33
- end
34
- def self.new(customer_id:, role: nil, request_options: {})
35
- end
36
-
37
- sig do
38
- override.returns(
39
- {
40
- customer_id: String,
41
- role: String,
42
- request_options: Sentdm::RequestOptions
43
- }
44
- )
45
- end
46
- def to_hash
47
- end
48
- end
49
- end
50
- end
51
- end
@@ -1,74 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- class ProfileSummary < Sentdm::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(Sentdm::ProfileSummary, Sentdm::Internal::AnyHash)
9
- end
10
-
11
- sig { returns(T.nilable(String)) }
12
- attr_reader :id
13
-
14
- sig { params(id: String).void }
15
- attr_writer :id
16
-
17
- sig { returns(T.nilable(Time)) }
18
- attr_reader :created_at
19
-
20
- sig { params(created_at: Time).void }
21
- attr_writer :created_at
22
-
23
- sig { returns(T.nilable(String)) }
24
- attr_accessor :description
25
-
26
- sig { returns(T.nilable(String)) }
27
- attr_accessor :icon
28
-
29
- sig { returns(T.nilable(String)) }
30
- attr_reader :name
31
-
32
- sig { params(name: String).void }
33
- attr_writer :name
34
-
35
- sig { returns(T.nilable(String)) }
36
- attr_accessor :short_name
37
-
38
- sig do
39
- params(
40
- id: String,
41
- created_at: Time,
42
- description: T.nilable(String),
43
- icon: T.nilable(String),
44
- name: String,
45
- short_name: T.nilable(String)
46
- ).returns(T.attached_class)
47
- end
48
- def self.new(
49
- id: nil,
50
- created_at: nil,
51
- description: nil,
52
- icon: nil,
53
- name: nil,
54
- short_name: nil
55
- )
56
- end
57
-
58
- sig do
59
- override.returns(
60
- {
61
- id: String,
62
- created_at: Time,
63
- description: T.nilable(String),
64
- icon: T.nilable(String),
65
- name: String,
66
- short_name: T.nilable(String)
67
- }
68
- )
69
- end
70
- def to_hash
71
- end
72
- end
73
- end
74
- end
@@ -1,15 +0,0 @@
1
- module Sentdm
2
- module Models
3
- type organization_list_params =
4
- { } & Sentdm::Internal::Type::request_parameters
5
-
6
- class OrganizationListParams < Sentdm::Internal::Type::BaseModel
7
- extend Sentdm::Internal::Type::RequestParameters::Converter
8
- include Sentdm::Internal::Type::RequestParameters
9
-
10
- def initialize: (?request_options: Sentdm::request_opts) -> void
11
-
12
- def to_hash: -> { request_options: Sentdm::RequestOptions }
13
- end
14
- end
15
- end
@@ -1,76 +0,0 @@
1
- module Sentdm
2
- module Models
3
- type organization_list_response =
4
- {
5
- organizations: ::Array[Sentdm::Models::OrganizationListResponse::Organization]
6
- }
7
-
8
- class OrganizationListResponse < Sentdm::Internal::Type::BaseModel
9
- attr_reader organizations: ::Array[Sentdm::Models::OrganizationListResponse::Organization]?
10
-
11
- def organizations=: (
12
- ::Array[Sentdm::Models::OrganizationListResponse::Organization]
13
- ) -> ::Array[Sentdm::Models::OrganizationListResponse::Organization]
14
-
15
- def initialize: (
16
- ?organizations: ::Array[Sentdm::Models::OrganizationListResponse::Organization]
17
- ) -> void
18
-
19
- def to_hash: -> {
20
- organizations: ::Array[Sentdm::Models::OrganizationListResponse::Organization]
21
- }
22
-
23
- type organization =
24
- {
25
- id: String,
26
- created_at: Time,
27
- description: String?,
28
- icon: String?,
29
- name: String,
30
- profiles: ::Array[Sentdm::ProfileSummary]
31
- }
32
-
33
- class Organization < Sentdm::Internal::Type::BaseModel
34
- attr_reader id: String?
35
-
36
- def id=: (String) -> String
37
-
38
- attr_reader created_at: Time?
39
-
40
- def created_at=: (Time) -> Time
41
-
42
- attr_accessor description: String?
43
-
44
- attr_accessor icon: String?
45
-
46
- attr_reader name: String?
47
-
48
- def name=: (String) -> String
49
-
50
- attr_reader profiles: ::Array[Sentdm::ProfileSummary]?
51
-
52
- def profiles=: (
53
- ::Array[Sentdm::ProfileSummary]
54
- ) -> ::Array[Sentdm::ProfileSummary]
55
-
56
- def initialize: (
57
- ?id: String,
58
- ?created_at: Time,
59
- ?description: String?,
60
- ?icon: String?,
61
- ?name: String,
62
- ?profiles: ::Array[Sentdm::ProfileSummary]
63
- ) -> void
64
-
65
- def to_hash: -> {
66
- id: String,
67
- created_at: Time,
68
- description: String?,
69
- icon: String?,
70
- name: String,
71
- profiles: ::Array[Sentdm::ProfileSummary]
72
- }
73
- end
74
- end
75
- end
76
- end
@@ -1,15 +0,0 @@
1
- module Sentdm
2
- module Models
3
- type organization_retrieve_profiles_params =
4
- { } & Sentdm::Internal::Type::request_parameters
5
-
6
- class OrganizationRetrieveProfilesParams < Sentdm::Internal::Type::BaseModel
7
- extend Sentdm::Internal::Type::RequestParameters::Converter
8
- include Sentdm::Internal::Type::RequestParameters
9
-
10
- def initialize: (?request_options: Sentdm::request_opts) -> void
11
-
12
- def to_hash: -> { request_options: Sentdm::RequestOptions }
13
- end
14
- end
15
- end
@@ -1,28 +0,0 @@
1
- module Sentdm
2
- module Models
3
- type organization_retrieve_profiles_response =
4
- { organization_id: String, profiles: ::Array[Sentdm::ProfileSummary] }
5
-
6
- class OrganizationRetrieveProfilesResponse < Sentdm::Internal::Type::BaseModel
7
- attr_reader organization_id: String?
8
-
9
- def organization_id=: (String) -> String
10
-
11
- attr_reader profiles: ::Array[Sentdm::ProfileSummary]?
12
-
13
- def profiles=: (
14
- ::Array[Sentdm::ProfileSummary]
15
- ) -> ::Array[Sentdm::ProfileSummary]
16
-
17
- def initialize: (
18
- ?organization_id: String,
19
- ?profiles: ::Array[Sentdm::ProfileSummary]
20
- ) -> void
21
-
22
- def to_hash: -> {
23
- organization_id: String,
24
- profiles: ::Array[Sentdm::ProfileSummary]
25
- }
26
- end
27
- end
28
- end