infisical-sdk 2.3.8 → 2.3.9
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 +4 -4
- data/lib/clients/auth.rb +11 -11
- data/lib/clients/cryptography.rb +10 -10
- data/lib/clients/secrets.rb +14 -14
- data/lib/command_runner.rb +1 -1
- data/lib/extended_schemas/schemas.rb +1 -1
- data/lib/infisical_lib.rb +1 -1
- data/lib/linux-arm64/libinfisical_c.so +0 -0
- data/lib/linux-x64/libinfisical_c.so +0 -0
- data/lib/macos-arm64/libinfisical_c.dylib +0 -0
- data/lib/macos-x64/libinfisical_c.dylib +0 -0
- data/lib/schemas.rb +111 -165
- data/lib/version.rb +1 -1
- data/lib/windows-x64/infisical_c.dll +0 -0
- data/sig/infisical_sdk/auth_client.rbs +1 -1
- data/sig/infisical_sdk/cryptography_client.rbs +1 -1
- data/sig/infisical_sdk/infisical_client.rbs +1 -1
- data/sig/infisical_sdk/secrets_client.rbs +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed26788503528e4b3c0485bc55ccc227fc006d46f6897b092e5fc9c9d75fd448
|
4
|
+
data.tar.gz: ea402102bb2e2a09fb5f231e99cc833be417d423366fb6b48f63f23b239ea73a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc758fc1bf3cd359d8e91e8e0f9ec37842207e7e14debff2e65f6b4a0173d0c1280f4b608d5131073ba962e7994da42600bdabb9a452b9b1e9f2f7b4632a499c
|
7
|
+
data.tar.gz: e648172a2b46724eb3121c0fa088048d30527b06afa2cb28b52047d90c9e9056e0330186ff6a3a8d57339671842947f93683719df8da4b6439b554e0ccb44691
|
data/lib/clients/auth.rb
CHANGED
@@ -11,7 +11,7 @@ module InfisicalSDK
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def universal_auth(client_id:, client_secret:)
|
14
|
-
response =
|
14
|
+
response = infisical_execute_command(universal_auth_login: UniversalAuthMethod.new(
|
15
15
|
client_id: client_id,
|
16
16
|
client_secret: client_secret
|
17
17
|
))
|
@@ -21,7 +21,7 @@ module InfisicalSDK
|
|
21
21
|
|
22
22
|
def kubernetes_auth(identity_id:, service_account_token_path:)
|
23
23
|
|
24
|
-
response =
|
24
|
+
response = infisical_execute_command(kubernetes_auth_login: KubernetesAuthMethod.new(
|
25
25
|
identity_id: identity_id,
|
26
26
|
service_account_token_path: service_account_token_path
|
27
27
|
))
|
@@ -31,7 +31,7 @@ module InfisicalSDK
|
|
31
31
|
|
32
32
|
def azure_auth(identity_id:)
|
33
33
|
|
34
|
-
response =
|
34
|
+
response = infisical_execute_command(azure_auth_login: AzureAuthMethod.new(
|
35
35
|
identity_id: identity_id
|
36
36
|
))
|
37
37
|
|
@@ -40,7 +40,7 @@ module InfisicalSDK
|
|
40
40
|
|
41
41
|
def gcp_id_token_auth(identity_id:)
|
42
42
|
|
43
|
-
response =
|
43
|
+
response = infisical_execute_command(gcp_id_token_auth_login: GCPIDTokenAuthMethod.new(
|
44
44
|
identity_id: identity_id
|
45
45
|
))
|
46
46
|
|
@@ -49,7 +49,7 @@ module InfisicalSDK
|
|
49
49
|
|
50
50
|
def gcp_iam_auth(identity_id:, service_account_key_file_path:)
|
51
51
|
|
52
|
-
response =
|
52
|
+
response = infisical_execute_command(gcp_iam_auth_login: GCPIamAuthMethod.new(
|
53
53
|
identity_id: identity_id,
|
54
54
|
service_account_key_file_path: service_account_key_file_path
|
55
55
|
))
|
@@ -59,7 +59,7 @@ module InfisicalSDK
|
|
59
59
|
|
60
60
|
def aws_iam_auth(identity_id:)
|
61
61
|
|
62
|
-
response =
|
62
|
+
response = infisical_execute_command(aws_iam_auth_login: AWSIamAuthMethod.new(
|
63
63
|
identity_id: identity_id
|
64
64
|
))
|
65
65
|
|
@@ -71,25 +71,25 @@ module InfisicalSDK
|
|
71
71
|
def error_handler(response)
|
72
72
|
|
73
73
|
# If the response is successful, we return without raising errors.
|
74
|
-
if response.key?('
|
74
|
+
if response.key?('status') && response['status'] == true && response.key?('data')
|
75
75
|
return
|
76
76
|
end
|
77
77
|
|
78
|
-
if response['
|
79
|
-
raise InfisicalError, response['
|
78
|
+
if response['message']
|
79
|
+
raise InfisicalError, response['message'] if response.key?('message')
|
80
80
|
else
|
81
81
|
raise InfisicalError, 'Error while getting response'
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
85
|
def handle_auth_response(response)
|
86
|
-
auth_response =
|
86
|
+
auth_response = APIResultForAccessTokenSuccessResponse.from_json!(response).to_dynamic
|
87
87
|
error_handler(auth_response)
|
88
88
|
|
89
89
|
auth_response['data']
|
90
90
|
end
|
91
91
|
|
92
|
-
def
|
92
|
+
def infisical_execute_command(command)
|
93
93
|
response = @command_runner.run(InfisicalCommands.new(command))
|
94
94
|
raise InfisicalError, 'Error getting response' if response.nil?
|
95
95
|
|
data/lib/clients/cryptography.rb
CHANGED
@@ -17,12 +17,12 @@ module InfisicalSDK
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def encrypt_symmetric(data:, key:)
|
20
|
-
response =
|
20
|
+
response = infisical_execute_command(encrypt_symmetric: EncryptSymmetricOptions.new(
|
21
21
|
key: key,
|
22
22
|
plaintext: data,
|
23
23
|
))
|
24
24
|
|
25
|
-
encrypt_response =
|
25
|
+
encrypt_response = APIResultForEncryptSymmetricResponse.from_json!(response).to_dynamic
|
26
26
|
error_handler(encrypt_response)
|
27
27
|
|
28
28
|
|
@@ -36,25 +36,25 @@ module InfisicalSDK
|
|
36
36
|
key:
|
37
37
|
)
|
38
38
|
|
39
|
-
response =
|
39
|
+
response = infisical_execute_command(decrypt_symmetric: DecryptSymmetricOptions.new(
|
40
40
|
ciphertext: ciphertext,
|
41
41
|
iv: iv,
|
42
42
|
tag: tag,
|
43
43
|
key: key
|
44
44
|
))
|
45
45
|
|
46
|
-
decrypt_response =
|
46
|
+
decrypt_response = APIResultForDecryptSymmetricResponse.from_json!(response).to_dynamic
|
47
47
|
error_handler(decrypt_response)
|
48
48
|
|
49
49
|
decrypt_response['data']['decrypted']
|
50
50
|
end
|
51
51
|
|
52
52
|
def create_symmetric_key
|
53
|
-
response =
|
53
|
+
response = infisical_execute_command(create_symmetric_key: ArbitraryOptions.new(
|
54
54
|
data: ''
|
55
55
|
))
|
56
56
|
|
57
|
-
key_response =
|
57
|
+
key_response = APIResultForCreateSymmetricKeyResponse.from_json!(response).to_dynamic
|
58
58
|
error_handler(key_response)
|
59
59
|
|
60
60
|
key_response['data']['key']
|
@@ -65,18 +65,18 @@ module InfisicalSDK
|
|
65
65
|
def error_handler(response)
|
66
66
|
|
67
67
|
# If the response is successful, we return without raising errors.
|
68
|
-
if response.key?('
|
68
|
+
if response.key?('status') && response['status'] == true && response.key?('data')
|
69
69
|
return
|
70
70
|
end
|
71
71
|
|
72
|
-
if response['
|
73
|
-
raise InfisicalError, response['
|
72
|
+
if response['message']
|
73
|
+
raise InfisicalError, response['message'] if response.key?('message')
|
74
74
|
else
|
75
75
|
raise InfisicalError, 'Error while getting response'
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
def
|
79
|
+
def infisical_execute_command(command)
|
80
80
|
response = @command_runner.run(InfisicalCommands.new(command))
|
81
81
|
raise InfisicalError, 'Error getting response' if response.nil?
|
82
82
|
|
data/lib/clients/secrets.rb
CHANGED
@@ -23,7 +23,7 @@ module InfisicalSDK
|
|
23
23
|
type: nil
|
24
24
|
)
|
25
25
|
|
26
|
-
response =
|
26
|
+
response = infisical_execute_command(get_secret: GetSecretOptions.new(
|
27
27
|
secret_name: secret_name,
|
28
28
|
project_id: project_id,
|
29
29
|
environment: environment,
|
@@ -33,7 +33,7 @@ module InfisicalSDK
|
|
33
33
|
get_secret_options_type: type
|
34
34
|
))
|
35
35
|
|
36
|
-
secrets_response =
|
36
|
+
secrets_response = APIResultForGetSecretResponse.from_json!(response).to_dynamic
|
37
37
|
error_handler(secrets_response)
|
38
38
|
|
39
39
|
|
@@ -49,7 +49,7 @@ module InfisicalSDK
|
|
49
49
|
recursive: nil,
|
50
50
|
include_imports: nil
|
51
51
|
)
|
52
|
-
response =
|
52
|
+
response = infisical_execute_command(list_secrets: ListSecretsOptions.new(
|
53
53
|
project_id: project_id,
|
54
54
|
environment: environment,
|
55
55
|
path: path,
|
@@ -59,7 +59,7 @@ module InfisicalSDK
|
|
59
59
|
expand_secret_references: expand_secret_references,
|
60
60
|
))
|
61
61
|
|
62
|
-
secrets_response =
|
62
|
+
secrets_response = APIResultForListSecretsResponse.from_json!(response).to_dynamic
|
63
63
|
error_handler(secrets_response)
|
64
64
|
|
65
65
|
secrets_response['data']['secrets']
|
@@ -74,7 +74,7 @@ module InfisicalSDK
|
|
74
74
|
skip_multiline_encoding: nil,
|
75
75
|
type: nil
|
76
76
|
)
|
77
|
-
response =
|
77
|
+
response = infisical_execute_command(update_secret: UpdateSecretOptions.new(
|
78
78
|
secret_name: secret_name,
|
79
79
|
secret_value: secret_value,
|
80
80
|
project_id: project_id,
|
@@ -84,7 +84,7 @@ module InfisicalSDK
|
|
84
84
|
update_secret_options_type: type
|
85
85
|
))
|
86
86
|
|
87
|
-
secrets_response =
|
87
|
+
secrets_response = APIResultForUpdateSecretResponse.from_json!(response).to_dynamic
|
88
88
|
error_handler(secrets_response)
|
89
89
|
|
90
90
|
|
@@ -103,7 +103,7 @@ module InfisicalSDK
|
|
103
103
|
|
104
104
|
)
|
105
105
|
|
106
|
-
response =
|
106
|
+
response = infisical_execute_command(create_secret: CreateSecretOptions.new(
|
107
107
|
secret_name: secret_name,
|
108
108
|
secret_value: secret_value,
|
109
109
|
secret_comment: secret_comment,
|
@@ -114,7 +114,7 @@ module InfisicalSDK
|
|
114
114
|
create_secret_options_type: type
|
115
115
|
))
|
116
116
|
|
117
|
-
secrets_response =
|
117
|
+
secrets_response = APIResultForCreateSecretResponse.from_json!(response).to_dynamic
|
118
118
|
error_handler(secrets_response)
|
119
119
|
|
120
120
|
|
@@ -128,7 +128,7 @@ module InfisicalSDK
|
|
128
128
|
path: nil,
|
129
129
|
type: nil
|
130
130
|
)
|
131
|
-
response =
|
131
|
+
response = infisical_execute_command(delete_secret: DeleteSecretOptions.new(
|
132
132
|
secret_name: secret_name,
|
133
133
|
project_id: project_id,
|
134
134
|
environment: environment,
|
@@ -136,7 +136,7 @@ module InfisicalSDK
|
|
136
136
|
delete_secret_options_type: type
|
137
137
|
))
|
138
138
|
|
139
|
-
secrets_response =
|
139
|
+
secrets_response = APIResultForDeleteSecretResponse.from_json!(response).to_dynamic
|
140
140
|
error_handler(secrets_response)
|
141
141
|
|
142
142
|
secrets_response['data']['secret']
|
@@ -147,18 +147,18 @@ module InfisicalSDK
|
|
147
147
|
def error_handler(response)
|
148
148
|
|
149
149
|
# If the response is successful, we return without raising errors.
|
150
|
-
if response.key?('
|
150
|
+
if response.key?('status') && response['status'] == true && response.key?('data')
|
151
151
|
return
|
152
152
|
end
|
153
153
|
|
154
|
-
if response['
|
155
|
-
raise InfisicalError, response['
|
154
|
+
if response['message']
|
155
|
+
raise InfisicalError, response['message'] if response.key?('message')
|
156
156
|
else
|
157
157
|
raise InfisicalError, 'Error while getting response'
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
161
|
-
def
|
161
|
+
def infisical_execute_command(command)
|
162
162
|
response = @command_runner.run(InfisicalCommands.new(command))
|
163
163
|
raise InfisicalError, 'Error getting response' if response.nil?
|
164
164
|
|
data/lib/command_runner.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module InfisicalSDK
|
2
2
|
# Command mapper
|
3
|
-
class InfisicalCommands <
|
3
|
+
class InfisicalCommands < CommandList
|
4
4
|
attribute :get_secret, Types.Constructor(GetSecretOptions).optional.default(nil)
|
5
5
|
attribute :list_secrets, Types.Constructor(ListSecretsOptions).optional.default(nil)
|
6
6
|
attribute :create_secret, Types.Constructor(CreateSecretOptions).optional.default(nil)
|
data/lib/infisical_lib.rb
CHANGED
@@ -38,7 +38,7 @@ module InfisicalSDK
|
|
38
38
|
end
|
39
39
|
|
40
40
|
attach_function :init, [:string], :pointer
|
41
|
-
attach_function :
|
41
|
+
attach_function :infisical_execute_command, %i[string pointer], :string
|
42
42
|
attach_function :free_mem, [:pointer], :void
|
43
43
|
end
|
44
44
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/schemas.rb
CHANGED
@@ -6,35 +6,35 @@
|
|
6
6
|
# client_settings = ClientSettings.from_json! "{…}"
|
7
7
|
# puts client_settings.auth&.access_token.nil?
|
8
8
|
#
|
9
|
-
#
|
10
|
-
# puts
|
9
|
+
# command_list = CommandList.from_json! "{…}"
|
10
|
+
# puts command_list.aws_iam_auth_login&.identity_id
|
11
11
|
#
|
12
|
-
#
|
13
|
-
# puts
|
12
|
+
# api_result_for_access_token_success_response = APIResultForAccessTokenSuccessResponse.from_json! "{…}"
|
13
|
+
# puts api_result_for_access_token_success_response.data&.access_token
|
14
14
|
#
|
15
|
-
#
|
16
|
-
# puts
|
15
|
+
# api_result_for_create_secret_response = APIResultForCreateSecretResponse.from_json! "{…}"
|
16
|
+
# puts api_result_for_create_secret_response.data&.secret.environment
|
17
17
|
#
|
18
|
-
#
|
19
|
-
# puts
|
18
|
+
# api_result_for_create_symmetric_key_response = APIResultForCreateSymmetricKeyResponse.from_json! "{…}"
|
19
|
+
# puts api_result_for_create_symmetric_key_response.data&.key
|
20
20
|
#
|
21
|
-
#
|
22
|
-
# puts
|
21
|
+
# api_result_for_decrypt_symmetric_response = APIResultForDecryptSymmetricResponse.from_json! "{…}"
|
22
|
+
# puts api_result_for_decrypt_symmetric_response.data&.decrypted
|
23
23
|
#
|
24
|
-
#
|
25
|
-
# puts
|
24
|
+
# api_result_for_delete_secret_response = APIResultForDeleteSecretResponse.from_json! "{…}"
|
25
|
+
# puts api_result_for_delete_secret_response.data&.secret.environment
|
26
26
|
#
|
27
|
-
#
|
28
|
-
# puts
|
27
|
+
# api_result_for_encrypt_symmetric_response = APIResultForEncryptSymmetricResponse.from_json! "{…}"
|
28
|
+
# puts api_result_for_encrypt_symmetric_response.data&.ciphertext
|
29
29
|
#
|
30
|
-
#
|
31
|
-
# puts
|
30
|
+
# api_result_for_get_secret_response = APIResultForGetSecretResponse.from_json! "{…}"
|
31
|
+
# puts api_result_for_get_secret_response.data&.secret.environment
|
32
32
|
#
|
33
|
-
#
|
34
|
-
# puts
|
33
|
+
# api_result_for_list_secrets_response = APIResultForListSecretsResponse.from_json! "{…}"
|
34
|
+
# puts api_result_for_list_secrets_response.data&.secrets.first.environment
|
35
35
|
#
|
36
|
-
#
|
37
|
-
# puts
|
36
|
+
# api_result_for_update_secret_response = APIResultForUpdateSecretResponse.from_json! "{…}"
|
37
|
+
# puts api_result_for_update_secret_response.data&.secret.environment
|
38
38
|
#
|
39
39
|
# If from_json! succeeds, the value returned matches the schema.
|
40
40
|
|
@@ -819,7 +819,7 @@ class UpdateSecretOptions < Dry::Struct
|
|
819
819
|
end
|
820
820
|
end
|
821
821
|
|
822
|
-
class
|
822
|
+
class CommandList < Dry::Struct
|
823
823
|
attribute :get_secret, GetSecretOptions.optional
|
824
824
|
attribute :list_secrets, ListSecretsOptions.optional
|
825
825
|
attribute :create_secret, CreateSecretOptions.optional
|
@@ -917,23 +917,17 @@ class AccessTokenSuccessResponse < Dry::Struct
|
|
917
917
|
end
|
918
918
|
end
|
919
919
|
|
920
|
-
class
|
921
|
-
|
922
|
-
|
923
|
-
attribute :
|
924
|
-
|
925
|
-
# A message for any error that may occur. Populated if `success` is false.
|
926
|
-
attribute :error_message, Types::String.optional.optional
|
927
|
-
|
928
|
-
# Whether or not the SDK request succeeded.
|
929
|
-
attribute :success, Types::Bool
|
920
|
+
class APIResultForAccessTokenSuccessResponse < Dry::Struct
|
921
|
+
attribute :data, AccessTokenSuccessResponse.optional.optional
|
922
|
+
attribute :message, Types::String.optional.optional
|
923
|
+
attribute :status, Types::Bool
|
930
924
|
|
931
925
|
def self.from_dynamic!(d)
|
932
926
|
d = Types::Hash[d]
|
933
927
|
new(
|
934
|
-
data:
|
935
|
-
|
936
|
-
|
928
|
+
data: d["data"] ? AccessTokenSuccessResponse.from_dynamic!(d["data"]) : nil,
|
929
|
+
message: d["message"],
|
930
|
+
status: d.fetch("status"),
|
937
931
|
)
|
938
932
|
end
|
939
933
|
|
@@ -943,9 +937,9 @@ class ResponseForAccessTokenSuccessResponse < Dry::Struct
|
|
943
937
|
|
944
938
|
def to_dynamic
|
945
939
|
{
|
946
|
-
"data"
|
947
|
-
"
|
948
|
-
"
|
940
|
+
"data" => data&.to_dynamic,
|
941
|
+
"message" => message,
|
942
|
+
"status" => status,
|
949
943
|
}
|
950
944
|
end
|
951
945
|
|
@@ -1033,23 +1027,17 @@ class CreateSecretResponse < Dry::Struct
|
|
1033
1027
|
end
|
1034
1028
|
end
|
1035
1029
|
|
1036
|
-
class
|
1037
|
-
|
1038
|
-
|
1039
|
-
attribute :
|
1040
|
-
|
1041
|
-
# A message for any error that may occur. Populated if `success` is false.
|
1042
|
-
attribute :error_message, Types::String.optional.optional
|
1043
|
-
|
1044
|
-
# Whether or not the SDK request succeeded.
|
1045
|
-
attribute :success, Types::Bool
|
1030
|
+
class APIResultForCreateSecretResponse < Dry::Struct
|
1031
|
+
attribute :data, CreateSecretResponse.optional.optional
|
1032
|
+
attribute :message, Types::String.optional.optional
|
1033
|
+
attribute :status, Types::Bool
|
1046
1034
|
|
1047
1035
|
def self.from_dynamic!(d)
|
1048
1036
|
d = Types::Hash[d]
|
1049
1037
|
new(
|
1050
|
-
data:
|
1051
|
-
|
1052
|
-
|
1038
|
+
data: d["data"] ? CreateSecretResponse.from_dynamic!(d["data"]) : nil,
|
1039
|
+
message: d["message"],
|
1040
|
+
status: d.fetch("status"),
|
1053
1041
|
)
|
1054
1042
|
end
|
1055
1043
|
|
@@ -1059,9 +1047,9 @@ class ResponseForCreateSecretResponse < Dry::Struct
|
|
1059
1047
|
|
1060
1048
|
def to_dynamic
|
1061
1049
|
{
|
1062
|
-
"data"
|
1063
|
-
"
|
1064
|
-
"
|
1050
|
+
"data" => data&.to_dynamic,
|
1051
|
+
"message" => message,
|
1052
|
+
"status" => status,
|
1065
1053
|
}
|
1066
1054
|
end
|
1067
1055
|
|
@@ -1095,23 +1083,17 @@ class CreateSymmetricKeyResponse < Dry::Struct
|
|
1095
1083
|
end
|
1096
1084
|
end
|
1097
1085
|
|
1098
|
-
class
|
1099
|
-
|
1100
|
-
|
1101
|
-
attribute :
|
1102
|
-
|
1103
|
-
# A message for any error that may occur. Populated if `success` is false.
|
1104
|
-
attribute :error_message, Types::String.optional.optional
|
1105
|
-
|
1106
|
-
# Whether or not the SDK request succeeded.
|
1107
|
-
attribute :success, Types::Bool
|
1086
|
+
class APIResultForCreateSymmetricKeyResponse < Dry::Struct
|
1087
|
+
attribute :data, CreateSymmetricKeyResponse.optional.optional
|
1088
|
+
attribute :message, Types::String.optional.optional
|
1089
|
+
attribute :status, Types::Bool
|
1108
1090
|
|
1109
1091
|
def self.from_dynamic!(d)
|
1110
1092
|
d = Types::Hash[d]
|
1111
1093
|
new(
|
1112
|
-
data:
|
1113
|
-
|
1114
|
-
|
1094
|
+
data: d["data"] ? CreateSymmetricKeyResponse.from_dynamic!(d["data"]) : nil,
|
1095
|
+
message: d["message"],
|
1096
|
+
status: d.fetch("status"),
|
1115
1097
|
)
|
1116
1098
|
end
|
1117
1099
|
|
@@ -1121,9 +1103,9 @@ class ResponseForCreateSymmetricKeyResponse < Dry::Struct
|
|
1121
1103
|
|
1122
1104
|
def to_dynamic
|
1123
1105
|
{
|
1124
|
-
"data"
|
1125
|
-
"
|
1126
|
-
"
|
1106
|
+
"data" => data&.to_dynamic,
|
1107
|
+
"message" => message,
|
1108
|
+
"status" => status,
|
1127
1109
|
}
|
1128
1110
|
end
|
1129
1111
|
|
@@ -1157,23 +1139,17 @@ class DecryptSymmetricResponse < Dry::Struct
|
|
1157
1139
|
end
|
1158
1140
|
end
|
1159
1141
|
|
1160
|
-
class
|
1161
|
-
|
1162
|
-
|
1163
|
-
attribute :
|
1164
|
-
|
1165
|
-
# A message for any error that may occur. Populated if `success` is false.
|
1166
|
-
attribute :error_message, Types::String.optional.optional
|
1167
|
-
|
1168
|
-
# Whether or not the SDK request succeeded.
|
1169
|
-
attribute :success, Types::Bool
|
1142
|
+
class APIResultForDecryptSymmetricResponse < Dry::Struct
|
1143
|
+
attribute :data, DecryptSymmetricResponse.optional.optional
|
1144
|
+
attribute :message, Types::String.optional.optional
|
1145
|
+
attribute :status, Types::Bool
|
1170
1146
|
|
1171
1147
|
def self.from_dynamic!(d)
|
1172
1148
|
d = Types::Hash[d]
|
1173
1149
|
new(
|
1174
|
-
data:
|
1175
|
-
|
1176
|
-
|
1150
|
+
data: d["data"] ? DecryptSymmetricResponse.from_dynamic!(d["data"]) : nil,
|
1151
|
+
message: d["message"],
|
1152
|
+
status: d.fetch("status"),
|
1177
1153
|
)
|
1178
1154
|
end
|
1179
1155
|
|
@@ -1183,9 +1159,9 @@ class ResponseForDecryptSymmetricResponse < Dry::Struct
|
|
1183
1159
|
|
1184
1160
|
def to_dynamic
|
1185
1161
|
{
|
1186
|
-
"data"
|
1187
|
-
"
|
1188
|
-
"
|
1162
|
+
"data" => data&.to_dynamic,
|
1163
|
+
"message" => message,
|
1164
|
+
"status" => status,
|
1189
1165
|
}
|
1190
1166
|
end
|
1191
1167
|
|
@@ -1273,23 +1249,17 @@ class DeleteSecretResponse < Dry::Struct
|
|
1273
1249
|
end
|
1274
1250
|
end
|
1275
1251
|
|
1276
|
-
class
|
1277
|
-
|
1278
|
-
|
1279
|
-
attribute :
|
1280
|
-
|
1281
|
-
# A message for any error that may occur. Populated if `success` is false.
|
1282
|
-
attribute :error_message, Types::String.optional.optional
|
1283
|
-
|
1284
|
-
# Whether or not the SDK request succeeded.
|
1285
|
-
attribute :success, Types::Bool
|
1252
|
+
class APIResultForDeleteSecretResponse < Dry::Struct
|
1253
|
+
attribute :data, DeleteSecretResponse.optional.optional
|
1254
|
+
attribute :message, Types::String.optional.optional
|
1255
|
+
attribute :status, Types::Bool
|
1286
1256
|
|
1287
1257
|
def self.from_dynamic!(d)
|
1288
1258
|
d = Types::Hash[d]
|
1289
1259
|
new(
|
1290
|
-
data:
|
1291
|
-
|
1292
|
-
|
1260
|
+
data: d["data"] ? DeleteSecretResponse.from_dynamic!(d["data"]) : nil,
|
1261
|
+
message: d["message"],
|
1262
|
+
status: d.fetch("status"),
|
1293
1263
|
)
|
1294
1264
|
end
|
1295
1265
|
|
@@ -1299,9 +1269,9 @@ class ResponseForDeleteSecretResponse < Dry::Struct
|
|
1299
1269
|
|
1300
1270
|
def to_dynamic
|
1301
1271
|
{
|
1302
|
-
"data"
|
1303
|
-
"
|
1304
|
-
"
|
1272
|
+
"data" => data&.to_dynamic,
|
1273
|
+
"message" => message,
|
1274
|
+
"status" => status,
|
1305
1275
|
}
|
1306
1276
|
end
|
1307
1277
|
|
@@ -1341,23 +1311,17 @@ class EncryptSymmetricResponse < Dry::Struct
|
|
1341
1311
|
end
|
1342
1312
|
end
|
1343
1313
|
|
1344
|
-
class
|
1345
|
-
|
1346
|
-
|
1347
|
-
attribute :
|
1348
|
-
|
1349
|
-
# A message for any error that may occur. Populated if `success` is false.
|
1350
|
-
attribute :error_message, Types::String.optional.optional
|
1351
|
-
|
1352
|
-
# Whether or not the SDK request succeeded.
|
1353
|
-
attribute :success, Types::Bool
|
1314
|
+
class APIResultForEncryptSymmetricResponse < Dry::Struct
|
1315
|
+
attribute :data, EncryptSymmetricResponse.optional.optional
|
1316
|
+
attribute :message, Types::String.optional.optional
|
1317
|
+
attribute :status, Types::Bool
|
1354
1318
|
|
1355
1319
|
def self.from_dynamic!(d)
|
1356
1320
|
d = Types::Hash[d]
|
1357
1321
|
new(
|
1358
|
-
data:
|
1359
|
-
|
1360
|
-
|
1322
|
+
data: d["data"] ? EncryptSymmetricResponse.from_dynamic!(d["data"]) : nil,
|
1323
|
+
message: d["message"],
|
1324
|
+
status: d.fetch("status"),
|
1361
1325
|
)
|
1362
1326
|
end
|
1363
1327
|
|
@@ -1367,9 +1331,9 @@ class ResponseForEncryptSymmetricResponse < Dry::Struct
|
|
1367
1331
|
|
1368
1332
|
def to_dynamic
|
1369
1333
|
{
|
1370
|
-
"data"
|
1371
|
-
"
|
1372
|
-
"
|
1334
|
+
"data" => data&.to_dynamic,
|
1335
|
+
"message" => message,
|
1336
|
+
"status" => status,
|
1373
1337
|
}
|
1374
1338
|
end
|
1375
1339
|
|
@@ -1457,23 +1421,17 @@ class GetSecretResponse < Dry::Struct
|
|
1457
1421
|
end
|
1458
1422
|
end
|
1459
1423
|
|
1460
|
-
class
|
1461
|
-
|
1462
|
-
|
1463
|
-
attribute :
|
1464
|
-
|
1465
|
-
# A message for any error that may occur. Populated if `success` is false.
|
1466
|
-
attribute :error_message, Types::String.optional.optional
|
1467
|
-
|
1468
|
-
# Whether or not the SDK request succeeded.
|
1469
|
-
attribute :success, Types::Bool
|
1424
|
+
class APIResultForGetSecretResponse < Dry::Struct
|
1425
|
+
attribute :data, GetSecretResponse.optional.optional
|
1426
|
+
attribute :message, Types::String.optional.optional
|
1427
|
+
attribute :status, Types::Bool
|
1470
1428
|
|
1471
1429
|
def self.from_dynamic!(d)
|
1472
1430
|
d = Types::Hash[d]
|
1473
1431
|
new(
|
1474
|
-
data:
|
1475
|
-
|
1476
|
-
|
1432
|
+
data: d["data"] ? GetSecretResponse.from_dynamic!(d["data"]) : nil,
|
1433
|
+
message: d["message"],
|
1434
|
+
status: d.fetch("status"),
|
1477
1435
|
)
|
1478
1436
|
end
|
1479
1437
|
|
@@ -1483,9 +1441,9 @@ class ResponseForGetSecretResponse < Dry::Struct
|
|
1483
1441
|
|
1484
1442
|
def to_dynamic
|
1485
1443
|
{
|
1486
|
-
"data"
|
1487
|
-
"
|
1488
|
-
"
|
1444
|
+
"data" => data&.to_dynamic,
|
1445
|
+
"message" => message,
|
1446
|
+
"status" => status,
|
1489
1447
|
}
|
1490
1448
|
end
|
1491
1449
|
|
@@ -1573,23 +1531,17 @@ class ListSecretsResponse < Dry::Struct
|
|
1573
1531
|
end
|
1574
1532
|
end
|
1575
1533
|
|
1576
|
-
class
|
1577
|
-
|
1578
|
-
|
1579
|
-
attribute :
|
1580
|
-
|
1581
|
-
# A message for any error that may occur. Populated if `success` is false.
|
1582
|
-
attribute :error_message, Types::String.optional.optional
|
1583
|
-
|
1584
|
-
# Whether or not the SDK request succeeded.
|
1585
|
-
attribute :success, Types::Bool
|
1534
|
+
class APIResultForListSecretsResponse < Dry::Struct
|
1535
|
+
attribute :data, ListSecretsResponse.optional.optional
|
1536
|
+
attribute :message, Types::String.optional.optional
|
1537
|
+
attribute :status, Types::Bool
|
1586
1538
|
|
1587
1539
|
def self.from_dynamic!(d)
|
1588
1540
|
d = Types::Hash[d]
|
1589
1541
|
new(
|
1590
|
-
data:
|
1591
|
-
|
1592
|
-
|
1542
|
+
data: d["data"] ? ListSecretsResponse.from_dynamic!(d["data"]) : nil,
|
1543
|
+
message: d["message"],
|
1544
|
+
status: d.fetch("status"),
|
1593
1545
|
)
|
1594
1546
|
end
|
1595
1547
|
|
@@ -1599,9 +1551,9 @@ class ResponseForListSecretsResponse < Dry::Struct
|
|
1599
1551
|
|
1600
1552
|
def to_dynamic
|
1601
1553
|
{
|
1602
|
-
"data"
|
1603
|
-
"
|
1604
|
-
"
|
1554
|
+
"data" => data&.to_dynamic,
|
1555
|
+
"message" => message,
|
1556
|
+
"status" => status,
|
1605
1557
|
}
|
1606
1558
|
end
|
1607
1559
|
|
@@ -1689,23 +1641,17 @@ class UpdateSecretResponse < Dry::Struct
|
|
1689
1641
|
end
|
1690
1642
|
end
|
1691
1643
|
|
1692
|
-
class
|
1693
|
-
|
1694
|
-
|
1695
|
-
attribute :
|
1696
|
-
|
1697
|
-
# A message for any error that may occur. Populated if `success` is false.
|
1698
|
-
attribute :error_message, Types::String.optional.optional
|
1699
|
-
|
1700
|
-
# Whether or not the SDK request succeeded.
|
1701
|
-
attribute :success, Types::Bool
|
1644
|
+
class APIResultForUpdateSecretResponse < Dry::Struct
|
1645
|
+
attribute :data, UpdateSecretResponse.optional.optional
|
1646
|
+
attribute :message, Types::String.optional.optional
|
1647
|
+
attribute :status, Types::Bool
|
1702
1648
|
|
1703
1649
|
def self.from_dynamic!(d)
|
1704
1650
|
d = Types::Hash[d]
|
1705
1651
|
new(
|
1706
|
-
data:
|
1707
|
-
|
1708
|
-
|
1652
|
+
data: d["data"] ? UpdateSecretResponse.from_dynamic!(d["data"]) : nil,
|
1653
|
+
message: d["message"],
|
1654
|
+
status: d.fetch("status"),
|
1709
1655
|
)
|
1710
1656
|
end
|
1711
1657
|
|
@@ -1715,9 +1661,9 @@ class ResponseForUpdateSecretResponse < Dry::Struct
|
|
1715
1661
|
|
1716
1662
|
def to_dynamic
|
1717
1663
|
{
|
1718
|
-
"data"
|
1719
|
-
"
|
1720
|
-
"
|
1664
|
+
"data" => data&.to_dynamic,
|
1665
|
+
"message" => message,
|
1666
|
+
"status" => status,
|
1721
1667
|
}
|
1722
1668
|
end
|
1723
1669
|
|
data/lib/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infisical-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infisical Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|