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
@@ -5,6 +5,20 @@ module Zavudev
5
5
  class Senders
6
6
  class Agent
7
7
  class Executions
8
+ # Fetch full details for one execution — including `errorMessage`, `errorCode`,
9
+ # and `responseText`. Use this to debug failures surfaced by the list endpoint.
10
+ sig do
11
+ params(
12
+ execution_id: String,
13
+ sender_id: String,
14
+ request_options: Zavudev::RequestOptions::OrHash
15
+ ).returns(
16
+ Zavudev::Models::Senders::Agent::ExecutionRetrieveResponse
17
+ )
18
+ end
19
+ def retrieve(execution_id, sender_id:, request_options: {})
20
+ end
21
+
8
22
  # List recent agent executions with pagination.
9
23
  sig do
10
24
  params(
@@ -44,6 +44,10 @@ module Zavudev
44
44
 
45
45
  attr_reader number_10dlc: Zavudev::Resources::Number10dlc
46
46
 
47
+ attr_reader me: Zavudev::Resources::Me
48
+
49
+ attr_reader functions: Zavudev::Resources::Functions
50
+
47
51
  private def auth_headers: -> ::Hash[String, String]
48
52
 
49
53
  def initialize: (
@@ -0,0 +1,23 @@
1
+ module Zavudev
2
+ module Models
3
+ type contact_delete_params =
4
+ { contact_id: String } & Zavudev::Internal::Type::request_parameters
5
+
6
+ class ContactDeleteParams < Zavudev::Internal::Type::BaseModel
7
+ extend Zavudev::Internal::Type::RequestParameters::Converter
8
+ include Zavudev::Internal::Type::RequestParameters
9
+
10
+ attr_accessor contact_id: String
11
+
12
+ def initialize: (
13
+ contact_id: String,
14
+ ?request_options: Zavudev::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ contact_id: String,
19
+ request_options: Zavudev::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,107 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_create_params =
4
+ {
5
+ name: String,
6
+ slug: String,
7
+ dependencies: ::Hash[Symbol, String],
8
+ description: String,
9
+ http_enabled: bool,
10
+ memory_mb: Zavudev::Models::FunctionCreateParams::memory_mb,
11
+ runtime: Zavudev::Models::FunctionCreateParams::runtime,
12
+ source_code: String,
13
+ timeout_sec: Integer
14
+ }
15
+ & Zavudev::Internal::Type::request_parameters
16
+
17
+ class FunctionCreateParams < Zavudev::Internal::Type::BaseModel
18
+ extend Zavudev::Internal::Type::RequestParameters::Converter
19
+ include Zavudev::Internal::Type::RequestParameters
20
+
21
+ attr_accessor name: String
22
+
23
+ attr_accessor slug: String
24
+
25
+ attr_reader dependencies: ::Hash[Symbol, String]?
26
+
27
+ def dependencies=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
28
+
29
+ attr_reader description: String?
30
+
31
+ def description=: (String) -> String
32
+
33
+ attr_reader http_enabled: bool?
34
+
35
+ def http_enabled=: (bool) -> bool
36
+
37
+ attr_reader memory_mb: Zavudev::Models::FunctionCreateParams::memory_mb?
38
+
39
+ def memory_mb=: (
40
+ Zavudev::Models::FunctionCreateParams::memory_mb
41
+ ) -> Zavudev::Models::FunctionCreateParams::memory_mb
42
+
43
+ attr_reader runtime: Zavudev::Models::FunctionCreateParams::runtime?
44
+
45
+ def runtime=: (
46
+ Zavudev::Models::FunctionCreateParams::runtime
47
+ ) -> Zavudev::Models::FunctionCreateParams::runtime
48
+
49
+ attr_reader source_code: String?
50
+
51
+ def source_code=: (String) -> String
52
+
53
+ attr_reader timeout_sec: Integer?
54
+
55
+ def timeout_sec=: (Integer) -> Integer
56
+
57
+ def initialize: (
58
+ name: String,
59
+ slug: String,
60
+ ?dependencies: ::Hash[Symbol, String],
61
+ ?description: String,
62
+ ?http_enabled: bool,
63
+ ?memory_mb: Zavudev::Models::FunctionCreateParams::memory_mb,
64
+ ?runtime: Zavudev::Models::FunctionCreateParams::runtime,
65
+ ?source_code: String,
66
+ ?timeout_sec: Integer,
67
+ ?request_options: Zavudev::request_opts
68
+ ) -> void
69
+
70
+ def to_hash: -> {
71
+ name: String,
72
+ slug: String,
73
+ dependencies: ::Hash[Symbol, String],
74
+ description: String,
75
+ http_enabled: bool,
76
+ memory_mb: Zavudev::Models::FunctionCreateParams::memory_mb,
77
+ runtime: Zavudev::Models::FunctionCreateParams::runtime,
78
+ source_code: String,
79
+ timeout_sec: Integer,
80
+ request_options: Zavudev::RequestOptions
81
+ }
82
+
83
+ type memory_mb = 128 | 256 | 512 | 1024
84
+
85
+ module MemoryMB
86
+ extend Zavudev::Internal::Type::Enum
87
+
88
+ MEMORY_MB_128: 128
89
+ MEMORY_MB_256: 256
90
+ MEMORY_MB_512: 512
91
+ MEMORY_MB_1024: 1024
92
+
93
+ def self?.values: -> ::Array[Zavudev::Models::FunctionCreateParams::memory_mb]
94
+ end
95
+
96
+ type runtime = :nodejs24
97
+
98
+ module Runtime
99
+ extend Zavudev::Internal::Type::Enum
100
+
101
+ NODEJS24: :nodejs24
102
+
103
+ def self?.values: -> ::Array[Zavudev::Models::FunctionCreateParams::runtime]
104
+ end
105
+ end
106
+ end
107
+ end
@@ -0,0 +1,126 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_create_response =
4
+ { function: Zavudev::Models::FunctionCreateResponse::Function }
5
+
6
+ class FunctionCreateResponse < Zavudev::Internal::Type::BaseModel
7
+ attr_accessor function: Zavudev::Models::FunctionCreateResponse::Function
8
+
9
+ def initialize: (
10
+ function: Zavudev::Models::FunctionCreateResponse::Function
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ function: Zavudev::Models::FunctionCreateResponse::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::FunctionCreateResponse::Function::runtime,
26
+ slug: String,
27
+ status: Zavudev::Models::FunctionCreateResponse::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::FunctionCreateResponse::Function::runtime
49
+
50
+ attr_accessor slug: String
51
+
52
+ attr_accessor status: Zavudev::Models::FunctionCreateResponse::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::FunctionCreateResponse::Function::runtime,
72
+ slug: String,
73
+ status: Zavudev::Models::FunctionCreateResponse::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::FunctionCreateResponse::Function::runtime,
89
+ slug: String,
90
+ status: Zavudev::Models::FunctionCreateResponse::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::FunctionCreateResponse::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::FunctionCreateResponse::Function::status]
122
+ end
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,23 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_delete_params =
4
+ { function_id: String } & Zavudev::Internal::Type::request_parameters
5
+
6
+ class FunctionDeleteParams < Zavudev::Internal::Type::BaseModel
7
+ extend Zavudev::Internal::Type::RequestParameters::Converter
8
+ include Zavudev::Internal::Type::RequestParameters
9
+
10
+ attr_accessor function_id: String
11
+
12
+ def initialize: (
13
+ function_id: String,
14
+ ?request_options: Zavudev::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ function_id: String,
19
+ request_options: Zavudev::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,22 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_delete_response =
4
+ { deleted: bool, name: String, slug: String }
5
+
6
+ class FunctionDeleteResponse < Zavudev::Internal::Type::BaseModel
7
+ attr_accessor deleted: bool
8
+
9
+ attr_reader name: String?
10
+
11
+ def name=: (String) -> String
12
+
13
+ attr_reader slug: String?
14
+
15
+ def slug=: (String) -> String
16
+
17
+ def initialize: (deleted: bool, ?name: String, ?slug: String) -> void
18
+
19
+ def to_hash: -> { deleted: bool, name: String, slug: String }
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,40 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_deploy_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 FunctionDeployParams < 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,98 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_deploy_response =
4
+ { deployment: Zavudev::Models::FunctionDeployResponse::Deployment }
5
+
6
+ class FunctionDeployResponse < Zavudev::Internal::Type::BaseModel
7
+ attr_accessor deployment: Zavudev::Models::FunctionDeployResponse::Deployment
8
+
9
+ def initialize: (
10
+ deployment: Zavudev::Models::FunctionDeployResponse::Deployment
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ deployment: Zavudev::Models::FunctionDeployResponse::Deployment
15
+ }
16
+
17
+ type deployment =
18
+ {
19
+ id: String,
20
+ created_at: Time,
21
+ function_id: String,
22
+ status: Zavudev::Models::FunctionDeployResponse::Deployment::status,
23
+ version: Integer,
24
+ bundle_bytes: Integer?,
25
+ deployed_at: Time?,
26
+ error_message: String?,
27
+ source_code_bytes: Integer?
28
+ }
29
+
30
+ class Deployment < Zavudev::Internal::Type::BaseModel
31
+ attr_accessor id: String
32
+
33
+ attr_accessor created_at: Time
34
+
35
+ attr_accessor function_id: String
36
+
37
+ attr_accessor status: Zavudev::Models::FunctionDeployResponse::Deployment::status
38
+
39
+ attr_accessor version: Integer
40
+
41
+ attr_accessor bundle_bytes: Integer?
42
+
43
+ attr_accessor deployed_at: Time?
44
+
45
+ attr_accessor error_message: String?
46
+
47
+ attr_accessor source_code_bytes: Integer?
48
+
49
+ def initialize: (
50
+ id: String,
51
+ created_at: Time,
52
+ function_id: String,
53
+ status: Zavudev::Models::FunctionDeployResponse::Deployment::status,
54
+ version: Integer,
55
+ ?bundle_bytes: Integer?,
56
+ ?deployed_at: Time?,
57
+ ?error_message: String?,
58
+ ?source_code_bytes: Integer?
59
+ ) -> void
60
+
61
+ def to_hash: -> {
62
+ id: String,
63
+ created_at: Time,
64
+ function_id: String,
65
+ status: Zavudev::Models::FunctionDeployResponse::Deployment::status,
66
+ version: Integer,
67
+ bundle_bytes: Integer?,
68
+ deployed_at: Time?,
69
+ error_message: String?,
70
+ source_code_bytes: Integer?
71
+ }
72
+
73
+ type status =
74
+ :pending
75
+ | :bundling
76
+ | :uploading
77
+ | :publishing
78
+ | :active
79
+ | :failed
80
+ | :superseded
81
+
82
+ module Status
83
+ extend Zavudev::Internal::Type::Enum
84
+
85
+ PENDING: :pending
86
+ BUNDLING: :bundling
87
+ UPLOADING: :uploading
88
+ PUBLISHING: :publishing
89
+ ACTIVE: :active
90
+ FAILED: :failed
91
+ SUPERSEDED: :superseded
92
+
93
+ def self?.values: -> ::Array[Zavudev::Models::FunctionDeployResponse::Deployment::status]
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,23 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_get_deployment_params =
4
+ { deployment_id: String } & Zavudev::Internal::Type::request_parameters
5
+
6
+ class FunctionGetDeploymentParams < Zavudev::Internal::Type::BaseModel
7
+ extend Zavudev::Internal::Type::RequestParameters::Converter
8
+ include Zavudev::Internal::Type::RequestParameters
9
+
10
+ attr_accessor deployment_id: String
11
+
12
+ def initialize: (
13
+ deployment_id: String,
14
+ ?request_options: Zavudev::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ deployment_id: String,
19
+ request_options: Zavudev::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,98 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_get_deployment_response =
4
+ { deployment: Zavudev::Models::FunctionGetDeploymentResponse::Deployment }
5
+
6
+ class FunctionGetDeploymentResponse < Zavudev::Internal::Type::BaseModel
7
+ attr_accessor deployment: Zavudev::Models::FunctionGetDeploymentResponse::Deployment
8
+
9
+ def initialize: (
10
+ deployment: Zavudev::Models::FunctionGetDeploymentResponse::Deployment
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ deployment: Zavudev::Models::FunctionGetDeploymentResponse::Deployment
15
+ }
16
+
17
+ type deployment =
18
+ {
19
+ id: String,
20
+ created_at: Time,
21
+ function_id: String,
22
+ status: Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status,
23
+ version: Integer,
24
+ bundle_bytes: Integer?,
25
+ deployed_at: Time?,
26
+ error_message: String?,
27
+ source_code_bytes: Integer?
28
+ }
29
+
30
+ class Deployment < Zavudev::Internal::Type::BaseModel
31
+ attr_accessor id: String
32
+
33
+ attr_accessor created_at: Time
34
+
35
+ attr_accessor function_id: String
36
+
37
+ attr_accessor status: Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status
38
+
39
+ attr_accessor version: Integer
40
+
41
+ attr_accessor bundle_bytes: Integer?
42
+
43
+ attr_accessor deployed_at: Time?
44
+
45
+ attr_accessor error_message: String?
46
+
47
+ attr_accessor source_code_bytes: Integer?
48
+
49
+ def initialize: (
50
+ id: String,
51
+ created_at: Time,
52
+ function_id: String,
53
+ status: Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status,
54
+ version: Integer,
55
+ ?bundle_bytes: Integer?,
56
+ ?deployed_at: Time?,
57
+ ?error_message: String?,
58
+ ?source_code_bytes: Integer?
59
+ ) -> void
60
+
61
+ def to_hash: -> {
62
+ id: String,
63
+ created_at: Time,
64
+ function_id: String,
65
+ status: Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status,
66
+ version: Integer,
67
+ bundle_bytes: Integer?,
68
+ deployed_at: Time?,
69
+ error_message: String?,
70
+ source_code_bytes: Integer?
71
+ }
72
+
73
+ type status =
74
+ :pending
75
+ | :bundling
76
+ | :uploading
77
+ | :publishing
78
+ | :active
79
+ | :failed
80
+ | :superseded
81
+
82
+ module Status
83
+ extend Zavudev::Internal::Type::Enum
84
+
85
+ PENDING: :pending
86
+ BUNDLING: :bundling
87
+ UPLOADING: :uploading
88
+ PUBLISHING: :publishing
89
+ ACTIVE: :active
90
+ FAILED: :failed
91
+ SUPERSEDED: :superseded
92
+
93
+ def self?.values: -> ::Array[Zavudev::Models::FunctionGetDeploymentResponse::Deployment::status]
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,23 @@
1
+ module Zavudev
2
+ module Models
3
+ type function_retrieve_params =
4
+ { function_id: String } & Zavudev::Internal::Type::request_parameters
5
+
6
+ class FunctionRetrieveParams < Zavudev::Internal::Type::BaseModel
7
+ extend Zavudev::Internal::Type::RequestParameters::Converter
8
+ include Zavudev::Internal::Type::RequestParameters
9
+
10
+ attr_accessor function_id: String
11
+
12
+ def initialize: (
13
+ function_id: String,
14
+ ?request_options: Zavudev::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ function_id: String,
19
+ request_options: Zavudev::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end