misardev 1.0.0 → 1.1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/README.md +37 -22
- data/lib/misardev/core/sse.rb +1 -0
- data/lib/misardev/generated/close_friends.rb +51 -0
- data/lib/misardev/generated/collections.rb +88 -0
- data/lib/misardev/generated/comments.rb +63 -0
- data/lib/misardev/generated/dm.rb +129 -0
- data/lib/misardev/generated/domains.rb +80 -1
- data/lib/misardev/generated/feed.rb +42 -0
- data/lib/misardev/generated/gallery.rb +1 -1
- data/lib/misardev/generated/highlights.rb +87 -0
- data/lib/misardev/generated/notifications.rb +22 -1
- data/lib/misardev/generated/posts.rb +161 -0
- data/lib/misardev/generated/profile.rb +95 -3
- data/lib/misardev/generated/projects.rb +12 -1
- data/lib/misardev/generated/resources.rb +51 -1
- data/lib/misardev/generated/search.rb +1 -1
- data/lib/misardev/generated/social.rb +62 -0
- data/lib/misardev/generated/stories.rb +107 -0
- data/lib/misardev/generated/tags.rb +32 -0
- data/lib/misardev/version.rb +1 -1
- metadata +13 -3
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# GENERATED by scripts/generate-sdk-resources.mjs from sdks/manifest.json.
|
|
2
|
+
# Do not edit by hand — change the route, run `pnpm sdk:sync`, and regenerate.
|
|
3
|
+
# frozen_string_literal: true
|
|
4
|
+
|
|
5
|
+
module MisarDev
|
|
6
|
+
module Generated
|
|
7
|
+
# The `highlights` resource — 6 operation(s).
|
|
8
|
+
class HighlightsResource
|
|
9
|
+
def initialize(transport)
|
|
10
|
+
@t = transport
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def inspect
|
|
14
|
+
"#<#{self.class.name}>"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# `POST /highlights/:id/items`
|
|
18
|
+
#
|
|
19
|
+
# misardev:method highlights.addStory
|
|
20
|
+
#
|
|
21
|
+
# @param id [String] path parameter `id`
|
|
22
|
+
# @param body [Hash] JSON request body
|
|
23
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
24
|
+
# @raise [MisarDev::MisarDevError]
|
|
25
|
+
def add_story(id, body = {})
|
|
26
|
+
@t.request("POST", "/highlights/#{Core::Transport.segment(id)}/items", body: body)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# `POST /highlights`
|
|
30
|
+
#
|
|
31
|
+
# misardev:method highlights.create
|
|
32
|
+
#
|
|
33
|
+
# @param body [Hash] JSON request body
|
|
34
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
35
|
+
# @raise [MisarDev::MisarDevError]
|
|
36
|
+
def create(body = {})
|
|
37
|
+
@t.request("POST", "/highlights", body: body)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# `DELETE /highlights/:id`
|
|
41
|
+
#
|
|
42
|
+
# misardev:method highlights.delete
|
|
43
|
+
#
|
|
44
|
+
# @param id [String] path parameter `id`
|
|
45
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
46
|
+
# @raise [MisarDev::MisarDevError]
|
|
47
|
+
def delete(id)
|
|
48
|
+
@t.request("DELETE", "/highlights/#{Core::Transport.segment(id)}")
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# `GET /highlights`
|
|
52
|
+
#
|
|
53
|
+
# misardev:method highlights.list
|
|
54
|
+
#
|
|
55
|
+
# @param query [Hash] optional query parameters (handle); nils are dropped
|
|
56
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
57
|
+
# @raise [MisarDev::MisarDevError]
|
|
58
|
+
def list(query = {})
|
|
59
|
+
@t.request("GET", "/highlights", query: query)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# `DELETE /highlights/:id/items`
|
|
63
|
+
#
|
|
64
|
+
# misardev:method highlights.removeStory
|
|
65
|
+
#
|
|
66
|
+
# @param id [String] path parameter `id`
|
|
67
|
+
# @param body [Hash] JSON request body
|
|
68
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
69
|
+
# @raise [MisarDev::MisarDevError]
|
|
70
|
+
def remove_story(id, body = {})
|
|
71
|
+
@t.request("DELETE", "/highlights/#{Core::Transport.segment(id)}/items", body: body)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# `PATCH /highlights/:id`
|
|
75
|
+
#
|
|
76
|
+
# misardev:method highlights.update
|
|
77
|
+
#
|
|
78
|
+
# @param id [String] path parameter `id`
|
|
79
|
+
# @param body [Hash] JSON request body
|
|
80
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
81
|
+
# @raise [MisarDev::MisarDevError]
|
|
82
|
+
def update(id, body = {})
|
|
83
|
+
@t.request("PATCH", "/highlights/#{Core::Transport.segment(id)}", body: body)
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
module MisarDev
|
|
6
6
|
module Generated
|
|
7
|
-
# The `notifications` resource —
|
|
7
|
+
# The `notifications` resource — 5 operation(s).
|
|
8
8
|
class NotificationsResource
|
|
9
9
|
def initialize(transport)
|
|
10
10
|
@t = transport
|
|
@@ -14,6 +14,16 @@ module MisarDev
|
|
|
14
14
|
"#<#{self.class.name}>"
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# `GET /notifications/preferences`
|
|
18
|
+
#
|
|
19
|
+
# misardev:method notifications.getPreferences
|
|
20
|
+
#
|
|
21
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
22
|
+
# @raise [MisarDev::MisarDevError]
|
|
23
|
+
def get_preferences
|
|
24
|
+
@t.request("GET", "/notifications/preferences")
|
|
25
|
+
end
|
|
26
|
+
|
|
17
27
|
# `GET /notifications`
|
|
18
28
|
#
|
|
19
29
|
# misardev:method notifications.list
|
|
@@ -47,6 +57,17 @@ module MisarDev
|
|
|
47
57
|
def mark_read(id, body = {})
|
|
48
58
|
@t.request("PATCH", "/notifications/#{Core::Transport.segment(id)}", body: body)
|
|
49
59
|
end
|
|
60
|
+
|
|
61
|
+
# `PATCH /notifications/preferences`
|
|
62
|
+
#
|
|
63
|
+
# misardev:method notifications.updatePreferences
|
|
64
|
+
#
|
|
65
|
+
# @param body [Hash] JSON request body
|
|
66
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
67
|
+
# @raise [MisarDev::MisarDevError]
|
|
68
|
+
def update_preferences(body = {})
|
|
69
|
+
@t.request("PATCH", "/notifications/preferences", body: body)
|
|
70
|
+
end
|
|
50
71
|
end
|
|
51
72
|
end
|
|
52
73
|
end
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# GENERATED by scripts/generate-sdk-resources.mjs from sdks/manifest.json.
|
|
2
|
+
# Do not edit by hand — change the route, run `pnpm sdk:sync`, and regenerate.
|
|
3
|
+
# frozen_string_literal: true
|
|
4
|
+
|
|
5
|
+
module MisarDev
|
|
6
|
+
module Generated
|
|
7
|
+
# The `posts` resource — 12 operation(s).
|
|
8
|
+
class PostsResource
|
|
9
|
+
def initialize(transport)
|
|
10
|
+
@t = transport
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def inspect
|
|
14
|
+
"#<#{self.class.name}>"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# `POST /posts`
|
|
18
|
+
#
|
|
19
|
+
# misardev:method posts.create
|
|
20
|
+
#
|
|
21
|
+
# @param body [Hash] JSON request body
|
|
22
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
23
|
+
# @raise [MisarDev::MisarDevError]
|
|
24
|
+
def create(body = {})
|
|
25
|
+
@t.request("POST", "/posts", body: body)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# `POST /posts/:id/comments`
|
|
29
|
+
#
|
|
30
|
+
# misardev:method posts.createComment
|
|
31
|
+
#
|
|
32
|
+
# @param id [String] path parameter `id`
|
|
33
|
+
# @param body [Hash] JSON request body
|
|
34
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
35
|
+
# @raise [MisarDev::MisarDevError]
|
|
36
|
+
def create_comment(id, body = {})
|
|
37
|
+
@t.request("POST", "/posts/#{Core::Transport.segment(id)}/comments", body: body)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# `GET /posts/:id`
|
|
41
|
+
#
|
|
42
|
+
# Public — works without a key, but the client still sends it.
|
|
43
|
+
#
|
|
44
|
+
# misardev:method posts.get
|
|
45
|
+
#
|
|
46
|
+
# @param id [String] path parameter `id`
|
|
47
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
48
|
+
# @raise [MisarDev::MisarDevError]
|
|
49
|
+
def get(id)
|
|
50
|
+
@t.request("GET", "/posts/#{Core::Transport.segment(id)}")
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# `POST /posts/:id/like`
|
|
54
|
+
#
|
|
55
|
+
# misardev:method posts.like
|
|
56
|
+
#
|
|
57
|
+
# @param id [String] path parameter `id`
|
|
58
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
59
|
+
# @raise [MisarDev::MisarDevError]
|
|
60
|
+
def like(id)
|
|
61
|
+
@t.request("POST", "/posts/#{Core::Transport.segment(id)}/like")
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# `GET /posts`
|
|
65
|
+
#
|
|
66
|
+
# Public — works without a key, but the client still sends it.
|
|
67
|
+
#
|
|
68
|
+
# misardev:method posts.list
|
|
69
|
+
#
|
|
70
|
+
# @param query [Hash] optional query parameters (cursor, limit); nils are dropped
|
|
71
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
72
|
+
# @raise [MisarDev::MisarDevError]
|
|
73
|
+
def list(query = {})
|
|
74
|
+
@t.request("GET", "/posts", query: query)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# `GET /posts/:id/comments`
|
|
78
|
+
#
|
|
79
|
+
# Public — works without a key, but the client still sends it.
|
|
80
|
+
#
|
|
81
|
+
# misardev:method posts.listComments
|
|
82
|
+
#
|
|
83
|
+
# @param id [String] path parameter `id`
|
|
84
|
+
# @param query [Hash] optional query parameters (cursor, limit, parentId); nils are dropped
|
|
85
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
86
|
+
# @raise [MisarDev::MisarDevError]
|
|
87
|
+
def list_comments(id, query = {})
|
|
88
|
+
@t.request("GET", "/posts/#{Core::Transport.segment(id)}/comments", query: query)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# `GET /me/saved`
|
|
92
|
+
#
|
|
93
|
+
# misardev:method posts.listSaved
|
|
94
|
+
#
|
|
95
|
+
# @param query [Hash] optional query parameters (collection, cursor, limit); nils are dropped
|
|
96
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
97
|
+
# @raise [MisarDev::MisarDevError]
|
|
98
|
+
def list_saved(query = {})
|
|
99
|
+
@t.request("GET", "/me/saved", query: query)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# `POST /posts/:id/save`
|
|
103
|
+
#
|
|
104
|
+
# misardev:method posts.save
|
|
105
|
+
#
|
|
106
|
+
# @param id [String] path parameter `id`
|
|
107
|
+
# @param body [Hash] JSON request body
|
|
108
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
109
|
+
# @raise [MisarDev::MisarDevError]
|
|
110
|
+
def save(id, body = {})
|
|
111
|
+
@t.request("POST", "/posts/#{Core::Transport.segment(id)}/save", body: body)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# `POST /posts/:id/share-dm`
|
|
115
|
+
#
|
|
116
|
+
# misardev:method posts.shareToDm
|
|
117
|
+
#
|
|
118
|
+
# @param id [String] path parameter `id`
|
|
119
|
+
# @param body [Hash] JSON request body
|
|
120
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
121
|
+
# @raise [MisarDev::MisarDevError]
|
|
122
|
+
def share_to_dm(id, body = {})
|
|
123
|
+
@t.request("POST", "/posts/#{Core::Transport.segment(id)}/share-dm", body: body)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# `DELETE /posts/:id/like`
|
|
127
|
+
#
|
|
128
|
+
# misardev:method posts.unlike
|
|
129
|
+
#
|
|
130
|
+
# @param id [String] path parameter `id`
|
|
131
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
132
|
+
# @raise [MisarDev::MisarDevError]
|
|
133
|
+
def unlike(id)
|
|
134
|
+
@t.request("DELETE", "/posts/#{Core::Transport.segment(id)}/like")
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# `DELETE /posts/:id/save`
|
|
138
|
+
#
|
|
139
|
+
# misardev:method posts.unsave
|
|
140
|
+
#
|
|
141
|
+
# @param id [String] path parameter `id`
|
|
142
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
143
|
+
# @raise [MisarDev::MisarDevError]
|
|
144
|
+
def unsave(id)
|
|
145
|
+
@t.request("DELETE", "/posts/#{Core::Transport.segment(id)}/save")
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# `PATCH /posts/:id`
|
|
149
|
+
#
|
|
150
|
+
# misardev:method posts.update
|
|
151
|
+
#
|
|
152
|
+
# @param id [String] path parameter `id`
|
|
153
|
+
# @param body [Hash] JSON request body
|
|
154
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
155
|
+
# @raise [MisarDev::MisarDevError]
|
|
156
|
+
def update(id, body = {})
|
|
157
|
+
@t.request("PATCH", "/posts/#{Core::Transport.segment(id)}", body: body)
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
module MisarDev
|
|
6
6
|
module Generated
|
|
7
|
-
# The `profile` resource —
|
|
7
|
+
# The `profile` resource — 11 operation(s).
|
|
8
8
|
class ProfileResource
|
|
9
9
|
def initialize(transport)
|
|
10
10
|
@t = transport
|
|
@@ -14,15 +14,27 @@ module MisarDev
|
|
|
14
14
|
"#<#{self.class.name}>"
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# `POST /blocks/:handle`
|
|
18
|
+
#
|
|
19
|
+
# misardev:method profile.block
|
|
20
|
+
#
|
|
21
|
+
# @param handle [String] path parameter `handle`
|
|
22
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
23
|
+
# @raise [MisarDev::MisarDevError]
|
|
24
|
+
def block(handle)
|
|
25
|
+
@t.request("POST", "/blocks/#{Core::Transport.segment(handle)}")
|
|
26
|
+
end
|
|
27
|
+
|
|
17
28
|
# `POST /follow/:handle`
|
|
18
29
|
#
|
|
19
30
|
# misardev:method profile.follow
|
|
20
31
|
#
|
|
21
32
|
# @param handle [String] path parameter `handle`
|
|
33
|
+
# @param body [Hash] JSON request body
|
|
22
34
|
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
23
35
|
# @raise [MisarDev::MisarDevError]
|
|
24
|
-
def follow(handle)
|
|
25
|
-
@t.request("POST", "/follow/#{Core::Transport.segment(handle)}")
|
|
36
|
+
def follow(handle, body = {})
|
|
37
|
+
@t.request("POST", "/follow/#{Core::Transport.segment(handle)}", body: body)
|
|
26
38
|
end
|
|
27
39
|
|
|
28
40
|
# `GET /profile/:handle`
|
|
@@ -38,6 +50,75 @@ module MisarDev
|
|
|
38
50
|
@t.request("GET", "/profile/#{Core::Transport.segment(handle)}")
|
|
39
51
|
end
|
|
40
52
|
|
|
53
|
+
# `GET /profile/:handle/highlights/:id`
|
|
54
|
+
#
|
|
55
|
+
# misardev:method profile.getHighlight
|
|
56
|
+
#
|
|
57
|
+
# @param handle [String] path parameter `handle`
|
|
58
|
+
# @param id [String] path parameter `id`
|
|
59
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
60
|
+
# @raise [MisarDev::MisarDevError]
|
|
61
|
+
def get_highlight(handle, id)
|
|
62
|
+
@t.request("GET", "/profile/#{Core::Transport.segment(handle)}/highlights/#{Core::Transport.segment(id)}")
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# `GET /blocks`
|
|
66
|
+
#
|
|
67
|
+
# misardev:method profile.listBlocks
|
|
68
|
+
#
|
|
69
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
70
|
+
# @raise [MisarDev::MisarDevError]
|
|
71
|
+
def list_blocks
|
|
72
|
+
@t.request("GET", "/blocks")
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# `GET /profile/:handle/:list`
|
|
76
|
+
#
|
|
77
|
+
# misardev:method profile.listConnections
|
|
78
|
+
#
|
|
79
|
+
# @param handle [String] path parameter `handle`
|
|
80
|
+
# @param list [String] path parameter `list`
|
|
81
|
+
# @param query [Hash] optional query parameters (cursor, limit); nils are dropped
|
|
82
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
83
|
+
# @raise [MisarDev::MisarDevError]
|
|
84
|
+
def list_connections(handle, list, query = {})
|
|
85
|
+
@t.request("GET", "/profile/#{Core::Transport.segment(handle)}/#{Core::Transport.segment(list)}", query: query)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# `GET /profile/:handle/highlights`
|
|
89
|
+
#
|
|
90
|
+
# misardev:method profile.listHighlights
|
|
91
|
+
#
|
|
92
|
+
# @param handle [String] path parameter `handle`
|
|
93
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
94
|
+
# @raise [MisarDev::MisarDevError]
|
|
95
|
+
def list_highlights(handle)
|
|
96
|
+
@t.request("GET", "/profile/#{Core::Transport.segment(handle)}/highlights")
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# `POST /mutes/:handle`
|
|
100
|
+
#
|
|
101
|
+
# misardev:method profile.mute
|
|
102
|
+
#
|
|
103
|
+
# @param handle [String] path parameter `handle`
|
|
104
|
+
# @param body [Hash] JSON request body
|
|
105
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
106
|
+
# @raise [MisarDev::MisarDevError]
|
|
107
|
+
def mute(handle, body = {})
|
|
108
|
+
@t.request("POST", "/mutes/#{Core::Transport.segment(handle)}", body: body)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# `DELETE /blocks/:handle`
|
|
112
|
+
#
|
|
113
|
+
# misardev:method profile.unblock
|
|
114
|
+
#
|
|
115
|
+
# @param handle [String] path parameter `handle`
|
|
116
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
117
|
+
# @raise [MisarDev::MisarDevError]
|
|
118
|
+
def unblock(handle)
|
|
119
|
+
@t.request("DELETE", "/blocks/#{Core::Transport.segment(handle)}")
|
|
120
|
+
end
|
|
121
|
+
|
|
41
122
|
# `DELETE /follow/:handle`
|
|
42
123
|
#
|
|
43
124
|
# misardev:method profile.unfollow
|
|
@@ -48,6 +129,17 @@ module MisarDev
|
|
|
48
129
|
def unfollow(handle)
|
|
49
130
|
@t.request("DELETE", "/follow/#{Core::Transport.segment(handle)}")
|
|
50
131
|
end
|
|
132
|
+
|
|
133
|
+
# `DELETE /mutes/:handle`
|
|
134
|
+
#
|
|
135
|
+
# misardev:method profile.unmute
|
|
136
|
+
#
|
|
137
|
+
# @param handle [String] path parameter `handle`
|
|
138
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
139
|
+
# @raise [MisarDev::MisarDevError]
|
|
140
|
+
def unmute(handle)
|
|
141
|
+
@t.request("DELETE", "/mutes/#{Core::Transport.segment(handle)}")
|
|
142
|
+
end
|
|
51
143
|
end
|
|
52
144
|
end
|
|
53
145
|
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
module MisarDev
|
|
6
6
|
module Generated
|
|
7
|
-
# The `projects` resource —
|
|
7
|
+
# The `projects` resource — 42 operation(s).
|
|
8
8
|
class ProjectsResource
|
|
9
9
|
def initialize(transport)
|
|
10
10
|
@t = transport
|
|
@@ -331,6 +331,17 @@ module MisarDev
|
|
|
331
331
|
@t.request("POST", "/projects/#{Core::Transport.segment(id)}/backend", body: body)
|
|
332
332
|
end
|
|
333
333
|
|
|
334
|
+
# `GET /projects/:id/domains/recommend`
|
|
335
|
+
#
|
|
336
|
+
# misardev:method projects.recommendDomains
|
|
337
|
+
#
|
|
338
|
+
# @param id [String] path parameter `id`
|
|
339
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
340
|
+
# @raise [MisarDev::MisarDevError]
|
|
341
|
+
def recommend_domains(id)
|
|
342
|
+
@t.request("GET", "/projects/#{Core::Transport.segment(id)}/domains/recommend")
|
|
343
|
+
end
|
|
344
|
+
|
|
334
345
|
# `DELETE /projects/:id/collaborators`
|
|
335
346
|
#
|
|
336
347
|
# misardev:method projects.removeCollaborator
|
|
@@ -9,18 +9,28 @@ require_relative "billing"
|
|
|
9
9
|
require_relative "builds"
|
|
10
10
|
require_relative "chat"
|
|
11
11
|
require_relative "checkpoints"
|
|
12
|
+
require_relative "close_friends"
|
|
13
|
+
require_relative "collections"
|
|
14
|
+
require_relative "comments"
|
|
12
15
|
require_relative "connectors"
|
|
16
|
+
require_relative "dm"
|
|
13
17
|
require_relative "domains"
|
|
18
|
+
require_relative "feed"
|
|
14
19
|
require_relative "gallery"
|
|
15
20
|
require_relative "github"
|
|
21
|
+
require_relative "highlights"
|
|
16
22
|
require_relative "notifications"
|
|
17
23
|
require_relative "organizations"
|
|
24
|
+
require_relative "posts"
|
|
18
25
|
require_relative "profile"
|
|
19
26
|
require_relative "projects"
|
|
20
27
|
require_relative "rag"
|
|
21
28
|
require_relative "reports"
|
|
22
29
|
require_relative "search"
|
|
23
30
|
require_relative "skills"
|
|
31
|
+
require_relative "social"
|
|
32
|
+
require_relative "stories"
|
|
33
|
+
require_relative "tags"
|
|
24
34
|
require_relative "templates"
|
|
25
35
|
require_relative "usage"
|
|
26
36
|
|
|
@@ -29,7 +39,7 @@ module MisarDev
|
|
|
29
39
|
# Every MisarDev resource, attached to the client by name.
|
|
30
40
|
module Resources
|
|
31
41
|
# Operation count, for the coverage gate and the README.
|
|
32
|
-
OPERATION_COUNT =
|
|
42
|
+
OPERATION_COUNT = 183
|
|
33
43
|
|
|
34
44
|
# @return [AccountResource]
|
|
35
45
|
attr_reader :account
|
|
@@ -52,24 +62,45 @@ module MisarDev
|
|
|
52
62
|
# @return [CheckpointsResource]
|
|
53
63
|
attr_reader :checkpoints
|
|
54
64
|
|
|
65
|
+
# @return [CloseFriendsResource]
|
|
66
|
+
attr_reader :close_friends
|
|
67
|
+
|
|
68
|
+
# @return [CollectionsResource]
|
|
69
|
+
attr_reader :collections
|
|
70
|
+
|
|
71
|
+
# @return [CommentsResource]
|
|
72
|
+
attr_reader :comments
|
|
73
|
+
|
|
55
74
|
# @return [ConnectorsResource]
|
|
56
75
|
attr_reader :connectors
|
|
57
76
|
|
|
77
|
+
# @return [DmResource]
|
|
78
|
+
attr_reader :dm
|
|
79
|
+
|
|
58
80
|
# @return [DomainsResource]
|
|
59
81
|
attr_reader :domains
|
|
60
82
|
|
|
83
|
+
# @return [FeedResource]
|
|
84
|
+
attr_reader :feed
|
|
85
|
+
|
|
61
86
|
# @return [GalleryResource]
|
|
62
87
|
attr_reader :gallery
|
|
63
88
|
|
|
64
89
|
# @return [GithubResource]
|
|
65
90
|
attr_reader :github
|
|
66
91
|
|
|
92
|
+
# @return [HighlightsResource]
|
|
93
|
+
attr_reader :highlights
|
|
94
|
+
|
|
67
95
|
# @return [NotificationsResource]
|
|
68
96
|
attr_reader :notifications
|
|
69
97
|
|
|
70
98
|
# @return [OrganizationsResource]
|
|
71
99
|
attr_reader :organizations
|
|
72
100
|
|
|
101
|
+
# @return [PostsResource]
|
|
102
|
+
attr_reader :posts
|
|
103
|
+
|
|
73
104
|
# @return [ProfileResource]
|
|
74
105
|
attr_reader :profile
|
|
75
106
|
|
|
@@ -88,6 +119,15 @@ module MisarDev
|
|
|
88
119
|
# @return [SkillsResource]
|
|
89
120
|
attr_reader :skills
|
|
90
121
|
|
|
122
|
+
# @return [SocialResource]
|
|
123
|
+
attr_reader :social
|
|
124
|
+
|
|
125
|
+
# @return [StoriesResource]
|
|
126
|
+
attr_reader :stories
|
|
127
|
+
|
|
128
|
+
# @return [TagsResource]
|
|
129
|
+
attr_reader :tags
|
|
130
|
+
|
|
91
131
|
# @return [TemplatesResource]
|
|
92
132
|
attr_reader :templates
|
|
93
133
|
|
|
@@ -104,18 +144,28 @@ module MisarDev
|
|
|
104
144
|
@builds = BuildsResource.new(transport)
|
|
105
145
|
@chat = ChatResource.new(transport)
|
|
106
146
|
@checkpoints = CheckpointsResource.new(transport)
|
|
147
|
+
@close_friends = CloseFriendsResource.new(transport)
|
|
148
|
+
@collections = CollectionsResource.new(transport)
|
|
149
|
+
@comments = CommentsResource.new(transport)
|
|
107
150
|
@connectors = ConnectorsResource.new(transport)
|
|
151
|
+
@dm = DmResource.new(transport)
|
|
108
152
|
@domains = DomainsResource.new(transport)
|
|
153
|
+
@feed = FeedResource.new(transport)
|
|
109
154
|
@gallery = GalleryResource.new(transport)
|
|
110
155
|
@github = GithubResource.new(transport)
|
|
156
|
+
@highlights = HighlightsResource.new(transport)
|
|
111
157
|
@notifications = NotificationsResource.new(transport)
|
|
112
158
|
@organizations = OrganizationsResource.new(transport)
|
|
159
|
+
@posts = PostsResource.new(transport)
|
|
113
160
|
@profile = ProfileResource.new(transport)
|
|
114
161
|
@projects = ProjectsResource.new(transport)
|
|
115
162
|
@rag = RagResource.new(transport)
|
|
116
163
|
@reports = ReportsResource.new(transport)
|
|
117
164
|
@search = SearchResource.new(transport)
|
|
118
165
|
@skills = SkillsResource.new(transport)
|
|
166
|
+
@social = SocialResource.new(transport)
|
|
167
|
+
@stories = StoriesResource.new(transport)
|
|
168
|
+
@tags = TagsResource.new(transport)
|
|
119
169
|
@templates = TemplatesResource.new(transport)
|
|
120
170
|
@usage = UsageResource.new(transport)
|
|
121
171
|
end
|
|
@@ -18,7 +18,7 @@ module MisarDev
|
|
|
18
18
|
#
|
|
19
19
|
# misardev:method search.code
|
|
20
20
|
#
|
|
21
|
-
# @param query [Hash] optional query parameters (limit, q, types); nils are dropped
|
|
21
|
+
# @param query [Hash] optional query parameters (cursor, limit, q, type, types); nils are dropped
|
|
22
22
|
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
23
23
|
# @raise [MisarDev::MisarDevError]
|
|
24
24
|
def code(query = {})
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# GENERATED by scripts/generate-sdk-resources.mjs from sdks/manifest.json.
|
|
2
|
+
# Do not edit by hand — change the route, run `pnpm sdk:sync`, and regenerate.
|
|
3
|
+
# frozen_string_literal: true
|
|
4
|
+
|
|
5
|
+
module MisarDev
|
|
6
|
+
module Generated
|
|
7
|
+
# The `social` resource — 4 operation(s).
|
|
8
|
+
class SocialResource
|
|
9
|
+
def initialize(transport)
|
|
10
|
+
@t = transport
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def inspect
|
|
14
|
+
"#<#{self.class.name}>"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# `POST /social/suggestions/:handle/dismiss`
|
|
18
|
+
#
|
|
19
|
+
# misardev:method social.dismissSuggestion
|
|
20
|
+
#
|
|
21
|
+
# @param handle [String] path parameter `handle`
|
|
22
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
23
|
+
# @raise [MisarDev::MisarDevError]
|
|
24
|
+
def dismiss_suggestion(handle)
|
|
25
|
+
@t.request("POST", "/social/suggestions/#{Core::Transport.segment(handle)}/dismiss")
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# `GET /social/suggestions`
|
|
29
|
+
#
|
|
30
|
+
# misardev:method social.listSuggestions
|
|
31
|
+
#
|
|
32
|
+
# @param query [Hash] optional query parameters (limit); nils are dropped
|
|
33
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
34
|
+
# @raise [MisarDev::MisarDevError]
|
|
35
|
+
def list_suggestions(query = {})
|
|
36
|
+
@t.request("GET", "/social/suggestions", query: query)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# `GET /social/me/mutuals`
|
|
40
|
+
#
|
|
41
|
+
# misardev:method social.meMutuals
|
|
42
|
+
#
|
|
43
|
+
# @param query [Hash] optional query parameters (include, limit); nils are dropped
|
|
44
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
45
|
+
# @raise [MisarDev::MisarDevError]
|
|
46
|
+
def me_mutuals(query = {})
|
|
47
|
+
@t.request("GET", "/social/me/mutuals", query: query)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# `GET /social/relationship/:handle`
|
|
51
|
+
#
|
|
52
|
+
# misardev:method social.relationship
|
|
53
|
+
#
|
|
54
|
+
# @param handle [String] path parameter `handle`
|
|
55
|
+
# @return [Hash, Array, String, nil] decoded JSON, a raw string, or nil
|
|
56
|
+
# @raise [MisarDev::MisarDevError]
|
|
57
|
+
def relationship(handle)
|
|
58
|
+
@t.request("GET", "/social/relationship/#{Core::Transport.segment(handle)}")
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|