thingd 0.5.0 → 0.6.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.
@@ -28,36 +28,36 @@ export class CloudThingStore {
28
28
  this.client = client;
29
29
  }
30
30
  put(collection, object) {
31
- return this.callTool("thing.put", {
31
+ return this.callTool("thing_put", {
32
32
  collection,
33
33
  object,
34
34
  });
35
35
  }
36
36
  get(collection, id) {
37
- return this.callTool("thing.get", {
37
+ return this.callTool("thing_get", {
38
38
  collection,
39
39
  id,
40
40
  });
41
41
  }
42
42
  delete(collection, id) {
43
- return this.callTool("thing.delete", {
43
+ return this.callTool("thing_delete", {
44
44
  collection,
45
45
  id,
46
46
  });
47
47
  }
48
48
  appendEvent(stream, event) {
49
- return this.callTool("thing.events.append", {
49
+ return this.callTool("thing_events_append", {
50
50
  stream,
51
51
  event,
52
52
  });
53
53
  }
54
54
  listEvents(stream) {
55
- return this.callTool("thing.events.list", {
55
+ return this.callTool("thing_events_list", {
56
56
  stream,
57
57
  });
58
58
  }
59
59
  pushJob(queue, payload, options = {}) {
60
- return this.callTool("thing.queue.push", {
60
+ return this.callTool("thing_queue_push", {
61
61
  queue,
62
62
  payload,
63
63
  idempotencyKey: options.idempotencyKey,
@@ -66,19 +66,19 @@ export class CloudThingStore {
66
66
  });
67
67
  }
68
68
  claimJob(queue, options = {}) {
69
- return this.callTool("thing.queue.claim", {
69
+ return this.callTool("thing_queue_claim", {
70
70
  queue,
71
71
  leaseMs: options.leaseMs,
72
72
  });
73
73
  }
74
74
  ackJob(queue, jobId) {
75
- return this.callTool("thing.queue.ack", {
75
+ return this.callTool("thing_queue_ack", {
76
76
  queue,
77
77
  id: jobId,
78
78
  });
79
79
  }
80
80
  nackJob(queue, jobId, options = {}) {
81
- return this.callTool("thing.queue.nack", {
81
+ return this.callTool("thing_queue_nack", {
82
82
  queue,
83
83
  id: jobId,
84
84
  delayMs: options.delayMs,
@@ -86,17 +86,17 @@ export class CloudThingStore {
86
86
  });
87
87
  }
88
88
  listJobs(queue) {
89
- return this.callTool("thing.queue.list", {
89
+ return this.callTool("thing_queue_list", {
90
90
  queue,
91
91
  });
92
92
  }
93
93
  listDeadJobs(queue) {
94
- return this.callTool("thing.queue.dead", {
94
+ return this.callTool("thing_queue_dead", {
95
95
  queue,
96
96
  });
97
97
  }
98
98
  search(query, options = {}) {
99
- return this.callTool("thing.search", {
99
+ return this.callTool("thing_search", {
100
100
  query,
101
101
  collections: options.collections,
102
102
  limit: options.limit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thingd",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Object-shaped local memory for AI-native apps.",
5
5
  "type": "module",
6
6
  "author": "Sayan Mohsin",