zavudev 0.9.1 → 0.11.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 (111) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/zavudev/client.rb +8 -0
  5. data/lib/zavudev/models/contact_delete_params.rb +20 -0
  6. data/lib/zavudev/models/function_create_params.rb +104 -0
  7. data/lib/zavudev/models/function_create_response.rb +168 -0
  8. data/lib/zavudev/models/function_delete_params.rb +20 -0
  9. data/lib/zavudev/models/function_delete_response.rb +28 -0
  10. data/lib/zavudev/models/function_deploy_params.rb +37 -0
  11. data/lib/zavudev/models/function_deploy_response.rb +104 -0
  12. data/lib/zavudev/models/function_get_deployment_params.rb +20 -0
  13. data/lib/zavudev/models/function_get_deployment_response.rb +104 -0
  14. data/lib/zavudev/models/function_retrieve_params.rb +20 -0
  15. data/lib/zavudev/models/function_retrieve_response.rb +168 -0
  16. data/lib/zavudev/models/function_tail_logs_params.rb +58 -0
  17. data/lib/zavudev/models/function_tail_logs_response.rb +41 -0
  18. data/lib/zavudev/models/function_update_params.rb +37 -0
  19. data/lib/zavudev/models/function_update_response.rb +168 -0
  20. data/lib/zavudev/models/functions/secret_list_params.rb +22 -0
  21. data/lib/zavudev/models/functions/secret_list_response.rb +59 -0
  22. data/lib/zavudev/models/functions/secret_set_params.rb +34 -0
  23. data/lib/zavudev/models/functions/secret_set_response.rb +10 -0
  24. data/lib/zavudev/models/functions/secret_unset_params.rb +28 -0
  25. data/lib/zavudev/models/me_retrieve_params.rb +14 -0
  26. data/lib/zavudev/models/me_retrieve_response.rb +85 -0
  27. data/lib/zavudev/models/message_show_typing_params.rb +26 -0
  28. data/lib/zavudev/models/message_show_typing_response.rb +16 -0
  29. data/lib/zavudev/models/senders/agent/execution_retrieve_params.rb +30 -0
  30. data/lib/zavudev/models/senders/agent/execution_retrieve_response.rb +20 -0
  31. data/lib/zavudev/models/webhook_event.rb +9 -0
  32. data/lib/zavudev/models.rb +22 -0
  33. data/lib/zavudev/resources/contacts.rb +24 -0
  34. data/lib/zavudev/resources/functions/secrets.rb +98 -0
  35. data/lib/zavudev/resources/functions.rb +220 -0
  36. data/lib/zavudev/resources/me.rb +33 -0
  37. data/lib/zavudev/resources/messages.rb +31 -0
  38. data/lib/zavudev/resources/senders/agent/executions.rb +26 -0
  39. data/lib/zavudev/version.rb +1 -1
  40. data/lib/zavudev.rb +29 -0
  41. data/rbi/zavudev/client.rbi +6 -0
  42. data/rbi/zavudev/models/contact_delete_params.rbi +35 -0
  43. data/rbi/zavudev/models/function_create_params.rbi +177 -0
  44. data/rbi/zavudev/models/function_create_response.rbi +277 -0
  45. data/rbi/zavudev/models/function_delete_params.rbi +35 -0
  46. data/rbi/zavudev/models/function_delete_response.rbi +44 -0
  47. data/rbi/zavudev/models/function_deploy_params.rbi +63 -0
  48. data/rbi/zavudev/models/function_deploy_response.rbi +196 -0
  49. data/rbi/zavudev/models/function_get_deployment_params.rbi +38 -0
  50. data/rbi/zavudev/models/function_get_deployment_response.rbi +201 -0
  51. data/rbi/zavudev/models/function_retrieve_params.rbi +35 -0
  52. data/rbi/zavudev/models/function_retrieve_response.rbi +277 -0
  53. data/rbi/zavudev/models/function_tail_logs_params.rbi +90 -0
  54. data/rbi/zavudev/models/function_tail_logs_response.rbi +75 -0
  55. data/rbi/zavudev/models/function_update_params.rbi +63 -0
  56. data/rbi/zavudev/models/function_update_response.rbi +277 -0
  57. data/rbi/zavudev/models/functions/secret_list_params.rbi +40 -0
  58. data/rbi/zavudev/models/functions/secret_list_response.rbi +118 -0
  59. data/rbi/zavudev/models/functions/secret_set_params.rbi +53 -0
  60. data/rbi/zavudev/models/functions/secret_set_response.rbi +9 -0
  61. data/rbi/zavudev/models/functions/secret_unset_params.rbi +48 -0
  62. data/rbi/zavudev/models/me_retrieve_params.rbi +27 -0
  63. data/rbi/zavudev/models/me_retrieve_response.rbi +151 -0
  64. data/rbi/zavudev/models/message_show_typing_params.rbi +46 -0
  65. data/rbi/zavudev/models/message_show_typing_response.rbi +26 -0
  66. data/rbi/zavudev/models/senders/agent/execution_retrieve_params.rbi +50 -0
  67. data/rbi/zavudev/models/senders/agent/execution_retrieve_response.rbi +41 -0
  68. data/rbi/zavudev/models/webhook_event.rbi +11 -0
  69. data/rbi/zavudev/models.rbi +22 -0
  70. data/rbi/zavudev/resources/contacts.rbi +15 -0
  71. data/rbi/zavudev/resources/functions/secrets.rbi +69 -0
  72. data/rbi/zavudev/resources/functions.rbi +171 -0
  73. data/rbi/zavudev/resources/me.rbi +22 -0
  74. data/rbi/zavudev/resources/messages.rbi +21 -0
  75. data/rbi/zavudev/resources/senders/agent/executions.rbi +14 -0
  76. data/sig/zavudev/client.rbs +4 -0
  77. data/sig/zavudev/models/contact_delete_params.rbs +23 -0
  78. data/sig/zavudev/models/function_create_params.rbs +107 -0
  79. data/sig/zavudev/models/function_create_response.rbs +126 -0
  80. data/sig/zavudev/models/function_delete_params.rbs +23 -0
  81. data/sig/zavudev/models/function_delete_response.rbs +22 -0
  82. data/sig/zavudev/models/function_deploy_params.rbs +40 -0
  83. data/sig/zavudev/models/function_deploy_response.rbs +98 -0
  84. data/sig/zavudev/models/function_get_deployment_params.rbs +23 -0
  85. data/sig/zavudev/models/function_get_deployment_response.rbs +98 -0
  86. data/sig/zavudev/models/function_retrieve_params.rbs +23 -0
  87. data/sig/zavudev/models/function_retrieve_response.rbs +126 -0
  88. data/sig/zavudev/models/function_tail_logs_params.rbs +61 -0
  89. data/sig/zavudev/models/function_tail_logs_response.rbs +37 -0
  90. data/sig/zavudev/models/function_update_params.rbs +40 -0
  91. data/sig/zavudev/models/function_update_response.rbs +126 -0
  92. data/sig/zavudev/models/functions/secret_list_params.rbs +25 -0
  93. data/sig/zavudev/models/functions/secret_list_response.rbs +70 -0
  94. data/sig/zavudev/models/functions/secret_set_params.rbs +34 -0
  95. data/sig/zavudev/models/functions/secret_set_response.rbs +7 -0
  96. data/sig/zavudev/models/functions/secret_unset_params.rbs +30 -0
  97. data/sig/zavudev/models/me_retrieve_params.rbs +14 -0
  98. data/sig/zavudev/models/me_retrieve_response.rbs +75 -0
  99. data/sig/zavudev/models/message_show_typing_params.rbs +30 -0
  100. data/sig/zavudev/models/message_show_typing_response.rbs +13 -0
  101. data/sig/zavudev/models/senders/agent/execution_retrieve_params.rbs +32 -0
  102. data/sig/zavudev/models/senders/agent/execution_retrieve_response.rbs +18 -0
  103. data/sig/zavudev/models/webhook_event.rbs +4 -0
  104. data/sig/zavudev/models.rbs +22 -0
  105. data/sig/zavudev/resources/contacts.rbs +5 -0
  106. data/sig/zavudev/resources/functions/secrets.rbs +27 -0
  107. data/sig/zavudev/resources/functions.rbs +61 -0
  108. data/sig/zavudev/resources/me.rbs +11 -0
  109. data/sig/zavudev/resources/messages.rbs +6 -0
  110. data/sig/zavudev/resources/senders/agent/executions.rbs +6 -0
  111. metadata +89 -2
@@ -0,0 +1,126 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_retrieve_response =
4
+ { function: Zavudev::Models::FunctionRetrieveResponse::Function }
5
+
6
+ class FunctionRetrieveResponse < Zavudev::Internal::Type::BaseModel
7
+ attr_accessor function: Zavudev::Models::FunctionRetrieveResponse::Function
8
+
9
+ def initialize: (
10
+ function: Zavudev::Models::FunctionRetrieveResponse::Function
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ function: Zavudev::Models::FunctionRetrieveResponse::Function
15
+ }
16
+
17
+ type function =
18
+ {
19
+ id: String,
20
+ created_at: Time,
21
+ dependencies: ::Hash[Symbol, String],
22
+ http_enabled: bool,
23
+ memory_mb: Integer,
24
+ name: String,
25
+ runtime: Zavudev::Models::FunctionRetrieveResponse::Function::runtime,
26
+ slug: String,
27
+ status: Zavudev::Models::FunctionRetrieveResponse::Function::status,
28
+ timeout_sec: Integer,
29
+ updated_at: Time,
30
+ active_deployment_id: String?,
31
+ description: String?,
32
+ public_url: String?
33
+ }
34
+
35
+ class Function < Zavudev::Internal::Type::BaseModel
36
+ attr_accessor id: String
37
+
38
+ attr_accessor created_at: Time
39
+
40
+ attr_accessor dependencies: ::Hash[Symbol, String]
41
+
42
+ attr_accessor http_enabled: bool
43
+
44
+ attr_accessor memory_mb: Integer
45
+
46
+ attr_accessor name: String
47
+
48
+ attr_accessor runtime: Zavudev::Models::FunctionRetrieveResponse::Function::runtime
49
+
50
+ attr_accessor slug: String
51
+
52
+ attr_accessor status: Zavudev::Models::FunctionRetrieveResponse::Function::status
53
+
54
+ attr_accessor timeout_sec: Integer
55
+
56
+ attr_accessor updated_at: Time
57
+
58
+ attr_accessor active_deployment_id: String?
59
+
60
+ attr_accessor description: String?
61
+
62
+ attr_accessor public_url: String?
63
+
64
+ def initialize: (
65
+ id: String,
66
+ created_at: Time,
67
+ dependencies: ::Hash[Symbol, String],
68
+ http_enabled: bool,
69
+ memory_mb: Integer,
70
+ name: String,
71
+ runtime: Zavudev::Models::FunctionRetrieveResponse::Function::runtime,
72
+ slug: String,
73
+ status: Zavudev::Models::FunctionRetrieveResponse::Function::status,
74
+ timeout_sec: Integer,
75
+ updated_at: Time,
76
+ ?active_deployment_id: String?,
77
+ ?description: String?,
78
+ ?public_url: String?
79
+ ) -> void
80
+
81
+ def to_hash: -> {
82
+ id: String,
83
+ created_at: Time,
84
+ dependencies: ::Hash[Symbol, String],
85
+ http_enabled: bool,
86
+ memory_mb: Integer,
87
+ name: String,
88
+ runtime: Zavudev::Models::FunctionRetrieveResponse::Function::runtime,
89
+ slug: String,
90
+ status: Zavudev::Models::FunctionRetrieveResponse::Function::status,
91
+ timeout_sec: Integer,
92
+ updated_at: Time,
93
+ active_deployment_id: String?,
94
+ description: String?,
95
+ public_url: String?
96
+ }
97
+
98
+ type runtime = :nodejs24
99
+
100
+ module Runtime
101
+ extend Zavudev::Internal::Type::Enum
102
+
103
+ NODEJS24: :nodejs24
104
+
105
+ def self?.values: -> ::Array[Zavudev::Models::FunctionRetrieveResponse::Function::runtime]
106
+ end
107
+
108
+ type status =
109
+ :draft | :bundling | :deploying | :active | :failed | :disabled
110
+
111
+ module Status
112
+ extend Zavudev::Internal::Type::Enum
113
+
114
+ DRAFT: :draft
115
+ BUNDLING: :bundling
116
+ DEPLOYING: :deploying
117
+ ACTIVE: :active
118
+ FAILED: :failed
119
+ DISABLED: :disabled
120
+
121
+ def self?.values: -> ::Array[Zavudev::Models::FunctionRetrieveResponse::Function::status]
122
+ end
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,61 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_tail_logs_params =
4
+ {
5
+ function_id: String,
6
+ end_time: Integer,
7
+ filter_pattern: String,
8
+ limit: Integer,
9
+ next_token: String,
10
+ start_time: Integer
11
+ }
12
+ & Zavudev::Internal::Type::request_parameters
13
+
14
+ class FunctionTailLogsParams < Zavudev::Internal::Type::BaseModel
15
+ extend Zavudev::Internal::Type::RequestParameters::Converter
16
+ include Zavudev::Internal::Type::RequestParameters
17
+
18
+ attr_accessor function_id: String
19
+
20
+ attr_reader end_time: Integer?
21
+
22
+ def end_time=: (Integer) -> Integer
23
+
24
+ attr_reader filter_pattern: String?
25
+
26
+ def filter_pattern=: (String) -> String
27
+
28
+ attr_reader limit: Integer?
29
+
30
+ def limit=: (Integer) -> Integer
31
+
32
+ attr_reader next_token: String?
33
+
34
+ def next_token=: (String) -> String
35
+
36
+ attr_reader start_time: Integer?
37
+
38
+ def start_time=: (Integer) -> Integer
39
+
40
+ def initialize: (
41
+ function_id: String,
42
+ ?end_time: Integer,
43
+ ?filter_pattern: String,
44
+ ?limit: Integer,
45
+ ?next_token: String,
46
+ ?start_time: Integer,
47
+ ?request_options: Zavudev::request_opts
48
+ ) -> void
49
+
50
+ def to_hash: -> {
51
+ function_id: String,
52
+ end_time: Integer,
53
+ filter_pattern: String,
54
+ limit: Integer,
55
+ next_token: String,
56
+ start_time: Integer,
57
+ request_options: Zavudev::RequestOptions
58
+ }
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,37 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_tail_logs_response =
4
+ {
5
+ events: ::Array[Zavudev::Models::FunctionTailLogsResponse::Event],
6
+ next_token: String?
7
+ }
8
+
9
+ class FunctionTailLogsResponse < Zavudev::Internal::Type::BaseModel
10
+ attr_accessor events: ::Array[Zavudev::Models::FunctionTailLogsResponse::Event]
11
+
12
+ attr_accessor next_token: String?
13
+
14
+ def initialize: (
15
+ events: ::Array[Zavudev::Models::FunctionTailLogsResponse::Event],
16
+ ?next_token: String?
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ events: ::Array[Zavudev::Models::FunctionTailLogsResponse::Event],
21
+ next_token: String?
22
+ }
23
+
24
+ type event = { message: String, timestamp: Time }
25
+
26
+ class Event < Zavudev::Internal::Type::BaseModel
27
+ attr_accessor message: String
28
+
29
+ attr_accessor timestamp: Time
30
+
31
+ def initialize: (message: String, timestamp: Time) -> void
32
+
33
+ def to_hash: -> { message: String, timestamp: Time }
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,40 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_update_params =
4
+ {
5
+ function_id: String,
6
+ dependencies: ::Hash[Symbol, String],
7
+ source_code: String
8
+ }
9
+ & Zavudev::Internal::Type::request_parameters
10
+
11
+ class FunctionUpdateParams < Zavudev::Internal::Type::BaseModel
12
+ extend Zavudev::Internal::Type::RequestParameters::Converter
13
+ include Zavudev::Internal::Type::RequestParameters
14
+
15
+ attr_accessor function_id: String
16
+
17
+ attr_reader dependencies: ::Hash[Symbol, String]?
18
+
19
+ def dependencies=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
20
+
21
+ attr_reader source_code: String?
22
+
23
+ def source_code=: (String) -> String
24
+
25
+ def initialize: (
26
+ function_id: String,
27
+ ?dependencies: ::Hash[Symbol, String],
28
+ ?source_code: String,
29
+ ?request_options: Zavudev::request_opts
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ function_id: String,
34
+ dependencies: ::Hash[Symbol, String],
35
+ source_code: String,
36
+ request_options: Zavudev::RequestOptions
37
+ }
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,126 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_update_response =
4
+ { function: Zavudev::Models::FunctionUpdateResponse::Function }
5
+
6
+ class FunctionUpdateResponse < Zavudev::Internal::Type::BaseModel
7
+ attr_accessor function: Zavudev::Models::FunctionUpdateResponse::Function
8
+
9
+ def initialize: (
10
+ function: Zavudev::Models::FunctionUpdateResponse::Function
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ function: Zavudev::Models::FunctionUpdateResponse::Function
15
+ }
16
+
17
+ type function =
18
+ {
19
+ id: String,
20
+ created_at: Time,
21
+ dependencies: ::Hash[Symbol, String],
22
+ http_enabled: bool,
23
+ memory_mb: Integer,
24
+ name: String,
25
+ runtime: Zavudev::Models::FunctionUpdateResponse::Function::runtime,
26
+ slug: String,
27
+ status: Zavudev::Models::FunctionUpdateResponse::Function::status,
28
+ timeout_sec: Integer,
29
+ updated_at: Time,
30
+ active_deployment_id: String?,
31
+ description: String?,
32
+ public_url: String?
33
+ }
34
+
35
+ class Function < Zavudev::Internal::Type::BaseModel
36
+ attr_accessor id: String
37
+
38
+ attr_accessor created_at: Time
39
+
40
+ attr_accessor dependencies: ::Hash[Symbol, String]
41
+
42
+ attr_accessor http_enabled: bool
43
+
44
+ attr_accessor memory_mb: Integer
45
+
46
+ attr_accessor name: String
47
+
48
+ attr_accessor runtime: Zavudev::Models::FunctionUpdateResponse::Function::runtime
49
+
50
+ attr_accessor slug: String
51
+
52
+ attr_accessor status: Zavudev::Models::FunctionUpdateResponse::Function::status
53
+
54
+ attr_accessor timeout_sec: Integer
55
+
56
+ attr_accessor updated_at: Time
57
+
58
+ attr_accessor active_deployment_id: String?
59
+
60
+ attr_accessor description: String?
61
+
62
+ attr_accessor public_url: String?
63
+
64
+ def initialize: (
65
+ id: String,
66
+ created_at: Time,
67
+ dependencies: ::Hash[Symbol, String],
68
+ http_enabled: bool,
69
+ memory_mb: Integer,
70
+ name: String,
71
+ runtime: Zavudev::Models::FunctionUpdateResponse::Function::runtime,
72
+ slug: String,
73
+ status: Zavudev::Models::FunctionUpdateResponse::Function::status,
74
+ timeout_sec: Integer,
75
+ updated_at: Time,
76
+ ?active_deployment_id: String?,
77
+ ?description: String?,
78
+ ?public_url: String?
79
+ ) -> void
80
+
81
+ def to_hash: -> {
82
+ id: String,
83
+ created_at: Time,
84
+ dependencies: ::Hash[Symbol, String],
85
+ http_enabled: bool,
86
+ memory_mb: Integer,
87
+ name: String,
88
+ runtime: Zavudev::Models::FunctionUpdateResponse::Function::runtime,
89
+ slug: String,
90
+ status: Zavudev::Models::FunctionUpdateResponse::Function::status,
91
+ timeout_sec: Integer,
92
+ updated_at: Time,
93
+ active_deployment_id: String?,
94
+ description: String?,
95
+ public_url: String?
96
+ }
97
+
98
+ type runtime = :nodejs24
99
+
100
+ module Runtime
101
+ extend Zavudev::Internal::Type::Enum
102
+
103
+ NODEJS24: :nodejs24
104
+
105
+ def self?.values: -> ::Array[Zavudev::Models::FunctionUpdateResponse::Function::runtime]
106
+ end
107
+
108
+ type status =
109
+ :draft | :bundling | :deploying | :active | :failed | :disabled
110
+
111
+ module Status
112
+ extend Zavudev::Internal::Type::Enum
113
+
114
+ DRAFT: :draft
115
+ BUNDLING: :bundling
116
+ DEPLOYING: :deploying
117
+ ACTIVE: :active
118
+ FAILED: :failed
119
+ DISABLED: :disabled
120
+
121
+ def self?.values: -> ::Array[Zavudev::Models::FunctionUpdateResponse::Function::status]
122
+ end
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,25 @@
1
+ module Zavudev
2
+ module Models
3
+ module Functions
4
+ type secret_list_params =
5
+ { function_id: String } & Zavudev::Internal::Type::request_parameters
6
+
7
+ class SecretListParams < Zavudev::Internal::Type::BaseModel
8
+ extend Zavudev::Internal::Type::RequestParameters::Converter
9
+ include Zavudev::Internal::Type::RequestParameters
10
+
11
+ attr_accessor function_id: String
12
+
13
+ def initialize: (
14
+ function_id: String,
15
+ ?request_options: Zavudev::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ function_id: String,
20
+ request_options: Zavudev::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,70 @@
1
+ module Zavudev
2
+ module Models
3
+ module Functions
4
+ type secret_list_response =
5
+ {
6
+ secrets: ::Array[Zavudev::Models::Functions::SecretListResponse::Secret]
7
+ }
8
+
9
+ class SecretListResponse < Zavudev::Internal::Type::BaseModel
10
+ attr_accessor secrets: ::Array[Zavudev::Models::Functions::SecretListResponse::Secret]
11
+
12
+ def initialize: (
13
+ secrets: ::Array[Zavudev::Models::Functions::SecretListResponse::Secret]
14
+ ) -> void
15
+
16
+ def to_hash: -> {
17
+ secrets: ::Array[Zavudev::Models::Functions::SecretListResponse::Secret]
18
+ }
19
+
20
+ type secret =
21
+ {
22
+ id: String,
23
+ key: String,
24
+ :value_last4 => String,
25
+ created_at: Float,
26
+ synced_to_aws: bool,
27
+ updated_at: Float
28
+ }
29
+
30
+ class Secret < Zavudev::Internal::Type::BaseModel
31
+ attr_accessor id: String
32
+
33
+ attr_accessor key: String
34
+
35
+ attr_accessor value_last4: String
36
+
37
+ attr_reader created_at: Float?
38
+
39
+ def created_at=: (Float) -> Float
40
+
41
+ attr_reader synced_to_aws: bool?
42
+
43
+ def synced_to_aws=: (bool) -> bool
44
+
45
+ attr_reader updated_at: Float?
46
+
47
+ def updated_at=: (Float) -> Float
48
+
49
+ def initialize: (
50
+ id: String,
51
+ key: String,
52
+ value_last4: String,
53
+ ?created_at: Float,
54
+ ?synced_to_aws: bool,
55
+ ?updated_at: Float
56
+ ) -> void
57
+
58
+ def to_hash: -> {
59
+ id: String,
60
+ key: String,
61
+ :value_last4 => String,
62
+ created_at: Float,
63
+ synced_to_aws: bool,
64
+ updated_at: Float
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,34 @@
1
+ module Zavudev
2
+ module Models
3
+ module Functions
4
+ type secret_set_params =
5
+ { function_id: String, key: String, value: String }
6
+ & Zavudev::Internal::Type::request_parameters
7
+
8
+ class SecretSetParams < Zavudev::Internal::Type::BaseModel
9
+ extend Zavudev::Internal::Type::RequestParameters::Converter
10
+ include Zavudev::Internal::Type::RequestParameters
11
+
12
+ attr_accessor function_id: String
13
+
14
+ attr_accessor key: String
15
+
16
+ attr_accessor value: String
17
+
18
+ def initialize: (
19
+ function_id: String,
20
+ key: String,
21
+ value: String,
22
+ ?request_options: Zavudev::request_opts
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ function_id: String,
27
+ key: String,
28
+ value: String,
29
+ request_options: Zavudev::RequestOptions
30
+ }
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,7 @@
1
+ module Zavudev
2
+ module Models
3
+ module Functions
4
+ SecretSetResponse: Zavudev::Internal::Type::Converter
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,30 @@
1
+ module Zavudev
2
+ module Models
3
+ module Functions
4
+ type secret_unset_params =
5
+ { function_id: String, key: String }
6
+ & Zavudev::Internal::Type::request_parameters
7
+
8
+ class SecretUnsetParams < Zavudev::Internal::Type::BaseModel
9
+ extend Zavudev::Internal::Type::RequestParameters::Converter
10
+ include Zavudev::Internal::Type::RequestParameters
11
+
12
+ attr_accessor function_id: String
13
+
14
+ attr_accessor key: String
15
+
16
+ def initialize: (
17
+ function_id: String,
18
+ key: String,
19
+ ?request_options: Zavudev::request_opts
20
+ ) -> void
21
+
22
+ def to_hash: -> {
23
+ function_id: String,
24
+ key: String,
25
+ request_options: Zavudev::RequestOptions
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,14 @@
1
+ module Zavudev
2
+ module Models
3
+ type me_retrieve_params = { } & Zavudev::Internal::Type::request_parameters
4
+
5
+ class MeRetrieveParams < Zavudev::Internal::Type::BaseModel
6
+ extend Zavudev::Internal::Type::RequestParameters::Converter
7
+ include Zavudev::Internal::Type::RequestParameters
8
+
9
+ def initialize: (?request_options: Zavudev::request_opts) -> void
10
+
11
+ def to_hash: -> { request_options: Zavudev::RequestOptions }
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,75 @@
1
+ module Zavudev
2
+ module Models
3
+ type me_retrieve_response =
4
+ {
5
+ api_key: Zavudev::Models::MeRetrieveResponse::APIKey,
6
+ is_test_mode: bool,
7
+ project: Zavudev::Models::MeRetrieveResponse::Project,
8
+ team: Zavudev::Models::MeRetrieveResponse::Team
9
+ }
10
+
11
+ class MeRetrieveResponse < Zavudev::Internal::Type::BaseModel
12
+ attr_accessor api_key: Zavudev::Models::MeRetrieveResponse::APIKey
13
+
14
+ attr_accessor is_test_mode: bool
15
+
16
+ attr_accessor project: Zavudev::Models::MeRetrieveResponse::Project
17
+
18
+ attr_accessor team: Zavudev::Models::MeRetrieveResponse::Team
19
+
20
+ def initialize: (
21
+ api_key: Zavudev::Models::MeRetrieveResponse::APIKey,
22
+ is_test_mode: bool,
23
+ project: Zavudev::Models::MeRetrieveResponse::Project,
24
+ team: Zavudev::Models::MeRetrieveResponse::Team
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ api_key: Zavudev::Models::MeRetrieveResponse::APIKey,
29
+ is_test_mode: bool,
30
+ project: Zavudev::Models::MeRetrieveResponse::Project,
31
+ team: Zavudev::Models::MeRetrieveResponse::Team
32
+ }
33
+
34
+ type api_key = { id: String }
35
+
36
+ class APIKey < Zavudev::Internal::Type::BaseModel
37
+ attr_accessor id: String
38
+
39
+ def initialize: (id: String) -> void
40
+
41
+ def to_hash: -> { id: String }
42
+ end
43
+
44
+ type project = { id: String, is_sub_account: bool, name: String? }
45
+
46
+ class Project < Zavudev::Internal::Type::BaseModel
47
+ attr_accessor id: String
48
+
49
+ attr_accessor is_sub_account: bool
50
+
51
+ attr_accessor name: String?
52
+
53
+ def initialize: (
54
+ id: String,
55
+ is_sub_account: bool,
56
+ name: String?
57
+ ) -> void
58
+
59
+ def to_hash: -> { id: String, is_sub_account: bool, name: String? }
60
+ end
61
+
62
+ type team = { id: String, name: String? }
63
+
64
+ class Team < Zavudev::Internal::Type::BaseModel
65
+ attr_accessor id: String
66
+
67
+ attr_accessor name: String?
68
+
69
+ def initialize: (id: String, name: String?) -> void
70
+
71
+ def to_hash: -> { id: String, name: String? }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,30 @@
1
+ module Zavudev
2
+ module Models
3
+ type message_show_typing_params =
4
+ { message_id: String, zavu_sender: String }
5
+ & Zavudev::Internal::Type::request_parameters
6
+
7
+ class MessageShowTypingParams < Zavudev::Internal::Type::BaseModel
8
+ extend Zavudev::Internal::Type::RequestParameters::Converter
9
+ include Zavudev::Internal::Type::RequestParameters
10
+
11
+ attr_accessor message_id: String
12
+
13
+ attr_reader zavu_sender: String?
14
+
15
+ def zavu_sender=: (String) -> String
16
+
17
+ def initialize: (
18
+ message_id: String,
19
+ ?zavu_sender: String,
20
+ ?request_options: Zavudev::request_opts
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ message_id: String,
25
+ zavu_sender: String,
26
+ request_options: Zavudev::RequestOptions
27
+ }
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,13 @@
1
+ module Zavudev
2
+ module Models
3
+ type message_show_typing_response = { success: bool }
4
+
5
+ class MessageShowTypingResponse < Zavudev::Internal::Type::BaseModel
6
+ attr_accessor success: bool
7
+
8
+ def initialize: (success: bool) -> void
9
+
10
+ def to_hash: -> { success: bool }
11
+ end
12
+ end
13
+ end