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,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- # @see Sentdm::Resources::Organizations#retrieve_profiles
6
- class OrganizationRetrieveProfilesParams < Sentdm::Internal::Type::BaseModel
7
- extend Sentdm::Internal::Type::RequestParameters::Converter
8
- include Sentdm::Internal::Type::RequestParameters
9
-
10
- # @!method initialize(request_options: {})
11
- # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
12
- end
13
- end
14
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- # @see Sentdm::Resources::Organizations#retrieve_profiles
6
- class OrganizationRetrieveProfilesResponse < Sentdm::Internal::Type::BaseModel
7
- # @!attribute organization_id
8
- #
9
- # @return [String, nil]
10
- optional :organization_id, String, api_name: :organizationId
11
-
12
- # @!attribute profiles
13
- #
14
- # @return [Array<Sentdm::Models::ProfileSummary>, nil]
15
- optional :profiles, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::ProfileSummary] }
16
-
17
- # @!method initialize(organization_id: nil, profiles: nil)
18
- # @param organization_id [String]
19
- # @param profiles [Array<Sentdm::Models::ProfileSummary>]
20
- end
21
- end
22
- end
@@ -1,96 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- # @see Sentdm::Resources::Organizations::Users#retrieve
7
- class CustomerUser < Sentdm::Internal::Type::BaseModel
8
- # @!attribute id
9
- # Unique identifier
10
- #
11
- # @return [String, nil]
12
- optional :id, String
13
-
14
- # @!attribute created_at
15
- #
16
- # @return [Time, nil]
17
- optional :created_at, Time, api_name: :createdAt
18
-
19
- # @!attribute customer_id
20
- #
21
- # @return [String, nil]
22
- optional :customer_id, String, api_name: :customerId
23
-
24
- # @!attribute email
25
- #
26
- # @return [String, nil]
27
- optional :email, String
28
-
29
- # @!attribute invitation_sent_at
30
- #
31
- # @return [Time, nil]
32
- optional :invitation_sent_at, Time, api_name: :invitationSentAt, nil?: true
33
-
34
- # @!attribute invitation_token
35
- #
36
- # @return [String, nil]
37
- optional :invitation_token, String, api_name: :invitationToken, nil?: true
38
-
39
- # @!attribute invitation_token_expires_at
40
- #
41
- # @return [Time, nil]
42
- optional :invitation_token_expires_at, Time, api_name: :invitationTokenExpiresAt, nil?: true
43
-
44
- # @!attribute last_login_at
45
- #
46
- # @return [Time, nil]
47
- optional :last_login_at, Time, api_name: :lastLoginAt, nil?: true
48
-
49
- # @!attribute name
50
- #
51
- # @return [String, nil]
52
- optional :name, String
53
-
54
- # @!attribute role
55
- #
56
- # @return [String, nil]
57
- optional :role, String
58
-
59
- # @!attribute status
60
- #
61
- # @return [String, nil]
62
- optional :status, String
63
-
64
- # @!attribute updated_at
65
- #
66
- # @return [Time, nil]
67
- optional :updated_at, Time, api_name: :updatedAt, nil?: true
68
-
69
- # @!method initialize(id: nil, created_at: nil, customer_id: nil, email: nil, invitation_sent_at: nil, invitation_token: nil, invitation_token_expires_at: nil, last_login_at: nil, name: nil, role: nil, status: nil, updated_at: nil)
70
- # @param id [String] Unique identifier
71
- #
72
- # @param created_at [Time]
73
- #
74
- # @param customer_id [String]
75
- #
76
- # @param email [String]
77
- #
78
- # @param invitation_sent_at [Time, nil]
79
- #
80
- # @param invitation_token [String, nil]
81
- #
82
- # @param invitation_token_expires_at [Time, nil]
83
- #
84
- # @param last_login_at [Time, nil]
85
- #
86
- # @param name [String]
87
- #
88
- # @param role [String]
89
- #
90
- # @param status [String]
91
- #
92
- # @param updated_at [Time, nil]
93
- end
94
- end
95
- end
96
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- # @see Sentdm::Resources::Organizations::Users#delete
7
- class UserDeleteParams < Sentdm::Internal::Type::BaseModel
8
- extend Sentdm::Internal::Type::RequestParameters::Converter
9
- include Sentdm::Internal::Type::RequestParameters
10
-
11
- # @!attribute customer_id
12
- #
13
- # @return [String]
14
- required :customer_id, String
15
-
16
- # @!method initialize(customer_id:, request_options: {})
17
- # @param customer_id [String]
18
- # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
19
- end
20
- end
21
- end
22
- end
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- # @see Sentdm::Resources::Organizations::Users#invite
7
- class UserInviteParams < Sentdm::Internal::Type::BaseModel
8
- extend Sentdm::Internal::Type::RequestParameters::Converter
9
- include Sentdm::Internal::Type::RequestParameters
10
-
11
- # @!attribute email
12
- #
13
- # @return [String, nil]
14
- optional :email, String
15
-
16
- # @!attribute invited_by
17
- #
18
- # @return [String, nil]
19
- optional :invited_by, String, api_name: :invitedBy, nil?: true
20
-
21
- # @!attribute name
22
- #
23
- # @return [String, nil]
24
- optional :name, String
25
-
26
- # @!attribute role
27
- #
28
- # @return [String, nil]
29
- optional :role, String
30
-
31
- # @!method initialize(email: nil, invited_by: nil, name: nil, role: nil, request_options: {})
32
- # @param email [String]
33
- # @param invited_by [String, nil]
34
- # @param name [String]
35
- # @param role [String]
36
- # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
37
- end
38
- end
39
- end
40
- end
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- # @see Sentdm::Resources::Organizations::Users#list
7
- class UserListParams < Sentdm::Internal::Type::BaseModel
8
- extend Sentdm::Internal::Type::RequestParameters::Converter
9
- include Sentdm::Internal::Type::RequestParameters
10
-
11
- # @!attribute page
12
- #
13
- # @return [Integer]
14
- required :page, Integer
15
-
16
- # @!attribute page_size
17
- #
18
- # @return [Integer]
19
- required :page_size, Integer
20
-
21
- # @!method initialize(page:, page_size:, request_options: {})
22
- # @param page [Integer]
23
- # @param page_size [Integer]
24
- # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
25
- end
26
- end
27
- end
28
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- # @see Sentdm::Resources::Organizations::Users#list
7
- class UserListResponse < Sentdm::Internal::Type::BaseModel
8
- # @!attribute page
9
- #
10
- # @return [Integer, nil]
11
- optional :page, Integer
12
-
13
- # @!attribute page_size
14
- #
15
- # @return [Integer, nil]
16
- optional :page_size, Integer, api_name: :pageSize
17
-
18
- # @!attribute total_count
19
- #
20
- # @return [Integer, nil]
21
- optional :total_count, Integer, api_name: :totalCount
22
-
23
- # @!attribute users
24
- #
25
- # @return [Array<Sentdm::Models::Organizations::CustomerUser>, nil]
26
- optional :users, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Organizations::CustomerUser] }
27
-
28
- # @!method initialize(page: nil, page_size: nil, total_count: nil, users: nil)
29
- # @param page [Integer]
30
- # @param page_size [Integer]
31
- # @param total_count [Integer]
32
- # @param users [Array<Sentdm::Models::Organizations::CustomerUser>]
33
- end
34
- end
35
- end
36
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- # @see Sentdm::Resources::Organizations::Users#retrieve
7
- class UserRetrieveParams < Sentdm::Internal::Type::BaseModel
8
- extend Sentdm::Internal::Type::RequestParameters::Converter
9
- include Sentdm::Internal::Type::RequestParameters
10
-
11
- # @!attribute customer_id
12
- #
13
- # @return [String]
14
- required :customer_id, String
15
-
16
- # @!method initialize(customer_id:, request_options: {})
17
- # @param customer_id [String]
18
- # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
19
- end
20
- end
21
- end
22
- end
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- module Organizations
6
- # @see Sentdm::Resources::Organizations::Users#update_role
7
- class UserUpdateRoleParams < Sentdm::Internal::Type::BaseModel
8
- extend Sentdm::Internal::Type::RequestParameters::Converter
9
- include Sentdm::Internal::Type::RequestParameters
10
-
11
- # @!attribute customer_id
12
- #
13
- # @return [String]
14
- required :customer_id, String
15
-
16
- # @!attribute role
17
- #
18
- # @return [String, nil]
19
- optional :role, String
20
-
21
- # @!method initialize(customer_id:, role: nil, request_options: {})
22
- # @param customer_id [String]
23
- # @param role [String]
24
- # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
25
- end
26
- end
27
- end
28
- end
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sentdm
4
- module Models
5
- class ProfileSummary < Sentdm::Internal::Type::BaseModel
6
- # @!attribute id
7
- #
8
- # @return [String, nil]
9
- optional :id, String
10
-
11
- # @!attribute created_at
12
- #
13
- # @return [Time, nil]
14
- optional :created_at, Time, api_name: :createdAt
15
-
16
- # @!attribute description
17
- #
18
- # @return [String, nil]
19
- optional :description, String, nil?: true
20
-
21
- # @!attribute icon
22
- #
23
- # @return [String, nil]
24
- optional :icon, String, nil?: true
25
-
26
- # @!attribute name
27
- #
28
- # @return [String, nil]
29
- optional :name, String
30
-
31
- # @!attribute short_name
32
- #
33
- # @return [String, nil]
34
- optional :short_name, String, api_name: :shortName, nil?: true
35
-
36
- # @!method initialize(id: nil, created_at: nil, description: nil, icon: nil, name: nil, short_name: nil)
37
- # @param id [String]
38
- # @param created_at [Time]
39
- # @param description [String, nil]
40
- # @param icon [String, nil]
41
- # @param name [String]
42
- # @param short_name [String, nil]
43
- end
44
- end
45
- end
@@ -1,27 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- class OrganizationListParams < Sentdm::Internal::Type::BaseModel
6
- extend Sentdm::Internal::Type::RequestParameters::Converter
7
- include Sentdm::Internal::Type::RequestParameters
8
-
9
- OrHash =
10
- T.type_alias do
11
- T.any(Sentdm::OrganizationListParams, Sentdm::Internal::AnyHash)
12
- end
13
-
14
- sig do
15
- params(request_options: Sentdm::RequestOptions::OrHash).returns(
16
- T.attached_class
17
- )
18
- end
19
- def self.new(request_options: {})
20
- end
21
-
22
- sig { override.returns({ request_options: Sentdm::RequestOptions }) }
23
- def to_hash
24
- end
25
- end
26
- end
27
- end
@@ -1,131 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- class OrganizationListResponse < Sentdm::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(
9
- Sentdm::Models::OrganizationListResponse,
10
- Sentdm::Internal::AnyHash
11
- )
12
- end
13
-
14
- sig do
15
- returns(
16
- T.nilable(
17
- T::Array[Sentdm::Models::OrganizationListResponse::Organization]
18
- )
19
- )
20
- end
21
- attr_reader :organizations
22
-
23
- sig do
24
- params(
25
- organizations:
26
- T::Array[
27
- Sentdm::Models::OrganizationListResponse::Organization::OrHash
28
- ]
29
- ).void
30
- end
31
- attr_writer :organizations
32
-
33
- sig do
34
- params(
35
- organizations:
36
- T::Array[
37
- Sentdm::Models::OrganizationListResponse::Organization::OrHash
38
- ]
39
- ).returns(T.attached_class)
40
- end
41
- def self.new(organizations: nil)
42
- end
43
-
44
- sig do
45
- override.returns(
46
- {
47
- organizations:
48
- T::Array[Sentdm::Models::OrganizationListResponse::Organization]
49
- }
50
- )
51
- end
52
- def to_hash
53
- end
54
-
55
- class Organization < Sentdm::Internal::Type::BaseModel
56
- OrHash =
57
- T.type_alias do
58
- T.any(
59
- Sentdm::Models::OrganizationListResponse::Organization,
60
- Sentdm::Internal::AnyHash
61
- )
62
- end
63
-
64
- sig { returns(T.nilable(String)) }
65
- attr_reader :id
66
-
67
- sig { params(id: String).void }
68
- attr_writer :id
69
-
70
- sig { returns(T.nilable(Time)) }
71
- attr_reader :created_at
72
-
73
- sig { params(created_at: Time).void }
74
- attr_writer :created_at
75
-
76
- sig { returns(T.nilable(String)) }
77
- attr_accessor :description
78
-
79
- sig { returns(T.nilable(String)) }
80
- attr_accessor :icon
81
-
82
- sig { returns(T.nilable(String)) }
83
- attr_reader :name
84
-
85
- sig { params(name: String).void }
86
- attr_writer :name
87
-
88
- sig { returns(T.nilable(T::Array[Sentdm::ProfileSummary])) }
89
- attr_reader :profiles
90
-
91
- sig { params(profiles: T::Array[Sentdm::ProfileSummary::OrHash]).void }
92
- attr_writer :profiles
93
-
94
- sig do
95
- params(
96
- id: String,
97
- created_at: Time,
98
- description: T.nilable(String),
99
- icon: T.nilable(String),
100
- name: String,
101
- profiles: T::Array[Sentdm::ProfileSummary::OrHash]
102
- ).returns(T.attached_class)
103
- end
104
- def self.new(
105
- id: nil,
106
- created_at: nil,
107
- description: nil,
108
- icon: nil,
109
- name: nil,
110
- profiles: nil
111
- )
112
- end
113
-
114
- sig do
115
- override.returns(
116
- {
117
- id: String,
118
- created_at: Time,
119
- description: T.nilable(String),
120
- icon: T.nilable(String),
121
- name: String,
122
- profiles: T::Array[Sentdm::ProfileSummary]
123
- }
124
- )
125
- end
126
- def to_hash
127
- end
128
- end
129
- end
130
- end
131
- end
@@ -1,30 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- class OrganizationRetrieveProfilesParams < Sentdm::Internal::Type::BaseModel
6
- extend Sentdm::Internal::Type::RequestParameters::Converter
7
- include Sentdm::Internal::Type::RequestParameters
8
-
9
- OrHash =
10
- T.type_alias do
11
- T.any(
12
- Sentdm::OrganizationRetrieveProfilesParams,
13
- Sentdm::Internal::AnyHash
14
- )
15
- end
16
-
17
- sig do
18
- params(request_options: Sentdm::RequestOptions::OrHash).returns(
19
- T.attached_class
20
- )
21
- end
22
- def self.new(request_options: {})
23
- end
24
-
25
- sig { override.returns({ request_options: Sentdm::RequestOptions }) }
26
- def to_hash
27
- end
28
- end
29
- end
30
- end
@@ -1,47 +0,0 @@
1
- # typed: strong
2
-
3
- module Sentdm
4
- module Models
5
- class OrganizationRetrieveProfilesResponse < Sentdm::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(
9
- Sentdm::Models::OrganizationRetrieveProfilesResponse,
10
- Sentdm::Internal::AnyHash
11
- )
12
- end
13
-
14
- sig { returns(T.nilable(String)) }
15
- attr_reader :organization_id
16
-
17
- sig { params(organization_id: String).void }
18
- attr_writer :organization_id
19
-
20
- sig { returns(T.nilable(T::Array[Sentdm::ProfileSummary])) }
21
- attr_reader :profiles
22
-
23
- sig { params(profiles: T::Array[Sentdm::ProfileSummary::OrHash]).void }
24
- attr_writer :profiles
25
-
26
- sig do
27
- params(
28
- organization_id: String,
29
- profiles: T::Array[Sentdm::ProfileSummary::OrHash]
30
- ).returns(T.attached_class)
31
- end
32
- def self.new(organization_id: nil, profiles: nil)
33
- end
34
-
35
- sig do
36
- override.returns(
37
- {
38
- organization_id: String,
39
- profiles: T::Array[Sentdm::ProfileSummary]
40
- }
41
- )
42
- end
43
- def to_hash
44
- end
45
- end
46
- end
47
- end