@arbidocs/sdk 0.5.77 → 0.5.79

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.
package/dist/index.cjs CHANGED
@@ -5184,7 +5184,10 @@ function buildChunkLookup(tools) {
5184
5184
  // src/operations/support.ts
5185
5185
  var support_exports = {};
5186
5186
  __export(support_exports, {
5187
- createSupportTicket: () => createSupportTicket
5187
+ createSupportTicket: () => createSupportTicket,
5188
+ getSupportTicket: () => getSupportTicket,
5189
+ listSupportTickets: () => listSupportTickets,
5190
+ rateSupportTicket: () => rateSupportTicket
5188
5191
  });
5189
5192
 
5190
5193
  // src/operations/mail-encoding.ts
@@ -5213,6 +5216,29 @@ async function createSupportTicket(arbi, input) {
5213
5216
  "Could not send your support request."
5214
5217
  );
5215
5218
  }
5219
+ async function listSupportTickets(arbi) {
5220
+ return requireData(
5221
+ await arbi.fetch.GET("/v1/support/tickets"),
5222
+ "Could not load your support tickets."
5223
+ );
5224
+ }
5225
+ async function getSupportTicket(arbi, ticketId) {
5226
+ return requireData(
5227
+ await arbi.fetch.GET("/v1/support/tickets/{ticket_id}", {
5228
+ params: { path: { ticket_id: ticketId } }
5229
+ }),
5230
+ "Could not load your support ticket."
5231
+ );
5232
+ }
5233
+ async function rateSupportTicket(arbi, ticketId, rating) {
5234
+ return requireData(
5235
+ await arbi.fetch.POST("/v1/support/tickets/{ticket_id}/rating", {
5236
+ params: { path: { ticket_id: ticketId } },
5237
+ body: rating
5238
+ }),
5239
+ "Could not send your rating."
5240
+ );
5241
+ }
5216
5242
 
5217
5243
  // src/diagnostics.ts
5218
5244
  async function diagnoseSetup(options) {
@@ -13972,6 +13998,9 @@ var Arbi = class {
13972
13998
  };
13973
13999
  // ── Health ────────────────────────────────────────────────────────────
13974
14000
  support = {
14001
+ list: () => this.recovering(() => listSupportTickets(this.requireClient())),
14002
+ get: (ticketId) => this.recovering(() => getSupportTicket(this.requireClient(), ticketId)),
14003
+ rate: (ticketId, rating) => this.recovering(() => rateSupportTicket(this.requireClient(), ticketId, rating)),
13975
14004
  create: (input) => {
13976
14005
  const request = { ...input, idempotencyKey: input.idempotencyKey ?? crypto.randomUUID() };
13977
14006
  return this.recovering(() => createSupportTicket(this.requireClient(), request));