amritk-galaxy-staging 0.2.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 (148) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +13 -0
  3. data/LICENSE +201 -0
  4. data/README.md +169 -0
  5. data/SECURITY.md +19 -0
  6. data/SKILL.md +83 -0
  7. data/api.md +186 -0
  8. data/lib/amritk-galaxy-staging/client.rb +238 -0
  9. data/lib/amritk-galaxy-staging/errors.rb +227 -0
  10. data/lib/amritk-galaxy-staging/file_part.rb +58 -0
  11. data/lib/amritk-galaxy-staging/internal/transport/base_client.rb +588 -0
  12. data/lib/amritk-galaxy-staging/internal/transport/pooled_net_requester.rb +224 -0
  13. data/lib/amritk-galaxy-staging/internal/type/array_of.rb +164 -0
  14. data/lib/amritk-galaxy-staging/internal/type/base_model.rb +534 -0
  15. data/lib/amritk-galaxy-staging/internal/type/base_page.rb +55 -0
  16. data/lib/amritk-galaxy-staging/internal/type/boolean.rb +77 -0
  17. data/lib/amritk-galaxy-staging/internal/type/converter.rb +333 -0
  18. data/lib/amritk-galaxy-staging/internal/type/enum.rb +132 -0
  19. data/lib/amritk-galaxy-staging/internal/type/file_input.rb +111 -0
  20. data/lib/amritk-galaxy-staging/internal/type/hash_of.rb +186 -0
  21. data/lib/amritk-galaxy-staging/internal/type/request_parameters.rb +42 -0
  22. data/lib/amritk-galaxy-staging/internal/type/union.rb +238 -0
  23. data/lib/amritk-galaxy-staging/internal/type/unknown.rb +81 -0
  24. data/lib/amritk-galaxy-staging/internal/util.rb +965 -0
  25. data/lib/amritk-galaxy-staging/internal.rb +18 -0
  26. data/lib/amritk-galaxy-staging/models/authentication_create_token_params.rb +26 -0
  27. data/lib/amritk-galaxy-staging/models/authentication_create_user_params.rb +32 -0
  28. data/lib/amritk-galaxy-staging/models/authentication_list_me_params.rb +14 -0
  29. data/lib/amritk-galaxy-staging/models/celestial_body.rb +21 -0
  30. data/lib/amritk-galaxy-staging/models/celestial_body_create_params.rb +20 -0
  31. data/lib/amritk-galaxy-staging/models/new_planet_webhook_event.rb +9 -0
  32. data/lib/amritk-galaxy-staging/models/paginated_resource.rb +46 -0
  33. data/lib/amritk-galaxy-staging/models/planet.rb +221 -0
  34. data/lib/amritk-galaxy-staging/models/planet_create_params.rb +14 -0
  35. data/lib/amritk-galaxy-staging/models/planet_delete_params.rb +20 -0
  36. data/lib/amritk-galaxy-staging/models/planet_list_params.rb +30 -0
  37. data/lib/amritk-galaxy-staging/models/planet_list_response.rb +16 -0
  38. data/lib/amritk-galaxy-staging/models/planet_retrieve_params.rb +20 -0
  39. data/lib/amritk-galaxy-staging/models/planet_update_params.rb +20 -0
  40. data/lib/amritk-galaxy-staging/models/planet_upload_image_params.rb +29 -0
  41. data/lib/amritk-galaxy-staging/models/planet_upload_image_response.rb +48 -0
  42. data/lib/amritk-galaxy-staging/models/satellite.rb +96 -0
  43. data/lib/amritk-galaxy-staging/models/token.rb +18 -0
  44. data/lib/amritk-galaxy-staging/models/unwrap_webhook_event.rb +14 -0
  45. data/lib/amritk-galaxy-staging/models/user.rb +26 -0
  46. data/lib/amritk-galaxy-staging/models/webhook_unwrap_params.rb +14 -0
  47. data/lib/amritk-galaxy-staging/models.rb +87 -0
  48. data/lib/amritk-galaxy-staging/request_options.rb +79 -0
  49. data/lib/amritk-galaxy-staging/resources/authentication.rb +80 -0
  50. data/lib/amritk-galaxy-staging/resources/celestial_bodies.rb +36 -0
  51. data/lib/amritk-galaxy-staging/resources/planets.rb +215 -0
  52. data/lib/amritk-galaxy-staging/resources/webhooks.rb +37 -0
  53. data/lib/amritk-galaxy-staging/version.rb +5 -0
  54. data/lib/amritk-galaxy-staging.rb +79 -0
  55. data/rbi/amritk-galaxy-staging/client.rbi +130 -0
  56. data/rbi/amritk-galaxy-staging/errors.rbi +205 -0
  57. data/rbi/amritk-galaxy-staging/file_part.rbi +37 -0
  58. data/rbi/amritk-galaxy-staging/internal/transport/base_client.rbi +312 -0
  59. data/rbi/amritk-galaxy-staging/internal/transport/pooled_net_requester.rbi +84 -0
  60. data/rbi/amritk-galaxy-staging/internal/type/array_of.rbi +108 -0
  61. data/rbi/amritk-galaxy-staging/internal/type/base_model.rbi +319 -0
  62. data/rbi/amritk-galaxy-staging/internal/type/base_page.rbi +43 -0
  63. data/rbi/amritk-galaxy-staging/internal/type/boolean.rbi +59 -0
  64. data/rbi/amritk-galaxy-staging/internal/type/converter.rbi +225 -0
  65. data/rbi/amritk-galaxy-staging/internal/type/enum.rbi +82 -0
  66. data/rbi/amritk-galaxy-staging/internal/type/file_input.rbi +60 -0
  67. data/rbi/amritk-galaxy-staging/internal/type/hash_of.rbi +108 -0
  68. data/rbi/amritk-galaxy-staging/internal/type/request_parameters.rbi +33 -0
  69. data/rbi/amritk-galaxy-staging/internal/type/union.rbi +134 -0
  70. data/rbi/amritk-galaxy-staging/internal/type/unknown.rbi +59 -0
  71. data/rbi/amritk-galaxy-staging/internal/util.rbi +515 -0
  72. data/rbi/amritk-galaxy-staging/internal.rbi +18 -0
  73. data/rbi/amritk-galaxy-staging/models/authentication_create_token_params.rbi +46 -0
  74. data/rbi/amritk-galaxy-staging/models/authentication_create_user_params.rbi +54 -0
  75. data/rbi/amritk-galaxy-staging/models/authentication_list_me_params.rbi +34 -0
  76. data/rbi/amritk-galaxy-staging/models/celestial_body.rbi +21 -0
  77. data/rbi/amritk-galaxy-staging/models/celestial_body_create_params.rbi +53 -0
  78. data/rbi/amritk-galaxy-staging/models/new_planet_webhook_event.rbi +23 -0
  79. data/rbi/amritk-galaxy-staging/models/paginated_resource.rbi +93 -0
  80. data/rbi/amritk-galaxy-staging/models/planet.rbi +373 -0
  81. data/rbi/amritk-galaxy-staging/models/planet_create_params.rbi +34 -0
  82. data/rbi/amritk-galaxy-staging/models/planet_delete_params.rbi +41 -0
  83. data/rbi/amritk-galaxy-staging/models/planet_list_params.rbi +60 -0
  84. data/rbi/amritk-galaxy-staging/models/planet_list_response.rbi +33 -0
  85. data/rbi/amritk-galaxy-staging/models/planet_retrieve_params.rbi +41 -0
  86. data/rbi/amritk-galaxy-staging/models/planet_update_params.rbi +41 -0
  87. data/rbi/amritk-galaxy-staging/models/planet_upload_image_params.rbi +55 -0
  88. data/rbi/amritk-galaxy-staging/models/planet_upload_image_response.rbi +85 -0
  89. data/rbi/amritk-galaxy-staging/models/satellite.rbi +160 -0
  90. data/rbi/amritk-galaxy-staging/models/token.rbi +30 -0
  91. data/rbi/amritk-galaxy-staging/models/unwrap_webhook_event.rbi +20 -0
  92. data/rbi/amritk-galaxy-staging/models/user.rbi +36 -0
  93. data/rbi/amritk-galaxy-staging/models/webhook_unwrap_params.rbi +34 -0
  94. data/rbi/amritk-galaxy-staging/models.rbi +45 -0
  95. data/rbi/amritk-galaxy-staging/request_options.rbi +64 -0
  96. data/rbi/amritk-galaxy-staging/resources/authentication.rbi +49 -0
  97. data/rbi/amritk-galaxy-staging/resources/celestial_bodies.rbi +29 -0
  98. data/rbi/amritk-galaxy-staging/resources/planets.rbi +180 -0
  99. data/rbi/amritk-galaxy-staging/resources/webhooks.rbi +31 -0
  100. data/rbi/amritk-galaxy-staging/version.rbi +5 -0
  101. data/sig/amritk-galaxy-staging/client.rbs +62 -0
  102. data/sig/amritk-galaxy-staging/errors.rbs +117 -0
  103. data/sig/amritk-galaxy-staging/file_part.rbs +21 -0
  104. data/sig/amritk-galaxy-staging/internal/transport/base_client.rbs +133 -0
  105. data/sig/amritk-galaxy-staging/internal/transport/pooled_net_requester.rbs +48 -0
  106. data/sig/amritk-galaxy-staging/internal/type/array_of.rbs +48 -0
  107. data/sig/amritk-galaxy-staging/internal/type/base_model.rbs +102 -0
  108. data/sig/amritk-galaxy-staging/internal/type/base_page.rbs +24 -0
  109. data/sig/amritk-galaxy-staging/internal/type/boolean.rbs +26 -0
  110. data/sig/amritk-galaxy-staging/internal/type/converter.rbs +79 -0
  111. data/sig/amritk-galaxy-staging/internal/type/enum.rbs +32 -0
  112. data/sig/amritk-galaxy-staging/internal/type/file_input.rbs +25 -0
  113. data/sig/amritk-galaxy-staging/internal/type/hash_of.rbs +48 -0
  114. data/sig/amritk-galaxy-staging/internal/type/request_parameters.rbs +17 -0
  115. data/sig/amritk-galaxy-staging/internal/type/union.rbs +52 -0
  116. data/sig/amritk-galaxy-staging/internal/type/unknown.rbs +26 -0
  117. data/sig/amritk-galaxy-staging/internal/util.rbs +199 -0
  118. data/sig/amritk-galaxy-staging/internal.rbs +9 -0
  119. data/sig/amritk-galaxy-staging/models/authentication_create_token_params.rbs +28 -0
  120. data/sig/amritk-galaxy-staging/models/authentication_create_user_params.rbs +34 -0
  121. data/sig/amritk-galaxy-staging/models/authentication_list_me_params.rbs +17 -0
  122. data/sig/amritk-galaxy-staging/models/celestial_body.rbs +12 -0
  123. data/sig/amritk-galaxy-staging/models/celestial_body_create_params.rbs +24 -0
  124. data/sig/amritk-galaxy-staging/models/new_planet_webhook_event.rbs +11 -0
  125. data/sig/amritk-galaxy-staging/models/paginated_resource.rbs +53 -0
  126. data/sig/amritk-galaxy-staging/models/planet.rbs +210 -0
  127. data/sig/amritk-galaxy-staging/models/planet_create_params.rbs +17 -0
  128. data/sig/amritk-galaxy-staging/models/planet_delete_params.rbs +24 -0
  129. data/sig/amritk-galaxy-staging/models/planet_list_params.rbs +32 -0
  130. data/sig/amritk-galaxy-staging/models/planet_list_response.rbs +17 -0
  131. data/sig/amritk-galaxy-staging/models/planet_retrieve_params.rbs +24 -0
  132. data/sig/amritk-galaxy-staging/models/planet_update_params.rbs +26 -0
  133. data/sig/amritk-galaxy-staging/models/planet_upload_image_params.rbs +32 -0
  134. data/sig/amritk-galaxy-staging/models/planet_upload_image_response.rbs +50 -0
  135. data/sig/amritk-galaxy-staging/models/satellite.rbs +95 -0
  136. data/sig/amritk-galaxy-staging/models/token.rbs +15 -0
  137. data/sig/amritk-galaxy-staging/models/unwrap_webhook_event.rbs +11 -0
  138. data/sig/amritk-galaxy-staging/models/user.rbs +19 -0
  139. data/sig/amritk-galaxy-staging/models/webhook_unwrap_params.rbs +17 -0
  140. data/sig/amritk-galaxy-staging/models.rbs +39 -0
  141. data/sig/amritk-galaxy-staging/request_options.rbs +34 -0
  142. data/sig/amritk-galaxy-staging/resources/authentication.rbs +24 -0
  143. data/sig/amritk-galaxy-staging/resources/celestial_bodies.rbs +12 -0
  144. data/sig/amritk-galaxy-staging/resources/planets.rbs +68 -0
  145. data/sig/amritk-galaxy-staging/resources/webhooks.rbs +13 -0
  146. data/sig/amritk-galaxy-staging/version.rbs +3 -0
  147. data/sig/manifest.yaml +6 -0
  148. metadata +248 -0
@@ -0,0 +1,34 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type authentication_create_user_params =
4
+ { email: String, password: String, name: String }
5
+ & DemoApiScalarGalaxy::Internal::Type::request_parameters
6
+
7
+ class AuthenticationCreateUserParams < DemoApiScalarGalaxy::Internal::Type::BaseModel
8
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
9
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
10
+
11
+ attr_accessor email: String
12
+
13
+ attr_accessor password: String
14
+
15
+ attr_reader name: String?
16
+
17
+ def name=: (String) -> String
18
+
19
+ def initialize: (
20
+ email: String,
21
+ password: String,
22
+ ?name: String,
23
+ ?request_options: DemoApiScalarGalaxy::request_opts
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ email: String,
28
+ password: String,
29
+ name: String,
30
+ request_options: DemoApiScalarGalaxy::RequestOptions
31
+ }
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,17 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type authentication_list_me_params =
4
+ { } & DemoApiScalarGalaxy::Internal::Type::request_parameters
5
+
6
+ class AuthenticationListMeParams < DemoApiScalarGalaxy::Internal::Type::BaseModel
7
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
8
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
9
+
10
+ def initialize: (
11
+ ?request_options: DemoApiScalarGalaxy::request_opts
12
+ ) -> void
13
+
14
+ def to_hash: -> { request_options: DemoApiScalarGalaxy::RequestOptions }
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type celestial_body =
4
+ DemoApiScalarGalaxy::Planet | DemoApiScalarGalaxy::Satellite
5
+
6
+ module CelestialBody
7
+ extend DemoApiScalarGalaxy::Internal::Type::Union
8
+
9
+ def self?.variants: -> ::Array[DemoApiScalarGalaxy::Models::celestial_body]
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,24 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type celestial_body_create_params =
4
+ { celestial_body: DemoApiScalarGalaxy::Models::celestial_body }
5
+ & DemoApiScalarGalaxy::Internal::Type::request_parameters
6
+
7
+ class CelestialBodyCreateParams < DemoApiScalarGalaxy::Internal::Type::BaseModel
8
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
9
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
10
+
11
+ attr_accessor celestial_body: DemoApiScalarGalaxy::Models::celestial_body
12
+
13
+ def initialize: (
14
+ celestial_body: DemoApiScalarGalaxy::Models::celestial_body,
15
+ ?request_options: DemoApiScalarGalaxy::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ celestial_body: DemoApiScalarGalaxy::Models::celestial_body,
20
+ request_options: DemoApiScalarGalaxy::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,11 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type new_planet_webhook_event = { }
4
+
5
+ class NewPlanetWebhookEvent < DemoApiScalarGalaxy::Internal::Type::BaseModel
6
+ def initialize: -> void
7
+
8
+ def to_hash: -> { }
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,53 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type paginated_resource =
4
+ { meta: DemoApiScalarGalaxy::PaginatedResource::Meta }
5
+
6
+ class PaginatedResource < DemoApiScalarGalaxy::Internal::Type::BaseModel
7
+ attr_reader meta: DemoApiScalarGalaxy::PaginatedResource::Meta?
8
+
9
+ def meta=: (
10
+ DemoApiScalarGalaxy::PaginatedResource::Meta
11
+ ) -> DemoApiScalarGalaxy::PaginatedResource::Meta
12
+
13
+ def initialize: (
14
+ ?meta: DemoApiScalarGalaxy::PaginatedResource::Meta
15
+ ) -> void
16
+
17
+ def to_hash: -> { meta: DemoApiScalarGalaxy::PaginatedResource::Meta }
18
+
19
+ type meta =
20
+ { limit: Integer, next_: String?, offset: Integer, total: Integer }
21
+
22
+ class Meta < DemoApiScalarGalaxy::Internal::Type::BaseModel
23
+ attr_reader limit: Integer?
24
+
25
+ def limit=: (Integer) -> Integer
26
+
27
+ attr_accessor next_: String?
28
+
29
+ attr_reader offset: Integer?
30
+
31
+ def offset=: (Integer) -> Integer
32
+
33
+ attr_reader total: Integer?
34
+
35
+ def total=: (Integer) -> Integer
36
+
37
+ def initialize: (
38
+ ?limit: Integer,
39
+ ?next_: String?,
40
+ ?offset: Integer,
41
+ ?total: Integer
42
+ ) -> void
43
+
44
+ def to_hash: -> {
45
+ limit: Integer,
46
+ next_: String?,
47
+ offset: Integer,
48
+ total: Integer
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,210 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet =
4
+ {
5
+ id: Integer,
6
+ name: String,
7
+ type: DemoApiScalarGalaxy::Models::Planet::type_,
8
+ atmosphere: ::Array[DemoApiScalarGalaxy::Planet::Atmosphere],
9
+ creator: DemoApiScalarGalaxy::User,
10
+ description: String?,
11
+ discovered_at: Time,
12
+ failure_callback_url: String,
13
+ habitability_index: Float,
14
+ image: String?,
15
+ last_updated: Time,
16
+ physical_properties: DemoApiScalarGalaxy::Planet::PhysicalProperties,
17
+ satellites: ::Array[DemoApiScalarGalaxy::Satellite],
18
+ success_callback_url: String,
19
+ tags: ::Array[String]
20
+ }
21
+
22
+ class Planet < DemoApiScalarGalaxy::Internal::Type::BaseModel
23
+ attr_accessor id: Integer
24
+
25
+ attr_accessor name: String
26
+
27
+ attr_accessor type: DemoApiScalarGalaxy::Models::Planet::type_
28
+
29
+ attr_reader atmosphere: ::Array[DemoApiScalarGalaxy::Planet::Atmosphere]?
30
+
31
+ def atmosphere=: (
32
+ ::Array[DemoApiScalarGalaxy::Planet::Atmosphere]
33
+ ) -> ::Array[DemoApiScalarGalaxy::Planet::Atmosphere]
34
+
35
+ attr_reader creator: DemoApiScalarGalaxy::User?
36
+
37
+ def creator=: (DemoApiScalarGalaxy::User) -> DemoApiScalarGalaxy::User
38
+
39
+ attr_accessor description: String?
40
+
41
+ attr_reader discovered_at: Time?
42
+
43
+ def discovered_at=: (Time) -> Time
44
+
45
+ attr_reader failure_callback_url: String?
46
+
47
+ def failure_callback_url=: (String) -> String
48
+
49
+ attr_reader habitability_index: Float?
50
+
51
+ def habitability_index=: (Float) -> Float
52
+
53
+ attr_accessor image: String?
54
+
55
+ attr_reader last_updated: Time?
56
+
57
+ def last_updated=: (Time) -> Time
58
+
59
+ attr_reader physical_properties: DemoApiScalarGalaxy::Planet::PhysicalProperties?
60
+
61
+ def physical_properties=: (
62
+ DemoApiScalarGalaxy::Planet::PhysicalProperties
63
+ ) -> DemoApiScalarGalaxy::Planet::PhysicalProperties
64
+
65
+ attr_reader satellites: ::Array[DemoApiScalarGalaxy::Satellite]?
66
+
67
+ def satellites=: (
68
+ ::Array[DemoApiScalarGalaxy::Satellite]
69
+ ) -> ::Array[DemoApiScalarGalaxy::Satellite]
70
+
71
+ attr_reader success_callback_url: String?
72
+
73
+ def success_callback_url=: (String) -> String
74
+
75
+ attr_reader tags: ::Array[String]?
76
+
77
+ def tags=: (::Array[String]) -> ::Array[String]
78
+
79
+ def initialize: (
80
+ id: Integer,
81
+ name: String,
82
+ type: DemoApiScalarGalaxy::Models::Planet::type_,
83
+ ?atmosphere: ::Array[DemoApiScalarGalaxy::Planet::Atmosphere],
84
+ ?creator: DemoApiScalarGalaxy::User,
85
+ ?description: String?,
86
+ ?discovered_at: Time,
87
+ ?failure_callback_url: String,
88
+ ?habitability_index: Float,
89
+ ?image: String?,
90
+ ?last_updated: Time,
91
+ ?physical_properties: DemoApiScalarGalaxy::Planet::PhysicalProperties,
92
+ ?satellites: ::Array[DemoApiScalarGalaxy::Satellite],
93
+ ?success_callback_url: String,
94
+ ?tags: ::Array[String]
95
+ ) -> void
96
+
97
+ def to_hash: -> {
98
+ id: Integer,
99
+ name: String,
100
+ type: DemoApiScalarGalaxy::Models::Planet::type_,
101
+ atmosphere: ::Array[DemoApiScalarGalaxy::Planet::Atmosphere],
102
+ creator: DemoApiScalarGalaxy::User,
103
+ description: String?,
104
+ discovered_at: Time,
105
+ failure_callback_url: String,
106
+ habitability_index: Float,
107
+ image: String?,
108
+ last_updated: Time,
109
+ physical_properties: DemoApiScalarGalaxy::Planet::PhysicalProperties,
110
+ satellites: ::Array[DemoApiScalarGalaxy::Satellite],
111
+ success_callback_url: String,
112
+ tags: ::Array[String]
113
+ }
114
+
115
+ type type_ =
116
+ :planet | :terrestrial | :gas_giant | :ice_giant | :dwarf | :super_earth
117
+
118
+ module Type
119
+ extend DemoApiScalarGalaxy::Internal::Type::Enum
120
+
121
+ PLANET: :planet
122
+ TERRESTRIAL: :terrestrial
123
+ GAS_GIANT: :gas_giant
124
+ ICE_GIANT: :ice_giant
125
+ DWARF: :dwarf
126
+ SUPER_EARTH: :super_earth
127
+
128
+ def self?.values: -> ::Array[DemoApiScalarGalaxy::Models::Planet::type_]
129
+ end
130
+
131
+ type atmosphere = { compound: String, percentage: Float }
132
+
133
+ class Atmosphere < DemoApiScalarGalaxy::Internal::Type::BaseModel
134
+ attr_reader compound: String?
135
+
136
+ def compound=: (String) -> String
137
+
138
+ attr_reader percentage: Float?
139
+
140
+ def percentage=: (Float) -> Float
141
+
142
+ def initialize: (?compound: String, ?percentage: Float) -> void
143
+
144
+ def to_hash: -> { compound: String, percentage: Float }
145
+ end
146
+
147
+ type physical_properties =
148
+ {
149
+ gravity: Float,
150
+ mass: Float,
151
+ radius: Float,
152
+ temperature: DemoApiScalarGalaxy::Planet::PhysicalProperties::Temperature
153
+ }
154
+
155
+ class PhysicalProperties < DemoApiScalarGalaxy::Internal::Type::BaseModel
156
+ attr_reader gravity: Float?
157
+
158
+ def gravity=: (Float) -> Float
159
+
160
+ attr_reader mass: Float?
161
+
162
+ def mass=: (Float) -> Float
163
+
164
+ attr_reader radius: Float?
165
+
166
+ def radius=: (Float) -> Float
167
+
168
+ attr_reader temperature: DemoApiScalarGalaxy::Planet::PhysicalProperties::Temperature?
169
+
170
+ def temperature=: (
171
+ DemoApiScalarGalaxy::Planet::PhysicalProperties::Temperature
172
+ ) -> DemoApiScalarGalaxy::Planet::PhysicalProperties::Temperature
173
+
174
+ def initialize: (
175
+ ?gravity: Float,
176
+ ?mass: Float,
177
+ ?radius: Float,
178
+ ?temperature: DemoApiScalarGalaxy::Planet::PhysicalProperties::Temperature
179
+ ) -> void
180
+
181
+ def to_hash: -> {
182
+ gravity: Float,
183
+ mass: Float,
184
+ radius: Float,
185
+ temperature: DemoApiScalarGalaxy::Planet::PhysicalProperties::Temperature
186
+ }
187
+
188
+ type temperature = { average: Float, max: Float, min: Float }
189
+
190
+ class Temperature < DemoApiScalarGalaxy::Internal::Type::BaseModel
191
+ attr_reader average: Float?
192
+
193
+ def average=: (Float) -> Float
194
+
195
+ attr_reader max: Float?
196
+
197
+ def max=: (Float) -> Float
198
+
199
+ attr_reader min: Float?
200
+
201
+ def min=: (Float) -> Float
202
+
203
+ def initialize: (?average: Float, ?max: Float, ?min: Float) -> void
204
+
205
+ def to_hash: -> { average: Float, max: Float, min: Float }
206
+ end
207
+ end
208
+ end
209
+ end
210
+ end
@@ -0,0 +1,17 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet_create_params =
4
+ { } & DemoApiScalarGalaxy::Internal::Type::request_parameters
5
+
6
+ class PlanetCreateParams < DemoApiScalarGalaxy::Models::Planet
7
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
8
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
9
+
10
+ def initialize: (
11
+ ?request_options: DemoApiScalarGalaxy::request_opts
12
+ ) -> void
13
+
14
+ def to_hash: -> { request_options: DemoApiScalarGalaxy::RequestOptions }
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,24 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet_delete_params =
4
+ { planet_id: Integer }
5
+ & DemoApiScalarGalaxy::Internal::Type::request_parameters
6
+
7
+ class PlanetDeleteParams < DemoApiScalarGalaxy::Internal::Type::BaseModel
8
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
9
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
10
+
11
+ attr_accessor planet_id: Integer
12
+
13
+ def initialize: (
14
+ planet_id: Integer,
15
+ ?request_options: DemoApiScalarGalaxy::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ planet_id: Integer,
20
+ request_options: DemoApiScalarGalaxy::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,32 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet_list_params =
4
+ { limit: Integer, offset: Integer }
5
+ & DemoApiScalarGalaxy::Internal::Type::request_parameters
6
+
7
+ class PlanetListParams < DemoApiScalarGalaxy::Internal::Type::BaseModel
8
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
9
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
10
+
11
+ attr_reader limit: Integer?
12
+
13
+ def limit=: (Integer) -> Integer
14
+
15
+ attr_reader offset: Integer?
16
+
17
+ def offset=: (Integer) -> Integer
18
+
19
+ def initialize: (
20
+ ?limit: Integer,
21
+ ?offset: Integer,
22
+ ?request_options: DemoApiScalarGalaxy::request_opts
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ limit: Integer,
27
+ offset: Integer,
28
+ request_options: DemoApiScalarGalaxy::RequestOptions
29
+ }
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,17 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet_list_response = { data: ::Array[DemoApiScalarGalaxy::Planet] }
4
+
5
+ class PlanetListResponse < DemoApiScalarGalaxy::Models::PaginatedResource
6
+ def data: -> ::Array[DemoApiScalarGalaxy::Planet]?
7
+
8
+ def data=: (
9
+ ::Array[DemoApiScalarGalaxy::Planet] _
10
+ ) -> ::Array[DemoApiScalarGalaxy::Planet]
11
+
12
+ def initialize: (?data: ::Array[DemoApiScalarGalaxy::Planet]) -> void
13
+
14
+ def to_hash: -> { data: ::Array[DemoApiScalarGalaxy::Planet] }
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,24 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet_retrieve_params =
4
+ { planet_id: Integer }
5
+ & DemoApiScalarGalaxy::Internal::Type::request_parameters
6
+
7
+ class PlanetRetrieveParams < DemoApiScalarGalaxy::Internal::Type::BaseModel
8
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
9
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
10
+
11
+ attr_accessor planet_id: Integer
12
+
13
+ def initialize: (
14
+ planet_id: Integer,
15
+ ?request_options: DemoApiScalarGalaxy::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ planet_id: Integer,
20
+ request_options: DemoApiScalarGalaxy::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,26 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet_update_params =
4
+ { planet_id: Integer }
5
+ & DemoApiScalarGalaxy::Internal::Type::request_parameters
6
+
7
+ class PlanetUpdateParams < DemoApiScalarGalaxy::Models::Planet
8
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
9
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
10
+
11
+ def planet_id: -> Integer
12
+
13
+ def planet_id=: (Integer _) -> Integer
14
+
15
+ def initialize: (
16
+ planet_id: Integer,
17
+ ?request_options: DemoApiScalarGalaxy::request_opts
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ planet_id: Integer,
22
+ request_options: DemoApiScalarGalaxy::RequestOptions
23
+ }
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,32 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet_upload_image_params =
4
+ { planet_id: Integer, image: DemoApiScalarGalaxy::Internal::file_input }
5
+ & DemoApiScalarGalaxy::Internal::Type::request_parameters
6
+
7
+ class PlanetUploadImageParams < DemoApiScalarGalaxy::Internal::Type::BaseModel
8
+ extend DemoApiScalarGalaxy::Internal::Type::RequestParameters::Converter
9
+ include DemoApiScalarGalaxy::Internal::Type::RequestParameters
10
+
11
+ attr_accessor planet_id: Integer
12
+
13
+ attr_reader image: DemoApiScalarGalaxy::Internal::file_input?
14
+
15
+ def image=: (
16
+ DemoApiScalarGalaxy::Internal::file_input
17
+ ) -> DemoApiScalarGalaxy::Internal::file_input
18
+
19
+ def initialize: (
20
+ planet_id: Integer,
21
+ ?image: DemoApiScalarGalaxy::Internal::file_input,
22
+ ?request_options: DemoApiScalarGalaxy::request_opts
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ planet_id: Integer,
27
+ image: DemoApiScalarGalaxy::Internal::file_input,
28
+ request_options: DemoApiScalarGalaxy::RequestOptions
29
+ }
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,50 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type planet_upload_image_response =
4
+ {
5
+ file_size: Integer,
6
+ image_url: String,
7
+ message: String,
8
+ mime_type: String,
9
+ uploaded_at: Time
10
+ }
11
+
12
+ class PlanetUploadImageResponse < DemoApiScalarGalaxy::Internal::Type::BaseModel
13
+ attr_reader file_size: Integer?
14
+
15
+ def file_size=: (Integer) -> Integer
16
+
17
+ attr_reader image_url: String?
18
+
19
+ def image_url=: (String) -> String
20
+
21
+ attr_reader message: String?
22
+
23
+ def message=: (String) -> String
24
+
25
+ attr_reader mime_type: String?
26
+
27
+ def mime_type=: (String) -> String
28
+
29
+ attr_reader uploaded_at: Time?
30
+
31
+ def uploaded_at=: (Time) -> Time
32
+
33
+ def initialize: (
34
+ ?file_size: Integer,
35
+ ?image_url: String,
36
+ ?message: String,
37
+ ?mime_type: String,
38
+ ?uploaded_at: Time
39
+ ) -> void
40
+
41
+ def to_hash: -> {
42
+ file_size: Integer,
43
+ image_url: String,
44
+ message: String,
45
+ mime_type: String,
46
+ uploaded_at: Time
47
+ }
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,95 @@
1
+ module DemoApiScalarGalaxy
2
+ module Models
3
+ type satellite =
4
+ {
5
+ name: String,
6
+ type: DemoApiScalarGalaxy::Models::Satellite::type_,
7
+ id: Integer,
8
+ description: String?,
9
+ diameter: Float,
10
+ orbit: DemoApiScalarGalaxy::Satellite::Orbit
11
+ }
12
+
13
+ class Satellite < DemoApiScalarGalaxy::Internal::Type::BaseModel
14
+ attr_accessor name: String
15
+
16
+ attr_accessor type: DemoApiScalarGalaxy::Models::Satellite::type_
17
+
18
+ attr_reader id: Integer?
19
+
20
+ def id=: (Integer) -> Integer
21
+
22
+ attr_accessor description: String?
23
+
24
+ attr_reader diameter: Float?
25
+
26
+ def diameter=: (Float) -> Float
27
+
28
+ attr_reader orbit: DemoApiScalarGalaxy::Satellite::Orbit?
29
+
30
+ def orbit=: (
31
+ DemoApiScalarGalaxy::Satellite::Orbit
32
+ ) -> DemoApiScalarGalaxy::Satellite::Orbit
33
+
34
+ def initialize: (
35
+ name: String,
36
+ type: DemoApiScalarGalaxy::Models::Satellite::type_,
37
+ ?id: Integer,
38
+ ?description: String?,
39
+ ?diameter: Float,
40
+ ?orbit: DemoApiScalarGalaxy::Satellite::Orbit
41
+ ) -> void
42
+
43
+ def to_hash: -> {
44
+ name: String,
45
+ type: DemoApiScalarGalaxy::Models::Satellite::type_,
46
+ id: Integer,
47
+ description: String?,
48
+ diameter: Float,
49
+ orbit: DemoApiScalarGalaxy::Satellite::Orbit
50
+ }
51
+
52
+ type type_ = :satellite | :moon | :asteroid | :comet
53
+
54
+ module Type
55
+ extend DemoApiScalarGalaxy::Internal::Type::Enum
56
+
57
+ SATELLITE: :satellite
58
+ MOON: :moon
59
+ ASTEROID: :asteroid
60
+ COMET: :comet
61
+
62
+ def self?.values: -> ::Array[DemoApiScalarGalaxy::Models::Satellite::type_]
63
+ end
64
+
65
+ type orbit =
66
+ { distance: Float, orbital_period: Float, planet_id: Integer }
67
+
68
+ class Orbit < DemoApiScalarGalaxy::Internal::Type::BaseModel
69
+ attr_reader distance: Float?
70
+
71
+ def distance=: (Float) -> Float
72
+
73
+ attr_reader orbital_period: Float?
74
+
75
+ def orbital_period=: (Float) -> Float
76
+
77
+ attr_reader planet_id: Integer?
78
+
79
+ def planet_id=: (Integer) -> Integer
80
+
81
+ def initialize: (
82
+ ?distance: Float,
83
+ ?orbital_period: Float,
84
+ ?planet_id: Integer
85
+ ) -> void
86
+
87
+ def to_hash: -> {
88
+ distance: Float,
89
+ orbital_period: Float,
90
+ planet_id: Integer
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end