smplkit 3.0.7 → 3.0.8

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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/api_keys_api.rb +7 -0
  3. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/billing_api.rb +25 -4
  4. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/context_types_api.rb +7 -0
  5. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/contexts_api.rb +7 -0
  6. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/environments_api.rb +7 -0
  7. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/invitations_api.rb +7 -0
  8. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/metrics_api.rb +23 -2
  9. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/plans_api.rb +9 -2
  10. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/products_api.rb +9 -2
  11. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/services_api.rb +7 -0
  12. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/users_api.rb +7 -0
  13. data/lib/smplkit/_generated/app/spec/api/api_keys_api_spec.rb +1 -0
  14. data/lib/smplkit/_generated/app/spec/api/billing_api_spec.rb +5 -2
  15. data/lib/smplkit/_generated/app/spec/api/context_types_api_spec.rb +1 -0
  16. data/lib/smplkit/_generated/app/spec/api/contexts_api_spec.rb +1 -0
  17. data/lib/smplkit/_generated/app/spec/api/environments_api_spec.rb +1 -0
  18. data/lib/smplkit/_generated/app/spec/api/invitations_api_spec.rb +1 -0
  19. data/lib/smplkit/_generated/app/spec/api/metrics_api_spec.rb +4 -1
  20. data/lib/smplkit/_generated/app/spec/api/plans_api_spec.rb +2 -1
  21. data/lib/smplkit/_generated/app/spec/api/products_api_spec.rb +2 -1
  22. data/lib/smplkit/_generated/app/spec/api/services_api_spec.rb +1 -0
  23. data/lib/smplkit/_generated/app/spec/api/users_api_spec.rb +1 -0
  24. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1fc071e8cae2cb8461a8e55fe564dcbdc446cae32a0735d90624a9f5ccbd944
4
- data.tar.gz: 65c1e1e655595c0b444e27ad421b9cd42eed5882e6c5b488afe2df6673e5d547
3
+ metadata.gz: 1eaa772f81dbbf1da7bdeb5e43a93fbe79f7807cec95f1fb03a6be1a537eed3b
4
+ data.tar.gz: 0fe339fab7a885559a9a64d9f4ad8fb4e7b47a8213189c4b6df0d5271bcf9283
5
5
  SHA512:
6
- metadata.gz: 512e2fcb432fe88a942c5734e137ddd81189aa9ba64507b196def8f4e35add40affad4bf1a744dc0c0a11c68c5f23e25bbb554950770fed27f217c557d7ef70c
7
- data.tar.gz: 3c423613894ce47daaab38db04addae21892c945a665714d41a2b43330392e1d56dc74167531c1fd23ce40c7be613e36f7539aca6e4f93707f80a58eb5fae6ab
6
+ metadata.gz: a4b9681082214a56b7ff2488c2190558786a4d09c8563ba70c1ba7de04b307223ecf30ad57ad9710d2400680369c4389693a58850fd955967f9435170e64bc08
7
+ data.tar.gz: 11cb33e01dc1d7923578e02dd5cb9f7080aee12ce83675899709f6be302add9ad7eec0ab919d76e1b62116b90e5bb298d09ec9ca3b36396b41fa8c999c5d0dae
@@ -217,6 +217,7 @@ module SmplkitGeneratedClient::App
217
217
  # List all API keys for the authenticated account.
218
218
  # @param [Hash] opts the optional parameters
219
219
  # @option opts [String] :filter_status
220
+ # @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `expires_at`, `-expires_at`, `last_used_at`, `-last_used_at`, `name`, `-name`, `status`, `-status`. (default to 'name')
220
221
  # @return [ApiKeyListResponse]
221
222
  def list_api_keys(opts = {})
222
223
  data, _status_code, _headers = list_api_keys_with_http_info(opts)
@@ -227,17 +228,23 @@ module SmplkitGeneratedClient::App
227
228
  # List all API keys for the authenticated account.
228
229
  # @param [Hash] opts the optional parameters
229
230
  # @option opts [String] :filter_status
231
+ # @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `expires_at`, `-expires_at`, `last_used_at`, `-last_used_at`, `name`, `-name`, `status`, `-status`. (default to 'name')
230
232
  # @return [Array<(ApiKeyListResponse, Integer, Hash)>] ApiKeyListResponse data, response status code and response headers
231
233
  def list_api_keys_with_http_info(opts = {})
232
234
  if @api_client.config.debugging
233
235
  @api_client.config.logger.debug 'Calling API: APIKeysApi.list_api_keys ...'
234
236
  end
237
+ allowable_values = ["created_at", "-created_at", "expires_at", "-expires_at", "last_used_at", "-last_used_at", "name", "-name", "status", "-status"]
238
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
239
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
240
+ end
235
241
  # resource path
236
242
  local_var_path = '/api/v1/api_keys'
237
243
 
238
244
  # query parameters
239
245
  query_params = opts[:query_params] || {}
240
246
  query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
247
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
241
248
 
242
249
  # header parameters
243
250
  header_params = opts[:header_params] || {}
@@ -539,8 +539,9 @@ module SmplkitGeneratedClient::App
539
539
  end
540
540
 
541
541
  # List Invoices
542
- # Return invoice history for the account from Stripe.
542
+ # Return invoice history for the account from Stripe. Default sort is `-created_at` (newest first).
543
543
  # @param [Hash] opts the optional parameters
544
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;, &#x60;total&#x60;, &#x60;-total&#x60;. (default to '-created_at')
544
545
  # @return [InvoiceListResponse]
545
546
  def list_invoices(opts = {})
546
547
  data, _status_code, _headers = list_invoices_with_http_info(opts)
@@ -548,18 +549,24 @@ module SmplkitGeneratedClient::App
548
549
  end
549
550
 
550
551
  # List Invoices
551
- # Return invoice history for the account from Stripe.
552
+ # Return invoice history for the account from Stripe. Default sort is &#x60;-created_at&#x60; (newest first).
552
553
  # @param [Hash] opts the optional parameters
554
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;, &#x60;total&#x60;, &#x60;-total&#x60;. (default to '-created_at')
553
555
  # @return [Array<(InvoiceListResponse, Integer, Hash)>] InvoiceListResponse data, response status code and response headers
554
556
  def list_invoices_with_http_info(opts = {})
555
557
  if @api_client.config.debugging
556
558
  @api_client.config.logger.debug 'Calling API: BillingApi.list_invoices ...'
557
559
  end
560
+ allowable_values = ["created_at", "-created_at", "status", "-status", "total", "-total"]
561
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
562
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
563
+ end
558
564
  # resource path
559
565
  local_var_path = '/api/v1/invoices'
560
566
 
561
567
  # query parameters
562
568
  query_params = opts[:query_params] || {}
569
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
563
570
 
564
571
  # header parameters
565
572
  header_params = opts[:header_params] || {}
@@ -598,6 +605,7 @@ module SmplkitGeneratedClient::App
598
605
  # List Payment Methods
599
606
  # List all payment methods for the account. Default is returned first, then newest first.
600
607
  # @param [Hash] opts the optional parameters
608
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;exp_year&#x60;, &#x60;-exp_year&#x60;, &#x60;is_default&#x60;, &#x60;-is_default&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to '-created_at')
601
609
  # @return [PaymentMethodListResponse]
602
610
  def list_payment_methods(opts = {})
603
611
  data, _status_code, _headers = list_payment_methods_with_http_info(opts)
@@ -607,16 +615,22 @@ module SmplkitGeneratedClient::App
607
615
  # List Payment Methods
608
616
  # List all payment methods for the account. Default is returned first, then newest first.
609
617
  # @param [Hash] opts the optional parameters
618
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;exp_year&#x60;, &#x60;-exp_year&#x60;, &#x60;is_default&#x60;, &#x60;-is_default&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to '-created_at')
610
619
  # @return [Array<(PaymentMethodListResponse, Integer, Hash)>] PaymentMethodListResponse data, response status code and response headers
611
620
  def list_payment_methods_with_http_info(opts = {})
612
621
  if @api_client.config.debugging
613
622
  @api_client.config.logger.debug 'Calling API: BillingApi.list_payment_methods ...'
614
623
  end
624
+ allowable_values = ["created_at", "-created_at", "exp_year", "-exp_year", "is_default", "-is_default", "updated_at", "-updated_at"]
625
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
626
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
627
+ end
615
628
  # resource path
616
629
  local_var_path = '/api/v1/payment_methods'
617
630
 
618
631
  # query parameters
619
632
  query_params = opts[:query_params] || {}
633
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
620
634
 
621
635
  # header parameters
622
636
  header_params = opts[:header_params] || {}
@@ -653,8 +667,9 @@ module SmplkitGeneratedClient::App
653
667
  end
654
668
 
655
669
  # List Subscriptions
656
- # Return subscription rows for the authenticated account.
670
+ # Return subscription rows for the authenticated account. Default sort is `product` ascending.
657
671
  # @param [Hash] opts the optional parameters
672
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;product&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;plan&#x60;, &#x60;-plan&#x60;, &#x60;product&#x60;, &#x60;-product&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;. (default to 'product')
658
673
  # @return [SubscriptionListResponse]
659
674
  def list_subscriptions(opts = {})
660
675
  data, _status_code, _headers = list_subscriptions_with_http_info(opts)
@@ -662,18 +677,24 @@ module SmplkitGeneratedClient::App
662
677
  end
663
678
 
664
679
  # List Subscriptions
665
- # Return subscription rows for the authenticated account.
680
+ # Return subscription rows for the authenticated account. Default sort is &#x60;product&#x60; ascending.
666
681
  # @param [Hash] opts the optional parameters
682
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;product&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;plan&#x60;, &#x60;-plan&#x60;, &#x60;product&#x60;, &#x60;-product&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;. (default to 'product')
667
683
  # @return [Array<(SubscriptionListResponse, Integer, Hash)>] SubscriptionListResponse data, response status code and response headers
668
684
  def list_subscriptions_with_http_info(opts = {})
669
685
  if @api_client.config.debugging
670
686
  @api_client.config.logger.debug 'Calling API: BillingApi.list_subscriptions ...'
671
687
  end
688
+ allowable_values = ["created_at", "-created_at", "plan", "-plan", "product", "-product", "status", "-status"]
689
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
690
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
691
+ end
672
692
  # resource path
673
693
  local_var_path = '/api/v1/subscriptions'
674
694
 
675
695
  # query parameters
676
696
  query_params = opts[:query_params] || {}
697
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
677
698
 
678
699
  # header parameters
679
700
  header_params = opts[:header_params] || {}
@@ -216,6 +216,7 @@ module SmplkitGeneratedClient::App
216
216
  # List Context Types
217
217
  # List all context types for the authenticated account.
218
218
  # @param [Hash] opts the optional parameters
219
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'key')
219
220
  # @return [ContextTypeListResponse]
220
221
  def list_context_types(opts = {})
221
222
  data, _status_code, _headers = list_context_types_with_http_info(opts)
@@ -225,16 +226,22 @@ module SmplkitGeneratedClient::App
225
226
  # List Context Types
226
227
  # List all context types for the authenticated account.
227
228
  # @param [Hash] opts the optional parameters
229
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'key')
228
230
  # @return [Array<(ContextTypeListResponse, Integer, Hash)>] ContextTypeListResponse data, response status code and response headers
229
231
  def list_context_types_with_http_info(opts = {})
230
232
  if @api_client.config.debugging
231
233
  @api_client.config.logger.debug 'Calling API: ContextTypesApi.list_context_types ...'
232
234
  end
235
+ allowable_values = ["created_at", "-created_at", "key", "-key", "name", "-name", "updated_at", "-updated_at"]
236
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
237
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
238
+ end
233
239
  # resource path
234
240
  local_var_path = '/api/v1/context_types'
235
241
 
236
242
  # query parameters
237
243
  query_params = opts[:query_params] || {}
244
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
238
245
 
239
246
  # header parameters
240
247
  header_params = opts[:header_params] || {}
@@ -217,6 +217,7 @@ module SmplkitGeneratedClient::App
217
217
  # List all context instances for the authenticated account.
218
218
  # @param [Hash] opts the optional parameters
219
219
  # @option opts [String] :filter_context_type
220
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'key')
220
221
  # @return [ContextListResponse]
221
222
  def list_contexts(opts = {})
222
223
  data, _status_code, _headers = list_contexts_with_http_info(opts)
@@ -227,17 +228,23 @@ module SmplkitGeneratedClient::App
227
228
  # List all context instances for the authenticated account.
228
229
  # @param [Hash] opts the optional parameters
229
230
  # @option opts [String] :filter_context_type
231
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'key')
230
232
  # @return [Array<(ContextListResponse, Integer, Hash)>] ContextListResponse data, response status code and response headers
231
233
  def list_contexts_with_http_info(opts = {})
232
234
  if @api_client.config.debugging
233
235
  @api_client.config.logger.debug 'Calling API: ContextsApi.list_contexts ...'
234
236
  end
237
+ allowable_values = ["created_at", "-created_at", "key", "-key", "name", "-name", "updated_at", "-updated_at"]
238
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
239
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
240
+ end
235
241
  # resource path
236
242
  local_var_path = '/api/v1/contexts'
237
243
 
238
244
  # query parameters
239
245
  query_params = opts[:query_params] || {}
240
246
  query_params[:'filter[context_type]'] = opts[:'filter_context_type'] if !opts[:'filter_context_type'].nil?
247
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
241
248
 
242
249
  # header parameters
243
250
  header_params = opts[:header_params] || {}
@@ -282,6 +282,7 @@ module SmplkitGeneratedClient::App
282
282
  # List Environments
283
283
  # List all environments for the authenticated account.
284
284
  # @param [Hash] opts the optional parameters
285
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'name')
285
286
  # @return [EnvironmentListResponse]
286
287
  def list_environments(opts = {})
287
288
  data, _status_code, _headers = list_environments_with_http_info(opts)
@@ -291,16 +292,22 @@ module SmplkitGeneratedClient::App
291
292
  # List Environments
292
293
  # List all environments for the authenticated account.
293
294
  # @param [Hash] opts the optional parameters
295
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'name')
294
296
  # @return [Array<(EnvironmentListResponse, Integer, Hash)>] EnvironmentListResponse data, response status code and response headers
295
297
  def list_environments_with_http_info(opts = {})
296
298
  if @api_client.config.debugging
297
299
  @api_client.config.logger.debug 'Calling API: EnvironmentsApi.list_environments ...'
298
300
  end
301
+ allowable_values = ["created_at", "-created_at", "key", "-key", "name", "-name", "updated_at", "-updated_at"]
302
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
303
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
304
+ end
299
305
  # resource path
300
306
  local_var_path = '/api/v1/environments'
301
307
 
302
308
  # query parameters
303
309
  query_params = opts[:query_params] || {}
310
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
304
311
 
305
312
  # header parameters
306
313
  header_params = opts[:header_params] || {}
@@ -160,6 +160,7 @@ module SmplkitGeneratedClient::App
160
160
  # @param [Hash] opts the optional parameters
161
161
  # @option opts [String] :filter_status
162
162
  # @option opts [String] :filter_token
163
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;email&#x60;, &#x60;-email&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;. (default to '-created_at')
163
164
  # @return [InvitationListResponse]
164
165
  def list_invitations(opts = {})
165
166
  data, _status_code, _headers = list_invitations_with_http_info(opts)
@@ -171,11 +172,16 @@ module SmplkitGeneratedClient::App
171
172
  # @param [Hash] opts the optional parameters
172
173
  # @option opts [String] :filter_status
173
174
  # @option opts [String] :filter_token
175
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;email&#x60;, &#x60;-email&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;. (default to '-created_at')
174
176
  # @return [Array<(InvitationListResponse, Integer, Hash)>] InvitationListResponse data, response status code and response headers
175
177
  def list_invitations_with_http_info(opts = {})
176
178
  if @api_client.config.debugging
177
179
  @api_client.config.logger.debug 'Calling API: InvitationsApi.list_invitations ...'
178
180
  end
181
+ allowable_values = ["created_at", "-created_at", "email", "-email", "status", "-status"]
182
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
183
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
184
+ end
179
185
  # resource path
180
186
  local_var_path = '/api/v1/invitations'
181
187
 
@@ -183,6 +189,7 @@ module SmplkitGeneratedClient::App
183
189
  query_params = opts[:query_params] || {}
184
190
  query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
185
191
  query_params[:'filter[token]'] = opts[:'filter_token'] if !opts[:'filter_token'].nil?
192
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
186
193
 
187
194
  # header parameters
188
195
  header_params = opts[:header_params] || {}
@@ -88,8 +88,9 @@ module SmplkitGeneratedClient::App
88
88
  end
89
89
 
90
90
  # List Metric Names
91
- # Return distinct metric names recorded for the account, each with a representative unit. Plain-JSON response (not JSON:API) — this is metadata for discovery, not a metric resource.
91
+ # Return distinct metric names recorded for the account, each with a representative unit. Plain-JSON response (not JSON:API) — this is metadata for discovery, not a metric resource. Default sort is `name` ascending.
92
92
  # @param [Hash] opts the optional parameters
93
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;name&#x60;, &#x60;-name&#x60;. (default to 'name')
93
94
  # @return [MetricNamesResponse]
94
95
  def list_metric_names(opts = {})
95
96
  data, _status_code, _headers = list_metric_names_with_http_info(opts)
@@ -97,18 +98,24 @@ module SmplkitGeneratedClient::App
97
98
  end
98
99
 
99
100
  # List Metric Names
100
- # Return distinct metric names recorded for the account, each with a representative unit. Plain-JSON response (not JSON:API) — this is metadata for discovery, not a metric resource.
101
+ # Return distinct metric names recorded for the account, each with a representative unit. Plain-JSON response (not JSON:API) — this is metadata for discovery, not a metric resource. Default sort is &#x60;name&#x60; ascending.
101
102
  # @param [Hash] opts the optional parameters
103
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;name&#x60;, &#x60;-name&#x60;. (default to 'name')
102
104
  # @return [Array<(MetricNamesResponse, Integer, Hash)>] MetricNamesResponse data, response status code and response headers
103
105
  def list_metric_names_with_http_info(opts = {})
104
106
  if @api_client.config.debugging
105
107
  @api_client.config.logger.debug 'Calling API: MetricsApi.list_metric_names ...'
106
108
  end
109
+ allowable_values = ["name", "-name"]
110
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
111
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
112
+ end
107
113
  # resource path
108
114
  local_var_path = '/api/v1/metric_names'
109
115
 
110
116
  # query parameters
111
117
  query_params = opts[:query_params] || {}
118
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
112
119
 
113
120
  # header parameters
114
121
  header_params = opts[:header_params] || {}
@@ -150,6 +157,7 @@ module SmplkitGeneratedClient::App
150
157
  # @param filter_rollup [String]
151
158
  # @param [Hash] opts the optional parameters
152
159
  # @option opts [String] :filter_recorded_at
160
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;bucket&#x60;. Allowed values: &#x60;bucket&#x60;, &#x60;-bucket&#x60;. (default to 'bucket')
153
161
  # @return [MetricRollupListResponse]
154
162
  def list_metric_rollups(filter_name, filter_rollup, opts = {})
155
163
  data, _status_code, _headers = list_metric_rollups_with_http_info(filter_name, filter_rollup, opts)
@@ -162,6 +170,7 @@ module SmplkitGeneratedClient::App
162
170
  # @param filter_rollup [String]
163
171
  # @param [Hash] opts the optional parameters
164
172
  # @option opts [String] :filter_recorded_at
173
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;bucket&#x60;. Allowed values: &#x60;bucket&#x60;, &#x60;-bucket&#x60;. (default to 'bucket')
165
174
  # @return [Array<(MetricRollupListResponse, Integer, Hash)>] MetricRollupListResponse data, response status code and response headers
166
175
  def list_metric_rollups_with_http_info(filter_name, filter_rollup, opts = {})
167
176
  if @api_client.config.debugging
@@ -175,6 +184,10 @@ module SmplkitGeneratedClient::App
175
184
  if @api_client.config.client_side_validation && filter_rollup.nil?
176
185
  fail ArgumentError, "Missing the required parameter 'filter_rollup' when calling MetricsApi.list_metric_rollups"
177
186
  end
187
+ allowable_values = ["bucket", "-bucket"]
188
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
189
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
190
+ end
178
191
  # resource path
179
192
  local_var_path = '/api/v1/metric_rollups'
180
193
 
@@ -183,6 +196,7 @@ module SmplkitGeneratedClient::App
183
196
  query_params[:'filter[name]'] = filter_name
184
197
  query_params[:'filter[rollup]'] = filter_rollup
185
198
  query_params[:'filter[recorded_at]'] = opts[:'filter_recorded_at'] if !opts[:'filter_recorded_at'].nil?
199
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
186
200
 
187
201
  # header parameters
188
202
  header_params = opts[:header_params] || {}
@@ -223,6 +237,7 @@ module SmplkitGeneratedClient::App
223
237
  # @param filter_name [String]
224
238
  # @param [Hash] opts the optional parameters
225
239
  # @option opts [String] :filter_recorded_at
240
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-recorded_at&#x60;. Allowed values: &#x60;recorded_at&#x60;, &#x60;-recorded_at&#x60;, &#x60;value&#x60;, &#x60;-value&#x60;. (default to '-recorded_at')
226
241
  # @return [MetricListResponse]
227
242
  def list_metrics(filter_name, opts = {})
228
243
  data, _status_code, _headers = list_metrics_with_http_info(filter_name, opts)
@@ -234,6 +249,7 @@ module SmplkitGeneratedClient::App
234
249
  # @param filter_name [String]
235
250
  # @param [Hash] opts the optional parameters
236
251
  # @option opts [String] :filter_recorded_at
252
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-recorded_at&#x60;. Allowed values: &#x60;recorded_at&#x60;, &#x60;-recorded_at&#x60;, &#x60;value&#x60;, &#x60;-value&#x60;. (default to '-recorded_at')
237
253
  # @return [Array<(MetricListResponse, Integer, Hash)>] MetricListResponse data, response status code and response headers
238
254
  def list_metrics_with_http_info(filter_name, opts = {})
239
255
  if @api_client.config.debugging
@@ -243,6 +259,10 @@ module SmplkitGeneratedClient::App
243
259
  if @api_client.config.client_side_validation && filter_name.nil?
244
260
  fail ArgumentError, "Missing the required parameter 'filter_name' when calling MetricsApi.list_metrics"
245
261
  end
262
+ allowable_values = ["recorded_at", "-recorded_at", "value", "-value"]
263
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
264
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
265
+ end
246
266
  # resource path
247
267
  local_var_path = '/api/v1/metrics'
248
268
 
@@ -250,6 +270,7 @@ module SmplkitGeneratedClient::App
250
270
  query_params = opts[:query_params] || {}
251
271
  query_params[:'filter[name]'] = filter_name
252
272
  query_params[:'filter[recorded_at]'] = opts[:'filter_recorded_at'] if !opts[:'filter_recorded_at'].nil?
273
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
253
274
 
254
275
  # header parameters
255
276
  header_params = opts[:header_params] || {}
@@ -20,8 +20,9 @@ module SmplkitGeneratedClient::App
20
20
  @api_client = api_client
21
21
  end
22
22
  # List Plans
23
- # Return all plan tier definitions as JSON:API resources.
23
+ # Return all plan tier definitions as JSON:API resources. Default sort is `sort_order` ascending — the natural ladder defined in `plans.yaml`. Pass `sort=display_name` for an alphabetical view.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;sort_order&#x60;. Allowed values: &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;id&#x60;, &#x60;-id&#x60;, &#x60;sort_order&#x60;, &#x60;-sort_order&#x60;. (default to 'sort_order')
25
26
  # @return [PlanListResponse]
26
27
  def list_plans(opts = {})
27
28
  data, _status_code, _headers = list_plans_with_http_info(opts)
@@ -29,18 +30,24 @@ module SmplkitGeneratedClient::App
29
30
  end
30
31
 
31
32
  # List Plans
32
- # Return all plan tier definitions as JSON:API resources.
33
+ # Return all plan tier definitions as JSON:API resources. Default sort is &#x60;sort_order&#x60; ascending — the natural ladder defined in &#x60;plans.yaml&#x60;. Pass &#x60;sort&#x3D;display_name&#x60; for an alphabetical view.
33
34
  # @param [Hash] opts the optional parameters
35
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;sort_order&#x60;. Allowed values: &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;id&#x60;, &#x60;-id&#x60;, &#x60;sort_order&#x60;, &#x60;-sort_order&#x60;. (default to 'sort_order')
34
36
  # @return [Array<(PlanListResponse, Integer, Hash)>] PlanListResponse data, response status code and response headers
35
37
  def list_plans_with_http_info(opts = {})
36
38
  if @api_client.config.debugging
37
39
  @api_client.config.logger.debug 'Calling API: PlansApi.list_plans ...'
38
40
  end
41
+ allowable_values = ["display_name", "-display_name", "id", "-id", "sort_order", "-sort_order"]
42
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
43
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
44
+ end
39
45
  # resource path
40
46
  local_var_path = '/api/v1/plans'
41
47
 
42
48
  # query parameters
43
49
  query_params = opts[:query_params] || {}
50
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
44
51
 
45
52
  # header parameters
46
53
  header_params = opts[:header_params] || {}
@@ -20,8 +20,9 @@ module SmplkitGeneratedClient::App
20
20
  @api_client = api_client
21
21
  end
22
22
  # List Products
23
- # Return all flag-enabled products with their plans, limits, and marketing content.
23
+ # Return all flag-enabled products with their plans, limits, and marketing content. Default sort is `display_name` ascending.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;display_name&#x60;. Allowed values: &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;id&#x60;, &#x60;-id&#x60;. (default to 'display_name')
25
26
  # @return [ProductListResponse]
26
27
  def list_products(opts = {})
27
28
  data, _status_code, _headers = list_products_with_http_info(opts)
@@ -29,18 +30,24 @@ module SmplkitGeneratedClient::App
29
30
  end
30
31
 
31
32
  # List Products
32
- # Return all flag-enabled products with their plans, limits, and marketing content.
33
+ # Return all flag-enabled products with their plans, limits, and marketing content. Default sort is &#x60;display_name&#x60; ascending.
33
34
  # @param [Hash] opts the optional parameters
35
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;display_name&#x60;. Allowed values: &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;id&#x60;, &#x60;-id&#x60;. (default to 'display_name')
34
36
  # @return [Array<(ProductListResponse, Integer, Hash)>] ProductListResponse data, response status code and response headers
35
37
  def list_products_with_http_info(opts = {})
36
38
  if @api_client.config.debugging
37
39
  @api_client.config.logger.debug 'Calling API: ProductsApi.list_products ...'
38
40
  end
41
+ allowable_values = ["display_name", "-display_name", "id", "-id"]
42
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
43
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
44
+ end
39
45
  # resource path
40
46
  local_var_path = '/api/v1/products'
41
47
 
42
48
  # query parameters
43
49
  query_params = opts[:query_params] || {}
50
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
44
51
 
45
52
  # header parameters
46
53
  header_params = opts[:header_params] || {}
@@ -216,6 +216,7 @@ module SmplkitGeneratedClient::App
216
216
  # List Services
217
217
  # List all services for the authenticated account.
218
218
  # @param [Hash] opts the optional parameters
219
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'name')
219
220
  # @return [ServiceListResponse]
220
221
  def list_services(opts = {})
221
222
  data, _status_code, _headers = list_services_with_http_info(opts)
@@ -225,16 +226,22 @@ module SmplkitGeneratedClient::App
225
226
  # List Services
226
227
  # List all services for the authenticated account.
227
228
  # @param [Hash] opts the optional parameters
229
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'name')
228
230
  # @return [Array<(ServiceListResponse, Integer, Hash)>] ServiceListResponse data, response status code and response headers
229
231
  def list_services_with_http_info(opts = {})
230
232
  if @api_client.config.debugging
231
233
  @api_client.config.logger.debug 'Calling API: ServicesApi.list_services ...'
232
234
  end
235
+ allowable_values = ["created_at", "-created_at", "key", "-key", "name", "-name", "updated_at", "-updated_at"]
236
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
237
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
238
+ end
233
239
  # resource path
234
240
  local_var_path = '/api/v1/services'
235
241
 
236
242
  # query parameters
237
243
  query_params = opts[:query_params] || {}
244
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
238
245
 
239
246
  # header parameters
240
247
  header_params = opts[:header_params] || {}
@@ -204,6 +204,7 @@ module SmplkitGeneratedClient::App
204
204
  # @option opts [String] :filter_search Case-insensitive substring match against display_name and email. If the value is a valid UUID, also matches user id exactly.
205
205
  # @option opts [Integer] :page_number 1-based page number (default to 1)
206
206
  # @option opts [Integer] :page_size Items per page (default to 50)
207
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;email&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;email&#x60;, &#x60;-email&#x60;. (default to 'email')
207
208
  # @return [UserListResponse]
208
209
  def list_users(opts = {})
209
210
  data, _status_code, _headers = list_users_with_http_info(opts)
@@ -218,6 +219,7 @@ module SmplkitGeneratedClient::App
218
219
  # @option opts [String] :filter_search Case-insensitive substring match against display_name and email. If the value is a valid UUID, also matches user id exactly.
219
220
  # @option opts [Integer] :page_number 1-based page number (default to 1)
220
221
  # @option opts [Integer] :page_size Items per page (default to 50)
222
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;email&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;email&#x60;, &#x60;-email&#x60;. (default to 'email')
221
223
  # @return [Array<(UserListResponse, Integer, Hash)>] UserListResponse data, response status code and response headers
222
224
  def list_users_with_http_info(opts = {})
223
225
  if @api_client.config.debugging
@@ -235,6 +237,10 @@ module SmplkitGeneratedClient::App
235
237
  fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling UsersApi.list_users, must be greater than or equal to 1.'
236
238
  end
237
239
 
240
+ allowable_values = ["created_at", "-created_at", "display_name", "-display_name", "email", "-email"]
241
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
242
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
243
+ end
238
244
  # resource path
239
245
  local_var_path = '/api/v1/users'
240
246
 
@@ -245,6 +251,7 @@ module SmplkitGeneratedClient::App
245
251
  query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
246
252
  query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
247
253
  query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
254
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
248
255
 
249
256
  # header parameters
250
257
  header_params = opts[:header_params] || {}
@@ -73,6 +73,7 @@ describe 'APIKeysApi' do
73
73
  # List all API keys for the authenticated account.
74
74
  # @param [Hash] opts the optional parameters
75
75
  # @option opts [String] :filter_status
76
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;expires_at&#x60;, &#x60;-expires_at&#x60;, &#x60;last_used_at&#x60;, &#x60;-last_used_at&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;.
76
77
  # @return [ApiKeyListResponse]
77
78
  describe 'list_api_keys test' do
78
79
  it 'should work' do
@@ -130,8 +130,9 @@ describe 'BillingApi' do
130
130
 
131
131
  # unit tests for list_invoices
132
132
  # List Invoices
133
- # Return invoice history for the account from Stripe.
133
+ # Return invoice history for the account from Stripe. Default sort is &#x60;-created_at&#x60; (newest first).
134
134
  # @param [Hash] opts the optional parameters
135
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;, &#x60;total&#x60;, &#x60;-total&#x60;.
135
136
  # @return [InvoiceListResponse]
136
137
  describe 'list_invoices test' do
137
138
  it 'should work' do
@@ -143,6 +144,7 @@ describe 'BillingApi' do
143
144
  # List Payment Methods
144
145
  # List all payment methods for the account. Default is returned first, then newest first.
145
146
  # @param [Hash] opts the optional parameters
147
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;exp_year&#x60;, &#x60;-exp_year&#x60;, &#x60;is_default&#x60;, &#x60;-is_default&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
146
148
  # @return [PaymentMethodListResponse]
147
149
  describe 'list_payment_methods test' do
148
150
  it 'should work' do
@@ -152,8 +154,9 @@ describe 'BillingApi' do
152
154
 
153
155
  # unit tests for list_subscriptions
154
156
  # List Subscriptions
155
- # Return subscription rows for the authenticated account.
157
+ # Return subscription rows for the authenticated account. Default sort is &#x60;product&#x60; ascending.
156
158
  # @param [Hash] opts the optional parameters
159
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;product&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;plan&#x60;, &#x60;-plan&#x60;, &#x60;product&#x60;, &#x60;-product&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;.
157
160
  # @return [SubscriptionListResponse]
158
161
  describe 'list_subscriptions test' do
159
162
  it 'should work' do
@@ -72,6 +72,7 @@ describe 'ContextTypesApi' do
72
72
  # List Context Types
73
73
  # List all context types for the authenticated account.
74
74
  # @param [Hash] opts the optional parameters
75
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
75
76
  # @return [ContextTypeListResponse]
76
77
  describe 'list_context_types test' do
77
78
  it 'should work' do
@@ -73,6 +73,7 @@ describe 'ContextsApi' do
73
73
  # List all context instances for the authenticated account.
74
74
  # @param [Hash] opts the optional parameters
75
75
  # @option opts [String] :filter_context_type
76
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
76
77
  # @return [ContextListResponse]
77
78
  describe 'list_contexts test' do
78
79
  it 'should work' do
@@ -85,6 +85,7 @@ describe 'EnvironmentsApi' do
85
85
  # List Environments
86
86
  # List all environments for the authenticated account.
87
87
  # @param [Hash] opts the optional parameters
88
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
88
89
  # @return [EnvironmentListResponse]
89
90
  describe 'list_environments test' do
90
91
  it 'should work' do
@@ -62,6 +62,7 @@ describe 'InvitationsApi' do
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [String] :filter_status
64
64
  # @option opts [String] :filter_token
65
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;email&#x60;, &#x60;-email&#x60;, &#x60;status&#x60;, &#x60;-status&#x60;.
65
66
  # @return [InvitationListResponse]
66
67
  describe 'list_invitations test' do
67
68
  it 'should work' do
@@ -46,8 +46,9 @@ describe 'MetricsApi' do
46
46
 
47
47
  # unit tests for list_metric_names
48
48
  # List Metric Names
49
- # Return distinct metric names recorded for the account, each with a representative unit. Plain-JSON response (not JSON:API) — this is metadata for discovery, not a metric resource.
49
+ # Return distinct metric names recorded for the account, each with a representative unit. Plain-JSON response (not JSON:API) — this is metadata for discovery, not a metric resource. Default sort is &#x60;name&#x60; ascending.
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;name&#x60;, &#x60;-name&#x60;.
51
52
  # @return [MetricNamesResponse]
52
53
  describe 'list_metric_names test' do
53
54
  it 'should work' do
@@ -62,6 +63,7 @@ describe 'MetricsApi' do
62
63
  # @param filter_rollup
63
64
  # @param [Hash] opts the optional parameters
64
65
  # @option opts [String] :filter_recorded_at
66
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;bucket&#x60;. Allowed values: &#x60;bucket&#x60;, &#x60;-bucket&#x60;.
65
67
  # @return [MetricRollupListResponse]
66
68
  describe 'list_metric_rollups test' do
67
69
  it 'should work' do
@@ -75,6 +77,7 @@ describe 'MetricsApi' do
75
77
  # @param filter_name
76
78
  # @param [Hash] opts the optional parameters
77
79
  # @option opts [String] :filter_recorded_at
80
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-recorded_at&#x60;. Allowed values: &#x60;recorded_at&#x60;, &#x60;-recorded_at&#x60;, &#x60;value&#x60;, &#x60;-value&#x60;.
78
81
  # @return [MetricListResponse]
79
82
  describe 'list_metrics test' do
80
83
  it 'should work' do
@@ -34,8 +34,9 @@ describe 'PlansApi' do
34
34
 
35
35
  # unit tests for list_plans
36
36
  # List Plans
37
- # Return all plan tier definitions as JSON:API resources.
37
+ # Return all plan tier definitions as JSON:API resources. Default sort is &#x60;sort_order&#x60; ascending — the natural ladder defined in &#x60;plans.yaml&#x60;. Pass &#x60;sort&#x3D;display_name&#x60; for an alphabetical view.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;sort_order&#x60;. Allowed values: &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;id&#x60;, &#x60;-id&#x60;, &#x60;sort_order&#x60;, &#x60;-sort_order&#x60;.
39
40
  # @return [PlanListResponse]
40
41
  describe 'list_plans test' do
41
42
  it 'should work' do
@@ -34,8 +34,9 @@ describe 'ProductsApi' do
34
34
 
35
35
  # unit tests for list_products
36
36
  # List Products
37
- # Return all flag-enabled products with their plans, limits, and marketing content.
37
+ # Return all flag-enabled products with their plans, limits, and marketing content. Default sort is &#x60;display_name&#x60; ascending.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;display_name&#x60;. Allowed values: &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;id&#x60;, &#x60;-id&#x60;.
39
40
  # @return [ProductListResponse]
40
41
  describe 'list_products test' do
41
42
  it 'should work' do
@@ -72,6 +72,7 @@ describe 'ServicesApi' do
72
72
  # List Services
73
73
  # List all services for the authenticated account.
74
74
  # @param [Hash] opts the optional parameters
75
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
75
76
  # @return [ServiceListResponse]
76
77
  describe 'list_services test' do
77
78
  it 'should work' do
@@ -75,6 +75,7 @@ describe 'UsersApi' do
75
75
  # @option opts [String] :filter_search Case-insensitive substring match against display_name and email. If the value is a valid UUID, also matches user id exactly.
76
76
  # @option opts [Integer] :page_number 1-based page number
77
77
  # @option opts [Integer] :page_size Items per page
78
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;email&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;display_name&#x60;, &#x60;-display_name&#x60;, &#x60;email&#x60;, &#x60;-email&#x60;.
78
79
  # @return [UserListResponse]
79
80
  describe 'list_users test' do
80
81
  it 'should work' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.7
4
+ version: 3.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC