mailkite 0.6.0 → 0.8.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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailkite.rb +67 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79f557c742e7377043c6fbbfc62c788bde380e6c75f647a354c4182346275a4d
4
- data.tar.gz: be02421caccae364a81433fd239d043e19aeb546817c0acbf3c9727850894785
3
+ metadata.gz: ea16a5e20d5b4548d304b4c3ddd9a11d8ab600c10084b97128d409f92e99e816
4
+ data.tar.gz: b05b9ccaca0842f125cbe58841ba68b8ef57477feb159eb49498d522e4c1c04e
5
5
  SHA512:
6
- metadata.gz: 94b4ec4ac99c756f5887d9f5526ac931df163675e0dcd7a460a9703847b253a5c2852d744f227704f847791bb183f6a1226178ee0714b26eb6fc4249d68a3e17
7
- data.tar.gz: 501cce3bfee6edd4123a24f337325668e2a4009523814b5d3989fa197a4d4fc2185587dfd3bdf694f2ceed3ba0330e14ceeeac54f351f4f8e30c91b4310c7a97
6
+ metadata.gz: 322718f1d3f37a5861fb5d9436dba95de176bdff6a560645b695371ca70029d5ca2dd320a5379b1b7513cf767bc9143b04c46ec668761667c7262707f91a3522
7
+ data.tar.gz: '03179b18866ef5ffa56291fef71046e5d3d869f48af530f2ab4d5169ecdd80b55a6d00bd947ad7dc870d66f2656dfd56e7bd86f6e28c749f3cc2c0a79a1f1275'
data/lib/mailkite.rb CHANGED
@@ -15,7 +15,7 @@ require "base64"
15
15
  require "cgi"
16
16
 
17
17
  module Mailkite
18
- VERSION = "0.6.0"
18
+ VERSION = "0.8.0"
19
19
  DEFAULT_BASE_URL = "https://api.mailkite.dev"
20
20
  # Reject webhook events older than this (ms) to block replays. Pass 0 to disable.
21
21
  DEFAULT_TOLERANCE_MS = 5 * 60 * 1000
@@ -147,6 +147,7 @@ module Mailkite
147
147
  "GET" => Net::HTTP::Get,
148
148
  "POST" => Net::HTTP::Post,
149
149
  "PUT" => Net::HTTP::Put,
150
+ "PATCH" => Net::HTTP::Patch,
150
151
  "DELETE" => Net::HTTP::Delete,
151
152
  }.freeze
152
153
 
@@ -366,6 +367,71 @@ module Mailkite
366
367
  request("POST", "/api/deliveries/#{id}/retry")
367
368
  end
368
369
 
370
+ # --- Lists ----------------------------------------------------------
371
+ def listLists
372
+ request("GET", "/api/lists")
373
+ end
374
+
375
+ def createList(body)
376
+ request("POST", "/api/lists", body)
377
+ end
378
+
379
+ def getList(id)
380
+ request("GET", "/api/lists/#{id}")
381
+ end
382
+
383
+ def updateList(id, body)
384
+ request("PATCH", "/api/lists/#{id}", body)
385
+ end
386
+
387
+ def deleteList(id)
388
+ request("DELETE", "/api/lists/#{id}")
389
+ end
390
+
391
+ def listListContacts(id)
392
+ request("GET", "/api/lists/#{id}/contacts")
393
+ end
394
+
395
+ def addListContacts(id, body)
396
+ request("POST", "/api/lists/#{id}/contacts", body)
397
+ end
398
+
399
+ def removeListContact(id, contactId)
400
+ request("DELETE", "/api/lists/#{id}/contacts/#{contactId}")
401
+ end
402
+
403
+ # --- Broadcasts -----------------------------------------------------
404
+ def listBroadcasts
405
+ request("GET", "/api/broadcasts")
406
+ end
407
+
408
+ def createBroadcast(body)
409
+ request("POST", "/api/broadcasts", body)
410
+ end
411
+
412
+ def getBroadcast(id)
413
+ request("GET", "/api/broadcasts/#{id}")
414
+ end
415
+
416
+ def updateBroadcast(id, body)
417
+ request("PATCH", "/api/broadcasts/#{id}", body)
418
+ end
419
+
420
+ def deleteBroadcast(id)
421
+ request("DELETE", "/api/broadcasts/#{id}")
422
+ end
423
+
424
+ def sendBroadcast(id, body)
425
+ request("POST", "/api/broadcasts/#{id}/send", body)
426
+ end
427
+
428
+ # --- Docs -----------------------------------------------------------
429
+ # Semantic search over the MailKite docs. PUBLIC — no auth required.
430
+ # Returns { "query" => ..., "matches" => [...] }.
431
+ def semanticSearch(query)
432
+ request("GET", "/v1/docs/search?query=#{CGI.escape(query)}")
433
+ end
434
+
369
435
  # --- Webhooks -------------------------------------------------------
370
436
  # Instance wrapper around Mailkite.verify_webhook, so you can verify on an
371
437
  # existing client. No network call; no API key required.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailkite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MailKite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-25 00:00:00.000000000 Z
11
+ date: 2026-06-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Send and manage email over your own authenticated domain with MailKite.
14
14
  email:
@@ -21,7 +21,7 @@ homepage: https://mailkite.dev/docs/libraries
21
21
  licenses:
22
22
  - MIT
23
23
  metadata:
24
- source_code_uri: https://github.com/mailkite/mailkite
24
+ source_code_uri: https://github.com/mailkite/mailkite-ruby
25
25
  post_install_message:
26
26
  rdoc_options: []
27
27
  require_paths: