factpulse 2.0.24 → 2.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33ebbca3dae5929d49676e2637697e2c3e57aa19e3ecc45f6883f94e9e0ece4e
4
- data.tar.gz: 1e59f58354db3139b44166ad7a86c0d1d394db235ab0c4e689933f8b16eded14
3
+ metadata.gz: f98b579fa0a6f126d9e59afde75552aa8f4bb88b0d71e972164c9b7b21a8cacb
4
+ data.tar.gz: ebebf856eff054b0a9ecbc58e92547d2d0f4934534bad343e033a386c4001227
5
5
  SHA512:
6
- metadata.gz: 8beaed986864f2c68631f3564819554d69b52cb091e7a5e2b1a6d86524f44986af98f43c28e8b97403d1cf794c7df611726fcd53fe7c83242c8f224c530b9fb9
7
- data.tar.gz: 0d9d5b8cb2f3fc9e50c98d31de37ba7a091476676713991320e54d2a3d933fecb803d7603185f2ad8c7e731ddfd5bf662c292639209a8e2e3911e775eae0a45e
6
+ metadata.gz: 858914fd136ba325391859e008e152aac88ce517e057eb1f23220157a5e81c4c1a88b28e2be9384bd55cc15f0f13c5b8ddcf4d2ad4115c399b85daabe0e77b2c
7
+ data.tar.gz: 2620fdcd018ddbf225ba98f18ff1f166c98e399bb358344cc7ea0be10eb5e8104740e5f10300b118064fb8a4f8c8569ab7de5cb5e714bfe96c52ee6d754122fd
data/CHANGELOG.md CHANGED
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [2.0.24] - 2025-11-27
10
+ ## [2.0.25] - 2025-11-27
11
11
 
12
12
  ### Added
13
13
  - Version initiale du SDK ruby
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
24
24
  - Guide d'authentification JWT
25
25
  - Configuration avancée (timeout, proxy, debug)
26
26
 
27
- [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v2.0.24...HEAD
28
- [2.0.24]: https://github.com/factpulse/sdk-ruby/releases/tag/v2.0.24
27
+ [Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v2.0.25...HEAD
28
+ [2.0.25]: https://github.com/factpulse/sdk-ruby/releases/tag/v2.0.25
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factpulse (2.0.24)
4
+ factpulse (2.0.25)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -4,9 +4,76 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**get_afnor_credentials_api_v1_afnor_credentials_get**](AFNORPDPPAApi.md#get_afnor_credentials_api_v1_afnor_credentials_get) | **GET** /api/v1/afnor/credentials | Récupérer les credentials AFNOR stockés |
7
8
  | [**oauth_token_proxy_api_v1_afnor_oauth_token_post**](AFNORPDPPAApi.md#oauth_token_proxy_api_v1_afnor_oauth_token_post) | **POST** /api/v1/afnor/oauth/token | Endpoint OAuth2 pour authentification AFNOR |
8
9
 
9
10
 
11
+ ## get_afnor_credentials_api_v1_afnor_credentials_get
12
+
13
+ > Object get_afnor_credentials_api_v1_afnor_credentials_get
14
+
15
+ Récupérer les credentials AFNOR stockés
16
+
17
+ Récupère les credentials AFNOR/PDP stockés pour le client_uid du JWT. Cet endpoint est utilisé par le SDK en mode 'stored' pour récupérer les credentials avant de faire l'OAuth AFNOR lui-même.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'factpulse'
24
+ # setup authorization
25
+ FactPulse.configure do |config|
26
+ # Configure Bearer authorization: HTTPBearer
27
+ config.access_token = 'YOUR_BEARER_TOKEN'
28
+ end
29
+
30
+ api_instance = FactPulse::AFNORPDPPAApi.new
31
+
32
+ begin
33
+ # Récupérer les credentials AFNOR stockés
34
+ result = api_instance.get_afnor_credentials_api_v1_afnor_credentials_get
35
+ p result
36
+ rescue FactPulse::ApiError => e
37
+ puts "Error when calling AFNORPDPPAApi->get_afnor_credentials_api_v1_afnor_credentials_get: #{e}"
38
+ end
39
+ ```
40
+
41
+ #### Using the get_afnor_credentials_api_v1_afnor_credentials_get_with_http_info variant
42
+
43
+ This returns an Array which contains the response data, status code and headers.
44
+
45
+ > <Array(Object, Integer, Hash)> get_afnor_credentials_api_v1_afnor_credentials_get_with_http_info
46
+
47
+ ```ruby
48
+ begin
49
+ # Récupérer les credentials AFNOR stockés
50
+ data, status_code, headers = api_instance.get_afnor_credentials_api_v1_afnor_credentials_get_with_http_info
51
+ p status_code # => 2xx
52
+ p headers # => { ... }
53
+ p data # => Object
54
+ rescue FactPulse::ApiError => e
55
+ puts "Error when calling AFNORPDPPAApi->get_afnor_credentials_api_v1_afnor_credentials_get_with_http_info: #{e}"
56
+ end
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ This endpoint does not need any parameter.
62
+
63
+ ### Return type
64
+
65
+ **Object**
66
+
67
+ ### Authorization
68
+
69
+ [HTTPBearer](../README.md#HTTPBearer)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: application/json
75
+
76
+
10
77
  ## oauth_token_proxy_api_v1_afnor_oauth_token_post
11
78
 
12
79
  > Object oauth_token_proxy_api_v1_afnor_oauth_token_post
@@ -19,6 +19,63 @@ module FactPulse
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Récupérer les credentials AFNOR stockés
23
+ # Récupère les credentials AFNOR/PDP stockés pour le client_uid du JWT. Cet endpoint est utilisé par le SDK en mode 'stored' pour récupérer les credentials avant de faire l'OAuth AFNOR lui-même.
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [Object]
26
+ def get_afnor_credentials_api_v1_afnor_credentials_get(opts = {})
27
+ data, _status_code, _headers = get_afnor_credentials_api_v1_afnor_credentials_get_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Récupérer les credentials AFNOR stockés
32
+ # Récupère les credentials AFNOR/PDP stockés pour le client_uid du JWT. Cet endpoint est utilisé par le SDK en mode &#39;stored&#39; pour récupérer les credentials avant de faire l&#39;OAuth AFNOR lui-même.
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
35
+ def get_afnor_credentials_api_v1_afnor_credentials_get_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: AFNORPDPPAApi.get_afnor_credentials_api_v1_afnor_credentials_get ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/api/v1/afnor/credentials'
41
+
42
+ # query parameters
43
+ query_params = opts[:query_params] || {}
44
+
45
+ # header parameters
46
+ header_params = opts[:header_params] || {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
49
+
50
+ # form parameters
51
+ form_params = opts[:form_params] || {}
52
+
53
+ # http body (model)
54
+ post_body = opts[:debug_body]
55
+
56
+ # return_type
57
+ return_type = opts[:debug_return_type] || 'Object'
58
+
59
+ # auth_names
60
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
61
+
62
+ new_options = opts.merge(
63
+ :operation => :"AFNORPDPPAApi.get_afnor_credentials_api_v1_afnor_credentials_get",
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => return_type
70
+ )
71
+
72
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: AFNORPDPPAApi#get_afnor_credentials_api_v1_afnor_credentials_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
22
79
  # Endpoint OAuth2 pour authentification AFNOR
23
80
  # Endpoint proxy OAuth2 pour obtenir un token d'accès AFNOR. Fait proxy vers le mock AFNOR (sandbox) ou la vraie PDP selon MOCK_AFNOR_BASE_URL. Cet endpoint est public (pas d'auth Django requise) car il est appelé par le SDK AFNOR.
24
81
  # @param [Hash] opts the optional parameters
@@ -11,5 +11,5 @@ Generator version: 7.18.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module FactPulse
14
- VERSION = '2.0.24'
14
+ VERSION = '2.0.25'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factpulse
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.24
4
+ version: 2.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator