@zinn-digital/sdk 0.1.1771 → 0.1.1773

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;
@@ -180645,16 +180839,25 @@ export interface operations {
180645
180839
  "application/json": {
180646
180840
  brand: {
180647
180841
  city: string;
180648
- /** @description The legal name exactly as on the IRS record of the EIN. */
180842
+ /** @description The legal name exactly as on the IRS record of the EIN (US), or as on the country's company register (any other country). */
180649
180843
  company_name: string;
180844
+ /**
180845
+ * @description ISO 3166-1 alpha-2 country where the business is registered. A business outside the US registers too. For `US` the EIN, phone, state and ZIP keep their US shapes (400 per field otherwise); elsewhere `ein` is the company registration or tax number, `phone` any E.164 number, and `state` and `postal_code` free text.
180846
+ * @default US
180847
+ */
180848
+ country?: string;
180650
180849
  display_name: string;
180850
+ /** @description US - the 9-digit EIN (`12-3456789` or `123456789`). Elsewhere - the company registration or tax number. */
180651
180851
  ein: string;
180652
180852
  /** Format: email */
180653
180853
  email: string;
180654
180854
  /** @enum {string} */
180655
180855
  entity_type: "PRIVATE_PROFIT" | "PUBLIC_PROFIT" | "NON_PROFIT" | "GOVERNMENT";
180856
+ /** @description E.164. A US brand needs a US number (`+1` then 10 digits). */
180656
180857
  phone: string;
180858
+ /** @description US - a ZIP code. Elsewhere - the postcode. */
180657
180859
  postal_code: string;
180860
+ /** @description US - the 2-letter state. Elsewhere - the region or county. */
180658
180861
  state: string;
180659
180862
  stock_exchange?: string;
180660
180863
  stock_symbol?: string;
@@ -201047,6 +201250,229 @@ export interface operations {
201047
201250
  429: components["responses"]["TooManyRequests"];
201048
201251
  };
201049
201252
  };
201253
+ getResellerSupportDesk: {
201254
+ parameters: {
201255
+ query?: {
201256
+ /** @description Which of your organizations this applies to. */
201257
+ org_id?: components["schemas"]["Uuid"];
201258
+ };
201259
+ header?: never;
201260
+ path?: never;
201261
+ cookie?: never;
201262
+ };
201263
+ requestBody?: never;
201264
+ responses: {
201265
+ /** @description The desk settings. */
201266
+ 200: {
201267
+ headers: {
201268
+ [name: string]: unknown;
201269
+ };
201270
+ content: {
201271
+ "application/json": components["schemas"]["ResellerSupportDesk"];
201272
+ };
201273
+ };
201274
+ 401: components["responses"]["Unauthorized"];
201275
+ 403: components["responses"]["Forbidden"];
201276
+ 404: components["responses"]["NotFound"];
201277
+ 429: components["responses"]["TooManyRequests"];
201278
+ };
201279
+ };
201280
+ updateResellerSupportDesk: {
201281
+ parameters: {
201282
+ query?: {
201283
+ /** @description Which of your organizations this applies to. */
201284
+ org_id?: components["schemas"]["Uuid"];
201285
+ };
201286
+ header?: never;
201287
+ path?: never;
201288
+ cookie?: never;
201289
+ };
201290
+ requestBody: {
201291
+ content: {
201292
+ "application/json": components["schemas"]["ResellerSupportDeskInput"];
201293
+ };
201294
+ };
201295
+ responses: {
201296
+ /** @description The saved settings. */
201297
+ 200: {
201298
+ headers: {
201299
+ [name: string]: unknown;
201300
+ };
201301
+ content: {
201302
+ "application/json": components["schemas"]["ResellerSupportDesk"];
201303
+ };
201304
+ };
201305
+ 401: components["responses"]["Unauthorized"];
201306
+ 403: components["responses"]["Forbidden"];
201307
+ 404: components["responses"]["NotFound"];
201308
+ 422: components["responses"]["UnprocessableEntity"];
201309
+ 429: components["responses"]["TooManyRequests"];
201310
+ };
201311
+ };
201312
+ listResellerSupportTickets: {
201313
+ parameters: {
201314
+ query?: {
201315
+ /** @description Opaque cursor from a previous page's `page.next_cursor`. */
201316
+ cursor?: components["parameters"]["Cursor"];
201317
+ /** @description Maximum items to return (page size). */
201318
+ limit?: components["parameters"]["Limit"];
201319
+ /** @description Which of your organizations this applies to. Required only when you belong to more than one here. */
201320
+ org_id?: components["schemas"]["Uuid"];
201321
+ /** @description Narrow to one status; `active` means open or pending. */
201322
+ status?: "active" | "open" | "pending" | "solved" | "closed";
201323
+ };
201324
+ header?: never;
201325
+ path?: never;
201326
+ cookie?: never;
201327
+ };
201328
+ requestBody?: never;
201329
+ responses: {
201330
+ /** @description A page of your clients' tickets. */
201331
+ 200: {
201332
+ headers: {
201333
+ [name: string]: unknown;
201334
+ };
201335
+ content: {
201336
+ "application/json": components["schemas"]["ResellerSupportTicketPage"];
201337
+ };
201338
+ };
201339
+ 401: components["responses"]["Unauthorized"];
201340
+ 403: components["responses"]["Forbidden"];
201341
+ 404: components["responses"]["NotFound"];
201342
+ 422: components["responses"]["UnprocessableEntity"];
201343
+ 429: components["responses"]["TooManyRequests"];
201344
+ };
201345
+ };
201346
+ getResellerSupportTicket: {
201347
+ parameters: {
201348
+ query?: {
201349
+ /** @description Which of your organizations this applies to. */
201350
+ org_id?: components["schemas"]["Uuid"];
201351
+ };
201352
+ header?: never;
201353
+ path: {
201354
+ /** @description The client ticket's id. */
201355
+ ticketId: components["schemas"]["Uuid"];
201356
+ };
201357
+ cookie?: never;
201358
+ };
201359
+ requestBody?: never;
201360
+ responses: {
201361
+ /** @description The ticket and its thread. */
201362
+ 200: {
201363
+ headers: {
201364
+ [name: string]: unknown;
201365
+ };
201366
+ content: {
201367
+ "application/json": components["schemas"]["ResellerSupportTicketDetail"];
201368
+ };
201369
+ };
201370
+ 401: components["responses"]["Unauthorized"];
201371
+ 403: components["responses"]["Forbidden"];
201372
+ 404: components["responses"]["NotFound"];
201373
+ 429: components["responses"]["TooManyRequests"];
201374
+ };
201375
+ };
201376
+ closeResellerSupportTicket: {
201377
+ parameters: {
201378
+ query?: {
201379
+ /** @description Which of your organizations this applies to. */
201380
+ org_id?: components["schemas"]["Uuid"];
201381
+ };
201382
+ header?: never;
201383
+ path: {
201384
+ /** @description The client ticket's id. */
201385
+ ticketId: components["schemas"]["Uuid"];
201386
+ };
201387
+ cookie?: never;
201388
+ };
201389
+ requestBody?: never;
201390
+ responses: {
201391
+ /** @description The closed ticket. */
201392
+ 200: {
201393
+ headers: {
201394
+ [name: string]: unknown;
201395
+ };
201396
+ content: {
201397
+ "application/json": components["schemas"]["ResellerSupportTicketDetail"];
201398
+ };
201399
+ };
201400
+ 401: components["responses"]["Unauthorized"];
201401
+ 403: components["responses"]["Forbidden"];
201402
+ 404: components["responses"]["NotFound"];
201403
+ 429: components["responses"]["TooManyRequests"];
201404
+ };
201405
+ };
201406
+ escalateResellerSupportTicket: {
201407
+ parameters: {
201408
+ query?: {
201409
+ /** @description Which of your organizations this applies to. */
201410
+ org_id?: components["schemas"]["Uuid"];
201411
+ };
201412
+ header?: never;
201413
+ path: {
201414
+ /** @description The client ticket's id. */
201415
+ ticketId: components["schemas"]["Uuid"];
201416
+ };
201417
+ cookie?: never;
201418
+ };
201419
+ requestBody: {
201420
+ content: {
201421
+ "application/json": components["schemas"]["ResellerSupportEscalation"];
201422
+ };
201423
+ };
201424
+ responses: {
201425
+ /** @description The client ticket, now carrying `escalated_ticket_id`. */
201426
+ 201: {
201427
+ headers: {
201428
+ [name: string]: unknown;
201429
+ };
201430
+ content: {
201431
+ "application/json": components["schemas"]["ResellerSupportTicketDetail"];
201432
+ };
201433
+ };
201434
+ 401: components["responses"]["Unauthorized"];
201435
+ 403: components["responses"]["Forbidden"];
201436
+ 404: components["responses"]["NotFound"];
201437
+ 422: components["responses"]["UnprocessableEntity"];
201438
+ 429: components["responses"]["TooManyRequests"];
201439
+ };
201440
+ };
201441
+ replyResellerSupportTicket: {
201442
+ parameters: {
201443
+ query?: {
201444
+ /** @description Which of your organizations this applies to. */
201445
+ org_id?: components["schemas"]["Uuid"];
201446
+ };
201447
+ header?: never;
201448
+ path: {
201449
+ /** @description The client ticket's id. */
201450
+ ticketId: components["schemas"]["Uuid"];
201451
+ };
201452
+ cookie?: never;
201453
+ };
201454
+ requestBody: {
201455
+ content: {
201456
+ "application/json": components["schemas"]["ResellerSupportReply"];
201457
+ };
201458
+ };
201459
+ responses: {
201460
+ /** @description The ticket and its thread, with your message added. */
201461
+ 201: {
201462
+ headers: {
201463
+ [name: string]: unknown;
201464
+ };
201465
+ content: {
201466
+ "application/json": components["schemas"]["ResellerSupportTicketDetail"];
201467
+ };
201468
+ };
201469
+ 401: components["responses"]["Unauthorized"];
201470
+ 403: components["responses"]["Forbidden"];
201471
+ 404: components["responses"]["NotFound"];
201472
+ 422: components["responses"]["UnprocessableEntity"];
201473
+ 429: components["responses"]["TooManyRequests"];
201474
+ };
201475
+ };
201050
201476
  listResellerTaxRegistrations: {
201051
201477
  parameters: {
201052
201478
  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.1773",
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>",