@zinn-digital/sdk 0.1.1771 → 0.1.1772

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.
@@ -48297,6 +48297,142 @@ export interface paths {
48297
48297
  patch?: never;
48298
48298
  trace?: never;
48299
48299
  };
48300
+ "/v1/reseller/support/desk": {
48301
+ parameters: {
48302
+ query?: never;
48303
+ header?: never;
48304
+ path?: never;
48305
+ cookie?: never;
48306
+ };
48307
+ /**
48308
+ * Your support desk's settings, including your own AI support agent.
48309
+ * @description Whether your own AI support agent answers your clients' tickets, which of your own AI keys it uses, and the website, instructions and knowledge it answers from. It runs ONLY on your own key — never on ours and never on credits — and speaks in your brand with your prices and packages. Requires `reseller.view`.
48310
+ */
48311
+ get: operations["getResellerSupportDesk"];
48312
+ /**
48313
+ * Change your support desk's settings.
48314
+ * @description Switching the AI agent on needs a live key of your own for the chosen provider (or any provider when none is chosen); without one it is refused with a 422. Requires `reseller.manage`.
48315
+ */
48316
+ put: operations["updateResellerSupportDesk"];
48317
+ post?: never;
48318
+ delete?: never;
48319
+ options?: never;
48320
+ head?: never;
48321
+ patch?: never;
48322
+ trace?: never;
48323
+ };
48324
+ "/v1/reseller/support/tickets": {
48325
+ parameters: {
48326
+ query?: never;
48327
+ header?: never;
48328
+ path?: never;
48329
+ cookie?: never;
48330
+ };
48331
+ /**
48332
+ * Your clients' support tickets — your own support desk.
48333
+ * @description Every ticket one of your clients opened (from their dashboard, by e-mail to your support address, or through their AI assistant). These tickets reach YOU, not us: you answer them here, in your brand, and you may escalate one to us when you need platform support. Tickets about a service only we run for your client (a held invoice, an AI Move, Code Care) stay with us and are not listed here. Newest first, cursor-paginated. Requires `reseller.view`.
48334
+ */
48335
+ get: operations["listResellerSupportTickets"];
48336
+ put?: never;
48337
+ post?: never;
48338
+ delete?: never;
48339
+ options?: never;
48340
+ head?: never;
48341
+ patch?: never;
48342
+ trace?: never;
48343
+ };
48344
+ "/v1/reseller/support/tickets/{ticketId}": {
48345
+ parameters: {
48346
+ query?: never;
48347
+ header?: never;
48348
+ path: {
48349
+ /** @description The client ticket's id. */
48350
+ ticketId: components["schemas"]["Uuid"];
48351
+ };
48352
+ cookie?: never;
48353
+ };
48354
+ /**
48355
+ * One client ticket on your desk, with its thread.
48356
+ * @description The ticket and every message on it, including your team's internal notes (the client never sees those). A ticket that is not on your desk is a 404, never a 403. Requires `reseller.view`.
48357
+ */
48358
+ get: operations["getResellerSupportTicket"];
48359
+ put?: never;
48360
+ post?: never;
48361
+ delete?: never;
48362
+ options?: never;
48363
+ head?: never;
48364
+ patch?: never;
48365
+ trace?: never;
48366
+ };
48367
+ "/v1/reseller/support/tickets/{ticketId}/close": {
48368
+ parameters: {
48369
+ query?: never;
48370
+ header?: never;
48371
+ path: {
48372
+ /** @description The client ticket's id. */
48373
+ ticketId: components["schemas"]["Uuid"];
48374
+ };
48375
+ cookie?: never;
48376
+ };
48377
+ get?: never;
48378
+ put?: never;
48379
+ /**
48380
+ * Close a client ticket.
48381
+ * @description Closes the ticket. Closing a closed ticket changes nothing. Requires `reseller.manage`.
48382
+ */
48383
+ post: operations["closeResellerSupportTicket"];
48384
+ delete?: never;
48385
+ options?: never;
48386
+ head?: never;
48387
+ patch?: never;
48388
+ trace?: never;
48389
+ };
48390
+ "/v1/reseller/support/tickets/{ticketId}/escalate": {
48391
+ parameters: {
48392
+ query?: never;
48393
+ header?: never;
48394
+ path: {
48395
+ /** @description The client ticket's id. */
48396
+ ticketId: components["schemas"]["Uuid"];
48397
+ };
48398
+ cookie?: never;
48399
+ };
48400
+ get?: never;
48401
+ put?: never;
48402
+ /**
48403
+ * Escalate a client ticket to platform support.
48404
+ * @description Opens a ticket in YOUR organization, on behalf of the client, with your note first and the client's thread quoted under it. Platform support answers you there and you relay the answer; the client's ticket stays on your desk with an internal note linking the two. Escalating the same ticket twice returns the first escalation. Requires `reseller.manage`.
48405
+ */
48406
+ post: operations["escalateResellerSupportTicket"];
48407
+ delete?: never;
48408
+ options?: never;
48409
+ head?: never;
48410
+ patch?: never;
48411
+ trace?: never;
48412
+ };
48413
+ "/v1/reseller/support/tickets/{ticketId}/messages": {
48414
+ parameters: {
48415
+ query?: never;
48416
+ header?: never;
48417
+ path: {
48418
+ /** @description The client ticket's id. */
48419
+ ticketId: components["schemas"]["Uuid"];
48420
+ };
48421
+ cookie?: never;
48422
+ };
48423
+ get?: never;
48424
+ put?: never;
48425
+ /**
48426
+ * Reply to your client, or add an internal note.
48427
+ * @description A public reply is e-mailed to your client from your brand and moves the ticket to `pending`; an internal note is seen only by your team. Requires `reseller.manage`.
48428
+ */
48429
+ post: operations["replyResellerSupportTicket"];
48430
+ delete?: never;
48431
+ options?: never;
48432
+ head?: never;
48433
+ patch?: never;
48434
+ trace?: never;
48435
+ };
48300
48436
  "/v1/reseller/tax-registrations": {
48301
48437
  parameters: {
48302
48438
  query?: never;
@@ -104004,6 +104140,64 @@ export interface components {
104004
104140
  /** @enum {string} */
104005
104141
  state: "queued" | "running" | "failed";
104006
104142
  };
104143
+ ResellerSupportDesk: {
104144
+ ai_enabled: boolean;
104145
+ /** @description The provider of your own key the agent uses; empty means your first connected key. */
104146
+ ai_provider: string;
104147
+ /** @description The providers you have a live AI key of your own for. */
104148
+ connected_providers: string[];
104149
+ instructions: string;
104150
+ knowledge: string;
104151
+ website_url: string;
104152
+ };
104153
+ ResellerSupportDeskInput: {
104154
+ ai_enabled?: boolean;
104155
+ ai_provider?: string;
104156
+ instructions?: string;
104157
+ knowledge?: string;
104158
+ website_url?: string;
104159
+ };
104160
+ ResellerSupportEscalation: {
104161
+ /** @description What you need from platform support. Shown first, above the client's thread. */
104162
+ note: string;
104163
+ };
104164
+ ResellerSupportMessage: {
104165
+ author_kind: components["schemas"]["TicketAuthorKind"];
104166
+ body: string;
104167
+ /** Format: date-time */
104168
+ created_at: string;
104169
+ id: components["schemas"]["Uuid"];
104170
+ /** @description An internal note your client never sees. */
104171
+ internal: boolean;
104172
+ };
104173
+ ResellerSupportReply: {
104174
+ body: string;
104175
+ /** @default false */
104176
+ internal: boolean;
104177
+ };
104178
+ /** @description One client ticket on your support desk (docs/99 §4e). */
104179
+ ResellerSupportTicket: {
104180
+ /** @description Your client's organization name. */
104181
+ client_name: string;
104182
+ client_org_id: components["schemas"]["Uuid"];
104183
+ /** Format: date-time */
104184
+ created_at: string;
104185
+ /** @description The ticket in your own organization this was escalated to us as, if any. */
104186
+ escalated_ticket_id: string | null;
104187
+ id: components["schemas"]["Uuid"];
104188
+ priority: components["schemas"]["TicketPriority"];
104189
+ status: components["schemas"]["TicketStatus"];
104190
+ subject: string;
104191
+ /** Format: date-time */
104192
+ updated_at: string;
104193
+ };
104194
+ ResellerSupportTicketDetail: components["schemas"]["ResellerSupportTicket"] & {
104195
+ messages: components["schemas"]["ResellerSupportMessage"][];
104196
+ };
104197
+ ResellerSupportTicketPage: {
104198
+ data: components["schemas"]["ResellerSupportTicket"][];
104199
+ page: components["schemas"]["PageMeta"];
104200
+ };
104007
104201
  ResellerTaxRegistration: {
104008
104202
  /** Format: date-time */
104009
104203
  readonly created_at?: string;
@@ -201047,6 +201241,229 @@ export interface operations {
201047
201241
  429: components["responses"]["TooManyRequests"];
201048
201242
  };
201049
201243
  };
201244
+ getResellerSupportDesk: {
201245
+ parameters: {
201246
+ query?: {
201247
+ /** @description Which of your organizations this applies to. */
201248
+ org_id?: components["schemas"]["Uuid"];
201249
+ };
201250
+ header?: never;
201251
+ path?: never;
201252
+ cookie?: never;
201253
+ };
201254
+ requestBody?: never;
201255
+ responses: {
201256
+ /** @description The desk settings. */
201257
+ 200: {
201258
+ headers: {
201259
+ [name: string]: unknown;
201260
+ };
201261
+ content: {
201262
+ "application/json": components["schemas"]["ResellerSupportDesk"];
201263
+ };
201264
+ };
201265
+ 401: components["responses"]["Unauthorized"];
201266
+ 403: components["responses"]["Forbidden"];
201267
+ 404: components["responses"]["NotFound"];
201268
+ 429: components["responses"]["TooManyRequests"];
201269
+ };
201270
+ };
201271
+ updateResellerSupportDesk: {
201272
+ parameters: {
201273
+ query?: {
201274
+ /** @description Which of your organizations this applies to. */
201275
+ org_id?: components["schemas"]["Uuid"];
201276
+ };
201277
+ header?: never;
201278
+ path?: never;
201279
+ cookie?: never;
201280
+ };
201281
+ requestBody: {
201282
+ content: {
201283
+ "application/json": components["schemas"]["ResellerSupportDeskInput"];
201284
+ };
201285
+ };
201286
+ responses: {
201287
+ /** @description The saved settings. */
201288
+ 200: {
201289
+ headers: {
201290
+ [name: string]: unknown;
201291
+ };
201292
+ content: {
201293
+ "application/json": components["schemas"]["ResellerSupportDesk"];
201294
+ };
201295
+ };
201296
+ 401: components["responses"]["Unauthorized"];
201297
+ 403: components["responses"]["Forbidden"];
201298
+ 404: components["responses"]["NotFound"];
201299
+ 422: components["responses"]["UnprocessableEntity"];
201300
+ 429: components["responses"]["TooManyRequests"];
201301
+ };
201302
+ };
201303
+ listResellerSupportTickets: {
201304
+ parameters: {
201305
+ query?: {
201306
+ /** @description Opaque cursor from a previous page's `page.next_cursor`. */
201307
+ cursor?: components["parameters"]["Cursor"];
201308
+ /** @description Maximum items to return (page size). */
201309
+ limit?: components["parameters"]["Limit"];
201310
+ /** @description Which of your organizations this applies to. Required only when you belong to more than one here. */
201311
+ org_id?: components["schemas"]["Uuid"];
201312
+ /** @description Narrow to one status; `active` means open or pending. */
201313
+ status?: "active" | "open" | "pending" | "solved" | "closed";
201314
+ };
201315
+ header?: never;
201316
+ path?: never;
201317
+ cookie?: never;
201318
+ };
201319
+ requestBody?: never;
201320
+ responses: {
201321
+ /** @description A page of your clients' tickets. */
201322
+ 200: {
201323
+ headers: {
201324
+ [name: string]: unknown;
201325
+ };
201326
+ content: {
201327
+ "application/json": components["schemas"]["ResellerSupportTicketPage"];
201328
+ };
201329
+ };
201330
+ 401: components["responses"]["Unauthorized"];
201331
+ 403: components["responses"]["Forbidden"];
201332
+ 404: components["responses"]["NotFound"];
201333
+ 422: components["responses"]["UnprocessableEntity"];
201334
+ 429: components["responses"]["TooManyRequests"];
201335
+ };
201336
+ };
201337
+ getResellerSupportTicket: {
201338
+ parameters: {
201339
+ query?: {
201340
+ /** @description Which of your organizations this applies to. */
201341
+ org_id?: components["schemas"]["Uuid"];
201342
+ };
201343
+ header?: never;
201344
+ path: {
201345
+ /** @description The client ticket's id. */
201346
+ ticketId: components["schemas"]["Uuid"];
201347
+ };
201348
+ cookie?: never;
201349
+ };
201350
+ requestBody?: never;
201351
+ responses: {
201352
+ /** @description The ticket and its thread. */
201353
+ 200: {
201354
+ headers: {
201355
+ [name: string]: unknown;
201356
+ };
201357
+ content: {
201358
+ "application/json": components["schemas"]["ResellerSupportTicketDetail"];
201359
+ };
201360
+ };
201361
+ 401: components["responses"]["Unauthorized"];
201362
+ 403: components["responses"]["Forbidden"];
201363
+ 404: components["responses"]["NotFound"];
201364
+ 429: components["responses"]["TooManyRequests"];
201365
+ };
201366
+ };
201367
+ closeResellerSupportTicket: {
201368
+ parameters: {
201369
+ query?: {
201370
+ /** @description Which of your organizations this applies to. */
201371
+ org_id?: components["schemas"]["Uuid"];
201372
+ };
201373
+ header?: never;
201374
+ path: {
201375
+ /** @description The client ticket's id. */
201376
+ ticketId: components["schemas"]["Uuid"];
201377
+ };
201378
+ cookie?: never;
201379
+ };
201380
+ requestBody?: never;
201381
+ responses: {
201382
+ /** @description The closed ticket. */
201383
+ 200: {
201384
+ headers: {
201385
+ [name: string]: unknown;
201386
+ };
201387
+ content: {
201388
+ "application/json": components["schemas"]["ResellerSupportTicketDetail"];
201389
+ };
201390
+ };
201391
+ 401: components["responses"]["Unauthorized"];
201392
+ 403: components["responses"]["Forbidden"];
201393
+ 404: components["responses"]["NotFound"];
201394
+ 429: components["responses"]["TooManyRequests"];
201395
+ };
201396
+ };
201397
+ escalateResellerSupportTicket: {
201398
+ parameters: {
201399
+ query?: {
201400
+ /** @description Which of your organizations this applies to. */
201401
+ org_id?: components["schemas"]["Uuid"];
201402
+ };
201403
+ header?: never;
201404
+ path: {
201405
+ /** @description The client ticket's id. */
201406
+ ticketId: components["schemas"]["Uuid"];
201407
+ };
201408
+ cookie?: never;
201409
+ };
201410
+ requestBody: {
201411
+ content: {
201412
+ "application/json": components["schemas"]["ResellerSupportEscalation"];
201413
+ };
201414
+ };
201415
+ responses: {
201416
+ /** @description The client ticket, now carrying `escalated_ticket_id`. */
201417
+ 201: {
201418
+ headers: {
201419
+ [name: string]: unknown;
201420
+ };
201421
+ content: {
201422
+ "application/json": components["schemas"]["ResellerSupportTicketDetail"];
201423
+ };
201424
+ };
201425
+ 401: components["responses"]["Unauthorized"];
201426
+ 403: components["responses"]["Forbidden"];
201427
+ 404: components["responses"]["NotFound"];
201428
+ 422: components["responses"]["UnprocessableEntity"];
201429
+ 429: components["responses"]["TooManyRequests"];
201430
+ };
201431
+ };
201432
+ replyResellerSupportTicket: {
201433
+ parameters: {
201434
+ query?: {
201435
+ /** @description Which of your organizations this applies to. */
201436
+ org_id?: components["schemas"]["Uuid"];
201437
+ };
201438
+ header?: never;
201439
+ path: {
201440
+ /** @description The client ticket's id. */
201441
+ ticketId: components["schemas"]["Uuid"];
201442
+ };
201443
+ cookie?: never;
201444
+ };
201445
+ requestBody: {
201446
+ content: {
201447
+ "application/json": components["schemas"]["ResellerSupportReply"];
201448
+ };
201449
+ };
201450
+ responses: {
201451
+ /** @description The ticket and its thread, with your message added. */
201452
+ 201: {
201453
+ headers: {
201454
+ [name: string]: unknown;
201455
+ };
201456
+ content: {
201457
+ "application/json": components["schemas"]["ResellerSupportTicketDetail"];
201458
+ };
201459
+ };
201460
+ 401: components["responses"]["Unauthorized"];
201461
+ 403: components["responses"]["Forbidden"];
201462
+ 404: components["responses"]["NotFound"];
201463
+ 422: components["responses"]["UnprocessableEntity"];
201464
+ 429: components["responses"]["TooManyRequests"];
201465
+ };
201466
+ };
201050
201467
  listResellerTaxRegistrations: {
201051
201468
  parameters: {
201052
201469
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1771",
3
+ "version": "0.1.1772",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",