trinsic_service_clients 1.1.4229 → 1.1.5018

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/credentials/credentials_client.rb +288 -16
  3. data/lib/generated/credentials/models/agent_endpoint.rb +0 -3
  4. data/lib/generated/credentials/models/attribute_filter.rb +8 -8
  5. data/lib/generated/credentials/models/basic_message_record.rb +30 -32
  6. data/lib/generated/credentials/models/credential_contract.rb +11 -0
  7. data/lib/generated/credentials/models/credential_definition_from_schema_parameters.rb +23 -23
  8. data/lib/generated/credentials/models/credential_offer_parameters.rb +3 -1
  9. data/lib/generated/credentials/models/proof_attribute_info.rb +1 -1
  10. data/lib/generated/credentials/models/proof_predicate_info.rb +23 -23
  11. data/lib/generated/credentials/models/proof_request.rb +3 -3
  12. data/lib/generated/credentials/models/schema_record.rb +33 -35
  13. data/lib/generated/credentials/models/tenant_parameters.rb +28 -7
  14. data/lib/generated/credentials/models/verification_policy_contract.rb +11 -11
  15. data/lib/generated/credentials/models/verification_policy_revocation_requirement.rb +11 -0
  16. data/lib/generated/credentials/version.rb +1 -1
  17. data/lib/generated/provider/models/tenant_contract.rb +12 -0
  18. data/lib/generated/provider/models/tenant_parameters.rb +11 -0
  19. data/lib/generated/provider/provider_client.rb +502 -1
  20. data/lib/generated/provider/version.rb +1 -1
  21. data/lib/generated/wallet.rb +10 -9
  22. data/lib/generated/wallet/models/agent_endpoint.rb +0 -3
  23. data/lib/generated/wallet/models/credential_contract.rb +11 -0
  24. data/lib/generated/wallet/models/verification_data_policy_credential_parameters.rb +65 -0
  25. data/lib/generated/wallet/models/verification_policy_attribute_contract.rb +1 -1
  26. data/lib/generated/wallet/models/verification_policy_parameters.rb +2 -2
  27. data/lib/generated/wallet/models/{verification_policy_revocation_reqirement.rb → verification_policy_revocation_requirement.rb} +15 -4
  28. data/lib/generated/wallet/version.rb +1 -1
  29. data/lib/generated/wallet/wallet_client.rb +574 -13
  30. data/trinsic_service_clients.gemspec +1 -1
  31. metadata +8 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52dafb4f81ffe928b65f63a867c5c22587ea89548e76a4926095d05481f88d02
4
- data.tar.gz: 799893fe0fe72a88089211aaceefeb4adf0577168ef985821f23a0f807279277
3
+ metadata.gz: 3af02e90f889e550d92bcb13c9ea65833262a171ab7d10d09c8cb8f324c6777c
4
+ data.tar.gz: dba6154eeef12e09b28ae31602105f5e934809f38f15718aaac7da6b68eb18df
5
5
  SHA512:
6
- metadata.gz: 70b83956483a8336f81598b2d1fbd1472b7d7c87a6b1e7510c9de0995071fa6ce7aa6bf0de394b21038c93211e17a3b12c307589edb3292102f61e112126230c
7
- data.tar.gz: 6f82ccb067a6e589e34781e3aa371d453140b3bbc3c4b304e1fc1c29e0711a887ae82469ed3617aa97546135a946818104582e6840591acd2b35901c22a1bf2f
6
+ metadata.gz: ba04338185cba42c1203635f62669e0c9ccce6c08dd503243625c68b87d91c9092abc57c98c2034a10231e3f07e23b55e3949bcec3b03d0122eea89050e26b24
7
+ data.tar.gz: 98dcfcdd397c574026805b68548ab886ef0b3e41c2696022b739e1e9bbc42ef7d67b2110499a115c227900a99bb5be2af602858661a3b92eed975f49b9a20637
@@ -96,9 +96,9 @@ module Credentials
96
96
  # Please use the Provider API instead.
97
97
  # Upload an image and return a URL with the static remote location.
98
98
  #
99
- # @param uploaded_files
100
- # @param filename [String]
101
- # @param content_type [String]
99
+ # @param uploaded_files The uploaded files
100
+ # @param filename [String] The filename
101
+ # @param content_type [String] Type of the image content
102
102
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
103
103
  # will be added to the HTTP request.
104
104
  #
@@ -115,9 +115,9 @@ module Credentials
115
115
  # Please use the Provider API instead.
116
116
  # Upload an image and return a URL with the static remote location.
117
117
  #
118
- # @param uploaded_files
119
- # @param filename [String]
120
- # @param content_type [String]
118
+ # @param uploaded_files The uploaded files
119
+ # @param filename [String] The filename
120
+ # @param content_type [String] Type of the image content
121
121
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
122
122
  # will be added to the HTTP request.
123
123
  #
@@ -133,9 +133,9 @@ module Credentials
133
133
  # Please use the Provider API instead.
134
134
  # Upload an image and return a URL with the static remote location.
135
135
  #
136
- # @param uploaded_files
137
- # @param filename [String]
138
- # @param content_type [String]
136
+ # @param uploaded_files The uploaded files
137
+ # @param filename [String] The filename
138
+ # @param content_type [String] Type of the image content
139
139
  # @param [Hash{String => String}] A hash of custom headers that will be added
140
140
  # to the HTTP request.
141
141
  #
@@ -200,8 +200,9 @@ module Credentials
200
200
  end
201
201
 
202
202
  #
203
- # List all ledger networks
203
+ # [Deprecated] List all ledger networks
204
204
  #
205
+ # Please use the Provider API instead.
205
206
  # List all available ledger networks.
206
207
  # Some networks are not available based on your subscription.
207
208
  #
@@ -216,8 +217,9 @@ module Credentials
216
217
  end
217
218
 
218
219
  #
219
- # List all ledger networks
220
+ # [Deprecated] List all ledger networks
220
221
  #
222
+ # Please use the Provider API instead.
221
223
  # List all available ledger networks.
222
224
  # Some networks are not available based on your subscription.
223
225
  #
@@ -231,8 +233,9 @@ module Credentials
231
233
  end
232
234
 
233
235
  #
234
- # List all ledger networks
236
+ # [Deprecated] List all ledger networks
235
237
  #
238
+ # Please use the Provider API instead.
236
239
  # List all available ledger networks.
237
240
  # Some networks are not available based on your subscription.
238
241
  #
@@ -2785,6 +2788,275 @@ module Credentials
2785
2788
  promise.execute
2786
2789
  end
2787
2790
 
2791
+ #
2792
+ # Send message
2793
+ #
2794
+ # Send a message from the specified message parameters.
2795
+ #
2796
+ # @param body [BasicMessageParameters] The message parameters
2797
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2798
+ # will be added to the HTTP request.
2799
+ #
2800
+ #
2801
+ def send_message(body, custom_headers:nil)
2802
+ response = send_message_async(body, custom_headers:custom_headers).value!
2803
+ nil
2804
+ end
2805
+
2806
+ #
2807
+ # Send message
2808
+ #
2809
+ # Send a message from the specified message parameters.
2810
+ #
2811
+ # @param body [BasicMessageParameters] The message parameters
2812
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2813
+ # will be added to the HTTP request.
2814
+ #
2815
+ # @return [MsRest::HttpOperationResponse] HTTP response information.
2816
+ #
2817
+ def send_message_with_http_info(body, custom_headers:nil)
2818
+ send_message_async(body, custom_headers:custom_headers).value!
2819
+ end
2820
+
2821
+ #
2822
+ # Send message
2823
+ #
2824
+ # Send a message from the specified message parameters.
2825
+ #
2826
+ # @param body [BasicMessageParameters] The message parameters
2827
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2828
+ # to the HTTP request.
2829
+ #
2830
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2831
+ #
2832
+ def send_message_async(body, custom_headers:nil)
2833
+ fail ArgumentError, 'body is nil' if body.nil?
2834
+
2835
+
2836
+ request_headers = {}
2837
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2838
+
2839
+ # Serialize Request
2840
+ request_mapper = Credentials::Models::BasicMessageParameters.mapper()
2841
+ request_content = self.serialize(request_mapper, body)
2842
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2843
+
2844
+ path_template = 'messages'
2845
+
2846
+ request_url = @base_url || self.base_url
2847
+
2848
+ options = {
2849
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2850
+ body: request_content,
2851
+ headers: request_headers.merge(custom_headers || {}),
2852
+ base_url: request_url
2853
+ }
2854
+ promise = self.make_request_async(:post, path_template, options)
2855
+
2856
+ promise = promise.then do |result|
2857
+ http_response = result.response
2858
+ status_code = http_response.status
2859
+ response_content = http_response.body
2860
+ unless status_code == 200
2861
+ error_model = JSON.load(response_content)
2862
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2863
+ end
2864
+
2865
+
2866
+ result
2867
+ end
2868
+
2869
+ promise.execute
2870
+ end
2871
+
2872
+ #
2873
+ # List all messages for connection
2874
+ #
2875
+ # List all messages for the specified connection.
2876
+ #
2877
+ # @param connection_id [String] The connection identifier
2878
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2879
+ # will be added to the HTTP request.
2880
+ #
2881
+ # @return [Array] operation results.
2882
+ #
2883
+ def list_messages(connection_id, custom_headers:nil)
2884
+ response = list_messages_async(connection_id, custom_headers:custom_headers).value!
2885
+ response.body unless response.nil?
2886
+ end
2887
+
2888
+ #
2889
+ # List all messages for connection
2890
+ #
2891
+ # List all messages for the specified connection.
2892
+ #
2893
+ # @param connection_id [String] The connection identifier
2894
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2895
+ # will be added to the HTTP request.
2896
+ #
2897
+ # @return [MsRest::HttpOperationResponse] HTTP response information.
2898
+ #
2899
+ def list_messages_with_http_info(connection_id, custom_headers:nil)
2900
+ list_messages_async(connection_id, custom_headers:custom_headers).value!
2901
+ end
2902
+
2903
+ #
2904
+ # List all messages for connection
2905
+ #
2906
+ # List all messages for the specified connection.
2907
+ #
2908
+ # @param connection_id [String] The connection identifier
2909
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2910
+ # to the HTTP request.
2911
+ #
2912
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2913
+ #
2914
+ def list_messages_async(connection_id, custom_headers:nil)
2915
+ fail ArgumentError, 'connection_id is nil' if connection_id.nil?
2916
+
2917
+
2918
+ request_headers = {}
2919
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2920
+ path_template = 'messages/connection/{connectionId}'
2921
+
2922
+ request_url = @base_url || self.base_url
2923
+
2924
+ options = {
2925
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2926
+ path_params: {'connectionId' => connection_id},
2927
+ headers: request_headers.merge(custom_headers || {}),
2928
+ base_url: request_url
2929
+ }
2930
+ promise = self.make_request_async(:get, path_template, options)
2931
+
2932
+ promise = promise.then do |result|
2933
+ http_response = result.response
2934
+ status_code = http_response.status
2935
+ response_content = http_response.body
2936
+ unless status_code == 200
2937
+ error_model = JSON.load(response_content)
2938
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2939
+ end
2940
+
2941
+ # Deserialize Response
2942
+ if status_code == 200
2943
+ begin
2944
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2945
+ result_mapper = {
2946
+ client_side_validation: true,
2947
+ required: false,
2948
+ serialized_name: 'parsed_response',
2949
+ type: {
2950
+ name: 'Sequence',
2951
+ element: {
2952
+ client_side_validation: true,
2953
+ required: false,
2954
+ serialized_name: 'BasicMessageRecordElementType',
2955
+ type: {
2956
+ name: 'Composite',
2957
+ class_name: 'BasicMessageRecord'
2958
+ }
2959
+ }
2960
+ }
2961
+ }
2962
+ result.body = self.deserialize(result_mapper, parsed_response)
2963
+ rescue Exception => e
2964
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2965
+ end
2966
+ end
2967
+
2968
+ result
2969
+ end
2970
+
2971
+ promise.execute
2972
+ end
2973
+
2974
+ #
2975
+ # Get message
2976
+ #
2977
+ # Get the details for the specified message.
2978
+ #
2979
+ # @param message_id [String] The message identifier
2980
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2981
+ # will be added to the HTTP request.
2982
+ #
2983
+ # @return [BasicMessageContract] operation results.
2984
+ #
2985
+ def get_message(message_id, custom_headers:nil)
2986
+ response = get_message_async(message_id, custom_headers:custom_headers).value!
2987
+ response.body unless response.nil?
2988
+ end
2989
+
2990
+ #
2991
+ # Get message
2992
+ #
2993
+ # Get the details for the specified message.
2994
+ #
2995
+ # @param message_id [String] The message identifier
2996
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2997
+ # will be added to the HTTP request.
2998
+ #
2999
+ # @return [MsRest::HttpOperationResponse] HTTP response information.
3000
+ #
3001
+ def get_message_with_http_info(message_id, custom_headers:nil)
3002
+ get_message_async(message_id, custom_headers:custom_headers).value!
3003
+ end
3004
+
3005
+ #
3006
+ # Get message
3007
+ #
3008
+ # Get the details for the specified message.
3009
+ #
3010
+ # @param message_id [String] The message identifier
3011
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3012
+ # to the HTTP request.
3013
+ #
3014
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3015
+ #
3016
+ def get_message_async(message_id, custom_headers:nil)
3017
+ fail ArgumentError, 'message_id is nil' if message_id.nil?
3018
+
3019
+
3020
+ request_headers = {}
3021
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3022
+ path_template = 'messages/{messageId}'
3023
+
3024
+ request_url = @base_url || self.base_url
3025
+
3026
+ options = {
3027
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3028
+ path_params: {'messageId' => message_id},
3029
+ headers: request_headers.merge(custom_headers || {}),
3030
+ base_url: request_url
3031
+ }
3032
+ promise = self.make_request_async(:get, path_template, options)
3033
+
3034
+ promise = promise.then do |result|
3035
+ http_response = result.response
3036
+ status_code = http_response.status
3037
+ response_content = http_response.body
3038
+ unless status_code == 200
3039
+ error_model = JSON.load(response_content)
3040
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3041
+ end
3042
+
3043
+ # Deserialize Response
3044
+ if status_code == 200
3045
+ begin
3046
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3047
+ result_mapper = Credentials::Models::BasicMessageContract.mapper()
3048
+ result.body = self.deserialize(result_mapper, parsed_response)
3049
+ rescue Exception => e
3050
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3051
+ end
3052
+ end
3053
+
3054
+ result
3055
+ end
3056
+
3057
+ promise.execute
3058
+ end
3059
+
2788
3060
  #
2789
3061
  # [Deprecated] List all tenants
2790
3062
  #
@@ -2984,7 +3256,7 @@ module Credentials
2984
3256
  end
2985
3257
 
2986
3258
  #
2987
- # [Deprecated] Get tenant
3259
+ # [Deprectaed] Get tenant
2988
3260
  #
2989
3261
  # Please use the Provider API instead.
2990
3262
  # Get the configuration for the specified tenant.
@@ -3001,7 +3273,7 @@ module Credentials
3001
3273
  end
3002
3274
 
3003
3275
  #
3004
- # [Deprecated] Get tenant
3276
+ # [Deprectaed] Get tenant
3005
3277
  #
3006
3278
  # Please use the Provider API instead.
3007
3279
  # Get the configuration for the specified tenant.
@@ -3017,7 +3289,7 @@ module Credentials
3017
3289
  end
3018
3290
 
3019
3291
  #
3020
- # [Deprecated] Get tenant
3292
+ # [Deprectaed] Get tenant
3021
3293
  #
3022
3294
  # Please use the Provider API instead.
3023
3295
  # Get the configuration for the specified tenant.
@@ -4695,7 +4967,7 @@ module Credentials
4695
4967
  #
4696
4968
  def add_telemetry
4697
4969
  sdk_information = 'credentials'
4698
- sdk_information = "#{sdk_information}/1.1.4229"
4970
+ sdk_information = "#{sdk_information}/1.1.5018"
4699
4971
  add_user_agent_information(sdk_information)
4700
4972
  end
4701
4973
  end
@@ -36,7 +36,6 @@ module Credentials
36
36
  did: {
37
37
  client_side_validation: true,
38
38
  required: false,
39
- read_only: true,
40
39
  serialized_name: 'did',
41
40
  type: {
42
41
  name: 'String'
@@ -45,7 +44,6 @@ module Credentials
45
44
  verkey: {
46
45
  client_side_validation: true,
47
46
  required: false,
48
- read_only: true,
49
47
  serialized_name: 'verkey',
50
48
  type: {
51
49
  name: 'Sequence',
@@ -62,7 +60,6 @@ module Credentials
62
60
  uri: {
63
61
  client_side_validation: true,
64
62
  required: false,
65
- read_only: true,
66
63
  serialized_name: 'uri',
67
64
  type: {
68
65
  name: 'String'
@@ -26,7 +26,7 @@ module Credentials
26
26
  attr_accessor :issuer_did
27
27
 
28
28
  # @return [String]
29
- attr_accessor :credential_definition_id
29
+ attr_accessor :cred_def_id
30
30
 
31
31
  # @return [AttributeValue]
32
32
  attr_accessor :attribute_value
@@ -48,7 +48,7 @@ module Credentials
48
48
  schema_id: {
49
49
  client_side_validation: true,
50
50
  required: false,
51
- serialized_name: 'schemaId',
51
+ serialized_name: 'schema_id',
52
52
  type: {
53
53
  name: 'String'
54
54
  }
@@ -56,7 +56,7 @@ module Credentials
56
56
  schema_issuer_did: {
57
57
  client_side_validation: true,
58
58
  required: false,
59
- serialized_name: 'schemaIssuerDid',
59
+ serialized_name: 'schema_issuer_did',
60
60
  type: {
61
61
  name: 'String'
62
62
  }
@@ -64,7 +64,7 @@ module Credentials
64
64
  schema_name: {
65
65
  client_side_validation: true,
66
66
  required: false,
67
- serialized_name: 'schemaName',
67
+ serialized_name: 'schema_name',
68
68
  type: {
69
69
  name: 'String'
70
70
  }
@@ -72,7 +72,7 @@ module Credentials
72
72
  schema_version: {
73
73
  client_side_validation: true,
74
74
  required: false,
75
- serialized_name: 'schemaVersion',
75
+ serialized_name: 'schema_version',
76
76
  type: {
77
77
  name: 'String'
78
78
  }
@@ -80,15 +80,15 @@ module Credentials
80
80
  issuer_did: {
81
81
  client_side_validation: true,
82
82
  required: false,
83
- serialized_name: 'issuerDid',
83
+ serialized_name: 'issuer_did',
84
84
  type: {
85
85
  name: 'String'
86
86
  }
87
87
  },
88
- credential_definition_id: {
88
+ cred_def_id: {
89
89
  client_side_validation: true,
90
90
  required: false,
91
- serialized_name: 'credentialDefinitionId',
91
+ serialized_name: 'cred_def_id',
92
92
  type: {
93
93
  name: 'String'
94
94
  }