agent_push_kit 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 (199) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +145 -0
  4. data/LICENSE +21 -0
  5. data/README.md +195 -0
  6. data/Rakefile +10 -0
  7. data/agent_push_kit.gemspec +39 -0
  8. data/docs/AcceptedResponse.md +18 -0
  9. data/docs/AccountApi.md +137 -0
  10. data/docs/AddMemberInput.md +18 -0
  11. data/docs/AgentToken.md +30 -0
  12. data/docs/AgentTokenCreated.md +32 -0
  13. data/docs/AgentTokensApi.md +279 -0
  14. data/docs/ApiKeySummary.md +22 -0
  15. data/docs/AuthResponse.md +24 -0
  16. data/docs/AuthenticationApi.md +385 -0
  17. data/docs/CreateAgentTokenInput.md +18 -0
  18. data/docs/CreateOrganizationInput.md +18 -0
  19. data/docs/CurrentAccount.md +20 -0
  20. data/docs/CustomerAccountsApi.md +348 -0
  21. data/docs/DeletedResponse.md +18 -0
  22. data/docs/DeliverySummary.md +24 -0
  23. data/docs/Device.md +28 -0
  24. data/docs/DevicesApi.md +344 -0
  25. data/docs/DisabledResponse.md +18 -0
  26. data/docs/ErrorResponse.md +22 -0
  27. data/docs/EventDetail.md +36 -0
  28. data/docs/EventFilter.md +53 -0
  29. data/docs/EventPage.md +20 -0
  30. data/docs/EventSummary.md +32 -0
  31. data/docs/EventsApi.md +505 -0
  32. data/docs/FilterGroup.md +20 -0
  33. data/docs/FilterNot.md +20 -0
  34. data/docs/HealthApi.md +67 -0
  35. data/docs/HealthResponse.md +20 -0
  36. data/docs/IngestionResult.md +22 -0
  37. data/docs/InheritedResponse.md +18 -0
  38. data/docs/Membership.md +24 -0
  39. data/docs/MembershipUser.md +22 -0
  40. data/docs/Organization.md +32 -0
  41. data/docs/OrganizationApiKeyCreated.md +24 -0
  42. data/docs/OrganizationCount.md +20 -0
  43. data/docs/OrganizationCreated.md +20 -0
  44. data/docs/OrganizationRecord.md +24 -0
  45. data/docs/PasswordLoginInput.md +20 -0
  46. data/docs/PasswordResetCompleteInput.md +20 -0
  47. data/docs/PasswordResetRequestInput.md +18 -0
  48. data/docs/PreferenceRecord.md +24 -0
  49. data/docs/PreferencesApi.md +287 -0
  50. data/docs/ProviderLoginInput.md +20 -0
  51. data/docs/RegisterDeviceInput.md +24 -0
  52. data/docs/RegisterInput.md +22 -0
  53. data/docs/RegisterWebPushSubscriptionInput.md +20 -0
  54. data/docs/RegisterWebPushSubscriptionInputKeys.md +20 -0
  55. data/docs/RevokedResponse.md +18 -0
  56. data/docs/SearchEventsInput.md +22 -0
  57. data/docs/SendEventInput.md +32 -0
  58. data/docs/Service.md +26 -0
  59. data/docs/ServiceAllOfCount.md +18 -0
  60. data/docs/ServicePreference.md +26 -0
  61. data/docs/ServiceSummary.md +22 -0
  62. data/docs/SetEnabledInput.md +18 -0
  63. data/docs/TextFilterCondition.md +22 -0
  64. data/docs/TimeFilterCondition.md +22 -0
  65. data/docs/TypeOverride.md +22 -0
  66. data/docs/User.md +28 -0
  67. data/docs/WebPushConfiguration.md +20 -0
  68. data/docs/WebPushSubscription.md +22 -0
  69. data/git_push.sh +57 -0
  70. data/lib/agent_push_kit/api/account_api.rb +132 -0
  71. data/lib/agent_push_kit/api/agent_tokens_api.rb +274 -0
  72. data/lib/agent_push_kit/api/authentication_api.rb +418 -0
  73. data/lib/agent_push_kit/api/customer_accounts_api.rb +339 -0
  74. data/lib/agent_push_kit/api/devices_api.rb +339 -0
  75. data/lib/agent_push_kit/api/events_api.rb +520 -0
  76. data/lib/agent_push_kit/api/health_api.rb +77 -0
  77. data/lib/agent_push_kit/api/preferences_api.rb +308 -0
  78. data/lib/agent_push_kit/api_client.rb +397 -0
  79. data/lib/agent_push_kit/api_error.rb +58 -0
  80. data/lib/agent_push_kit/api_model_base.rb +88 -0
  81. data/lib/agent_push_kit/configuration.rb +325 -0
  82. data/lib/agent_push_kit/models/accepted_response.rb +164 -0
  83. data/lib/agent_push_kit/models/add_member_input.rb +173 -0
  84. data/lib/agent_push_kit/models/agent_token.rb +292 -0
  85. data/lib/agent_push_kit/models/agent_token_created.rb +364 -0
  86. data/lib/agent_push_kit/models/api_key_summary.rb +165 -0
  87. data/lib/agent_push_kit/models/auth_response.rb +228 -0
  88. data/lib/agent_push_kit/models/create_agent_token_input.rb +182 -0
  89. data/lib/agent_push_kit/models/create_organization_input.rb +182 -0
  90. data/lib/agent_push_kit/models/current_account.rb +192 -0
  91. data/lib/agent_push_kit/models/deleted_response.rb +164 -0
  92. data/lib/agent_push_kit/models/delivery_summary.rb +242 -0
  93. data/lib/agent_push_kit/models/device.rb +304 -0
  94. data/lib/agent_push_kit/models/disabled_response.rb +164 -0
  95. data/lib/agent_push_kit/models/error_response.rb +199 -0
  96. data/lib/agent_push_kit/models/event_detail.rb +393 -0
  97. data/lib/agent_push_kit/models/event_filter.rb +106 -0
  98. data/lib/agent_push_kit/models/event_page.rb +178 -0
  99. data/lib/agent_push_kit/models/event_summary.rb +318 -0
  100. data/lib/agent_push_kit/models/filter_group.rb +234 -0
  101. data/lib/agent_push_kit/models/filter_not.rb +214 -0
  102. data/lib/agent_push_kit/models/health_response.rb +216 -0
  103. data/lib/agent_push_kit/models/ingestion_result.rb +216 -0
  104. data/lib/agent_push_kit/models/inherited_response.rb +164 -0
  105. data/lib/agent_push_kit/models/membership.rb +266 -0
  106. data/lib/agent_push_kit/models/membership_user.rb +202 -0
  107. data/lib/agent_push_kit/models/organization.rb +337 -0
  108. data/lib/agent_push_kit/models/organization_api_key_created.rb +253 -0
  109. data/lib/agent_push_kit/models/organization_count.rb +156 -0
  110. data/lib/agent_push_kit/models/organization_created.rb +201 -0
  111. data/lib/agent_push_kit/models/organization_record.rb +242 -0
  112. data/lib/agent_push_kit/models/password_login_input.rb +217 -0
  113. data/lib/agent_push_kit/models/password_reset_complete_input.rb +217 -0
  114. data/lib/agent_push_kit/models/password_reset_request_input.rb +173 -0
  115. data/lib/agent_push_kit/models/preference_record.rb +242 -0
  116. data/lib/agent_push_kit/models/provider_login_input.rb +201 -0
  117. data/lib/agent_push_kit/models/register_device_input.rb +304 -0
  118. data/lib/agent_push_kit/models/register_input.rb +245 -0
  119. data/lib/agent_push_kit/models/register_web_push_subscription_input.rb +199 -0
  120. data/lib/agent_push_kit/models/register_web_push_subscription_input_keys.rb +226 -0
  121. data/lib/agent_push_kit/models/revoked_response.rb +164 -0
  122. data/lib/agent_push_kit/models/search_events_input.rb +212 -0
  123. data/lib/agent_push_kit/models/send_event_input.rb +427 -0
  124. data/lib/agent_push_kit/models/service.rb +275 -0
  125. data/lib/agent_push_kit/models/service_all_of_count.rb +164 -0
  126. data/lib/agent_push_kit/models/service_preference.rb +270 -0
  127. data/lib/agent_push_kit/models/service_summary.rb +216 -0
  128. data/lib/agent_push_kit/models/set_enabled_input.rb +164 -0
  129. data/lib/agent_push_kit/models/text_filter_condition.rb +260 -0
  130. data/lib/agent_push_kit/models/time_filter_condition.rb +242 -0
  131. data/lib/agent_push_kit/models/type_override.rb +216 -0
  132. data/lib/agent_push_kit/models/user.rb +280 -0
  133. data/lib/agent_push_kit/models/web_push_configuration.rb +176 -0
  134. data/lib/agent_push_kit/models/web_push_subscription.rb +216 -0
  135. data/lib/agent_push_kit/version.rb +15 -0
  136. data/lib/agent_push_kit.rb +101 -0
  137. data/spec/api/account_api_spec.rb +55 -0
  138. data/spec/api/agent_tokens_api_spec.rb +80 -0
  139. data/spec/api/authentication_api_spec.rb +101 -0
  140. data/spec/api/customer_accounts_api_spec.rb +91 -0
  141. data/spec/api/devices_api_spec.rb +89 -0
  142. data/spec/api/events_api_spec.rb +121 -0
  143. data/spec/api/health_api_spec.rb +45 -0
  144. data/spec/api/preferences_api_spec.rb +83 -0
  145. data/spec/models/accepted_response_spec.rb +36 -0
  146. data/spec/models/add_member_input_spec.rb +36 -0
  147. data/spec/models/agent_token_created_spec.rb +78 -0
  148. data/spec/models/agent_token_spec.rb +72 -0
  149. data/spec/models/api_key_summary_spec.rb +48 -0
  150. data/spec/models/auth_response_spec.rb +54 -0
  151. data/spec/models/create_agent_token_input_spec.rb +36 -0
  152. data/spec/models/create_organization_input_spec.rb +36 -0
  153. data/spec/models/current_account_spec.rb +42 -0
  154. data/spec/models/deleted_response_spec.rb +36 -0
  155. data/spec/models/delivery_summary_spec.rb +54 -0
  156. data/spec/models/device_spec.rb +70 -0
  157. data/spec/models/disabled_response_spec.rb +36 -0
  158. data/spec/models/error_response_spec.rb +48 -0
  159. data/spec/models/event_detail_spec.rb +90 -0
  160. data/spec/models/event_filter_spec.rb +32 -0
  161. data/spec/models/event_page_spec.rb +42 -0
  162. data/spec/models/event_summary_spec.rb +78 -0
  163. data/spec/models/filter_group_spec.rb +46 -0
  164. data/spec/models/filter_not_spec.rb +46 -0
  165. data/spec/models/health_response_spec.rb +50 -0
  166. data/spec/models/ingestion_result_spec.rb +48 -0
  167. data/spec/models/inherited_response_spec.rb +36 -0
  168. data/spec/models/membership_spec.rb +58 -0
  169. data/spec/models/membership_user_spec.rb +48 -0
  170. data/spec/models/organization_api_key_created_spec.rb +54 -0
  171. data/spec/models/organization_count_spec.rb +42 -0
  172. data/spec/models/organization_created_spec.rb +42 -0
  173. data/spec/models/organization_record_spec.rb +54 -0
  174. data/spec/models/organization_spec.rb +82 -0
  175. data/spec/models/password_login_input_spec.rb +42 -0
  176. data/spec/models/password_reset_complete_input_spec.rb +42 -0
  177. data/spec/models/password_reset_request_input_spec.rb +36 -0
  178. data/spec/models/preference_record_spec.rb +54 -0
  179. data/spec/models/provider_login_input_spec.rb +42 -0
  180. data/spec/models/register_device_input_spec.rb +58 -0
  181. data/spec/models/register_input_spec.rb +48 -0
  182. data/spec/models/register_web_push_subscription_input_keys_spec.rb +42 -0
  183. data/spec/models/register_web_push_subscription_input_spec.rb +42 -0
  184. data/spec/models/revoked_response_spec.rb +36 -0
  185. data/spec/models/search_events_input_spec.rb +48 -0
  186. data/spec/models/send_event_input_spec.rb +78 -0
  187. data/spec/models/service_all_of_count_spec.rb +36 -0
  188. data/spec/models/service_preference_spec.rb +60 -0
  189. data/spec/models/service_spec.rb +60 -0
  190. data/spec/models/service_summary_spec.rb +48 -0
  191. data/spec/models/set_enabled_input_spec.rb +36 -0
  192. data/spec/models/text_filter_condition_spec.rb +56 -0
  193. data/spec/models/time_filter_condition_spec.rb +56 -0
  194. data/spec/models/type_override_spec.rb +48 -0
  195. data/spec/models/user_spec.rb +66 -0
  196. data/spec/models/web_push_configuration_spec.rb +42 -0
  197. data/spec/models/web_push_subscription_spec.rb +48 -0
  198. data/spec/spec_helper.rb +111 -0
  199. metadata +344 -0
@@ -0,0 +1,18 @@
1
+ # AgentPushKit::CreateAgentTokenInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'agent_push_kit'
13
+
14
+ instance = AgentPushKit::CreateAgentTokenInput.new(
15
+ name: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # AgentPushKit::CreateOrganizationInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'agent_push_kit'
13
+
14
+ instance = AgentPushKit::CreateOrganizationInput.new(
15
+ name: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # AgentPushKit::CurrentAccount
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **user** | [**User**](User.md) | | |
8
+ | **organizations** | [**Array<Organization>**](Organization.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'agent_push_kit'
14
+
15
+ instance = AgentPushKit::CurrentAccount.new(
16
+ user: null,
17
+ organizations: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,348 @@
1
+ # AgentPushKit::CustomerAccountsApi
2
+
3
+ All URIs are relative to *https://api.chatdna.co/agent-push-kit/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_organization_member**](CustomerAccountsApi.md#add_organization_member) | **POST** /organizations/{organizationId}/members | Add an already-registered user to a customer account |
8
+ | [**create_organization**](CustomerAccountsApi.md#create_organization) | **POST** /organizations | Create another Agent Push Kit customer account |
9
+ | [**list_organization_members**](CustomerAccountsApi.md#list_organization_members) | **GET** /organizations/{organizationId}/members | List members of a customer account |
10
+ | [**list_organizations**](CustomerAccountsApi.md#list_organizations) | **GET** /organizations | List customer accounts available to the current user |
11
+ | [**regenerate_organization_api_key**](CustomerAccountsApi.md#regenerate_organization_api_key) | **POST** /organizations/{organizationId}/api-key/regenerate | Rotate the application event-ingestion key |
12
+
13
+
14
+ ## add_organization_member
15
+
16
+ > <Membership> add_organization_member(organization_id, add_member_input)
17
+
18
+ Add an already-registered user to a customer account
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'agent_push_kit'
25
+ # setup authorization
26
+ AgentPushKit.configure do |config|
27
+ # Configure Bearer authorization (Agent Push Kit JWT or apt_ token): UserOrAgent
28
+ config.access_token = 'YOUR_BEARER_TOKEN'
29
+ end
30
+
31
+ api_instance = AgentPushKit::CustomerAccountsApi.new
32
+ organization_id = 'organization_id_example' # String |
33
+ add_member_input = AgentPushKit::AddMemberInput.new({email: 'email_example'}) # AddMemberInput |
34
+
35
+ begin
36
+ # Add an already-registered user to a customer account
37
+ result = api_instance.add_organization_member(organization_id, add_member_input)
38
+ p result
39
+ rescue AgentPushKit::ApiError => e
40
+ puts "Error when calling CustomerAccountsApi->add_organization_member: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the add_organization_member_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<Membership>, Integer, Hash)> add_organization_member_with_http_info(organization_id, add_member_input)
49
+
50
+ ```ruby
51
+ begin
52
+ # Add an already-registered user to a customer account
53
+ data, status_code, headers = api_instance.add_organization_member_with_http_info(organization_id, add_member_input)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <Membership>
57
+ rescue AgentPushKit::ApiError => e
58
+ puts "Error when calling CustomerAccountsApi->add_organization_member_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **organization_id** | **String** | | |
67
+ | **add_member_input** | [**AddMemberInput**](AddMemberInput.md) | | |
68
+
69
+ ### Return type
70
+
71
+ [**Membership**](Membership.md)
72
+
73
+ ### Authorization
74
+
75
+ [UserOrAgent](../README.md#UserOrAgent)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: application/json
80
+ - **Accept**: application/json
81
+
82
+
83
+ ## create_organization
84
+
85
+ > <OrganizationCreated> create_organization(create_organization_input)
86
+
87
+ Create another Agent Push Kit customer account
88
+
89
+ ### Examples
90
+
91
+ ```ruby
92
+ require 'time'
93
+ require 'agent_push_kit'
94
+ # setup authorization
95
+ AgentPushKit.configure do |config|
96
+ # Configure Bearer authorization (Agent Push Kit JWT or apt_ token): UserOrAgent
97
+ config.access_token = 'YOUR_BEARER_TOKEN'
98
+ end
99
+
100
+ api_instance = AgentPushKit::CustomerAccountsApi.new
101
+ create_organization_input = AgentPushKit::CreateOrganizationInput.new({name: 'name_example'}) # CreateOrganizationInput |
102
+
103
+ begin
104
+ # Create another Agent Push Kit customer account
105
+ result = api_instance.create_organization(create_organization_input)
106
+ p result
107
+ rescue AgentPushKit::ApiError => e
108
+ puts "Error when calling CustomerAccountsApi->create_organization: #{e}"
109
+ end
110
+ ```
111
+
112
+ #### Using the create_organization_with_http_info variant
113
+
114
+ This returns an Array which contains the response data, status code and headers.
115
+
116
+ > <Array(<OrganizationCreated>, Integer, Hash)> create_organization_with_http_info(create_organization_input)
117
+
118
+ ```ruby
119
+ begin
120
+ # Create another Agent Push Kit customer account
121
+ data, status_code, headers = api_instance.create_organization_with_http_info(create_organization_input)
122
+ p status_code # => 2xx
123
+ p headers # => { ... }
124
+ p data # => <OrganizationCreated>
125
+ rescue AgentPushKit::ApiError => e
126
+ puts "Error when calling CustomerAccountsApi->create_organization_with_http_info: #{e}"
127
+ end
128
+ ```
129
+
130
+ ### Parameters
131
+
132
+ | Name | Type | Description | Notes |
133
+ | ---- | ---- | ----------- | ----- |
134
+ | **create_organization_input** | [**CreateOrganizationInput**](CreateOrganizationInput.md) | | |
135
+
136
+ ### Return type
137
+
138
+ [**OrganizationCreated**](OrganizationCreated.md)
139
+
140
+ ### Authorization
141
+
142
+ [UserOrAgent](../README.md#UserOrAgent)
143
+
144
+ ### HTTP request headers
145
+
146
+ - **Content-Type**: application/json
147
+ - **Accept**: application/json
148
+
149
+
150
+ ## list_organization_members
151
+
152
+ > <Array<Membership>> list_organization_members(organization_id)
153
+
154
+ List members of a customer account
155
+
156
+ ### Examples
157
+
158
+ ```ruby
159
+ require 'time'
160
+ require 'agent_push_kit'
161
+ # setup authorization
162
+ AgentPushKit.configure do |config|
163
+ # Configure Bearer authorization (Agent Push Kit JWT or apt_ token): UserOrAgent
164
+ config.access_token = 'YOUR_BEARER_TOKEN'
165
+ end
166
+
167
+ api_instance = AgentPushKit::CustomerAccountsApi.new
168
+ organization_id = 'organization_id_example' # String |
169
+
170
+ begin
171
+ # List members of a customer account
172
+ result = api_instance.list_organization_members(organization_id)
173
+ p result
174
+ rescue AgentPushKit::ApiError => e
175
+ puts "Error when calling CustomerAccountsApi->list_organization_members: #{e}"
176
+ end
177
+ ```
178
+
179
+ #### Using the list_organization_members_with_http_info variant
180
+
181
+ This returns an Array which contains the response data, status code and headers.
182
+
183
+ > <Array(<Array<Membership>>, Integer, Hash)> list_organization_members_with_http_info(organization_id)
184
+
185
+ ```ruby
186
+ begin
187
+ # List members of a customer account
188
+ data, status_code, headers = api_instance.list_organization_members_with_http_info(organization_id)
189
+ p status_code # => 2xx
190
+ p headers # => { ... }
191
+ p data # => <Array<Membership>>
192
+ rescue AgentPushKit::ApiError => e
193
+ puts "Error when calling CustomerAccountsApi->list_organization_members_with_http_info: #{e}"
194
+ end
195
+ ```
196
+
197
+ ### Parameters
198
+
199
+ | Name | Type | Description | Notes |
200
+ | ---- | ---- | ----------- | ----- |
201
+ | **organization_id** | **String** | | |
202
+
203
+ ### Return type
204
+
205
+ [**Array&lt;Membership&gt;**](Membership.md)
206
+
207
+ ### Authorization
208
+
209
+ [UserOrAgent](../README.md#UserOrAgent)
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: Not defined
214
+ - **Accept**: application/json
215
+
216
+
217
+ ## list_organizations
218
+
219
+ > <Array<Organization>> list_organizations
220
+
221
+ List customer accounts available to the current user
222
+
223
+ ### Examples
224
+
225
+ ```ruby
226
+ require 'time'
227
+ require 'agent_push_kit'
228
+ # setup authorization
229
+ AgentPushKit.configure do |config|
230
+ # Configure Bearer authorization (Agent Push Kit JWT or apt_ token): UserOrAgent
231
+ config.access_token = 'YOUR_BEARER_TOKEN'
232
+ end
233
+
234
+ api_instance = AgentPushKit::CustomerAccountsApi.new
235
+
236
+ begin
237
+ # List customer accounts available to the current user
238
+ result = api_instance.list_organizations
239
+ p result
240
+ rescue AgentPushKit::ApiError => e
241
+ puts "Error when calling CustomerAccountsApi->list_organizations: #{e}"
242
+ end
243
+ ```
244
+
245
+ #### Using the list_organizations_with_http_info variant
246
+
247
+ This returns an Array which contains the response data, status code and headers.
248
+
249
+ > <Array(<Array<Organization>>, Integer, Hash)> list_organizations_with_http_info
250
+
251
+ ```ruby
252
+ begin
253
+ # List customer accounts available to the current user
254
+ data, status_code, headers = api_instance.list_organizations_with_http_info
255
+ p status_code # => 2xx
256
+ p headers # => { ... }
257
+ p data # => <Array<Organization>>
258
+ rescue AgentPushKit::ApiError => e
259
+ puts "Error when calling CustomerAccountsApi->list_organizations_with_http_info: #{e}"
260
+ end
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+ This endpoint does not need any parameter.
266
+
267
+ ### Return type
268
+
269
+ [**Array&lt;Organization&gt;**](Organization.md)
270
+
271
+ ### Authorization
272
+
273
+ [UserOrAgent](../README.md#UserOrAgent)
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: Not defined
278
+ - **Accept**: application/json
279
+
280
+
281
+ ## regenerate_organization_api_key
282
+
283
+ > <OrganizationApiKeyCreated> regenerate_organization_api_key(organization_id)
284
+
285
+ Rotate the application event-ingestion key
286
+
287
+ The previous `apk_` key stops working immediately. The replacement is returned only in this response.
288
+
289
+ ### Examples
290
+
291
+ ```ruby
292
+ require 'time'
293
+ require 'agent_push_kit'
294
+ # setup authorization
295
+ AgentPushKit.configure do |config|
296
+ # Configure Bearer authorization (Agent Push Kit JWT or apt_ token): UserOrAgent
297
+ config.access_token = 'YOUR_BEARER_TOKEN'
298
+ end
299
+
300
+ api_instance = AgentPushKit::CustomerAccountsApi.new
301
+ organization_id = 'organization_id_example' # String |
302
+
303
+ begin
304
+ # Rotate the application event-ingestion key
305
+ result = api_instance.regenerate_organization_api_key(organization_id)
306
+ p result
307
+ rescue AgentPushKit::ApiError => e
308
+ puts "Error when calling CustomerAccountsApi->regenerate_organization_api_key: #{e}"
309
+ end
310
+ ```
311
+
312
+ #### Using the regenerate_organization_api_key_with_http_info variant
313
+
314
+ This returns an Array which contains the response data, status code and headers.
315
+
316
+ > <Array(<OrganizationApiKeyCreated>, Integer, Hash)> regenerate_organization_api_key_with_http_info(organization_id)
317
+
318
+ ```ruby
319
+ begin
320
+ # Rotate the application event-ingestion key
321
+ data, status_code, headers = api_instance.regenerate_organization_api_key_with_http_info(organization_id)
322
+ p status_code # => 2xx
323
+ p headers # => { ... }
324
+ p data # => <OrganizationApiKeyCreated>
325
+ rescue AgentPushKit::ApiError => e
326
+ puts "Error when calling CustomerAccountsApi->regenerate_organization_api_key_with_http_info: #{e}"
327
+ end
328
+ ```
329
+
330
+ ### Parameters
331
+
332
+ | Name | Type | Description | Notes |
333
+ | ---- | ---- | ----------- | ----- |
334
+ | **organization_id** | **String** | | |
335
+
336
+ ### Return type
337
+
338
+ [**OrganizationApiKeyCreated**](OrganizationApiKeyCreated.md)
339
+
340
+ ### Authorization
341
+
342
+ [UserOrAgent](../README.md#UserOrAgent)
343
+
344
+ ### HTTP request headers
345
+
346
+ - **Content-Type**: Not defined
347
+ - **Accept**: application/json
348
+
@@ -0,0 +1,18 @@
1
+ # AgentPushKit::DeletedResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **deleted** | **Boolean** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'agent_push_kit'
13
+
14
+ instance = AgentPushKit::DeletedResponse.new(
15
+ deleted: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # AgentPushKit::DeliverySummary
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **sent** | **Integer** | | |
8
+ | **failed** | **Integer** | | |
9
+ | **suppressed_users** | **Integer** | | |
10
+ | **eligible_devices** | **Integer** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'agent_push_kit'
16
+
17
+ instance = AgentPushKit::DeliverySummary.new(
18
+ sent: null,
19
+ failed: null,
20
+ suppressed_users: null,
21
+ eligible_devices: null
22
+ )
23
+ ```
24
+
data/docs/Device.md ADDED
@@ -0,0 +1,28 @@
1
+ # AgentPushKit::Device
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **installation_id** | **String** | | |
9
+ | **environment** | **String** | | |
10
+ | **app_version** | **String** | | |
11
+ | **enabled** | **Boolean** | | |
12
+ | **last_seen_at** | **Time** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'agent_push_kit'
18
+
19
+ instance = AgentPushKit::Device.new(
20
+ id: null,
21
+ installation_id: null,
22
+ environment: null,
23
+ app_version: null,
24
+ enabled: null,
25
+ last_seen_at: null
26
+ )
27
+ ```
28
+