infisical-sdk 2.3.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +37 -0
  4. data/.ruby-version +1 -0
  5. data/.yardopts +5 -0
  6. data/LICENSE +201 -0
  7. data/README.md +134 -0
  8. data/Rakefile +5 -5
  9. data/infisical-sdk.gemspec +21 -38
  10. data/lib/infisical/auth.rb +50 -0
  11. data/lib/infisical/client.rb +67 -0
  12. data/lib/infisical/errors.rb +82 -0
  13. data/lib/infisical/http_client.rb +212 -0
  14. data/lib/infisical/models/machine_identity_credential.rb +34 -0
  15. data/lib/infisical/models/secret.rb +93 -0
  16. data/lib/infisical/secrets.rb +213 -0
  17. data/lib/infisical/version.rb +6 -0
  18. data/lib/infisical-sdk.rb +3 -43
  19. data/lib/infisical.rb +9 -0
  20. metadata +35 -124
  21. data/Steepfile +0 -46
  22. data/lib/clients/auth.rb +0 -100
  23. data/lib/clients/cryptography.rb +0 -90
  24. data/lib/clients/secrets.rb +0 -171
  25. data/lib/command_runner.rb +0 -16
  26. data/lib/extended_schemas/schemas.rb +0 -38
  27. data/lib/infisical_error.rb +0 -10
  28. data/lib/infisical_lib.rb +0 -44
  29. data/lib/linux-arm64/libinfisical_c.so +0 -0
  30. data/lib/linux-x64/libinfisical_c.so +0 -0
  31. data/lib/macos-arm64/libinfisical_c.dylib +0 -0
  32. data/lib/macos-x64/libinfisical_c.dylib +0 -0
  33. data/lib/schemas.rb +0 -1728
  34. data/lib/version.rb +0 -5
  35. data/lib/windows-x64/infisical_c.dll +0 -0
  36. data/sig/infisical_sdk/auth_client.rbs +0 -20
  37. data/sig/infisical_sdk/command_runner.rbs +0 -10
  38. data/sig/infisical_sdk/cryptography_client.rbs +0 -15
  39. data/sig/infisical_sdk/infisical_client.rbs +0 -30
  40. data/sig/infisical_sdk/infisical_lib.rbs +0 -7
  41. data/sig/infisical_sdk/sdk.rbs +0 -3
  42. data/sig/infisical_sdk/secrets_client.rbs +0 -56
  43. data/sig/infisical_sdk/structs.rbs +0 -37
data/lib/version.rb DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module InfisicalSDK
4
- VERSION = '2.3.8'
5
- end
Binary file
@@ -1,20 +0,0 @@
1
- module InfisicalSDK
2
- class AuthClient
3
- @command_runner: untyped
4
-
5
- def initialize: (CommandRunner) -> void
6
-
7
- def universal_auth: (client_id: String, client_secret: String) -> MachineIdentityLogin
8
- def kubernetes_auth: (identity_id: String, service_account_token_path: String?) -> MachineIdentityLogin
9
- def azure_auth: (identity_id: String) -> MachineIdentityLogin
10
- def gcp_id_token_auth: (identity_id: String) -> MachineIdentityLogin
11
- def gcp_iam_auth: (identity_id: String, service_account_key_file_path: String) -> MachineIdentityLogin
12
- def aws_iam_auth: (identity_id: String) -> MachineIdentityLogin
13
-
14
- private
15
-
16
- def error_handler: (untyped) -> void
17
- def handle_auth_response: (untyped) -> MachineIdentityLogin
18
- def run_command: (untyped) -> untyped
19
- end
20
- end
@@ -1,10 +0,0 @@
1
- module InfisicalSDK
2
- class CommandRunner
3
- @handle: untyped
4
- @infisical_sdk: InfisicalModule
5
-
6
-
7
- def initialize: (untyped, untyped) -> String
8
- def run: (untyped) -> String
9
- end
10
- end
@@ -1,15 +0,0 @@
1
- module InfisicalSDK
2
- class CryptographyClient
3
- @command_runner: CommandRunner
4
- def initialize: (CommandRunner) -> void
5
-
6
- def create_symmetric_key: -> String
7
- def decrypt_symmetric: (ciphertext: String, iv: String, tag: String, key: String) -> String
8
- def encrypt_symmetric: (data: String, key: String) -> EncryptedData
9
-
10
- private
11
- def error_handler: (untyped) -> void
12
- def run_command: (untyped) -> untyped
13
-
14
- end
15
- end
@@ -1,30 +0,0 @@
1
- module InfisicalSDK
2
- class InfisicalClient
3
- @handle: untyped
4
- @infisical: InfisicalModule
5
- @auth: AuthClient
6
- @secrets: SecretsClient
7
- @command_runner: CommandRunner
8
-
9
- attr_reader command_runner: CommandRunner
10
- attr_reader infisical: InfisicalModule
11
-
12
- attr_reader auth: AuthClient
13
- attr_reader cryptography: CryptographyClient
14
- attr_reader secrets: SecretsClient
15
-
16
- def initialize: (String?, Integer?) -> untyped
17
-
18
- def free_mem: -> void
19
- end
20
- end
21
-
22
- module InfisicalSDK
23
- class InfisicalModule < Module
24
-
25
- def free_mem: (untyped) -> void
26
- def run_command: (untyped, untyped) -> String
27
- def init: (untyped) -> untyped
28
-
29
- end
30
- end
@@ -1,7 +0,0 @@
1
- module InfisicalSDK
2
- module InfisicalLib
3
-
4
- def self.linux_arm64?: -> bool
5
- def self.mac_with_intel?: -> bool
6
- end
7
- end
@@ -1,3 +0,0 @@
1
- module InfisicalSDK
2
- VERSION: String
3
- end
@@ -1,56 +0,0 @@
1
- module InfisicalSDK
2
- class SecretsClient
3
- @command_runner: CommandRunner
4
- def initialize: (CommandRunner) -> void
5
-
6
- def get: (
7
- secret_name: String,
8
- project_id: String,
9
- environment: String,
10
- path: String?,
11
- expand_secret_references: bool?,
12
- include_imports: bool?,
13
- type: String?
14
- ) -> InfisicalSecret
15
-
16
- def list: (
17
- project_id: String,
18
- environment: String,
19
- path: String?,
20
- attach_to_process_env: bool?,
21
- expand_secret_references: bool?,
22
- recursive: bool?,
23
- include_imports: bool?,
24
- ) -> Array[InfisicalSecret]
25
- def update: (
26
- secret_name: String,
27
- secret_value: String,
28
- project_id: String,
29
- environment: String,
30
- path: String?,
31
- skip_multiline_encoding: bool?,
32
- type: String?
33
- ) -> InfisicalSecret
34
- def create: (
35
- secret_name: String,
36
- secret_value: String,
37
- project_id: String,
38
- environment: String,
39
- secret_comment: String?,
40
- skip_multiline_encoding: bool?,
41
- type: String?,
42
- path: String?
43
- ) -> InfisicalSecret
44
- def delete: (
45
- secret_name: String,
46
- project_id: String,
47
- environment: String,
48
- path: String?,
49
- type: String?,
50
- ) -> InfisicalSecret
51
-
52
- private
53
- def error_handler: (untyped) -> void
54
- def run_command: (untyped) -> untyped
55
- end
56
- end
@@ -1,37 +0,0 @@
1
-
2
- class InfisicalSecret
3
- attr_reader environment: String?
4
- attr_reader isFallback: bool?
5
- attr_reader secretComment: String
6
- attr_reader secretKey: String
7
- attr_reader secretPath: String?
8
- attr_reader secretValue: String
9
- attr_reader type: String
10
- attr_reader version: Integer
11
- attr_reader workspace: String
12
-
13
- def initialize: (
14
- environment: String,
15
- secretComment: String,
16
- secretKey: String,
17
- secretValue: String,
18
- type: String,
19
- version: Integer,
20
- workspace: String,
21
- ?isFallback: bool?,
22
- ?secretPath: String?
23
- ) -> void
24
- end
25
-
26
- class MachineIdentityLogin
27
- attr_reader accessToken: String
28
- attr_reader accessTokenMaxTTL: Integer
29
- attr_reader expiresIn: Integer
30
- attr_reader tokenType: String
31
- end
32
-
33
- class EncryptedData
34
- attr_reader ciphertext: String
35
- attr_reader iv: String
36
- attr_reader tag: String
37
- end