zavudev 0.10.0 → 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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -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.rb +22 -0
  32. data/lib/zavudev/resources/contacts.rb +24 -0
  33. data/lib/zavudev/resources/functions/secrets.rb +98 -0
  34. data/lib/zavudev/resources/functions.rb +220 -0
  35. data/lib/zavudev/resources/me.rb +33 -0
  36. data/lib/zavudev/resources/messages.rb +31 -0
  37. data/lib/zavudev/resources/senders/agent/executions.rb +26 -0
  38. data/lib/zavudev/version.rb +1 -1
  39. data/lib/zavudev.rb +29 -0
  40. data/rbi/zavudev/client.rbi +6 -0
  41. data/rbi/zavudev/models/contact_delete_params.rbi +35 -0
  42. data/rbi/zavudev/models/function_create_params.rbi +177 -0
  43. data/rbi/zavudev/models/function_create_response.rbi +277 -0
  44. data/rbi/zavudev/models/function_delete_params.rbi +35 -0
  45. data/rbi/zavudev/models/function_delete_response.rbi +44 -0
  46. data/rbi/zavudev/models/function_deploy_params.rbi +63 -0
  47. data/rbi/zavudev/models/function_deploy_response.rbi +196 -0
  48. data/rbi/zavudev/models/function_get_deployment_params.rbi +38 -0
  49. data/rbi/zavudev/models/function_get_deployment_response.rbi +201 -0
  50. data/rbi/zavudev/models/function_retrieve_params.rbi +35 -0
  51. data/rbi/zavudev/models/function_retrieve_response.rbi +277 -0
  52. data/rbi/zavudev/models/function_tail_logs_params.rbi +90 -0
  53. data/rbi/zavudev/models/function_tail_logs_response.rbi +75 -0
  54. data/rbi/zavudev/models/function_update_params.rbi +63 -0
  55. data/rbi/zavudev/models/function_update_response.rbi +277 -0
  56. data/rbi/zavudev/models/functions/secret_list_params.rbi +40 -0
  57. data/rbi/zavudev/models/functions/secret_list_response.rbi +118 -0
  58. data/rbi/zavudev/models/functions/secret_set_params.rbi +53 -0
  59. data/rbi/zavudev/models/functions/secret_set_response.rbi +9 -0
  60. data/rbi/zavudev/models/functions/secret_unset_params.rbi +48 -0
  61. data/rbi/zavudev/models/me_retrieve_params.rbi +27 -0
  62. data/rbi/zavudev/models/me_retrieve_response.rbi +151 -0
  63. data/rbi/zavudev/models/message_show_typing_params.rbi +46 -0
  64. data/rbi/zavudev/models/message_show_typing_response.rbi +26 -0
  65. data/rbi/zavudev/models/senders/agent/execution_retrieve_params.rbi +50 -0
  66. data/rbi/zavudev/models/senders/agent/execution_retrieve_response.rbi +41 -0
  67. data/rbi/zavudev/models.rbi +22 -0
  68. data/rbi/zavudev/resources/contacts.rbi +15 -0
  69. data/rbi/zavudev/resources/functions/secrets.rbi +69 -0
  70. data/rbi/zavudev/resources/functions.rbi +171 -0
  71. data/rbi/zavudev/resources/me.rbi +22 -0
  72. data/rbi/zavudev/resources/messages.rbi +21 -0
  73. data/rbi/zavudev/resources/senders/agent/executions.rbi +14 -0
  74. data/sig/zavudev/client.rbs +4 -0
  75. data/sig/zavudev/models/contact_delete_params.rbs +23 -0
  76. data/sig/zavudev/models/function_create_params.rbs +107 -0
  77. data/sig/zavudev/models/function_create_response.rbs +126 -0
  78. data/sig/zavudev/models/function_delete_params.rbs +23 -0
  79. data/sig/zavudev/models/function_delete_response.rbs +22 -0
  80. data/sig/zavudev/models/function_deploy_params.rbs +40 -0
  81. data/sig/zavudev/models/function_deploy_response.rbs +98 -0
  82. data/sig/zavudev/models/function_get_deployment_params.rbs +23 -0
  83. data/sig/zavudev/models/function_get_deployment_response.rbs +98 -0
  84. data/sig/zavudev/models/function_retrieve_params.rbs +23 -0
  85. data/sig/zavudev/models/function_retrieve_response.rbs +126 -0
  86. data/sig/zavudev/models/function_tail_logs_params.rbs +61 -0
  87. data/sig/zavudev/models/function_tail_logs_response.rbs +37 -0
  88. data/sig/zavudev/models/function_update_params.rbs +40 -0
  89. data/sig/zavudev/models/function_update_response.rbs +126 -0
  90. data/sig/zavudev/models/functions/secret_list_params.rbs +25 -0
  91. data/sig/zavudev/models/functions/secret_list_response.rbs +70 -0
  92. data/sig/zavudev/models/functions/secret_set_params.rbs +34 -0
  93. data/sig/zavudev/models/functions/secret_set_response.rbs +7 -0
  94. data/sig/zavudev/models/functions/secret_unset_params.rbs +30 -0
  95. data/sig/zavudev/models/me_retrieve_params.rbs +14 -0
  96. data/sig/zavudev/models/me_retrieve_response.rbs +75 -0
  97. data/sig/zavudev/models/message_show_typing_params.rbs +30 -0
  98. data/sig/zavudev/models/message_show_typing_response.rbs +13 -0
  99. data/sig/zavudev/models/senders/agent/execution_retrieve_params.rbs +32 -0
  100. data/sig/zavudev/models/senders/agent/execution_retrieve_response.rbs +18 -0
  101. data/sig/zavudev/models.rbs +22 -0
  102. data/sig/zavudev/resources/contacts.rbs +5 -0
  103. data/sig/zavudev/resources/functions/secrets.rbs +27 -0
  104. data/sig/zavudev/resources/functions.rbs +61 -0
  105. data/sig/zavudev/resources/me.rbs +11 -0
  106. data/sig/zavudev/resources/messages.rbs +6 -0
  107. data/sig/zavudev/resources/senders/agent/executions.rbs +6 -0
  108. metadata +88 -1
@@ -0,0 +1,168 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ # @see Zavudev::Resources::Functions#retrieve
6
+ class FunctionRetrieveResponse < Zavudev::Internal::Type::BaseModel
7
+ # @!attribute function
8
+ # A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
9
+ # messaging events or HTTP requests.
10
+ #
11
+ # @return [Zavudev::Models::FunctionRetrieveResponse::Function]
12
+ required :function, -> { Zavudev::Models::FunctionRetrieveResponse::Function }
13
+
14
+ # @!method initialize(function:)
15
+ # Some parameter documentations has been truncated, see
16
+ # {Zavudev::Models::FunctionRetrieveResponse} for more details.
17
+ #
18
+ # @param function [Zavudev::Models::FunctionRetrieveResponse::Function] A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
19
+
20
+ # @see Zavudev::Models::FunctionRetrieveResponse#function
21
+ class Function < Zavudev::Internal::Type::BaseModel
22
+ # @!attribute id
23
+ #
24
+ # @return [String]
25
+ required :id, String
26
+
27
+ # @!attribute created_at
28
+ #
29
+ # @return [Time]
30
+ required :created_at, Time, api_name: :createdAt
31
+
32
+ # @!attribute dependencies
33
+ # npm dependencies installed in the function bundle. Keys are package names,
34
+ # values are semver ranges.
35
+ #
36
+ # @return [Hash{Symbol=>String}]
37
+ required :dependencies, Zavudev::Internal::Type::HashOf[String]
38
+
39
+ # @!attribute http_enabled
40
+ # Whether the function can be invoked over HTTPS via its public URL.
41
+ #
42
+ # @return [Boolean]
43
+ required :http_enabled, Zavudev::Internal::Type::Boolean, api_name: :httpEnabled
44
+
45
+ # @!attribute memory_mb
46
+ # Memory allocation in MB.
47
+ #
48
+ # @return [Integer]
49
+ required :memory_mb, Integer, api_name: :memoryMb
50
+
51
+ # @!attribute name
52
+ #
53
+ # @return [String]
54
+ required :name, String
55
+
56
+ # @!attribute runtime
57
+ # Runtime the function is deployed on.
58
+ #
59
+ # @return [Symbol, Zavudev::Models::FunctionRetrieveResponse::Function::Runtime]
60
+ required :runtime, enum: -> { Zavudev::Models::FunctionRetrieveResponse::Function::Runtime }
61
+
62
+ # @!attribute slug
63
+ # URL-safe identifier, unique per project.
64
+ #
65
+ # @return [String]
66
+ required :slug, String
67
+
68
+ # @!attribute status
69
+ # Lifecycle status of a Zavu Function.
70
+ #
71
+ # @return [Symbol, Zavudev::Models::FunctionRetrieveResponse::Function::Status]
72
+ required :status, enum: -> { Zavudev::Models::FunctionRetrieveResponse::Function::Status }
73
+
74
+ # @!attribute timeout_sec
75
+ # Per-invocation timeout in seconds.
76
+ #
77
+ # @return [Integer]
78
+ required :timeout_sec, Integer, api_name: :timeoutSec
79
+
80
+ # @!attribute updated_at
81
+ #
82
+ # @return [Time]
83
+ required :updated_at, Time, api_name: :updatedAt
84
+
85
+ # @!attribute active_deployment_id
86
+ # ID of the deployment currently serving traffic.
87
+ #
88
+ # @return [String, nil]
89
+ optional :active_deployment_id, String, api_name: :activeDeploymentId, nil?: true
90
+
91
+ # @!attribute description
92
+ #
93
+ # @return [String, nil]
94
+ optional :description, String, nil?: true
95
+
96
+ # @!attribute public_url
97
+ # HTTPS endpoint when httpEnabled is true.
98
+ #
99
+ # @return [String, nil]
100
+ optional :public_url, String, api_name: :publicUrl, nil?: true
101
+
102
+ # @!method initialize(id:, created_at:, dependencies:, http_enabled:, memory_mb:, name:, runtime:, slug:, status:, timeout_sec:, updated_at:, active_deployment_id: nil, description: nil, public_url: nil)
103
+ # Some parameter documentations has been truncated, see
104
+ # {Zavudev::Models::FunctionRetrieveResponse::Function} for more details.
105
+ #
106
+ # A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
107
+ # messaging events or HTTP requests.
108
+ #
109
+ # @param id [String]
110
+ #
111
+ # @param created_at [Time]
112
+ #
113
+ # @param dependencies [Hash{Symbol=>String}] npm dependencies installed in the function bundle. Keys are package names, value
114
+ #
115
+ # @param http_enabled [Boolean] Whether the function can be invoked over HTTPS via its public URL.
116
+ #
117
+ # @param memory_mb [Integer] Memory allocation in MB.
118
+ #
119
+ # @param name [String]
120
+ #
121
+ # @param runtime [Symbol, Zavudev::Models::FunctionRetrieveResponse::Function::Runtime] Runtime the function is deployed on.
122
+ #
123
+ # @param slug [String] URL-safe identifier, unique per project.
124
+ #
125
+ # @param status [Symbol, Zavudev::Models::FunctionRetrieveResponse::Function::Status] Lifecycle status of a Zavu Function.
126
+ #
127
+ # @param timeout_sec [Integer] Per-invocation timeout in seconds.
128
+ #
129
+ # @param updated_at [Time]
130
+ #
131
+ # @param active_deployment_id [String, nil] ID of the deployment currently serving traffic.
132
+ #
133
+ # @param description [String, nil]
134
+ #
135
+ # @param public_url [String, nil] HTTPS endpoint when httpEnabled is true.
136
+
137
+ # Runtime the function is deployed on.
138
+ #
139
+ # @see Zavudev::Models::FunctionRetrieveResponse::Function#runtime
140
+ module Runtime
141
+ extend Zavudev::Internal::Type::Enum
142
+
143
+ NODEJS24 = :nodejs24
144
+
145
+ # @!method self.values
146
+ # @return [Array<Symbol>]
147
+ end
148
+
149
+ # Lifecycle status of a Zavu Function.
150
+ #
151
+ # @see Zavudev::Models::FunctionRetrieveResponse::Function#status
152
+ module Status
153
+ extend Zavudev::Internal::Type::Enum
154
+
155
+ DRAFT = :draft
156
+ BUNDLING = :bundling
157
+ DEPLOYING = :deploying
158
+ ACTIVE = :active
159
+ FAILED = :failed
160
+ DISABLED = :disabled
161
+
162
+ # @!method self.values
163
+ # @return [Array<Symbol>]
164
+ end
165
+ end
166
+ end
167
+ end
168
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ # @see Zavudev::Resources::Functions#tail_logs
6
+ class FunctionTailLogsParams < Zavudev::Internal::Type::BaseModel
7
+ extend Zavudev::Internal::Type::RequestParameters::Converter
8
+ include Zavudev::Internal::Type::RequestParameters
9
+
10
+ # @!attribute function_id
11
+ #
12
+ # @return [String]
13
+ required :function_id, String
14
+
15
+ # @!attribute end_time
16
+ # End of the log window in Unix epoch milliseconds.
17
+ #
18
+ # @return [Integer, nil]
19
+ optional :end_time, Integer
20
+
21
+ # @!attribute filter_pattern
22
+ #
23
+ # @return [String, nil]
24
+ optional :filter_pattern, String
25
+
26
+ # @!attribute limit
27
+ #
28
+ # @return [Integer, nil]
29
+ optional :limit, Integer
30
+
31
+ # @!attribute next_token
32
+ #
33
+ # @return [String, nil]
34
+ optional :next_token, String
35
+
36
+ # @!attribute start_time
37
+ # Start of the log window in Unix epoch milliseconds.
38
+ #
39
+ # @return [Integer, nil]
40
+ optional :start_time, Integer
41
+
42
+ # @!method initialize(function_id:, end_time: nil, filter_pattern: nil, limit: nil, next_token: nil, start_time: nil, request_options: {})
43
+ # @param function_id [String]
44
+ #
45
+ # @param end_time [Integer] End of the log window in Unix epoch milliseconds.
46
+ #
47
+ # @param filter_pattern [String]
48
+ #
49
+ # @param limit [Integer]
50
+ #
51
+ # @param next_token [String]
52
+ #
53
+ # @param start_time [Integer] Start of the log window in Unix epoch milliseconds.
54
+ #
55
+ # @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ # @see Zavudev::Resources::Functions#tail_logs
6
+ class FunctionTailLogsResponse < Zavudev::Internal::Type::BaseModel
7
+ # @!attribute events
8
+ #
9
+ # @return [Array<Zavudev::Models::FunctionTailLogsResponse::Event>]
10
+ required :events,
11
+ -> { Zavudev::Internal::Type::ArrayOf[Zavudev::Models::FunctionTailLogsResponse::Event] }
12
+
13
+ # @!attribute next_token
14
+ # Pass to the next request to fetch the following page of logs.
15
+ #
16
+ # @return [String, nil]
17
+ optional :next_token, String, api_name: :nextToken, nil?: true
18
+
19
+ # @!method initialize(events:, next_token: nil)
20
+ # @param events [Array<Zavudev::Models::FunctionTailLogsResponse::Event>]
21
+ #
22
+ # @param next_token [String, nil] Pass to the next request to fetch the following page of logs.
23
+
24
+ class Event < Zavudev::Internal::Type::BaseModel
25
+ # @!attribute message
26
+ #
27
+ # @return [String]
28
+ required :message, String
29
+
30
+ # @!attribute timestamp
31
+ #
32
+ # @return [Time]
33
+ required :timestamp, Time
34
+
35
+ # @!method initialize(message:, timestamp:)
36
+ # @param message [String]
37
+ # @param timestamp [Time]
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ # @see Zavudev::Resources::Functions#update
6
+ class FunctionUpdateParams < Zavudev::Internal::Type::BaseModel
7
+ extend Zavudev::Internal::Type::RequestParameters::Converter
8
+ include Zavudev::Internal::Type::RequestParameters
9
+
10
+ # @!attribute function_id
11
+ #
12
+ # @return [String]
13
+ required :function_id, String
14
+
15
+ # @!attribute dependencies
16
+ # New dependency map (replaces existing dependencies).
17
+ #
18
+ # @return [Hash{Symbol=>String}, nil]
19
+ optional :dependencies, Zavudev::Internal::Type::HashOf[String]
20
+
21
+ # @!attribute source_code
22
+ # New source code to publish (replaces the draft).
23
+ #
24
+ # @return [String, nil]
25
+ optional :source_code, String, api_name: :sourceCode
26
+
27
+ # @!method initialize(function_id:, dependencies: nil, source_code: nil, request_options: {})
28
+ # @param function_id [String]
29
+ #
30
+ # @param dependencies [Hash{Symbol=>String}] New dependency map (replaces existing dependencies).
31
+ #
32
+ # @param source_code [String] New source code to publish (replaces the draft).
33
+ #
34
+ # @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,168 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ # @see Zavudev::Resources::Functions#update
6
+ class FunctionUpdateResponse < Zavudev::Internal::Type::BaseModel
7
+ # @!attribute function
8
+ # A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
9
+ # messaging events or HTTP requests.
10
+ #
11
+ # @return [Zavudev::Models::FunctionUpdateResponse::Function]
12
+ required :function, -> { Zavudev::Models::FunctionUpdateResponse::Function }
13
+
14
+ # @!method initialize(function:)
15
+ # Some parameter documentations has been truncated, see
16
+ # {Zavudev::Models::FunctionUpdateResponse} for more details.
17
+ #
18
+ # @param function [Zavudev::Models::FunctionUpdateResponse::Function] A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
19
+
20
+ # @see Zavudev::Models::FunctionUpdateResponse#function
21
+ class Function < Zavudev::Internal::Type::BaseModel
22
+ # @!attribute id
23
+ #
24
+ # @return [String]
25
+ required :id, String
26
+
27
+ # @!attribute created_at
28
+ #
29
+ # @return [Time]
30
+ required :created_at, Time, api_name: :createdAt
31
+
32
+ # @!attribute dependencies
33
+ # npm dependencies installed in the function bundle. Keys are package names,
34
+ # values are semver ranges.
35
+ #
36
+ # @return [Hash{Symbol=>String}]
37
+ required :dependencies, Zavudev::Internal::Type::HashOf[String]
38
+
39
+ # @!attribute http_enabled
40
+ # Whether the function can be invoked over HTTPS via its public URL.
41
+ #
42
+ # @return [Boolean]
43
+ required :http_enabled, Zavudev::Internal::Type::Boolean, api_name: :httpEnabled
44
+
45
+ # @!attribute memory_mb
46
+ # Memory allocation in MB.
47
+ #
48
+ # @return [Integer]
49
+ required :memory_mb, Integer, api_name: :memoryMb
50
+
51
+ # @!attribute name
52
+ #
53
+ # @return [String]
54
+ required :name, String
55
+
56
+ # @!attribute runtime
57
+ # Runtime the function is deployed on.
58
+ #
59
+ # @return [Symbol, Zavudev::Models::FunctionUpdateResponse::Function::Runtime]
60
+ required :runtime, enum: -> { Zavudev::Models::FunctionUpdateResponse::Function::Runtime }
61
+
62
+ # @!attribute slug
63
+ # URL-safe identifier, unique per project.
64
+ #
65
+ # @return [String]
66
+ required :slug, String
67
+
68
+ # @!attribute status
69
+ # Lifecycle status of a Zavu Function.
70
+ #
71
+ # @return [Symbol, Zavudev::Models::FunctionUpdateResponse::Function::Status]
72
+ required :status, enum: -> { Zavudev::Models::FunctionUpdateResponse::Function::Status }
73
+
74
+ # @!attribute timeout_sec
75
+ # Per-invocation timeout in seconds.
76
+ #
77
+ # @return [Integer]
78
+ required :timeout_sec, Integer, api_name: :timeoutSec
79
+
80
+ # @!attribute updated_at
81
+ #
82
+ # @return [Time]
83
+ required :updated_at, Time, api_name: :updatedAt
84
+
85
+ # @!attribute active_deployment_id
86
+ # ID of the deployment currently serving traffic.
87
+ #
88
+ # @return [String, nil]
89
+ optional :active_deployment_id, String, api_name: :activeDeploymentId, nil?: true
90
+
91
+ # @!attribute description
92
+ #
93
+ # @return [String, nil]
94
+ optional :description, String, nil?: true
95
+
96
+ # @!attribute public_url
97
+ # HTTPS endpoint when httpEnabled is true.
98
+ #
99
+ # @return [String, nil]
100
+ optional :public_url, String, api_name: :publicUrl, nil?: true
101
+
102
+ # @!method initialize(id:, created_at:, dependencies:, http_enabled:, memory_mb:, name:, runtime:, slug:, status:, timeout_sec:, updated_at:, active_deployment_id: nil, description: nil, public_url: nil)
103
+ # Some parameter documentations has been truncated, see
104
+ # {Zavudev::Models::FunctionUpdateResponse::Function} for more details.
105
+ #
106
+ # A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
107
+ # messaging events or HTTP requests.
108
+ #
109
+ # @param id [String]
110
+ #
111
+ # @param created_at [Time]
112
+ #
113
+ # @param dependencies [Hash{Symbol=>String}] npm dependencies installed in the function bundle. Keys are package names, value
114
+ #
115
+ # @param http_enabled [Boolean] Whether the function can be invoked over HTTPS via its public URL.
116
+ #
117
+ # @param memory_mb [Integer] Memory allocation in MB.
118
+ #
119
+ # @param name [String]
120
+ #
121
+ # @param runtime [Symbol, Zavudev::Models::FunctionUpdateResponse::Function::Runtime] Runtime the function is deployed on.
122
+ #
123
+ # @param slug [String] URL-safe identifier, unique per project.
124
+ #
125
+ # @param status [Symbol, Zavudev::Models::FunctionUpdateResponse::Function::Status] Lifecycle status of a Zavu Function.
126
+ #
127
+ # @param timeout_sec [Integer] Per-invocation timeout in seconds.
128
+ #
129
+ # @param updated_at [Time]
130
+ #
131
+ # @param active_deployment_id [String, nil] ID of the deployment currently serving traffic.
132
+ #
133
+ # @param description [String, nil]
134
+ #
135
+ # @param public_url [String, nil] HTTPS endpoint when httpEnabled is true.
136
+
137
+ # Runtime the function is deployed on.
138
+ #
139
+ # @see Zavudev::Models::FunctionUpdateResponse::Function#runtime
140
+ module Runtime
141
+ extend Zavudev::Internal::Type::Enum
142
+
143
+ NODEJS24 = :nodejs24
144
+
145
+ # @!method self.values
146
+ # @return [Array<Symbol>]
147
+ end
148
+
149
+ # Lifecycle status of a Zavu Function.
150
+ #
151
+ # @see Zavudev::Models::FunctionUpdateResponse::Function#status
152
+ module Status
153
+ extend Zavudev::Internal::Type::Enum
154
+
155
+ DRAFT = :draft
156
+ BUNDLING = :bundling
157
+ DEPLOYING = :deploying
158
+ ACTIVE = :active
159
+ FAILED = :failed
160
+ DISABLED = :disabled
161
+
162
+ # @!method self.values
163
+ # @return [Array<Symbol>]
164
+ end
165
+ end
166
+ end
167
+ end
168
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ module Functions
6
+ # @see Zavudev::Resources::Functions::Secrets#list
7
+ class SecretListParams < Zavudev::Internal::Type::BaseModel
8
+ extend Zavudev::Internal::Type::RequestParameters::Converter
9
+ include Zavudev::Internal::Type::RequestParameters
10
+
11
+ # @!attribute function_id
12
+ #
13
+ # @return [String]
14
+ required :function_id, String
15
+
16
+ # @!method initialize(function_id:, request_options: {})
17
+ # @param function_id [String]
18
+ # @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ module Functions
6
+ # @see Zavudev::Resources::Functions::Secrets#list
7
+ class SecretListResponse < Zavudev::Internal::Type::BaseModel
8
+ # @!attribute secrets
9
+ #
10
+ # @return [Array<Zavudev::Models::Functions::SecretListResponse::Secret>]
11
+ required :secrets,
12
+ -> { Zavudev::Internal::Type::ArrayOf[Zavudev::Models::Functions::SecretListResponse::Secret] }
13
+
14
+ # @!method initialize(secrets:)
15
+ # @param secrets [Array<Zavudev::Models::Functions::SecretListResponse::Secret>]
16
+
17
+ class Secret < Zavudev::Internal::Type::BaseModel
18
+ # @!attribute id
19
+ #
20
+ # @return [String]
21
+ required :id, String
22
+
23
+ # @!attribute key
24
+ #
25
+ # @return [String]
26
+ required :key, String
27
+
28
+ # @!attribute value_last4
29
+ #
30
+ # @return [String]
31
+ required :value_last4, String, api_name: :valueLast4
32
+
33
+ # @!attribute created_at
34
+ #
35
+ # @return [Float, nil]
36
+ optional :created_at, Float, api_name: :createdAt
37
+
38
+ # @!attribute synced_to_aws
39
+ #
40
+ # @return [Boolean, nil]
41
+ optional :synced_to_aws, Zavudev::Internal::Type::Boolean, api_name: :syncedToAws
42
+
43
+ # @!attribute updated_at
44
+ #
45
+ # @return [Float, nil]
46
+ optional :updated_at, Float, api_name: :updatedAt
47
+
48
+ # @!method initialize(id:, key:, value_last4:, created_at: nil, synced_to_aws: nil, updated_at: nil)
49
+ # @param id [String]
50
+ # @param key [String]
51
+ # @param value_last4 [String]
52
+ # @param created_at [Float]
53
+ # @param synced_to_aws [Boolean]
54
+ # @param updated_at [Float]
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ module Functions
6
+ # @see Zavudev::Resources::Functions::Secrets#set
7
+ class SecretSetParams < Zavudev::Internal::Type::BaseModel
8
+ extend Zavudev::Internal::Type::RequestParameters::Converter
9
+ include Zavudev::Internal::Type::RequestParameters
10
+
11
+ # @!attribute function_id
12
+ #
13
+ # @return [String]
14
+ required :function_id, String
15
+
16
+ # @!attribute key
17
+ #
18
+ # @return [String]
19
+ required :key, String
20
+
21
+ # @!attribute value
22
+ #
23
+ # @return [String]
24
+ required :value, String
25
+
26
+ # @!method initialize(function_id:, key:, value:, request_options: {})
27
+ # @param function_id [String]
28
+ # @param key [String]
29
+ # @param value [String]
30
+ # @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ module Functions
6
+ # @type [Zavudev::Internal::Type::Converter]
7
+ SecretSetResponse = Zavudev::Internal::Type::Unknown
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ module Functions
6
+ # @see Zavudev::Resources::Functions::Secrets#unset
7
+ class SecretUnsetParams < Zavudev::Internal::Type::BaseModel
8
+ extend Zavudev::Internal::Type::RequestParameters::Converter
9
+ include Zavudev::Internal::Type::RequestParameters
10
+
11
+ # @!attribute function_id
12
+ #
13
+ # @return [String]
14
+ required :function_id, String
15
+
16
+ # @!attribute key
17
+ #
18
+ # @return [String]
19
+ required :key, String
20
+
21
+ # @!method initialize(function_id:, key:, request_options: {})
22
+ # @param function_id [String]
23
+ # @param key [String]
24
+ # @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Zavudev
4
+ module Models
5
+ # @see Zavudev::Resources::Me#retrieve
6
+ class MeRetrieveParams < Zavudev::Internal::Type::BaseModel
7
+ extend Zavudev::Internal::Type::RequestParameters::Converter
8
+ include Zavudev::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end